/* Расшифровщик — светло-синяя тема, «жидкое стекло» на плавающих слоях (панель, вкладки, статус, ввод). */
:root {
  --bg: #eef5ff; --ink: #0f1f3a; --soft: #3c5070; --muted: #7487a3;
  --surface: rgb(255 255 255 / .78); --solid: #ffffff; --line: rgb(30 80 160 / .10); --hover: rgb(59 130 246 / .08);
  --accent: #2f7df6; --accent-2: #5aa9ff; --accent-ink: #1c5fd0; --accent-soft: rgb(47 125 246 / .12);
  --warn: #d0452f; --warn-soft: rgb(208 69 47 / .10); --run: #f0a020; --ok: #1fa67a;
  --glass: rgb(255 255 255 / .55); --glass-line: rgb(255 255 255 / .75);
  --glass-shadow: 0 8px 32px rgb(31 80 160 / .10), inset 0 1px 0 rgb(255 255 255 / .9);
  --radius: 16px; --side: 264px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1424; --ink: #e8f0ff; --soft: #b5c6e2; --muted: #8094b4;
    --surface: rgb(22 34 58 / .72); --solid: #142139; --line: rgb(140 180 255 / .12); --hover: rgb(90 169 255 / .10);
    --accent: #5aa9ff; --accent-2: #7cc0ff; --accent-ink: #8fc4ff; --accent-soft: rgb(90 169 255 / .16);
    --glass: rgb(22 36 62 / .55); --glass-line: rgb(150 190 255 / .16);
    --glass-shadow: 0 8px 32px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .06); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; display: flex; min-height: 100vh; -webkit-text-size-adjust: 100%; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin: 0 0 6px; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
