/* Workspace colors follow the 18 Nov 2026 notes mockup.
   Dark canvas #141414, list #171717, editor card #1c1c1c, accent #00c0e8.
   Token roles and the light counterpart: docs/web-design-system.md.
   The typeface is self-hosted Geist. Faces load from fonts.css. */
:root {
  color-scheme: light dark;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-serif: "Geist Serif", ui-serif, "New York", Georgia, serif;
  --font-pixel: "Geist Pixel", var(--font-mono);
  --font-pixel: "Geist Pixel", var(--font-sans);
  --font-text: var(--font-sans);
  --font-display: var(--font-sans);
  --font-rounded: var(--font-sans);

  --text-large-title-size: calc(34 / 16 * 1rem);
  --text-large-title-line: calc(41 / 16 * 1rem);
  --text-large-title-tracking: calc(-32 / 1000 * 1em);
  --text-large-title-weight: 400;
  --text-large-title-emphasized-weight: 700;
  --text-title1-size: calc(28 / 16 * 1rem);
  --text-title1-line: calc(34 / 16 * 1rem);
  --text-title1-tracking: calc(-28 / 1000 * 1em);
  --text-title1-weight: 400;
  --text-title1-emphasized-weight: 700;
  --text-title2-size: calc(22 / 16 * 1rem);
  --text-title2-line: calc(28 / 16 * 1rem);
  --text-title2-tracking: calc(-24 / 1000 * 1em);
  --text-title2-weight: 400;
  --text-title2-emphasized-weight: 700;
  --text-title3-size: calc(20 / 16 * 1rem);
  --text-title3-line: calc(25 / 16 * 1rem);
  --text-title3-tracking: calc(-20 / 1000 * 1em);
  --text-title3-weight: 400;
  --text-title3-emphasized-weight: 600;
  --text-headline-size: calc(17 / 16 * 1rem);
  --text-headline-line: calc(22 / 16 * 1rem);
  --text-headline-tracking: 0;
  --text-headline-weight: 600;
  --text-headline-emphasized-weight: 600;
  --text-body-size: calc(17 / 16 * 1rem);
  --text-body-line: calc(22 / 16 * 1rem);
  --text-body-tracking: 0;
  --text-body-weight: 400;
  --text-body-emphasized-weight: 600;
  --text-callout-size: calc(16 / 16 * 1rem);
  --text-callout-line: calc(21 / 16 * 1rem);
  --text-callout-tracking: 0;
  --text-callout-weight: 400;
  --text-callout-emphasized-weight: 600;
  --text-subheadline-size: calc(15 / 16 * 1rem);
  --text-subheadline-line: calc(20 / 16 * 1rem);
  --text-subheadline-tracking: 0;
  --text-subheadline-weight: 400;
  --text-subheadline-emphasized-weight: 600;
  --text-footnote-size: calc(13 / 16 * 1rem);
  --text-footnote-line: calc(18 / 16 * 1rem);
  --text-footnote-tracking: 0;
  --text-footnote-weight: 400;
  --text-footnote-emphasized-weight: 600;
  --text-caption1-size: calc(12 / 16 * 1rem);
  --text-caption1-line: calc(16 / 16 * 1rem);
  --text-caption1-tracking: calc(0 / 1000 * 1em);
  --text-caption1-weight: 400;
  --text-caption1-emphasized-weight: 600;
  --text-caption2-size: calc(11 / 16 * 1rem);
  --text-caption2-line: calc(13 / 16 * 1rem);
  --text-caption2-tracking: calc(6 / 1000 * 1em);
  --text-caption2-weight: 400;
  --text-caption2-emphasized-weight: 600;
  --text-body-leading-ratio: calc(22 / 17);

  --label: #1a1a1a;
  --label: light-dark(#1a1a1a, #ffffff);
  --secondary-label: #6e6e73;
  --secondary-label: light-dark(#6e6e73, #8e8e93);
  --tertiary-label: #8e8e93;
  --tertiary-label: light-dark(#8e8e93, #6e6e73);
  --quaternary-label: #aeaeb2;
  --quaternary-label: light-dark(#aeaeb2, #636366);
  --placeholder-text: #8e8e93;
  --placeholder-text: light-dark(#8e8e93, #6e6e73);
  --separator: #d2d2d4;
  --separator: light-dark(#d2d2d4, #242424);
  --opaque-separator: #c6c6c8;
  --opaque-separator: light-dark(#c6c6c8, #38383a);
  --system-fill: #78788033;
  --system-fill: light-dark(#78788033, #7878805b);
  --secondary-system-fill: #78788028;
  --secondary-system-fill: light-dark(#78788028, #78788051);
  --tertiary-system-fill: #7676801e;
  --tertiary-system-fill: light-dark(#7676801e, #7676803d);
  --quaternary-system-fill: #74748014;
  --quaternary-system-fill: light-dark(#74748014, #7676802d);
  --system-background: #ffffff;
  --system-background: light-dark(#ffffff, #000000);
  --secondary-system-background: #f2f2f7;
  --secondary-system-background: light-dark(#f2f2f7, #1c1c1e);
  --tertiary-system-background: #ffffff;
  --tertiary-system-background: light-dark(#ffffff, #2c2c2e);
  --system-grouped-background: #f2f2f7;
  --system-grouped-background: light-dark(#f2f2f7, #000000);
  --secondary-system-grouped-background: #ffffff;
  --secondary-system-grouped-background: light-dark(#ffffff, #1c1c1e);
  --tertiary-system-grouped-background: #f2f2f7;
  --tertiary-system-grouped-background: light-dark(#f2f2f7, #2c2c2e);
  --system-blue: #007aff;
  --system-blue: light-dark(#007aff, #0a84ff);
  --system-orange: #ff9500;
  --system-orange: light-dark(#ff9500, #ff9f0a);
  --system-purple: #af52de;
  --system-purple: light-dark(#af52de, #bf5af2);
  --system-red: #ff3b30;
  --system-red: light-dark(#ff3b30, #ff453a);
  --system-green: #34c759;
  --system-green: light-dark(#34c759, #30d158);

  --surface-canvas: #ececec;
  --surface-canvas: light-dark(#ececec, #141414);
  --surface-sidebar-solid: #ececec;
  --surface-sidebar-solid: light-dark(#ececec, #141414);
  --surface-list: #f3f3f4;
  --surface-list: light-dark(#f3f3f4, #171717);
  --surface-editor: #ffffff;
  --surface-editor: light-dark(#ffffff, #1c1c1c);
  --surface-elevated: #ffffff;
  --surface-elevated: light-dark(#ffffff, #222222);
  --surface-control: #e4e4e6;
  --surface-control: light-dark(#e4e4e6, #202020);
  --fill-selection: rgba(7, 139, 165, 0.16);
  --fill-selection: light-dark(rgba(7, 139, 165, 0.16), rgba(0, 192, 232, 0.18));
  --highlight: #fff3b0;
  --highlight: light-dark(#fff3b0, #5a4312);
  --highlight-text: #3d3200;
  --highlight-text: light-dark(#3d3200, #ffe7a8);
  --scrim: rgba(0, 0, 0, 0.4);
  --scrim: light-dark(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.55));
  --focus-ring: var(--cyan);
  --focus-ring-halo: rgba(0, 192, 232, 0.2);
  --focus-ring-halo: color-mix(in srgb, var(--focus-ring) 24%, transparent);

  --action-archive: var(--system-purple);
  --action-move: var(--system-blue);
  --action-pin: var(--system-orange);

  --material-filter: blur(20px) saturate(180%);
  --material-sidebar: #ececec;
  --material-sidebar: light-dark(#ececec, #141414);
  --material-toolbar: transparent;
  --material-chrome: rgba(255, 255, 255, 0.94);
  --material-chrome: light-dark(rgba(255, 255, 255, 0.94), rgba(28, 28, 28, 0.94));

  --space-1: calc(4 / 16 * 1rem);
  --space-2: calc(8 / 16 * 1rem);
  --space-3: calc(12 / 16 * 1rem);
  --space-4: calc(16 / 16 * 1rem);
  --space-5: calc(20 / 16 * 1rem);
  --space-6: calc(24 / 16 * 1rem);
  --space-7: calc(28 / 16 * 1rem);
  --space-8: calc(32 / 16 * 1rem);
  --space-10: calc(40 / 16 * 1rem);
  --space-11: calc(44 / 16 * 1rem);
  --space-12: calc(48 / 16 * 1rem);
  --hit-touch: calc(44 / 16 * 1rem);
  --row-pointer: calc(32 / 16 * 1rem);
  --row-pointer-compact: calc(28 / 16 * 1rem);
  --radius-xs: calc(4 / 16 * 1rem);
  --radius-sm: calc(8 / 16 * 1rem);
  --radius-md: calc(10 / 16 * 1rem);
  --radius-lg: calc(12 / 16 * 1rem);
  --radius-xl: calc(16 / 16 * 1rem);
  --radius-2xl: calc(20 / 16 * 1rem);
  --radius-pill: 999px;
  --hairline: 0.5px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  --motion-duration-short: 0.35s;
  --motion-duration: 0.45s;
  --motion-duration-long: 0.5s;
  --motion-fade-duration: 0.2s;
  --ease-standard: cubic-bezier(.2, .8, .2, 1);

  --canvas: var(--surface-canvas);
  --sidebar: var(--material-sidebar);
  --list: var(--surface-list);
  --paper: var(--surface-editor);
  --modal: var(--surface-elevated);
  --ink: var(--label);
  --muted: var(--secondary-label);
  --soft: var(--secondary-label);
  --divider: var(--separator);
  --bg: var(--surface-canvas);
  --panel: var(--surface-sidebar-solid);
  --panel-raised: var(--surface-elevated);
  --panel-hover: var(--surface-control);
  --line: var(--separator);
  --line-soft: var(--separator);
  --text: var(--label);
  --muted-soft: var(--tertiary-label);
  --cyan: #078ba5;
  --cyan: light-dark(#078ba5, #00c0e8);
  --cyan-deep: #056e84;
  --cyan-deep: light-dark(#056e84, #078ba5);
  --danger: var(--system-red);

  font-family: var(--font-text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

:root.is-theme-transitioning::view-transition-old(root),
:root.is-theme-transitioning::view-transition-new(root) {
  animation-duration: var(--motion-fade-duration);
  animation-timing-function: ease;
}
:root.is-theme-transitioning::view-transition-old(root) { animation-name: arbor-theme-fade-out; }
:root.is-theme-transitioning::view-transition-new(root) { animation-name: arbor-theme-fade-in; }
@keyframes arbor-theme-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes arbor-theme-fade-in { from { opacity: 0; } to { opacity: 1; } }

:root.is-note-list-transitioning::view-transition-old(arbor-note-list),
:root.is-note-list-transitioning::view-transition-new(arbor-note-list) {
  animation-duration: var(--motion-fade-duration);
  animation-timing-function: ease;
}
:root.is-note-list-transitioning::view-transition-old(arbor-note-list) { animation-name: arbor-list-fade-out; }
:root.is-note-list-transitioning::view-transition-new(arbor-note-list) { animation-name: arbor-list-fade-in; }
@keyframes arbor-list-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes arbor-list-fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  :root.is-theme-transitioning::view-transition-group(root),
  :root.is-theme-transitioning::view-transition-old(root),
  :root.is-theme-transitioning::view-transition-new(root),
  :root.is-note-list-transitioning::view-transition-group(arbor-note-list),
  :root.is-note-list-transitioning::view-transition-old(arbor-note-list),
  :root.is-note-list-transitioning::view-transition-new(arbor-note-list) {
    animation-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
  --secondary-label: #3a3a3c;
  --secondary-label: light-dark(#3a3a3c, #d1d1d6);
  --tertiary-label: #636366;
  --tertiary-label: light-dark(#636366, #aeaeb2);
  --quaternary-label: #3c3c438c;
  --quaternary-label: light-dark(#3c3c438c, #ebebf566);
  --placeholder-text: #3c3c43b2;
  --placeholder-text: light-dark(#3c3c43b2, #ebebf58c);
  --separator: #3c3c435e;
  --separator: light-dark(#3c3c435e, #545458ad);
  --system-fill: #78788047;
  --system-fill: light-dark(#78788047, #78788070);
  --secondary-system-fill: #7878803d;
  --secondary-system-fill: light-dark(#7878803d, #78788066);
  --tertiary-system-fill: #76768033;
  --tertiary-system-fill: light-dark(#76768033, #76768051);
  --quaternary-system-fill: #74748028;
  --quaternary-system-fill: light-dark(#74748028, #76768042);
  --secondary-system-background: #ebebf0;
  --secondary-system-background: light-dark(#ebebf0, #242426);
  --tertiary-system-background: #ebebf0;
  --tertiary-system-background: light-dark(#ebebf0, #363638);
  --system-grouped-background: #ebebf0;
  --system-grouped-background: light-dark(#ebebf0, #000000);
  --secondary-system-grouped-background: #ffffff;
  --secondary-system-grouped-background: light-dark(#ffffff, #242426);
  --tertiary-system-grouped-background: #ebebf0;
  --tertiary-system-grouped-background: light-dark(#ebebf0, #363638);
  --system-blue: #0040dd;
  --system-blue: light-dark(#0040dd, #409cff);
  --system-orange: #c93400;
  --system-orange: light-dark(#c93400, #ffb340);
  --system-purple: #8944ab;
  --system-purple: light-dark(#8944ab, #da8fff);
  --system-red: #d70015;
  --system-red: light-dark(#d70015, #ff6961);
  --system-green: #248a3d;
  --system-green: light-dark(#248a3d, #30db5b);
    --surface-canvas: #e4e4e6;
    --surface-canvas: light-dark(#e4e4e6, #141414);
    --surface-sidebar-solid: #e4e4e6;
    --surface-sidebar-solid: light-dark(#e4e4e6, #141414);
    --surface-list: #efeff0;
    --surface-list: light-dark(#efeff0, #171717);
    --surface-editor: #ffffff;
    --surface-editor: light-dark(#ffffff, #1c1c1c);
    --surface-control: #d8d8dc;
    --surface-control: light-dark(#d8d8dc, #2a2a2c);
    --separator: #8e8e93;
    --separator: light-dark(#8e8e93, #636366);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    :root {
      --material-sidebar: var(--surface-sidebar-solid);
      --material-toolbar: var(--surface-elevated);
      --material-chrome: var(--surface-elevated);
      --material-filter: none;
    }
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --material-sidebar: var(--surface-sidebar-solid);
    --material-toolbar: var(--surface-elevated);
    --material-chrome: var(--surface-elevated);
    --material-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ease-standard: ease;
    --motion-duration-short: var(--motion-fade-duration);
    --motion-duration: var(--motion-fade-duration);
    --motion-duration-long: var(--motion-fade-duration);
  }
}

* { corner-shape: squircle; }
html { background: var(--surface-canvas); color: var(--label); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { color: inherit; }
.app-frame {
  display: grid;
  grid-template-columns: 228px 370px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 20px 12px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-sidebar-solid);
}
.side-top { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: auto; }
.nav-row, .folder-row { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.all-notes {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--secondary-label);
  font-size: 14px;
  font-weight: 550;
  transition: background var(--motion-fade-duration) ease, color var(--motion-fade-duration) ease;
}
.all-notes:hover, .all-notes.is-selected { color: var(--text); background: var(--surface-editor); }
.notes-mark { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.archive-notes { margin-top: 2px; }
.archive-mark { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 4px 6px 10px;
  color: var(--muted);
  font: 600 12px/1 var(--font-sans);
  letter-spacing: var(--text-footnote-tracking);
}
.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color var(--motion-fade-duration) ease, background var(--motion-fade-duration) ease;
}
.icon-button:hover { color: var(--text); background: var(--surface-editor); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.folder-tree { display: flex; min-height: 4rem; flex: 1 0 4rem; flex-direction: column; gap: 2px; }
.folder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--secondary-label);
  font-size: 14px;
  font-weight: 520;
  transition: color var(--motion-fade-duration) ease, background var(--motion-fade-duration) ease;
}
.folder-row:hover, .folder-row.is-selected { color: var(--text); background: var(--surface-editor); }
.folder-row.is-selected .folder-glyph { color: var(--cyan); }
.folder-glyph { width: 18px; height: 16px; flex: 0 0 auto; color: var(--cyan-deep); fill: currentColor; }
.folder-row-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-row-count { margin-left: auto; color: var(--muted-soft); font: 12px/1 var(--font-mono); }
.folder-row.is-drop-target { color: var(--label); background: var(--fill-selection); box-shadow: inset 0 0 0 1px var(--system-blue); }

.sidebar-bottom { position: relative; margin-top: auto; padding-top: 14px; }
.setup-mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--system-blue);
  background: var(--cyan);
  font: 700 14px/1 var(--font-text);
}
.auth-area { padding: 13px 8px 3px; }
.auth-buttons { min-height: 29px; }
#apple-sign-in-button, #apple-sign-out-button { min-height: 26px; }
#apple-sign-in-button div, #apple-sign-out-button div { display: inline-block; }
.connection-line { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted-soft); font-size: 11px; }
.connection-dot, .save-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-control); }
.connection-line.is-connected .connection-dot { background: var(--system-green); box-shadow: 0 0 8px var(--system-green); }

.note-browser {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  border-right: 1px solid var(--line);
  background: var(--surface-sidebar-solid);
}
.browser-header { padding: 22px 18px 15px; }
.browser-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.browser-title-row h1 { overflow: hidden; margin: 0; font: 650 20px/1.2 var(--font-sans); letter-spacing: var(--text-title3-tracking); text-overflow: ellipsis; white-space: nowrap; }
.demo-badge { max-width: 180px; overflow: hidden; padding: 5px 7px; border: 1px solid var(--system-blue); border-radius: 7px; color: var(--system-blue); background: var(--fill-selection); font: 10px/1.1 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.note-count { margin-left: auto; color: var(--muted); font: 13px/1 var(--font-mono); }
.browser-tools { display: flex; gap: 8px; margin-top: 18px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 34px;
  flex: 1 1 auto;
  padding: 0 9px;
  border: 1px solid var(--separator);
  border-radius: 8px;
  background: var(--surface-sidebar-solid);
}
.search-box svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: var(--secondary-label); stroke-width: 1.5; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: var(--tertiary-label); }
.search-box kbd { flex: 0 0 auto; color: var(--tertiary-label); font: 10px var(--font-mono); }
.new-note-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--separator);
  border-radius: 8px;
  color: var(--label);
  background: var(--surface-editor);
  cursor: pointer;
  font-size: 12px;
  font-weight: 560;
  transition: background var(--motion-fade-duration) ease, border-color var(--motion-fade-duration) ease;
}
.new-note-button:hover { border-color: var(--separator); background: var(--surface-control); }
.new-note-button svg { width: 15px; height: 15px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; }
.note-list { min-height: 0; flex: 1 1 auto; overflow: auto; padding: 0 10px 24px; }
.date-group { margin-top: 10px; }
.date-group-title { margin: 16px 9px 8px; color: var(--label); font: 650 19px/1.35 var(--font-mono); letter-spacing: -0.035em; }
.note-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 3px 0;
  padding: 11px 10px 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--label);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fade-duration) ease, border-color var(--motion-fade-duration) ease;
}
.note-card:hover { background: var(--surface-editor); }
.note-card.is-selected { border-color: var(--separator); background: var(--surface-editor); }
.note-card.is-dragging { opacity: .42; }
.note-card-title { display: block; overflow: hidden; margin-bottom: 4px; font-size: 14px; font-weight: 570; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.note-card-detail { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--secondary-label); font-size: 12px; line-height: 1.4; }
.note-card-date { flex: 0 0 auto; color: var(--label); font-weight: 520; }
.note-card-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-card-folder { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--secondary-label); font: 11px/1.25 var(--font-mono); }
.note-card-folder svg { width: 14px; height: 12px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.35; }
.card-star { position: absolute; top: 9px; right: 9px; color: var(--action-pin); font-size: 11px; }
.list-message { padding: 28px 18px; color: var(--muted); font-size: 13px; line-height: 1.6; transition: color var(--motion-fade-duration) ease; }
.list-message.error { color: var(--system-red); }
.mobile-header { display: none; }

.note-pane { position: relative; min-width: 0; height: 100%; overflow: auto; padding: 14px; background: var(--surface-canvas); }
.empty-state {
  display: flex;
  height: 100%;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--separator);
  border-radius: 28px;
  background: var(--surface-sidebar-solid);
  text-align: center;
}
.empty-glyph { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 17px; border-radius: 17px; color: var(--cyan); background: var(--fill-selection); }
.empty-glyph svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h2 { margin: 0; font-size: 20px; font-weight: 620; letter-spacing: var(--text-title3-tracking); }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.empty-state .new-note-button { min-height: 37px; padding: 0 13px; }
.note-workspace {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--separator);
  border-radius: 28px;
  background: var(--surface-sidebar-solid);
}
.note-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 10px 17px; }
.save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--secondary-label); font-size: 12px; }
.save-dot { width: 6px; height: 6px; background: var(--tertiary-label); }
.save-state.is-saved .save-dot { background: var(--system-green); }
.save-state.is-dirty .save-dot, .save-state.is-saving .save-dot { background: var(--system-orange); }
.save-state.is-error { color: var(--system-red); }
.save-state.is-error .save-dot { background: var(--system-red); }
.note-actions { display: flex; align-items: center; gap: 5px; }
.note-actions .icon-button { width: 30px; height: 30px; }
.note-actions .icon-button svg { fill: none; stroke-width: 1.4; }
.note-actions .icon-button.is-starred { color: var(--action-pin); }
.note-actions .icon-button.is-starred svg { fill: var(--action-pin); }
.back-to-list { display: none; align-items: center; gap: 4px; padding: 6px 7px 6px 2px; border: 0; color: var(--secondary-label); background: transparent; cursor: pointer; font-size: 12px; }
.back-to-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.note-document { display: flex; width: min(100%, 840px); min-height: 0; flex: 1 1 auto; flex-direction: column; align-self: center; padding: 20px clamp(24px, 4vw, 60px) 48px; }
.modified-at { margin: 0 0 18px; color: var(--secondary-label); font-size: 12px; font-weight: 500; text-align: left; }
.note-title-input {
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--label);
  background: transparent;
  font-size: clamp(28px, 2.7vw, 36px);
  font-weight: 650;
  letter-spacing: var(--text-large-title-tracking);
  line-height: 1.2;
  text-align: left;
}
.note-title-input::placeholder { color: var(--tertiary-label); }
.rich-editor { min-height: 300px; flex: 1 1 auto; color: var(--label); }
.rich-editor .toastui-editor-defaultUI {
  display: flex;
  height: auto !important;
  min-height: 300px;
  flex-direction: column;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}
.rich-editor .toastui-editor-toolbar {
  flex: 0 0 auto;
  padding: 6px 0;
  border: 0 !important;
  border-bottom: 1px solid var(--separator) !important;
  background: transparent !important;
}
.rich-editor .toastui-editor-defaultUI-toolbar {
  display: flex;
  align-items: center;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.rich-editor .toastui-editor-toolbar-group { background: transparent !important; }
.rich-editor .toastui-editor-toolbar-group {
  margin-right: 7px;
  padding-right: 7px;
  border-color: var(--separator) !important;
}
.rich-editor .toastui-editor-toolbar-icons {
  border: 0 !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  opacity: .82;
}
.rich-editor .toastui-editor-toolbar-icons:hover {
  background-color: var(--surface-editor) !important;
  opacity: 1;
}
.rich-editor .toastui-editor-main {
  display: flex;
  min-height: 280px;
  flex: 0 0 auto;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}
.rich-editor .toastui-editor-md-container,
.rich-editor .toastui-editor-md-preview,
.rich-editor .toastui-editor-md-tab-container,
.rich-editor .toastui-editor-mode-switch,
.rich-editor .toastui-editor-md-splitter {
  display: none !important;
}
.rich-editor .toastui-editor-ww-container {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 280px;
  flex: 0 0 auto;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}
.rich-editor .toastui-editor-contents,
.rich-editor .ProseMirror {
  max-width: 72ch;
  min-height: 280px;
  margin: 0 auto;
  padding: 8px 0 48px !important;
  color: var(--label) !important;
  font-family: var(--font-text) !important;
  font-size: 16px;
  line-height: 1.72;
}
.rich-editor .toastui-editor-contents *,
.rich-editor .ProseMirror * {
  font-family: var(--font-text) !important;
  color: var(--label) !important;
}
.rich-editor .toastui-editor-contents h1, .rich-editor .ProseMirror h1 {
  margin: 1.15em 0 .5em !important;
  color: var(--label) !important;
  font-size: 1.75em !important;
  line-height: 1.2 !important;
  letter-spacing: var(--text-title1-tracking);
}
.rich-editor .toastui-editor-contents h2, .rich-editor .ProseMirror h2 {
  margin: 1.2em 0 .45em !important;
  color: var(--label) !important;
  font-size: 1.4em !important;
  line-height: 1.25 !important;
  letter-spacing: var(--text-title2-tracking);
}
.rich-editor .toastui-editor-contents h3, .rich-editor .ProseMirror h3 {
  margin: 1.1em 0 .4em !important;
  color: var(--label) !important;
  font-size: 1.15em !important;
  line-height: 1.3 !important;
  letter-spacing: var(--text-title3-tracking);
}
.rich-editor .toastui-editor-contents p, .rich-editor .ProseMirror p { margin: 0 0 1em !important; }
.rich-editor .toastui-editor-contents a, .rich-editor .ProseMirror a { color: var(--system-blue) !important; }
.rich-editor .toastui-editor-contents blockquote, .rich-editor .ProseMirror blockquote {
  margin: 1em 0 !important;
  padding-left: 14px !important;
  border-left: 2px solid var(--cyan-deep) !important;
  color: var(--secondary-label) !important;
}
.rich-editor .toastui-editor-ww-container .ProseMirror:focus { outline: 0 !important; }
.rich-editor .toastui-editor-contents h1, .rich-editor .toastui-editor-contents h2, .rich-editor .toastui-editor-contents h3,
.rich-editor .ProseMirror h1, .rich-editor .ProseMirror h2, .rich-editor .ProseMirror h3 {
  color: var(--label) !important;
}
.rich-editor .toastui-editor-contents a, .rich-editor .ProseMirror a { color: var(--system-blue) !important; }
.rich-editor .toastui-editor-ww-container .ProseMirror:focus { outline: 0 !important; }
.editor-fallback-notice {
  margin: 0 0 12px;
  color: var(--secondary-label);
  font-size: 12px;
}
.editor-fallback-input {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  padding: 8px 0 42px;
  border: 0;
  outline: 0;
  color: var(--label);
  background: transparent;
  font: 16px/1.72 var(--font-text);
}
.editor-fallback-input:focus { outline: 0; }
.editor-load-state {
  display: flex;
  min-height: 200px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 0;
  color: var(--secondary-label);
  font-size: 13px;
}
.editor-load-state:not(.is-error)::before {
  width: 15px;
  height: 15px;
  border: 2px solid var(--separator);
  border-top-color: var(--cyan);
  border-radius: 50%;
  content: "";
  animation: arbor-spin .8s linear infinite;
}
.editor-load-state.is-error p { margin: 0; }
.editor-retry-button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--separator);
  border-radius: 8px;
  color: var(--label);
  background: var(--surface-editor);
  cursor: pointer;
  font-size: 12px;
}
.editor-retry-button:hover { border-color: var(--separator); background: var(--surface-control); }
@keyframes arbor-spin { to { transform: rotate(360deg); } }
.demo-editor-shell { display: flex; height: 100%; min-height: 300px; flex-direction: column; }
.demo-editor-toolbar { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 7px 6px; border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); }
.demo-format-button { display: inline-grid; width: 34px; height: 30px; place-items: center; border: 0; border-radius: 6px; color: var(--secondary-label); background: transparent; cursor: pointer; font-size: 14px; font-weight: 580; }
.demo-format-button:hover { color: var(--label); background: var(--surface-editor); }
.demo-editor-content { min-height: 250px; flex: 1 1 auto; overflow: auto; padding: 18px 0 36px; outline: 0; color: var(--label); font-size: 15px; line-height: 1.7; }
.demo-editor-content p { margin: 0 0 14px; }
.demo-editor-content h1, .demo-editor-content h2, .demo-editor-content h3 { margin: 24px 0 8px; color: var(--label); font-weight: 640; letter-spacing: var(--text-title3-tracking); }
.demo-editor-content h1 { font-size: 24px; }
.demo-editor-content h2 { font-size: 19px; }
.demo-editor-content h3 { font-size: 16px; }
.demo-editor-content ul, .demo-editor-content ol { margin: 4px 0 15px; padding-left: 23px; }
.demo-editor-content li { margin: 3px 0; }
.demo-editor-content blockquote { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--system-blue); color: var(--secondary-label); }
.demo-editor-content code { padding: 1px 4px; border-radius: 4px; color: var(--system-blue); background: var(--surface-editor); font-family: var(--font-mono); }
.demo-editor-content:empty::before { color: var(--tertiary-label); content: "Start writing…"; }

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 14px;
  border: 1px solid var(--separator);
  border-radius: 10px;
  color: var(--label);
  background: var(--surface-editor);
  box-shadow: 0 12px 38px #0007;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--motion-fade-duration) ease, transform var(--motion-fade-duration) var(--ease-standard);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: var(--system-red); }
.welcome-screen { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; overflow: auto; padding: clamp(26px, 6vw, 72px); color: var(--label); background: var(--surface-canvas); }
.welcome-content { display: flex; width: min(100%, 550px); flex-direction: column; align-items: center; text-align: center; }
.welcome-mark { display: block; width: 42px; height: 42px; margin-bottom: 34px; object-fit: contain; filter: invert(1); }
html[data-theme="light"] .welcome-mark { filter: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .welcome-mark { filter: none; }
}
.welcome-content h1 { margin: 0; font: 580 clamp(34px, 5vw, 48px)/1.08 var(--font-sans); letter-spacing: -.048em; }
.welcome-description { max-width: 390px; margin: 19px 0 0; color: var(--secondary-label); font: 16px/1.55 var(--font-sans); }
.welcome-status { margin: 28px 0 0; color: var(--secondary-label); font: 13px/1.45 var(--font-sans); }
.welcome-auth { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px; }
.welcome-auth #apple-sign-in-button { display: flex; min-height: 44px; align-items: center; justify-content: center; }
.welcome-auth #apple-sign-in-button > div { display: inline-flex; }
.welcome-privacy { max-width: 410px; margin: 0; color: var(--tertiary-label); font: 13px/1.55 var(--font-sans); }
.welcome-retry { min-height: 38px; margin-top: 25px; padding: 8px 13px; border: 1px solid var(--separator); border-radius: 8px; color: var(--label); background: var(--surface-sidebar-solid); font: 500 14px/1.2 var(--font-sans); cursor: pointer; }
.welcome-retry:hover, .welcome-retry:focus-visible { border-color: var(--cyan); outline: none; }
.setup-screen { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--surface-canvas); }
.setup-screen[hidden] { display: none; }
.setup-card { width: min(100%, 510px); padding: 34px; border: 1px solid var(--separator); border-radius: 22px; background: var(--surface-sidebar-solid); box-shadow: 0 30px 100px #0006; }
.setup-mark { width: 39px; height: 39px; margin-bottom: 24px; border-radius: 12px; font-size: 20px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font: 600 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.setup-card h1 { margin: 0; font-size: 27px; font-weight: 630; letter-spacing: var(--text-title1-tracking); }
.setup-copy { margin: 11px 0 22px; color: var(--secondary-label); font-size: 14px; line-height: 1.6; }
.setup-steps { display: grid; gap: 13px; margin: 22px 0 25px; }
.setup-steps > div { display: flex; align-items: flex-start; gap: 11px; }
.setup-steps > div > span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 1px solid var(--separator); border-radius: 50%; color: var(--secondary-label); font: 12px var(--font-mono); }
.setup-steps p { margin: 2px 0 0; color: var(--secondary-label); font-size: 13px; line-height: 1.45; }
.setup-card > a { color: var(--system-blue); font-size: 13px; text-decoration: none; }
.setup-card > a:hover { text-decoration: underline; }
.setup-footnote { margin: 23px 0 0; padding-top: 15px; border-top: 1px solid var(--separator); color: var(--tertiary-label); font-size: 11px; line-height: 1.5; }

@media (max-width: 1120px) {
  .app-frame { grid-template-columns: 204px 330px minmax(0, 1fr); }
  .sidebar { padding-right: 9px; padding-left: 9px; }
  .browser-header { padding-right: 14px; padding-left: 14px; }
  .note-pane { padding: 10px; }
  .note-workspace { border-radius: 23px; }
}
@media (max-width: 820px) {
  .app-frame { grid-template-columns: 190px minmax(280px, 1fr); }
  .app-frame.mobile-note-open { grid-template-columns: 1fr; }
  .sidebar { grid-row: 1; }
  .note-browser { grid-column: 2; border-right: 0; }
  .note-pane { display: none; }
  .app-frame.mobile-note-open .note-pane { grid-column: 1; grid-row: 1; }
  .app-frame.mobile-note-open .sidebar, .app-frame.mobile-note-open .note-browser { display: none; }
  .app-frame.mobile-note-open .note-pane { display: block; padding: 8px; }
  .app-frame.mobile-note-open .note-workspace { min-height: calc(100vh - 16px); }
  .back-to-list { display: inline-flex; }
}
@media (max-width: 560px) {
  .app-frame { display: block; }
  .sidebar { display: none; position: fixed; z-index: 25; inset: 0 auto 0 0; width: min(82vw, 290px); box-shadow: 18px 0 48px #0008; }
  .app-frame.mobile-sidebar-open .sidebar { display: flex; }
  .note-browser { width: 100%; border: 0; }
  .browser-header { padding: 12px 13px 13px; }
  .mobile-header { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
  .mobile-menu-button { width: 29px; height: 29px; }
  .mobile-brand { color: var(--secondary-label); font: 600 12px var(--font-mono); }
  .browser-title-row h1 { font-size: 19px; }
  .browser-tools { margin-top: 13px; }
  .new-note-button { padding: 0 9px; }
  .new-note-button span { display: none; }
  .new-note-button svg { width: 17px; height: 17px; }
  .note-list { padding-right: 7px; padding-left: 7px; }
  .note-card { padding: 12px 10px; }
  .date-group-title { margin-top: 18px; }
  .app-frame.mobile-note-open .note-pane { display: block; position: fixed; z-index: 20; inset: 0; padding: 7px; background: var(--surface-canvas); }
  .app-frame.mobile-note-open .note-workspace { height: calc(100dvh - 14px); min-height: 0; border-radius: 18px; }
  .note-topbar { min-height: 45px; padding: 6px 10px; }
  .note-document { padding: 12px 18px 26px; }
  .modified-at { margin-bottom: 19px; font-size: 11px; }
  .note-title-input { margin-bottom: 16px; font-size: 28px; }
  .rich-editor { min-height: 230px; }
  .setup-card { padding: 25px 21px; }
  .setup-card h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .welcome-screen { padding: 28px 22px; }
  .welcome-mark { width: 38px; height: 38px; margin-bottom: 27px; }
  .welcome-description { max-width: 330px; font-size: 15px; }
  .welcome-auth { margin-top: 26px; }
}

/* Fast note library and calm document surface */
.sidebar-bottom { padding-top: 8px; }
.settings-launcher {
  display: flex; width: 100%; align-items: center; gap: 10px; min-height: 38px;
  margin-top: 7px; padding: 4px 8px; border: 0; border-radius: 8px; color: var(--secondary-label);
  background: transparent; cursor: pointer; text-align: left; font: 600 15px/1.2 var(--font-mono);
}
.settings-launcher:hover { color: var(--label); background: var(--surface-editor); }
.settings-launcher svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.note-workspace { border-radius: 24px; background: var(--surface-sidebar-solid); }
.note-topbar { min-height: 32px; padding: 8px 18px 0; }
.note-actions { display: none; }
.note-document { width: min(100%, 760px); padding: 25px clamp(22px, 4vw, 52px) 54px; }
.modified-at { margin: 0 0 24px; color: var(--secondary-label); font-size: 12px; text-align: center; }
.note-title-input { margin: 0 0 25px; font-size: clamp(28px, 3vw, 38px); font-weight: 650; letter-spacing: var(--text-large-title-tracking); text-align: center; }
.rich-editor { position: relative; min-height: 300px; }
.rich-editor .toastui-editor-defaultUI { position: relative; min-height: 300px; }
.rich-editor .toastui-editor-toolbar {
  position: absolute; z-index: 4; top: -47px; right: 0; left: 0; height: 36px; padding: 2px 8px;
  border: 1px solid var(--separator) !important; border-radius: 9px; background: var(--surface-editor) !important;
  box-shadow: 0 8px 20px #0005; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .12s ease;
}
.rich-editor.toolbar-open .toastui-editor-toolbar { opacity: 1; pointer-events: auto; visibility: visible; }
.rich-editor .toastui-editor-main { min-height: 300px; }
.rich-editor .toastui-editor-contents, .rich-editor .ProseMirror {
  max-width: 68ch; min-height: 300px; padding: 0 0 48px !important; color: var(--label) !important;
  font-size: 16px; line-height: 1.72;
}
.rich-editor .toastui-editor-contents h1, .rich-editor .ProseMirror h1,
.rich-editor .toastui-editor-contents h2, .rich-editor .ProseMirror h2,
.rich-editor .toastui-editor-contents h3, .rich-editor .ProseMirror h3 {
  border: 0 !important; text-decoration: none !important; color: var(--label) !important; font-weight: 650 !important;
}
.rich-editor .toastui-editor-contents h1, .rich-editor .ProseMirror h1 { margin: 1.2em 0 .5em !important; }
.rich-editor .toastui-editor-contents h2, .rich-editor .ProseMirror h2 { margin: 1.15em 0 .45em !important; }
.rich-editor .toastui-editor-contents p, .rich-editor .ProseMirror p { margin: 0 0 .9em !important; }
.rich-editor .toastui-editor-contents ul, .rich-editor .toastui-editor-contents ol,
.rich-editor .ProseMirror ul, .rich-editor .ProseMirror ol { margin: .25em 0 1em !important; padding-left: 1.45em !important; }
.rich-editor .toastui-editor-contents li, .rich-editor .ProseMirror li { margin: .15em 0 !important; }
.editor-load-state { min-height: 110px; padding: 12px 0; }
.demo-editor-shell { min-height: 300px; }
.demo-editor-toolbar { display: none; }
.demo-editor-content { max-width: 68ch; min-height: 300px; margin: 0 auto; padding: 0 0 40px; font-size: 16px; }
.demo-editor-shell:focus-within .demo-editor-toolbar { display: none; }
.rich-editor.toolbar-open .demo-editor-toolbar { display: flex; }

.settings-backdrop {
  position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 32px;
  background: var(--scrim); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.settings-backdrop[hidden] { display: none; }
.settings-window {
  display: grid; width: min(1120px, 100%); height: min(760px, calc(100vh - 64px));
  grid-template-columns: 260px minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--separator); border-radius: 22px;
  background: var(--material-chrome); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .48);
}
.settings-navigation { padding: 23px 20px; border-right: 1px solid var(--separator); background: var(--scrim); }
.settings-heading-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 23px; }
.settings-heading-row h2 { margin: 0; color: var(--label); font: 600 25px/1.2 var(--font-mono); }
.settings-close { display: none; width: 30px; height: 30px; border: 0; border-radius: 8px; color: var(--secondary-label); background: transparent; cursor: pointer; font-size: 24px; }
.settings-sections { display: grid; gap: 4px; }
.settings-sections button {
  min-height: 38px; padding: 7px 9px; border: 0; border-radius: 8px; color: var(--secondary-label);
  background: transparent; cursor: pointer; text-align: left; font-size: 15px;
}
.settings-sections button:hover { color: var(--label); background: var(--surface-control); }
.settings-sections button.is-selected { color: var(--label); background: var(--surface-control); }
.settings-content { overflow: auto; padding: 72px clamp(30px, 5vw, 70px); }
.settings-content section { max-width: 620px; }
.settings-content section[hidden] { display: none; }
.settings-field { margin: 0 0 25px; }
.settings-field label, .settings-field-label { display: block; margin: 0 0 8px; color: var(--secondary-label); font-size: 13px; }
.settings-field input {
  width: min(100%, 270px); min-height: 34px; padding: 6px 10px; border: 1px solid var(--separator);
  border-radius: 8px; color: var(--label); background: var(--surface-control); font: 14px var(--font-text);
}
.settings-description { margin: 0 0 10px; color: var(--secondary-label); font-size: 14px; line-height: 1.55; }
.settings-auth-row { display: flex; min-height: 32px; flex-wrap: wrap; align-items: center; gap: 12px; }
.settings-auth-row .connection-line { margin: 0; }
.settings-auth-row .auth-buttons { display: flex; align-items: center; gap: 10px; min-height: 29px; }
.auth-buttons[hidden] { display: none; }
body.settings-open { overflow: hidden; }
@media (max-width: 720px) {
  .settings-backdrop { padding: 12px; }
  .settings-window { height: min(680px, calc(100dvh - 24px)); grid-template-columns: 150px minmax(0, 1fr); border-radius: 18px; }
  .settings-navigation { padding: 18px 12px; }
  .settings-heading-row h2 { font-size: 18px; }
  .settings-close { display: inline-grid; place-items: center; }
  .settings-content { padding: 50px 18px; }
}
@media (max-width: 480px) {
  .settings-window { display: flex; flex-direction: column; }
  .settings-navigation { border-right: 0; border-bottom: 1px solid var(--separator); }
  .settings-heading-row { margin-bottom: 12px; }
  .settings-sections { display: flex; overflow-x: auto; }
  .settings-sections button { flex: 0 0 auto; }
  .settings-content { padding: 22px 17px; }
}

.note-workspace.note-entering { animation: note-enter .12s ease-out both; }
@keyframes note-enter { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .note-workspace.note-entering { animation: none; }
}
