:root {
  color-scheme: light dark;
  --canvas: #ece4d4;
  --paper: #fffdf6;
  --paper-soft: #f7f1e4;
  --ink: #18394a;
  --muted: #66767b;
  --faint: #8b938f;
  --rule: #d8ceba;
  --route: #1ea8bb;
  --coral: #d9523e;
  --mustard: #d2a32e;
  --leaf: #6c913d;
  --shadow: 0 18px 50px rgb(50 42 29 / 10%);
  --ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --reading: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { width: 100%; min-height: 100%; margin: 0; }

body {
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--route) 70%, white);
  outline-offset: 2px;
}

button[hidden], [hidden] { display: none !important; }

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell { height: 100dvh; min-height: 580px; }

.topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 230px minmax(240px, 520px) auto;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--paper-soft) 94%, transparent);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
}

.brand {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 0 4px;
  text-align: left;
}

.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: 21px; letter-spacing: -0.04em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.brand-route {
  width: 26px;
  height: 26px;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  position: relative;
}

.brand-route::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  top: 8px;
  left: 8px;
}

.top-search, .large-search {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0 12px;
}

.top-search svg, .large-search svg { width: 18px; color: var(--muted); flex: 0 0 auto; }
.top-search input, .large-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.top-search kbd { font: 10px var(--mono); color: var(--faint); border: 1px solid var(--rule); border-radius: 5px; padding: 3px 5px; }

.compose-group { justify-self: end; display: flex; }
.compose-button, .compose-menu-button {
  min-height: 44px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
}
.compose-button { display: flex; align-items: center; gap: 8px; padding: 0 15px; border-radius: 12px 0 0 12px; font-weight: 700; }
.compose-button svg { width: 18px; }
.compose-menu-button { width: 44px; display: grid; place-items: center; border-left: 1px solid rgb(255 255 255 / 20%); border-radius: 0 12px 12px 0; }
.compose-menu-button svg { width: 16px; }

.workspace {
  height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: 230px 340px minmax(420px, 1fr);
}

.navigation-panel, .notes-panel, .editor-panel { min-width: 0; min-height: 0; }

.navigation-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 12px 12px;
  background: var(--paper-soft);
  border-right: 1px solid var(--rule);
  overflow: auto;
}

.section-label, .eyebrow {
  margin: 0;
  color: var(--muted);
  font: 650 10px/1.2 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-label { padding: 0 10px 7px; }
.primary-nav, .utility-nav { display: grid; gap: 2px; }
.nav-row, .folder-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}
.nav-row svg { width: 18px; }
.nav-row:hover, .folder-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.nav-row.is-active, .folder-row.is-active { background: color-mix(in srgb, var(--route) 13%, transparent); color: var(--ink); font-weight: 650; }
.count { color: var(--faint); font: 11px var(--mono); }

.nav-section { margin-top: 25px; }
.section-heading { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.section-heading .section-label { padding-bottom: 0; }
.small-icon-button, .icon-button, .back-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.small-icon-button { width: 34px; height: 34px; }
.small-icon-button:hover, .icon-button:hover, .back-button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.folder-row { grid-template-columns: 16px 1fr auto; }
.folder-tab { width: 10px; height: 14px; display: block; border-radius: 2px 2px 4px 4px; background: var(--folder-color); opacity: .82; }
.nav-empty { margin: 6px 10px; color: var(--faint); font: 12px/1.5 var(--reading); }
.utility-nav { margin-top: auto; padding-top: 28px; }
.navigation-foot { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--faint); font-size: 11px; }
.local-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.local-dot[data-state="syncing"], .sync-indicator[data-state="syncing"] { background: var(--mustard); }
.local-dot[data-state="error"], .sync-indicator[data-state="error"] { background: var(--coral); }
.local-dot[data-state="offline"], .local-dot[data-state="off"], .sync-indicator[data-state="offline"], .sync-indicator[data-state="off"] { background: var(--faint); }
.sync-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

.notes-panel {
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--canvas) 68%, var(--paper));
  border-right: 1px solid var(--rule);
  overflow: hidden;
}

.panel-heading {
  min-height: 78px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--rule);
}
.panel-heading h1 { margin: 3px 0 0; font: 750 25px/1.05 var(--ui); letter-spacing: -.04em; }
.list-total { color: var(--muted); font: 11px var(--mono); white-space: nowrap; }

