/* Layout: a reading column (44rem) set in a book serif, with a sidebar tree that is a drawer on
   phones and a fixed rail from 900px. Blocks hang from a left gutter that holds their drag handle.
   Covers are generated endpapers; page icons are typographic ornaments. Teal-ink accent only. */
:root {
  --bg: #fafaf8;
  --side: #f1f1ed;
  --surface: #ffffff;
  --hover: rgba(28, 30, 26, 0.055);
  --line: rgba(28, 30, 26, 0.1);
  --line-strong: rgba(28, 30, 26, 0.19);
  --ink: #1c1e1a;
  --muted: #676a61;
  --faint: #a0a399;
  --accent: #0e6e64;
  --on-accent: #ffffff;
  --select: rgba(14, 110, 100, 0.17);
  --mark: #f6e2a0;
  --code-bg: rgba(28, 30, 26, 0.06);
  --code-ink: #a23e2a;
  --callout: rgba(28, 30, 26, 0.045);
  --danger: #c2412d;
  --shadow: 0 16px 40px -18px rgba(28, 30, 26, 0.35), 0 0 0 1px rgba(28, 30, 26, 0.06);
  --scrim: rgba(28, 30, 26, 0.32);
  /* Journal mood scale, rough to great. */
  --m1: #9a4a62;
  --m2: #b98a3e;
  --m3: #8f9488;
  --m4: #4f9a78;
  --m5: #0e6e64;

  --font-ui:
    "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-page: var(--font-serif);
  --col: 44rem;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151613;
    --side: #1a1b18;
    --surface: #1f201c;
    --hover: rgba(236, 236, 228, 0.06);
    --line: rgba(236, 236, 228, 0.09);
    --line-strong: rgba(236, 236, 228, 0.17);
    --ink: #e8e8e1;
    --muted: #9da095;
    --faint: #696c63;
    --accent: #3cc7b4;
    --on-accent: #08201c;
    --select: rgba(60, 199, 180, 0.24);
    --mark: #5e5020;
    --code-bg: rgba(236, 236, 228, 0.08);
    --code-ink: #f0907a;
    --callout: rgba(236, 236, 228, 0.05);
    --danger: #f07a62;
    --shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(236, 236, 228, 0.07);
    --scrim: rgba(0, 0, 0, 0.55);
    --m1: #d88aa2;
    --m2: #e2b868;
    --m3: #a6aa9e;
    --m4: #78c49f;
    --m5: #3cc7b4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151613;
  --side: #1a1b18;
  --surface: #1f201c;
  --hover: rgba(236, 236, 228, 0.06);
  --line: rgba(236, 236, 228, 0.09);
  --line-strong: rgba(236, 236, 228, 0.17);
  --ink: #e8e8e1;
  --muted: #9da095;
  --faint: #696c63;
  --accent: #3cc7b4;
  --on-accent: #08201c;
  --select: rgba(60, 199, 180, 0.24);
  --mark: #5e5020;
  --code-bg: rgba(236, 236, 228, 0.08);
  --code-ink: #f0907a;
  --callout: rgba(236, 236, 228, 0.05);
  --danger: #f07a62;
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(236, 236, 228, 0.07);
  --scrim: rgba(0, 0, 0, 0.55);
  --m1: #d88aa2;
  --m2: #e2b868;
  --m3: #a6aa9e;
  --m4: #78c49f;
  --m5: #3cc7b4;
  color-scheme: dark;
}
body[data-font="sans"] {
  --font-page: var(--font-ui);
}
body[data-font="mono"] {
  --font-page: var(--font-mono);
}
body.wide {
  --col: 72rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px / 1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
svg {
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
::selection {
  background: var(--select);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--ink);
}
.icon-btn svg,
.mini-btn svg,
.side-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn[aria-pressed="true"] {
  color: var(--accent);
}
.icon-btn[aria-pressed="true"] svg {
  fill: currentColor;
}
.icon-btn.danger {
  color: var(--danger);
}
.mini-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.mini-btn:hover {
  background: var(--hover);
  color: var(--ink);
}
.mini-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- Shell ---------- */
.shell {
  min-height: 100vh;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 300px);
  display: flex;
  flex-direction: column;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  transform: translateX(-102%);
  transition: transform 0.3s var(--ease);
}
body.side-open .sidebar {
  transform: none;
  box-shadow: var(--shadow);
}
.side-scrim {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--scrim);
  animation: fade 0.25s both;
}
.side-top {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 6px 14px;
}
.side-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
}
.side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 12px;
  overscroll-behavior: contain;
}
.side-sec + .side-sec {
  margin-top: 16px;
}
.side-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2px;
}
.side-h {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 8px;
}
.tree ul {
  margin: 0;
}
.row {
  display: grid;
  grid-template-columns: 22px 1fr 26px;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding-left: calc(var(--d) * 14px);
  border-radius: 8px;
  color: var(--muted);
}
.row:hover {
  background: var(--hover);
  color: var(--ink);
}
.row.active {
  background: var(--hover);
  color: var(--ink);
  font-weight: 600;
}
.twisty {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--faint);
  border-radius: 5px;
  padding: 0;
}
.twisty svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.2s var(--ease);
}
[aria-expanded="true"] > .row .twisty svg {
  transform: rotate(90deg);
}
.twisty:disabled {
  visibility: hidden;
}
.row-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  padding: 6px 0;
}
.row-icon {
  width: 20px;
  flex: none;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
}
.row-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-add {
  opacity: 0;
}
.row:hover .row-add,
.row-add:focus-visible {
  opacity: 1;
}
@media (pointer: coarse) {
  .row-add {
    opacity: 0.7;
  }
  .row {
    min-height: 40px;
  }
}
.tree-empty {
  padding: 8px;
  color: var(--faint);
  font-size: 0.9rem;
}
.side-foot {
  border-top: 1px solid var(--line);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  text-align: left;
}
.side-link:hover {
  background: var(--hover);
  color: var(--ink);
}
.count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) 6px
    max(10px, env(safe-area-inset-left, 0px));
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg);
}
.crumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
}
.crumb {
  color: var(--muted);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 6px;
  border-radius: 6px;
  flex: 0 1 auto;
  min-width: 2.5em;
}
a.crumb:hover {
  background: var(--hover);
  color: var(--ink);
}
.crumb.here {
  color: var(--ink);
  flex-shrink: 1;
}
.crumb-icon {
  margin-right: 6px;
  font-family: var(--font-serif);
}
.sep {
  color: var(--faint);
  flex: none;
}
.saved {
  font-size: 0.75rem;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.saved.show {
  opacity: 1;
}
.saved.bad {
  color: var(--danger);
  opacity: 1;
  white-space: normal;
  max-width: 12rem;
}
@media (max-width: 520px) {
  .crumb:not(.here) {
    display: none;
  }
  .sep {
    display: none;
  }
  .saved:not(.bad) {
    display: none;
  }
}

@media (min-width: 900px) {
  .shell {
    display: grid;
    grid-template-columns: 268px 1fr;
    transition: grid-template-columns 0.3s var(--ease);
  }
  body.side-hidden .shell {
    grid-template-columns: 0 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: auto;
    transform: none;
    overflow: hidden;
  }
  body.side-hidden .sidebar {
    visibility: hidden;
  }
  .side-close,
  .side-scrim {
    display: none !important;
  }
  .main {
    min-width: 0;
  }
}

/* ---------- Page ---------- */
.page {
  display: block;
  outline: none;
  padding-bottom: 30vh;
}
.cover {
  position: relative;
  height: clamp(170px, 34vw, 250px);
  background-size: cover;
  background-position: center;
  margin-top: -50px;
}
.cover-btn {
  position: absolute;
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: 12px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 0;
  background: rgba(20, 22, 18, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s;
}
.cover:hover .cover-btn,
.cover-btn:focus-visible {
  opacity: 1;
}
@media (pointer: coarse) {
  .cover-btn {
    opacity: 0.9;
  }
}
.page-inner {
  max-width: calc(var(--col) + 2 * 56px);
  margin: 0 auto;
  padding-left: max(30px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .page-inner {
    padding-left: 56px;
    padding-right: 56px;
  }
}
.page-head {
  position: relative;
  padding-top: 28px;
  display: grid;
  gap: 8px;
}
body.has-cover .page-head {
  padding-top: 0;
}
.page-icon {
  justify-self: start;
  border: 0;
  background: none;
  padding: 0 4px;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.1;
  color: var(--ink);
}
.page-icon:hover {
  background: var(--hover);
}
/* Over a cover the icon sits on a paper tab, like a label pasted onto an endpaper. */
body.has-cover .page-icon {
  margin-top: -0.7em;
  background: var(--bg);
  padding: 0.08em 0.28em;
  border-radius: 14px;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.45);
}
body.has-cover .page-icon:hover {
  background: var(--bg);
}
.head-actions {
  display: flex;
  gap: 4px;
  margin-left: -8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.page-head:hover .head-actions,
.head-actions:focus-within {
  opacity: 1;
}
@media (pointer: coarse) {
  .head-actions {
    opacity: 1;
  }
}
body.has-cover .head-actions {
  margin-top: 10px;
}
.ghost-btn {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--faint);
  font-size: 0.85rem;
}
.ghost-btn:hover {
  background: var(--hover);
  color: var(--muted);
}
.title {
  font-family: var(--font-page);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  outline: none;
  margin: 2px 0 10px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
body[data-font="mono"] .title {
  letter-spacing: -0.05em;
  font-weight: 500;
}
.title:empty::before {
  content: attr(data-ph);
  color: var(--faint);
}

/* ---------- Blocks ---------- */
.blocks {
  font-family: var(--font-page);
  font-size: 1.06rem;
  line-height: 1.65;
}
body[data-font="mono"] .blocks {
  font-size: 0.94rem;
}
.blk {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-left: calc(var(--i) * 1.6rem);
  padding: 1px 0;
  border-radius: 4px;
}
.blk.t-bullet,
.blk.t-number,
.blk.t-todo,
.blk.t-toggle,
.blk.t-callout {
  grid-template-columns: 1.7rem 1fr;
}
.content {
  min-width: 0;
  outline: none;
  padding: 3px 2px;
  overflow-wrap: anywhere;
  position: relative;
  white-space: pre-wrap;
}
.content b {
  font-weight: 700;
}
.content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--code-ink);
}
.content mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.blk.is-empty > .content[contenteditable]:focus::before,
.blk.is-empty.t-h1 > .content::before,
.blk.is-empty.t-h2 > .content::before,
.blk.is-empty.t-h3 > .content::before,
.blk.is-empty.t-todo > .content::before,
.blk.is-empty.t-bullet > .content::before,
.blk.is-empty.t-number > .content::before,
.blk.is-empty.t-toggle > .content::before,
.blk.is-empty.t-quote > .content::before,
.blk.is-empty.t-callout > .content::before {
  content: attr(data-ph);
  position: absolute;
  left: var(--px, 2px);
  top: var(--py, 3px);
  color: var(--faint);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.t-h1 > .content {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.t-h2 > .content {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.t-h3 > .content {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.35;
}
.blk.t-h1 {
  margin-top: 1.3em;
}
.blk.t-h2 {
  margin-top: 1.1em;
}
.blk.t-h3 {
  margin-top: 0.7em;
}
.blk.t-h1:first-child,
.blk.t-h2:first-child,
.blk.t-h3:first-child {
  margin-top: 0.2em;
}

.mk {
  display: grid;
  place-items: center;
  height: calc(1.65em + 6px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.mk-bullet {
  font-size: 1.15em;
}
.mk-num {
  font-size: 0.95em;
  justify-items: end;
  padding-right: 0.45rem;
  place-items: center end;
}
.mk-check,
.mk-caret,
.mk-icon {
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
  color: var(--ink);
}
.mk-check svg {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  fill: none;
  stroke: transparent;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  padding: 1px;
  transition: background-color 0.15s;
}
.mk-check[aria-checked="true"] svg {
  background: var(--accent);
  box-shadow: none;
  stroke: var(--on-accent);
}
.is-checked > .content {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: var(--faint);
}
.mk-caret svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.mk-caret[aria-expanded="true"] svg {
  transform: rotate(90deg);
}
.mk-caret:hover,
.mk-icon:hover {
  background: var(--hover);
  border-radius: 5px;
}
.t-quote > .content {
  border-left: 3px solid var(--ink);
  padding-left: 16px;
  margin: 4px 0;
  font-style: italic;
  --px: 18px;
}
.blk.t-callout {
  background: var(--callout);
  border-radius: 8px;
  padding: 10px 12px 10px 8px;
  margin: 6px 0 6px calc(var(--i) * 1.6rem);
}
.mk-icon {
  font-family: var(--font-serif);
  font-size: 1.15em;
}
.blk.t-code {
  margin: 6px 0 6px calc(var(--i) * 1.6rem);
}
.t-code > .content {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  background: var(--code-bg);
  border-radius: 8px;
  padding: 14px 16px;
  tab-size: 2;
  overflow-x: auto;
  white-space: pre-wrap;
  --px: 16px;
  --py: 14px;
}
.t-divider > .content {
  padding: 10px 2px;
}
.t-divider hr {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin: 0;
}
.pagelink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  max-width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 4px 6px;
  margin-left: -6px;
  border-radius: 6px;
  font-weight: 600;
}
.pagelink:hover {
  background: var(--hover);
}
.pl-icon {
  font-family: var(--font-serif);
  width: 1.3em;
  text-align: center;
}
.pl-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.pl-go {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
  flex: none;
}

.handle {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 22px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 5px;
  color: var(--faint);
  opacity: 0;
  cursor: grab;
  touch-action: none;
  padding: 0;
}
.handle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.handle:hover {
  background: var(--hover);
  color: var(--muted);
}
.t-h1 > .handle {
  top: 10px;
}
.t-h2 > .handle {
  top: 7px;
}
.t-callout > .handle {
  top: 12px;
  left: -30px;
}
.t-code > .handle {
  top: 12px;
}
.blk:hover > .handle,
.blk:focus-within > .handle,
.handle:focus-visible {
  opacity: 1;
}
@media (pointer: coarse) {
  .blk:hover > .handle {
    opacity: 0;
  }
  .blk:focus-within > .handle {
    opacity: 1;
  }
  .handle {
    left: -28px;
    width: 26px;
  }
}
.blk.is-dragging {
  opacity: 0.35;
}
body.block-dragging,
body.block-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.drop-line {
  position: fixed;
  z-index: 70;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  pointer-events: none;
}
.page-tail {
  min-height: 120px;
  cursor: text;
}
body.kbar-on .page-tail {
  min-height: 50vh;
}

/* ---------- Menus and toolbars ---------- */
.menu {
  position: fixed;
  z-index: 80;
  width: min(290px, calc(100vw - 16px));
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
}
.menu-h {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 8px 4px;
}
.menu-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 5px 8px 5px 5px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
}
.menu-item[aria-selected="true"] {
  background: var(--hover);
}
.menu-glyph {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.menu-name {
  font-weight: 500;
}
.menu-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}
.menu-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.fmt {
  position: fixed;
  z-index: 75;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}
.fmt button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-family: var(--font-serif);
}
.fmt button:hover {
  background: color-mix(in oklab, var(--bg) 18%, transparent);
}
.fmt code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.fmt mark,
.kbar mark {
  background: var(--mark);
  color: var(--ink);
  padding: 0 3px;
  border-radius: 2px;
}
.fmt svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.kbar {
  position: fixed;
  z-index: 70;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px max(8px, env(safe-area-inset-right, 0px))
    calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: var(--side);
  border-top: 1px solid var(--line);
}
.kbar::-webkit-scrollbar {
  display: none;
}
.kbar button {
  flex: none;
  min-width: 44px;
  height: 42px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.kbar button:active {
  background: var(--hover);
}
.kbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kglyph {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.kbar .kdone {
  margin-left: auto;
  padding: 0 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Sheets ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--scrim);
  animation: fade 0.25s both;
}
.scrim.leaving {
  animation: fade 0.2s reverse both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.sheet {
  position: fixed;
  z-index: 91;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 34rem;
  margin-inline: auto;
  max-height: 88vh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow);
  animation: sheet-in 0.36s var(--ease) both;
}
.sheet.leaving {
  animation: sheet-out 0.22s var(--ease) both;
}
@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}
@keyframes sheet-out {
  to {
    transform: translateY(100%);
  }
}
@media (min-width: 700px) {
  .sheet {
    top: 12vh;
    bottom: auto;
    border-radius: 16px;
    max-height: 76vh;
    animation-name: pop-in;
  }
  .sheet.leaving {
    animation-name: pop-out;
  }
  @keyframes pop-in {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
  }
  @keyframes pop-out {
    to {
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
    }
  }
  .sheet-handle {
    display: none;
  }
}
.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  margin: 9px auto 0;
  flex: none;
}
.sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px max(18px, env(safe-area-inset-right, 0px))
    calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}
.sheet-body > * {
  flex-shrink: 0;
}
.sheet-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: -8px;
}
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.field {
  display: grid;
  gap: 8px;
}
.list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}
.list-item:hover {
  background: var(--hover);
}
.list-item.danger {
  color: var(--danger);
}
.list-item kbd,
.keys dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}
@media (max-width: 899px) {
  .wide-only,
  .desk-only {
    display: none !important;
  }
}
@media (pointer: coarse) {
  .list-item kbd,
  .desk-only {
    display: none !important;
  }
}
.types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.type-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: none;
  text-align: left;
  font-size: 0.9rem;
}
.type-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--select);
}
.type-btn .menu-glyph {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}
.seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--hover);
}
.seg button {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-weight: 500;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.font-serif {
  font-family: var(--font-serif) !important;
}
.font-sans {
  font-family: var(--font-ui) !important;
}
.font-mono {
  font-family: var(--font-mono) !important;
}
.ornaments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 4px;
}
.orn {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.orn:hover,
.orn[aria-pressed="true"] {
  background: var(--hover);
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}
.md-out {
  min-height: 40vh;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}
.inline-form {
  display: grid;
  gap: 10px;
}
.inline-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-row .input {
  flex: 1;
  min-width: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-line {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-danger-line {
  background: none;
  border: 1px solid color-mix(in oklab, var(--danger) 45%, transparent);
  color: var(--danger);
}
.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
}
.confirm {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  flex: none;
}
.search-in {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 1.1rem;
  min-height: 40px;
}
.results {
  display: grid;
  gap: 2px;
  margin-top: -6px;
}
.result {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 8px;
  border-radius: 9px;
  text-decoration: none;
}
.result:hover,
.result.sel {
  background: var(--hover);
}
.result .row-icon {
  padding-top: 2px;
}
.result-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.result-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-snip {
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.results mark {
  background: var(--mark);
  color: inherit;
  border-radius: 2px;
}
.trash {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.trash li {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.trash-text {
  min-width: 0;
  display: grid;
}
.trash-text b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.trash-text .meta {
  margin: 0;
  font-size: 0.8rem;
}
.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.88rem;
}
.keys dd {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 95;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: rise 0.3s var(--ease) both;
}
body.kbar-on .toast {
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.toast button {
  border: 0;
  background: color-mix(in oklab, var(--bg) 16%, transparent);
  color: inherit;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 7px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------- Journal ---------- */
/* The view is an almanac: a dated epigraph between double rules, two practice tiles, a month of
   mood squares, a prompt library and the entries list. Mood is shown as small square swatches. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#journal-row {
  grid-template-columns: 22px 1fr auto;
}
.streak {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-right: 8px;
  white-space: nowrap;
}
.journal {
  display: block;
  outline: none;
  padding-bottom: 24vh;
}
.jr-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 10px max(20px, env(safe-area-inset-right, 0px)) 0
    max(20px, env(safe-area-inset-left, 0px));
}
.jr-head {
  display: grid;
  gap: 4px;
  padding-top: 10px;
}
.jr-date {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.jr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.jr-stats div {
  padding: 10px 0;
  display: grid;
  gap: 2px;
}
.jr-stats div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.jr-stats dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.jr-stats dd {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.epigraph {
  margin: 26px 0 0;
  padding: 22px 0 14px;
  border-top: 3px double var(--line-strong);
  border-bottom: 3px double var(--line-strong);
  position: relative;
}
.epigraph blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.epigraph blockquote::before {
  content: "“";
  display: block;
  height: 0.62em;
  font-size: 3.4rem;
  line-height: 1;
  font-style: normal;
  color: var(--accent);
  margin-bottom: 6px;
}
.epigraph figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
}
.ep-author {
  font-weight: 600;
  color: var(--ink);
  font-variant: small-caps;
  letter-spacing: 0.04em;
  font-size: 1.05em;
}
.epigraph cite {
  font-family: var(--font-serif);
}
.ep-next {
  margin: 6px 0 0 -8px;
  min-height: 36px;
}

.jr-sec {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}
.jr-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
}
.jr-h {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.prac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.prac {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 132px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.prac:hover {
  background: var(--hover);
}
.prac-glyph {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--muted);
}
.prac.done .prac-glyph {
  color: var(--accent);
}
.prac-name {
  font-weight: 600;
  font-size: 1.02rem;
}
.prac-state {
  font-size: 0.84rem;
  color: var(--muted);
}
.prac-mood {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}
.prac-tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
}
.prac-tick svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.question {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.question-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.question .inline-row {
  margin-top: 6px;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-head {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding-bottom: 2px;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 52px;
  padding: 7px 0 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
}
.day:hover:not(:disabled) {
  background: var(--hover);
}
.day.pad {
  pointer-events: none;
}
.day:disabled {
  color: var(--faint);
  cursor: default;
}
.day-n {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-top: -4px;
}
.day.is-today .day-n {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.day[aria-pressed="true"] {
  background: var(--hover);
  outline: 1.5px solid var(--ink);
  outline-offset: -1.5px;
}
.day .sw {
  width: 13px;
  height: 13px;
}
.sw {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--faint);
}
.sw[data-m="1"] {
  background: var(--m1);
}
.sw[data-m="2"] {
  background: var(--m2);
}
.sw[data-m="3"] {
  background: var(--m3);
}
.sw[data-m="4"] {
  background: var(--m4);
}
.sw[data-m="5"] {
  background: var(--m5);
}
.sw.hollow {
  background: none;
  border: 1.5px solid var(--muted);
}
.sw.dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50%;
  background: var(--line-strong);
  margin-top: 4px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.al-nav {
  display: flex;
  gap: 2px;
}
.al-nav .icon-btn {
  width: 44px;
  height: 44px;
}
.al-nav .icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.chip:hover {
  color: var(--ink);
  background: var(--hover);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.prompt-list {
  border-top: 1px solid var(--line);
}
.prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}
.prompt:hover {
  background: var(--hover);
}
.prompt svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prompt:hover svg {
  stroke: var(--accent);
}

.entries {
  border-top: 1px solid var(--line);
}
.entry {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.entry:hover {
  background: var(--hover);
}
.entry-icon {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}
.entry-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.entry-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-snip {
  font-size: 0.86rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-mood {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
}
.jr-empty {
  margin: 0;
}
.jr-sec > .btn {
  justify-self: start;
}

/* Entry page: the date line above the title and the mood picker beneath it. */
.jdate {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}
.jdate a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.jdate a:hover {
  text-decoration: underline;
}
.jmood {
  display: grid;
  gap: 8px;
  margin: -2px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui);
}
.moods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-width: 26rem;
}
.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
}
.mood:hover {
  background: var(--hover);
  color: var(--ink);
}
.mood .sw {
  width: 14px;
  height: 14px;
  opacity: 0.55;
}
.mood[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--hover);
  color: var(--ink);
  font-weight: 600;
}
.mood[aria-checked="true"] .sw {
  opacity: 1;
}

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

/* Account sheet: maps Quire's tokens onto the shared account sheet (css/account.css). */
:root {
  --acct-bg: var(--surface);
  --acct-field: var(--bg);
  --acct-raised: var(--side);
  --acct-raised-on: var(--surface);
  --acct-ink: var(--ink);
  --acct-muted: var(--muted);
  --acct-faint: var(--faint);
  --acct-line: var(--line);
  --acct-line-strong: var(--line-strong);
  --acct-accent: var(--accent);
  --acct-danger: var(--danger);
  --acct-primary: var(--ink);
  --acct-on-primary: var(--bg);
  --acct-scrim: var(--scrim);
  --acct-shadow: var(--shadow);
  --acct-font-body: var(--font-ui);
  --acct-font-display: var(--font-serif);
  --acct-font-label: var(--font-ui);
  --acct-display-size: 2.2rem;
  --acct-display-weight: 700;
  --acct-display-tracking: -0.02em;
  --acct-accent-style: italic;
  --acct-accent-weight: 400;
  --acct-label-weight: 600;
  --acct-label-tracking: 0.06em;
  --acct-sheet-width: 34rem;
  --acct-sheet-radius: 18px 18px 0 0;
  --acct-radius: 10px;
  --acct-btn-radius: 10px;
  --acct-seg-radius: 10px;
  --acct-btn-h: 48px;
}
