
/* Layout: слева колонка меню (на телефоне — нижняя панель), справа экран; спокойная светлая гамма в духе Apple, крупные кнопки и подписи */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --side: rgba(250,250,252,.82); --fill: #EDEDF0; --fill-2: #E3E3E8; --line: rgba(0,0,0,.08);
  --ink: #1D1D1F; --ink-2: #6E6E73; --ink-3: #8E8E93;
  --accent: #0071E3; --accent-ink: #FFFFFF; --accent-soft: rgba(0,113,227,.10);
  --good: #248A3D; --good-soft: rgba(52,199,89,.14); --warn: #C76A00; --warn-soft: rgba(255,149,0,.15);
  --bad: #D70015; --bad-soft: rgba(255,59,48,.12);
  --red-fill: #FF3B30; --green-fill: #34C759; --orange-fill: #FF9500; --blue-fill: #007AFF; --yellow-fill: #FFE500; --gold: #857600; --first-stripe: rgba(255,232,0,.30);
  --s-idea: #6E6E73; --s-making: #8944AB; --s-ready: #0E7C9B; --s-scheduled: #0066CC; --s-sent: #C76A00; --s-published: #248A3D; --s-failed: #D70015;
  --f-idea: #8E8E93; --f-making: #AF52DE; --f-ready: #30B0C7; --f-scheduled: #007AFF; --f-sent: #FF9500; --f-published: #34C759; --f-failed: #FF3B30;
  --glass: rgba(245,245,247,.78); --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
  --shadow-lift: 0 18px 50px rgba(0,0,0,.22);
  --c1: #007AFF; --c2: #34C759; --c3: #FF9500; --c4: #AF52DE; --c5: #FF2D55; --c6: #32ADE6; --c7: #A2845E; --c8: #5856D6; --c9: #00C7BE;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --r: 18px; --r-sm: 12px; --tabbar: 0px; --sidew: 256px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #000000; --surface: #1C1C1E; --side: rgba(18,18,20,.88); --fill: #2C2C2E; --fill-2: #3A3A3C; --line: rgba(255,255,255,.09);
  --ink: #F5F5F7; --ink-2: #A1A1A6; --ink-3: #8E8E93;
  --accent: #0A84FF; --accent-ink: #FFFFFF; --accent-soft: rgba(10,132,255,.18);
  --good: #30D158; --good-soft: rgba(48,209,88,.16); --warn: #FF9F0A; --warn-soft: rgba(255,159,10,.18);
  --bad: #FF453A; --bad-soft: rgba(255,69,58,.18);
  --red-fill: #FF453A; --green-fill: #30D158; --orange-fill: #FF9F0A; --blue-fill: #0A84FF; --yellow-fill: #FFE620; --gold: #FFE620; --first-stripe: rgba(255,230,32,.16);
  --s-idea: #A1A1A6; --s-making: #CF8AF2; --s-ready: #5AC8F0; --s-scheduled: #4DA3FF; --s-sent: #FFB340; --s-published: #48D66C; --s-failed: #FF6961;
  --f-idea: #8E8E93; --f-making: #BF5AF2; --f-ready: #40C8E0; --f-scheduled: #0A84FF; --f-sent: #FF9F0A; --f-published: #30D158; --f-failed: #FF453A;
  --glass: rgba(22,22,24,.78); --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lift: 0 18px 50px rgba(0,0,0,.6);
  --c1: #0A84FF; --c2: #30D158; --c3: #FF9F0A; --c4: #BF5AF2; --c5: #FF375F; --c6: #64D2FF; --c7: #AC8E68; --c8: #5E5CE6; --c9: #63E6E2;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1C1C1E; --side: rgba(18,18,20,.88); --fill: #2C2C2E; --fill-2: #3A3A3C; --line: rgba(255,255,255,.09);
  --ink: #F5F5F7; --ink-2: #A1A1A6; --ink-3: #8E8E93;
  --accent: #0A84FF; --accent-ink: #FFFFFF; --accent-soft: rgba(10,132,255,.18);
  --good: #30D158; --good-soft: rgba(48,209,88,.16); --warn: #FF9F0A; --warn-soft: rgba(255,159,10,.18);
  --bad: #FF453A; --bad-soft: rgba(255,69,58,.18);
  --red-fill: #FF453A; --green-fill: #30D158; --orange-fill: #FF9F0A; --blue-fill: #0A84FF; --yellow-fill: #FFE620; --gold: #FFE620; --first-stripe: rgba(255,230,32,.16);
  --s-idea: #A1A1A6; --s-making: #CF8AF2; --s-ready: #5AC8F0; --s-scheduled: #4DA3FF; --s-sent: #FFB340; --s-published: #48D66C; --s-failed: #FF6961;
  --f-idea: #8E8E93; --f-making: #BF5AF2; --f-ready: #40C8E0; --f-scheduled: #0A84FF; --f-sent: #FF9F0A; --f-published: #30D158; --f-failed: #FF453A;
  --glass: rgba(22,22,24,.78); --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lift: 0 18px 50px rgba(0,0,0,.6);
  --c1: #0A84FF; --c2: #30D158; --c3: #FF9F0A; --c4: #BF5AF2; --c5: #FF375F; --c6: #64D2FF; --c7: #AC8E68; --c8: #5E5CE6; --c9: #63E6E2;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.47 var(--font); -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

