/* Regcall archive. Same tokens as the extension (extension/extension.css). Geist: SIL OFL. */
@font-face { font-family: Geist; src: url(fonts/Geist-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(fonts/GeistMono-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FAFAFB; --surface: #FFFFFF; --subtle: #F3F4F6; --line: #ECEDF0; --line-soft: #F3F4F6; --line-strong: #DADCE1;
  --ink: #16181D; --ink-2: #4A5060; --ink-3: #5B6170;
  --accent: #3B47D6; --accent-hover: #2F3AC0; --accent-ink: #2A34A8; --accent-soft: #F0F1FD; --accent-line: #B9BEF3;
  --rec: #D92D20; --rec-ink: #B42318; --rec-soft: #FFF4F3;
  --ok: #12805C; --ok-ink: #0B5C41; --ok-soft: #E8F5EF;
  --warn: #B25E09; --warn-ink: #8A4B00; --warn-soft: #FFF4E5;
  --info-soft: #EEF0FD; --violet: #7E3AAF;
  --dark: #16181D; --on-dark: #FFFFFF;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px rgba(22, 24, 29, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317; --surface: #181B20; --subtle: #20242B; --line: #262A31; --line-soft: #1F2329; --line-strong: #353A43;
    --ink: #ECEEF2; --ink-2: #B3B8C3; --ink-3: #9AA0AC;
    --accent: #6B76F0; --accent-hover: #808AF5; --accent-ink: #B4BAFA; --accent-soft: #1E2246; --accent-line: #3A4290;
    --rec: #F04438; --rec-ink: #FDA29B; --rec-soft: #2A1614;
    --ok: #32B583; --ok-ink: #75E0B5; --ok-soft: #12251E;
    --warn: #F79009; --warn-ink: #FEC84B; --warn-soft: #2A1E0B;
    --info-soft: #1E2246; --violet: #B98AE0;
    --dark: #ECEEF2; --on-dark: #111317;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 14px/1.5 Geist, Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kbd { font-family: var(--mono); font-size: 11px; background: var(--subtle); padding: 1px 6px; border-radius: 5px; }

/* Shell */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--ink); }
.brand strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; flex: none; }
.logo rect { fill: var(--dark); }
.logo path { stroke: var(--on-dark); }
.nav-link { height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: 14px;
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; }
.nav-link:hover { background: var(--subtle); color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-link .count { margin-left: auto; font-size: 12px; font-weight: 500; }
.nav-link .count.warn:not(:empty) { background: var(--warn-soft); color: var(--warn-ink); padding: 1px 7px; border-radius: 999px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.engine-box, .job-box { padding: 10px 12px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); line-height: 1.45; display: flex; gap: 8px; align-items: center; }
.job-box { background: var(--info-soft); border-color: transparent; color: var(--accent-ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--ok); }
.dot.rec { background: var(--rec); animation: pulse 1.6s ease-in-out infinite; }
.spinner { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dot.rec, .spinner { animation: none; } }
.main { min-width: 0; padding: 28px 32px 120px; display: flex; flex-direction: column; gap: 20px; outline: none; }

/* Buttons and chips */
.btn { height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 600; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background-color .12s, border-color .12s, opacity .12s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #FFFFFF; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.dark { background: var(--dark); color: var(--on-dark); }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: var(--subtle); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; font-weight: 500; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; }
.icon-btn:hover { background: var(--subtle); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok-ink); }
.chip.info { background: var(--info-soft); color: var(--accent-ink); }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip.rec { background: var(--rec-soft); color: var(--rec-ink); }
.chip.neutral { background: var(--subtle); color: var(--ink-2); }
.time { font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 6px; padding: 2px 7px;
  display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.time:hover { background: var(--accent-line); color: var(--accent-ink); }

/* Avatars */
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center;
  justify-content: center; background: var(--a-bg); color: var(--a-fg); }
.avatar.lg { width: 34px; height: 34px; font-size: 12px; }
.stack .avatar { margin-right: -6px; border: 2px solid var(--surface); }
.c0 { --a-bg: #E3E7FF; --a-fg: #2A34A8; }
.c1 { --a-bg: #DDF3EA; --a-fg: #0B5C41; }
.c2 { --a-bg: #FDEBDD; --a-fg: #8A3B0B; }
.c3 { --a-bg: #F1E4FA; --a-fg: #5E2A82; }
.c4 { --a-bg: #E2EEF7; --a-fg: #1E4E73; }
.c5 { --a-bg: #FBE4EC; --a-fg: #84213F; }

/* Page header */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.page-head .grow { flex: 1; }
.search { position: relative; flex: 0 1 340px; display: flex; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--ink-3); }
.search input { flex: 1; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-size: 14px; min-width: 0; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 500; }
.filter[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.filter span { margin-left: 4px; opacity: .65; }

/* Meetings table */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.thead, .trow { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.2fr) 90px 120px 160px; gap: 16px; align-items: center; padding: 12px 20px; }
.thead { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.trow { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--bg); }
.trow .t-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trow .t-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .t-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .t-people { display: flex; align-items: center; min-width: 0; }
.trow .t-people .more { margin-left: 14px; font-size: 12px; color: var(--ink-3); }
.trow .t-num { font-family: var(--mono); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.trow .t-tasks { font-size: 13px; color: var(--ink-2); }
.trow .chip { justify-self: start; }
.no-results { padding: 32px 20px; text-align: center; color: var(--ink-3); }

/* Empty archive */
.welcome { max-width: 640px; margin: 8vh auto 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.welcome .bars { display: flex; gap: 6px; align-items: center; height: 56px; margin-bottom: 6px; }
.welcome .bars span { width: 8px; border-radius: 4px; background: var(--accent); opacity: .85; }
.welcome h1 { font-size: 34px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.welcome p { font-size: 15px; color: var(--ink-2); }
.welcome .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; width: 100%; }
.welcome .facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--ink-2); }
.welcome .facts b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }

/* Meeting page */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.m-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.m-head .m-title { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.m-head .m-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.menu-list a, .menu-list button { padding: 9px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; color: var(--ink); }
.menu-list a:hover, .menu-list button:hover { background: var(--subtle); }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; }
.person-chip:hover { border-color: var(--line-strong); background: var(--bg); }
.person-chip .share { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.person-chip .tag { font-size: 11px; color: var(--warn-ink); background: var(--warn-soft); padding: 1px 7px; border-radius: 999px; font-weight: 500; }
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 11px; font-size: 13px; line-height: 1.45; }
.banner.info { background: var(--info-soft); color: var(--accent-ink); }
.banner.warn { background: var(--warn-soft); color: var(--warn-ink); }
.banner.rec { background: var(--rec-soft); color: var(--rec-ink); }
.banner .grow { flex: 1; }
.audio-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.audio-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.audio-top .grow { flex: 1; }
.seg { display: inline-flex; padding: 3px; background: var(--subtle); border-radius: 10px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.swatch { width: 8px; height: 8px; border-radius: 2px; }
.swatch.remote { background: var(--accent); }
.swatch.mic { background: var(--violet); }
.wave { position: relative; height: 64px; }
.wave canvas { width: 100%; height: 64px; display: block; cursor: pointer; }
.wave .pin { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--warn); border-radius: 1px; pointer-events: none; }
.audio-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { height: 40px; padding: 0 14px; border: 0; background: none; color: var(--ink-3); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tab span { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.tabs .spacer { flex: 1; }
.tab-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
.tab { white-space: nowrap; }
.minute { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.minute-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.block h2, .aside h2 { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.block h2 .n, .aside h2 .n { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }
.overview { font-size: 16px; line-height: 1.6; color: var(--ink); }
.draft-note { font-size: 12px; color: var(--ink-3); }
.topic { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.topic:first-of-type { border-top: 0; padding-top: 0; }
.topic h3 { font-size: 15px; font-weight: 600; }
.topic p { grid-column: 1 / -1; color: var(--ink-2); line-height: 1.6; }
.points li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; align-items: baseline; line-height: 1.55; }
.points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin: 0 6px; transform: translateY(-2px); }
.points.decisions li::before { background: var(--ok); }
.points.open li::before { background: var(--warn); }
.points .none { grid-template-columns: 1fr; color: var(--ink-3); }
.points .none::before { display: none; }
.aside { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; }
.owner { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.owner:first-of-type { margin-top: 0; }
.owner .chip { font-weight: 500; }
.task { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.task:last-child { border-bottom: 0; }
.task input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ok); }
.task h3 { font-size: 14px; font-weight: 500; line-height: 1.45; }
.task.done h3 { color: var(--ink-3); text-decoration: line-through; }
.task .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.task .meta .kind { color: var(--ink-2); }
.marks li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.empty-card { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.empty-card h2 { font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); }
.empty-card p { color: var(--ink-2); max-width: 460px; }

/* Transcript */
.review { background: var(--warn-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.review h2 { font-size: 14px; font-weight: 600; color: var(--warn-ink); }
.review li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.review li strong { color: var(--ink); }
.turns { display: flex; flex-direction: column; }
.turn { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.turn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.speaker-btn { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 4px; align-items: center; }
.speaker-btn:hover { color: var(--accent); }
.speaker-btn::after { content: '⌄'; font-size: 12px; color: var(--ink-3); }
.turn p { line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.turn .hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.turn select { margin-left: auto; height: 28px; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink-3); padding: 0 6px; max-width: 180px; opacity: .7; }
.turn:hover select, .turn select:focus { opacity: 1; }

/* Tasks page */
.task-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.task-groups .aside { position: static; }
.from { font-size: 12px; color: var(--accent); }

/* Player */
.player { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 30; width: min(720px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px 10px 16px; display: flex; align-items: center; gap: 12px; }
.player-label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); min-width: 90px; }
.player-label strong { color: var(--ink); font-size: 13px; }
.player audio { flex: 1; min-width: 0; height: 40px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 40; background: var(--dark); color: var(--on-dark); padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }

/* Dialogs and forms */
dialog { border: 0; border-radius: 16px; padding: 24px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(17, 19, 23, .45); }
dialog h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; padding-right: 36px; }
dialog > p { margin-bottom: 16px; }
.dialog-close { position: absolute; right: 14px; top: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); min-width: 0; }
.field input, .field select, .field textarea { font-size: 14px; color: var(--ink); min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); width: 100%; }
.field textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choice legend { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.card-section { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card-section h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-section summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.card-section details[open] summary { margin-bottom: 12px; }
details.card-section > summary { font-size: 15px; font-weight: 600; color: var(--ink); }
#settings-dialog details { display: flex; flex-direction: column; gap: 12px; }
#settings-dialog details .field { margin-bottom: 12px; }
#diarization-dialog .card-section + .card-section { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.help { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.alert { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); }
.alert:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.form-foot .help { margin-right: auto; }
.model-state { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; margin: 4px 0 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; font-size: 14px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--subtle); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps li span, .steps li pre, .steps li .field, .steps li p, .steps li div { grid-column: 2; color: var(--ink-2); }
.cmd { font-family: var(--mono); font-size: 12px; background: var(--subtle); padding: 10px 12px; border-radius: 8px; overflow-x: auto; white-space: pre; margin: 4px 0; }
.checks { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checks li { display: flex; gap: 8px; }
.checks .mark { width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--subtle); }
.checks .ok .mark { background: var(--ok-soft); color: var(--ok-ink); }
.checks .missing .mark { background: var(--warn-soft); color: var(--warn-ink); }
.payload { max-height: 260px; overflow: auto; font-family: var(--mono); font-size: 11px; background: var(--subtle); padding: 10px; border-radius: 8px; white-space: pre-wrap; }

/* Responsive */
@media (max-width: 1100px) {
  .minute { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .brand { padding: 4px 8px; margin-right: auto; }
  .nav-link { width: auto; height: 36px; padding: 0 10px; font-size: 13px; }
  .nav-link svg { display: none; }
  .side-foot { display: none; }
  .main { padding: 20px 16px 120px; }
  .thead { display: none; }
  .trow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main status" "people meta"; gap: 8px 12px; padding: 14px 16px; }
  .trow .t-main { grid-area: main; }
  .trow .chip { grid-area: status; justify-self: end; }
  .trow .t-people { grid-area: people; }
  .trow .t-num { grid-area: meta; justify-self: end; }
  .trow .t-tasks { display: none; }
  .search { flex-basis: 100%; }
  .tabs { flex-wrap: wrap; }
  .tabs .spacer { display: none; }
  .tab-actions { flex-basis: 100%; order: 3; padding: 8px 0; }
  .welcome .facts, .grid-2 { grid-template-columns: 1fr; }
  .welcome h1 { font-size: 28px; }
}

/* Cloud engine: login page and logout */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 12px; }
.login-card h1 { margin: 0; font-size: 22px; }
.login-card .logo { width: 36px; height: 36px; }
.logout { margin-top: 12px; display: flex; justify-content: flex-end; }

/* Call video: follows the audio player, click for full screen */
.video-wrap { position: relative; margin-bottom: 12px; }
.meeting-video { display: block; width: 100%; max-height: 60vh; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; cursor: zoom-in; object-fit: contain; }
.video-note { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; }

.calendar-line { margin: 2px 0 6px; color: var(--ink-3); font-size: 13px; }

.menu-list small { margin-left: 6px; color: var(--ink-3); font-size: 12px; }

/* Sharing: dialog and the read-only page opened by the link */
.share-result { display: grid; gap: 10px; margin: 8px 0 4px; }
.share-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.share-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.share-page { min-height: 100vh; background: var(--bg); padding: 24px 16px; }
.share-card { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 10px; line-height: 1.55; }
.share-card h1 { margin: 0; font-size: 24px; }
.share-card h2 { font-size: 18px; margin: 18px 0 4px; display: inline; }
.share-card h3 { font-size: 15px; margin: 12px 0 2px; }
.share-card .note { color: var(--ink-3); font-size: 13px; font-style: italic; }
.share-card audio { width: 100%; }
.share-media { display: grid; gap: 8px; }
.share-downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.share-transcript > summary { cursor: pointer; margin-top: 12px; }
.share-foot { margin-top: 16px; font-size: 12px; }
@media (max-width: 640px) { .share-card { padding: 18px; } }

/* Accounts (server with several users) */
.user-box { font-size: 13px; color: var(--ink-3); padding: 6px 10px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.key-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.key-list li.muted { justify-content: flex-start; }
.users-list { overflow-x: auto; margin-bottom: 16px; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.users td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.users td.actions { white-space: nowrap; text-align: right; }
table.users td.actions .link-btn + .link-btn { margin-left: 10px; }
.login-card .qr { display: flex; justify-content: center; padding: 8px; background: #fff; border-radius: 12px; width: fit-content; margin: 6px auto; }
.login-card .qr svg { display: block; width: 200px; height: 200px; }
.login-card code.secret { font-size: 13px; word-spacing: 4px; user-select: all; }
@media (max-width: 640px) {
  table.users thead { display: none; }
  table.users tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.users td { border: 0; padding: 0; }
  table.users td.actions { text-align: left; }
}

/* Processing after the call (like Bluedot's upload page) */
.progress-card { text-align: left; }
.progress-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.progress-steps li { display: flex; gap: 12px; align-items: flex-start; }
.progress-steps li small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.progress-steps .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; line-height: 1; }
.progress-steps li.done .mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress-steps li.now .mark { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.progress-steps li.todo b { color: var(--ink-3); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .progress-steps li.now .mark { animation: none; border-top-color: var(--accent); } }
