/* ════════════════════════════════════════════════════════════════════
   听记 · Meeting Minutes Studio — shared design system
   Direction: Modern minimal (Linear / Notion) + enterprise trustworthy.
   All palette/type lives in :root. No raw hex below the token block —
   everything else is var() or color-mix().
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ─── surfaces & ink (cool neutral) ─────────────────────────────── */
  --bg:            oklch(98.2% 0.003 255);
  --surface:       oklch(100% 0 0);
  --surface-2:     oklch(97% 0.004 255);   /* sidebar, subtle fills */
  --surface-3:     oklch(95.2% 0.006 255); /* hover wells */
  --fg:            oklch(24% 0.02 262);
  --muted:         oklch(50% 0.018 262);
  --faint:         oklch(62% 0.014 262);
  --border:        oklch(91.5% 0.006 262);
  --border-strong: oklch(85% 0.01 262);

  /* ─── one accent — warm champagne gold (#B0892F) ────────────────── */
  --accent:        oklch(65.1% 0.115 84);
  --accent-press:  oklch(57.5% 0.103 84);

  /* ─── status palette (functional, not decorative) ──────────────── */
  --ok:     oklch(56% 0.12 156);   /* 完成 / 成功 */
  --warn:   oklch(70% 0.14 72);    /* 进行中 / 待审阅 */
  --danger: oklch(57% 0.18 25);    /* 高优先级 / 逾期 */
  --info:   oklch(60% 0.12 250);   /* 转写中 / 处理 */

  /* derived soft tints — do not add bootstrap-style numbered shades */
  --accent-soft: color-mix(in oklch, var(--accent) 12%, var(--surface));
  --accent-line: color-mix(in oklch, var(--accent) 28%, var(--border));
  --ok-soft:     color-mix(in oklch, var(--ok) 14%, var(--surface));
  --warn-soft:   color-mix(in oklch, var(--warn) 16%, var(--surface));
  --danger-soft: color-mix(in oklch, var(--danger) 13%, var(--surface));
  --info-soft:   color-mix(in oklch, var(--info) 13%, var(--surface));
  --well:        color-mix(in oklch, var(--fg) 4%, transparent);

  /* ─── type ──────────────────────────────────────────────────────── */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text',
               'Segoe UI', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', ui-monospace,
               Menlo, Consolas, 'Courier New', monospace;

  /* ─── geometry ──────────────────────────────────────────────────── */
  --r-sm: 6px;
  --r:    9px;
  --r-lg: 14px;
  --sidebar-w: 248px;
  --rail-w: 72px;
  --topbar-h: 60px;
  --shadow-pop: 0 1px 2px rgba(20,22,30,.06), 0 8px 24px -8px rgba(20,22,30,.18);
  --shadow-card: 0 1px 2px rgba(20,22,30,.04);
}

/* ─── reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: color-mix(in oklch, var(--accent) 22%, transparent); }
h1,h2,h3,h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mono { font-family: var(--font-mono); }

/* scrollbars — quiet */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--bg); }

/* ════════════════════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════════════════════ */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ─── sidebar ──────────────────────────────────────────────────────── */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(150deg, var(--accent), var(--accent-press));
  display: grid; place-items: center; color: #fff;
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { font-weight: 680; font-size: 15px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; color: var(--faint); letter-spacing: 0.02em; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 11px; font-weight: 600; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  position: relative; transition: background .12s, color .12s;
}
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav-item:hover { background: var(--surface-3); color: var(--fg); }
.nav-item.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card); }
.nav-item.active svg { color: var(--accent); opacity: 1; }
.nav-item .nav-count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  background: var(--well); color: var(--muted);
  padding: 1px 7px; border-radius: 99px;
}
.nav-item.active .nav-count { background: var(--accent-soft); color: var(--accent); }
.nav-item .nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 99px; background: var(--info); }

.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); }
.user-chip:hover { background: var(--surface-3); }
.user-meta { min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--faint); }

/* sidebar drawer controls (mobile) */
.scrim { display: none; }
.menu-btn { display: none; }

