:root {
  color-scheme: light;
  --canvas: #f7f8fc;
  --surface: #fff;
  --surface-subtle: #f2f4f7;
  --surface-hover: #eef2ff;
  --text: #101828;
  --text-muted: #475467;
  --text-soft: #667085;
  --border: #d0d5dd;
  --border-soft: #e4e7ec;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --focus: #818cf8;
  --success: #067647;
  --success-bg: #ecfdf3;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --error: #b42318;
  --error-bg: #fef3f2;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --sidebar-width: 232px;
  --shadow-popover: 0 8px 24px rgb(16 24 40 / .12);
  --shadow-dialog: 0 20px 48px rgb(16 24 40 / .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--text); background: var(--canvas); font-size: 15px; line-height: 1.47; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgb(129 140 248 / .55);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 10px 14px; border-radius: 8px; background: var(--text); color: #fff; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 16px 16px; border-right: 1px solid var(--border-soft); background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 9px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand:hover, .nav-item:hover { text-decoration: none; }
.brand-mark { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border-radius: 9px; background: var(--primary); box-shadow: 0 4px 12px rgb(79 70 229 / .23); }
.brand-mark span { display: block; width: 3px; border-radius: 2px; background: #fff; }
.brand-mark span:nth-child(1) { height: 8px; opacity: .75; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .86; }
.primary-nav { display: grid; gap: 5px; margin-top: 28px; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: var(--text-muted); font-weight: 550; }
.nav-item:hover { color: var(--text); background: var(--surface-subtle); }
.nav-item[aria-current="page"] { color: #3730a3; background: #eef2ff; font-weight: 650; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-badge { min-width: 21px; margin-left: auto; padding: 1px 6px; border-radius: 999px; color: #3730a3; background: #e0e7ff; text-align: center; font-size: 12px; font-weight: 700; }
.sidebar-account { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: auto; padding: 13px 9px 3px; border-top: 1px solid var(--border-soft); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e0e7ff; color: #3730a3; font-weight: 700; }
.account-copy { min-width: 0; display: grid; }
.account-copy strong, .account-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; font-weight: 650; }
.account-copy span { color: var(--text-soft); font-size: 12px; }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
body.signed-out .workspace { margin-left: 0; }
.mobile-header { display: none; }
#main-content { width: min(100%, 1280px); min-height: 100vh; margin: 0 auto; padding: 44px 48px 64px; outline: none; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-header h1 { margin: 0; font-size: clamp(27px, 3vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
.page-header p { max-width: 680px; margin: 7px 0 0; color: var(--text-muted); }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .09em; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-header h2 { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -.012em; }
.section-header a { font-size: 14px; font-weight: 600; }
.section-description { margin: -6px 0 14px; color: var(--text-muted); }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-weight: 650; font-size: 14px; line-height: 1.2; transition: background-color 140ms, border-color 140ms, color 140ms, box-shadow 140ms; }
.button:hover { text-decoration: none; }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 1px 2px rgb(16 24 40 / .07); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.secondary { color: #344054; background: var(--surface); border-color: var(--border); }
.button.secondary:hover { background: var(--surface-subtle); }
.button.quiet { color: var(--text-muted); background: transparent; }
.button.quiet:hover { color: var(--text); background: var(--surface-subtle); }
.button.danger { color: #fff; background: var(--error); border-color: var(--error); }
.button.large { min-height: 46px; padding: 11px 18px; font-size: 15px; }
.button:disabled { cursor: wait; opacity: .68; }
.sync-status { align-self: center; color: var(--text-soft); font-size: 13px; white-space: nowrap; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; color: var(--text-muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--surface-subtle); }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.filter-bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .65fr) minmax(0, .8fr) minmax(0, .9fr); gap: 10px; align-items: end; margin-bottom: 13px; padding: 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.field { min-width: 0; display: grid; gap: 5px; }
.field label { color: #344054; font-size: 12px; line-height: 1.35; font-weight: 650; }
.input, .select { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); padding: 0 11px; font-family: inherit; font-size: 14px; line-height: 1.25; font-weight: 500; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23667085' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; }
.input:hover, .select:hover { border-color: #98a2b3; }
.search-wrap { position: relative; }
.search-wrap::before { content: ""; position: absolute; left: 13px; top: 12px; width: 13px; height: 13px; border: 1.8px solid #667085; border-radius: 50%; pointer-events: none; }
.search-wrap::after { content: ""; position: absolute; left: 24px; top: 24px; width: 6px; border-top: 1.8px solid #667085; transform: rotate(45deg); pointer-events: none; }
.search-wrap .input { padding-left: 37px; }
.toggle-field { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 4px; color: var(--text-muted); white-space: nowrap; font-family: inherit; font-size: 14px; line-height: 1.25; font-weight: 500; }
.toggle-field input { width: 17px; height: 17px; accent-color: var(--primary); }
.result-summary { margin: 0 0 8px; color: var(--text-soft); font-size: 13px; }

.list-surface { overflow: hidden; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.meeting-row { min-height: 76px; display: grid; grid-template-columns: minmax(260px, 1.6fr) minmax(180px, .72fr) minmax(190px, .72fr) 190px; gap: 18px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--border-soft); }
.meeting-row:first-child { border-top: 0; }
.meeting-row:hover { background: #fcfcfd; }
.row-main, .row-cell { min-width: 0; }
.row-title { display: block; overflow: hidden; margin-bottom: 3px; color: var(--text); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.row-title:hover { color: var(--primary); text-decoration: none; }
.row-meta, .row-cell { color: var(--text-soft); font-size: 13px; }
.row-cell strong { display: block; margin-bottom: 2px; color: #344054; font-size: 13px; font-weight: 600; }
.row-cell > small { display: block; margin-top: 4px; }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; align-items: center; }
.row-actions .button { width: 100%; justify-content: center; }
.date-group { padding: 18px 3px 9px; color: var(--text-soft); font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.info { color: var(--info); background: var(--info-bg); }
.badge.success { color: var(--success); background: var(--success-bg); }
.badge.warning { color: var(--warning); background: var(--warning-bg); }
.badge.error { color: var(--error); background: var(--error-bg); }
.badge.neutral { color: var(--text-muted); background: var(--surface-subtle); }

.attention-panel { border: 1px solid #fecdca; border-radius: 12px; background: #fffafa; }
.attention-panel .meeting-row { background: transparent; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 34px; }
.metric-card { min-height: 106px; padding: 18px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.metric-card span { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.metric-card strong { display: block; margin-top: 9px; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.metric-card small { display: block; margin-top: 5px; color: var(--text-soft); }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; width: fit-content; border-radius: 9px; background: var(--surface-subtle); }
.tab { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 7px; color: var(--text-muted); background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; }
.tab[aria-selected="true"] { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgb(16 24 40 / .08); }
.meeting-view-tabs { margin-bottom: 22px; }
.past-toolbar { display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin: -4px 0 12px; }
.title-line { display: flex; gap: 8px; align-items: center; min-width: 0; }
.title-line .row-title { min-width: 0; margin-bottom: 0; }
.recurring-label { flex: 0 0 auto; padding: 2px 7px; border-radius: 999px; color: var(--primary); background: #eef2ff; font-size: 11px; font-weight: 700; }
.upcoming-row .row-title { cursor: default; }
.scope-options { display: grid; gap: 10px; margin-top: 16px; }
.scope-option { position: relative; display: grid; gap: 4px; width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; font: inherit; }
.scope-option:hover { border-color: #a5b4fc; background: #fafaff; }
.scope-option.recommended { border-color: #c7d2fe; }
.scope-option strong { font-size: 14px; }
.scope-option > span:not(.recommendation) { color: var(--text-muted); font-size: 13px; }
.recommendation { width: fit-content; margin-bottom: 2px; padding: 2px 7px; border-radius: 999px; color: var(--primary); background: #eef2ff; font-size: 11px; font-weight: 700; }
.auto-notes-dialog { width: min(520px, calc(100% - 32px)); }
.progress-track { width: 100%; height: 5px; overflow: hidden; margin-top: 9px; border-radius: 99px; background: #e4e7ec; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width 200ms ease; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr); gap: 20px; }
.meeting-context-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 20px; align-items: stretch; }
.panel { padding: 22px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.panel h2, .panel h3 { margin: 0 0 14px; }
.panel h2 { font-size: 19px; }
.panel h3 { font-size: 16px; }
.outcome-panel { background: linear-gradient(135deg, #fff 50%, #f5f3ff); }
.outcome-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.outcome-copy h2 { margin-bottom: 4px; }
.outcome-copy p { max-width: 620px; margin: 0; color: var(--text-muted); }
.run-estimate { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.run-estimate p { margin: 6px 0 0; color: var(--text-muted); max-width: 720px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { margin-bottom: 3px; color: var(--text-soft); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 9px; bottom: 9px; border-left: 1px solid var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 11px; padding: 0 0 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { position: relative; width: 15px; height: 15px; margin-top: 3px; border: 3px solid var(--surface); border-radius: 50%; background: var(--border); box-shadow: 0 0 0 1px var(--border); }
.timeline-dot.completed { background: var(--success); box-shadow: 0 0 0 1px var(--success); }
.timeline-dot.running { background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline-dot.failed { background: var(--error); box-shadow: 0 0 0 1px var(--error); }
.timeline-copy strong { font-size: 14px; text-transform: capitalize; }
.timeline-copy span { display: block; margin-top: 2px; color: var(--text-soft); font-size: 13px; }
.attendee-list { margin: 0; padding: 0; list-style: none; }
.attendee-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); font-size: 14px; }
.attendee-list li:first-child { border-top: 0; }
.attendee-list span { color: var(--text-soft); text-transform: capitalize; }
.attendee-panel { min-height: 0; }
.attendee-scroll { max-height: 236px; overflow-y: auto; padding-right: 5px; scrollbar-gutter: stable; }

.intelligence-section > .section-header { align-items: flex-end; }
.intelligence-section > .section-header h2 { margin-bottom: 3px; }
.content-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 2px; border-bottom: 1px solid var(--border); }
.content-tab { flex: 0 0 auto; min-height: 42px; padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.content-tab:hover { color: var(--text); }
.content-tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.intelligence-panel { min-height: 260px; padding-top: 18px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.overview-main, .overview-side, .insight-stack { display: grid; gap: 12px; }
.insight-card, .note-card, .decision-card, .action-card, .evidence-row { border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); }
.insight-card { padding: 18px; }
.insight-summary { border-color: #d9d6fe; background: linear-gradient(135deg, #fff 40%, #f5f3ff); }
.insight-summary p { margin: 8px 0 0; font-size: 16px; line-height: 1.65; }
.insight-card h3, .insight-stack > h3 { margin: 0; font-size: 16px; }
.quiet-card p { margin: 5px 0 0; color: var(--text-muted); }
.insight-list { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 20px; }
.note-card { padding: 16px; }
.note-card-header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.note-card h4 { margin: 0; font-size: 15px; }
.note-copy { margin-top: 8px; color: #344054; line-height: 1.62; }
.note-copy p { margin: 6px 0 0; }
.note-copy h5 { margin: 12px 0 3px; color: var(--text); font-size: 14px; }
.note-copy ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 20px; }
.decision-card { display: grid; gap: 5px; padding: 14px; border-left: 3px solid var(--primary); }
.decision-card > span { color: var(--text-muted); font-size: 13px; }
.item-metadata { margin: 2px 0 0; color: var(--text-soft); font-size: 13px; }
.segment-links { display: flex; flex-wrap: wrap; gap: 5px; }
.segment-link, .text-button { border: 0; color: var(--primary); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.segment-link { padding: 3px 7px; border-radius: 999px; background: #eef2ff; }
.segment-link:hover, .text-button:hover { text-decoration: underline; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.action-card { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px; }
.action-card h3 { margin: 0 0 5px; font-size: 15px; }
.action-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: #eef2ff; font-size: 13px; font-weight: 750; }
.transcript-list { display: grid; gap: 2px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.transcript-segment { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 16px; border-top: 1px solid var(--border-soft); transition: background 180ms ease, box-shadow 180ms ease; }
.transcript-segment:first-child { border-top: 0; }
.transcript-segment.highlighted { background: #f5f3ff; box-shadow: inset 3px 0 var(--primary); }
.transcript-meta { display: grid; align-content: start; gap: 3px; }
.transcript-meta strong { font-size: 13px; }
.transcript-meta time { color: var(--text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.transcript-segment p { margin: 0; color: #344054; line-height: 1.62; }
.transcript-content { min-width: 0; }
.segment-visuals, .evidence-visuals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.evidence-list { display: grid; gap: 8px; }
.evidence-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 14px 16px; }
.evidence-row > .evidence-copy { min-width: 0; display: grid; gap: 3px; }
.evidence-row p { margin: 0; color: var(--text-soft); font-size: 13px; }
.visual-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.visual-card { overflow: hidden; margin: 0; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.visual-card a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #101828; }
.visual-card img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform 180ms ease; }
.visual-card a:hover img { transform: scale(1.015); }
.visual-card figcaption { display: grid; gap: 3px; padding: 12px 14px; }
.visual-card figcaption strong { color: var(--text); font-size: 14px; }
.visual-card figcaption span { color: var(--text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.visual-card figcaption p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.visual-card.compact { width: min(100%, 360px); }
.visual-card.compact figcaption { padding: 9px 11px; }
.intelligence-panel .eyebrow { margin: 0; color: var(--text-soft); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.muted { color: var(--text-muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.notice { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 18px; padding: 13px 15px; border: 1px solid #b2ddff; border-radius: 10px; color: #1849a9; background: var(--info-bg); }
.notice.error { color: var(--error); border-color: #fecdca; background: var(--error-bg); }
.notice.success { color: var(--success); border-color: #abefc6; background: var(--success-bg); }
.notice strong { display: block; }
.notice p { margin: 2px 0 0; color: inherit; }
.empty-state { display: grid; justify-items: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; background: rgb(255 255 255 / .55); }
.empty-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 14px; color: var(--primary); background: #eef2ff; font-size: 22px; }
.empty-state h2, .empty-state h3 { margin: 0; font-size: 18px; }
.empty-state p { max-width: 480px; margin: 7px 0 17px; color: var(--text-muted); }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.skeleton-list { overflow: hidden; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.skeleton-row { height: 76px; display: grid; grid-template-columns: 2fr 1fr .8fr; gap: 28px; align-items: center; padding: 16px; border-top: 1px solid var(--border-soft); }
.skeleton-row:first-child { border-top: 0; }
.skeleton { height: 12px; border-radius: 99px; background: #eaecf0; animation: pulse 1.5s ease-in-out infinite; }
.skeleton.short { width: 58%; }

.auth-card { width: min(100%, 560px); margin: 8vh auto 0; padding: 48px; border: 1px solid var(--border-soft); border-radius: 18px; background: var(--surface); box-shadow: 0 20px 60px rgb(16 24 40 / .08); text-align: center; }
.auth-card h1 { margin: 0 auto; max-width: 480px; font-size: 34px; line-height: 1.2; letter-spacing: -.035em; }
.auth-card > p:not(.eyebrow, .auth-tagline, .auth-footnote) { max-width: 470px; margin: 15px auto 25px; color: var(--text-muted); }
.auth-footnote { max-width: 430px; margin: 18px auto 0; color: var(--text-soft); font-size: 12px; }
.auth-brand { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.auth-brand .brand-mark { width: 56px; height: 56px; gap: 4px; border-radius: 17px; box-shadow: 0 10px 28px rgb(79 70 229 / .32); }
.auth-brand .brand-mark span { width: 6px; border-radius: 4px; }
.auth-brand .brand-mark span:nth-child(1) { height: 16px; }
.auth-brand .brand-mark span:nth-child(2) { height: 30px; }
.auth-brand .brand-mark span:nth-child(3) { height: 22px; }
.auth-wordmark { color: var(--text); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.auth-tagline { margin: 0 0 30px; color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }

.dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 16px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-dialog); }
.dialog::backdrop { background: rgb(16 24 40 / .52); backdrop-filter: blur(2px); }
.dialog-panel { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; padding: 27px; }
.dialog-close { position: absolute; right: 15px; top: 14px; font-size: 25px; font-weight: 300; }
.dialog h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.dialog-lead { margin: 7px 38px 20px 0; color: var(--text-muted); }
.summary-panel, .cost-panel { padding: 14px; border-radius: 10px; background: var(--surface-subtle); }
.summary-panel strong { display: block; margin-bottom: 3px; }
.summary-panel span { color: var(--text-muted); font-size: 13px; }
.cost-panel { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; margin-top: 10px; background: #f5f3ff; }
.cost-panel span { color: var(--text-muted); }
.cost-panel strong { font-size: 19px; }
.disclosure { margin-top: 16px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 12px 0; }
.disclosure summary { cursor: pointer; color: #344054; font-weight: 650; }
.disclosure ul { margin: 10px 0 0; padding-left: 19px; color: var(--text-muted); font-size: 13px; }
.check-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 14px; padding: 12px; border: 1px solid #fedf89; border-radius: 9px; background: var(--warning-bg); }
.check-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); }
.check-row label { display: grid; }
.check-row span { color: var(--text-muted); font-size: 13px; }
.dialog-actions { position: sticky; bottom: -27px; display: flex; justify-content: flex-end; gap: 8px; margin: 22px -27px -27px; padding: 16px 27px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.inline-error { margin-top: 13px; padding: 10px 12px; border-radius: 8px; color: var(--error); background: var(--error-bg); }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 420px; padding: 13px 15px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--text); color: #fff; box-shadow: var(--shadow-popover); animation: toast-in 180ms cubic-bezier(.2,0,0,1); }
.toast.error { background: #7a271a; }

@keyframes pulse { 50% { opacity: .52; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 980px) {
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .meeting-row { grid-template-columns: minmax(240px, 1.4fr) minmax(170px, .7fr) 170px; }
  .meeting-row .row-cell.optional { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .meeting-context-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  #main-content { padding-inline: 28px; }
}

@media (max-width: 760px) {
  .sidebar { transform: translateX(-102%); transition: transform 200ms cubic-bezier(.2,0,0,1); box-shadow: var(--shadow-popover); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; display: block; z-index: 20; background: rgb(16 24 40 / .4); }
  .workspace { margin-left: 0; }
  .mobile-header { position: sticky; top: 0; z-index: 10; min-height: 57px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); }
  .mobile-brand { justify-self: center; color: var(--text); font-weight: 700; }
  .mobile-brand:hover { text-decoration: none; }
  #main-content { padding: 26px 16px 48px; }
  .page-header { display: grid; margin-bottom: 22px; }
  .header-actions { width: 100%; }
  .header-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .metric-card { min-height: 84px; }
  .filter-bar { grid-template-columns: 1fr; padding: 12px; }
  .toggle-field { white-space: normal; }
  .meeting-row { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 15px; }
  .meeting-row .row-cell.optional { display: block; }
  .row-actions { justify-content: flex-start; padding-top: 3px; }
  .row-actions .button { flex: 1; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .action-grid { grid-template-columns: 1fr; }
  .transcript-segment { grid-template-columns: 1fr; gap: 7px; }
  .transcript-meta { display: flex; justify-content: space-between; }
  .evidence-row { align-items: flex-start; }
  .attendee-scroll { max-height: 280px; }
  .visual-gallery { grid-template-columns: 1fr; }
  .outcome-header { display: grid; }
  .outcome-header .button { width: 100%; }
  .panel { padding: 18px; }
  .auth-card { margin-top: 1vh; padding: 34px 20px; box-shadow: none; }
  .auth-card h1 { font-size: 29px; }
  body.signed-out .mobile-header { display: none; }
  .auth-wordmark { font-size: 34px; }
  .auth-brand .brand-mark { width: 48px; height: 48px; border-radius: 15px; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1 0 auto; }
  .past-toolbar { justify-content: space-between; }
  .title-line { align-items: flex-start; flex-wrap: wrap; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
}

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

/* Speaker library */
.speaker-privacy { margin-top: 14px; }
.speaker-row { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(140px, .6fr) auto; gap: 18px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--border-soft); }
.speaker-row:first-child { border-top: 0; }
.speaker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.speaker-card { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); }
.speaker-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.speaker-card .row-meta { margin: 0; }
.speaker-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.clip-list, .clip-chooser { display: grid; gap: 8px; }
.clip-row, .clip-option { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; color: var(--text-muted); font-size: 13px; }
.clip-option { grid-template-columns: 18px auto minmax(0, 1fr); }
.clip-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.clip-row .clip-note { font-size: 12px; }
.clip-row:has(.clip-frame), .clip-option:has(.clip-frame) { grid-template-columns: 18px 132px minmax(0, 1fr); }
.clip-row:has(.clip-frame) { grid-template-columns: 132px minmax(0, 1fr); }
/* Without a screenshot the body is the only cell; give it the full row so the player keeps its controls. */
.clip-row:not(:has(.clip-frame)) { grid-template-columns: minmax(0, 1fr); }
.clip-option:not(:has(.clip-frame)) { grid-template-columns: 18px minmax(0, 1fr); }
.clip-body { display: grid; gap: 4px; min-width: 0; }
.clip-frame { display: block; line-height: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.clip-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.speaker-guess { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); color: var(--text-muted); font-size: 13px; }
.clip-row audio, .clip-option audio { width: 100%; min-width: 0; height: 34px; }
.clip-chooser { margin: 0; padding: 12px; border: 1px solid var(--border-soft); border-radius: 9px; }
.clip-chooser legend { padding: 0 6px; color: #344054; font-size: 12px; font-weight: 650; }
.form-stack { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { color: var(--text-soft); font-size: 12px; }
@media (max-width: 720px) {
  .speaker-row { grid-template-columns: 1fr; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
}
.input.textarea { height: auto; min-height: 92px; padding: 10px 11px; resize: vertical; line-height: 1.45; }
.speaker-item { border-top: 1px solid var(--border-soft); }
.speaker-item:first-child { border-top: 0; }
.speaker-item .speaker-row { border-top: 0; padding-bottom: 6px; }
.speaker-context { margin: 0; padding: 0 16px 12px; color: #344054; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.speaker-context.empty { color: var(--text-soft); font-style: italic; }
.speaker-samples { padding: 0 16px 14px; }
.speaker-samples summary { cursor: pointer; color: var(--primary); font-size: 13px; font-weight: 650; }
.speaker-samples .clip-list { margin-top: 10px; }

/* Public legal pages (/privacy, /terms) */
.legal-body { background: var(--canvas); color: var(--text); margin: 0; }
.legal-header { max-width: 760px; margin: 0 auto; padding: 24px 20px 0; }
.legal { max-width: 760px; margin: 16px auto 64px; padding: 32px 36px; border: 1px solid var(--border-soft); border-radius: 18px; background: var(--surface); line-height: 1.65; }
.legal h1 { margin: 0 0 4px; font-size: 32px; letter-spacing: -.03em; }
.legal h2 { margin: 28px 0 6px; font-size: 18px; }
.legal-meta { margin: 0 0 20px; color: var(--text-soft); font-size: 13px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--primary); }
.legal-footer { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--border-soft); color: var(--text-soft); font-size: 13px; }
@media (max-width: 600px) { .legal { margin: 12px; padding: 22px 18px; } }

/* Hide the app chrome until the session check finishes, so signed-out visitors never see it. */
body.auth-pending .sidebar, body.auth-pending .mobile-header { visibility: hidden; }

/* Automation keeps persistent choices together and leaves one Upcoming action. */
.automation-row { grid-template-columns: minmax(220px, 1fr) auto; }
.automation-row .row-main small { display: block; color: var(--text-muted); margin-top: 6px; }
.automation-controls { display: flex; gap: 32px; align-items: flex-start; }
.automation-setting { display: flex; flex-direction: column; gap: 8px; min-width: 112px; }
.automation-label { font-weight: 600; white-space: nowrap; }
.automation-switch { display: flex; align-items: center; gap: 9px; min-height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--text); font: inherit; }
.switch-track { width: 40px; height: 24px; border-radius: 16px; background: #b4bbc8; position: relative; flex-shrink: 0; }
.switch-track::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .15s; }
.automation-switch[aria-checked="true"] .switch-track { background: var(--primary); }
.automation-switch[aria-checked="true"] .switch-track::after { transform: translateX(16px); }
.automation-switch:focus-visible { outline: 3px solid #bfc4ff; outline-offset: 4px; border-radius: 4px; }
.automation-switch:disabled { opacity: .55; cursor: wait; }
.automation-unavailable { color: var(--text-muted); font-size: 13px; }
@media (max-width: 760px) {
  .automation-row { grid-template-columns: minmax(0, 1fr); }
  .automation-controls { gap: 24px; flex-wrap: wrap; }
}

.recording-request-inbox { margin-bottom: 24px; }
.recording-request { padding: 16px 0; border-top: 1px solid var(--border-soft); }
.recording-request p { margin: 8px 0; }
.recording-request .settings-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; }

.compact-panel { padding: 12px 16px; }
.compact-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compact-panel-head h2 { margin: 0; font-size: 15px; }
.compact-hint { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; }
.attachment-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-strip:not(:empty) { margin-top: 10px; }
.attachment-chip { position: relative; margin: 0; }
.attachment-thumbnail { display: block; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--border-soft); border-radius: 6px; }
.attachment-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text-muted); font-size: 14px; line-height: 1; cursor: pointer; }
