@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #F6F5FA;
  --panel: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.95);
  --line: #ECEBF2;
  --ink: #17171F;
  --ink-soft: #3A3946;
  --muted: #8C8A9A;
  --faint: #B9B7C6;
  --hover: #F4F3F8;
  --rose: #3B4BF2;
  --rose-deep: #2533D6;
  --rose-soft: #ECEEFE;
  --violet: #8A3BF6;
  --violet-soft: #F0EAFE;
  --green: #15803D;
  --green-soft: #E4F6EA;
  --amber: #B45309;
  --amber-soft: #FDF1DC;
  --blob-1: #E6DDFD;
  --blob-2: #D5E6FF;
  --blob-3: #F1E2FA;
  --shadow: 0 1px 2px rgba(23, 23, 31, 0.04), 0 8px 24px rgba(140, 120, 180, 0.10);
  --shadow-lg: 0 2px 4px rgba(23, 23, 31, 0.04), 0 24px 60px rgba(140, 120, 180, 0.18);
  --coral: linear-gradient(135deg, #19ABFA 0%, #2F5BF5 50%, #8A3BF6 100%);
  --solid: #17171F;
  --on-solid: #FFFFFF;
  --radius: 20px;
  --radius-sm: 14px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0E0E13;
  --panel: #16161D;
  --glass: rgba(26, 26, 34, 0.72);
  --glass-strong: rgba(30, 30, 39, 0.92);
  --glass-border: rgba(255, 255, 255, 0.06);
  --line: #25252F;
  --ink: #EDEDF3;
  --ink-soft: #C9C8D4;
  --muted: #9A98A9;
  --faint: #5F5D6E;
  --hover: #1F1F28;
  --rose-soft: #1D2255;
  --violet-soft: #251a3d;
  --green: #4ADE80;
  --green-soft: #12301d;
  --amber: #FBBF24;
  --amber-soft: #352510;
  --blob-1: rgba(138, 59, 246, 0.16);
  --blob-2: rgba(91, 140, 255, 0.14);
  --blob-3: rgba(124, 58, 237, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --solid: #EDEDF3;
  --on-solid: #16161D;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", "Noto Sans Devanagari", "Nirmala UI", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 96% -6%, var(--blob-1), transparent 70%),
    radial-gradient(36vw 36vw at 30% 55%, var(--blob-3), transparent 70%),
    radial-gradient(48vw 48vw at 80% 110%, var(--blob-2), transparent 70%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-size: 0.92em; background: var(--hover); padding: 1px 6px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; flex: none; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.shell.collapsed { grid-template-columns: 88px 1fr; }

.sidebar {
  position: sticky; top: 12px;
  height: calc(100vh - 24px);
  margin: 12px 0 12px 12px;
  display: flex; flex-direction: column;
  background: var(--glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 16px 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; }
.brand-mark { width: 36px; height: 30px; display: block; }

.nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--ink-soft); font-weight: 500; transition: background .15s, color .15s; }
.nav a svg { color: var(--muted); }
.nav a:hover { background: var(--hover); }
.nav a.active { background: var(--rose-soft); color: var(--rose-deep); }
.nav a.active svg { color: var(--rose-deep); }
[data-theme="dark"] .nav a.active { color: #A3AEFF; }
[data-theme="dark"] .nav a.active svg { color: #A3AEFF; }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--rose); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 600; }

.side-foot { margin-top: auto; padding: 12px; display: grid; gap: 12px; }
.card-soft {
  border-radius: 18px; padding: 16px;
  background: linear-gradient(160deg, var(--rose-soft), var(--violet-soft));
  border: 1px solid var(--line);
}
.usage-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; color: var(--rose); box-shadow: var(--shadow); margin-bottom: 10px; }
.usage-num { font-size: 18px; }
.usage-num span { color: var(--muted); }
.usage p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar > div { height: 100%; border-radius: 99px; background: var(--coral); transition: width .4s; }

.theme-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: var(--hover); border: 1px solid var(--line); }
.theme-toggle button { border: 0; background: transparent; padding: 8px; border-radius: 99px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.theme-toggle button.on { background: var(--solid); color: var(--on-solid); }

.btn.record-cta { width: 100%; justify-content: center; gap: 10px; padding: 13px 16px; background: var(--coral); color: #fff; border: 0; box-shadow: 0 10px 24px rgba(59, 75, 242, 0.32); font-weight: 600; }
.btn.record-cta:hover { filter: brightness(1.04); }

.shell.collapsed .brand-name, .shell.collapsed .nav a span:not([data-icon]), .shell.collapsed .badge,
.shell.collapsed .usage, .shell.collapsed .record-cta span:first-child { display: none; }
.shell.collapsed .side-head { flex-direction: column; gap: 10px; padding: 18px 0; }
.shell.collapsed .collapse svg { transform: rotate(180deg); }
.shell.collapsed .nav a { justify-content: center; padding: 12px; }
.shell.collapsed .theme-toggle { grid-template-columns: 1fr; border-radius: 18px; }
.shell.collapsed .record-cta { padding: 13px 0; }

/* ---------- topbar ---------- */

.main { min-width: 0; padding: 12px 28px 120px; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 14px 0 22px; }
.topbar h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.search { flex: 1; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 46px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--line); color: var(--muted); }
.search:focus-within { border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 10%, transparent); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--faint); }
.me { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); font-weight: 500; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; background: linear-gradient(135deg, #19ABFA, #2F5BF5 50%, #8A3BF6); border: 2px solid var(--panel); box-shadow: var(--shadow); flex: none; }
.icon-btn.menu-btn { display: none; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--coral); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(59, 75, 242, 0.28); }
.btn.dark { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.btn.danger { color: var(--rose); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; height: 46px; }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; transition: background .15s; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.lg { width: 54px; height: 54px; box-shadow: var(--shadow); }
.icon-btn.on { color: var(--rose); }
.icon-btn[disabled] { opacity: .4; cursor: default; }

.input { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); outline: none; }
.input:focus { border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 10%, transparent); }
textarea.input { height: auto; min-height: 220px; padding: 12px 14px; resize: vertical; line-height: 1.7; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--hover); color: var(--muted); white-space: nowrap; }
.pill.live { background: var(--rose-soft); color: var(--rose); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- surfaces ---------- */

.glass { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow); }
[data-theme="dark"] .glass { border-color: var(--line); }
.pad { padding: 20px; }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter { height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--muted); cursor: pointer; font-weight: 500; }
.filter:hover { color: var(--ink); }
.filter.on { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.view-toggle { margin-left: auto; display: flex; gap: 4px; }
.view-toggle .icon-btn.on { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }

.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--muted); font-size: 13px; }
.divider .tag { padding: 3px 12px; border-radius: 8px; background: var(--hover); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.divider::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); }
.divider .count { order: 2; }