h2.section { margin: 28px 0 10px; color: var(--soft); }
.lead { color: var(--soft); font-size: 15px; margin: 0 0 18px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
small { color: var(--muted); font-weight: 400; }

/* фон: мягкие светящиеся пятна — чтобы стеклу было что преломлять */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(160deg, #f5f9ff 0%, #e6f0ff 55%, #eef6ff 100%); }
.backdrop i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.backdrop i:nth-child(1) { width: 520px; height: 520px; left: -120px; top: -140px; background: #9cc8ff; }
.backdrop i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 30%; background: #b9e3ff; }
.backdrop i:nth-child(3) { width: 380px; height: 380px; left: 35%; bottom: -160px; background: #c9d8ff; }
@media (prefers-color-scheme: dark) {
  .backdrop { background: linear-gradient(160deg, #0a1322, #0d1a30 60%, #0a1424); }
  .backdrop i { opacity: .22; }
}

/* стекло */
.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
.card { background: var(--surface); border: 1px solid var(--glass-line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 2px 12px rgb(31 80 160 / .06); margin-bottom: 14px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card.subtle { box-shadow: none; margin-top: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.card-head h2 { margin: 0; }

/* кнопки и поля */
.btn { border: 1px solid var(--line); background: var(--solid); color: var(--ink); border-radius: 12px;
  padding: 9px 15px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgb(47 125 246 / .30), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn.primary:hover { box-shadow: 0 8px 22px rgb(47 125 246 / .38), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn.big { padding: 12px 22px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.wide { width: 100%; justify-content: center; }
.select, .field input, .field textarea, .area, .chat-form textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--solid); color: var(--ink); width: 100%; outline: none; transition: border .15s, box-shadow .15s; }
.select:focus, .field input:focus, .field textarea:focus, .area:focus, .chat-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--soft); margin-bottom: 14px; }
.top-gap { margin-top: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.row-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }

/* боковая панель */
.side { width: var(--side); flex-shrink: 0; margin: 12px 0 12px 12px; padding: 16px 12px; border-radius: 22px;
  display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 24px); position: sticky; top: 12px; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 2px 6px 6px; }
.brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 10px rgb(47 125 246 / .35); }
.side-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 6px 0; }
.mini { border: 0; background: var(--hover); color: var(--accent-ink); border-radius: 8px; width: 24px; height: 24px; cursor: pointer; font-size: 15px; }
.tree { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.proj { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--ink); text-align: left; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.proj:hover { background: var(--hover); }
.proj.active { background: var(--solid); box-shadow: 0 2px 10px rgb(31 80 160 / .08); font-weight: 600; }
.proj .n { font-size: 12px; color: var(--muted); font-weight: 500; }
.proj.empty-proj { color: var(--muted); }
.meets { list-style: none; margin: 2px 0 8px 12px; padding: 0 0 0 10px; border-left: 2px solid var(--accent-soft); }
.meets li { padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: 13.5px; line-height: 1.3; }
.meets li:hover { background: var(--hover); }
.meets li.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.meets small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11.5px; font-weight: 400; }
.st { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.st.run { background: var(--run); animation: pulse 1.2s infinite; }
.st.err { background: var(--warn); }
.side-foot { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.nav-link { flex: 1; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--soft);
  padding: 8px; border-radius: 10px; cursor: pointer; }
.nav-link:hover, .nav-link.on { background: var(--solid); color: var(--ink); }
.side-notes:empty { display: none; }
.note { font-size: 12px; padding: 9px 11px; border-radius: 12px; background: var(--solid); color: var(--soft); line-height: 1.4; margin-top: 6px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.back { border: 0; background: none; font: inherit; font-size: 15px; color: var(--accent-ink); cursor: pointer; padding: 0; }
.only-phone { display: none; }

/* страницы */
main { flex: 1; min-width: 0; padding: 34px 40px 80px; }
.page { max-width: 900px; margin: 0 auto; }
.page.narrow { max-width: 680px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 30px 16px; cursor: pointer; font: inherit; font-size: 15px; color: var(--ink); min-height: 150px;
  border: 1.5px dashed rgb(47 125 246 / .35); border-radius: 20px; background: var(--surface); transition: .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--solid); transform: translateY(-1px); }
.drop-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px rgb(47 125 246 / .3); }
.rec .drop-icon { background: linear-gradient(135deg, #ff6b6b, #ff8e6b); box-shadow: 0 6px 16px rgb(255 90 90 / .3); }
.rec.recording { border-color: #ff6b6b; border-style: solid; }
.rec.recording .drop-icon { animation: pulse 1s infinite; }

/* шапка встречи/проекта */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.crumbs a:hover { text-decoration: underline; }
.m-meta { font-size: 14px; color: var(--soft); }
.head-actions { margin: 16px 0 20px; }

.status { margin: 20px 0 14px; padding: 14px 18px; border-radius: var(--radius); }
.status.done { padding: 11px 16px; }
.status.done .progress, .status.done .dots { display: none; }
.status-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.status-eta { color: var(--muted); white-space: nowrap; font-weight: 400; }
.progress { height: 6px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; margin: 12px 0 10px; }
.bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .6s; box-shadow: 0 0 12px rgb(47 125 246 / .5); }
.dots { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.dots li::before { content: "○ "; }
.dots li.done { color: var(--soft); }
.dots li.done::before { content: "✓ "; color: var(--ok); }
.dots li.active { color: var(--ink); font-weight: 600; }
.dots li.active::before { content: "● "; color: var(--accent); animation: pulse 1.2s infinite; }
.dots li.failed { color: var(--warn); }
.dots li.failed::before { content: "✕ "; }
.status-error { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn);
  font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@keyframes pulse { 50% { opacity: .3; } }
#player { width: 100%; height: 40px; margin-bottom: 14px; }

/* вкладки — плавающая стеклянная «пилюля» */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; margin-bottom: 18px; position: sticky; top: 10px; z-index: 5; }
.tabs button { border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--soft); padding: 8px 16px;
  border-radius: 10px; cursor: pointer; transition: .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--solid); color: var(--accent-ink); font-weight: 600; box-shadow: 0 2px 8px rgb(31 80 160 / .12); }
.count:empty { display: none; }
.count { font-size: 11px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 1px 7px; margin-left: 3px; }

.tab-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.seg-toggle { display: inline-flex; background: var(--accent-soft); border-radius: 10px; padding: 3px; }
.seg-toggle button { border: 0; background: none; font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 8px; color: var(--soft); cursor: pointer; }
.seg-toggle button.on { background: var(--solid); color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 4px rgb(31 80 160 / .12); }
.transcript { font-size: 16px; line-height: 1.7; }
.seg { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 12px; align-items: start; }
.seg:hover { background: var(--surface); }
.seg.new { animation: fadein 1.2s; }
@keyframes fadein { from { background: var(--accent-soft); } }
.tc { font-variant-numeric: tabular-nums; color: var(--accent-ink); cursor: pointer; font-size: 12.5px; font-weight: 600;
  padding: 3px 0; border: 0; background: var(--accent-soft); border-radius: 8px; margin-top: 3px; }
.tc:hover { background: var(--accent); color: #fff; }
.who { color: var(--accent-ink); font-weight: 650; }
.unsure { background: rgb(240 160 32 / .18); border-radius: 4px; padding: 0 2px; }
.waiting { color: var(--muted); padding: 28px 0; font-size: 15px; line-height: 1.5; }
.waiting .dotsx::after { content: "…"; animation: pulse 1.2s infinite; }

.summary { font-size: 15.5px; line-height: 1.65; }
.summary.card { padding: 6px 24px 18px; }
.summary h1 { font-size: 21px; margin-top: 16px; } .summary h2 { font-size: 17px; margin: 22px 0 8px; }
.summary table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.summary td, .summary th { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.summary th { background: var(--accent-soft); }
.cursor::after { content: "▍"; color: var(--accent); animation: pulse 1s infinite; }
.tab-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tab-foot .hint { margin-right: auto; }

/* чат */
.chat-log { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 18px; }
.msg { padding: 11px 15px; border-radius: 18px; max-width: 86%; line-height: 1.55; font-size: 15px; }
.msg p { margin: 4px 0; }
.msg.user { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-bottom-right-radius: 6px; box-shadow: 0 4px 14px rgb(47 125 246 / .25); }
.msg.assistant { background: var(--surface); border: 1px solid var(--glass-line); border-bottom-left-radius: 6px;
  box-shadow: 0 2px 10px rgb(31 80 160 / .06); }
.msg.system { align-self: center; font-size: 12px; color: var(--muted); padding: 2px; }
.msg .apply { margin-top: 8px; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 14px; padding: 8px; border-radius: 20px; }
.chat-form textarea { resize: none; border: 0; background: transparent; box-shadow: none !important; min-height: 42px; max-height: 160px; }
.chat-form .btn { border-radius: 14px; width: 44px; height: 42px; justify-content: center; font-size: 18px; padding: 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.chip { border: 1px solid var(--glass-line); background: var(--surface); color: var(--accent-ink); font: inherit; font-size: 13px;
  padding: 7px 12px; border-radius: 99px; cursor: pointer; box-shadow: 0 1px 6px rgb(31 80 160 / .06); transition: .15s; text-align: left; }
.chip:hover { background: var(--solid); border-color: var(--accent); }
.chip:disabled { opacity: .5; cursor: default; }
.msg.assistant.long .body { max-height: 260px; overflow: hidden; position: relative; }
.msg.assistant.long .body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(transparent, var(--solid)); }
.msg.assistant.long.open .body { max-height: none; }
.msg.assistant.long.open .body::after { display: none; }
.msg-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.msg.assistant { background: var(--solid); max-width: 100%; width: 100%; }
.msg.assistant .body > :first-child { margin-top: 0; }
.msg.assistant h1, .msg.assistant h2, .msg.assistant h3 { font-size: 15px; margin: 12px 0 4px; }
.msg.assistant table { border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
.msg.assistant td, .msg.assistant th { border: 1px solid var(--line); padding: 4px 6px; }
.row-actions.tight { margin: 0; gap: 6px; }

/* проект */
.meet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meet-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--glass-line); border-radius: 14px; transition: .15s; }
.meet-list li:hover { background: var(--solid); transform: translateY(-1px); box-shadow: 0 6px 18px rgb(31 80 160 / .08); }
.meet-list .t { font-weight: 600; font-size: 15px; }
.meet-list .tag { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.meet-list .tag.err { background: var(--warn-soft); color: var(--warn); }

.add-box h2 { margin-bottom: 10px; }
.small-drop { min-height: 96px; padding: 18px; flex-direction: row; gap: 14px; text-align: left; justify-content: flex-start; }
.small-drop.disabled { opacity: .55; pointer-events: none; }
.upload-prog { margin-top: 12px; }
.parts { list-style: none; margin: 12px 0 0; padding: 0; }
.parts:empty { display: none; }
.parts li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.parts .pn { color: var(--soft); }
.parts .ps { font-size: 12.5px; white-space: nowrap; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.parts .ps.done { background: rgb(31 166 122 / .12); color: var(--ok); }
.parts .ps.run { background: rgb(240 160 32 / .16); color: #a86a00; }
.parts .ps.run::before { content: "● "; animation: pulse 1.2s infinite; }
.file-list { text-align: left; margin-top: 6px; font-size: 13px; color: var(--soft); }

.btn.danger { color: var(--warn); border-color: rgb(208 69 47 / .3); }
.btn.danger:hover { background: var(--warn-soft); }
.del-row { margin: -4px 0 14px; flex-wrap: wrap; }
.audio-gone { margin: -4px 0 14px; padding: 9px 12px; border-radius: 12px; background: var(--hover); }

.to-top { position: fixed; right: 22px; bottom: 90px; z-index: 20; border-radius: 99px; padding: 10px 16px; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.to-top:hover { transform: translateY(-1px); }
@media (max-width: 860px) { .to-top { right: 14px; bottom: 84px; padding: 9px 14px; } }

/* история проекта */
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 22px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-soft)); border-radius: 2px; }
.timeline > li { position: relative; margin-bottom: 14px; }
.timeline > li::before { content: ""; position: absolute; left: -21px; top: 18px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--solid); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .card { margin: 0; cursor: pointer; transition: .15s; }
.timeline .card:hover { box-shadow: 0 8px 24px rgb(31 80 160 / .12); transform: translateY(-1px); }
.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.t-date { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }
.t-title { font-size: 16px; font-weight: 650; margin: 2px 0 8px; }
.t-brief { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.t-brief p { margin: 6px 0; }
.t-brief ul { margin: 4px 0; padding-left: 20px; }
.t-gap { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }
.brief-card { border-left: 4px solid var(--accent); }
.brief-card p { margin: 6px 0; } .brief-card ul { margin: 4px 0; padding-left: 20px; }

/* файлы */
.folder-box, .send-box, .server-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.send-box { justify-content: flex-start; }
.send-box > div:first-child { flex-basis: 100%; }
.send-box label { font-size: 14px; display: flex; gap: 5px; align-items: center; }
.path { font-size: 13px; word-break: break-all; color: var(--soft); margin-top: 2px; }
.files { list-style: none; padding: 4px 18px; }
.files li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.files li:last-child { border-bottom: 0; }
.files .size { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }

/* память */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.cards .card { margin: 0; }
.cards b { display: block; font-size: 22px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.meter { height: 6px; background: var(--accent-soft); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter.warn span { background: linear-gradient(90deg, #ff8e6b, var(--warn)); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .path { font-size: 12px; }

.sticky-save { position: sticky; bottom: 14px; padding: 10px 12px; border-radius: 18px; margin-top: 18px; display: flex; gap: 12px; align-items: center; }

/* пользователь внизу панели */
.userbox { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); padding: 0 6px; }
.userbox a { color: var(--accent-ink); text-decoration: none; font-size: 12.5px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.badge.off { background: var(--warn-soft); color: var(--warn); }

/* вход */
body.login { align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(160deg, #f5f9ff, #dfeaff); }
.login-box { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: 22px;
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  padding: 28px; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.login-box .brand { font-size: 18px; margin-bottom: 4px; }
.owner-login { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.owner-login summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.owner-login form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.login-box input { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); }
.error { color: var(--warn); }

/* телефон */
@media (max-width: 860px) {
  body { flex-direction: column; }
  .side { width: auto; height: auto; position: static; margin: 10px 10px 0; padding: 14px; border-radius: 20px; }
  .tree { max-height: 46vh; }
  main { padding: 18px 16px 50px; }
  h1 { font-size: 22px; }
  body.viewing .side > :not(.side-head) { display: none; }
  body.viewing .side { padding: 10px 14px; position: sticky; top: 8px; z-index: 10; }
  body.viewing .brand { display: none; }
  body.viewing .only-phone { display: inline-block; }
  .two, .form-row, .form-row.three { grid-template-columns: 1fr; }
  .drop { min-height: 110px; padding: 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tabs { display: flex; top: 64px; }
  .tabs button { flex: 1; padding: 8px 6px; font-size: 13.5px; }
  .seg { grid-template-columns: 48px 1fr; gap: 10px; }
  .transcript, .summary { font-size: 15px; }
  .summary.card { padding: 4px 16px 14px; }
  .files li { grid-template-columns: 1fr auto; }
  .files li .btn { grid-column: 1 / -1; justify-self: start; }
  .table .hide-phone { display: none; }
  .msg { max-width: 92%; }
}
