:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --sidebar: #f6f6f7;
  --ink: #242426;
  --muted: #6d6d73;
  --line: #e8e8eb;
  --soft: #f7f7f8;
  --accent: #242426;
  --blue: #315fba;
  --gold: #8a611e;
  --gold-soft: #fbf5e9;
  --red: #a44239;
  --red-soft: #fcf0ee;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .46; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -.7px; line-height: 1.4; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
h3 { font-size: 15px; font-weight: 600; }
small { font-size: 12px; }
::selection { background: #dee6f3; }
:focus-visible { outline: 3px solid #91acd9; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; z-index: 150; border-radius: 8px; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* A private workspace starts with a quiet, separate login surface. */
html[data-remote="true"]:not([data-session="active"]) #app { display: none; }
.remote-entry { min-height: 100dvh; display: flex; flex-direction: column; padding: 30px 48px 22px; }
.remote-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; }
.remote-card { width: 100%; max-width: 390px; margin: auto; padding: 58px 0 64px; }
.remote-eyebrow { font-size: 11px; color: var(--muted); margin-bottom: 15px; letter-spacing: .3px; }
.remote-card h1 { font-family: var(--display); font-size: 36px; font-weight: 500; line-height: 1.5; letter-spacing: .1px; }
.remote-intro { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 12px; }
.remote-status { display: flex; align-items: flex-start; gap: 8px; padding: 13px 14px; margin: 26px 0 24px; color: var(--muted); background: var(--soft); border-radius: 12px; font-size: 12px; line-height: 1.8; }
.remote-status .icon { width: 15px; height: 15px; margin-top: 3px; }
.remote-status.is-error { color: var(--red); background: var(--red-soft); }
.remote-card .field input { min-height: 46px; }
.remote-card .primary { width: 100%; min-height: 44px; margin-top: 3px; }
.remote-retry { display: flex; margin: 17px auto 0; gap: 6px; }
.remote-privacy { display: flex; justify-content: center; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.remote-privacy .icon { width: 14px; height: 14px; margin-top: 3px; }
.remote-footer { text-align: center; font-size: 10px; color: var(--muted); }
#remote-logout { min-height: 34px; min-width: 30px; }
.audio-message { margin: -8px 0 17px; }
.audio-message .text-button { margin-left: 8px; }
@media (max-width: 700px) {
  .remote-entry { padding: 24px 24px 22px; }
  .remote-card { padding: 52px 0; }
  .remote-card h1 { font-size: 33px; }
}

/* One quiet navigation rail, one primary working surface. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: var(--sidebar); border-right: 1px solid #eeeeef; display: flex; flex-direction: column; padding: 26px 16px 18px; z-index: 40; overflow-y: auto; }
.brand-row { display: flex; align-items: center; margin: 0 8px 27px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 40px; color: #272729; font-family: var(--display); font-size: 34px; line-height: 1; }
.brand strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.primary, .button, .text-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.4; font-weight: 500; transition: background .16s, border-color .16s, box-shadow .16s; }
.primary, .button { border-radius: 999px; padding: 10px 17px; min-height: 40px; border: 1px solid transparent; font-size: 13px; white-space: nowrap; }
.primary { color: #fff; background: var(--ink); border-color: var(--ink); }
.primary:hover:not(:disabled) { background: #424245; border-color: #424245; }
.button { background: #fff; border-color: #dedee2; }
.button:hover:not(:disabled) { background: #f4f4f6; border-color: #cacacf; }
.button.compact { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.primary .icon, .button .icon, .text-button .icon { width: 16px; height: 16px; }
.text-button { border: 0; background: none; color: var(--muted); border-radius: 6px; padding: 5px 0; font-size: 12px; text-align: left; }
.text-button:hover { color: var(--ink); }
.icon-button { border: 0; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: none; color: var(--muted); flex-shrink: 0; }
.icon-button:hover, .icon-button.active { background: #ebebee; color: var(--ink); }
.danger { color: var(--red); }
.sidebar-capture { border-radius: 10px; justify-content: flex-start; background: #fff; border-color: #dedee1; box-shadow: 0 2px 3px #24242603; font-weight: 500; font-size: 13px; min-height: 41px; padding-left: 14px; margin: 0 3px 18px; }
.sidebar-capture .icon { width: 17px; height: 17px; }
.nav-group-label { font-size: 11px; color: #6d6d73; padding: 0 13px; margin: 17px 0 8px; }
.nav-item { display: flex; gap: 11px; align-items: center; padding: 10px 12px; min-height: 41px; margin: 3px; border-radius: 9px; color: #686870; font-size: 13px; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: #ebebee; color: var(--ink); }
.nav-item.active { color: #242426; background: #e8e8eb; font-weight: 600; }
.nav-count { margin-left: auto; font-size: 10px; border-radius: 5px; min-width: 19px; height: 19px; display: grid; place-items: center; color: #56565c; background: #dadade; padding: 0 4px; }
.recent-navigation { margin-top: 14px; }
.recent-link { width: 100%; display: flex; gap: 9px; align-items: center; border: 0; padding: 9px 14px; background: none; text-align: left; color: var(--muted); font-size: 12px; border-radius: 8px; }
.recent-link .icon { width: 14px; height: 14px; }
.recent-link span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-link:hover { background: #ededf0; color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.private-note { padding: 11px 12px 17px; color: #6d6d73; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.private-note .icon { width: 14px; height: 14px; }
.profile-link { border: 0; border-top: 1px solid #e5e5e8; background: none; display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; padding: 17px 8px 0; }
.profile-link > span:nth-child(2) { min-width: 0; flex: 1; }
.profile-link strong { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link > span:last-child .icon { width: 14px; height: 14px; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e8e8ec; color: #575760; font-size: 12px; flex-shrink: 0; font-weight: 500; }
.avatar.self { background: #e4eaf5; color: #486083; }
.workspace { margin-left: 232px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 66px; padding: 0 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #f0f0f2; }
.topbar-crumb { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.local-badge { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #6d6d73; font-weight: 400; padding: 2px 7px; border: 1px solid #ebebee; border-radius: 5px; }
.local-badge span { width: 4px; height: 4px; border-radius: 50%; background: #65947c; }
.topbar-tools { display: flex; gap: 12px; align-items: center; }
.search-box { display: flex; align-items: center; gap: 7px; color: var(--muted); background: var(--soft); padding: 7px 11px; border-radius: 8px; }
.search-box .icon { width: 14px; height: 14px; }
.search-box input { width: 137px; border: 0; background: none; outline: 0; color: var(--ink); padding: 0; font-size: 12px; min-width: 0; }
.search-box input::placeholder { color: #6d6d73; }
.search-box:focus-within { box-shadow: 0 0 0 2px #c8d6ed; }
.search-box kbd { border: 1px solid #dedee3; border-radius: 4px; font: 10px var(--font); padding: 0 4px; }
.notification-button { position: relative; }
.notification-button .icon { width: 18px; height: 18px; }
#notification-count { position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
main { padding: 39px 42px 40px; flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; outline: none; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px 42px; font-size: 10px; color: #6d6d73; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.page-heading p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-toggle, .sidebar-close, .nav-scrim { display: none; }

/* The home composer is a real entry to the existing source-review flow. */
.home { max-width: 1072px; margin: 0 auto; }
.home-intro { text-align: center; max-width: 724px; margin: 18px auto 34px; }
.home-date { color: #6d6d73; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 17px; }
.home-date .icon { width: 14px; height: 14px; }
.home-intro h1 { font-family: var(--display); font-weight: 500; font-size: 40px; letter-spacing: .2px; line-height: 1.45; }
.home-subtitle { color: var(--muted); font-size: 13px; margin: 11px auto 24px; max-width: 610px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-wrap; }
.capture-composer { border: 1px solid #dedee3; border-radius: 22px; padding: 20px 19px 13px; text-align: left; background: #fff; box-shadow: 0 5px 20px #24242605, 0 1px 2px #24242604; transition: border-color .2s, box-shadow .2s; }
.capture-composer:focus-within { border-color: #b7bec9; box-shadow: 0 5px 22px #24242607, 0 0 0 3px #e7ecf444; }
.capture-composer textarea { display: block; width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); padding: 0 3px; min-height: 70px; resize: vertical; font-size: 15px; line-height: 1.8; }
.capture-composer textarea::placeholder { color: #6d6d73; }
.composer-bottom { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.composer-attach { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e7e7eb; background: #fff; padding: 7px 10px; min-height: 34px; border-radius: 8px; color: #686870; font-size: 12px; }
.composer-attach .icon { width: 15px; height: 15px; }
.composer-attach:hover { background: var(--soft); }
.composer-hint { margin-left: auto; font-size: 11px; color: var(--muted); }
.composer-submit { border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.composer-submit .icon { width: 18px; height: 18px; transform: rotate(-90deg); }
.composer-submit:hover { background: #45454a; }
.suggestion-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.suggestion-row button { display: flex; align-items: center; gap: 6px; border: 1px solid #e8e8ec; background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; color: #71717a; }
.suggestion-row button:hover { background: var(--soft); color: var(--ink); }
.suggestion-row .icon { width: 14px; height: 14px; }
.first-visit .home-intro { margin-top: 55px; margin-bottom: 61px; }
.first-visit .capture-composer textarea { min-height: 94px; }
.getting-started { max-width: 842px; margin: auto; }
.getting-started .section-heading { margin-bottom: 16px; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.start-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-radius: 16px; padding: 22px 21px 19px; background: #fff; transition: border-color .18s, transform .18s; }
.start-card:hover { border-color: #c5c5cc; transform: translateY(-2px); }
.start-icon { color: #45454e; height: 36px; }
.start-icon .icon { width: 23px; height: 23px; stroke-width: 1.4; }
.start-card strong { font-size: 14px; font-weight: 550; margin-top: 3px; }
.start-card p { font-size: 12px; color: var(--muted); margin: 7px 0 22px; line-height: 1.8; }
.start-link { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #72727a; margin-top: auto; }
.start-link .icon { width: 14px; height: 14px; }
.home-privacy { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11px; color: #6d6d73; margin: 28px 0 0; }
.home-privacy .icon { width: 13px; height: 13px; }
.has-content .home-intro { max-width: 720px; margin-top: 0; }
.has-content .home-intro h1 { font-size: 32px; }
.has-content .home-date { margin-bottom: 11px; }
.has-content .capture-composer textarea { min-height: 50px; height: 50px; font-size: 14px; }
.has-content .home-subtitle { margin-bottom: 20px; }
.overview-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 28px; }
.overview-stat { position: relative; display: flex; align-items: center; text-align: left; gap: 14px; padding: 17px 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.overview-label { font-size: 12px; color: var(--muted); }
.overview-value { font-size: 23px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; margin-left: auto; }
.overview-value small { font-size: 11px; font-weight: 400; margin-left: 5px; color: var(--muted); }
.overview-stat > .icon { width: 14px; height: 14px; color: var(--muted); }
.overview-stat:hover { background: var(--soft); }
.overview-stat.warning .overview-value { color: var(--gold); }
.today-grid { display: grid; grid-template-columns: minmax(0,1fr) 286px; gap: 25px; align-items: start; }
.main-column, .side-column { display: flex; flex-direction: column; gap: 25px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 550; }
.section-heading .count { color: #6d6d73; font-size: 11px; font-weight: 400; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-padding { padding: 23px; }
.focus-card { border: 1px solid #dfdfe4; border-radius: 16px; background: #fafafb; padding: 21px 23px; }
.focus-caption { display: flex; align-items: center; gap: 6px; color: #6d6d73; font-size: 11px; margin-bottom: 12px; }
.focus-caption .icon { width: 13px; height: 13px; }
.focus-card h3 { font-size: 18px; font-weight: 550; line-height: 1.6; }
.focus-card > p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.focus-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 19px; }
.focus-meta { display: flex; gap: 13px; flex-wrap: wrap; color: #6d6d73; font-size: 11px; }
.focus-meta span { display: flex; align-items: center; gap: 5px; }
.focus-meta .icon { width: 13px; height: 13px; }
.review-card { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #eee5d7; border-radius: 14px; background: #fffcf6; }
.review-card h3 { font-size: 14px; font-weight: 550; }
.review-card p { font-size: 12px; color: #79684f; margin-top: 3px; }
.review-icon { color: #977443; }
.review-card .button { margin-left: auto; }
.recent-recording { width: 100%; border: 0; border-bottom: 1px solid #eeeef1; display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: #fff; text-align: left; }
.recent-recording:last-child { border-bottom: 0; }
.recent-recording:hover { background: #fafafb; }
.recent-recording > span:nth-child(2) { flex: 1; min-width: 0; }
.recent-recording strong { font-size: 13px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-recording small { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }
.recent-recording > .icon { width: 14px; height: 14px; color: var(--muted); }

/* List rows keep title, ownership and evidence on one reading path. */
.task-row { display: grid; grid-template-columns: 19px minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 19px 20px; border-bottom: 1px solid #ededf0; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: #fafafb; }
.task-check { width: 18px; height: 18px; margin-top: 3px; padding: 0; border: 1.5px solid #c8c8ce; border-radius: 50%; background: transparent; display: grid; place-items: center; color: #fff; }
.task-check:hover { border-color: #6e6e78; }
.task-check.done { background: var(--ink); border-color: var(--ink); }
.task-check.draft { border-style: dashed; border-radius: 5px; }
.task-check .icon { width: 12px; height: 12px; }
.task-body { min-width: 0; }
.task-title { display: block; text-align: left; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; line-height: 1.65; overflow-wrap: anywhere; }
.task-title:hover { color: var(--blue); }
.task-row.is-done .task-title { color: #6d6d73; text-decoration: line-through; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 11px; color: #6d6d73; margin-top: 7px; }
.task-meta .sep { width: 2px; height: 2px; border-radius: 50%; background: #b5b5bd; }
.tiny-icon { display: inline-flex; gap: 4px; align-items: center; }
.task-meta .icon { width: 12px; height: 12px; }
.task-actions { display: flex; align-items: center; gap: 1px; }
.task-actions .icon-button { width: 28px; height: 28px; padding: 6px; }
.task-actions .icon { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 500; line-height: 1.6; color: #6c6c75; background: #f0f0f3; white-space: nowrap; }
.tag.work { background: #f0f0f3; color: #64646e; }
.tag.life { background: #f2eef7; color: #806291; }
.tag.draft, .tag.warning, .tag.medium { background: var(--gold-soft); color: var(--gold); }
.tag.success, .tag.done { background: #eff5f0; color: #4e735c; }
.tag.error, .tag.high { background: var(--red-soft); color: var(--red); }
.tag.neutral, .tag.low { background: #f1f1f4; color: #6d6d73; }
.tag .icon { width: 11px; height: 11px; }
.overdue { color: var(--red) !important; }
.empty-state { padding: 54px 25px; text-align: center; color: var(--muted); }
.empty-symbol { width: 52px; height: 52px; display: inline-grid; place-items: center; background: #f5f5f7; color: var(--muted); border: 1px solid #ececf0; border-radius: 16px; margin-bottom: 18px; }
.empty-symbol .icon { width: 24px; height: 24px; stroke-width: 1.35; }
.empty-state h3 { font-size: 15px; color: #55555f; font-weight: 500; }
.empty-state p { max-width: 340px; margin: 9px auto 0; font-size: 13px; line-height: 1.9; }
.empty-state .button { margin-top: 22px; }
.empty-state.small { padding: 28px 16px; }
.empty-state.small .empty-symbol { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 12px; }
.empty-state.small h3 { font-size: 13px; }
.empty-state.small p { font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; border-radius: 8px; background: none; padding: 8px 12px; color: #6d6d73; font-size: 13px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tab.active { background: #eeeeF1; color: #2e2e36; font-weight: 550; }
.tab:hover:not(.active) { background: #f8f8fa; }
.tab span { font-size: 10px; font-weight: 400; color: var(--muted); }
.sort-label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.sort-label .icon { width: 13px; height: 13px; }
.list-section { margin-bottom: 26px; }
.list-section > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 500; }
.list-section > h2 span { font-size: 10px; }

/* Calendar and preparation share a restrained secondary column. */
.calendar-mini { padding: 22px 19px; }
.calendar-mini-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 19px; }
.calendar-mini-header h2 { font-size: 15px; font-weight: 550; }
.calendar-mini-header span { color: var(--muted); font-size: 10px; }
.week-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.week-day { text-align: center; padding: 8px 0; border-radius: 8px; color: #5f5f68; font-size: 12px; }
.week-day small { display: block; color: var(--muted); margin-bottom: 10px; font-size: 10px; }
.week-day strong { font-weight: 500; }
.week-day.today { background: #2c2c31; color: #fff; }
.week-day.today small { color: #c6c6cf; }
.week-day.has-event:not(.today)::after { content: ''; display: block; width: 3px; height: 3px; border-radius: 50%; background: #777784; margin: 3px auto -6px; }
.agenda { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 15px; }
.agenda .section-heading h2 { font-size: 12px; color: #6d6d73; font-weight: 400; }
.agenda-empty { text-align: center; color: var(--muted); padding: 24px 8px 8px; }
.agenda-empty > .icon { width: 25px; height: 25px; stroke-width: 1.3; margin-bottom: 9px; }
.agenda-empty p { color: #6d6d73; font-size: 12px; }
.agenda-empty .text-button { margin-top: 6px; font-size: 11px; color: var(--muted); }
.timeline { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.timeline-item { display: grid; grid-template-columns: 37px minmax(0,1fr); gap: 10px; }
.timeline-time { font-size: 11px; color: var(--muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.timeline-body { position: relative; border-left: 1px solid #dedee5; padding: 0 0 5px 13px; min-width: 0; }
.timeline-body::before { content: ''; position: absolute; left: -3px; top: 7px; width: 5px; height: 5px; background: #b3b3be; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.timeline-item.next .timeline-body::before { background: #3a3a43; }
.timeline-body button { background: none; border: 0; padding: 0; text-align: left; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.timeline-body p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.timeline-body .tag { margin-top: 7px; }
.next-meeting { padding: 22px; border: 1px solid #e1e5ee; border-radius: 16px; background: #f7f9fc; }
.eyebrow { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.eyebrow .icon { width: 14px; height: 14px; }
.next-meeting h3 { font-size: 16px; font-weight: 500; margin: 12px 0 10px; line-height: 1.6; }
.meeting-time, .meeting-people { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11px; color: #747d8e; }
.meeting-time .icon { width: 13px; height: 13px; }
.meeting-people { margin-top: 14px; }
.meeting-people .avatar { width: 24px; height: 24px; font-size: 10px; background: #e5eaf3; color: #667a95; }
.next-meeting .button { width: 100%; margin-top: 20px; font-size: 12px; min-height: 36px; }
.quiet-card { padding: 5px 11px; }
.quiet-card > .icon { color: var(--muted); width: 20px; height: 20px; margin-bottom: 12px; }
.quiet-card h3 { font-size: 13px; color: #686872; font-weight: 500; }
.quiet-card p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.9; }
.calendar-list { display: flex; flex-direction: column; gap: 16px; }
.event-card { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; gap: 22px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.event-date { text-align: center; padding-right: 19px; border-right: 1px solid var(--line); color: #696974; }
.event-date strong { display: block; font-size: 30px; font-weight: 400; line-height: 1.2; }
.event-date span { display: block; font-size: 10px; margin-top: 7px; }
.event-content h3 { font-size: 16px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.event-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-meta .icon { width: 13px; height: 13px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.event-actions { display: flex; flex-direction: column; gap: 8px; }
.event-actions .button { font-size: 12px; padding: 8px 12px; min-height: 35px; }
.event-card.cancelled { opacity: .65; }
.event-card.cancelled h3 { text-decoration: line-through; }
.calendar-note { display: flex; align-items: flex-start; gap: 8px; padding: 13px 16px; border: 1px solid #e6e8ee; border-radius: 11px; background: #f8f9fb; color: var(--muted); font-size: 12px; margin-bottom: 22px; line-height: 1.8; }
.calendar-note > .icon { width: 15px; height: 15px; margin-top: 3px; }

/* Source material is the centre of every generated item. */
.recording-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.recording-card { display: flex; flex-direction: column; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 16px; transition: border-color .16s; }
.recording-card:hover { border-color: #c5c5ce; }
.recording-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; }
.recording-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f2f2f6; color: var(--muted); flex-shrink: 0; }
.recording-symbol .icon { width: 18px; height: 18px; }
.recording-title { border: 0; background: none; padding: 0; text-align: left; font-size: 16px; font-weight: 550; line-height: 1.65; overflow-wrap: anywhere; }
.recording-date { font-size: 11px; color: var(--muted); margin-top: 7px; }
.recording-excerpt { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 16px 0 24px; min-height: 65px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.recording-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; color: var(--muted); font-size: 11px; }
.recording-bottom > span { display: flex; align-items: center; gap: 5px; }
.recording-bottom .icon { width: 13px; height: 13px; }
.recording-bottom .text-button { font-size: 11px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.back-link .icon { width: 15px; height: 15px; }
.recording-layout { display: grid; grid-template-columns: minmax(0,1fr) 294px; gap: 24px; align-items: start; }
.recording-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.recording-toolbar .button, .recording-toolbar .primary { font-size: 12px; padding: 8px 12px; min-height: 36px; }
.audio-player { width: 100%; height: 43px; margin: 0 0 20px; }
.transcript-panel { padding: 24px; }
.transcript-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.transcript-header h2 { font-size: 15px; }
.transcript-header span { font-size: 11px; color: var(--muted); }
.segment { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; padding: 21px 0; border-bottom: 1px solid #eeeef2; }
.segment:last-child { border-bottom: 0; }
.segment-time { align-self: start; display: flex; align-items: center; gap: 3px; border: 0; border-radius: 5px; padding: 3px 0; background: none; color: var(--blue); font-size: 11px; font-variant-numeric: tabular-nums; }
.segment-time .icon { width: 10px; height: 10px; }
.segment-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.segment strong { font-size: 12px; color: #697181; font-weight: 550; overflow-wrap: anywhere; }
.segment-label .text-button { flex-shrink: 0; padding: 0; font-size: 11px; color: var(--muted); }
.segment-label .text-button .icon { width: 12px; height: 12px; }
.segment p { font-size: 14px; line-height: 1.95; color: #52525e; margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.speaker-list { display: flex; flex-direction: column; gap: 15px; margin-top: 18px; }
.speaker-field { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; align-items: center; }
.speaker-field label { font-size: 12px; color: #737380; overflow-wrap: anywhere; }
.speaker-field select { width: 100%; min-width: 0; border: 1px solid #dfe0e6; border-radius: 8px; padding: 8px; background: #fff; color: #60606c; font-size: 12px; }
.draft-preview { padding: 16px 0; border-bottom: 1px solid var(--line); }
.draft-preview:last-child { border-bottom: 0; }
.draft-preview button { padding: 0; background: none; border: 0; text-align: left; font-size: 14px; font-weight: 500; line-height: 1.7; }
.draft-preview p { font-size: 11px; color: var(--muted); margin: 7px 0; }
.draft-preview .tag { margin-top: 5px; }
.evidence { padding: 13px 16px; border-left: 2px solid #b8c5db; border-radius: 0 9px 9px 0; background: #f5f7fb; color: #687387; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 0; }
.evidence button, .source-link { display: block; padding: 5px 0 0; text-align: left; border: 0; background: none; color: var(--blue); font-size: 12px; }
.recording-source-note, .small-copy, .field-hint, .panel-subtitle { color: var(--muted); font-size: 12px; line-height: 1.85; margin-top: 8px; overflow-wrap: anywhere; }
.recording-source-note { margin-top: 16px; }
.job-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.job-card { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid #e1e5ed; background: #f6f8fc; border-radius: 10px; color: #617594; font-size: 12px; }
.job-card.error { background: var(--red-soft); border-color: #eddad7; color: var(--red); }
.job-card .icon { width: 15px; height: 15px; margin-top: 2px; }
.job-card small { display: block; margin-top: 5px; font-size: 12px; color: inherit; }

/* People, connections and forms use the same controls as the work itself. */
.people-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(285px,1fr); gap: 25px; align-items: start; }
.people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.person-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.person-top { display: flex; gap: 10px; align-items: center; }
.person-top > div { min-width: 0; }
.person-top .avatar { width: 38px; height: 38px; font-size: 14px; }
.person-top h3 { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.person-top p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.person-top .icon-button { margin-left: auto; width: 28px; height: 28px; padding: 6px; }
.person-top .icon-button .icon { width: 15px; height: 15px; }
.person-card > p { color: var(--muted); font-size: 13px; margin-top: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.person-card > .tag { margin-top: 16px; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(255px,1fr); gap: 26px; align-items: start; }
.settings-stack { display: flex; flex-direction: column; gap: 22px; }
.integration-card { padding: 25px; }
.integration-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.integration-brand { display: flex; align-items: center; gap: 12px; }
.service-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ececf0; background: #f6f6f8; color: #5f6470; border-radius: 11px; flex-shrink: 0; }
.service-symbol.google { color: #586b89; font: 600 21px Arial,sans-serif; }
.integration-brand h2 { font-size: 16px; font-weight: 550; }
.integration-brand p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.integration-card > p { font-size: 13px; line-height: 1.9; color: #70707d; }
.integration-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.integration-actions .button, .integration-actions .primary { font-size: 12px; }
.lock-notice { display: flex; align-items: flex-start; gap: 10px; background: #fffbf3; border: 1px solid #eee3ce; border-radius: 11px; padding: 16px; color: #79623d; margin: 17px 0; }
.lock-notice .icon { width: 16px; height: 16px; margin-top: 3px; }
.lock-notice strong { display: block; font-size: 13px; font-weight: 550; margin-bottom: 5px; }
.lock-notice p { font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.settings-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.settings-details summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.settings-details .form-grid { margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 18px; }
.form-grid > .full { grid-column: 1/-1; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > span:first-child { font-size: 12px; font-weight: 500; color: #64646f; }
.field input:not([type=checkbox]), .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #dedee5; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.field input:not([type=checkbox]), .field select { min-height: 43px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { min-height: 86px; resize: vertical; }
.field textarea.tall { min-height: 164px; }
.field small { font-size: 11px; color: var(--muted); line-height: 1.8; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #cad6eb; outline-offset: 1px; border-color: #a6b5d0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.checkbox-row input { accent-color: #34343c; flex-shrink: 0; width: 15px; height: 15px; margin: 3px 0 0; }
.checklist { display: flex; flex-wrap: wrap; gap: 10px 15px; max-height: 150px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.settings-form-actions { display: flex; justify-content: flex-end; margin-top: 19px; }
.boundary-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 20px; }
.boundary-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.boundary-list .icon { width: 15px; height: 15px; margin-top: 3px; }
.boundary-list strong { display: block; font-size: 12px; font-weight: 500; color: #656571; }
.boundary-list p { font-size: 11px; line-height: 1.85; color: var(--muted); margin-top: 4px; }
.demo-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.demo-section .button { font-size: 12px; }
.demo-banner { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; padding: 8px 18px; color: #79664a; background: #fcf9f1; border-bottom: 1px solid #f0ebe0; }
.demo-banner .icon { width: 13px; height: 13px; }
.connection-banner { background: var(--red-soft); color: var(--red); padding: 11px 20px; text-align: center; font-size: 12px; }
.connection-banner button { border: 0; background: none; color: inherit; text-decoration: underline; margin-left: 9px; }
.connection-empty, .review-hint { background: #f5f6f9; color: #657080; padding: 13px 15px; border-radius: 9px; font-size: 12px; line-height: 1.85; }

/* Focused dialogs with stable actions and readable evidence. */
dialog { border: 1px solid #e2e2e8; border-radius: 22px; padding: 0; width: calc(100% - 40px); max-width: 660px; max-height: calc(100dvh - 60px); background: #fff; color: var(--ink); box-shadow: 0 28px 110px #17172026; overflow: auto; }
dialog::backdrop { background: #1b1b273b; backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 26px 29px 23px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 21px; font-weight: 550; letter-spacing: -.4px; }
.modal-header p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.8; }
.modal-header .icon-button { margin: -3px -6px 0 0; }
.modal-body { padding: 25px 29px; }
.modal-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 29px; border-top: 1px solid var(--line); background: #fbfbfc; position: sticky; bottom: 0; }
.modal-footer-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.modal-footer .button, .modal-footer .primary { font-size: 12px; min-height: 37px; }
.modal-source { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 23px; }
.modal-source h3 { font-size: 12px; color: var(--muted); font-weight: 500; }
.form-error { display: none; padding: 12px 14px; border-radius: 9px; background: var(--red-soft); color: var(--red); font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 18px; }
.form-error:not(:empty) { display: block; }
.upload-box { display: block; padding: 22px; border: 1px dashed #c8cad3; background: #f9f9fc; border-radius: 13px; text-align: center; cursor: pointer; color: var(--muted); }
.upload-box:hover { background: #f4f5f9; }
.upload-box > .icon { width: 25px; height: 25px; margin-bottom: 10px; }
.upload-box strong { display: block; font-size: 14px; font-weight: 500; color: #5c6170; }
.upload-box small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.8; }
.upload-box input { margin-top: 15px; width: 100%; font-size: 11px; color: var(--muted); }
.file-inline { width: 100%; font-size: 12px; color: var(--muted); }
.upload-box input::file-selector-button, .file-inline::file-selector-button { padding: 7px 10px; border: 1px solid #dbdde5; border-radius: 7px; background: #fff; color: #6a6e7c; margin-right: 9px; font-size: 12px; cursor: pointer; }
.brief-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brief-header .service-symbol { width: 43px; height: 43px; }
.brief-header h3 { font-size: 16px; }
.brief-header p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.brief-section { margin-top: 23px; }
.brief-section h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #6c778b; font-weight: 500; margin-bottom: 11px; }
.brief-section h3 .icon { width: 15px; height: 15px; }
.brief-section > p, .brief-section li { font-size: 14px; line-height: 1.9; color: #656570; white-space: pre-wrap; overflow-wrap: anywhere; }
.brief-section ul { padding-left: 18px; margin: 0; }
.brief-missing { border: 1px solid #ede3cc; background: #fffbf1; color: #79653f; border-radius: 10px; padding: 14px 16px; font-size: 12px; line-height: 1.85; margin-top: 22px; }
.notification-item { display: flex; align-items: flex-start; gap: 11px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-dot { width: 6px; height: 6px; border-radius: 50%; background: #7086aa; flex-shrink: 0; margin-top: 7px; }
.notification-item.read .notification-dot { background: #d7d7df; }
.notification-item h3 { font-size: 14px; font-weight: 500; }
.notification-item p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 6px; }
.notification-item small { color: var(--muted); font-size: 11px; margin-top: 8px; display: block; }
.notification-item .text-button { margin-left: auto; }
.clipboard-text { min-height: 270px !important; font-size: 14px !important; line-height: 1.9 !important; }
.toast-stack { position: fixed; bottom: 24px; right: 26px; max-width: 400px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #dedee5; border-radius: 12px; background: #fff; color: #575b68; box-shadow: 0 10px 40px #24242613; padding: 15px 17px; font-size: 12px; animation: appear .16s ease; }
.toast > .icon { width: 16px; height: 16px; margin-top: 2px; }
.toast p { overflow-wrap: anywhere; }
.toast.error { color: var(--red); background: #fffafa; border-color: #eddbd8; }
.toast button { border: 0; background: none; color: inherit; padding: 0; margin-left: 5px; }
.toast button .icon { width: 13px; height: 13px; }
.initial-loading { height: 60vh; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--muted); }
.loading-dot { width: 7px; height: 7px; background: #9a9aa7; border-radius: 50%; animation: pulse 1.5s infinite; }
.loading-ring { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #d0d5df; border-top-color: #657999; animation: spin 1s linear infinite; flex-shrink: 0; }
.error-state { max-width: 500px; margin: 60px auto; padding: 35px; text-align: center; }
.error-state > .icon { width: 28px; height: 28px; color: var(--red); }
.error-state h2 { margin: 17px 0 9px; }
.error-state p { color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.error-state .button { margin-top: 24px; }
.flow-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.85; padding: 4px; }
.flow-note > .icon { width: 14px; height: 14px; margin-top: 3px; }
.search-summary { font-size: 12px; color: var(--muted); margin: -8px 0 21px; }
.search-summary button { border: 0; padding: 0; background: none; color: var(--blue); text-decoration: underline; font-size: 12px; }
.muted { color: var(--muted); }.mt-15 { margin-top: 15px; }.ml-auto { margin-left: auto; }.full-width, .w100 { width: 100%; }.nowrap { white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet keeps the rail; phone gets a complete, labelled drawer. */
@media (max-width: 1200px) {
  .sidebar { width: 214px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 214px; }
  main { padding: 32px 28px; }
  .topbar { padding: 0 28px; }
  .workspace-footer { padding: 20px 28px; }
  .today-grid { grid-template-columns: minmax(0,1fr) 255px; gap: 19px; }
  .recording-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .people-layout { grid-template-columns: 1fr; }
  .people-layout > .panel { max-width: 660px; }
  .recording-layout, .settings-layout { grid-template-columns: minmax(0,1fr) 255px; gap: 18px; }
  .overview-stat { padding: 15px; gap: 8px; }
  .overview-stat > .icon { display: none; }
  .toolbar { flex-wrap: wrap; }
  .first-visit .home-intro { margin-top: 35px; }
}
@media (max-width: 1000px) {
  .sidebar { width: 200px; }
  .workspace { margin-left: 200px; }
  .brand-row { margin-left: 3px; margin-right: 3px; }
  .brand { gap: 7px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .topbar { padding: 0 24px; gap: 10px; }
  .topbar-tools { gap: 6px; }
  .topbar-add { display: none; }
  .search-box input { width: 116px; }
  main { padding: 30px 25px; }
  .home-intro h1 { font-size: 34px; }
  .today-grid { grid-template-columns: minmax(0,1fr); }
  .today-grid > .side-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .recording-layout, .settings-layout { grid-template-columns: 1fr; }
  .recording-layout > .side-column, .settings-layout > .side-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
  .start-card { padding: 18px 16px; }
  .start-card p { margin-bottom: 17px; }
  .composer-hint { display: none; }
  .composer-submit { margin-left: auto; }
  .event-card { grid-template-columns: 58px minmax(0,1fr); gap: 18px; }
  .event-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .sidebar { width: 258px; padding: 24px 15px 18px; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease, visibility .18s; box-shadow: 18px 0 60px #24242613; }
  .form-grid .field:has(#recording-date) { grid-column: 1 / -1; }
  .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .brand-row { justify-content: space-between; }
  .sidebar-close, .nav-toggle { display: inline-flex; }
  .sidebar-close { width: 28px; height: 28px; padding: 6px; }
  .sidebar-close .icon { width: 16px; height: 16px; }
  .nav-toggle { margin-left: -8px; }
  .nav-scrim { display: none; position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #1e1e2b35; z-index: 35; }
  .nav-open .nav-scrim { display: block; }
  body.nav-open { overflow: hidden; }
  .workspace { margin-left: 0; }
  .topbar { height: 62px; padding: 0 21px; }
  .topbar-crumb { gap: 9px; }
  .local-badge { display: none; }
  .search-box { padding: 7px 9px; }
  .search-box input { width: 117px; }
  .search-box kbd { display: none; }
  main { padding: 27px 22px 30px; }
  .workspace-footer { padding: 20px 22px; font-size: 10px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; gap: 14px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 12px; line-height: 1.85; }
  .page-heading > .page-actions { padding-top: 2px; }
  .page-actions .button, .page-actions .primary { font-size: 12px; padding: 8px 11px; }
  .first-visit .home-intro { margin: 29px auto 36px; }
  .home-intro h1 { font-size: 33px; letter-spacing: -.5px; }
  .home-subtitle { font-size: 12px; margin-top: 12px; }
  .home-date { font-size: 11px; margin-bottom: 15px; }
  .capture-composer { padding: 18px 16px 12px; border-radius: 18px; }
  .capture-composer textarea { font-size: 14px; }
  .first-visit .capture-composer textarea { min-height: 94px; }
  .suggestion-row { gap: 7px; }
  .suggestion-row button { font-size: 11px; padding: 7px 10px; }
  .has-content .home-intro h1 { font-size: 28px; }
  .overview-strip { gap: 9px; margin-bottom: 23px; }
  .overview-stat { display: block; padding: 14px; }
  .overview-label { font-size: 11px; display: block; }
  .overview-value { display: block; margin-top: 6px; font-size: 24px; }
  .overview-value small { font-size: 10px; }
  .start-grid { grid-template-columns: 1fr; gap: 11px; }
  .start-card { display: grid; grid-template-columns: 33px minmax(0,1fr) auto; column-gap: 12px; padding: 20px; align-items: center; border-radius: 13px; }
  .start-icon { grid-row: 1/3; height: auto; }
  .start-card strong { margin: 0; font-size: 14px; }
  .start-card p { grid-column: 2; margin: 3px 0 0; font-size: 11px; }
  .start-link { grid-column: 3; grid-row: 1/3; font-size: 0; }
  .start-link .icon { width: 17px; height: 17px; }
  .home-privacy { font-size: 10px; margin-top: 23px; }
  .task-row { padding: 18px 17px; gap: 10px; }
  .task-title { font-size: 14px; }
  .task-meta { font-size: 11px; }
  .task-actions { gap: 0; }
  .task-actions .tag { display: none; }
  .tag { font-size: 10px; }
  .today-grid > .side-column { gap: 13px; }
  .calendar-mini { padding: 18px 15px; }
  .calendar-mini-header span { font-size: 9px; }
  .calendar-mini-header h2 { font-size: 14px; }
  .next-meeting { padding: 19px; }
  .recording-grid { gap: 14px; }
  .recording-card { padding: 20px; }
  .people-grid { gap: 13px; }
  .person-card { padding: 20px; }
  .toolbar { gap: 11px; margin-bottom: 22px; padding-bottom: 13px; }
  .tab { padding: 8px 10px; font-size: 12px; gap: 5px; }
  .sort-label { font-size: 10px; }
  .integration-card { padding: 22px; }
  .event-card { padding: 21px; }
  .panel-padding { padding: 21px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 30px); border-radius: 18px; }
  .modal-header { padding: 23px 23px 20px; }
  .modal-body { padding: 23px; }
  .modal-footer { padding: 16px 23px; }
  .toast-stack { right: 16px; left: 16px; bottom: 17px; max-width: none; }
  .demo-banner { font-size: 10px; text-align: center; }
}
@media (max-width: 440px) {
  main { padding: 25px 18px 28px; }
  .topbar { padding: 0 17px; }
  .topbar-tools { gap: 5px; }
  .search-box input { width: 104px; font-size: 11px; }
  .notification-button { width: 29px; padding: 5px; }
  .home-intro h1 { font-size: 30px; }
  .home-subtitle { max-width: 275px; }
  .composer-attach { font-size: 11px; }
  .suggestion-row { gap: 5px; }
  .suggestion-row button { padding: 7px 9px; font-size: 10px; gap: 4px; }
  .suggestion-row .icon { width: 13px; height: 13px; }
  .first-visit .home-intro { margin-top: 18px; }
  .home-privacy { font-size: 10px; gap: 4px; }
  .home-privacy .icon { width: 11px; height: 11px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading > .page-actions { padding-top: 0; }
  .task-row { grid-template-columns: 18px minmax(0,1fr); }
  .task-actions { grid-column: 2; justify-content: flex-end; margin-top: -6px; }
  .task-actions .tag { display: inline-flex; margin-right: auto; }
  .task-actions .icon-button { width: 30px; height: 30px; }
  .recording-grid, .people-grid { grid-template-columns: 1fr; }
  .today-grid > .side-column, .recording-layout > .side-column, .settings-layout > .side-column { display: flex; flex-direction: column; }
  .side-column > * { width: 100%; }
  .review-card { flex-wrap: wrap; gap: 10px; padding: 17px; }
  .review-card .button { margin-left: 31px; }
  .focus-card { padding: 20px; }
  .focus-card h3 { font-size: 17px; }
  .focus-meta { font-size: 11px; }
  .event-card { grid-template-columns: 44px minmax(0,1fr); gap: 15px; padding: 19px 17px; }
  .event-date { padding-right: 13px; }
  .event-date strong { font-size: 27px; }
  .event-date span { font-size: 9px; }
  .event-content h3 { font-size: 15px; }
  .event-meta { font-size: 11px; }
  .event-actions .button { font-size: 11px; }
  .calendar-note { flex-wrap: wrap; padding: 13px; font-size: 11px; }
  .calendar-note > span { flex: 1; min-width: 0; }
  .calendar-note .text-button { margin-left: 22px; font-size: 11px; }
  .transcript-panel { padding: 19px; }
  .segment { grid-template-columns: 43px minmax(0,1fr); gap: 10px; }
  .segment-time { font-size: 10px; }
  .segment p { font-size: 14px; }
  .integration-card { padding: 20px; }
  .integration-brand { gap: 10px; }
  .integration-brand h2 { font-size: 14px; }
  .integration-header { gap: 9px; }
  .integration-header .tag { font-size: 9px; }
  .service-symbol { width: 33px; height: 33px; }
  .form-grid { gap: 17px 12px; }
  .field input:not([type=checkbox]), .field textarea, .field select { font-size: 14px; padding: 10px; }
  .modal-header { padding: 21px 19px 18px; }
  .modal-header h2 { font-size: 19px; }
  .modal-body { padding: 21px 19px; }
  .modal-footer { padding: 15px 19px; }
  .modal-footer .button, .modal-footer .primary { font-size: 11px; padding: 8px 11px; }
  .modal-footer-right { gap: 6px; }
  .workspace-footer { padding: 20px 18px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