/* ---------- conversation cards ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.conv { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.conv:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.thumb { position: relative; height: 136px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--blob-1) 70%, var(--panel)), color-mix(in srgb, var(--blob-2) 70%, var(--panel))); }
.thumb::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 92px at var(--x, 65%) var(--y, 55%), hsl(var(--h1, 340) 92% 70%) 0%, hsl(var(--h2, 260) 88% 66%) 42%, hsl(var(--h3, 215) 90% 64%) 72%, transparent 100%);
  -webkit-mask: radial-gradient(circle, #000 44%, transparent 52%) 0 0 / 6px 6px;
          mask: radial-gradient(circle, #000 44%, transparent 52%) 0 0 / 6px 6px;
}
.thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 60px at calc(var(--x, 65%) - 22px) calc(var(--y, 55%) - 22px), rgba(255,255,255,.55), transparent 70%);
}
.thumb .glyph { position: absolute; top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--panel); border: 2px solid var(--panel); display: grid; place-items: center; font-weight: 600; font-size: 13px; box-shadow: var(--shadow); }
.thumb .star { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; }
.thumb .star svg { width: 16px; height: 16px; }
.thumb .star.on svg { fill: currentColor; }
.thumb .dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 99px; background: var(--panel); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.thumb .state { position: absolute; left: 12px; bottom: 12px; }
.conv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.conv-body .when { font-size: 12px; color: var(--muted); }
.conv-body .title { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.conv-body .summary { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chip svg { width: 14px; height: 14px; }

.rows { display: grid; gap: 10px; }
.row-item { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--line); transition: background .15s; }
.row-item:hover { background: var(--panel); }
.row-item .glyph { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--rose-soft); color: var(--rose-deep); }
.row-item .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .sub { font-size: 12px; color: var(--muted); }

/* ---------- home ---------- */