.capture-strip {
  min-height: 66px;
  margin: 12px 12px 4px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--route) 42%, var(--rule));
  border-radius: 12px;
  background: var(--paper);
  padding: 9px 12px;
  text-align: left;
  box-shadow: 0 4px 14px rgb(50 42 29 / 4%);
}
.capture-strip > span:nth-child(2) { display: grid; gap: 2px; }
.capture-strip strong { font-size: 14px; }
.capture-strip small { color: var(--muted); font: 12px var(--reading); }
.capture-strip > span:last-child { color: var(--faint); font: 10px var(--mono); }
.capture-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--route); color: white; font-size: 22px; font-weight: 300; }

.note-list { min-height: 0; padding: 8px 8px 30px; overflow: auto; }
.note-card {
  width: 100%;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  padding: 13px 12px;
  text-align: left;
}
.note-card + .note-card { border-top-color: color-mix(in srgb, var(--rule) 75%, transparent); border-radius: 0; }
.note-card:hover { background: color-mix(in srgb, var(--paper) 62%, transparent); }
.note-card.is-active { background: var(--paper); border-color: var(--rule); border-radius: 11px; box-shadow: 0 7px 22px rgb(50 42 29 / 6%); }
.note-card-top { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.note-card > strong { overflow: hidden; color: var(--ink); font: 700 16px/1.2 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.note-excerpt { color: var(--muted); font: 13px/1.35 var(--reading); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.note-tags { color: var(--faint); font: 10px var(--mono); }
.pin-mark { color: var(--mustard); font-size: 9px; margin-right: 7px; vertical-align: 2px; }

.list-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 30px; color: var(--muted); text-align: center; }
.list-empty strong { color: var(--ink); }
.list-empty p { max-width: 220px; margin: 0; font: 14px/1.45 var(--reading); }
.empty-route { width: 42px; height: 24px; display: block; border-top: 2px dashed var(--rule); position: relative; }
.empty-route::after { content: ""; position: absolute; width: 8px; height: 8px; right: -2px; top: -5px; border-radius: 50%; background: var(--route); }

.editor-panel { background: var(--paper); overflow: hidden; }
.empty-editor { height: 100%; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 32px; text-align: center; }
.empty-editor h2 { margin: 0; font: 700 24px var(--ui); letter-spacing: -.035em; }
.empty-editor p { margin: 0 0 9px; color: var(--muted); font: 15px var(--reading); }
.secondary-button, .primary-action { min-height: 44px; border-radius: 10px; padding: 0 16px; font-weight: 700; }
.secondary-button { border: 1px solid var(--rule); background: var(--paper); }
.primary-action { width: 100%; border: 0; background: var(--ink); color: var(--paper); }

.editor { height: 100%; display: flex; flex-direction: column; }
.editor-toolbar { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px 0 22px; border-bottom: 1px solid var(--rule); }
.note-kind-badge { color: var(--muted); font: 650 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.editor-actions { display: flex; align-items: center; gap: 2px; }
.writing-surface { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: hidden; background-color: var(--paper); }
.writing-surface[data-paper="lined"] {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, color-mix(in srgb, var(--route) 13%, transparent) 32px);
  background-position: 0 96px;
}
.note-title-input, .preview-note-title {
  width: min(100% - 56px, 760px);
  flex: 0 0 auto;
  margin: 0 auto;
  padding: 32px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 730 clamp(28px, 3.2vw, 40px)/1.08 var(--ui);
  letter-spacing: -.045em;
}
.note-title-input::placeholder { color: color-mix(in srgb, var(--muted) 50%, transparent); }
#note-content, .markdown-preview {
  width: min(100% - 56px, 760px);
  min-height: 0;
  flex: 1;
  margin: 0 auto;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  font: 18px/1.78 var(--reading);
}
#note-content { padding: 3px 0 80px; }
#note-content::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.markdown-preview { overflow: auto; padding: 3px 0 80px; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { margin: 1.5em 0 .55em; font-family: var(--ui); letter-spacing: -.025em; }
.markdown-preview h1 { font-size: 1.65em; }.markdown-preview h2 { font-size: 1.35em; }.markdown-preview h3 { font-size: 1.1em; }
.markdown-preview p { margin: 0 0 1em; }.markdown-preview ul, .markdown-preview ol { padding-left: 1.4em; }.markdown-preview li { margin: .35em 0; }
.markdown-preview blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid var(--route); color: var(--muted); }
.markdown-preview a { color: color-mix(in srgb, var(--route) 72%, var(--ink)); text-underline-offset: 3px; }
.wiki-link { display: inline; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--route) 70%, transparent); background: transparent; color: color-mix(in srgb, var(--route) 72%, var(--ink)); padding: 0; font: inherit; cursor: pointer; }
.markdown-preview code { font: .82em var(--mono); background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 5px; padding: .12em .3em; }
.markdown-preview pre { overflow: auto; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); }.markdown-preview pre code { background: none; padding: 0; }
.task-item { list-style: none; margin-left: -1.3em !important; }.task-box { width: 17px; height: 17px; display: inline-grid; place-items: center; margin-right: 8px; border: 1px solid var(--muted); border-radius: 4px; font: 10px var(--ui); }.task-box.is-checked { color: white; border-color: var(--leaf); background: var(--leaf); }
.editor-footer { min-height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-top: 1px solid var(--rule); color: var(--faint); font: 10px var(--mono); }

