/* Glassgram — «Liquid Glass». Основа: графит + жидкое стекло с бликом по кромке. */
:root {
  --bg-0: #0f1417; --bg-1: #1b2429; --bg-2: #36444a; --bg-3: #66777d;
  --text: #eef3f4; --text-2: #a9b7bb; --text-3: #74848a;

  --glass: linear-gradient(180deg, rgb(255 255 255 / .15) 0%, rgb(255 255 255 / .06) 42%, rgb(255 255 255 / .035) 100%);
  --glass-hi: linear-gradient(180deg, rgb(255 255 255 / .22) 0%, rgb(255 255 255 / .09) 45%, rgb(255 255 255 / .05) 100%);
  --rim: linear-gradient(180deg, rgb(255 255 255 / .78) 0%, rgb(255 255 255 / .16) 16%, rgb(255 255 255 / .05) 55%, rgb(255 255 255 / .1) 82%, rgb(255 255 255 / .5) 100%);
  --rim-soft: linear-gradient(180deg, rgb(255 255 255 / .42) 0%, rgb(255 255 255 / .08) 22%, rgb(255 255 255 / .03) 60%, rgb(255 255 255 / .22) 100%);
  --raised: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(0 0 0 / .3), 0 0 0 1px rgb(0 0 0 / .22), 0 12px 30px rgb(0 0 0 / .32);
  --pressed: inset 0 2px 8px rgb(0 0 0 / .5), inset 0 -1px 0 rgb(255 255 255 / .1);
  --well: rgb(0 0 0 / .24);
  --line: rgb(255 255 255 / .08);
  --blur: blur(18px) saturate(1.4);

  /* выделенный цвет — бордовый из карточки свечения */
  --accent: #8e2236; --accent-2: #b5404f; --accent-hi: #dc8492; --accent-ink: #fff4f6;
  --accent-edge: rgb(60 8 18 / .55); --accent-glow: rgb(150 34 54 / .5);
  --wine: #7c1d2a;
  --ok: #6fd3a3; --warn: #f1c35b; --danger: #ff8a8a; --info: #8ec5ff;

  --r-sm: 10px; --r: 14px; --r-lg: 22px; --r-xl: 28px; --pill: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --dur: 200ms;
  --side-w: 264px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 15px; color: var(--text); letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70vw 55vh at 100% 110%, rgb(140 165 170 / .32), transparent 70%),
    radial-gradient(50vw 40vh at 0% 0%, rgb(124 29 42 / .16), transparent 70%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 35%, var(--bg-2) 78%, var(--bg-3) 100%);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid rgb(255 255 255 / .75); outline-offset: 2px; }
