:root {
  --bg: #00120d;
  --bg-deep: #000b08;
  --panel: #071c16;
  --panel-2: #0b251d;
  --panel-3: #103127;
  --line: rgba(167, 225, 199, .16);
  --line-strong: rgba(167, 225, 199, .32);
  --text: #e4f5ec;
  --muted: #8cae9e;
  --faint: #59786a;
  --green: #7cf08f;
  --green-strong: #45e46b;
  --cyan: #5eead4;
  --amber: #ffd166;
  --red: #ff7d83;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  --radius: 16px;
  --sidebar: 246px;
  --topbar: 68px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-deep); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; margin: 0; color: var(--text); background:
  radial-gradient(circle at 78% -10%, rgba(41, 193, 110, .10), transparent 34rem),
  linear-gradient(145deg, var(--bg), var(--bg-deep) 68%); }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button, select, summary, label[for], input[type="file"] { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { color: #00120d; background: var(--green); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
input, textarea, select { border: 1px solid var(--line); background: rgba(0, 9, 6, .55); border-radius: 10px; }
input:hover, textarea:hover, select:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(124, 240, 143, .09); outline: none; }
textarea { resize: vertical; }
button:disabled { opacity: .45; cursor: not-allowed; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.eyebrow { margin: 0 0 8px; color: var(--green); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.03em; }
.view-subtitle, .section-copy { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }

.primary-button, .secondary-button, .install-button { min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.primary-button { color: #00130b; background: var(--green); box-shadow: 0 8px 30px rgba(72, 227, 110, .12); }
.primary-button:hover { background: #9df7ab; transform: translateY(-1px); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button.compact { min-height: 38px; padding-inline: 16px; }
.secondary-button, .install-button { color: var(--text); border: 1px solid var(--line-strong); background: rgba(14, 49, 38, .72); }
.secondary-button:hover, .install-button:hover { border-color: var(--green); background: var(--panel-3); }
.text-button, .danger-text-button, .tiny-button { padding: 7px; color: var(--muted); background: transparent; font-weight: 700; }
.text-button:hover { color: var(--green); }
.danger-text-button:hover { color: var(--red); }
.icon-button, .avatar-button { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--panel); font-weight: 800; }
.icon-button:hover, .avatar-button:hover { color: var(--green); border-color: var(--line-strong); }

/* Authentication */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); }
.auth-brand, .auth-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 7vw, 110px); }
.auth-brand { min-height: 100vh; border-right: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(109, 245, 150, .015) 3px 4px); }
.auth-brand h1 { max-width: 780px; font: 750 clamp(48px, 7.4vw, 112px)/.9 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--text); }
.auth-lede { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 21px); line-height: 1.55; }
.brand-mark { width: 60px; height: 60px; margin-bottom: 34px; padding: 14px; display: flex; align-items: flex-end; gap: 5px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.brand-mark span { width: 8px; background: var(--green); border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 13px; }.brand-mark span:nth-child(2) { height: 27px; }.brand-mark span:nth-child(3) { height: 20px; background: var(--cyan); }
.auth-feature-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 40px; }
.auth-feature-row span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font: 700 11px ui-monospace, monospace; text-transform: uppercase; }
.auth-native-download { width: fit-content; max-width: 100%; margin-top: 18px; padding: 12px 14px; display: grid; gap: 3px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(3, 31, 20, .72); }
.auth-native-download:hover { border-color: var(--green); background: var(--panel-3); }
.auth-native-download strong { color: var(--text); font: 750 13px ui-monospace, monospace; }
.auth-native-download span { color: var(--muted); font-size: 12px; }
.auth-panel { background: rgba(0, 7, 5, .42); }
.auth-form { width: min(100%, 460px); margin-inline: auto; display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.auth-form > div p:last-child { color: var(--muted); line-height: 1.55; }
.auth-form label, .workbench-panel label, .note-editor label, .app-dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.auth-form input, .workbench-panel select, .note-editor input, .note-editor select, .app-dialog input { width: 100%; min-height: 46px; padding: 10px 12px; }
.form-message { min-height: 20px; margin: 0; color: var(--red); font-size: 13px; }
.auth-switch { justify-self: center; }

/* Shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); grid-template-rows: var(--topbar) minmax(calc(100vh - var(--topbar)), auto); }
.topbar { position: sticky; z-index: 40; top: 0; grid-column: 1 / -1; display: grid; grid-template-columns: var(--sidebar) minmax(260px, 720px) 1fr; align-items: center; gap: 22px; height: var(--topbar); padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(0, 15, 10, .87); backdrop-filter: blur(18px); }
.wordmark { display: flex; align-items: center; gap: 10px; font: 750 15px ui-monospace, monospace; }
.wordmark-prompt { color: var(--green); }
.global-search { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.2); }
.global-search:focus-within { border-color: var(--green); }
.global-search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.global-search kbd { color: var(--faint); font: 11px ui-monospace, monospace; }
.search-glyph { width: 12px; height: 12px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; }
.search-glyph::after { content: ""; position: absolute; width: 5px; border-top: 1.5px solid var(--muted); transform: rotate(45deg); right: -4px; bottom: -2px; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.sync-pill { min-width: 92px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 700 11px ui-monospace, monospace; }
.sync-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px currentColor; }
.sync-pill[data-state="online"] span { background: var(--green); }.sync-pill[data-state="offline"] span, .sync-pill[data-state="error"] span { background: var(--red); }
.menu-button { display: none; }
.menu-button span { width: 17px; border-top: 1.5px solid currentColor; }

.sidebar { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); padding: 18px 13px 16px; border-right: 1px solid var(--line); background: rgba(0, 13, 9, .82); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 40px; padding: 0 10px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; text-align: left; border-radius: 9px; color: var(--muted); background: transparent; }
.nav-item strong { font-size: 13px; }.nav-item em { min-width: 25px; text-align: right; color: var(--faint); font: 11px ui-monospace, monospace; font-style: normal; }
.nav-item:hover { color: var(--text); background: var(--panel); }.nav-item.is-active { color: var(--text); background: var(--panel-2); box-shadow: inset 2px 0 var(--green); }
.nav-item.is-active > span { color: var(--green); }
.sidebar-section { display: grid; gap: 9px; }.sidebar-heading { padding: 0 8px; display: flex; align-items: center; justify-content: space-between; color: var(--faint); font: 750 10px ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.category-list { display: grid; gap: 3px; }.category-button { min-height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 9px; border-radius: 8px; color: var(--muted); background: transparent; text-align: left; }.category-button:hover { background: var(--panel); color: var(--text); }.category-dot { width: 7px; height: 7px; border-radius: 50%; }
.export-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.export-row a { padding: 8px 3px; text-align: center; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font: 700 11px ui-monospace, monospace; }.export-row a:hover { color: var(--green); border-color: var(--line-strong); }
.install-button { width: 100%; min-height: 38px; font-size: 12px; }.sidebar-footer { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--faint); font: 11px ui-monospace, monospace; }.sidebar-footer button { width: max-content; padding: 0; color: var(--muted); background: none; }

.main-content { min-width: 0; padding: clamp(24px, 4vw, 64px) clamp(18px, 5vw, 76px) 90px; }
.view { width: min(100%, 1380px); margin: 0 auto; animation: enter .2s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.view-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.view-header h1 { max-width: 800px; }.home-header h1 { color: var(--text); }
.capture-card { position: relative; padding: 1px; margin-bottom: clamp(38px, 5vw, 68px); border-radius: 18px; background: linear-gradient(110deg, rgba(124,240,143,.7), rgba(94,234,212,.2), var(--line)); box-shadow: 0 20px 70px rgba(0,0,0,.27); }
.capture-main { padding: clamp(16px, 2.6vw, 28px); border-radius: 17px 17px 12px 12px; background: linear-gradient(140deg, #0a251b, #061a14); }
.capture-main textarea { width: 100%; min-height: 76px; padding: 0; border: 0; color: var(--text); background: transparent; box-shadow: none; font-size: clamp(18px, 2.5vw, 27px); line-height: 1.4; }
.capture-main textarea::placeholder { color: #709384; }
.capture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 17px; border-top: 1px solid var(--line); }
.capture-types, .capture-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.capture-type { min-height: 34px; padding: 0 11px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; }.capture-type:hover { color: var(--text); background: var(--panel-3); }.capture-type.is-active { color: #00120d; background: var(--green); }
.attachment-button { min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 750; }.attachment-button:hover { border-color: var(--line-strong); color: var(--text); }.attachment-button input, .drop-zone input { display: none; }
.capture-hint { margin: 0; padding: 9px 20px 10px; border-radius: 0 0 17px 17px; color: var(--faint); background: #03130e; font: 11px ui-monospace, monospace; }

.content-section { margin-top: clamp(34px, 5vw, 66px); }.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.section-heading .eyebrow { margin-bottom: 5px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note-card { position: relative; min-width: 0; min-height: 190px; padding: 18px; display: flex; flex-direction: column; gap: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: linear-gradient(145deg, rgba(11,37,29,.95), rgba(5,25,18,.92)); text-align: left; overflow: hidden; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.note-card:hover { border-color: var(--line-strong); background: linear-gradient(145deg, #103429, #071e16); transform: translateY(-2px); }.note-card[data-lifecycle="soon"] { border-top-color: var(--amber); }.note-card[data-type="reminder"] { border-left-color: var(--cyan); }
.card-top, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.card-kind { color: var(--green); font: 750 10px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }.card-date { color: var(--faint); font: 10px ui-monospace, monospace; }.note-card h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; }.card-preview { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }.card-footer { margin-top: auto; color: var(--faint); font: 10px ui-monospace, monospace; }.category-tag { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.card-checks { display: grid; gap: 6px; }.card-check { display: flex; gap: 7px; color: var(--muted); font-size: 12px; }.card-check i { width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid var(--line-strong); border-radius: 3px; }.card-check.is-done { opacity: .48; text-decoration: line-through; }.card-check.is-done i { background: var(--green); box-shadow: inset 0 0 0 3px var(--panel); }
.someday-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 31%); gap: 14px; padding: 3px 2px 15px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: var(--line-strong) transparent; }.someday-shelf .note-card { scroll-snap-align: start; min-height: 230px; }.someday-shelf .note-card:nth-child(n+4) { opacity: .72; }
.collection-header { align-items: end; }.collection-actions { display: flex; gap: 8px; }.collection-actions select { min-height: 38px; padding: 0 30px 0 11px; }.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }.filter-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }.filter-chip.is-active { color: #00120d; border-color: var(--green); background: var(--green); }
.empty-state { min-height: 320px; display: grid; place-content: center; text-align: center; color: var(--muted); }.empty-state > span { color: var(--green); font-size: 42px; }.empty-state p { margin: 7px 0; }

/* Inspector */
.inspector { position: fixed; z-index: 70; top: var(--topbar); right: 0; bottom: 0; width: min(540px, 100vw); border-left: 1px solid var(--line-strong); background: rgba(4, 22, 16, .98); box-shadow: -30px 0 90px rgba(0,0,0,.48); overflow-y: auto; animation: slide-in .18s ease-out; }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.inspector-topbar { position: sticky; top: 0; z-index: 2; min-height: 68px; padding: 13px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(4,22,16,.9); backdrop-filter: blur(15px); }.inspector-topbar .eyebrow { margin-bottom: 3px; }
.note-editor { display: grid; gap: 21px; padding: 22px; }.note-editor input, .note-editor select { min-height: 43px; padding: 9px 11px; }.note-editor textarea { width: 100%; min-height: 220px; padding: 14px; line-height: 1.55; }.optional-title em { color: var(--faint); font-weight: 500; }.editor-details { border: 1px solid var(--line); border-radius: 11px; }.editor-details summary { padding: 13px 14px; color: var(--muted); font-size: 13px; font-weight: 750; }.editor-details summary span { float: right; color: var(--faint); font-weight: 500; }.editor-detail-grid { padding: 0 14px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.toggle-field { grid-template-columns: 18px 1fr; align-items: center; }.toggle-field input { min-height: 0; accent-color: var(--green); }
.checklist-editor { display: grid; gap: 10px; }.rough-list-import { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }.rough-list-import textarea { min-height: 74px; padding: 10px; }.rough-list-import button { min-height: 42px; }.checklist-row { display: grid; grid-template-columns: 28px 48px minmax(0,1fr) 88px 32px; gap: 6px; align-items: center; margin-left: calc(var(--task-depth, 0) * 18px); transition: margin .12s ease; }.checklist-row input[type="checkbox"] { accent-color: var(--green); }.checklist-row input { min-height: 40px; }.task-indent { display: flex; }.task-indent button { width: 24px; height: 32px; color: var(--muted); background: rgba(14,49,38,.65); border: 1px solid var(--line); }.task-indent button:first-child { border-radius: 7px 0 0 7px; }.task-indent button:last-child { border-radius: 0 7px 7px 0; }.remove-check { height: 34px; border-radius: 7px; color: var(--faint); background: transparent; }.remove-check:hover { color: var(--red); background: rgba(255,125,131,.08); }.add-check { width: max-content; }
.drop-zone { min-height: 86px; display: grid !important; place-content: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); background: rgba(0,0,0,.12); }.drop-zone:hover { border-color: var(--green); }.drop-zone small { margin-top: 4px; color: var(--faint); }.editor-attachments { display: grid; gap: 6px; }.attachment-row { padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }.attachment-row:hover { color: var(--green); }.editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }.save-state { margin-left: auto; color: var(--faint); font: 11px ui-monospace, monospace; }