.planner { min-height: 0; overflow: auto; padding: 12px 16px 50px; }
.planner-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.month-button { min-width: 180px; min-height: 44px; border: 0; background: transparent; font-weight: 720; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays span { padding: 7px 0; color: var(--faint); font: 9px var(--mono); text-align: center; text-transform: uppercase; }
.calendar-grid { overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.calendar-day { min-width: 44px; aspect-ratio: 1; display: grid; place-content: center; gap: 2px; border: 0; border-right: 1px solid color-mix(in srgb, var(--rule) 65%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--rule) 65%, transparent); background: transparent; position: relative; font-size: 12px; }
.calendar-day.is-outside { color: var(--faint); opacity: .45; }.calendar-day.is-selected { color: var(--paper); background: var(--ink); }.calendar-day.is-today:not(.is-selected) span { color: var(--coral); font-weight: 800; }
.calendar-day i { min-width: 14px; height: 14px; display: grid; place-items: center; border-radius: 7px; color: var(--ink); background: var(--mustard); font: 8px var(--mono); }
.day-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 28px 2px 12px; border-bottom: 1px solid var(--rule); }.day-heading h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.03em; }
.day-actions { display: flex; align-items: center; gap: 2px; }
.text-action { min-height: 44px; border: 0; background: transparent; color: color-mix(in srgb, var(--route) 72%, var(--ink)); font-size: 12px; font-weight: 700; }
.calendar-events, .day-notes { padding: 18px 2px 0; }.calendar-events h3, .day-notes h3 { margin: 0 0 10px; color: var(--muted); font: 650 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.calendar-event, .day-note { width: 100%; min-height: 50px; display: grid; grid-template-columns: 66px 1fr; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); padding: 5px 2px; text-align: left; text-decoration: none; }.calendar-event span, .day-note span { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }.calendar-event strong, .day-note strong { font-size: 13px; }
.planner-empty { color: var(--muted); font: 14px var(--reading); }

