/* Мини-приложение «стартрек · команда» — палитра сайта; заголовки Advent Pro, текст Golos, цифры и метки — JetBrains Mono */
@font-face { font-family: 'Advent Pro'; font-weight: 700; font-display: swap; src: url('/app/fonts/advent-pro-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Advent Pro'; font-weight: 700; font-display: swap; src: url('/app/fonts/advent-pro-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url('/app/fonts/golos-text-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url('/app/fonts/golos-text-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url('/app/fonts/golos-text-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url('/app/fonts/golos-text-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url('/app/fonts/golos-text-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url('/app/fonts/golos-text-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/app/fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/app/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/app/fonts/jetbrains-mono-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/app/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/app/fonts/jetbrains-mono-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/app/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #1d1b1c; --bg-deep: #161415; --panel: #272526; --panel-2: #302d2f; --line: #3d3a3c; --line-soft: rgb(243 239 236 / 0.07);
  --text: #f3efec; --muted: #b7b1b3; --dim: #918b8e;
  --lime: #dafe04; --lime-ink: #1b1d05; --violet: #6a5ac7; --violet-light: #8577de; --violet-bg: #7767fc; --mint: #6fd5b2; --mint-ink: #0d2a20;
  --orange: #fe572b; --orange-bg: #fd7046; --orange-ink: #1d0b05; --sticky: #ffe45c;
  --late: #ff7a59; --today: #ffd34d;
  --head: 'Advent Pro', 'Arial Narrow', sans-serif; --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 16px; --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --acc: var(--violet-bg); --acc-ink: #fff;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; background: var(--bg); color: var(--text); font: 400 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: calc(84px + var(--safe-b)); overscroll-behavior-y: contain; }
body[data-tab='tasks'] { --acc: var(--violet-bg); --acc-ink: #fff; }
body[data-tab='leads'] { --acc: var(--lime); --acc-ink: var(--lime-ink); }
body[data-tab='plan'] { --acc: var(--mint); --acc-ink: var(--mint-ink); }
body[data-tab='team'] { --acc: var(--orange-bg); --acc-ink: var(--orange-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand svg { width: 24px; height: 22px; flex: none; }
.brand b { font: 700 17px/1 var(--head); letter-spacing: 0.005em; }
.brand span { font-size: 13px; color: var(--dim); }
.top__me { margin-left: auto; }

.view { padding: 0 14px 84px; } /* снизу место под кнопку «+ Задача / Пост» — она не закрывает последнюю строку */
.loading { display: grid; justify-items: center; gap: 12px; padding: 80px 0; color: var(--dim); font-family: var(--mono); font-size: 13px; }
.loading span { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--acc); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- заголовок раздела ---------- */
.sec { padding: 8px 2px 16px; }
.sec__title { position: relative; display: inline-block; font: 700 26px/1 var(--head); letter-spacing: -0.01em; }
.sec__title::after { content: ''; position: absolute; right: -10px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.sec__meta { margin-top: 8px; font-size: 13.5px; color: var(--dim); }
.sec__meta b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.sec__dot { margin: 0 6px; color: var(--line); }
.sec__meta .is-alert, .sec__meta .is-alert b { color: var(--late); }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 18px; border-radius: var(--r); overflow: hidden; background: var(--line-soft); }
.nums div { padding: 12px 14px; background: var(--panel); }
.nums dt { font-size: 12px; color: var(--dim); }
.nums dd { margin-top: 2px; font: 700 22px/1 var(--head); font-variant-numeric: tabular-nums; }
.nums .is-alert dd { color: var(--late); }

/* ---------- переключатели и фильтры ---------- */
.seg { display: flex; gap: 18px; margin: 0 2px 12px; border-bottom: 1px solid var(--line-soft); }
.seg button { position: relative; display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 0 10px; font-size: 14.5px; color: var(--dim); transition: color 200ms; }
.seg button small { font: 400 11.5px var(--mono); color: var(--dim); }
.seg button.is-on { color: var(--text); font-weight: 500; }
.seg button.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--acc); }
.hint { margin: 0 2px 10px; font-size: 12px; color: var(--dim); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; font-size: 13.5px; color: var(--dim); white-space: nowrap; background: var(--panel); }
.chip b { font: 400 11.5px var(--mono); color: inherit; opacity: 0.8; }
.chip.is-on { color: var(--bg); background: var(--text); }
.search { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23918b8e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m20 20-4.5-4.5'/%3E%3C/svg%3E") no-repeat 13px 50% / 18px; margin-bottom: 10px; }
.search::placeholder { color: var(--dim); }

/* ---------- списки ---------- */
.group-h { display: flex; align-items: baseline; gap: 6px; margin: 18px 4px 7px; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.group-h b { font: 400 11.5px var(--mono); color: var(--dim); }
.group-h.is-late { color: var(--late); } .group-h.is-today { color: var(--today); } .group-h.is-free { color: var(--text); }
.list { display: grid; list-style: none; padding: 0; border-radius: var(--r); background: var(--panel); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line-soft); }
.row { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; background: transparent; text-align: left; transition: background-color 150ms; }
.row:active { background: var(--panel-2); }
.row__main { flex: 1; min-width: 0; display: block; text-align: left; }
.row__title { display: block; font-weight: 400; line-height: 1.38; overflow-wrap: anywhere; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 12px; color: var(--dim); }
.row__id { font: 400 11px var(--mono); color: var(--dim); }
.row.is-done .row__title { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--line); }
.check { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--dim); display: grid; place-items: center; transition: border-color 200ms, background-color 200ms, transform 150ms; }
.check svg { width: 13px; height: 13px; stroke: var(--bg); stroke-width: 3; fill: none; opacity: 0; }
.check:active { transform: scale(0.9); }
.row.is-done .check { background: var(--dim); border-color: var(--dim); }
.row.is-done .check svg { opacity: 1; }
.take { flex: none; align-self: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--acc); color: var(--text); font-size: 13px; font-weight: 500; }

.due { display: inline-flex; align-items: center; gap: 4px; }
.due.is-late { color: var(--late); font-weight: 500; }
.due.is-today { color: var(--today); font-weight: 500; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.ava { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 600 8.5px/1 var(--body); color: #fff; }
.ava--lg { width: 36px; height: 36px; font-size: 13px; }
.ava--free { background: transparent !important; border: 1px dashed var(--dim); color: var(--dim); }
.st, .kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.st::before, .kind::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.st[data-s='new']::before { background: var(--lime); } .st[data-s='new'] { color: var(--text); }
.st[data-s='taken']::before, .st[data-s='contacted']::before { background: var(--violet-light); }
.st[data-s='noanswer']::before { background: var(--late); }
.st[data-s='thinking']::before { background: var(--today); }
.st[data-s='paid']::before { background: var(--mint); }
.kind[data-k='lead']::before { background: var(--lime); } .kind[data-k='lab']::before { background: var(--mint); } .kind[data-k='club']::before { background: var(--orange-bg); } .kind[data-k='partner']::before { background: var(--violet-light); }
.kind::before { border-radius: 2px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 40px 18px; text-align: center; color: var(--dim); font-size: 14px; }
.empty svg { width: 30px; height: 28px; color: var(--line); opacity: 0.9; }
.more { width: 100%; margin-top: 8px; min-height: 44px; color: var(--muted); font-size: 13.5px; }

/* ---------- контент-план ---------- */
.plan-head { margin-bottom: 6px; padding: 14px; border-radius: var(--r); background: var(--panel); }
.week { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.week__nav { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.week__nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.week__label { text-align: center; font: 500 15px/1 var(--mono); }
.week__label small { display: block; margin-top: 5px; font: 400 12px var(--body); color: var(--dim); }
.progress { display: grid; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.progress__row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--acc); transition: width 500ms var(--ease); }
.progress__n { text-align: right; font: 400 11.5px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.net::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--net); }
[data-net='ig'] { --net: #ff5c93; } [data-net='tg'] { --net: #36b3ee; } [data-net='vk'] { --net: #6f9cff; }
.day-h { display: flex; align-items: baseline; gap: 8px; margin: 18px 4px 7px; }
.day-h b { font-size: 13px; font-weight: 500; }
.day-h small { font: 400 11.5px var(--mono); color: var(--dim); }
.day-h.is-today b, .day-h.is-today small { color: var(--acc); }
.day-add { margin-left: auto; font-size: 12.5px; color: var(--dim); padding: 4px 2px; }
.post-st { font-size: 12px; color: var(--muted); }
.post-st[data-s='done'] { color: var(--mint); }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 8px; height: 3px; border-radius: 2px; background: var(--line); }
.dots i.on { background: var(--acc); }

/* ---------- команда ---------- */
.member { display: flex; align-items: center; gap: 12px; }
.role { margin-left: auto; flex: none; padding: 6px 10px; border-radius: 999px; font-size: 12px; line-height: 1.2; border: 1px solid var(--line); color: var(--dim); text-align: center; }
.role.is-on { border-color: transparent; color: var(--bg); background: var(--text); }
.note { margin: 12px 4px 0; font-size: 12.5px; color: var(--dim); }
.note b { color: var(--muted); font-weight: 500; }
.saved { display: flex; align-items: flex-start; gap: 10px; margin: 14px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); }
.saved i { flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--mint); }

/* ---------- кнопки ---------- */
.fab { position: fixed; right: 18px; bottom: calc(82px + var(--safe-b)); z-index: 6; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); box-shadow: 0 12px 26px -12px rgb(0 0 0 / 0.9); transition: transform 200ms var(--ease); }
.fab svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fab:active { transform: scale(0.95); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; font: 500 15px/1 var(--body); border: 0; background: var(--panel); }
.btn--main { background: var(--text); color: var(--bg); }
.btn--ok { background: var(--text); color: var(--bg); }
.btn--danger { color: var(--late); background: transparent; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.actions .btn--block { grid-column: 1 / -1; }

/* ---------- нижняя навигация ---------- */
.tabs { position: fixed; inset: auto 0 0; z-index: 7; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); }
.tabs button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 0 4px; font-size: 11px; color: var(--dim); transition: color 200ms; }
.tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.is-on { color: var(--text); }
.tabs button.is-on::after { content: ''; position: absolute; top: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--acc); }
.tabs__badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--orange); color: #fff; font: 600 10px/16px var(--body); font-style: normal; text-align: center; }

/* ---------- нижняя панель ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; }
.sheet__shade { position: absolute; inset: 0; background: rgb(8 7 8 / 0.62); animation: fade 220ms var(--ease) both; }
.sheet__panel { position: relative; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; background: var(--bg-deep); border-top: 1px solid var(--line); padding: 8px 18px calc(22px + var(--safe-b)); animation: rise 320ms var(--ease) both; }
.sheet.is-closing .sheet__shade { animation: fade 200ms reverse both; }
.sheet.is-closing .sheet__panel { animation: rise 220ms reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet__grip { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 2px auto 14px; }
.s-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.s-title { margin: 6px 0 6px; font: 700 21px/1.1 var(--head); overflow-wrap: anywhere; }
.s-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.owner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--panel); }
.owner__label { display: block; font-size: 12px; color: var(--dim); }
.owner__name { font-weight: 500; }
.owner.is-none .owner__name { color: var(--muted); font-weight: 400; font-size: 14px; }
.owner .take { margin-left: auto; }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > span { font-size: 12.5px; color: var(--dim); }
.input, .area, .date { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: var(--panel); }
.area { min-height: 96px; resize: vertical; line-height: 1.45; }
.area--tall { min-height: 200px; }
.date { color-scheme: dark; font-family: var(--mono); font-size: 14px; }
.input:focus, .area:focus, .date:focus { outline: none; border-color: var(--line); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick .chip { min-height: 38px; }
.kv { display: grid; gap: 1px; margin-top: 16px; border-radius: var(--r); overflow: hidden; background: var(--line-soft); }
.kv div { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 11px 14px; background: var(--panel); font-size: 14px; }
.kv dt { font-size: 12.5px; color: var(--dim); }
.kv dd { overflow-wrap: anywhere; }
.kv a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.st-grid .chip { justify-content: flex-start; }
.st-grid .chip .st { padding: 0; background: none; }
.hist { list-style: none; padding: 0 0 0 14px; display: grid; gap: 9px; border-left: 2px solid var(--line); font-size: 13px; color: var(--muted); }
.hist time { font: 500 11px var(--mono); color: var(--dim); margin-right: 6px; }
.notes { display: grid; gap: 8px; list-style: none; padding: 0; }
.notes li { padding: 11px 13px; border-radius: 14px 14px 14px 4px; background: var(--panel); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.notes li.is-mine { border-radius: 14px 14px 4px 14px; background: var(--panel-2); }
.notes small { display: flex; gap: 8px; margin-bottom: 4px; font-size: 11.5px; color: var(--dim); white-space: normal; }
.compose { display: flex; gap: 8px; align-items: flex-end; }
.compose .area { min-height: 48px; height: 48px; resize: none; }
.compose .btn { flex: none; width: 48px; padding: 0; }
.compose .btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--muted); text-decoration: none; }
.link::after { content: '↗'; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps button { min-height: 40px; padding: 0 2px; border-radius: 10px; background: var(--panel); font-size: 11.5px; line-height: 1.15; color: var(--dim); }
.steps button.is-done { color: var(--muted); }
.steps button.is-on { color: var(--bg); background: var(--text); }

/* ---------- подтверждение и подсказка ---------- */
.confirm { text-align: center; padding-top: 4px; }
.confirm__icon { width: 48px; height: 48px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); }
.confirm__icon svg { width: 22px; height: 22px; stroke: var(--text); stroke-width: 2.4; fill: none; }
.confirm .s-title { font-size: 21px; }
.confirm p { color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 14px; right: 14px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.8); font-size: 14px; animation: drop 260ms var(--ease) both; }
.toast span { flex: 1; }
.toast button { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 500; }
.toast.is-err { border-color: color-mix(in srgb, var(--late) 50%, transparent); }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
@media (min-width: 640px) { .view, .top { max-width: 640px; margin-inline: auto; } .sheet__panel { max-width: 640px; margin-inline: auto; width: 100%; } .tabs { max-width: 620px; margin-inline: auto; } }
/* выбранная белая кнопка: текст и точка статуса — тёмные; нечётная последняя цифра в «Команде» — во всю ширину */
.chip.is-on .st { color: var(--bg); }
.nums div:last-child:nth-child(odd) { grid-column: 1 / -1; }