/* Workbench and dialogs */
.llm-layout { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }.workbench-panel { min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }.workbench-panel textarea { width: 100%; min-height: 250px; padding: 12px; font: 11px/1.5 ui-monospace, monospace; }.step-number { color: var(--green); font: 750 11px ui-monospace, monospace; }.llm-selection { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }.llm-preview { margin-top: 18px; display: grid; gap: 10px; }.llm-change { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }.llm-change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }.llm-change pre { margin: 0; padding: 12px; overflow: auto; border-radius: 8px; color: var(--muted); background: var(--bg-deep); font: 11px/1.5 ui-monospace, monospace; white-space: pre-wrap; }.llm-preview-actions { display: flex; justify-content: flex-end; gap: 8px; }
.app-dialog { width: min(92vw, 520px); padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--text); background: var(--panel); box-shadow: var(--shadow); }.app-dialog::backdrop { background: rgba(0,8,5,.72); backdrop-filter: blur(4px); }.app-dialog form { padding: 22px; display: grid; gap: 17px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }.conflict-dialog { width: min(94vw, 880px); }.conflict-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.conflict-copy { padding: 13px; border: 1px solid var(--line); border-radius: 10px; }.conflict-copy pre { max-height: 330px; overflow: auto; color: var(--muted); white-space: pre-wrap; }
.settings-dialog { width: min(94vw, 720px); max-height: 90vh; }.settings-dialog form { gap: 13px; }.settings-block { padding: 15px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.1); }.settings-block > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.settings-block code { padding: 9px; overflow-x: auto; border-radius: 7px; color: var(--cyan); background: var(--bg-deep); font: 10px/1.4 ui-monospace, monospace; white-space: nowrap; }.settings-actions { display: flex; flex-wrap: wrap; gap: 7px; }.settings-actions .secondary-button { min-height: 38px; font-size: 12px; }.copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }.copy-field .tiny-button { min-width: 48px; border: 1px solid var(--line); border-radius: 8px; }
.setup-guide { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.setup-guide summary { color: var(--cyan); font-weight: 750; }.setup-guide ol { margin: 10px 0; padding-left: 22px; }.setup-guide li + li { margin-top: 6px; }.setup-guide a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }.setup-guide p { margin: 9px 0 0; color: var(--amber); }
.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }.toast { max-width: 360px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--panel-3); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease-out; }.toast.is-error { border-color: rgba(255,125,131,.6); }.toast.is-success { border-color: rgba(124,240,143,.55); } @keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  :root { --sidebar: 218px; }
  .topbar { grid-template-columns: var(--sidebar) minmax(230px, 1fr) auto; }
  .main-content { padding-inline: 30px; }
  .note-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .someday-shelf { grid-auto-columns: minmax(270px, 48%); }
  .llm-layout { grid-template-columns: 1fr; }.workbench-panel textarea { min-height: 170px; }
}