/* ─── main column ──────────────────────────────────────────────────── */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 17px; font-weight: 650; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; }
.crumb a:hover { color: var(--fg); }
.crumb .sep { opacity: .5; }
.crumb .cur { color: var(--fg); font-weight: 600; }
.topbar-spacer { flex: 1; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 7px 12px; width: 280px; max-width: 36vw;
  color: var(--faint); transition: border-color .12s, background .12s;
}
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search svg { width: 15px; height: 15px; flex: none; }
.search input { border: none; background: none; outline: none; width: 100%; font-size: 13px; color: var(--fg); }
.search .kbd { margin-left: auto; }
.kbd {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; background: var(--surface);
}

.content { padding: 28px 24px 56px; max-width: 1200px; width: 100%; margin: 0 auto; }
.content.wide { max-width: 1380px; }

/* ════════════════════════════════════════════════════════════════════
   PRIMITIVES
   ════════════════════════════════════════════════════════════════════ */
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.col-main { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.section-title { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
.page-head { margin-bottom: 22px; }
.page-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.page-head p { color: var(--muted); margin-top: 6px; }

/* ─── buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 550; white-space: nowrap;
  border: 1px solid transparent; transition: background .13s, border-color .13s, transform .04s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--fg); }
.btn-secondary:hover { border-color: var(--faint); background: var(--surface-2); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: var(--surface-3); color: var(--fg); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); color: var(--muted); }
.btn-icon:hover { background: var(--surface-3); color: var(--fg); }
.btn-icon.sm { width: 30px; height: 30px; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }

/* ─── card / panel ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
}
.card.pad-lg { padding: 24px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 14.5px; font-weight: 650; }
.card-head .more { color: var(--faint); font-size: 12.5px; }
.card-head .more:hover { color: var(--accent); }

/* ─── stat cards ───────────────────────────────────────────────────── */
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--well); color: var(--muted); }
.stat-ico svg { width: 17px; height: 17px; }
.stat-ico.a { background: var(--accent-soft); color: var(--accent); }
.stat-ico.i { background: var(--info-soft);   color: var(--info); }
.stat-ico.w { background: var(--warn-soft);   color: color-mix(in oklch, var(--warn) 75%, black); }
.stat-ico.o { background: var(--ok-soft);     color: var(--ok); }
.stat-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat-val .unit { font-size: 14px; color: var(--faint); margin-left: 3px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-trend { font-size: 11.5px; font-weight: 600; }
.stat-trend.up { color: var(--ok); }
.stat-trend.flat { color: var(--faint); }

/* ─── badges / status pills ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 550;
  border: 1px solid transparent; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.badge.review  { background: var(--warn-soft);   color: color-mix(in oklch,var(--warn) 72%,black); }
.badge.done    { background: var(--ok-soft);     color: var(--ok); }
.badge.live    { background: var(--info-soft);   color: var(--info); }
.badge.todo    { background: var(--well);        color: var(--muted); }
.badge.progress{ background: var(--accent-soft); color: color-mix(in oklch, var(--accent) 72%, black); }
.badge.plain   { background: var(--well);        color: var(--muted); }
.badge.danger  { background: var(--danger-soft);  color: var(--danger); }
.badge.line    { border-color: var(--border-strong); color: var(--muted); }

/* priority flag */
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; }
.prio::before { content: ''; width: 8px; height: 8px; border-radius: 2px; }
.prio.high::before { background: var(--danger); }
.prio.med::before  { background: var(--warn); }
.prio.low::before  { background: var(--faint); }
.prio.high { color: var(--danger); }

/* live ping dot */
.ping { position: relative; width: 8px; height: 8px; }
.ping i, .ping::after { position: absolute; inset: 0; border-radius: 99px; background: var(--info); }
.ping::after { content: ''; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%,100% { transform: scale(2.6); opacity: 0; } }