.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 230px; padding: 32px 36px; }
.hero h2 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.hero p { margin: 8px 0 22px; color: var(--muted); max-width: 46ch; font-size: 15px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .orb { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 330px; height: 330px; }
.hero > div { position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0 8px; }
.stat { padding: 18px 20px; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.stat .label .ib { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose-deep); }
.stat .label .ib svg { width: 15px; height: 15px; }
.stat .value { font-size: 28px; font-weight: 600; margin-top: 10px; letter-spacing: -0.01em; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 14px; }
.section-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.section-head a { color: var(--muted); font-size: 13px; }
.section-head a:hover { color: var(--ink); }

/* ---------- tasks ---------- */

.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.task:last-child { border-bottom: 0; }
.task input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 7px; border: 1.5px solid var(--faint); background: var(--panel); flex: none; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.task input:checked { background: var(--rose); border-color: var(--rose); }
.task input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.task.done .task-text { text-decoration: line-through; color: var(--muted); }
.task-text { font-weight: 500; }
.task .meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.prio { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); }
.prio.high { background: #F43F5E; }
.prio.medium { background: #F59E0B; }
.prio.low { background: #22C55E; }

/* ---------- detail ---------- */

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.detail-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.detail-head .orb { width: 88px; height: 88px; flex: none; }
.detail-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; cursor: text; }
.detail-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.detail-head .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 18px; }
.progress > div { height: 100%; background: var(--coral); transition: width .4s; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--line); margin: 24px 0 16px; }
.tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 99px; cursor: pointer; color: var(--muted); font-weight: 500; }
.tabs button.on { background: var(--solid); color: var(--on-solid); }
.mom h4 { margin: 22px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.mom h4:first-child { margin-top: 0; }
.mom ul { margin: 0; padding-left: 18px; }
.mom li { margin: 6px 0; }
.mom li::marker { color: var(--rose); }
.summary-text { font-size: 15px; line-height: 1.75; margin: 0; }
.side-stack { display: grid; gap: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--rose); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 500; }