a { color: inherit; }
/* скроллбары: тонкие стеклянные внутри панелей; у самой страницы полосы нет */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: linear-gradient(180deg, rgb(255 255 255 / .34), rgb(255 255 255 / .14)) padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgb(255 255 255 / .5), rgb(255 255 255 / .24)) padding-box; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .28) transparent; } }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- стекло: блик по кромке как у «Upload» ---------- */
.glass, .btn, .orb, .seg, .field-glass {
  position: relative; isolation: isolate;
  background: var(--glass); box-shadow: var(--raised);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.glass::before, .btn::before, .orb::before, .seg::before, .field-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass.soft::before { background: var(--rim-soft); }
.well { background: var(--well); box-shadow: var(--pressed); border: 1px solid rgb(255 255 255 / .05); }

/* блестящий текст — только в главных местах */
.shine {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f3 38%, #b9c5ca 72%, #dfe6e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgb(0 0 0 / .45));
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0;
  border-radius: var(--pill); cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { background: var(--glass-hi); }
.btn:active { transform: scale(.97); box-shadow: var(--pressed); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.accent {
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent-2) 30%, var(--accent) 100%); color: var(--accent-ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 0 0 1px var(--accent-edge), 0 10px 26px var(--accent-glow);
}
.btn.accent::before { background: linear-gradient(180deg, rgb(255 255 255 / .9), rgb(255 255 255 / .1) 30%, transparent 70%, rgb(255 200 210 / .45)); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn.ghost::before { display: none; }
.btn svg { width: 16px; height: 16px; }

/* круглая кнопка как на референсе: светлее к низу, яркое кольцо */
.orb {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0;
  background:
    radial-gradient(110% 70% at 50% 115%, rgb(255 255 255 / .3), transparent 62%),
    linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .03));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .35), 0 0 0 1px rgb(0 0 0 / .4), 0 8px 18px rgb(0 0 0 / .35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.orb::before { padding: 1.5px; background: linear-gradient(180deg, rgb(255 255 255 / .95), rgb(255 255 255 / .2) 35%, rgb(255 255 255 / .12) 60%, rgb(255 255 255 / .85)); }
.orb:active { transform: scale(.94); box-shadow: var(--pressed), 0 0 0 1px rgb(0 0 0 / .4); }
.orb[disabled] { opacity: .35; cursor: not-allowed; }
.orb svg { width: 20px; height: 20px; stroke: url(#gg-chrome); filter: drop-shadow(0 1px 0 rgb(0 0 0 / .5)); }
.orb.accent { background: radial-gradient(110% 70% at 50% 115%, rgb(255 210 220 / .45), transparent 62%), linear-gradient(180deg, var(--accent-2), var(--accent));
              box-shadow: inset 0 1px 1px rgb(255 255 255 / .6), 0 0 0 1px var(--accent-edge), 0 8px 22px var(--accent-glow); }
.orb.accent svg { stroke: var(--accent-ink); filter: drop-shadow(0 1px 0 rgb(0 0 0 / .35)); }
.orb.sm { width: 36px; height: 36px; }
.orb.sm svg { width: 17px; height: 17px; }

/* сегмент Inbox/Draft */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pill); }
.seg button { position: relative; z-index: 2; border: 0; background: none; height: 32px; padding: 0 16px; border-radius: var(--pill); color: var(--text-2);
              cursor: pointer; font-size: 13.5px; white-space: nowrap; transition: color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.seg button[aria-pressed="true"] { color: var(--text); background: rgb(0 0 0 / .32); box-shadow: var(--pressed); }

/* поля */
.input { width: 100%; height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid rgb(255 255 255 / .06); background: var(--well);
         box-shadow: var(--pressed); outline: none; }
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: rgb(255 255 255 / .3); }
select.input { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%), linear-gradient(var(--well), var(--well));
               background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px, 0 0; background-size: 5px 5px, 5px 5px, 100% 100%; background-repeat: no-repeat; }
select.input option { background: #1b2429; }
/* выпадающий список в стиле стекла (заменяет системный select) */
.gsel { position: relative; min-width: 200px; }
.gsel-btn { width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; border-radius: var(--r); cursor: pointer; text-align: left;
            border: 1px solid rgb(255 255 255 / .06); background: var(--well); box-shadow: var(--pressed); }
.gsel-btn:hover { border-color: rgb(255 255 255 / .16); }
.gsel-btn > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsel-btn svg { width: 16px; height: 16px; flex: none; color: var(--text-2); transition: transform var(--dur) var(--ease); }
.gsel.open .gsel-btn svg { transform: rotate(180deg); }
.gsel-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; border-radius: var(--r);
             max-height: 264px; overflow: auto; background: linear-gradient(180deg, rgb(54 65 70 / .97), rgb(30 37 41 / .98)); animation: pop 160ms var(--ease); }
.gsel-list li { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px; }
.gsel-list li.hl { background: rgb(255 255 255 / .08); }
.gsel-list li[aria-selected="true"] { background: rgb(0 0 0 / .3); box-shadow: var(--pressed); }
.gsel-list li .ck { width: 16px; flex: none; color: var(--accent-hi); font-weight: 700; }
.asg-f .gsel-btn { height: 38px; }
/* стеклянные карточки создают свой слой — карточку с открытым списком поднимаем над соседями */
.glass:has(.gsel.open) { z-index: 30; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--text-2); }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 16px; padding: 16px; min-height: 100vh; transition: grid-template-columns 260ms var(--ease); }
.shell.collapsed { --side-w: 84px; }
.side { position: sticky; top: 16px; height: calc(100vh - 32px); border-radius: var(--r-xl); padding: 14px 12px; display: flex; flex-direction: column; gap: 6px;
        background: linear-gradient(180deg, rgb(18 23 27 / .82), rgb(18 23 27 / .58)); overflow: hidden; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; min-height: 52px; }
