:root {
  --ink: #1E1E1E; --paper: #F3F2EF; --card: #FFFFFF;
  --amber-1: #EEBB3D; --amber-2: #EA9F3C; --amber: #EAAC3C;
  --grad: linear-gradient(100deg, var(--amber-1), var(--amber-2));
  --red: #E8382F; --green: #2E9E5B; --blue: #3B6FE0; --violet: #7B5CF0; --side: #151515;
  --bg: var(--paper); --fg: var(--ink); --surface: var(--card); --surface-2: #F1F1F1;
  --fg-dim: #66666B; --line: rgba(30,30,30,.09);
  --display: 'RF Dewi Expanded', 'Inter Tight', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --r: 18px; --r-s: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(30,30,30,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414; --fg: #EFEFEF; --surface: #1F1F1F; --surface-2: #2A2A2A;
    --fg-dim: #A9A9AD; --line: rgba(255,255,255,.09); --shadow: none; --side: #0E0E0E;
  }
}
:root[data-theme="dark"] {
  --bg: #141414; --fg: #EFEFEF; --surface: #1F1F1F; --surface-2: #2A2A2A;
  --fg-dim: #A9A9AD; --line: rgba(255,255,255,.09); --shadow: none; --side: #0E0E0E;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.01em; margin: 0; line-height: 1.1; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; font-weight: 600; }
.dim { color: var(--fg-dim); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* каркас */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.logo { font-family: var(--display); font-weight: 900; font-size: 20px; padding: 4px 10px 18px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--fg-dim); margin-top: 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--fg-dim); font-weight: 500; }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.nav a .badge { margin-left: auto; }
.nav svg { width: 18px; height: 18px; flex: none; }
.side .foot { margin-top: auto; padding: 10px 12px; font-size: 13px; }
main { padding: 28px 32px 80px; max-width: 1180px; width: 100%; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head p { margin: 6px 0 0; }

/* картки й сітки */
.card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; cursor: pointer; background: var(--surface-2); text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--grad); color: #1E1E1E; }
.btn.dark { background: var(--fg); color: var(--bg); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--fg-dim); text-decoration: underline; text-underline-offset: 3px; }

/* поля */
label.f { display: block; }
label.f > span { display: block; font-size: 13px; color: var(--fg-dim); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); }
textarea { resize: vertical; min-height: 110px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--fg-dim); }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 12px 0; }
.switch input { display: none; }
.switch i { flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: .2s; margin-top: 2px; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--amber); }
.switch input:checked + i::after { left: 21px; }
.switch b { display: block; font-weight: 600; }