@media (max-width: 760px) {
  :root { --topbar: 60px; }
  .auth-layout { grid-template-columns: 1fr; }.auth-brand { min-height: auto; padding: 50px 24px 32px; border-right: 0; }.auth-brand h1 { font-size: clamp(43px, 13vw, 72px); }.auth-brand .brand-mark { margin-bottom: 23px; }.auth-panel { padding: 10px 18px 50px; }.auth-form { padding: 24px 19px; }
  .app-shell { display: block; padding-top: var(--topbar); }
  .topbar { position: fixed; width: 100%; height: var(--topbar); grid-template-columns: 40px 1fr auto; padding: 0 10px; gap: 9px; }.menu-button { display: grid; align-content: center; gap: 4px; }.wordmark { font-size: 13px; }.global-search { position: fixed; top: calc(var(--topbar) + 8px); left: 12px; right: 12px; z-index: 35; background: rgba(4,27,19,.96); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .15s ease; }.global-search.is-open { transform: none; opacity: 1; pointer-events: auto; }.topbar-actions .sync-pill { min-width: 0; width: 9px; overflow: hidden; }.topbar-actions .icon-button { display: none; }
  .sidebar { position: fixed; z-index: 80; top: var(--topbar); bottom: 0; left: 0; width: min(84vw, 300px); height: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }.sidebar.is-open { transform: none; }.sidebar.is-open::after { content: ""; position: fixed; inset: 0 0 0 100%; width: 100vw; background: rgba(0,0,0,.45); }
  .main-content { padding: 25px 14px 100px; }.view-header { align-items: flex-start; }.view-header h1 { font-size: 34px; }.home-header .secondary-button { display: none; }.capture-card { margin-bottom: 42px; }.capture-main { padding: 17px 14px; }.capture-main textarea { font-size: 18px; min-height: 88px; }.capture-toolbar { align-items: flex-end; }.capture-types { display: grid; grid-template-columns: repeat(2,auto); }.attachment-label { display: none; }.capture-hint { padding-inline: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .note-grid, .priority-grid { grid-template-columns: 1fr; }.note-card { min-height: 168px; }.someday-shelf { grid-auto-columns: 84%; }.someday-shelf .note-card:nth-child(n+4) { opacity: .62; }.section-heading { align-items: flex-end; }.section-heading .text-button { font-size: 11px; }.collection-header { display: grid; }.collection-actions { width: 100%; }.collection-actions select { flex: 1; min-width: 0; }
  .inspector { top: 0; z-index: 110; width: 100%; }.note-editor { padding: 18px 14px 90px; }.editor-detail-grid { grid-template-columns: 1fr; }.rough-list-import { grid-template-columns: 1fr; }.checklist-row { grid-template-columns: 28px 44px minmax(0,1fr) 32px; margin-left: calc(var(--task-depth, 0) * 10px); }.checklist-row .task-time { grid-column: 3 / 5; }.editor-actions { position: sticky; bottom: 0; padding: 11px; margin: 0 -14px -90px; background: rgba(4,22,16,.96); border-top: 1px solid var(--line); }
  .mobile-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; min-height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); align-items: center; border-top: 1px solid var(--line); background: rgba(0,14,9,.94); backdrop-filter: blur(18px); }.mobile-nav button { height: 48px; display: grid; place-content: center; gap: 2px; color: var(--faint); background: transparent; font-size: 9px; font-weight: 750; }.mobile-nav button span { font-size: 17px; }.mobile-nav button.is-active { color: var(--green); }.mobile-nav .mobile-capture { width: 48px; height: 48px; justify-self: center; border-radius: 15px; color: #00120d; background: var(--green); font-size: 27px; }
  .llm-change-grid, .conflict-columns { grid-template-columns: 1fr; }.toast-region { left: 12px; right: 12px; bottom: 78px; }.toast { max-width: none; }
}

@media (max-width: 390px) {
  .wordmark span:last-child { max-width: 128px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .capture-type { padding-inline: 8px; }.capture-actions { gap: 4px; }.primary-button.compact { padding-inline: 13px; }
  .section-heading h2 { font-size: 20px; }.section-copy { font-size: 13px; }.someday-shelf { grid-auto-columns: 90%; }
}

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