.logo { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.logo svg { width: 24px; height: auto; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .5)); position: relative; z-index: 2; }
.brand b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.collapse { margin-left: auto; }
.collapse svg { transition: transform 260ms var(--ease); }
.shell.collapsed .collapse svg { transform: rotate(180deg); }
/* поле поиска: одно на всё приложение — высота как у полей ввода, рамка и подсветка при вводе */
.find { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border-radius: var(--r); margin-bottom: 12px; color: var(--text-3);
        border: 1px solid rgb(255 255 255 / .06); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease); }
.find.well { flex: none; background: rgb(34 40 44 / .96); box-shadow: inset 0 2px 6px rgb(0 0 0 / .35), inset 0 -1px 0 rgb(255 255 255 / .06); }
.find:focus-within { color: var(--text-2); border-color: rgb(255 255 255 / .2); box-shadow: var(--pressed), 0 0 0 3px rgb(181 64 79 / .2); }
.find svg { width: 16px; height: 16px; flex: none; }
a.list-row, a.card, a.ci { text-decoration: none; color: inherit; }
.find input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 14.5px; }
.find input:focus-visible { outline: none; }
.find input::placeholder { color: var(--text-3); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid rgb(255 255 255 / .2); color: var(--text-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2);
         text-decoration: none; font-size: 14px; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav a:hover { color: var(--text); background: rgb(255 255 255 / .05); }
.nav a.active { color: var(--text); background: var(--glass); box-shadow: var(--raised); }
.nav a.active::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--rim);
                        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.nav svg { width: 19px; height: 19px; flex: none; }
