:root {
  --paper: #f8f9fc;
  --white: #ffffff;
  --ink: #182236;
  --muted: #647087;
  --line: #e6e9f1;
  --rust: #4558d4;
  --rust-dark: #3547b8;
  --sage: #edf1ff;
  --peach: #eef0fb;
  --sand: #f3f5fb;
}
body { font-size: 15px; line-height: 1.5; }
h1, .dialog-head h2, .empty h3 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -.04em; }
h1 { font-size: clamp(32px, 4vw, 43px); }
h2 { font-weight: 650; }
.sidebar { background: #fff; border-color: var(--line); }
.brand { letter-spacing: -.06em; }
.brand-dot, .wave { color: var(--rust); }
.nav-item { border-radius: 11px; color: #69758a; }
.nav-item.active { color: var(--rust); background: #eff1ff; }
.nav-item.active:before { display: none; }
.topbar { height: 68px; background: #fff; }
.page { max-width: 1050px; padding-top: 36px; }
.page-heading { margin-bottom: 24px; }
.home-heading { margin-bottom: 25px; }
.eyebrow { color: #77839a; font-size: 11px; letter-spacing: .11em; }
.subtitle { font-size: 15px; color: var(--muted); }
.section-head h2 { font-size: 18px; }
.section-hint { color: var(--muted); font-size: 13px; }
.count { background: #edf0ff; color: #4a5ac3; font-size: 12px; border-radius: 99px; padding: 3px 8px; }
.capture-section { margin-bottom: 30px; }
.capture-section .section-head { margin-bottom: 11px; }
.quick-composer { background: #fff; border: 1px solid #dfe4f0; border-radius: 18px; box-shadow: 0 8px 30px #1b28570a; padding: 19px 20px 16px; }
.quick-composer > label { display: block; color: #49566e; font-size: 13px; font-weight: 650; }
.quick-composer textarea { display: block; width: 100%; resize: vertical; min-height: 70px; margin-top: 8px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 18px; line-height: 1.45; padding: 2px 0; }
.quick-composer textarea::placeholder { color: #9aa4b5; }
.quick-composer:focus-within { border-color: #9da9ed; box-shadow: 0 0 0 3px #dfe4ff, 0 8px 30px #1b28570a; }
.capture-context { border-top: 1px solid var(--line); padding: 11px 0 0; margin-top: 7px; font-size: 13px; }
.capture-context summary { display: flex; align-items: center; gap: 8px; margin: 0; color: #4c5e8d; min-height: 34px; }
.capture-context summary .icon { width: 16px; height: 16px; }
.capture-context summary span { margin-left: auto; font-size: 11px; color: #8d97a8; font-weight: 400; }
.capture-context[open] summary { margin-bottom: 9px; }
.context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-bottom: 10px; }
.context-grid label { color: #6c7890; font-size: 11px; font-weight: 600; }
.context-grid select { display: block; width: 100%; min-width: 0; height: 42px; margin-top: 5px; padding: 0 9px; border-radius: 9px; border: 1px solid #dde2ef; background: #fff; color: var(--ink); font-size: 13px; }
.quick-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; }
.quick-actions > span { color: #8490a2; font-size: 12px; }
.quick-actions > div { display: flex; align-items: center; gap: 9px; }
.quick-actions .primary { border-radius: 11px; min-height: 44px; padding: 10px 15px; }
.quick-mic { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dce2ee; background: #f7f8fc; color: var(--rust); border-radius: 11px; }
.quick-mic:hover { background: #edf0ff; }
.quick-mic .icon { width: 19px; height: 19px; }
.review-banner { border-color: #d7def7; background: #eef1ff; color: #374bb4; border-radius: 13px; margin-bottom: 29px; padding: 15px 18px; }
.review-banner small { color: #5c68a1; }
.task-section { background: transparent; }
.list-toolbar { margin-bottom: 10px; }
.tabs { gap: 5px; }
.tabs button { color: #657188; font-size: 13px; min-height: 39px; border-radius: 9px; }
.tabs button.selected { background: #e9edff; color: #3f50c0; font-weight: 650; }
.search { border-radius: 10px; padding: 9px 12px; max-width: 190px; }
.search input { font-size: 13px; }
.task-row { min-height: 77px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.task-row:last-child { border-bottom: 1px solid var(--line); }
.task-check { width: 22px; height: 22px; border-radius: 7px; }
.task-content strong { font-size: 15px; line-height: 1.38; }
.task-content > span { font-size: 12px; color: #69758a; }
.project-tag { color: #5063bd; }
.task-meta { max-width: 300px; }
.date-tag, .status { font-size: 11px; padding: 4px 7px; border-radius: 6px; }
.capture-card { border-radius: 13px; margin-bottom: 9px; padding: 17px 18px; box-shadow: 0 3px 13px #1b285706; }
.capture-card h3 { font-size: 15px; line-height: 1.4; }
.capture-card p { font-size: 12px; }
.capture-card .eyebrow { font-size: 11px; letter-spacing: .04em; }
.capture-symbol { background: #edf0ff; color: var(--rust); }
.capture-symbol.ready { background: #e5e9ff; color: var(--rust); }
.capture-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.capture-tags span { color: #4b5fb6; background: #edf0ff; border-radius: 7px; padding: 2px 7px; font-size: 11px; }
.project-composer { margin: 12px 0 30px; }
.project-card, .template-card, .directory-list, .settings-card { border-color: var(--line); background: #fff; }
.primary { box-shadow: none; border-radius: 10px; }
.secondary { border-color: #dce2ef; border-radius: 10px; }
dialog { background: #f8f9fc; border-color: #dfe4ef; }
.field input, .field textarea, .field select { font-size: 15px; border-color: #dce2ef; border-radius: 9px; }
.field > span { font-size: 13px; }
.proposal-heading strong { font-size: 13px; }
.proposal-warning { font-size: 12px; }
.record-button { background: var(--rust); border-color: #e4e8ff; }
.record-panel strong { font-family: inherit; font-weight: 650; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  main { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
  .topbar { height: 51px; padding: 0 18px; }
  .breadcrumb { font-size: 12px; font-weight: 600; }
  .breadcrumb span { margin: 0 5px; }
  .sync-status { font-size: 11px; }
  .sync-status .icon { width: 14px; height: 14px; }
  .page { padding: 23px 17px 30px; }
  .page-heading { margin-bottom: 21px; }
  .home-heading { margin-bottom: 24px; }
  h1, .page-heading h1 { font-size: 32px; letter-spacing: -.045em; }
  .eyebrow { font-size: 11px; margin-bottom: 6px; }
  .subtitle { font-size: 14px; margin-top: 5px; }
  .section-head { margin-bottom: 11px; }
  .section-head h2 { font-size: 17px; }
  .section-hint { font-size: 12px; }
  .capture-section { margin-bottom: 24px; }
  .quick-composer { padding: 15px 16px 14px; border-radius: 16px; }
  .quick-composer > label { font-size: 12px; }
  .quick-composer textarea { min-height: 70px; font-size: 16px; margin-top: 8px; }
  .quick-actions { margin-top: 10px; }
  .quick-actions > span { font-size: 11px; max-width: 135px; line-height: 1.3; }
  .context-grid { grid-template-columns: 1fr; gap: 9px; }
  .context-grid label { font-size: 12px; }
  .context-grid select { font-size: 16px; height: 45px; }
  .review-banner { padding: 13px 14px; margin-bottom: 24px; }
  .review-banner b { font-size: 14px; }
  .review-banner small { display: block; font-size: 11px; }
  .list-toolbar { display: block; }
  .tabs { width: calc(100vw - 34px); overflow-x: auto; padding-bottom: 3px; }
  .tabs button { font-size: 12px; min-height: 40px; padding: 8px 11px; }
  .search { width: 100%; max-width: none; margin: 8px 0 11px; padding: 10px 12px; }
  .search input { font-size: 15px; }
  .task-row { padding: 14px 12px; gap: 11px; align-items: flex-start; margin-bottom: 7px; min-height: 72px; }
  .task-check { width: 24px; height: 24px; margin-top: 1px; }
  .task-content strong { font-size: 14px; }
  .task-content > span { font-size: 11px; margin-top: 6px; }
  .task-meta { margin-left: 35px; flex-basis: calc(100% - 35px); gap: 5px; }
  .date-tag, .status { font-size: 10px; }
  .mobile-nav { background: #fff; border-color: var(--line); padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -5px 20px #1721410b; }
  .mobile-nav .nav-item { min-width: 56px; min-height: 51px; font-size: 10px; color: #728099; }
  .mobile-nav .nav-item.active { color: var(--rust); }
  .mobile-nav .nav-item .icon { width: 21px; height: 21px; }
  .mobile-record { width: 51px; height: 51px; margin: 0 3px; border-radius: 15px; background: var(--rust); box-shadow: 0 5px 15px #4558d43d; }
  .mobile-record .icon { width: 25px; height: 25px; }
  .capture-card { padding: 14px 13px; gap: 10px; }
  .capture-card h3 { font-size: 14px; }
  .capture-card p { font-size: 11px; }
  .capture-card .eyebrow { font-size: 10px; }
  .capture-symbol { width: 36px; height: 36px; }
  .page-heading > .primary { font-size: 12px; min-height: 42px; }
  .project-card h2, .directory-row strong { font-size: 16px; }
  .project-card p, .directory-row small { font-size: 12px; }
  dialog { width: calc(100% - 14px); max-height: calc(100dvh - 20px); padding: 21px 17px; border-radius: 16px; }
  .dialog-head { margin-bottom: 17px; }
  .dialog-head h2 { font-size: 24px; }
  .field > span { font-size: 12px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .proposal { padding: 15px 12px; }
  .proposal-heading strong { font-size: 12px; }
  .review-intro p, .record-panel p { font-size: 12px; }
  .sticky-actions span { font-size: 11px; }
  .sticky-actions .primary { font-size: 13px; }
  .empty h3 { font-size: 18px; }
  .empty p { font-size: 12px; }
}