/* значки */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--fg-dim); white-space: nowrap; }
.badge.amber { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #9A6410; }
.badge.green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.badge.red { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.badge.blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
:root[data-theme="dark"] .badge.amber { color: var(--amber-1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.amber { color: var(--amber-1); } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* банер режиму */
.mode-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-s); margin-bottom: 18px; font-size: 14px; background: color-mix(in srgb, var(--amber) 16%, var(--surface)); }
.mode-bar.live { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.mode-bar .btn { margin-left: auto; }

/* рівень */
.level { position: relative; overflow: hidden; }
.level .big { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 14px 0 8px; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.steps { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-dim); }
.steps b.on { color: var(--fg); }

/* метрики */
.kpi .n { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1.1; margin-top: 6px; }
.kpi .l { font-size: 13px; color: var(--fg-dim); }

/* відео */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.vid { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.vid .th { position: relative; aspect-ratio: 9/16; background: var(--surface-2); cursor: pointer; }
.vid .th img, .vid .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .th .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.vid .th .tag { position: absolute; left: 8px; top: 8px; }
.vid .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vid .name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid .warn { font-size: 12px; color: var(--red); }
.vid .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }

.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 26px; text-align: center; cursor: pointer; transition: .15s; background: var(--surface); }
.drop.over { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.drop b { font-family: var(--display); font-size: 16px; }
.progress { margin-top: 12px; }

/* пости */
.post { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post .th { width: 64px; aspect-ratio: 9/16; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.post .th img { width: 100%; height: 100%; object-fit: cover; }
.post .cap { font-size: 14px; margin-top: 4px; white-space: pre-wrap; max-height: 3.2em; overflow: hidden; }
.post pre { font: 12px/1.5 ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 10px; border-radius: 10px; white-space: pre-wrap; margin: 8px 0 0; }
.day { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--fg-dim); margin: 22px 0 6px; text-transform: lowercase; }

/* акаунти */
.acc { display: flex; gap: 14px; align-items: center; }
.ava { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); flex: none; object-fit: cover; display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: #1E1E1E; }
.option { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.option .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; }

/* таблиця */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--fg-dim); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.mini { width: 36px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); display: block; }

/* ком'юніті */
.hook { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.hook video { width: 200px; aspect-ratio: 9/16; border-radius: var(--r-s); background: #000; object-fit: cover; }
.member { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }
.member .ava { width: 40px; height: 40px; font-size: 14px; }
.rules { background: var(--surface-2); border-radius: var(--r-s); padding: 14px 16px; font-size: 13px; color: var(--fg-dim); }
.rules b { color: var(--fg); }

/* модальне */
.modal { position: fixed; inset: 0; background: rgba(20,20,20,.45); display: grid; place-items: center; padding: 16px; z-index: 50; backdrop-filter: blur(3px); }
.modal .box { background: var(--surface); border-radius: var(--r); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; }
.modal .box.wide { width: min(760px, 100%); }
.fs-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
.fs-list button { display: flex; width: 100%; text-align: left; gap: 10px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.fs-list button:hover { background: var(--surface-2); }
.path { font: 13px ui-monospace, Menlo, monospace; word-break: break-all; background: var(--surface-2); padding: 8px 12px; border-radius: 10px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; z-index: 60; font-weight: 500; max-width: calc(100% - 32px); }
.empty { text-align: center; padding: 34px 16px; color: var(--fg-dim); }
.empty b { display: block; color: var(--fg); font-family: var(--display); margin-bottom: 6px; }

/* вхід */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .pitch { background: var(--ink); color: #EFEFEF; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .pitch h1 { font-size: 46px; max-width: 560px; }
.auth .pitch h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth .pitch ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: #C9C9CC; }
.auth .pitch li::before { content: "→ "; color: var(--amber-1); }
.auth .form { display: grid; place-items: center; padding: 32px 16px; position: relative; }
.auth .form .auth-theme { position: absolute; top: 20px; right: 20px; }
.auth .form .card { width: min(400px, 100%); }

/* мобільне */
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  main { padding: 18px 16px 96px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 40; overflow-x: auto; }
  .tabbar a { flex: 1 0 auto; min-width: 64px; text-align: center; padding: 9px 6px 12px; font-size: 11px; text-decoration: none; color: var(--fg-dim); }
  .tabbar a.on { color: var(--fg); font-weight: 600; }
  .tabbar svg { display: block; margin: 0 auto 3px; width: 20px; height: 20px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .g4.kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hook { grid-template-columns: 1fr; }
  .hook video { width: 100%; max-width: 260px; }
  .auth { grid-template-columns: 1fr; }
  .auth .pitch { padding: 32px 20px; gap: 28px; }
  .auth .form { padding: 20px 16px 32px; gap: 16px; }
  .auth .form .auth-theme { position: static; justify-self: end; }
  .auth .pitch h1 { font-size: 30px; }
  .auth .pitch .brand img { height: 34px; }
  .auth .pitch .brand b { font-size: 24px; }
  h1 { font-size: 22px; }
  .post { grid-template-columns: 52px 1fr; }
  .post > :last-child { grid-column: 1 / -1; }
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* бренд Boost AI */
.brand { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.brand img { height: 30px; width: auto; display: block; }
.brand b { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: .06em; line-height: 1; }
.side .logo .brand img { height: 26px; }
.side .logo .brand b { font-size: 19px; }
.auth .pitch .brand img { height: 42px; }
.auth .pitch .brand b { font-size: 30px; color: #EFEFEF; }

/* кнопки входу через Google і Apple */
.social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.social:hover { filter: brightness(.97); }
.social.apple { background: #000; color: #fff; border-color: #000; }
:root[data-theme="dark"] .social.apple { background: #fff; color: #000; border-color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .social.apple { background: #fff; color: #000; border-color: #fff; } }
#socialNote:empty { display: none; }
.note { margin-top: 10px; background: color-mix(in srgb, var(--amber) 14%, transparent); border-radius: var(--r-s); padding: 10px 12px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--fg-dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
code.uri { display: block; font-size: 12px; padding: 8px 10px; border-radius: var(--r-s); background: var(--surface-2); word-break: break-all; cursor: copy; }

/* вхід через Telegram */
.social.tg { width: 100%; background: #2AABEE; color: #fff; border-color: #2AABEE; font-size: 15px; }
.social.tg:hover { filter: brightness(.95); }
.safe { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-s); background: var(--surface-2); font-size: 13px; line-height: 1.45; }
.safe b { display: flex; align-items: center; gap: 8px; }
.safe b::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.safe ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--fg-dim); }
.tg-wait { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: #2AABEE; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

/* підписка закінчилась */
.blocked { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.blocked .auth-theme { position: absolute; top: 20px; right: 20px; }
.blocked .card { width: min(460px, 100%); gap: 14px; }
.blocked .brand img { height: 34px; }

/* налаштування: «Додатково» */
details.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 20px; color: var(--fg-dim); }
details.more[open] summary::after { content: "–"; }
details.more summary h3 { margin: 0; }
.sub-box { margin-top: 14px; max-width: 460px; }
.sub-box h4 { margin: 0; font-size: 15px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--fg-dim); }

/* підключення Instagram */
.ig-btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.ig-steps{margin:16px 0 0;padding-left:20px;display:grid;gap:8px;color:var(--fg-dim);font-size:13px;line-height:1.5}
.ig-steps b{color:var(--fg)}

/* пробні Reels: пояснення */
.trial-note { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--amber) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); border-radius: var(--r-s); padding: 12px 16px; font-size: 13px; line-height: 1.5; margin-top: 14px; }
.trial-note .ic { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #1E1E1E; display: grid; place-items: center; }
.trial-note b { display: block; margin-bottom: 2px; }

/* бібліотека: кроки й автопостинг */
.flow { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow li { background: var(--surface); border-radius: var(--r-s); padding: 12px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; border-left: 3px solid var(--line); }
.flow li.ok { border-left-color: var(--green); }
.flow li.ok b::after { content: " ✓"; color: var(--green); }
.flow li span { font-size: 12px; color: var(--fg-dim); }
.card.auto h2 { margin: 0; }
.stockline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.stockline > div { background: var(--surface-2); border-radius: var(--r-s); padding: 10px 14px; }
.stockline b { display: block; font-family: var(--display); font-size: 24px; font-weight: 900; line-height: 1.1; }
.stockline span { font-size: 12px; color: var(--fg-dim); }
.auto-grid { gap: 22px; margin-top: 6px; }
.lbl { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.hint { font-size: 12px; color: var(--fg-dim); margin: 8px 0 0; line-height: 1.45; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.time { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 10px; padding: 2px 4px; }
.time input { width: auto; border: 0; background: transparent; padding: 6px; }
.time input:disabled { color: var(--fg); opacity: 1; }
.time button, .tpl button { border: 0; background: transparent; color: var(--fg-dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 6px; }
.tpl { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 8px; }
.tpl textarea { flex: 1; min-height: 0; }
.vid .desc { font-size: 12px; color: var(--fg-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress:empty { display: none; }

/* контент-план: перетягування */
.post.drag .th { position: relative; }
.post .th .grip { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 0 4px; cursor: grab; font-size: 12px; letter-spacing: -2px; user-select: none; z-index: 1; }
.post.drag { cursor: grab; transition: background .15s; }
.post.dragging { opacity: .45; }
.post.over-top { box-shadow: inset 0 3px 0 var(--amber); }
.post.over-bot { box-shadow: inset 0 -3px 0 var(--amber); }
.post .acts { gap: 6px; flex-wrap: wrap; }

/* редактор поста */
.editor { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-top: 16px; }
.ed-side { display: flex; flex-direction: column; gap: 8px; }
.ed-th { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ed-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-ed { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.cover-ed video { width: 220px; aspect-ratio: 9/16; object-fit: cover; border-radius: 12px; background: #000; }
.cover-ed input[type=range] { width: 100%; accent-color: var(--amber); }
.vids.pick { max-height: 60vh; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); padding: 2px; }
.vids.pick .vid { border: 2px solid transparent; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.vids.pick .vid:hover { border-color: var(--amber); }
.vids.pick .vid.cur { border-color: var(--green); }

/* рейтинг */
.ava.sm { width: 34px; height: 34px; font-size: 12px; }
.nom .nom-v { margin-top: 10px; font-weight: 600; font-size: 14px; }
table.rating td { white-space: nowrap; }
table.rating tr.me td { background: color-mix(in srgb, var(--amber) 10%, transparent); }
.place { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; font-size: 13px; background: var(--surface-2); }
.place.p1 { background: var(--grad); color: #1E1E1E; }
.place.p2 { background: #D9D9D9; color: #1E1E1E; }
.place.p3 { background: #E2B98F; color: #1E1E1E; }

@media (max-width: 900px) {
  .flow, .stockline { grid-template-columns: 1fr; }
  .stockline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stockline b { font-size: 20px; }
  .editor { grid-template-columns: 1fr; }
  .ed-side { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; }
  .ed-th { grid-row: 1 / 4; }
  .cover-ed { grid-template-columns: 1fr; }
  .cover-ed video { width: 100%; max-width: 220px; }
  .seg { max-width: 100%; border-radius: 18px; }
}

/* ===================== новий вигляд кабінету ===================== */
body { background: var(--bg); }
.shell { background:
  radial-gradient(900px 420px at 100% -10%, color-mix(in srgb, var(--amber-1) 16%, transparent), transparent 70%),
  radial-gradient(700px 380px at 30% 0%, color-mix(in srgb, var(--violet) 7%, transparent), transparent 70%); }
.side { background: var(--side); color: #EDEDED; border-right: 0; padding: 22px 14px; overflow-y: auto;
  background-image: radial-gradient(260px 200px at 20% 105%, rgba(238,187,61,.22), transparent 70%); }
.side .logo .brand b { color: #F2F2F2; }
.side .logo small { color: #8C8C92; }
.nav a { color: #A3A3A8; }
.nav a:hover { background: rgba(255,255,255,.06); color: #FFF; }
.nav a.on { background: var(--grad); color: #1E1E1E; box-shadow: 0 6px 18px rgba(234,159,60,.28); font-weight: 600; }
.nav a.on .badge { background: rgba(30,30,30,.15); color: #1E1E1E; }
.side .foot { display: flex; gap: 10px; align-items: center; color: #CFCFD3; background: rgba(255,255,255,.05); border-radius: var(--r-s); padding: 10px; }
.side .foot .ava { width: 34px; height: 34px; font-size: 12px; }
.side .foot .who { min-width: 0; line-height: 1.3; }
.side .foot .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .foot .who span { color: #8C8C92; font-size: 12px; }
.head h1 { font-size: 30px; }
.head h1::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 10px; }
.card { border: 1px solid var(--line); border-radius: 20px; }
.btn.primary { box-shadow: 0 6px 18px rgba(234,159,60,.30); }
.btn.primary:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn { transition: transform .15s, filter .15s, background .15s; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.mode-bar { border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }

/* огляд: привітання */
.hello { position: relative; overflow: hidden; background: var(--side); color: #F2F2F2; border-radius: 24px; padding: 28px; margin-bottom: 14px;
  background-image: radial-gradient(420px 260px at 95% 0%, rgba(238,187,61,.45), transparent 70%), radial-gradient(360px 240px at 60% 130%, rgba(123,92,240,.30), transparent 70%); }
.hello h1 { font-size: 32px; color: #FFF; }
.hello p { color: #C4C4C8; margin: 8px 0 18px; max-width: 520px; }
.hello .btn.ghost { color: #F2F2F2; border-color: rgba(255,255,255,.22); }
.hello .btn.ghost:hover { background: rgba(255,255,255,.08); }
.kpi { position: relative; overflow: hidden; }
.kpi .ki { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.kpi .ki svg { width: 20px; height: 20px; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, transparent); }
.kpi .n { font-size: 30px; }
.k-amber { --c: var(--amber-2); } .k-blue { --c: var(--blue); } .k-green { --c: var(--green); } .k-violet { --c: var(--violet); }
.option { background: var(--surface); transition: border-color .15s; }
.option:hover { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.option .stepn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1E1E1E; font-weight: 800; font-size: 13px; }
.option.done .stepn { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }

/* бібліотека: джерела */
.sources { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px 22px; min-height: 260px; border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  background: radial-gradient(400px 200px at 50% 0%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%), var(--surface); }
.drop .dic { width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #1E1E1E; display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 8px 22px rgba(234,159,60,.3); }
.drop .dic svg { width: 26px; height: 26px; }
.drop b { font-size: 18px; }
.drop .row { justify-content: center; margin-top: 12px; }
.drop .progress { width: 100%; max-width: 420px; }
.src-list { display: grid; gap: 10px; }
.src { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); }
.src .sic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.src .sic svg { width: 22px; height: 22px; }
.src .sic.gd { background: linear-gradient(135deg, #1FA463, #4285F4 55%, #FFC107); }
.src .sic.mac { background: #2B2B2E; }
.src h3 { margin: 2px 0 2px; }
.src p { margin: 0 0 10px; font-size: 13px; color: var(--fg-dim); }
.src .path { margin: 0 0 10px; font-size: 12px; }
.gd-job { margin-top: 10px; }
.steps-l { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }

/* мобільне меню знизу темне, як бокове */
@media (max-width: 900px) {
  .tabbar { background: var(--side); border-top: 0; }
  .tabbar a { color: #9A9AA0; }
  .tabbar a.on { color: var(--amber-1); }
  .sources { grid-template-columns: 1fr; }
  .drop { min-height: 0; }
  .hello { padding: 22px 18px; }
  .hello h1 { font-size: 24px; }
  .head h1 { font-size: 24px; }
}

/* ===================== сайт (сторінка входу) ===================== */
.land { background: var(--bg); color: var(--fg); overflow-x: clip; --dark: #151515; --dark-fg: #D9D9DD; }
.land .l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.land .l-wrap.narrow { max-width: 780px; }
.land h1, .land .l-h2 { text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.land mark { background: var(--grad); color: #1E1E1E; padding: .02em .16em .05em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.land p { line-height: 1.6; }

/* шапка */
.l-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.l-nav .l-wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.l-nav nav { display: flex; gap: 2px; margin: 0 auto; }
.l-nav nav button { border: 0; background: none; padding: 8px 13px; border-radius: 999px; cursor: pointer; color: var(--fg-dim); font: inherit; font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.l-nav nav button:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.l-nav .brand img { height: 26px; }
.l-nav .brand b { font-size: 19px; }

/* мітка розділу: коротка жовта риска, номер, назва */
.l-tag { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.l-tag i { width: 28px; height: 3px; border-radius: 2px; background: var(--grad); flex: none; }
.l-tag b { color: var(--fg); }
.l-tag.light { color: #A9A9AD; }
.l-h2 { font-size: clamp(25px, 3.5vw, 42px); line-height: 1.12; margin: 16px 0 34px; max-width: 800px; }
.l-h2.light { color: #fff; }

/* перший екран */
.l-hero { position: relative; padding: 70px 0 44px; isolation: isolate; }
.l-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 13%, transparent) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 78% 8%, #000, transparent 70%); mask-image: radial-gradient(70% 90% at 78% 8%, #000, transparent 70%); }
.l-hero::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -18%; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--amber-1) 34%, transparent), transparent); }
.l-hero-login { scroll-margin-top: 90px; }
.l-hero .l-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.l-hero h1 { font-size: clamp(31px, 4.5vw, 56px); line-height: 1.08; margin: 20px 0 20px; }
.l-lead { font-size: 18px; color: var(--fg-dim); max-width: 540px; margin: 0 0 28px; }
.l-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.land .btn.ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.land .btn.ghost:hover { background: var(--surface); }
.l-ticks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--fg-dim); }
.l-ticks.col { display: grid; gap: 8px; font-size: 13px; margin-top: 18px; }
.l-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.l-ticks li::before, .l-ok { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat; }

.l-login { position: relative; background: var(--surface); border-radius: 26px; padding: 28px; box-shadow: 0 30px 70px -20px rgba(30,30,30,.22), 0 2px 6px rgba(30,30,30,.04); }
.l-login::before { content: ""; position: absolute; inset: -1px; border-radius: 27px; padding: 1px; background: linear-gradient(140deg, var(--amber-1), color-mix(in srgb, var(--amber-2) 25%, transparent) 55%, var(--amber-2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.l-login h2 { font-size: 22px; margin: 12px 0 6px; }
.l-login .social.tg { height: 54px; font-size: 16px; transition: transform .15s, filter .15s; }
.l-login .social.tg:hover { transform: translateY(-1px); }
.l-hero-login.pulse .l-login { animation: l-pulse 1.2s ease; }
@keyframes l-pulse { 0% { box-shadow: 0 0 0 0 rgba(238,187,61,.7); } 100% { box-shadow: 0 0 0 22px rgba(238,187,61,0), 0 30px 70px -20px rgba(30,30,30,.22); } }

/* приклад кабінету */
.l-shot-sec { padding: 14px 0 26px; }
.l-shot { position: relative; max-width: 900px; margin: 0 auto; }
.l-win { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(30,30,30,.28); }
.l-win-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.l-win-top i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 16%, transparent); }
.l-win-top span { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.l-win-body { padding: 20px 22px 12px; display: grid; gap: 12px; }
.l-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.l-kpis div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.l-kpis b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.2; }
.l-kpis span { font-size: 12px; color: var(--fg-dim); }
.l-week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.l-week div { display: grid; gap: 4px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); }
.l-week span { font-size: 11px; font-weight: 600; color: var(--fg-dim); margin-bottom: 2px; }
.l-week i { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.l-week .done i { background: color-mix(in srgb, var(--green) 60%, transparent); }
.l-week .now { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.l-week .now i { background: var(--grad); }
.l-week .now i:first-of-type { background: color-mix(in srgb, var(--green) 60%, transparent); }
.l-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.l-row b { display: block; font-size: 14px; }
.l-row div span { font-size: 12px; color: var(--fg-dim); }
.l-th { width: 34px; aspect-ratio: 9/16; border-radius: 8px; background: linear-gradient(160deg, var(--amber-1), var(--amber-2) 45%, #1E1E1E 130%); }
.l-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 18px 40px -14px rgba(30,30,30,.3); display: flex; gap: 10px; align-items: center; font-size: 13px; max-width: 230px; animation: l-bob 6s ease-in-out infinite; }
.l-float b { display: block; font-size: 13px; line-height: 1.3; }
.l-float span { color: var(--fg-dim); font-size: 12px; }
.l-float.f1 { right: -74px; top: 64px; }
.l-float.f2 { left: -84px; bottom: 46px; display: block; animation-delay: -3s; }
.l-fl-ic { width: 34px; height: 34px; border-radius: 50%; background: #2AABEE; color: #fff !important; display: grid; place-items: center; flex: none; }
.l-fl-ic svg { width: 18px; height: 18px; }
.l-fl-h { display: block; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; color: var(--amber-2) !important; }
@keyframes l-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.l-cap { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--fg-dim); }

/* розділи */
.l-sec { padding: 66px 0; scroll-margin-top: 40px; }
.l-sec.tight { padding: 26px 0; }
.l-card, .l-steps li, .l-sys, .l-waves { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

/* 01 навіщо */
.l-why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.l-why-txt p { margin: 0 0 14px; color: var(--fg-dim); font-size: 16px; }
.l-why-txt p b { color: var(--fg); }
.l-why-txt .l-big { font-size: 20px; line-height: 1.5; color: var(--fg); font-weight: 500; }
.l-waves { padding: 24px 26px 22px; }
.l-waves-h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.l-bars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; height: 230px; margin-top: 18px; }
.l-bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; min-width: 0; text-align: center; }
.l-bar b { font-family: var(--display); font-weight: 900; font-size: clamp(12px, 1.4vw, 16px); line-height: 1.2; white-space: nowrap; }
.l-bar i { display: block; flex: none; height: calc(var(--h) * .7); min-height: 14px; border-radius: 12px 12px 6px 6px; background: var(--grad); transform-origin: bottom; transition: scale .9s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * .12s + .15s); }
.l-bar.stop i { background: var(--fg); }
.l-bar span { font-size: 12px; color: var(--fg-dim); }
.l-waves-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--fg-dim); }
.l-waves-note i { width: 10px; height: 10px; border-radius: 3px; background: var(--fg); flex: none; }
.l-sys { margin-top: 40px; padding: 30px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.l-sys-h h3 { font-size: clamp(19px, 2.2vw, 26px); font-weight: 900; line-height: 1.25; margin: 0 0 12px; text-transform: uppercase; }
.l-sys-h p { margin: 0; color: var(--fg-dim); }
.l-rules { list-style: none; margin: 0; padding: 0; display: grid; }
.l-rules li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.l-rules li:first-child { border-top: 0; padding-top: 0; }
.l-rules li:last-child { padding-bottom: 0; }
.l-n { font-family: var(--display); font-weight: 900; font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-rules h4 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.l-rules p { margin: 0; font-size: 14px; color: var(--fg-dim); line-height: 1.45; }
.l-pill { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); color: var(--fg-dim); }
.l-pill.on { background: var(--grad); color: #1E1E1E; border-color: transparent; }

/* 02 можливості */
.l-bento { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.l-card { padding: 24px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.l-card.wide { grid-column: span 2; }
.l-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--amber) 60%, transparent); box-shadow: 0 18px 40px -22px rgba(234,159,60,.55); }
.l-card h3 { font-size: 16px; line-height: 1.3; margin: 16px 0 8px; }
.l-card p { margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.l-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--fg); color: var(--amber-1); }
.l-ic svg { width: 21px; height: 21px; }
.l-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.l-mini span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--fg-dim); }
.l-mini span.on { background: var(--grad); color: #1E1E1E; }
.l-mini em { font-style: normal; font-size: 13px; color: var(--fg-dim); margin-left: 6px; }
.l-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.l-extras b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.l-extras span { font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-dim); }

/* 03 кроки */
.l-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.l-steps li { padding: 24px; position: relative; }
.l-steps .l-n { font-size: 34px; line-height: 1; display: block; }
.l-steps h3 { font-size: 16px; line-height: 1.3; margin: 18px 0 8px; }
.l-steps p { margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.l-steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -11px; width: 8px; height: 8px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); transform: rotate(45deg); z-index: 1; }

/* темні блоки */
.l-dark { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-fg); border-radius: 32px; border: 1px solid rgba(255,255,255,.07); isolation: isolate; }
.l-dark::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(238,187,61,.30), transparent); pointer-events: none; }
.l-dark p { color: #BDBDC2; font-size: 16px; margin: 0 0 14px; max-width: 560px; }
.l-trial { padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.l-trial .l-h2 { margin-bottom: 22px; font-size: clamp(23px, 3vw, 36px); }
.l-ring-box { display: grid; place-items: center; gap: 16px; text-align: center; color: #BDBDC2; }
.l-ring { width: 230px; height: 230px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 2px solid rgba(238,187,61,.5); box-shadow: inset 0 0 60px rgba(238,187,61,.18), 0 0 80px rgba(238,187,61,.15); }
.l-ring b { font-family: var(--display); font-weight: 900; font-size: 76px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-ring span { font-size: 13px; color: #BDBDC2; margin-top: 6px; }

/* 04 для кого */
.l-who { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.l-line { margin: 26px 0 0; font-family: var(--display); font-weight: 900; font-size: clamp(15px, 1.8vw, 20px); line-height: 1.4; }

/* 05 безпека */
.l-safe { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 36px; }
.l-safe > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-content: start; }
.l-safe .l-ok { width: 20px; height: 20px; margin-top: 1px; }
.l-safe h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.l-safe p { grid-column: 2; margin: 0; color: var(--fg-dim); font-size: 14px; line-height: 1.55; }

/* 06 питання */
.l-qa { border-top: 1px solid var(--line); }
.l-qa:last-of-type { border-bottom: 1px solid var(--line); }
.l-qa summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color .15s; }
.l-qa summary:hover { color: var(--amber-2); }
.l-qa summary::-webkit-details-marker { display: none; }
.l-qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' stroke='%23EA9F3C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E"); border: 1px solid var(--line); transition: transform .25s; }
.l-qa[open] summary::after { transform: rotate(45deg); }
.l-qa p { margin: 0 0 20px; color: var(--fg-dim); max-width: 660px; }

/* фінальний заклик */
.l-cta { padding: 64px 32px 48px; text-align: center; }
.l-cta::before { left: 50%; right: auto; top: -260px; margin-left: -330px; width: 660px; height: 660px; }
.l-cta .l-h2 { margin: 0 auto 14px; font-size: clamp(26px, 4vw, 46px); }
.l-cta > p { margin: 0 auto 26px; font-size: 17px; }
.l-quote { margin: 44px auto 0; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); max-width: 640px; }
.l-quote blockquote { margin: 0 0 18px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: #fff; font-weight: 500; }
.l-quote figcaption { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.l-quote b { display: block; color: #fff; font-size: 15px; }
.l-quote small { color: #9C9CA2; font-size: 13px; }
.l-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #1E1E1E; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 13px; flex: none; }

.l-foot { margin-top: 52px; border-top: 1px solid var(--line); padding: 26px 0 32px; }
.l-foot .l-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; color: var(--fg-dim); }
.l-foot .brand img { height: 22px; }
.l-foot .brand b { font-size: 16px; }

/* поява під час прокрутки (вмикає скрипт, якщо браузер не просив менше руху) */
.land.rv [data-rv] { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1), transform .2s, border-color .2s, box-shadow .2s; transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s, 0s; }
.land.rv [data-rv].in { opacity: 1; translate: 0 0; }
.land.rv .l-waves:not(.in) .l-bar i { scale: 1 0; }

/* темна тема */
:root[data-theme="dark"] .l-login, :root[data-theme="dark"] .l-win, :root[data-theme="dark"] .l-float { box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
:root[data-theme="dark"] .l-ic { background: var(--surface-2); }
:root[data-theme="dark"] .l-bar.stop i, :root[data-theme="dark"] .l-waves-note i { background: #6B6B70; }
:root[data-theme="dark"] .land { --dark: #0E0E0E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .l-login, :root:not([data-theme="light"]) .l-win, :root:not([data-theme="light"]) .l-float { box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
  :root:not([data-theme="light"]) .l-ic { background: var(--surface-2); }
  :root:not([data-theme="light"]) .l-bar.stop i, :root:not([data-theme="light"]) .l-waves-note i { background: #6B6B70; }
  :root:not([data-theme="light"]) .land { --dark: #0E0E0E; }
}

@media (max-width: 1140px) {
  .l-float { position: static; max-width: none; animation: none; }
  .l-shot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .l-win { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .l-nav nav { display: none; }
  .l-nav .l-wrap { justify-content: space-between; height: 60px; }
  .l-nav .btn { padding: 9px 14px; font-size: 14px; }
  .l-hero { padding: 38px 0 24px; }
  .l-hero::after { width: 420px; height: 420px; right: -30%; top: -8%; }
  .l-hero .l-wrap, .l-why, .l-sys, .l-trial { grid-template-columns: 1fr; gap: 28px; }
  .l-bento, .l-who, .l-steps { grid-template-columns: 1fr 1fr; }
  .l-steps li::after { display: none; }
  .l-safe { grid-template-columns: 1fr 1fr; }
  .l-sec { padding: 54px 0; }
  .l-sec.tight { padding: 18px 0; }
  .l-trial { padding: 36px 28px; }
  .l-ring { width: 190px; height: 190px; }
  .l-ring b { font-size: 60px; }
}
@media (max-width: 640px) {
  .land .l-wrap { padding: 0 16px; }
  .l-lead { font-size: 16px; }
  .l-btns .btn { flex: 1 1 auto; justify-content: center; }
  .l-ticks { display: grid; gap: 8px; }
  .l-login { padding: 22px; }
  .l-bento, .l-who, .l-steps, .l-safe, .l-shot { grid-template-columns: 1fr; }
  .l-card.wide { grid-column: auto; }
  .l-h2 { margin-bottom: 24px; }
  .l-win-body { padding: 14px 14px 6px; }
  .l-kpis { gap: 6px; }
  .l-kpis div { padding: 10px; }
  .l-kpis b { font-size: 16px; }
  .l-kpis span { font-size: 11px; }
  .l-week { gap: 4px; }
  .l-week div { padding: 6px 4px; }
  .l-row .badge { font-size: 11px; padding: 3px 7px; }
  .l-waves { padding: 20px 16px 18px; }
  .l-bars { height: 180px; gap: 8px; }
  .l-sys { padding: 22px 18px; margin-top: 28px; }
  .l-rules li { grid-template-columns: 34px 1fr; }
  .l-rules .l-pill { grid-column: 2; justify-self: start; }
  .l-trial { padding: 30px 20px; }
  .l-dark { border-radius: 24px; }
  .l-cta { padding: 44px 20px 34px; }
  .l-qa summary { font-size: 16px; padding: 16px 0; }
  .l-foot { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .l-card, .l-bar i, .l-qa summary::after { transition: none; } .l-hero-login.pulse .l-login, .l-float { animation: none; } }
a.foot { text-decoration: none; margin-top: auto; }
a.foot:hover { background: rgba(255,255,255,.09); }
.src h3 .badge { vertical-align: middle; font-size: 11px; }

/* ===== кабінет: бібліотека, план, огляд, статистика (11.11) ===== */
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.notice > span { flex: 1 1 260px; }
.notice.warn { background: color-mix(in srgb, var(--amber) 12%, var(--surface)); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--red) 9%, var(--surface)); border-color: color-mix(in srgb, var(--red) 35%, transparent); }

#main .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 0; }
#main .chips button { border: 1px solid var(--line); background: var(--surface); color: var(--fg-dim); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
#main .chips button i { font-style: normal; font-size: 12px; opacity: .7; }
#main .chips button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
#main .chips button:hover:not(.on) { border-color: var(--amber); color: var(--fg); }

.vid .th .pick { display: none; position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #fff; background: rgba(0,0,0,.35); box-shadow: 0 1px 4px rgba(0,0,0,.3); z-index: 2; }
.vids.sel-mode .vid .th .pick { display: block; }
.vids.sel-mode .vid .th .tag { left: 40px; }
.vids.sel-mode .vid { cursor: pointer; }
.vid.picked { outline: 3px solid var(--amber); outline-offset: -3px; }
.vid.picked .th .pick { background: var(--grad); border-color: transparent; }
.vid.picked .th .pick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #1E1E1E; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.bulk { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: var(--ink, #1E1E1E); color: #fff; padding: 10px 14px 10px 18px; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.35); max-width: calc(100vw - 24px); }
.bulk .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.bulk .btn.danger { background: var(--red); color: #fff; border-color: transparent; }

.pv-list { max-height: 52vh; overflow-y: auto; margin: 12px -6px 0; padding: 0 6px; }
.pv-list .day { margin: 14px 0 4px; }
.pv-list .day:first-child { margin-top: 0; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pv-row b { flex: none; width: 48px; font-variant-numeric: tabular-nums; }
.pv-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-dim); font-size: 14px; }

.vids.pick.tp { max-height: 300px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 6px; }
.vids.pick.tp .vid { border-radius: 12px; box-shadow: none; background: var(--surface-2); }
.vids.pick.tp .vid.cur { border-color: var(--amber); }
.vids.pick.tp .name { font-size: 11px; padding: 5px 7px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-dim); }
.vids.pick.tp .th .tag { font-size: 10px; padding: 2px 6px; background: rgba(0,0,0,.6); color: #fff; }
.vids.pick.tp .th .dur { font-size: 10px; right: 5px; bottom: 5px; }

.trial-note { position: relative; }
.trial-note .x { flex: none; border: 0; background: transparent; color: var(--fg-dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; margin-left: auto; }
.trial-note .x:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg); }

.attn { margin: 14px 0; }
.attn h3 { color: var(--red); margin: 0 0 8px; font-size: 15px; }
.attn .card { border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.plan-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.plan-acts .row { gap: 6px; flex-wrap: wrap; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wd { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.wd.today { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 18%, transparent); }
.wh { font-size: 12px; color: var(--fg-dim); padding: 0 2px 2px; }
.wh b { color: var(--fg); text-transform: capitalize; margin-right: 2px; }
.wnone { color: var(--fg-dim); font-size: 13px; text-align: center; padding: 14px 0; opacity: .5; }
.wp { display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: var(--surface-2); border-radius: 10px; padding: 5px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.wp:hover { box-shadow: 0 0 0 2px var(--amber); }
.wp img { width: 30px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: var(--line); }
.wp span { min-width: 0; display: grid; }
.wp b { font-size: 13px; font-variant-numeric: tabular-nums; }
.wp i { font-style: normal; font-size: 10.5px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp.st-error { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.wp.st-error i { color: var(--red); }
.wp.st-published i, .wp.st-simulated i { color: var(--green); }
.slot { border: 1.5px dashed var(--line); background: transparent; border-radius: 10px; padding: 12px 4px; color: var(--fg-dim); font: inherit; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--amber); color: var(--fg); background: color-mix(in srgb, var(--amber) 10%, transparent); }

.ins-card { margin-top: 14px; }
.ins-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.ins { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.ins .e { font-size: 20px; line-height: 1.2; flex: none; }
.ins b { display: block; font-size: 14px; }
.ins p { margin: 3px 0 0; font-size: 13px; color: var(--fg-dim); }
.ins.wait { background: transparent; border: 1px dashed var(--line); }
.ins.wait b { color: var(--fg-dim); font-weight: 600; }
.chart-top { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 6px; }
.chart-top b { font-family: var(--display); font-size: 26px; }
.chart-top .up { color: var(--green); font-weight: 600; font-size: 13px; }
.chart-top .down { color: var(--red); font-weight: 600; font-size: 13px; }
.linechart { width: 100%; height: 150px; display: block; }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-dim); margin-top: 4px; }
.hbars { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 10px; }
.hb { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hb i { display: block; width: 100%; max-width: 44px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--fg) 14%, transparent); }
.hb.top i { background: var(--grad); }
.hb em { font-style: normal; font-size: 11px; color: var(--fg-dim); white-space: nowrap; }
.hb.top em { color: var(--fg); font-weight: 700; }
.hb span { font-size: 12px; color: var(--fg-dim); font-variant-numeric: tabular-nums; }

.tabbar a { position: relative; }
.tdot { display: none; position: absolute; top: 6px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.tdot.show { display: block; }
.tdot.red { background: var(--red); }
.nav .badge.red { background: var(--red); color: #fff; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: flex-end; }
.sheet { width: 100%; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 12px calc(84px + env(safe-area-inset-bottom)); animation: sheetUp .22s ease-out; }
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 10px; }
.sheet a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; text-decoration: none; color: var(--fg); font-weight: 500; font-size: 16px; }
.sheet a.on { background: var(--surface-2); }
.sheet a svg { width: 22px; height: 22px; flex: none; }
.sheet a span { flex: 1; }
.sheet a i { font-style: normal; }
@keyframes sheetUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .tabbar { overflow-x: hidden; }
  .tabbar a { flex: 1 1 0; min-width: 0; }
  .week { grid-template-columns: 1fr; }
  .wd { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .wh { flex: 0 0 100%; }
  .wp, .slot { width: auto; flex: 1 1 130px; }
  .wnone { padding: 4px 0; text-align: left; }
  .bulk { bottom: 76px; }
  .hbars { height: 140px; }
}

/* плашка аналізу контенту й автоплану */
.mainwrap { min-width: 0; max-width: 1180px; width: 100%; }
#anBanner:empty { display: none; }
#anBanner { padding: 20px 32px 0; }
.an-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--violet) 35%, transparent); background: color-mix(in srgb, var(--violet) 8%, var(--surface)); }
.an-banner.done { border-color: color-mix(in srgb, var(--green) 35%, transparent); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.an-banner .an-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700;
  background: var(--surface); color: var(--violet); }
.an-banner.done .an-ic { color: var(--green); }
.an-banner .an-ic .spin { width: 18px; height: 18px; border-top-color: var(--violet); }
.an-banner .an-body { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-banner .an-body span { color: var(--fg-dim); font-size: 14px; }
.an-banner .bar { margin: 8px 0 0; height: 6px; }
.an-banner .bar > i { transition: width .6s ease; }
.badge.violet { background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); }
.src .sic.tg { background: #2AABEE; }
.vid .score { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--fg-dim); cursor: help; }
.vid .score.hi { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.vid .score.mid { background: color-mix(in srgb, var(--amber) 18%, transparent); color: #9A6410; }
.vid .score.off { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
@media (max-width: 900px) { #anBanner { padding: 14px 16px 0; } }
