@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

[hidden] { display: none !important; }

:root {
  --brand: #c8101e;
  --brand-dark: #9f0712;
  --brand-soft: #fde8e9;
  --canvas: #f7f4ef;
  --surface: #ffffff;
  --surface-muted: #f0ece6;
  --ink: #171313;
  --ink-2: #302929;
  --muted: #625858;
  --muted-2: #8a7f7f;
  --border: #ddd6ce;
  --gold: #f5b82e;
  --success: #177a55;
  --info: #2563a8;
  --warning: #a86408;
  --danger: #b4232d;
  --focus: #2563eb;
  --shadow-1: 0 1px 2px rgba(23, 19, 19, .06);
  --shadow-2: 0 14px 40px rgba(23, 19, 19, .09);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --nav-width: 248px;
  --topbar-height: 72px;
  --ease: 180ms cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--nav-width);
  display: flex; flex-direction: column; background: #fffdfa; border-right: 1px solid var(--border); transition: width var(--ease);
}
.sidebar-collapse { position: absolute; right: -18px; bottom: 82px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--ink-2); background: white; box-shadow: var(--shadow-1); transition: color var(--ease), background var(--ease), transform var(--ease); }
.sidebar-collapse::before { content: ""; position: absolute; inset: -4px; }
.sidebar-collapse:hover { color: var(--brand-dark); background: var(--brand-soft); }
.sidebar-collapse svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--ease); }
.brand { display: flex; align-items: center; gap: 12px; min-height: var(--topbar-height); padding: 12px 18px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--brand); border: 3px solid var(--ink); border-radius: 12px 12px 16px 16px; box-shadow: inset 0 0 0 2px white; font-weight: 800; letter-spacing: -.04em; }
.brand-copy strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 14px 10px 24px; }
.nav-label { margin: 16px 10px 8px; color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background var(--ease), color var(--ease); }
.nav-item:hover { background: var(--surface-muted); }
.nav-item.active { color: var(--brand-dark); background: var(--brand-soft); box-shadow: inset 3px 0 var(--brand); }
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.8; }
.nav-item .badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: white; text-align: center; font-size: 11px; }
.nav-group { margin: 2px 0 6px; }
.nav-group > .nav-item { margin-bottom: 2px; }
.nav-submenu { position: relative; display: grid; gap: 2px; margin: 0 0 4px 21px; padding-left: 15px; }
.nav-submenu::before { content: ""; position: absolute; inset: 4px auto 4px 0; width: 1px; background: var(--border); }
.nav-subitem { position: relative; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color var(--ease), background var(--ease); }
.nav-subitem:hover { color: var(--ink); background: var(--surface-muted); }
.nav-subitem.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.nav-subitem.active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 24px; border-radius: 3px; background: var(--brand); }
.nav-step { width: 22px; height: 22px; display: grid; place-items: center; flex: none; border: 1px solid currentColor; border-radius: 7px; font-size: 10px; font-weight: 800; }
.account { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); background: white; }
.account-settings { width: 44px; height: 44px; display: grid; place-items: center; flex: none; margin-left: auto; border: 0; border-radius: 10px; color: var(--muted); background: transparent; transition: color var(--ease), background var(--ease); }
.account-settings:hover, .account-settings.active { color: var(--brand-dark); background: var(--brand-soft); }
.account-settings svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; color: white; background: var(--ink); font-weight: 700; }
.account-meta { min-width: 0; }
.account-meta strong, .account-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-meta strong { font-size: 13px; }
.account-meta span { color: var(--muted); font-size: 11px; }