.nav .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.side .label { padding: 16px 12px 6px; white-space: nowrap; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); min-width: 0; }
.me .t { flex: 1; min-width: 0; }
.me b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me span { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.shell.collapsed .side :is(.brand b, .find, .nav .txt, .nav .count, .side-label, .me .t) { display: none; }
.shell.collapsed .brand { flex-direction: column; gap: 10px; }
.shell.collapsed .collapse { margin: 0; }
.shell.collapsed .nav a { justify-content: center; padding: 0; }
.shell.collapsed .me { justify-content: center; flex-direction: column; }

.main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mbar { display: none; }
.scrim { display: none; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 2px 4px 0; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.025em; flex: 1; min-width: 220px; line-height: 1.15; }
.page-head h1 small { display: block; margin-bottom: 8px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- карточки ---------- */
.card { border-radius: var(--r-lg); padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card h3 .label { margin-left: auto; }
.grid { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi .label { display: block; margin-bottom: 14px; }
.kpi strong { display: block; font-family: var(--mono); font-size: 32px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.kpi span.sub { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.kpi em { font-style: normal; color: var(--ok); }
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r); }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; margin-bottom: 4px;
           background: var(--glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 0 1px rgb(0 0 0 / .3); }
.step.done .n { color: var(--ok); }
.step b { font-size: 14px; }
.step p { margin: 0 0 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; flex: 1; }
.step .btn { align-self: flex-start; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 200px; padding-top: 28px; }
.bar { position: relative; min-height: 6px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgb(255 255 255 / .18), rgb(255 255 255 / .04));
       box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 0 0 1px rgb(255 255 255 / .12); transform-origin: bottom; animation: grow 700ms var(--ease) both; }
.bar.hot { background: linear-gradient(180deg, var(--accent-hi), var(--accent-2) 35%, var(--accent)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 0 0 1px rgb(240 160 175 / .5), 0 0 30px var(--accent-glow); }
.bar .v { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px;
          background: rgb(0 0 0 / .5); border: 1px solid rgb(255 255 255 / .2); white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 8px; text-align: center; }
.days span { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
@keyframes grow { from { transform: scaleY(.04); } }

/* бордовое свечение, ближе к графиту */
.glow { overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 290px; text-align: center;
        background:
          radial-gradient(120% 70% at 50% 128%, rgb(146 34 52 / .78), transparent 62%),
          radial-gradient(60% 40% at 50% 100%, rgb(200 80 96 / .25), transparent 70%),
          linear-gradient(180deg, rgb(28 30 34 / .9), rgb(38 26 31 / .92));
        box-shadow: inset 0 -24px 46px rgb(124 29 42 / .35), 0 0 0 1px rgb(0 0 0 / .3), 0 18px 40px rgb(80 14 26 / .35); }
.glow::before { background: linear-gradient(180deg, rgb(255 225 230 / .55), rgb(255 255 255 / .06) 25%, rgb(255 255 255 / .03) 60%, rgb(240 150 165 / .55)); }
.glow svg.curve { position: absolute; top: 52px; left: 22px; width: calc(100% - 44px); height: 124px; overflow: visible; }
.glow strong { position: relative; font-size: 56px; font-weight: 300; letter-spacing: -.03em; font-family: var(--mono); }
.glow .tag { position: absolute; top: 16px; right: 16px; font-size: 11px; padding: 4px 10px; border-radius: var(--pill); z-index: 2; }
.glow .label { position: absolute; top: 21px; left: 18px; }
.glow p { position: relative; margin: 4px 0 4px; color: #d7c3c7; font-size: 13px; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); margin-bottom: 8px; min-width: 0; }
.list-row .t { flex: 1; min-width: 0; }
.list-row > svg { width: 18px; height: 18px; flex: none; color: var(--text-2); }
button.list-row:hover { background: rgb(255 255 255 / .06); }
.pick-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pick-head .find { flex: 1; margin: 0; }
.pick-list { max-height: 340px; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.list-row.pick { width: 100%; border: 0; cursor: pointer; text-align: left; color: inherit; }
.list-row.pick .check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgb(0 0 0 / .35); box-shadow: var(--pressed);
                        display: grid; place-items: center; transition: background var(--dur) var(--ease); }
.list-row.pick.on .check { background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 0 12px var(--accent-glow); }
.list-row.pick.on .check::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pick-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.list-row b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .t > span { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.st.ok { color: var(--ok); } .st.warn { color: var(--warn); } .st.danger { color: var(--danger); } .st.info { color: var(--info); } .st.off { color: var(--text-3); }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; border: 1px solid rgb(255 255 255 / .16); color: var(--text-2); white-space: nowrap; }

.ava { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 600; position: relative;
       background: radial-gradient(100% 70% at 50% 110%, rgb(255 255 255 / .22), transparent 60%), linear-gradient(180deg, hsl(var(--h, 200) 18% 34%), hsl(var(--h, 200) 16% 22%));
       box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 0 1px rgb(0 0 0 / .3); }
.ava.sm { width: 32px; height: 32px; font-size: 11px; }

/* ---------- переписки: на всю высоту ---------- */
.ws { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); padding: 0; overflow: hidden; height: calc(100vh - 32px); }
.chats { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--line); }
.chats-head { padding: 16px 14px 10px; display: grid; gap: 10px; }
.chats-head .top { display: flex; align-items: center; gap: 10px; }
.chats-head h2 { margin: 0; font-size: 20px; font-weight: 600; flex: 1; letter-spacing: -.02em; }
.chats-list { flex: 1; overflow: auto; padding: 4px 10px 12px; }
.ci { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r); border: 0; background: none; text-align: left; cursor: pointer;
      color: inherit; text-decoration: none; position: relative; transition: background var(--dur) var(--ease); }
.ci:hover { background: rgb(255 255 255 / .05); }
.ci.active { background: var(--glass); box-shadow: var(--raised); }
.ci.active::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--rim-soft);
                     -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ci .t { flex: 1; min-width: 0; }
.ci.folder .ava { background: linear-gradient(180deg, rgb(255 255 255 / .16), rgb(255 255 255 / .05)); color: var(--text-2); }
.ci.folder .ava svg { width: 19px; height: 19px; }
.list-label { margin: 12px 10px 6px; }
.ci .r1 { display: flex; align-items: baseline; gap: 6px; }
.ci .r1 b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci .r1 time { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); flex: none; }
.ci .r2 { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ci .r2 .chip { flex: none; }
.ci .r2 .unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 0 10px var(--accent-glow); }
.ci .r2 > span:first-child { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); min-height: 69px; }
.conv-h .t { flex: 1; min-width: 0; }
.conv-h b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-h .t span { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.conv-h .back { display: none; }
.searchbar { display: flex; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.msgs { overflow-anchor: none; flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.day { align-self: center; margin: 8px 0; }
.bubble { position: relative; max-width: min(72%, 520px); padding: 9px 14px 7px; border-radius: 20px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
          animation: pop var(--dur) var(--ease); }
.bubble .txt { white-space: pre-wrap; }
.bubble .big { font-size: 34px; line-height: 1.2; }
.bubble.in { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--well); border: 1px solid rgb(255 255 255 / .06); }
.bubble.out { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--glass-hi); box-shadow: var(--raised); }
.bubble.out::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--rim-soft);
                      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.bubble .by { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; white-space: normal; }