/* ─── avatars ──────────────────────────────────────────────────────── */
.avatar {
  width: 28px; height: 28px; border-radius: 99px; flex: none;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 650; color: #fff;
  background: var(--accent); border: 1.5px solid var(--surface);
}
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.lg { width: 38px; height: 38px; font-size: 14px; }
.avatar.c1 { background: oklch(55% 0.16 264); }
.avatar.c2 { background: oklch(58% 0.13 156); }
.avatar.c3 { background: oklch(60% 0.15 30); }
.avatar.c4 { background: oklch(58% 0.13 300); }
.avatar.c5 { background: oklch(62% 0.13 60); }
.avatar.c6 { background: oklch(56% 0.12 220); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .more {
  width: 28px; height: 28px; border-radius: 99px; margin-left: -8px; border: 1.5px solid var(--surface);
  background: var(--surface-3); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 600;
}

/* ─── list rows (meetings) ─────────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-top: 1px solid var(--border);
  transition: background .1s;
}
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--surface-2); }
.li-ico {
  width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--well); color: var(--muted);
}
.li-ico svg { width: 18px; height: 18px; }
.li-body { min-width: 0; flex: 1; }
.li-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; color: var(--faint); font-size: 12px; }
.li-meta .num { color: var(--muted); }
.li-right { display: flex; align-items: center; gap: 16px; flex: none; }

/* ─── tables ───────────────────────────────────────────────────────── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ds-table th, .ds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ds-table thead th {
  position: sticky; top: 0; background: var(--surface-2);
  color: var(--muted); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ds-table tbody tr { transition: background .1s; }
.ds-table tbody tr:hover { background: var(--surface-2); }
.ds-table .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ds-table td.tight { width: 1%; white-space: nowrap; }

/* ─── forms ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--fg); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .textarea, .select {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 13.5px;
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2399a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--faint); }
.input-affix .input { padding-left: 34px; }

/* toggle switch */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }

.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.opt-row:first-child { border-top: 0; }
.opt-row .opt-text strong { display: block; font-size: 13.5px; font-weight: 600; }
.opt-row .opt-text span { font-size: 12.5px; color: var(--muted); }

/* segmented control */
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); gap: 2px; }
.seg button { padding: 6px 13px; border-radius: 6px; font-size: 13px; font-weight: 550; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-card); }

/* ─── tabs ─────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }
.tab { padding: 10px 4px; margin-right: 18px; font-size: 13.5px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }
.tab .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-left: 5px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── chips / filter bar ───────────────────────────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 550;
}
.chip svg { width: 14px; height: 14px; }
.chip:hover { border-color: var(--faint); color: var(--fg); }
.chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; background: var(--well); color: var(--muted); font-size: 11.5px; font-weight: 500; }

/* ─── progress ─────────────────────────────────────────────────────── */
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.progress.thin { height: 4px; }
.progress.ok > i { background: var(--ok); }

/* ─── pipeline stepper (vertical) ──────────────────────────────────── */
.stepper { display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: -4px; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step-dot { width: 28px; height: 28px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); color: var(--faint); z-index: 1; }
.step-dot svg { width: 14px; height: 14px; }
.step.done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.done::before { background: var(--ok); }
.step.active .step-dot { border-color: var(--accent); color: var(--accent); }
.step.active .step-dot .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step-body { padding-top: 2px; min-width: 0; flex: 1; }
.step-body .t { font-size: 13.5px; font-weight: 600; }
.step-body .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.step.pending .step-body .t { color: var(--faint); }