.seg { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.seg:last-child { border-bottom: 0; }
.ts { background: none; border: 0; padding: 2px 0 0; text-align: left; cursor: pointer; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.ts:hover { color: var(--rose); }
.seg .text { line-height: 1.75; }
.seg .err { color: var(--rose); font-size: 13px; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .orb { width: 140px; height: 140px; margin: 0 auto 12px; display: block; }
.empty h3 { color: var(--ink); margin: 0 0 4px; font-weight: 600; }

/* ---------- player / modals / toast ---------- */

.player { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 20; width: min(720px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 99px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.player-meta { display: flex; flex-direction: column; min-width: 0; max-width: 34%; }
.player-meta b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta span { font-size: 12px; color: var(--muted); }
.player audio { flex: 1; height: 36px; min-width: 0; }

.modal { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: 440px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(23, 23, 31, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-body { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px; border-radius: 28px; background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-body::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(300px 220px at 100% 0%, var(--blob-1), transparent 70%), radial-gradient(300px 240px at 0% 100%, var(--blob-2), transparent 70%); }
.modal-body > * { position: relative; z-index: 1; }
.modal-body h2 { margin: 0; font-size: 22px; font-weight: 600; }
.modal-body p { margin: 0; }
.modal .orb { width: 160px; height: 160px; }
.rec-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.rec-status { font-weight: 500; }
.modal .orb#rec-orb { width: 220px; height: 220px; }
.rec-head { font-size: 22px !important; line-height: 1.35; max-width: 18ch; }
.rec-form { width: 100%; display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.rec-controls { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.rec-center { display: grid; justify-items: center; gap: 8px; }
.rec-time { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 18px; }
.mic-btn { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: var(--coral); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px rgba(59, 75, 242, .4); position: relative; }
.mic-btn svg { width: 28px; height: 28px; }
.mic-btn.recording::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(59, 75, 242, .35); animation: ring 1.6s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.wave { display: flex; gap: 5px; align-items: center; height: 40px; }
.wave i { width: 5px; height: 20%; border-radius: 99px; background: var(--faint); transition: height .12s; }

.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 40; padding: 10px 18px; border-radius: 99px; background: var(--solid); color: var(--on-solid); font-size: 13px; box-shadow: var(--shadow-lg); }
.loading { height: 200px; border-radius: var(--radius); background: linear-gradient(90deg, var(--hover), var(--panel), var(--hover)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.form-grid { display: grid; gap: 16px; max-width: 720px; }
.form-grid label { display: grid; gap: 6px; font-weight: 500; }
.form-grid label small { font-weight: 400; color: var(--muted); }
.help ol { padding-left: 20px; margin: 0; }
.help li { margin: 10px 0; }

/* ---------- speakers, corrections, learning ---------- */

.speakers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.spk { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; margin-bottom: 2px; background: var(--rose-soft); color: var(--rose); }
.spk-1 { background: var(--violet-soft); color: var(--violet); }
.spk-2 { background: var(--green-soft); color: var(--green); }
.spk-3 { background: var(--amber-soft); color: var(--amber); }
.spk-4 { background: var(--hover); color: var(--ink-soft); }
.spk-5 { background: var(--rose-soft); color: var(--violet); }
.seg .text.editable { cursor: text; border-radius: 6px; margin: -2px -6px; padding: 2px 6px; transition: background .15s; }
.seg .text.editable:hover { background: var(--hover); }
.seg .text.editing { background: var(--panel); outline: 2px solid var(--rose); }
.edited { font-size: 11px; color: var(--muted); }
.quote { margin-top: 6px; font-size: 13px; color: var(--muted); font-style: italic; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; overflow-wrap: anywhere; }
.quote[data-action] { cursor: pointer; }
.quote[data-action]:hover { color: var(--rose); }
.quote svg { width: 12px; height: 12px; flex: none; align-self: center; }
.quote time { font-style: normal; font-variant-numeric: tabular-nums; }
.quote.unverified { color: var(--amber); font-style: normal; }
.task-tools { display: flex; gap: 2px; flex: none; opacity: .55; transition: opacity .15s; }
.task:hover .task-tools, .task-tools .on { opacity: 1; }
.task-tools .icon-btn { width: 28px; height: 28px; font-size: 13px; }
.task-tools .icon-btn.on { background: var(--rose-soft); }
.task-edit { flex: 1; gap: 8px; }
.task-edit .row { display: flex; gap: 8px; flex-wrap: wrap; }
.task-edit .row .input { flex: 1; min-width: 110px; }
.mem-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mem-row:last-child { border-bottom: 0; }
.mem-row .row { display: flex; gap: 6px; align-items: center; flex: none; }
.trend { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.trend-col { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; align-items: end; gap: 2px 3px; height: 100%; }
.trend-col span { grid-column: 1 / -1; text-align: center; }
.bar-v { background: var(--rose); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-v.ok { background: var(--green); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.dot.ok { background: var(--green); }
a.stat-link { color: inherit; text-decoration: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; margin: 0; height: 100vh; width: 280px; border-radius: 0 22px 22px 0; transform: translateX(-105%); transition: transform .25s; }
  .shell.menu-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 25; background: rgba(23, 23, 31, .3); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .shell.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .collapse { display: none; }
  .icon-btn.menu-btn { display: grid; }
  .main { padding: 6px 16px 120px; }
  .topbar { flex-wrap: wrap; gap: 12px; padding-bottom: 16px; }
  .topbar h1 { font-size: 22px; }
  .search { order: 5; flex-basis: 100%; max-width: none; height: 44px; }
  .me { margin-left: auto; border: 0; padding: 0; }
  .me-name { display: none; }
  .hero { padding: 24px; min-height: 0; }
  .hero h2 { font-size: 26px; }
  .hero { padding-top: 96px; }
  .hero .orb { width: 150px; height: 150px; right: -24px; top: -20px; transform: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .thumb { height: 104px; }
  .row-item { grid-template-columns: 40px 1fr auto; }
  .row-item .hide-sm { display: none; }
  .detail-head .tools { margin-left: 0; }
  .player-meta { display: none; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 22px; }
  .rec-form { grid-template-columns: 1fr; }
}
@media (min-width: 861px) { .scrim { display: none; } }
.thumb > * { z-index: 2; }

/* ---------- dictation ---------- */
.dict-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.dict-item:last-child { border-bottom: 0; }
.dict-item .text { white-space: pre-wrap; line-height: 1.65; }
.dict-item .meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dict-item .acts { display: flex; gap: 6px; grid-row: span 2; align-self: start; }
.snip { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 8px; margin-bottom: 8px; align-items: start; }
.snip textarea.input { min-height: 72px; height: 72px; padding: 10px 14px; line-height: 1.5; }
.try { display: flex; align-items: center; gap: 14px; }
.try .mic-btn { width: 56px; height: 56px; flex: none; }
.try .mic-btn svg { width: 22px; height: 22px; }
.try-out { min-height: 48px; padding: 12px 16px; border-radius: 14px; background: var(--hover); flex: 1; white-space: pre-wrap; }
.login-logo { width: 84px; height: 70px; }
@media (max-width: 860px) { .snip { grid-template-columns: 1fr; } }

/* ---------- today ---------- */
.day-label { font-weight: 600; font-size: 16px; padding: 0 6px; }
.timeline-blocks { display: grid; gap: 10px; }
.block { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: stretch; }
.block time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; padding-top: 12px; display: grid; align-content: start; gap: 2px; }
.block time span { color: var(--muted); font-weight: 400; }
.block-body { border-radius: 16px; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); border-left: 4px solid var(--faint); }
.block-body b { display: block; font-weight: 600; }
.block-body p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.block-body .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.block.k-meeting .block-body { border-left-color: var(--rose); background: color-mix(in srgb, var(--rose-soft) 70%, var(--panel)); }
.block.k-focus .block-body { border-left-color: var(--violet); background: color-mix(in srgb, var(--violet-soft) 70%, var(--panel)); }
.block.k-task .block-body { border-left-color: #19ABFA; }
.block.k-break .block-body { border-left-color: var(--green); background: color-mix(in srgb, var(--green-soft) 60%, var(--panel)); }
ol.focus { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-weight: 500; }
ol.focus li::marker { color: var(--rose); font-weight: 600; }
ul.plain { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); }
ul.plain li { margin: 4px 0; }
@media (max-width: 860px) { .hero-slim .orb { display: none; } .hero-slim { padding: 18px 20px !important; } .hero div[style*="padding-right"] { padding-right: 0 !important; } .block { grid-template-columns: 56px 1fr; gap: 10px; } }
.prep + .prep { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* long unbroken words (URLs, ids) must not push the page sideways on phones */
.detail-head h2, .conv-body .title, .dict-item .text, .task-text, .block-body b, .summary-text, .seg .text, .timeline span { overflow-wrap: anywhere; }
.login-form .input { text-align: left; }
.login-err { color: var(--rose); font-size: 14px; min-height: 1em; }
.sec-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sec-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sec-list small { display: block; color: var(--muted); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-family: ui-monospace, monospace; }
.secret { font-family: ui-monospace, monospace; word-break: break-all; }