.mobile-view-picker, .mobile-tabbar, .mobile-compose, .mobile-only { display: none; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgb(16 24 27 / 35%); backdrop-filter: blur(4px); }
.sheet { width: min(430px, calc(100vw - 28px)); max-height: min(720px, calc(100dvh - 28px)); margin: auto; border: 1px solid var(--rule); border-radius: 18px; background: var(--paper); padding: 0; box-shadow: var(--shadow); }
.sheet form { display: grid; gap: 18px; padding: 22px; }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.sheet h2 { margin: 3px 0 0; font-size: 23px; letter-spacing: -.035em; }
.sheet label { display: grid; gap: 7px; }.sheet label > span:first-child, .sheet legend { color: var(--muted); font: 650 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.sheet input[type="text"], .sheet select, .sheet textarea { width: 100%; min-height: 46px; border: 1px solid var(--rule); border-radius: 9px; background: var(--paper-soft); color: var(--ink); padding: 0 12px; }
.sheet textarea { min-height: 150px; resize: vertical; padding: 11px 12px; font: 15px/1.55 var(--reading); }
.sheet fieldset { margin: 0; padding: 0; border: 0; }.sheet legend { margin-bottom: 7px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper-soft); }.segmented label { position: relative; }.segmented input { position: absolute; opacity: 0; pointer-events: none; }.segmented span { min-height: 38px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); font-size: 13px; }.segmented input:checked + span { color: var(--ink); background: var(--paper); box-shadow: 0 1px 5px rgb(30 30 25 / 10%); font-weight: 700; }
.switch-row { min-height: 56px; grid-template-columns: 1fr auto !important; align-items: center; }.switch-row > span { display: grid; gap: 3px; }.switch-row strong { font-size: 14px; }.switch-row small { color: var(--muted); font: 12px var(--reading); }.switch-row input { width: 48px; height: 28px; accent-color: var(--leaf); }
.danger-text { min-height: 44px; border: 0; border-top: 1px solid var(--rule); background: transparent; color: var(--coral); font-weight: 700; }
.sheet-copy { margin: -4px 0 0; color: var(--muted); font: 14px/1.45 var(--reading); }.field-help { margin: -9px 0 0; color: var(--faint); font: 11px/1.45 var(--ui); }
.choice-list { display: grid; gap: 6px; }.choice-list button { min-height: 68px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; padding: 8px; text-align: left; }.choice-list button:hover { border-color: var(--rule); background: var(--paper-soft); }.choice-list button > span:last-child { display: grid; gap: 3px; }.choice-list small { color: var(--muted); font: 13px var(--reading); }.choice-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--paper); background: var(--ink); font: 700 14px var(--mono); }

.settings-sheet { width: min(520px, calc(100vw - 28px)); }
.settings-section { display: grid; gap: 13px; padding-top: 18px; border-top: 1px solid var(--rule); }
.settings-section:first-of-type { padding-top: 0; border-top: 0; }
.sync-state { min-height: 42px; display: grid; grid-template-columns: 9px 1fr; align-items: center; column-gap: 9px; }
.sync-state strong { font-size: 14px; }.sync-state small { grid-column: 2; color: var(--muted); font: 12px/1.4 var(--reading); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }.button-row > * { flex: 1 1 auto; }
.primary-inline { min-height: 44px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); padding: 0 16px; font-weight: 700; }
.template-list, .attachment-list, .backlink-list { display: grid; gap: 2px; }
.template-list button, .backlink-list button, .attachment-row > button:first-child { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); padding: 5px 2px; text-align: left; }
.template-list button > span:first-child, .attachment-row button > span:first-child { display: grid; gap: 2px; }.template-list small, .attachment-row small { color: var(--muted); font: 11px var(--reading); }
.attachment-picker { min-width: 44px; min-height: 34px; display: grid !important; place-items: center; border-radius: 8px; color: color-mix(in srgb, var(--route) 72%, var(--ink)); font-size: 12px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; }.attachment-picker input { display: none; }
.attachment-row { display: grid; grid-template-columns: 1fr 44px; align-items: center; }.remove-attachment { width: 44px; height: 44px; border: 0; background: transparent; color: var(--coral); font-size: 20px; }
.backlink-list button { justify-content: flex-start; color: color-mix(in srgb, var(--route) 72%, var(--ink)); font-weight: 650; }
.diagnostics dl, .diagnostics { margin: 0; }.diagnostics dl { display: grid; gap: 5px; }.diagnostics dl > div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 11px var(--mono); }.diagnostics dt, .diagnostics dd { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; min-height: 46px; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 16px; border-radius: 12px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-size: 13px; transform: translate(-50%, calc(100% + 70px)); opacity: 0; transition: transform 180ms ease, opacity 180ms ease; }.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }.toast button { min-height: 36px; border: 0; background: transparent; color: color-mix(in srgb, var(--route) 78%, white); font-weight: 800; }