/* каркас: меню слева + экран */
.side { position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidew); z-index: 30; background: var(--side); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: max(18px, env(safe-area-inset-top, 0px)) 14px max(16px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); gap: 6px; overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 18px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: #000; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.brand b { display: block; font-size: 17px; font-weight: 700; line-height: 1.15; }
.brand span { display: block; font-size: 13px; color: var(--ink-2); }
.mbrand { display: none; }
.brand i { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--c1), var(--c4)); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 14px; font-weight: 700; flex: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--c1) 35%, transparent); }
.brand b { display: block; font-size: 17px; font-weight: 700; line-height: 1.15; }
.brand span { display: block; font-size: 13px; color: var(--ink-2); }
.nav { display: grid; gap: 2px; }
.nav button { border: 0; background: none; border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; transition: background .12s; }
.nav button:hover { background: var(--fill); }
.nav button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.nav button svg { width: 22px; height: 22px; flex: none; }
.nav button .lbl { flex: 1; min-width: 0; }
.nav button .lbl small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); margin-top: -1px; }
.nav button[aria-current="page"] .lbl small { color: rgba(255,255,255,.8); }
.nav .badge { font-size: 12px; font-weight: 600; background: var(--fill-2); color: var(--ink); border-radius: 99px; padding: 1px 8px; min-width: 22px; text-align: center; }
.nav .badge.hot { background: var(--red-fill); color: #fff; }
.nav button[aria-current="page"] .badge { background: rgba(255,255,255,.25); color: #fff; }
.side .grow { flex: 1; min-height: 0; }
.side .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side .themes { display: flex; gap: 2px; background: var(--fill); border-radius: 10px; padding: 2px; margin: 4px 6px 0; }
.side .themes button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 5px 0; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.side .themes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.side .date { font-size: 13px; color: var(--ink-2); padding: 8px 12px 0; }
.main { margin-left: var(--sidew); min-width: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); padding-block: 32px calc(80px + var(--tabbar)); display: grid; gap: 34px; min-width: 0; }

/* планшет: узкая колонка с иконками и подписями */
@media (max-width: 1100px) and (min-width: 761px) {
  :root { --sidew: 92px; }
  .side { padding-inline: 8px; align-items: stretch; }
  .brand { flex-direction: column; padding: 2px 0 14px; gap: 6px; text-align: center; }
  .brand b { font-size: 12px; } .brand span, .side .date { display: none; }
  .nav button { flex-direction: column; gap: 4px; padding: 10px 2px; font-size: 11px; text-align: center; position: relative; }
  .nav button .lbl small { display: none; }
  .nav .badge { position: absolute; top: 4px; right: 10px; font-size: 10px; padding: 0 5px; min-width: 0; }
  .side .themes { flex-direction: column; margin: 4px 0 0; }
}
/* телефон: меню снизу */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --sidew: 0px; --tabbar: 66px; }
  .side { display: none; }
  .mbrand { display: flex; gap: 10px; align-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .mbrand img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #000; }
  .mbrand b { font-size: 16px; } .mbrand span { font-size: 12px; color: var(--ink-2); display: block; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-top: max(20px, env(safe-area-inset-top, 0px)); gap: 28px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tabbar button { flex: 1; border: 0; background: none; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--ink-3); cursor: pointer; padding: 3px 0; position: relative; }
  .tabbar button svg { width: 25px; height: 25px; }
  .tabbar button[aria-current="page"] { color: var(--accent); }
  .tabbar .dotc { position: absolute; top: 0; left: calc(50% + 7px); background: var(--red-fill); color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; line-height: 16px; }
}