/* ─── transcript ───────────────────────────────────────────────────── */
.transcript { display: flex; flex-direction: column; gap: 18px; }
.turn { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.turn-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); padding-top: 2px; }
.turn-spk { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.turn-spk b { font-size: 12.5px; font-weight: 650; }
.turn-text { font-size: 13.5px; color: var(--fg); line-height: 1.6; }
.turn.me .turn-text { color: var(--fg); }
.turn mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.caption-feed { display: flex; flex-direction: column; gap: 14px; }
.caption-feed .turn { animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ─── minutes content blocks ───────────────────────────────────────── */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; }
.meta-item .k { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.meta-item .v { font-size: 13.5px; font-weight: 500; margin-top: 4px; }
.agenda { counter-reset: ag; display: flex; flex-direction: column; }
.agenda li { list-style: none; display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); align-items: baseline; }
.agenda li:first-child { border-top: 0; }
.agenda li::before { counter-increment: ag; content: counter(ag, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.disc { display: flex; flex-direction: column; gap: 18px; }
.disc-block h4 { font-size: 14px; font-weight: 650; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.disc-block ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.disc-block li { font-size: 13.5px; color: var(--fg); }
.disc-block li .src { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-left: 6px; cursor: pointer; }
.disc-block li .src:hover { text-decoration: underline; }
.decision { display: flex; gap: 12px; padding: 13px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); background: var(--surface); }
.decision .di { color: var(--accent); flex: none; }
.decision .di svg { width: 17px; height: 17px; }
.tldr { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 18px 20px; }
.tldr .eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }

/* ─── kanban ───────────────────────────────────────────────────────── */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font-size: 13px; font-weight: 650; }
.kcol-head .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: var(--surface); padding: 1px 7px; border-radius: 99px; margin-left: auto; }
.kcol-head .led { width: 8px; height: 8px; border-radius: 2px; }
.kcards { display: flex; flex-direction: column; gap: 10px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 13px; box-shadow: var(--shadow-card); }
.kcard .kt { font-size: 13px; font-weight: 600; line-height: 1.4; }
.kcard .kmeta { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.kcard .ksrc { font-size: 11.5px; color: var(--faint); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.kcard .ksrc svg { width: 12px; height: 12px; }

/* ─── dropzone ─────────────────────────────────────────────────────── */
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 48px 24px; text-align: center;
  transition: border-color .15s, background .15s;
}
.dropzone.hot, .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-ico { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.dropzone .dz-ico svg { width: 24px; height: 24px; }

/* ─── misc ─────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 40px 20px; color: var(--faint); }
.kbd-hint { font-size: 12px; color: var(--faint); }
.dot-sep::before { content: '·'; margin: 0 8px; color: var(--border-strong); }
.linkish { color: var(--accent); font-weight: 550; }
.linkish:hover { text-decoration: underline; }
.waveform { display: flex; align-items: center; gap: 2px; height: 26px; }
.waveform i { width: 3px; border-radius: 2px; background: var(--accent); opacity: .55; animation: wv 1.1s ease-in-out infinite; }
@keyframes wv { 0%,100% { height: 20%; } 50% { height: 100%; } }

/* ─── toast notifications (window.toast) ───────────────────────────── */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 92vw;
  padding: 11px 16px 11px 12px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  font-size: 13.5px; font-weight: 550; color: var(--fg);
  opacity: 0; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto; }
.toast.in { opacity: 1; transform: translateY(0); }
.toast-ico { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; }
.toast-ico svg { width: 14px; height: 14px; }
.toast-success .toast-ico { background: var(--ok-soft); color: var(--ok); }
.toast-error   .toast-ico { background: var(--danger-soft); color: var(--danger); }
.toast-info    .toast-ico { background: var(--accent-soft); color: var(--accent); }
.toast-success { border-color: color-mix(in oklch, var(--ok) 30%, var(--border)); }
.toast-error   { border-color: color-mix(in oklch, var(--danger) 30%, var(--border)); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — sidebar collapses to icon rail, then drawer
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .col-main { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: var(--rail-w) 1fr; }
  .sidebar { padding: 16px 8px; }
  .brand-text, .nav-label, .nav-item span, .nav-item .nav-count, .user-meta { display: none; }
  .nav-item { justify-content: center; padding: 10px; }
  .brand { justify-content: center; padding: 6px 0 16px; }
  .user-chip { justify-content: center; }
  .search { width: 200px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: var(--sidebar-w); padding: 16px 12px;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
  .brand-text, .nav-label, .nav-item span, .nav-item .nav-count, .user-meta { display: revert; }
  .nav-item { justify-content: flex-start; padding: 8px 10px; }
  .brand { justify-content: flex-start; padding: 6px 8px 16px; }
  .user-chip { justify-content: flex-start; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15,18,25,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 25; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 48px; }
  .topbar { padding: 0 16px; }
  .search { display: none; }
  .turn { grid-template-columns: 52px 1fr; gap: 10px; }
  .li-right .li-when { display: none; }
  /* let wide data tables scroll inside their card instead of pushing the page */
  .card.flush { overflow-x: auto; }
  .ds-table { min-width: 600px; }
  .seg, .filter-bar { overflow-x: auto; scrollbar-width: none; }
  .page-head.row-between { flex-wrap: wrap; }
}