/* на тёмном фоне входящих тёмно-бордовый теряется — тот же цвет, светлее */
.bubble.in .by { color: #c4596a; }
.bubble .meta { display: flex; justify-content: flex-end; gap: 8px; font-family: var(--mono); font-size: 11px; color: rgb(238 243 244 / .68); margin-top: 3px; white-space: normal; }
.bubble .quote { display: block; padding: 4px 10px; margin: 2px 0 6px; border-left: 2px solid var(--accent-hi); border-radius: 4px; background: rgb(0 0 0 / .18); font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* кнопки действий — ряд сбоку от пузыря, по его нижнему краю; padding вместо margin, чтобы наведение не прерывалось */
.bubble .acts { position: absolute; bottom: 0; z-index: 4; display: none; gap: 8px; }
.bubble.out .acts { right: 100%; padding-right: 12px; } .bubble.in .acts { left: 100%; padding-left: 12px; }
.bubble .acts .orb { width: 40px; height: 40px; }
.bubble .fwd { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin: 0 0 4px; }
.bubble .fwd svg { width: 14px; height: 14px; flex: none; }
.bubble:hover .acts, .bubble:focus-within .acts { display: flex; }
.bubble img.media, .bubble video.media { display: block; max-width: 100%; max-height: 320px; border-radius: 14px; margin: 2px 0 6px; }
.att { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); margin: 2px 0 6px; text-decoration: none; color: inherit; white-space: normal; }
.att i { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10px; }
.att small { display: block; color: var(--text-3); font-family: var(--mono); font-size: 11px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.composer { padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.composer .replybar { display: flex; align-items: flex-start; gap: 12px; padding: 10px 10px 10px 14px; margin-bottom: 10px; border-radius: var(--r);
                      border-left: 3px solid var(--accent-hi); }
.composer .replybar .rb-icon { flex: none; display: grid; place-items: center; width: 22px; height: 36px; color: var(--accent-hi); }
.composer .replybar .rb-icon svg { width: 18px; height: 18px; }
.composer .replybar .rb-t { flex: 1; min-width: 0; padding-top: 1px; }
.composer .replybar .rb-t b { display: block; font-size: 12px; font-weight: 600; color: var(--accent-hi); }
.composer .replybar .rb-t span { display: block; font-size: 13.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .replybar .orb { width: 32px; height: 32px; }
.composer .replybar .orb svg { width: 15px; height: 15px; }
.composer form { display: flex; align-items: center; gap: 10px; }
.composer .fieldwrap { flex: 1; min-width: 0; min-height: 44px; border-radius: 22px; display: flex; align-items: center; padding: 0 18px; }
.composer textarea { flex: 1; min-width: 0; background: none; border: 0; outline: none; resize: none; max-height: 140px; padding: 11px 0; line-height: 1.45; }
.composer textarea::placeholder { color: var(--text-3); }
.hint { padding: 8px 4px 0; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); letter-spacing: .02em; }
.drop { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(10 14 16 / .7); border-radius: inherit; z-index: 5; font-size: 15px; }

/* ---------- права ---------- */
.split { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.sticky { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.sticky .scroll { overflow: auto; margin: 0 -6px; padding: 2px 6px 0; }
.pm { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pm label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; border-radius: var(--r); font-size: 13px; cursor: pointer; min-width: 0; }
.pm label small { display: block; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }
.pm label.na { opacity: .42; cursor: not-allowed; }
.sw { appearance: none; margin: 0; flex: none; width: 46px; height: 26px; border-radius: var(--pill); position: relative; cursor: inherit;
      background: rgb(0 0 0 / .38); box-shadow: var(--pressed); transition: background var(--dur) var(--ease); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
             background: radial-gradient(80% 60% at 50% 20%, #fff, #dfe6e8 60%, #b9c4c8); box-shadow: 0 2px 6px rgb(0 0 0 / .45), inset 0 -1px 1px rgb(0 0 0 / .15);
             transition: transform var(--dur) var(--ease); }
.sw:checked { background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 3px rgb(0 0 0 / .3), 0 0 14px var(--accent-glow); }
.sw:checked::after { transform: translateX(20px); }
.asg { border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; }
.asg-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.asg-h .t { flex: 1; min-width: 160px; }
.asg-h b { display: block; }
.asg-f { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.asg-f .input { width: auto; height: 38px; }
.asg.revoked { opacity: .55; }

/* ---------- таблицы ---------- */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 500; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.mono { font-size: 12px; color: var(--text-2); }

/* ---------- боты ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.acc { display: flex; flex-direction: column; gap: 14px; }
.acc-h { display: flex; align-items: center; gap: 12px; }
.acc-h .t { flex: 1; min-width: 0; }
.acc-h b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-h .t > span { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.acc .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc .meta div { padding: 10px; border-radius: var(--r-sm); }
.acc .meta strong { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.acc .err { padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; color: #ffd2d2; background: rgb(255 138 138 / .1); border: 1px solid rgb(255 138 138 / .25); }
.acc .row { display: flex; gap: 8px; flex-wrap: wrap; }
.steps { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px;
                    color: var(--text); background: var(--glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 0 0 1px rgb(0 0 0 / .3); }
.steps code { font-family: var(--mono); font-size: 12px; color: var(--text); }

/* ---------- мой Telegram: слева устройства и инструкция, справа закреплённая панель ---------- */
.tg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tg-main { display: grid; gap: 16px; min-width: 0; }
.tg-devices { display: grid; gap: 16px; }
.tg-side { position: sticky; top: 16px; min-width: 0; }
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide li { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r);
            background: var(--well); box-shadow: var(--pressed); border: 1px solid rgb(255 255 255 / .05); }
.guide-shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; display: block; }
.guide-shot img { display: block; width: 168px; height: 104px; object-fit: cover; object-position: top left; border-radius: 10px;
                  box-shadow: 0 0 0 1px rgb(255 255 255 / .14); transition: transform var(--dur) var(--ease); }
.guide-shot:hover img { transform: scale(1.03); }
.guide li > div > b { display: block; font-size: 14px; margin: 2px 0 2px; }
.guide p b { color: var(--text); font-weight: 600; }
.guide p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgb(5 8 10 / .86);
            cursor: zoom-out; animation: fade var(--dur) var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }

/* ---------- состояния ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 6px; flex: 1; }
.empty b { font-size: 16px; margin-top: 10px; }
.empty p { margin: 0 0 12px; color: var(--text-2); font-size: 13.5px; max-width: 340px; }
.plug { width: 100%; max-width: 360px; height: 90px; }
.sk { height: 12px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, rgb(255 255 255 / .05), rgb(255 255 255 / .14), rgb(255 255 255 / .05));
      background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- вход ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: min(420px, 100%); padding: 32px 28px 26px; border-radius: var(--r-xl); }
.auth .logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px; }
.auth .logo svg { width: 36px; }
.auth h1 { text-align: center; margin: 0 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.auth .sub { text-align: center; margin: 0 0 24px; }
.auth .btn { width: 100%; height: 46px; margin-top: 6px; }
.form-err { min-height: 20px; color: var(--danger); font-size: 13px; margin: 0 0 6px; }

/* ---------- модалка и тосты ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(6 9 11 / .55); backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px); animation: fade var(--dur) var(--ease); }
.modal { width: min(460px, 100%); border-radius: var(--r-xl); padding: 24px; background: linear-gradient(180deg, rgb(44 54 59 / .92), rgb(26 32 36 / .94)); animation: pop 240ms var(--ease); }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; gap: 8px; justify-items: end; pointer-events: none; max-width: calc(100vw - 48px); }
.toast { padding: 10px 18px; border-radius: var(--pill); font-size: 13px; background: linear-gradient(180deg, rgb(44 54 59 / .92), rgb(26 32 36 / .92)); animation: pop 260ms var(--ease); }
.toast.err { color: #ffd2d2; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1180px) {
  .row-2, .start { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .tg-layout { grid-template-columns: minmax(0, 1fr); }
  .tg-side { position: static; order: -1; }
  .sticky { position: static; max-height: 340px; }
}
@media (max-width: 860px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 10px; }
  .side { position: fixed; left: 10px; top: 10px; bottom: 10px; height: auto; width: 280px; transform: translateX(-120%); transition: transform 280ms var(--ease); }
  .shell.drawer .side { transform: none; }
  .shell.collapsed .side :is(.brand b, .find, .nav .txt, .nav .count, .side-label, .me .t) { display: revert; }
  .shell.collapsed .nav a { justify-content: flex-start; padding: 0 12px; }
  .shell.collapsed .brand, .shell.collapsed .me { flex-direction: row; }
  .collapse { display: none; }
  .scrim { position: fixed; inset: 0; z-index: 15; background: rgb(0 0 0 / .45); }
  .shell.drawer .scrim { display: block; }
  .mbar { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-lg); }
  .mbar b { flex: 1; font-size: 16px; }
  .ws { height: calc(100vh - 90px); grid-template-columns: minmax(0, 1fr); }
  .ws.has-chat .chats { display: none; }
  .ws:not(.has-chat) .conv { display: none; }
  .chats { border-right: 0; }
  .conv-h .back { display: grid; }
  .bubble { max-width: 86%; }
  .bubble .acts, .bubble:hover .acts, .bubble:focus-within .acts { display: none; }
  .bubble.sel .acts { position: static; display: flex; justify-content: flex-end; margin-top: 4px; }
  .conv-h { padding: 10px 12px; gap: 8px; }
  .conv-h .t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .conv-h .btn span { display: none; }
  .conv-h .btn { width: 36px; height: 36px; padding: 0; }
  .page-head h1 { font-size: 24px; }
  .guide li { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .guide-shot img { width: 104px; height: 72px; }
}

/* карточка оператора: действия ровной сеткой 2×2 */
.op-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.op-acts .btn { width: 100%; justify-content: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* доступ к ботам */
.bot-acc { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bot-acc .list-row { flex-wrap: wrap; margin: 0; }
.bot-acc .seg { flex-basis: 100%; display: flex; }
.bot-acc .seg button { flex: 1; }

/* администратор: аккаунты */
.urow { flex-wrap: wrap; }
.urow .t { flex: 1 1 220px; }
.urow .t b .st { margin-left: 6px; vertical-align: middle; }
.ucol { display: flex; flex-direction: column; gap: 2px; min-width: 110px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.ucol .label { font-size: 9.5px; }
.ucol .on { color: var(--ok); }
/* администратор: реклама */
.adf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.addrop { display: grid; place-items: center; min-height: 220px; border-radius: var(--r-lg, 18px); cursor: pointer; text-align: center; padding: 20px;
  border: 1px dashed rgb(255 255 255 / .16); transition: border-color 160ms; }
.addrop:hover { border-color: var(--accent-2); }
.addrop span { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.addrop svg { width: 34px; height: 34px; color: var(--accent-hi); }
.addrop small { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.adf-side { display: flex; flex-direction: column; gap: 12px; }
.adf-side .field { margin: 0; }
.adf-side .seg button { flex: 1; }
.adf-side .seg button:disabled { opacity: .4; cursor: not-allowed; }
.adtime { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prog { height: 6px; border-radius: 3px; background: rgb(0 0 0 / .35); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transition: width 200ms; }
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ad-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; }
.ad-prev { position: relative; aspect-ratio: 16 / 9; background: #07090b; cursor: pointer; }
.ad-prev img, .ad-prev video { width: 100%; height: 100%; object-fit: contain; display: block; }
.ad-play { position: absolute; inset: 0; display: grid; place-items: center; }
.ad-play svg { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; fill: #fff; }
.ad-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ad-body b { font-size: 15px; }
.ad-meta { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.ad-acts { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin-top: 8px; }
.ad-on { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
@media (max-width: 760px) { .adf { grid-template-columns: minmax(0, 1fr); } .addrop { min-height: 150px; } .ucol { min-width: 0; flex: 1 1 40%; } }

/* полноэкранная реклама */
html.ad-lock, html.ad-lock body { overflow: hidden; }
.ad-full { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; user-select: none; -webkit-user-select: none; }
.ad-full > img, .ad-full > video { width: 100%; height: 100%; object-fit: contain; }
.ad-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.ad-tag, .ad-timer { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: var(--pill);
  background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .12); }
.ad-timer { color: var(--accent-hi); }
.ad-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .1); }
.ad-bar i { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width 900ms linear; }
.ad-bottom { position: absolute; left: 16px; right: 16px; bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ad-bottom .btn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ad-bottom .btn:disabled { opacity: .6; cursor: default; }
.ad-start { position: absolute; display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: var(--pill); border: 1px solid rgb(255 255 255 / .2);
  background: rgb(142 34 54 / .85); color: #fff; font: 600 16px var(--sans, inherit); cursor: pointer; }
.ad-start svg { width: 20px; height: 20px; fill: currentColor; }