/* заголовки */
.ptitle { display: flex; gap: 14px 20px; align-items: flex-end; flex-wrap: wrap; }
.ptitle .t { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.ptitle h1 { font: 700 34px/1.12 var(--font-display); letter-spacing: -.022em; margin: 0; text-wrap: balance; }
.ptitle p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 70ch; }
.ptitle .acts { display: flex; gap: 8px; flex-wrap: wrap; }
h2 { font: 600 22px/1.2 var(--font-display); letter-spacing: -.018em; margin: 0; }
h3 { font-size: 17px; font-weight: 600; margin: 0; }
.sec { display: grid; gap: 14px; min-width: 0; }
.sec-head { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.sec-head .sp { flex: 1; }
.rowarr { display: flex; gap: 4px; align-self: center; margin-left: auto; }
.sec-head .rowsub { flex-basis: 100%; }
.rowarr .btn { font-size: 20px; line-height: 1; min-width: 36px; justify-content: center; }
@media (hover: none) { .rowarr { display: none; } }
.banner { background: var(--surface); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; color: var(--ink-2); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: var(--warn-soft); color: var(--ink); box-shadow: none; }
.banner.info { background: var(--accent-soft); color: var(--ink); box-shadow: none; }
.banner .sp { flex: 1; }

/* кнопки */
.btn { border: 0; background: var(--fill); color: var(--ink); border-radius: 980px; padding: 9px 18px; min-height: 40px; cursor: pointer; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: background .15s, transform .1s; text-decoration: none; }
.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.good { background: var(--good-soft); color: var(--good); }
.btn.good:hover { background: color-mix(in srgb, var(--good) 22%, transparent); }
.btn.plain { background: none; color: var(--accent); padding-inline: 10px; }
.btn.plain:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 13px; min-height: 34px; font-size: 14px; }
.btn.icon { width: 40px; height: 40px; padding: 0; min-height: 0; }
.btn.icon.sm { width: 34px; height: 34px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 8px; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.seg .cnt { font-size: 12px; color: var(--ink-2); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; user-select: none; }
.toggle input { appearance: none; -webkit-appearance: none; width: 42px; height: 25px; border-radius: 99px; background: var(--fill-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked { background: var(--green-fill); }
.toggle input:checked::after { transform: translateX(17px); }
select.sel { border: 0; background-color: var(--fill); border-radius: 980px; padding: 8px 32px 8px 16px; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: right 16px center, right 12px center; background-size: 4px 4px; background-repeat: no-repeat; cursor: pointer; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .range { font-weight: 600; font-size: 16px; margin: 0 4px; font-variant-numeric: tabular-nums; }
.toolbar .sp { flex: 1; }

/* статусы */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--sc, var(--ink-2)); background: color-mix(in srgb, var(--sc, var(--ink-2)) 14%, transparent); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.sdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--sf, var(--ink-3)); display: inline-block; }
.st-idea { --sc: var(--s-idea); --sf: var(--f-idea); } .st-making { --sc: var(--s-making); --sf: var(--f-making); } .st-ready { --sc: var(--s-ready); --sf: var(--f-ready); } .st-scheduled { --sc: var(--s-scheduled); --sf: var(--f-scheduled); } .st-sent { --sc: var(--s-sent); --sf: var(--f-sent); } .st-published { --sc: var(--s-published); --sf: var(--f-published); } .st-failed { --sc: var(--s-failed); --sf: var(--f-failed); }
.steps { display: flex; gap: 3px; }
.steps i { width: 14px; height: 4px; border-radius: 99px; background: var(--fill-2); }
.steps i.on { background: var(--sf, var(--accent)); }

/* аватар персонажа */
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex: none; letter-spacing: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 75%, #fff), var(--pc)); }
.av.sm { width: 24px; height: 24px; font-size: 9px; }
.av { overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.ph { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--pc); }
.av.sm.ph { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--pc); }
.av.lg { width: 58px; height: 58px; font-size: 20px; }
.who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.who .t { min-width: 0; display: grid; }
.who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* виджеты-цифры */
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .widgets { grid-template-columns: 1fr 1fr; gap: 10px; } .widget .v { font-size: 28px; } }
.widget { background: var(--surface); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 4px; align-content: start; }
.widget .l { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.widget .v { font: 700 34px/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.widget .h { font-size: 13px; color: var(--ink-3); }

/* «Сегодня»: дела */
.hello { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--surface); border-radius: 22px; padding: 22px 26px; box-shadow: var(--shadow); }
.ring { width: 84px; height: 84px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hello h1 { font: 700 30px/1.15 var(--font-display); letter-spacing: -.02em; margin: 0; }
.hello p { margin: 4px 0 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 520px) { .hello { grid-template-columns: 1fr; padding: 18px; } .hello h1 { font-size: 26px; } .ring { width: 70px; height: 70px; } }
.tasks { display: grid; gap: 14px; }
.task { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.task-h { display: flex; gap: 14px; align-items: center; padding: 16px 20px; flex-wrap: wrap; }

@media (max-width: 600px) { .task .task-h > .t { flex-basis: calc(100% - 46px); } .trow .who small { white-space: normal; } .alerts .trow { gap: 6px 10px; } .alerts .trow > span[style] { min-width: 0 !important; flex-basis: 100% !important; order: 2; } .alerts .trow .tiny { margin-left: auto; } .drow:not(:has(.mini)) .empty-slot .lbl { display: none; } .task-h { padding: 14px 16px; } .task-h > .btn { margin-left: 46px; } .trow { padding: 12px 16px; } .trow .acts { width: 100%; } }
.task-h .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--accent); color: #fff; flex: none; }
.task.done .task-h .n { background: var(--green-fill); }
.task-h .t { flex: 1; min-width: 0; display: grid; }
.task-h .t b { font-size: 17px; font-weight: 600; }
.task-h .t span { font-size: 14px; color: var(--ink-2); }
.task.done .task-h .t b { color: var(--ink-2); }
.task-b { border-top: 1px solid var(--line); }
.trow { display: flex; gap: 14px; align-items: center; padding: 12px 20px; flex-wrap: wrap; position: relative; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow .who { flex: 1 1 220px; }
.task .trow .who small { white-space: normal; }
.trow .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.thumb { width: 44px; flex: none; }
.thumb .poster { border-radius: 8px; }

/* постер ролика 9:16 */
.poster { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--pc, var(--c1)) 70%, #fff) 0%, var(--pc, var(--c1)) 60%, color-mix(in srgb, var(--pc, var(--c1)) 60%, #000) 100%); isolation: isolate; max-width: 100%; }
.poster img, .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.poster video { opacity: 0; transition: opacity .25s; }
.poster.playing video { opacity: 1; }
.poster .okc { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-fill); color: #fff; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.poster .okc svg { width: 14px; height: 14px; }
.poster .dtag { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: 9px; font-weight: 600; line-height: 1; padding: 2px 4px; border-radius: 4px; letter-spacing: .02em; pointer-events: none; }
.vcard .poster .dtag, .igp .poster .dtag { font-size: 11px; padding: 3px 7px; bottom: 8px; }
.poster.gap { background: var(--fill); display: grid; place-items: center; color: var(--ink-3); font-size: 22px; font-weight: 300; box-shadow: inset 0 0 0 1.5px var(--fill-2); }
.poster .noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.25; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.25); overflow: hidden; }
.thumb .poster .noimg, .mini .poster .noimg { font-size: 0; }
.poster .shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); pointer-events: none; }
.poster .tl, .poster .tr { position: absolute; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.poster .tl { left: 8px; } .poster .tr { right: 8px; }
.chipg { background: rgba(0,0,0,.5); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.chipg.warn { background: rgba(255,59,48,.88); }
.chipg.ok { background: rgba(52,199,89,.95); }
.poster .bl { position: absolute; left: 10px; right: 10px; bottom: 9px; color: #fff; display: grid; gap: 1px; }
.poster .bl .big { font: 700 26px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.poster .bl .sub { font-size: 12px; opacity: .92; font-variant-numeric: tabular-nums; }
.poster .play { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255,255,255,.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; pointer-events: none; }
.poster .play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.vcard:hover .poster .play, .poster:focus-visible .play { opacity: 1; transform: none; }
.vcard:hover .poster.playing .play { opacity: 0; }
@media (hover: none) { .poster .play { opacity: .9; transform: none; width: 40px; height: 40px; margin: -20px 0 0 -20px; } }

/* карточки роликов */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 26px 16px; }
@media (max-width: 520px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.vcard { display: grid; gap: 8px; align-content: start; min-width: 0; touch-action: pan-y pan-x; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.vcard .poster { cursor: pointer; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.vcard:hover .poster { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.vcard .ti { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .ac { font-size: 13px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; min-width: 0; }
.vcard .ac span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard .acts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.eng { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.eng span { white-space: nowrap; }
.cv .e { position: absolute; left: 8px; right: 6px; bottom: 40px; font-size: 11px; display: flex; gap: 6px; flex-wrap: wrap; opacity: .92; }
.vcard.dim { opacity: .45; }
.vcard.taken .poster { box-shadow: 0 0 0 3px var(--green-fill), var(--shadow); }  /* уже сняли — ярко-зелёная рамка и в светлой теме */
.shelf-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 14px; margin: -6px -4px; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: thin; }
.shelf-row .vcard { width: 136px; flex: none; scroll-snap-align: start; }
.shelf-row.wide .vcard { width: 168px; }
.shelf-row.radar { gap: 16px; }
.shelf-row.radar .vcard { width: 196px; }
.vmore { flex: none; width: 120px; align-self: start; aspect-ratio: 9 / 16; scroll-snap-align: start; display: grid; place-content: center; gap: 4px; text-align: center; border: 0; border-radius: var(--r); background: var(--fill); color: var(--accent); font: inherit; font-size: 20px; cursor: pointer; }
.vmore b { font-size: 15px; } .vmore span { font-size: 12px; color: var(--ink-2); }
.vmore:hover { background: var(--fill-2); }
@media (max-width: 520px) { .shelf-row .vcard { width: 110px; } .shelf-row.wide .vcard { width: 140px; } .shelf-row.radar .vcard { width: 156px; } .shelf-row.radar { gap: 12px; } .shelf-row .vcard .ti { font-size: 13px; } }
.shelf { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px 8px; display: grid; gap: 12px; transition: box-shadow .15s, background .15s; min-width: 0; }
.calhead { display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap; }
.calhead h1 { font: 700 30px/1.1 var(--font-display); letter-spacing: -.02em; margin: 0 8px 0 0; }
.calhead .nav3 { display: flex; gap: 6px; align-items: center; }
.calhead .range { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 130px; text-align: center; }
.calhead .sp { flex: 1; }
.shelf.slim { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; }
.shelf.slim .slabel { font-weight: 600; font-size: 14px; white-space: nowrap; display: grid; flex: none; }
.shelf.slim .slabel small { font-weight: 400; font-size: 12px; color: var(--ink-2); }
.slimrow { display: flex; gap: 8px; overflow-x: auto; padding: 3px; min-width: 0; flex: 1; scrollbar-width: thin; }
.slimrow .mini { width: 210px; flex: none; }
@media (max-width: 760px) { .shelf.slim { flex-direction: column; align-items: stretch; gap: 8px; } .calhead { gap: 8px; } .calhead h1 { font-size: 26px; margin-right: auto; } .calhead .sp, .calhead .seg.span, .calsub .legend { display: none; } .calhead .range { min-width: 0; font-size: 15px; } .calsub .lead { font-size: 14px; flex-basis: auto; } }
.cell.idle { min-height: 64px; }
.hint { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.hint svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* мини-карточка (в календаре, в делах) */
.mini { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; background: var(--surface); border-radius: 10px; padding: 4px 6px 4px 4px; box-shadow: 0 0 0 1.5px var(--sc, var(--line)), 0 1px 3px rgba(0,0,0,.06); cursor: grab; touch-action: pan-x pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; text-align: left; border: 0; width: 100%; color: var(--ink); }
.mini .poster { width: 30px; border-radius: 6px; }
.mini .t { min-width: 0; display: grid; gap: 1px; }
.mini .t b { font-size: 12.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .t span { font-size: 11.5px; color: var(--sc, var(--ink-2)); font-weight: 600; display: flex; gap: 4px; align-items: center; white-space: nowrap; }

/* календарь: сетка */
.cal-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); scrollbar-width: thin;
  container-type: inline-size; overscroll-behavior-x: contain; /* 28.11: ширина дня от ширины окна (cqw); свайп у края не уводит браузер «назад» */ }
.cal { display: grid; width: max-content; }
.cal > div { border-bottom: 1px solid var(--line); }
.cal .hd { padding: 12px 6px 10px; font-size: 12px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; text-align: center; border-left: 1px solid var(--line); }
.cal .hd b { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 2px auto 0; font: 600 21px/1 var(--font-display); color: var(--ink); text-transform: none; letter-spacing: 0; font-variant-numeric: proportional-nums; }
.cal .hd.now b { color: #fff; background: var(--red-fill); border-radius: 50%; }
.cal .hd b span { display: block; line-height: 1; }
.cal .corner, .cal .side-c { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.cal .side-c { padding: 10px 12px; display: flex; align-items: center; box-shadow: 1px 0 0 var(--line); cursor: pointer; }
.cal .side-c .who { gap: 10px; }
.cal .side-c .who b { white-space: normal; font-size: 14px; line-height: 1.25; }
.cal .side-c .who b .ln { display: block; }
.cal .side-c .who small { font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.cal .side-c .who small:empty { display: none; }
.cell { min-height: 110px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; cursor: pointer; position: relative; border-left: 1px solid var(--line); transition: background .12s; }
.cell:hover { background: color-mix(in srgb, var(--fill) 50%, transparent); }

.cell.first { background-image: repeating-linear-gradient(135deg, var(--first-stripe) 0 6px, transparent 6px 12px); }
.cell .wl.fl { color: var(--gold); }
.cell.warm { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink-3) 14%, transparent) 0 6px, transparent 6px 12px); }
.cell .wl { font-size: 11px; color: var(--ink-2); font-weight: 600; text-align: center; line-height: 1.3; }
.cc { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 116px; padding: 5px 4px 6px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: inherit; cursor: grab; transition: background .12s, transform .12s; }
.cc:hover { background: var(--fill); }
.cc.st-published, .bcard.pub { cursor: pointer; }
.cc:active { transform: scale(.97); }
.ccv { position: relative; width: 46px; flex: none; }
.ccv .poster { width: 46px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ccv .poster .noimg { font-size: 0; }
.ccv .ok, .ccv .sd { position: absolute; display: grid; place-items: center; border: 2px solid var(--surface); border-radius: 50%; }
.ccv .ok { right: -7px; top: -7px; width: 22px; height: 22px; background: var(--green-fill); color: #fff; }
.ccv .ok svg { width: 13px; height: 13px; }
.ccv .sd { right: -5px; top: -5px; width: 14px; height: 14px; background: var(--sf); }
.ccv .sd.bad { width: 20px; height: 20px; right: -7px; top: -7px; color: #fff; font: 800 12px/1 var(--font); }
.cct { font-size: 11.5px; line-height: 1.25; font-weight: 500; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.cc .vw { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: -3px; }

.firstday { border: 1.5px dashed var(--yellow-fill); color: var(--gold); background: color-mix(in srgb, var(--yellow-fill) 16%, transparent); border-radius: 10px; padding: 5px 8px; font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; }
.firstday small { display: block; font-weight: 500; font-size: 11px; opacity: .85; }
.cell .add { margin: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); opacity: 0; transition: opacity .15s; font-size: 20px; }
.cell:hover .add, .cell:focus-visible .add { opacity: 1; }
.cell .moren { border: 0; font: 600 12px/1 var(--font); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 4px 9px; cursor: pointer; font-variant-numeric: tabular-nums; transition: filter .12s; }
.cell .moren:hover, .cell .moren[aria-expanded="true"] { filter: brightness(.94); }
/* 16.11: пометка «в архиве» / «убран» у вышедшего ролика */
.arch { color: var(--ink-3); font-weight: 600; }
/* окно «все ролики дня» — поповер в духе Apple: матовое стекло, сгруппированный список, тонкие разделители */
.daypop { position: fixed; z-index: 55; width: 300px; max-height: min(64vh, 460px); display: flex; flex-direction: column; background: var(--glass); backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px); border-radius: 18px; box-shadow: var(--shadow-lift), 0 0 0 .5px var(--line); overflow: hidden; transform-origin: top center; animation: dpin .2s cubic-bezier(.2,.8,.2,1); }
.daypop .dph { display: grid; gap: 2px; padding: 14px 16px 10px; }
.daypop .dph b { font: 600 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.daypop .dph span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.daypop .dpl { margin: 0 8px; background: var(--surface); border-radius: 12px; overflow-y: auto; min-height: 0; }
.daypop .dprow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 8px; gap: 12px; align-items: center; width: 100%; border: 0; background: none; color: var(--ink); text-align: left; padding: 8px 12px; cursor: pointer; font: inherit; position: relative; }
.daypop .dprow + .dprow::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: .5px; background: var(--line); }
.daypop .dprow:hover { background: var(--fill); } .daypop .dprow:active { background: var(--fill-2); }
.daypop .dprow:first-child { border-radius: 12px 12px 0 0; } .daypop .dprow:last-child { border-radius: 0 0 12px 12px; } .daypop .dprow:only-child { border-radius: 12px; }
.daypop .dprow .poster { width: 34px; border-radius: 7px; }
.daypop .dprow .poster .noimg { font-size: 0; }
.daypop .dpt { min-width: 0; display: grid; gap: 2px; }
.daypop .dpt b { font-size: 14px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.daypop .dpt small { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.daypop .dpt .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--sf, var(--ink-3)); flex: none; }
.daypop .dpchev { width: 7px; height: 7px; border-right: 1.8px solid var(--ink-3); border-top: 1.8px solid var(--ink-3); transform: rotate(45deg); opacity: .7; }
.daypop .dpadd { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface); color: var(--accent); font: 500 15px/1 var(--font); cursor: pointer; transition: background .12s; }
.daypop .dpadd:hover { background: var(--fill); } .daypop .dpadd:active { background: var(--fill-2); }
.daypop .dpadd svg { width: 16px; height: 16px; }
@keyframes dpin { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .daypop { animation: none; } }
.cell.flagged { box-shadow: inset 0 0 0 2px var(--warn); }
.cell .wmsg { font-size: 11px; color: var(--warn); line-height: 1.3; font-weight: 600; }
.legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); align-items: center; }
.legend .lok { width: 16px; height: 16px; border-radius: 50%; background: var(--green-fill); color: #fff; display: grid; place-items: center; }
.legend .lok svg { width: 10px; height: 10px; }
.calsub { display: flex; gap: 8px 20px; align-items: center; flex-wrap: wrap; margin-top: -6px; }
.calsub .lead { font-size: 15px; color: var(--ink-2); flex: 1 1 320px; }
.calsub .lead b { color: var(--ink); font-weight: 600; } .calsub .lead .ok { color: var(--good); font-weight: 600; } .calsub .lead .warn { color: var(--warn); font-weight: 600; }
.sstat { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); padding: 8px 12px 0; line-height: 1.35; }
.sstat i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-fill); flex: none; margin-top: 5px; }
.sstat.warn i { background: var(--orange-fill); } .sstat.bad i { background: var(--red-fill); }
.sstat b { display: block; color: var(--ink); font-weight: 600; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.ro { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: var(--fill); font-size: 15px; }
.ronums { gap: 10px; }
.ronums > div { background: var(--fill); border-radius: 12px; padding: 10px 14px; display: grid; }
.ronums b { font: 700 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.ronums span { font-size: 12px; color: var(--ink-2); }
[hidden] { display: none !important; }
.modeseg { margin-bottom: 10px; justify-self: start; width: max-content; max-width: 100%; }
.seg.big button { font-size: 15px; padding: 9px 18px; }
@media (max-width: 600px) {
  .modeseg, .toolbar .seg { display: flex; width: 100%; flex-wrap: nowrap; }
  .modeseg button, .toolbar .seg button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 6px; font-size: 13px; }
  .seg.big.modeseg button { font-size: 14px; padding: 9px 6px; }
  .seg .lm { display: none; }
}
.legend .hatch.yl { background: repeating-linear-gradient(135deg, var(--yellow-fill) 0 2px, transparent 2px 5px); }
.legend .hatch { width: 16px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 5px); }
.legend .flagbox { width: 14px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--warn); }
@media (max-width: 760px) { .cal .side-c { padding: 10px; justify-content: center; } .cal .side-c .who .t { display: none; } }

/* календарь: список по дням */
.days { display: grid; gap: 14px; }
.day { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.day-h { padding: 12px 18px; display: flex; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--line); }
.day-h b { font-size: 17px; font-weight: 600; }
.day-h .tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--red-fill); border-radius: 99px; padding: 1px 8px; }
.day-h .tag.tm { background: var(--accent); }
.drow { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 18px; min-height: 64px; }
.drow + .drow { border-top: 1px solid var(--line); }
.slot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 48px; border-radius: 12px; padding: 4px; cursor: pointer; }
.slot .mini { width: auto; max-width: 300px; flex: 1 1 200px; }
.slot .empty-slot { flex: 1; min-height: 44px; border: 1.5px dashed var(--fill-2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 14px; gap: 6px; }
.slot:hover .empty-slot { border-color: var(--accent); color: var(--accent); }
@media (max-width: 520px) { .drow { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 520px) { .drow:not(:has(.mini)) { grid-template-columns: minmax(0, 1fr) auto; } .drow:not(:has(.mini)) .slot { min-height: 0; } .drow:not(:has(.mini)) .empty-slot { flex: none; min-height: 36px; padding: 0 12px; font-size: 13px; } }

/* доска «Ролики» */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; align-items: start; }
@media (max-width: 760px) { .board { grid-auto-columns: 78%; } }
.col { background: color-mix(in srgb, var(--fill) 60%, transparent); border-radius: var(--r); padding: 10px; display: grid; gap: 10px; align-content: start; min-height: 260px; scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.col-h { display: grid; gap: 2px; padding: 2px 4px 6px; }
.col-h .r1 { display: flex; gap: 8px; align-items: center; }
.col-h b { font-size: 16px; font-weight: 700; color: var(--sc); }
.col-h .cnt { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); border-radius: 99px; padding: 0 8px; }
.col-h span { font-size: 13px; color: var(--ink-2); }
.bcard { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 9px; cursor: grab; touch-action: pan-x pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; transition: transform .15s, box-shadow .15s; }
.bcard:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bcard .poster { border-radius: 8px; }
.bcard .poster .noimg { font-size: 0; }
.bcard .t { min-width: 0; display: grid; gap: 4px; align-content: start; }
.bcard .t b { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .meta { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bcard .nx { grid-column: 1 / -1; }
.bcard .steps { width: 100%; } .bcard .steps i { flex: 1; width: auto; }
.bcard .nx .btn { width: 100%; white-space: normal; line-height: 1.2; font-size: 13px; padding: 7px 10px; min-height: 34px; }
.col .emptycol { border: 1.5px dashed var(--fill-2); border-radius: 14px; padding: 18px 10px; text-align: center; color: var(--ink-3); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 0; background: var(--fill); border-radius: 99px; padding: 5px 12px 5px 5px; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; color: var(--ink); }
.chip.nav0 { padding-left: 12px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* перетаскивание */
[data-drop].drop-ok { background: var(--accent-soft) !important; box-shadow: inset 0 0 0 2px var(--accent) !important; }
.shelf.drop-ok, .col.drop-ok { box-shadow: 0 0 0 3px var(--accent) !important; }
body.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.dragging .cell .add { opacity: 0; }
body.dragging .cell:hover { background: none; }
.ghost { position: fixed; z-index: 100; pointer-events: none; width: 92px; transform: translate(-50%, -60%) rotate(-3deg) scale(1.02); filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.ghost .poster { box-shadow: 0 0 0 2px #fff; }
.ghost .lbl { margin-top: 6px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; border-radius: 8px; padding: 3px 7px; text-align: center; line-height: 1.25; }
.lifting { opacity: .3; }
.dock { position: fixed; left: calc(50% + var(--sidew) / 2); bottom: calc(18px + var(--tabbar) + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; z-index: 90; background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); border-radius: 26px; padding: 30px 12px 12px; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); display: flex; gap: 6px; transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; pointer-events: none; max-width: calc(100% - 24px); }
.dock.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock .tg { width: 78px; flex: none; display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border-radius: 16px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.dock .tg .av { width: 46px; height: 46px; font-size: 15px; transition: transform .15s; }
.dock .tg.drop-ok .av { transform: scale(1.18); }
.dock .cap { position: absolute; top: 9px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 520px) { .dock .tg { width: 52px; } .dock .tg .av { width: 40px; height: 40px; } }

/* свежесть и рекомендации */
.chipg.hot { background: rgba(255,59,48,.92); }
.chipg.fresh { background: rgba(255,149,0,.92); }
.chipg.views { background: rgba(0,0,0,.55); }
.reason { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.reason b { color: var(--bad); font-weight: 600; }
.takers { display: flex; gap: 3px; }
.takers .av { width: 20px; height: 20px; font-size: 8px; border: 1.5px solid var(--surface); }

/* аккаунты */
.accgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.acc { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; align-content: start; cursor: pointer; transition: transform .2s, box-shadow .2s; text-align: left; border: 0; color: var(--ink); }
.acc:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.acc .top { display: flex; gap: 14px; align-items: center; }
.acc .top .t { min-width: 0; display: grid; }
.acc .top b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc .top small { color: var(--ink-2); font-size: 13px; }
.acc .nums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.acc .nums b { display: block; font: 700 19px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.acc .nums span { font-size: 12px; color: var(--ink-2); }
.acc .strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.acc .strip .poster { border-radius: 8px; }
.acc .strip .poster .noimg { font-size: 0; }
.acc.none { opacity: .9; align-content: start; }
.acc > .pill { justify-self: start; }
.acc .strip .bl .sub { font-size: 11px; white-space: nowrap; font-weight: 600; }
.ava { width: 64px; height: 64px; border-radius: 50%; flex: none; padding: 3px; background: linear-gradient(45deg, #F9CE34, #EE2A7B, #6228D7); }
.ava img, .ava span { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--pc); }
.ava.big { width: 150px; height: 150px; padding: 4px; }
.ava.big span { font-size: 40px; }
.ava.off { background: var(--fill-2); }
.igp { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 28px 40px; align-items: center; }
.igp .t { display: grid; gap: 12px; min-width: 0; }
.igp .r1 { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.igp .r1 h1 { font: 600 24px/1.2 var(--font-display); margin: 0; }
.igp .nums { display: flex; gap: 28px; font-size: 16px; flex-wrap: wrap; }
.igp .nums b { font-weight: 700; font-variant-numeric: tabular-nums; }
.igp .bio { white-space: pre-wrap; font-size: 15px; line-height: 1.45; }
.igp .bio b { display: block; }
.botlink { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill); max-width: 100%; }
.botlink .flabel { margin: 0; }
.botlink code { font-size: 13px; overflow-wrap: anywhere; user-select: all; min-width: 0; }
@media (max-width: 700px) { .igp { grid-template-columns: 1fr; padding: 20px; gap: 16px; justify-items: start; } .ava.big { width: 96px; height: 96px; } .ava.big span { font-size: 28px; } .igp .nums { gap: 18px; } }
.iggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
@media (max-width: 520px) { .iggrid { grid-template-columns: repeat(3, 1fr); gap: 3px; } .iggrid .poster { border-radius: 4px; } .iggrid .bl .sub { font-size: 11px; } }
.iggrid .poster { border-radius: 10px; cursor: pointer; }
.iggrid .vcard { gap: 0; }
.back { border: 0; background: none; color: var(--accent); font-size: 16px; cursor: pointer; padding: 0; display: inline-flex; gap: 4px; align-items: center; justify-self: start; }
.back svg { width: 18px; height: 18px; }
.hits { display: grid; gap: 10px; }

/* статистика */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
.card svg { display: block; width: 100%; height: auto; }
.card text { fill: var(--ink-3); font: 11px var(--font); }
.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; white-space: nowrap; }
td { border-top: 1px solid var(--line); }
th { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.r { text-align: right; }
@media (max-width: 600px) {  /* на телефоне таблица превращается в карточки: имя целиком, цифры с подписями */
  .tbl-wrap table, .tbl-wrap tbody, .tbl-wrap tr, .tbl-wrap td { display: block; width: 100%; }
  .tbl-wrap thead { display: none; }
  .tbl-wrap tr { padding: 12px 16px; }
  .tbl-wrap tr + tr { border-top: 1px solid var(--line); }
  .tbl-wrap td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; white-space: normal; }
  .tbl-wrap td[data-l]::before { content: attr(data-l); color: var(--ink-2); font-size: 14px; font-weight: 400; }
  .tbl-wrap td:first-child { padding-bottom: 8px; }
}

/* телефоны */
.phones { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.phone { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; align-content: start; }
.phone .hdr { display: flex; gap: 14px; align-items: center; }
.phone .hdr .t { flex: 1; min-width: 0; display: grid; }
.phone .hdr b { font-size: 18px; font-weight: 600; }
.phone dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.phone dt { color: var(--ink-2); }
.phone dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bar { height: 6px; background: var(--fill); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--pc, var(--accent)); }

/* окна */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
@media (prefers-reduced-motion: no-preference) { .overlay { animation: fade .18s ease-out; } .sheet { animation: rise .26s cubic-bezier(.2,.8,.2,1); } @keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(16px) scale(.98); opacity: 0; } } }
.sheet { background: var(--surface); color: var(--ink); border-radius: 22px; width: min(620px, 100%); max-height: 100%; overflow: auto; padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow-lift); }
.sheet.wide { width: min(980px, 100%); }
/* страница конкурента */
.comp-top { display: flex; gap: 16px; align-items: center; }
.comp-ava { width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover; background: var(--fill); display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--ink-2); }
.comp-top .nm { min-width: 0; display: grid; gap: 4px; }
.comp-top .nm b { font-size: 20px; line-height: 1.2; }
.comp-top .nm span { color: var(--ink-2); font-size: 14px; }
.comp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.comp-stats div { background: var(--fill); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.comp-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.comp-stats span { font-size: 12px; color: var(--ink-2); }
.comp-bio { white-space: pre-line; font-size: 14px; color: var(--ink-2); max-height: 7.5em; overflow: auto; }
.cvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
a.cv { display: block; text-decoration: none; }
.cv { position: relative; border: 0; padding: 0; background: var(--fill); border-radius: 12px; overflow: hidden; aspect-ratio: 120 / 213; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.cv .im { position: absolute; inset: 0; background-repeat: no-repeat; }
.cv .sh { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.72)); }
.cv .v { position: absolute; left: 8px; bottom: 22px; font-weight: 700; font-size: 15px; }
.cv .d { position: absolute; left: 8px; bottom: 6px; font-size: 11px; opacity: .85; }
.cv .x { position: absolute; left: 6px; top: 6px; }
.cv .in { position: absolute; right: 6px; top: 6px; }
.cv.hit { box-shadow: 0 0 0 3px var(--green-fill); }
.cv .nt { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; font-size: 12px; color: var(--ink-2); text-align: center; }
.comp-list { display: grid; gap: 8px; }
.comp-row { display: flex; gap: 12px; align-items: center; border: 0; background: var(--fill); border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.comp-row .comp-ava { width: 44px; height: 44px; font-size: 16px; }
.comp-row .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.comp-row .t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-row .t span { font-size: 13px; color: var(--ink-2); }
.comp-row .n { text-align: right; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.comp-row .n b { display: block; color: var(--ink); font-size: 15px; }
.comp-row .mh { font-style: normal; display: none; }
@media (max-width: 600px) { .comp-row { padding: 10px; gap: 10px; } .comp-row .nh { display: none; } .comp-row .mh { display: block; color: var(--good); font-weight: 600; } .comp-row .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; }

.sheet-head { display: flex; gap: 12px; align-items: flex-start; }
.sheet-head .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sheet-head h2 { text-wrap: balance; }
.sheet-head .saved { font-size: 13px; color: var(--good); font-weight: 600; opacity: 0; transition: opacity .3s; white-space: nowrap; padding-top: 10px; }
.sheet-head .saved.on { opacity: 1; }
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.split .poster video { opacity: 1; object-fit: contain; background: #000; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } .split > .media { max-width: 200px; margin: 0 auto; width: 100%; } }
.form { display: grid; gap: 18px; min-width: 0; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .form .two, .form .three { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .flabel { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .titlein { width: 100%; border: 1px solid transparent; border-radius: 11px; padding: 10px 13px; background: var(--fill); min-width: 0; transition: border-color .15s, background .15s; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .titlein:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
.titlein { font: 700 22px/1.25 var(--font-display); background: transparent; padding: 4px 8px; margin-left: -8px; resize: none; overflow: hidden; display: block; color: inherit; }
.titlein:hover { background: var(--fill); }
.inrow { display: flex; gap: 6px; }
.foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.foot .sp { flex: 1; }
.stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stepper button { border: 0; background: none; cursor: pointer; display: grid; justify-items: center; gap: 6px; padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--ink-3); position: relative; }
.stepper button i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); font-style: normal; font-size: 13px; z-index: 1; }
.stepper button::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px; background: var(--fill); }
.stepper button:first-child::before { display: none; }
.stepper button.done i { background: var(--sf); color: #fff; }
.stepper button.done::before, .stepper button.cur::before { background: var(--sf); }
.stepper button.cur i { background: var(--sf); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf) 25%, transparent); }
.stepper button.cur { color: var(--sc); }
.stepper button:hover i { transform: scale(1.08); }
.pchips { display: flex; gap: 6px; flex-wrap: wrap; }
.pchips button { border: 0; background: var(--fill); border-radius: 99px; padding: 4px 12px 4px 4px; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; }
.pchips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.daygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .daygrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.daygrid button { border: 0; background: var(--fill); border-radius: 14px; padding: 10px 4px; cursor: pointer; display: grid; justify-items: center; gap: 1px; font-size: 12px; color: var(--ink-2); font-weight: 500; position: relative; }
.daygrid button b { font: 600 22px/1.1 var(--font-display); color: var(--ink); }
.daygrid button:hover { background: var(--accent-soft); }
.daygrid button.busy { background: var(--warn-soft); }
.daygrid button.warmd { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink-3) 18%, transparent) 0 5px, transparent 5px 10px); }
.daygrid button.cur { background: var(--accent); color: #fff; }
.daygrid button.cur b { color: #fff; }
.daygrid button .note { font-size: 10px; color: var(--warn); font-weight: 600; }
.daygrid button.cur .note { color: #fff; }
.prompt { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--fill); padding: 14px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; border: 0; width: 100%; resize: none; color: var(--ink); }
.empty { padding: 28px; text-align: center; color: var(--ink-2); background: var(--surface); border-radius: var(--r); font-size: 15px; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.helpsteps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.helpsteps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: s; }
.helpsteps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.helpsteps b { display: block; font-size: 16px; }
.helpsteps span { color: var(--ink-2); font-size: 15px; }
.planlist { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.planrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; background: var(--fill); border-radius: 12px; }
.planrow .poster { border-radius: 7px; }
.planrow .poster .noimg { font-size: 0; }
.moresheet { display: grid; gap: 6px; }
.moresheet button { border: 0; background: var(--fill); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 17px; font-weight: 500; cursor: pointer; text-align: left; }
.moresheet button svg { width: 24px; height: 24px; color: var(--accent); }

/* плеер — как окно ролика в календаре: светлая карточка, фон чуть затемнён */
.player { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; color: var(--ink); }
.player .pbg { position: absolute; inset: 0; }
.player .pcard { position: relative; z-index: 1; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lift); padding: 20px; display: grid; grid-template-columns: auto 380px; grid-template-rows: auto 1fr; gap: 12px 24px; max-height: calc(100vh - 32px); }
.player .pside { position: relative; z-index: 1; }
.player .pside .btn { width: 52px; height: 52px; background: var(--surface); box-shadow: var(--shadow-lift); }
.player .stage { grid-column: 1; grid-row: 1 / span 2; position: relative; height: min(80vh, 780px); aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; touch-action: pan-x; }
.player .stage video, .player .stage img { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.player .stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .stage .tap { position: absolute; inset: 0; }
.player .stage .btn { background: rgba(0,0,0,.45); color: #fff; }
.player .mute { position: absolute; right: 12px; bottom: 14px; }
.player .pbar { position: absolute; left: 0; right: 64px; bottom: 0; height: 30px; z-index: 3; cursor: pointer; touch-action: none; display: flex; align-items: flex-end; }
.player .pbar b { position: relative; display: block; width: 100%; height: 4px; margin: 0 0 6px 12px; border-radius: 2px; background: rgba(255,255,255,.3); transition: height .12s; }
.player .pbar:hover b, .player .pbar.on b { height: 7px; }
.player .pbar i { display: block; height: 100%; border-radius: inherit; background: #fff; width: 0; }
.player .pbar .ptime { position: absolute; left: 12px; bottom: 16px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); font-variant-numeric: tabular-nums; pointer-events: none; }
.player .ptop { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 8px; }
.player .pclose { position: absolute; top: 12px; right: 12px; z-index: 4; }
.player .ptop .pnum { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.player .btn:disabled { opacity: .35; }
.player .info { grid-column: 2; grid-row: 2; display: grid; gap: 14px; max-height: calc(min(80vh, 780px) - 56px); overflow: auto; align-content: start; min-width: 0; }
.player .info h2 { font-size: 21px; line-height: 1.25; }
.player .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.player .meta div { background: var(--fill); padding: 10px 12px; display: grid; }
.player .meta b { font: 700 20px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.player .meta span { font-size: 11px; color: var(--ink-2); }
.player .txt { font-size: 15px; line-height: 1.5; background: var(--fill); border-radius: 14px; padding: 12px 14px; white-space: pre-wrap; }
.player .count, .player .grey { font-size: 13px; color: var(--ink-2); }
.player .grey { font-size: 14px; }
.player .pick { display: flex; gap: 6px; flex-wrap: wrap; }
.player .pick .btn { padding-left: 5px; }
.player a { color: var(--accent); }
@media (max-width: 900px) {
  .player { padding: 0; }
  .player .pside, .player .pbg { display: none; }
  .player .pcard { position: fixed; inset: 0; border-radius: 0; max-height: none; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: max(10px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px)); }
  .player .ptop { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 4px 0 6px; flex: none; }
  .player .pclose { position: fixed; top: max(10px, env(safe-area-inset-top, 0px)); right: 16px; }
  .player .info { max-height: none; overflow: visible; flex: none; }
  .player .stage { height: min(62vh, calc((100vw - 32px) * 16 / 9)); width: auto; align-self: center; flex: none; }
}

.toast { position: fixed; z-index: 95; left: calc(50% + var(--sidew) / 2); transform: translateX(-50%); bottom: calc(24px + var(--tabbar) + env(safe-area-inset-bottom, 0px)); background: rgba(30,30,32,.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; padding: 12px 12px 12px 18px; border-radius: 16px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: var(--shadow-lift); display: flex; gap: 14px; align-items: center; }
.toast button { border: 0; background: none; color: #64D2FF; font-weight: 600; cursor: pointer; padding: 4px 6px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: tup .22s cubic-bezier(.2,.8,.2,1); } @keyframes tup { from { transform: translate(-50%, 10px); opacity: 0; } } }

.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:24px}.auth-card{width:min(420px,100%);padding:32px;background:var(--surface);border-radius:24px;box-shadow:var(--shadow);display:grid;gap:22px}.auth-card h1{margin:0;font-size:28px;letter-spacing:-.03em}.auth-card .brand{padding:0}.auth-card form{display:grid;gap:18px}.auth-card input{width:100%;padding:12px 14px;border:1px solid var(--line);background:var(--fill);border-radius:12px}.auth-card label{display:grid;gap:8px;font-size:14px}.auth-error{color:var(--bad);margin:0}.auth-card .btn{justify-content:center}.pult-job{padding:10px 14px;background:var(--fill);border-radius:12px}.auth-card button:disabled{opacity:.5} [hidden]{display:none!important}

/* Авторизация дополняет футер эталона, не вытесняя статус за край. */
.side-footer { display:flex; align-items:center; justify-content:space-between; gap:4px; margin:6px 6px 0; }
.side-footer .date { padding:0; font-size:12px; }
.side-footer button { font-size:12px; padding:4px 6px; min-height:0; line-height:1.3; }
/* Невысокое окно ноутбука: все пункты и выход остаются на экране. */
@media (min-width: 1101px) and (max-height: 720px) {
  .side { padding-top:12px; padding-bottom:12px; gap:4px; }
  .side .brand { padding-bottom:8px; }
  .side .nav button { padding-top:7px; padding-bottom:7px; }
  .side .themes { margin-top:0; }
  .side .sstat { padding-top:4px; }
  .side-footer { margin-top:2px; }
}

/* Full competitor catalogue: real lazy covers and visible playback failures. */
.cv img.im { width:100%; height:100%; object-fit:cover; }
.media-state:not(:empty) { padding:10px 12px; background:var(--fill); border-radius:10px; }

/* радар «Что переснять» (01.11): сетка карточек вниз вместо рядов вправо */
.vcard.pick .why { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard.pick .okt { color: var(--good); font-weight: 600; }
.vcard.pick .tl, .vcard.pick .tr { display: flex; gap: 4px; flex-wrap: wrap; }
.more-btn { display: flex; justify-content: center; padding: 18px 0 4px; }
.player .stage .yt-open { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); background: rgba(0,0,0,.72); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.player .stage .th-post { position: absolute; inset: 0; overflow-y: auto; padding: 28px 22px; color: #F5F5F7; font-size: 17px; line-height: 1.45; white-space: pre-wrap; background: #101012; }