.main-wrap { min-height: 100dvh; margin-left: var(--nav-width); transition: margin-left var(--ease); }
body.sidebar-collapsed { --nav-width: 76px; }
body.sidebar-collapsed .brand { justify-content: center; padding-inline: 10px; }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-submenu,
body.sidebar-collapsed .account-meta,
body.sidebar-collapsed .account-settings,
body.sidebar-collapsed .nav-item .badge { display: none; }
body.sidebar-collapsed .sidebar-scroll { padding-inline: 10px; }
body.sidebar-collapsed .nav-item { justify-content: center; gap: 0; padding-inline: 12px; overflow: hidden; white-space: nowrap; color: transparent; font-size: 0; }
body.sidebar-collapsed .nav-item svg { color: var(--ink-2); }
body.sidebar-collapsed .nav-item.active svg { color: var(--brand-dark); }
body.sidebar-collapsed .account { justify-content: center; padding-inline: 10px; }
body.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar-height); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(247,244,239,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.topbar-title { margin-right: auto; }
.topbar-title strong { display: block; font-size: 16px; }
.topbar-title span { display: block; color: var(--muted); font-size: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; color: var(--ink-2); background: white; transition: border var(--ease), background var(--ease); }
.icon-btn:hover { border-color: #bdb3aa; background: var(--surface-muted); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.menu-btn { display: none; }

.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.045em; }
h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin-bottom: 6px; font-size: 16px; }
.lead { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: background var(--ease), border var(--ease), color var(--ease), box-shadow var(--ease); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.button.primary { color: white; background: var(--brand); box-shadow: 0 5px 14px rgba(200,16,30,.2); }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { color: var(--ink); background: white; border-color: var(--border); }
.button.secondary:hover { background: var(--surface-muted); border-color: #bdb3aa; }
.button.ghost { color: var(--muted); background: transparent; }
.button.ghost:hover { color: var(--ink); background: var(--surface-muted); }
.button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: start; }
.kpi { padding: 22px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.kpi-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 12px; }
.kpi-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.kpi strong { display: block; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.kpi span { color: var(--muted); font-size: 13px; }

.hero-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 310px; margin-bottom: 20px; background: var(--ink); color: white; }
.hero-card::after { content: "7"; position: absolute; right: -26px; bottom: -122px; color: rgba(255,255,255,.06); font-size: 340px; font-weight: 800; line-height: 1; }
.hero-copy { position: relative; z-index: 1; padding: 38px; }
.hero-copy .eyebrow { color: #ffb5b9; }
.hero-copy h2 { max-width: 580px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy p { max-width: 580px; color: #d8cfcf; }
.hero-flow { position: relative; z-index: 1; display: grid; align-content: center; gap: 12px; padding: 28px; }
.flow-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.06); }
.flow-item b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--brand); font-size: 12px; }
.flow-item span { font-size: 13px; }
.flow-line { width: 1px; height: 10px; margin: -12px 0 -12px 27px; background: rgba(255,255,255,.22); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.section-head h2, .section-head p { margin: 0; }
.draft-list { display: grid; gap: 12px; }
.draft-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; }
.draft-thumb { width: 52px; aspect-ratio: 4/5; display: grid; place-items: center; border-radius: 9px; color: white; background: linear-gradient(145deg, var(--brand), #6f0710); font-size: 11px; font-weight: 800; }
.draft-meta strong, .draft-meta span { display: block; }
.draft-meta span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status.draft { color: var(--warning); background: #fff3dc; }
.status.ready { color: var(--success); background: #e3f5ed; }
.status.ai { color: var(--info); background: #e6f0ff; }

.library-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.library-search { width: min(100%, 520px); display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.library-search input { min-height: 44px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.library-search input:focus { outline: 3px solid rgba(37,99,235,.25); border-color: var(--focus); }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.library-card { min-width: 0; overflow: hidden; }
.library-cover { min-height: 150px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #171313, #9f0712); }
.library-cover.pdf { background: linear-gradient(145deg, #83101b, #c8101e); }
.library-cover.pptx { background: linear-gradient(145deg, #9a3e10, #e06b20); }
.library-cover.img { background: linear-gradient(145deg, #173b31, #177a55); }
.library-cover strong { padding: 10px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; font-size: 18px; letter-spacing: .1em; }
.library-body { padding: 17px; }
.library-body h2 { overflow: hidden; margin: 0; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.library-body p { margin: 7px 0 15px; color: var(--muted); font-size: 12px; }
.library-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.library-actions .button { flex: 1; min-width: 120px; }
.library-empty { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 28px; color: var(--muted); text-align: center; }
.library-empty strong { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: white; }
.step { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 16px; color: var(--muted); border-right: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.step:last-child { border-right: 0; }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 50%; background: white; font-size: 12px; }
.step.current { color: var(--brand-dark); background: var(--brand-soft); }
.step.current .step-number { color: white; background: var(--brand); border-color: var(--brand); }
.step.complete { color: var(--success); }
.step.complete .step-number { color: white; background: var(--success); border-color: var(--success); }
.steps a.step { transition: color var(--ease), background var(--ease); }
.steps a.step:hover { color: var(--brand-dark); background: var(--brand-soft); }
.steps a.step.current { cursor: default; }
.approved-readonly-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid #b8dbc9; border-radius: var(--radius-md); color: #105d42; background: #edf8f2; }
.approved-readonly-banner svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.approved-readonly-banner strong, .approved-readonly-banner small { display: block; }
.approved-readonly-banner small { margin-top: 2px; color: #3e6e5b; }
body[data-recap-readonly="true"] .upload-zone.readonly { cursor: not-allowed; opacity: .65; }
body[data-recap-readonly="true"] input:disabled,
body[data-recap-readonly="true"] textarea:disabled,
body[data-recap-readonly="true"] select:disabled { color: var(--ink-2); opacity: .72; }

.upload-zone { position: relative; padding: 42px 24px; border: 1.5px dashed #b7ada5; border-radius: 14px; text-align: center; background: #fcfaf7; transition: border var(--ease), background var(--ease); }
.upload-zone.dragover { border-color: var(--brand); background: var(--brand-soft); }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.upload-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.upload-zone p { margin-bottom: 8px; color: var(--muted); }
.upload-zone small { display: block; color: var(--muted-2); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.source-list { display: grid; gap: 10px; margin-top: 18px; }
.source-empty { margin: 0; padding: 18px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }
.source-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.file-type { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--brand); font-size: 10px; font-weight: 800; }
.file-type.image { color: var(--ink); background: var(--gold); }
.source-meta strong, .source-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-meta strong { font-size: 13px; }
.source-meta span { color: var(--muted); font-size: 11px; }
.source-meta span.uploading { color: var(--info); }
.source-meta span.uploaded { color: var(--success); }
.source-meta span.failed { color: var(--danger); }
.source-actions { display: flex; gap: 4px; }
.mini-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--muted); background: transparent; }
.mini-btn:hover { color: var(--ink); background: var(--surface-muted); }
.mini-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.control { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); background: white; transition: border var(--ease), box-shadow var(--ease); }
.control:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(37,99,235,.12); outline: 0; }
textarea.control { min-height: 112px; resize: vertical; }
.settings-layout { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: 20px; align-items: start; }
.profile-summary { position: sticky; top: calc(var(--topbar-height) + 24px); text-align: center; }
.profile-avatar { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: white; background: var(--ink); box-shadow: 0 0 0 6px var(--brand-soft); font-size: 30px; font-weight: 800; }
.profile-summary .button { width: 100%; margin-top: 14px; }
.settings-section + .settings-section { margin-top: 16px; }
.settings-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-full { grid-column: 1 / -1; }
.readonly-control { color: var(--muted); background: var(--surface-muted); }
.preference-list { display: grid; gap: 10px; }
.preference { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.preference input { width: 18px; height: 18px; accent-color: var(--brand); }
.preference span { color: var(--muted); font-size: 12px; }
.settings-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.settings-section-head h2, .settings-section-head p { margin: 0; }
.settings-section-head p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.connection-status { flex: none; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-muted); font-size: 11px; font-weight: 700; }
.connection-status.connected { border-color: #b8dfce; color: var(--success); background: #edf9f4; }
.connection-status.error { border-color: #efc1c5; color: var(--danger); background: var(--brand-soft); }
.secret-notice { display: grid; gap: 3px; margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: var(--brand-soft); }
.secret-notice strong { font-size: 12px; }
.secret-notice span { color: var(--muted); font-size: 11px; }
.api-settings-grid .field:last-child { margin-bottom: 8px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.field-label-row label { margin-bottom: 0; }
.text-button { padding: 3px 0; border: 0; color: var(--brand); background: transparent; font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--brand-dark); text-decoration: underline; }
.text-button:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.secret-input { position: relative; }
.secret-input .control { padding-right: 64px; }
.secret-input .mini-btn { position: absolute; top: 4px; right: 5px; width: 52px; color: var(--brand); font-size: 11px; font-weight: 700; }
.api-settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.settings-feedback { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
.settings-feedback.error { color: var(--danger); }
.settings-feedback.success { color: var(--success); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option { position: relative; display: block; min-width: 0; margin-bottom: 0; cursor: pointer; }
.option input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option-body { display: block; min-height: 104px; height: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: white; transition: border var(--ease), background var(--ease), box-shadow var(--ease); }
.option input:checked + .option-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.option input:focus-visible + .option-body { outline: 3px solid var(--focus); outline-offset: 3px; }
.option-body strong, .option-body span { display: block; }
.option-body strong { font-size: 13px; }
.option-body span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.action-bar { position: sticky; bottom: 16px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-2); backdrop-filter: blur(10px); }
.autosave { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.autosave::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.actions { display: flex; gap: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.ai-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 14px 16px; border: 1px solid #e5b96a; border-radius: 12px; background: #fff8e8; cursor: pointer; }
.ai-consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.ai-consent span, .ai-consent strong { display: block; }
.ai-consent span { color: var(--muted); font-size: 12px; }
.ai-consent strong { margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.business-application { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.application-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fcfaf7; cursor: pointer; }
.application-toggle input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--brand); }
.application-toggle span, .application-toggle strong, .application-toggle small { display: block; }
.application-toggle strong { font-size: 13px; }
.application-toggle small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.application-context { margin-top: 14px; }
.application-context label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.application-context[hidden] { display: none; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 20px; align-items: start; }
.review-rail { position: sticky; top: 92px; display: grid; gap: 14px; min-width: 0; }
.editor { padding: 28px; }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.editor-area { min-height: 480px; padding-top: 22px; }
.content-block { position: relative; padding: 13px 14px; border: 1px solid transparent; border-radius: 10px; transition: background var(--ease), border var(--ease); }
.content-block:hover, .content-block.selected { border-color: var(--border); background: #fcfaf7; }
.content-block p { margin: 0; }
.block-label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.origin-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.origin-dot.inference { background: var(--gold); }
.editor-tabs { display: flex; flex: none; padding: 4px; border-radius: 10px; background: var(--surface-muted); }
.editor-tab { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.editor-tab.active { color: var(--ink); background: white; box-shadow: var(--shadow-1); }
.recap-quality { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.recap-quality strong { color: var(--ink); }
.markdown-preview { max-width: 72ch; min-height: 560px; margin: 0 auto; padding: 34px 10px 48px; color: #292323; font-size: 15px; line-height: 1.75; }
.markdown-preview > h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(28px, 4vw, 38px); line-height: 1.22; letter-spacing: -.035em; }
.markdown-preview blockquote { margin: 0 0 30px; padding: 14px 18px; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; color: var(--brand-dark); background: var(--brand-soft); font-size: 17px; font-weight: 650; line-height: 1.55; }
.markdown-section { margin-top: 30px; padding-top: 4px; }
.markdown-section h2 { margin: 0 0 12px; color: var(--ink); font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.markdown-section p { margin: 0 0 12px; }
.markdown-section ul { display: grid; gap: 8px; margin: 10px 0 16px; padding-left: 22px; }
.markdown-section li::marker { color: var(--brand); }
.citation-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 14px; }
.citation-chip { min-height: 32px; padding: 5px 9px; border: 1px solid #b9ddcd; border-radius: 999px; color: var(--success); background: #f0faf6; font-size: 10px; font-weight: 700; }
.citation-chip:hover { border-color: var(--success); background: #e5f6ee; }
.citation-chip.active { color: white; border-color: var(--success); background: var(--success); }
.markdown-input { width: 100%; min-height: 650px; margin-top: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 12px; color: #282323; background: #fcfaf7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.7; resize: vertical; }
.markdown-input:focus { border-color: var(--focus); outline: 3px solid rgba(37,99,235,.12); }
.source-panel-hint { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.source-empty-state { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: var(--muted); text-align: center; }
.source-empty-state svg { width: 36px; height: 36px; margin-bottom: 12px; fill: none; stroke: var(--brand); stroke-width: 1.5; }
.source-empty-state strong, .source-empty-state span { display: block; }
.source-empty-state strong { color: var(--ink); font-size: 13px; }
.source-empty-state span { max-width: 240px; margin-top: 5px; font-size: 11px; }
.source-viewer { overflow: hidden; min-height: 220px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); }
.source-viewer img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.source-viewer iframe { display: block; width: 100%; height: 480px; border: 0; }
.source-file-placeholder { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; text-align: center; }
.transcript-source-preview { display: block; min-height: 220px; text-align: left; }
.transcript-source-preview strong { display: block; margin-bottom: 12px; }
.transcript-source-preview p { max-height: 440px; margin: 0; overflow-y: auto; white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.version-list { display: grid; gap: 8px; padding: 12px; }
.version-item { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fffdfa; }
.version-item.active { border-color: var(--brand); background: var(--brand-soft); }
.version-item-head { display: flex; justify-content: space-between; gap: 10px; }
.version-item strong, .version-item span { display: block; }
.version-item strong { color: var(--ink); font-size: 13px; line-height: 1.35; }
.version-item span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.version-status { flex: none; min-height: 24px; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: var(--surface-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.version-status.approved { color: var(--success); background: #eaf7ef; }
.version-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.version-actions .button { min-height: 38px; padding: 8px 10px; font-size: 10px; }
.version-delete { width: 38px; min-height: 38px; padding: 0; border: 1px solid #efc2c5; border-radius: 8px; color: var(--brand); background: white; }
.version-delete svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.version-delete:disabled { opacity: .45; cursor: not-allowed; }
.source-panel { overflow: hidden; }
.source-panel-head { padding: 18px; border-bottom: 1px solid var(--border); }
.source-panel-body { padding: 14px; }
.source-context { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.source-context > span { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: #fffaf6; }
.source-context small, .source-context strong { display: block; }
.source-context small { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.source-context strong { overflow: hidden; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; }
.source-preview { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: 12px; color: white; background: linear-gradient(145deg, #272020, #6e0b14); text-align: center; }
.source-preview strong { max-width: 240px; font-size: 19px; line-height: 1.35; }
.source-ref { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--surface-muted); font-size: 12px; }
.source-ref strong, .source-ref span { display: block; }
.source-ref span { margin-top: 4px; color: var(--muted); }
.warning { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #f1d69d; border-radius: 10px; color: #754605; background: #fff8e9; font-size: 12px; }
.warning svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

.export-layout { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr); gap: 28px; align-items: start; }
.export-controls { display: grid; gap: 14px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visual-choice { padding: 10px; border: 2px solid transparent; border-radius: 14px; background: white; box-shadow: var(--shadow-1); }
.visual-choice.active { border-color: var(--brand); }
.visual-thumb { aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--canvas); }
.visual-thumb.mindmap { padding: 18px; background: #fff8f3; }
.mindmap-root { display: grid; gap: 12px; width: 100%; text-align: center; }
.mindmap-root b { padding: 10px; border-radius: 8px; color: white; background: var(--brand); font-size: 12px; }
.mindmap-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mindmap-nodes span { padding: 7px; border: 1px solid #e7bbb8; border-radius: 7px; background: white; font-size: 9px; }
.visual-thumb.illustration { position: relative; color: white; background: linear-gradient(145deg, #191313 0 40%, #a10915 40% 76%, #e01d2d 76%); }
.visual-thumb.illustration::after { content: "TEAM 7"; position: absolute; bottom: 16px; font-size: 24px; font-weight: 800; letter-spacing: -.06em; }
.visual-choice footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px 0; }
.visual-choice footer strong { font-size: 12px; }
.radio-mark { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 50%; }
.visual-choice.active .radio-mark { border: 5px solid var(--brand); }
.facebook-shell { overflow: hidden; border-radius: 18px; background: #f0f2f5; box-shadow: var(--shadow-2); }
.fb-bar { height: 48px; display: flex; align-items: center; padding: 0 18px; color: white; background: #1877f2; font-size: 14px; font-weight: 700; }
.fb-post { width: min(100%, 580px); margin: 20px auto; background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.fb-author { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.fb-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 12px; font-weight: 800; }
.fb-author strong, .fb-author span { display: block; }
.fb-author strong { font-size: 13px; }
.fb-author span { color: #65676b; font-size: 11px; }
.fb-caption { padding: 6px 16px 14px; color: #1c1e21; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.fb-caption-title { display: block; margin: 2px 0 12px; font-size: 18px; line-height: 1.3; }
.fb-caption-heading { display: block; margin: 18px 0 7px; color: #171313; font-size: 15px; line-height: 1.35; }
.fb-caption p { margin: 0 0 10px; }
.fb-caption blockquote { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; color: #7c0b14; background: #fff3f3; font-size: 15px; font-weight: 600; line-height: 1.5; }
.fb-caption ul { display: grid; gap: 6px; margin: 5px 0 12px; padding-left: 20px; }
.fb-caption li::marker { color: var(--brand); }
.fb-caption .fb-caption-hashtags { margin: 14px 0 0; color: #216fdb; font-weight: 600; }
.fb-image { aspect-ratio: 4/5; display: grid; place-items: center; padding: 36px; color: white; background: linear-gradient(150deg, #171313, #6b0710 52%, #c8101e); text-align: center; }
.fb-image-content { max-width: 340px; }
.fb-image small { color: #ffc5c8; font-weight: 700; letter-spacing: .12em; }
.fb-image h2 { margin: 12px 0; font-size: clamp(26px, 4vw, 42px); }
.fb-image p { color: #f5dfe0; }
.visual-thumb.infographic { aspect-ratio: 3/2; padding: 0; background: #f7f1e8; }
.visual-loading { color: var(--muted); font-size: 11px; font-weight: 700; }
.infographic-stage { aspect-ratio: 3/2; display: block; padding: 0; color: var(--ink); background: #f7f1e8; text-align: left; }
.infographic-board { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; color: #171313; background: #f7f1e8; font-family: "Be Vietnam Pro", Arial, sans-serif; }
.infographic-header { position: relative; padding: 5.2% 5.5% 3.5%; color: white; background: #171313; }
.infographic-header::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 1.3%; background: #c8101e; }
.infographic-kicker { display: block; margin-bottom: 1.4%; color: #f5b82e; font-size: clamp(5px, 1.25vw, 13px); font-weight: 800; letter-spacing: .14em; }
.infographic-header h2 { max-width: 88%; margin: 0; color: white; font-size: clamp(12px, 3.1vw, 32px); line-height: 1.08; letter-spacing: -.035em; }
.infographic-header p { margin: 1.2% 0 0; color: #dfd4cd; font-size: clamp(5px, 1.18vw, 12px); }
.infographic-panels { min-height: 0; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6%; padding: 2.4% 2.8%; }
.infographic-panel { min-width: 0; overflow: hidden; border: 1px solid #ded3c9; border-radius: 2.2%; background: white; }
.infographic-panel-head { display: flex; align-items: center; gap: 4%; padding: 5% 5.5%; border-bottom: 1px solid #eadfd7; background: #fffaf6; }
.infographic-number { min-width: 20%; color: #c8101e; font-size: clamp(11px, 2.5vw, 25px); font-weight: 900; line-height: 1; }
.infographic-panel-head strong { font-size: clamp(6px, 1.35vw, 14px); line-height: 1.2; text-transform: uppercase; }
.infographic-items { display: grid; gap: 0; padding: 1% 5.5%; }
.infographic-item { display: grid; grid-template-columns: 8% 1fr; gap: 4%; padding: 4.8% 0; border-bottom: 1px solid #eee6df; }
.infographic-item:last-child { border: 0; }
.infographic-dot { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: white; background: #c8101e; font-size: clamp(4px, .9vw, 9px); font-weight: 800; }
.infographic-copy strong, .infographic-copy span { display: block; }
.infographic-copy strong { font-size: clamp(5px, 1.08vw, 11px); line-height: 1.25; }
.infographic-copy span { margin-top: 2%; color: #625858; font-size: clamp(4px, .88vw, 9px); line-height: 1.35; }
.infographic-footer { display: flex; align-items: center; gap: 3%; padding: 2.2% 4%; color: white; background: #9f0712; }
.infographic-footer b { flex: none; color: #f5b82e; font-size: clamp(6px, 1.3vw, 13px); }
.infographic-footer span { font-size: clamp(5px, 1vw, 10px); font-weight: 600; line-height: 1.3; }
.visual-thumb .infographic-header { padding: 7% 6% 4%; }
.visual-thumb .infographic-panels { gap: 2%; padding: 3%; }
.visual-thumb .infographic-copy span { display: none; }
.visual-thumb .infographic-item { padding: 7% 0; }
.visual-thumb .infographic-footer { display: none; }
.fb-engagement { display: flex; justify-content: space-around; padding: 10px; border-top: 1px solid #e4e6eb; color: #65676b; font-family: Arial, sans-serif; font-size: 12px; }
.check-list { display: grid; gap: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; }
.check-item::before { content: ""; width: 17px; height: 17px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--success); box-shadow: inset 0 0 0 5px #e3f5ed; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 360px; display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--ease), transform var(--ease); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.mobile-overlay { display: none; }

/* Feed */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.feed-main, .feed-rail { display: grid; gap: 16px; }
.feed-rail { position: sticky; top: 92px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.chip { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: white; font-size: 12px; font-weight: 700; }
.chip.active { color: white; background: var(--ink); border-color: var(--ink); }
.composer { padding: 18px; }
.composer-start { display: flex; align-items: center; gap: 12px; }
.composer-trigger { min-height: 46px; flex: 1; padding: 11px 15px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--canvas); text-align: left; }
.composer-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.composer-action { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.composer-action:hover { color: var(--ink); background: var(--surface-muted); }
.composer-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.post { overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 11px; padding: 18px 18px 10px; }
.post-author { min-width: 0; flex: 1; }
.post-author strong, .post-author span { display: block; }
.post-author strong { font-size: 13px; }
.post-author span { color: var(--muted); font-size: 11px; }
.post-body { padding: 4px 18px 16px; }
.post-body p { margin-bottom: 10px; }
.post-body a { color: var(--brand-dark); font-weight: 700; }
.post-cover { aspect-ratio: 16/8.5; display: grid; place-items: center; padding: 26px; color: white; background: linear-gradient(145deg, #181313, #790a13 58%, #c8101e); text-align: center; }
.post-cover small { color: #ffc4c8; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.post-cover h3 { max-width: 460px; margin: 8px 0 0; font-size: clamp(22px, 4vw, 34px); line-height: 1.2; }
.post-stats { display: flex; justify-content: space-between; padding: 10px 18px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--border); }
.reaction-summary { display: flex; align-items: center; gap: 8px; }
.reaction-stack { display: flex; align-items: center; }
.reaction-bubble { width: 24px; height: 24px; display: grid; place-items: center; margin-left: -5px; border: 2px solid white; border-radius: 50%; color: white; background: var(--info); }
.reaction-bubble:first-child { margin-left: 0; }
.reaction-bubble.love { background: #d92d43; }
.reaction-bubble.insight { color: #6a4300; background: var(--gold); }
.reaction-bubble.empathy { background: #d66b20; }
.reaction-bubble.applied { background: var(--success); }
.reaction-bubble svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.post-actions { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 8px; }
.post-actions button { min-height: 42px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.post-actions button:hover { color: var(--brand-dark); background: var(--brand-soft); }
.post-action-wrap { position: relative; }
.post-action-wrap > button { width: 100%; }
.post-action-wrap > button.reacted { color: var(--brand-dark); background: var(--brand-soft); }
.reaction-picker { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; display: flex; gap: 7px; width: max-content; max-width: min(560px, calc(100vw - 40px)); padding: 9px; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity var(--ease), transform var(--ease); }
.post-action-wrap.open .reaction-picker { opacity: 1; transform: translateY(0); pointer-events: auto; }
.reaction-option { width: 56px; min-height: 64px; display: grid; place-items: center; gap: 4px; padding: 5px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; transition: background var(--ease), color var(--ease); touch-action: manipulation; }
.reaction-option:hover, .reaction-option:focus-visible { color: var(--ink); background: var(--surface-muted); }
.reaction-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--info); transition: transform var(--ease); }
.reaction-option:hover .reaction-icon, .reaction-option:focus-visible .reaction-icon { transform: translateY(-3px); }
.reaction-icon.love { background: #d92d43; }
.reaction-icon.insight { color: #6a4300; background: var(--gold); }
.reaction-icon.inspire { background: #8b4ab8; }
.reaction-icon.empathy { background: #d66b20; }
.reaction-icon.applied { background: var(--success); }
.reaction-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.reaction-option span:last-child { font-size: 9px; font-weight: 700; white-space: nowrap; }
.comment-preview { display: grid; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--border); }
.comment { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 9px; align-items: start; }
.comment .avatar { width: 32px; height: 32px; font-size: 9px; }
.comment-bubble { padding: 9px 11px; border-radius: 4px 13px 13px 13px; background: var(--surface-muted); font-size: 11px; }
.comment-bubble strong { display: block; margin-bottom: 2px; font-size: 10px; }
.comment-tools { display: flex; gap: 12px; margin: 4px 0 0 42px; color: var(--muted); font-size: 9px; font-weight: 700; }
.rail-card { padding: 18px; }
.rail-card h2 { font-size: 16px; }
.rail-list { display: grid; gap: 12px; }
.rail-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; }
.rail-date { width: 38px; height: 42px; display: grid; place-items: center; border-radius: 9px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 800; line-height: 1.1; text-align: center; }
.rail-item strong, .rail-item span { display: block; }
.rail-item strong { font-size: 12px; }
.rail-item span { color: var(--muted); font-size: 10px; }

/* Modules */
.learning-hero { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 28px; align-items: center; padding: 30px; background: var(--ink); color: white; }
.learning-hero p { color: #d9d0d0; }
.progress-ring { --value: 36; position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(255,255,255,.14) 0); }
.progress-ring::before { content: ""; width: 116px; height: 116px; position: absolute; border-radius: 50%; background: var(--ink); }
.progress-ring span { position: relative; z-index: 1; text-align: center; }
.progress-ring strong, .progress-ring small { display: block; }
.progress-ring strong { font-size: 30px; }
.progress-ring small { color: #d9d0d0; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.module-card { overflow: hidden; }
.module-accent { height: 7px; background: var(--brand); }
.module-accent.gold { background: var(--gold); }
.module-accent.green { background: var(--success); }
.module-accent.blue { background: var(--info); }
.module-content { padding: 20px; }
.module-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.module-index { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.progress-bar { height: 7px; overflow: hidden; margin: 14px 0 8px; border-radius: 99px; background: var(--surface-muted); }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.processing-shell { max-width: 760px; margin: 28px auto 0; padding: 32px; text-align: center; }
.processing-visual { width: 116px; height: 116px; display: grid; place-items: center; margin: 4px auto 22px; border-radius: 50%; color: white; background: conic-gradient(var(--brand) calc(var(--progress, 0) * 1%), var(--surface-muted) 0); }
.processing-visual::before { content: ""; grid-area: 1 / 1; width: 88px; height: 88px; border-radius: 50%; background: var(--ink); }
.processing-percent { grid-area: 1 / 1; z-index: 1; font-size: 24px; font-weight: 800; }
.processing-shell .progress-bar { height: 10px; margin: 24px 0 10px; }
.processing-status { color: var(--muted); font-size: 13px; }
.job-health { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #b8dfce; border-radius: 999px; color: var(--success); background: #edf9f4; font-size: 11px; font-weight: 700; }
.job-health > span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(23,122,85,.12); }
.job-health.slow { border-color: #e5c27d; color: var(--warning); background: #fff8e9; }
.job-health.error { border-color: #efc1c5; color: var(--danger); background: var(--brand-soft); }
.processing-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
.processing-metrics div { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fcfaf7; }
.processing-metrics span, .processing-metrics strong { display: block; }
.processing-metrics span { color: var(--muted); font-size: 10px; }
.processing-metrics strong { margin-top: 3px; color: var(--ink); font-size: 15px; }
.processing-heartbeat { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.processing-stages { display: grid; gap: 8px; margin-top: 26px; text-align: left; }
.processing-stage { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 12px; border-radius: 10px; color: var(--muted); background: var(--surface-muted); font-size: 13px; }
.processing-stage::before { content: ""; width: 10px; height: 10px; flex: none; border: 2px solid var(--muted-2); border-radius: 50%; }
.processing-stage.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.processing-stage.active::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px rgba(200,16,30,.12); }
.processing-stage.complete { color: var(--success); background: #e3f5ed; }
.processing-stage.complete::before { border-color: var(--success); background: var(--success); }
.processing-stage strong, .processing-stage span { display: block; }
.processing-stage strong { min-width: 150px; color: inherit; font-size: 12px; }
.processing-stage span { font-size: 10px; }
.processing-help { display: grid; gap: 3px; margin-top: 18px; padding: 12px 14px; border-radius: 10px; color: var(--muted); background: #fcfaf7; font-size: 11px; text-align: left; }
.processing-help strong { color: var(--ink); font-size: 11px; }
.processing-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.processing-actions[hidden] { display: none; }
.module-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.session-list { display: grid; gap: 9px; margin-top: 16px; }
.session { min-height: 50px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px; border-radius: 9px; background: var(--canvas); }
.session-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--brand-dark); background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.session strong, .session span { display: block; }
.session strong { font-size: 11px; }
.session span { color: var(--muted); font-size: 9px; }
.session-state { color: var(--success); font-size: 10px; font-weight: 700; }

/* Events */
.event-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.event-toolbar h2 { margin: 0 auto 0 0; }
.month-switcher { display: flex; align-items: center; gap: 4px; }
.agenda { display: grid; gap: 24px; }
.agenda-day { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 18px; }
.day-label { padding-top: 10px; text-align: center; }
.day-label strong, .day-label span { display: block; }
.day-label strong { font-size: 28px; line-height: 1; }
.day-label span { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.day-label.today { color: var(--brand); }
.event-stack { display: grid; gap: 10px; }
.event-card { position: relative; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 16px; }
.event-type { align-self: stretch; border-radius: 99px; background: var(--brand); }
.event-type.deadline { background: var(--danger); }
.event-type.meeting { background: var(--info); }
.event-type.community { background: var(--gold); }
.event-info strong, .event-info span { display: block; }
.event-info strong { font-size: 13px; }
.event-info span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.event-info .event-kicker { margin: 0 0 5px; color: var(--brand-dark); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.event-info .event-recap-line { margin-top: 12px; }
.event-recap-line .status { display: inline-flex; margin: 0; }
.event-people { display: flex; align-items: center; }
.person-dot { width: 30px; height: 30px; display: grid; place-items: center; margin-left: -7px; border: 2px solid white; border-radius: 50%; color: white; background: var(--ink); font-size: 9px; font-weight: 800; }
.person-dot:first-child { margin-left: 0; }
.event-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mini-calendar { padding: 18px; }
.week-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; text-align: center; }
.week-grid span { min-height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 10px; }
.week-grid .week-name { min-height: 22px; font-weight: 800; }
.week-grid .has-event { color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; }
.week-grid .selected { color: white; background: var(--brand); }
.learning-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }
.learning-stat { padding: 17px 18px; }
.learning-stat strong, .learning-stat span { display: block; }
.learning-stat strong { font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.learning-stat span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.event-history-layout { grid-template-columns: minmax(0,1.55fr) minmax(260px,.45fr); gap: 24px; }
.event-history { gap: 18px; }
.learning-event-card { align-items: center; }
.learning-event-card .event-info { min-width: 0; }
.learning-event-card .event-info strong, .learning-event-card .event-info span { overflow-wrap: anywhere; }
.learning-event-card .event-info strong { max-width: 690px; font-size: 14px; line-height: 1.45; }
.learning-event-card .event-recap-action { min-width: 132px; white-space: nowrap; }
.event-rail { position: sticky; top: calc(var(--topbar-height) + 18px); }
.event-link-rule { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: start; }
.event-link-rule svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--success); background: #e3f5ed; fill: none; stroke: currentColor; stroke-width: 1.8; }
.event-link-rule p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.voice-source-callout { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-muted); }
.voice-source-callout > span:nth-child(2) { min-width: 0; }
.voice-source-callout strong, .voice-source-callout small { display: block; }
.voice-source-callout small { margin-top: 2px; color: var(--muted); line-height: 1.45; }
.voice-source-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-soft); }
.voice-source-icon svg, .voice-pulse svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.voice-page { width: min(1400px, calc(100% - 32px)); padding-top: 20px; }
.voice-page .page-head { align-items: center; margin-bottom: 16px; }
.voice-page .page-head h1 { margin-bottom: 4px; font-size: clamp(26px, 3vw, 34px); }
.voice-page .page-head .lead { max-width: 760px; font-size: 14px; }
.voice-clock { min-width: 118px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: white; text-align: right; }
.voice-clock span, .voice-clock strong { display: block; }
.voice-clock span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.voice-clock strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.voice-layout { display: grid; grid-template-columns: 228px minmax(0,1fr); gap: 14px; align-items: start; }
.voice-controls { position: sticky; top: calc(var(--topbar-height) + 12px); padding: 14px; }
.recording-manager { margin: -2px -2px 14px; padding: 2px 2px 12px; border-bottom: 1px solid var(--border); }
.recording-manager > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.recording-manager header small, .recording-manager header strong { display: block; }
.recording-manager header small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.recording-manager header strong { margin-top: 2px; font-size: 13px; }
.recording-add { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 9px; color: white; background: var(--brand); font-size: 20px; line-height: 1; }
.recording-add:hover { background: var(--brand-dark); }
.recording-list { display: grid; gap: 5px; max-height: 140px; overflow-y: auto; }
.recording-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink-2); background: var(--surface-muted); text-align: left; }
.recording-item:hover { border-color: var(--border); background: white; }
.recording-item.active { border-color: #e8a8ad; color: var(--brand-dark); background: var(--brand-soft); }
.recording-item span { min-width: 0; }
.recording-item strong, .recording-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recording-item strong { font-size: 12px; }
.recording-item small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.recording-item b { color: currentColor; font-size: 9px; white-space: nowrap; }
.voice-state { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.voice-state small, .voice-state strong { display: block; }
.voice-state small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.voice-state strong { margin-top: 2px; font-size: 14px; }
.voice-pulse { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.voice-pulse svg { width: 20px; height: 20px; }
.voice-state[data-voice-state="listening"] .voice-pulse { color: white; background: var(--brand); animation: voice-pulse 1.6s ease-out infinite; }
.voice-main-action { width: 100%; min-height: 42px; margin-top: 7px; padding-block: 8px; font-size: 12px; }
.voice-glossary { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.voice-glossary strong, .voice-glossary small { display: block; }
.voice-glossary .control { min-height: 60px; margin-top: 6px; padding: 8px 10px; resize: vertical; font-size: 11px; }
.voice-glossary small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.voice-rule { display: grid; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.voice-rule strong { margin-bottom: 2px; }
.voice-rule span { position: relative; padding-left: 17px; color: var(--muted); font-size: 10px; }
.voice-rule span::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.voice-privacy { margin: 14px 0 0; color: var(--muted); font-size: 9px; }
.transcript-panel { min-height: 480px; overflow: hidden; }
.transcript-head { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px 10px; border-bottom: 1px solid var(--border); }
.transcript-head h2 { margin: 0; }
.transcript-title-input { width: min(100%, 520px); margin: 0 0 2px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.transcript-title-input:focus-visible { border-radius: 4px; outline-offset: 4px; }
.transcript-compare-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px; padding-top: 10px; border-bottom: 1px solid var(--border); }
.transcript-compare-tabs button { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; min-height: 52px; padding: 7px 10px; border: 0; color: var(--muted); background: transparent; text-align: left; font-size: 12px; font-weight: 800; cursor: default; }
.transcript-compare-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.transcript-compare-tabs button:first-child.active { color: var(--warning); background: #fff7e8; }
.transcript-compare-tabs button:last-child.active { color: var(--success); background: #edf8f2; }
.transcript-compare-tabs button.active::after { background: var(--brand); }
.transcript-compare-tabs button > span { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 7px; font-size: 9px; }
.transcript-compare-tabs button small { grid-column: 2; color: var(--muted); font-size: 9px; font-weight: 500; }
.transcript-compare-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.transcript-version-pane { display: block; min-width: 0; }
.transcript-version-pane + .transcript-version-pane { border-left: 1px solid var(--border); }
.transcript-version-label { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; margin: 10px 12px 0; padding: 7px 9px; border-radius: 8px; }
.transcript-version-label strong { font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.transcript-version-label span { color: var(--muted); font-size: 9px; }
.transcript-version-label.raw { color: var(--warning); background: #fff7e8; }
.transcript-version-label.corrected { color: var(--success); background: #edf8f2; }
.raw-transcript-editor { color: #443b3b; background: #fffdfa; }
.transcript-count { height: fit-content; padding: 6px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-muted); font-size: 12px; white-space: nowrap; }
.transcript-editor { min-height: 320px; max-height: 54vh; overflow-y: auto; padding: 16px; font-size: 16px; line-height: 1.65; outline: 0; white-space: pre-wrap; }
.transcript-editor:empty::before { content: attr(data-placeholder); color: var(--muted-2); }
.live-utterance { display: flex; align-items: flex-start; gap: 8px; margin: 0 12px 10px; padding: 9px 11px; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; color: var(--brand-dark); background: var(--brand-soft); font-size: 13px; }
.live-utterance > span { width: 8px; height: 8px; flex: none; margin-top: 8px; border-radius: 50%; background: var(--brand); animation: voice-blink 1s infinite; }
.transcript-feedback { min-height: 20px; margin: 0; padding: 8px 16px 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.transcript-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: #fffdfa; }
.transcript-actions .button { min-height: 40px; padding: 8px 12px; font-size: 11px; }
@keyframes voice-pulse { 0% { box-shadow: 0 0 0 0 rgba(200,16,30,.3); } 75%,100% { box-shadow: 0 0 0 14px rgba(200,16,30,0); } }
@keyframes voice-blink { 50% { opacity: .25; } }

@media (max-width: 1050px) {
  .voice-layout { grid-template-columns: 210px minmax(0,1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-flow { grid-template-columns: repeat(2, 1fr); }
  .flow-line { display: none; }
  .split, .review-layout, .export-layout { grid-template-columns: 1fr; }
  .review-rail { position: static; }
  .export-controls { grid-template-columns: 1fr 1fr; }
  .feed-layout { grid-template-columns: 1fr; }
  .feed-rail { position: static; grid-template-columns: 1fr 1fr; }
  .event-side { grid-template-columns: 1fr; }
  .event-rail { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 64px; }
  .voice-layout { grid-template-columns: 1fr; }
  .voice-controls { position: static; }
  body.sidebar-collapsed { --nav-width: 248px; }
  .sidebar-collapse { display: none; }
  body.sidebar-collapsed .brand { justify-content: flex-start; padding-inline: 18px; }
  body.sidebar-collapsed .brand-copy,
  body.sidebar-collapsed .account-meta { display: block; }
  body.sidebar-collapsed .account-settings { display: grid; }
  body.sidebar-collapsed .nav-label { display: block; }
  body.sidebar-collapsed .nav-submenu { display: grid; }
  body.sidebar-collapsed .nav-item { justify-content: flex-start; gap: 12px; padding-inline: 12px; overflow: visible; white-space: normal; color: var(--ink-2); font-size: 14px; }
  body.sidebar-collapsed .nav-item.active { color: var(--brand-dark); }
  body.sidebar-collapsed .nav-item .badge { display: inline-block; }
  body.sidebar-collapsed .account { justify-content: flex-start; padding-inline: 16px; }
  .sidebar { transform: translateX(-100%); transition: transform var(--ease); }
  body.nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-2); }
  .mobile-overlay { position: fixed; inset: 0; z-index: 25; display: block; border: 0; background: rgba(23,19,19,.5); opacity: 0; pointer-events: none; transition: opacity var(--ease); }
  body.nav-open .mobile-overlay { opacity: 1; pointer-events: auto; }
  .main-wrap { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .page { width: min(100% - 32px, 720px); padding-top: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .export-controls { grid-template-columns: 1fr; }
  .learning-hero { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .profile-summary { position: static; }
}

@media (max-width: 560px) {
  .voice-source-callout { grid-template-columns: auto minmax(0,1fr); }
  .voice-source-callout .button { grid-column: 1 / -1; width: 100%; }
  .voice-clock { width: 100%; text-align: left; }
  .transcript-editor { min-height: 260px; padding: 16px; font-size: 16px; }
  .transcript-compare-tabs { margin-inline: 14px; }
  .transcript-compare-tabs button { padding-inline: 9px; font-size: 11px; }
  .transcript-compare-tabs button small { display: none; }
  .transcript-version-label { align-items: flex-start; flex-direction: column; gap: 3px; margin-inline: 14px; }
  .transcript-version-label span { text-align: left; }
  .transcript-head { padding-inline: 18px; }
  .transcript-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .transcript-actions .button:last-child { grid-column: 1 / -1; }
  .page-head { align-items: stretch; flex-direction: column; }
  .grid-3, .option-grid, .choice-row { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: 1fr; }
  .library-toolbar { align-items: stretch; flex-direction: column; }
  .settings-form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .hero-copy { padding: 28px 22px; }
  .hero-flow { grid-template-columns: 1fr; padding: 0 22px 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: 0; }
  .draft-row { grid-template-columns: 48px minmax(0,1fr); }
  .draft-row > .status { grid-column: 2; justify-self: start; }
  .card-pad, .editor { padding: 18px; }
  .action-bar { bottom: 8px; align-items: stretch; flex-direction: column; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .facebook-shell { margin-inline: -8px; }
  .fb-post { margin: 10px auto 0; border-radius: 0; }
  .topbar-title span { display: none; }
  .feed-rail { grid-template-columns: 1fr; }
  .composer-actions { grid-template-columns: 1fr; }
  .topbar > .button.primary { width: 44px; flex: none; padding: 0; overflow: hidden; font-size: 0; }
  .topbar > .button.primary svg { margin: 0; }
  .learning-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .learning-stat { min-width: 0; padding: 12px 10px; }
  .learning-stat strong { font-size: 20px; }
  .learning-stat span { font-size: 9px; line-height: 1.4; }
  .agenda-day { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .agenda-day .day-label { display: flex; align-items: center; gap: 9px; padding: 0 2px; text-align: left; }
  .agenda-day .day-label strong { font-size: 20px; }
  .agenda-day .day-label span { margin: 0; font-size: 9px; }
  .event-card { grid-template-columns: 7px minmax(0,1fr); }
  .event-people { grid-column: 2; }
  .learning-event-card .event-recap-action { grid-column: 2; width: 100%; }
  .event-rail { grid-template-columns: 1fr; }
  .reaction-picker { left: -8px; gap: 3px; padding: 7px; overflow-x: auto; }
  .reaction-option { width: 48px; min-height: 58px; }
  .reaction-icon { width: 31px; height: 31px; }
  .processing-metrics { grid-template-columns: 1fr; }
  .processing-stage { align-items: flex-start; }
  .processing-stage strong { min-width: 120px; }
  .job-health { display: none; }
  .transcript-compare-grid { grid-template-columns: 1fr; }
  .transcript-version-pane + .transcript-version-pane { border-top: 1px solid var(--border); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