@media (prefers-color-scheme: dark) {
  :root { --canvas: #121412; --paper: #1d201d; --paper-soft: #181b18; --ink: #e8eee9; --muted: #a0aaa4; --faint: #77827c; --rule: #333a35; --route: #55bfd0; --coral: #ef7966; --mustard: #e2bd57; --leaf: #91b664; --shadow: 0 20px 55px rgb(0 0 0 / 28%); }
}

@media (max-width: 1050px) and (min-width: 780px) {
  .topbar { grid-template-columns: 200px minmax(220px, 1fr) auto; }.workspace { grid-template-columns: 200px 310px minmax(360px, 1fr); }.brand small { display: none; }
}

@media (max-width: 779px) {
  body { overflow: hidden; background: var(--paper); }
  .app-shell { min-height: 100dvh; }
  .topbar { height: calc(56px + env(safe-area-inset-top)); grid-template-columns: 1fr auto; padding: env(safe-area-inset-top) 14px 0; background: var(--paper); }.desktop-search, .compose-group { display: none; }.brand small { display: none; }
  .workspace { height: calc(100dvh - 56px - env(safe-area-inset-top)); display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .workspace > .navigation-panel, .workspace > .notes-panel, .workspace > .editor-panel { grid-area: 1 / 1; border: 0; }
  .navigation-panel, .editor-panel { display: none; }.notes-panel { display: flex; }
  body[data-mobile-screen="folders"] .navigation-panel { display: flex; }.body[data-mobile-screen="folders"] .notes-panel { display: none; }
  body[data-mobile-screen="folders"] .notes-panel { display: none; }
  body[data-mobile-screen="folders"] .navigation-panel .primary-nav, body[data-mobile-screen="folders"] .navigation-panel .utility-nav, body[data-mobile-screen="folders"] .navigation-foot { display: none; }
  body[data-mobile-screen="folders"] .navigation-panel .nav-section { margin-top: 6px; }
  body[data-mobile-screen="editor"] .editor-panel { display: block; position: fixed; inset: 0; z-index: 30; }
  body[data-mobile-screen="editor"] .mobile-tabbar, body[data-mobile-screen="editor"] .mobile-compose, body[data-mobile-screen="editor"] .topbar { display: none; }
  .panel-heading { min-height: 70px; padding: 15px 16px 11px; }.panel-heading h1 { font-size: 27px; }
  .mobile-view-picker { display: flex; gap: 4px; overflow-x: auto; padding: 9px 12px 1px; scrollbar-width: none; }.mobile-view-picker button { min-height: 40px; flex: 0 0 auto; border: 0; border-radius: 20px; background: transparent; color: var(--muted); padding: 0 13px; font-size: 13px; }.mobile-view-picker button.is-active { color: var(--ink); background: color-mix(in srgb, var(--route) 14%, transparent); font-weight: 700; }
  body[data-mobile-screen="planner"] .mobile-view-picker, body[data-mobile-screen="search"] .mobile-view-picker { display: none; }
  .capture-strip { margin-top: 9px; }.note-list { padding-bottom: 100px; }.note-card { min-height: 108px; }
  .search-page { display: block; padding: 12px 12px 0; }.large-search { background: var(--paper); }
  .planner { padding: 8px 12px 100px; }.calendar-day { font-size: 11px; }.calendar-day i { min-width: 12px; height: 12px; font-size: 7px; }.day-heading { align-items: flex-start; flex-direction: column; }.day-actions { width: 100%; justify-content: space-between; }.text-action { margin-left: -10px; }
  .mobile-tabbar { position: fixed; inset: auto 0 0; z-index: 20; height: calc(66px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px 7px env(safe-area-inset-bottom); border-top: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(18px); }.mobile-tabbar button { min-height: 52px; display: grid; place-content: center; justify-items: center; gap: 2px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }.mobile-tabbar button svg { width: 22px; height: 22px; }.mobile-tabbar button.is-active { color: var(--ink); font-weight: 700; }
  .mobile-compose { position: fixed; right: 18px; bottom: calc(79px + env(safe-area-inset-bottom)); z-index: 20; width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgb(21 35 39 / 25%); }.mobile-compose svg { width: 24px; height: 24px; }
  .mobile-only { display: grid; }.editor-toolbar { padding: 0 8px; }.note-kind-badge { margin-right: auto; margin-left: 4px; }
  .mobile-settings { width: 44px; height: 44px; place-items: center; }
  .note-title-input, .preview-note-title, #note-content, .markdown-preview { width: calc(100% - 40px); }.note-title-input, .preview-note-title { padding-top: 26px; font-size: 31px; }.editor-footer { padding-bottom: env(safe-area-inset-bottom); min-height: calc(40px + env(safe-area-inset-bottom)); }
  .sheet { margin: auto auto 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }.sheet form { padding: 20px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 28px); }
}

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

@media (prefers-contrast: more) {
  :root { --rule: color-mix(in srgb, currentColor 38%, transparent); }.nav-row.is-active, .folder-row.is-active, .note-card.is-active { outline: 2px solid currentColor; }
}
