/* Uhabito: warm paper, system default fonts */
:root {
  --ink: #15171b;
  --ink-solid: #0b0b0c;
  --muted: #5d6169;
  --faint: #6b7079;
  --line: #e3e6ea;
  --line-strong: #cfd5dd;
  --paper: #fdfdfc;
  --paper-warm: #f8f3ea;
  --paper-deep: #f1e9da;
  --panel: #f0f3f8;
  --panel-line: #dfe5ee;
  --cobalt: #2e5ec4;
  --cobalt-ink: #1f4597;
  --cobalt-wash: #e9effa;
  --sage: #4f7a5c;
  --sage-wash: #e8f1ea;
  --brick: #a8442c; --on-brick: #fff;
  --brick-wash: #f8e9e4;
  --gold: #b8892c; --gold-ink: #8a6416;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px #1a1d2410, 0 8px 24px -12px #1a1d2426;
  --page: min(1180px, calc(100% - 48px));
  --surface: #fff; --surface-fade: #fff0; --on-ink: #fff; --field-bg: #fff; --seg-on: #fff;
  --ink-2: #33363c; --ink-3: #4a4e56; --ink-hover: #2a2c31;
  --hover: #0000000a; --hover-soft: #00000008; --line-hover: #b5bdc8; --placeholder: #9a9ea6;
  --head-bg: #fdfdfcee; --bar-bg: #fdfdfcf2; --paper-line: #ece2cf; --paper-edge: #f0ebe1;
  --track: #eceff3; --track-off: #f6f7f9; --ring-line: #e3e6ea;
  --sage-ink: #2f5a3c; --sage-line: #cfe2d4; --brick-ink: #7c2f1d; --brick-line: #efcfc5; --cobalt-line: #d1ddf5;
  --focus-ring: #2e5ec41f; --select: #cddcf6; --spinner-track: #0000001f; --code-bg: #16181d;
  --toast-line: #ffffff40; --toast-hover: #ffffff1a; --danger: #b3261e;
  --hrow-done: #fbfcfb; --ym-part: #b9d3c0; --ym-clean: #cfe2d4; --day-dim: #c3c8cf; --day-off: #6f747c;
  --hero-a: #dfe8fa; --hero-b: #e3efe6; --hero-c: #f8ecd4; --hero-top: #faf6ee; --glow: #ffffffb3;
  color-scheme: light;
}
/* Dark palette: set by /theme.js on <html> for every page, never only some screens. */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9ebef; --ink-solid: #f4f5f7; --on-ink: #101216; --muted: #a6abb4; --faint: #8a909a;
  --line: #2b2f36; --line-strong: #4b515c; --paper: #121417; --paper-warm: #181b1f; --paper-deep: #1f2328;
  --panel: #1a1d22; --panel-line: #2b2f36; --cobalt: #86a8ee; --cobalt-ink: #b0c6f5; --cobalt-wash: #1c2842;
  --sage: #3f7d54; --sage-wash: #1b2c21; --brick: #cf6b4f; --on-brick: #1b0e0a; --brick-wash: #38201a; --gold: #d3a54a; --gold-ink: #d3a54a;
  --shadow: 0 1px 2px #0006, 0 8px 24px -12px #000a;
  --surface: #1a1d22; --surface-fade: #1a1d2200; --field-bg: #14171b; --seg-on: #3a4049; --seg-ring: #6b727e;
  --ink-2: #c9cdd4; --ink-3: #b7bcc5; --ink-hover: #ffffff;
  --hover: #ffffff14; --hover-soft: #ffffff0f; --line-hover: #565c67; --placeholder: #8a909a;
  --head-bg: #121417ee; --bar-bg: #121417f2; --paper-line: #2b2f36; --paper-edge: #23272d;
  --track: #2a2e35; --track-off: #1d2025; --ring-line: #3d424b;
  --sage-ink: #9bd1ac; --sage-line: #2c4a36; --brick-ink: #f0a68f; --brick-line: #5a3328; --cobalt-line: #2f4470;
  --focus-ring: #86a8ee40; --select: #2f4470; --spinner-track: #ffffff29; --code-bg: #0d0f12;
  --toast-line: #10121640; --toast-hover: #1012161a;
  --danger: #f0897b;
  --hrow-done: #171a1e; --ym-part: #3f7d54; --ym-clean: #2c4a36; --day-dim: #5b616b; --day-off: #80868f;
  --hero-a: #1c2842; --hero-b: #1b2c21; --hero-c: #2d2616; --hero-top: #181b1f; --glow: #ffffff0d;
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-ink); }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--select); }

.wrap { width: var(--page); margin-inline: auto; }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.eyebrow { font: 650 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display { font: 330 clamp(40px, 5.6vw, 72px)/1.04 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.h1 { font: 350 clamp(34px, 4.2vw, 54px)/1.06 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.h2 { font: 360 clamp(28px, 3vw, 40px)/1.1 var(--serif); letter-spacing: -.028em; text-wrap: balance; }
.h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -.012em; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.6; color: var(--ink-3); max-width: 60ch; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--head-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid #0000; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-solid); font: 650 16px/1 var(--sans); letter-spacing: -.02em; }
.brand:hover { color: var(--ink-solid); }
.brand img { width: 26px; height: 26px; }
.brand .brand-app { color: var(--muted); font-weight: 500; }
.brand .brand-sep { color: var(--line-strong); font-weight: 300; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font: 600 14.5px/1 var(--sans); }
.site-nav a:hover { color: var(--ink-solid); background: var(--hover); }
.site-nav a[aria-current="page"] { color: var(--ink-solid); }
@media (max-width: 720px) {
  .site-nav .nav-optional { display: none; }
  .site-head .wrap { gap: 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid var(--ink-solid); border-radius: var(--radius); background: var(--ink-solid); color: var(--on-ink); font: 600 14.5px/1 var(--sans); cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-line { background: transparent; color: var(--ink-solid); border-color: var(--line-strong); }
.btn-line:hover { background: var(--hover-soft); color: var(--ink-solid); border-color: var(--line-hover); }
.btn-quiet { background: transparent; color: var(--ink); border-color: transparent; }
.btn-quiet:hover { background: var(--hover); color: var(--ink-solid); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 15.5px; }
.btn-danger { color: var(--brick); }
.btn-danger:not(.btn-line):not(.btn-quiet) { background: var(--brick); border-color: var(--brick); color: var(--on-brick); }
.btn-danger:not(.btn-line):not(.btn-quiet):hover { background: var(--brick); color: var(--on-brick); filter: brightness(1.08); }
.btn-block { width: 100%; }

/* Fields */
.field { display: grid; gap: 7px; }
.field > span, .label { font: 600 13.5px/1.2 var(--sans); color: var(--ink-2); }
.field small, .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--field-bg); color: var(--ink); font: 400 15.5px/1.35 var(--sans); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-hover); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--focus-ring); }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink-solid); }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-lg); }
.paper { background: var(--paper-warm); border: 1px solid var(--paper-line); border-radius: var(--radius-lg); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-line); color: var(--ink-2); font: 600 12.5px/1 var(--sans); white-space: nowrap; }
.chip-free { background: var(--sage-wash); border-color: var(--sage-line); color: var(--sage-ink); }
.chip-cobalt { background: var(--cobalt-wash); border-color: var(--cobalt-line); color: var(--cobalt-ink); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.notice { padding: 12px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-line); font-size: 14.5px; color: var(--ink-2); }
.notice-error { background: var(--brick-wash); border-color: var(--brick-line); color: var(--brick-ink); }
.notice-ok { background: var(--sage-wash); border-color: var(--sage-line); color: var(--sage-ink); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font: 650 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table td.yes { color: var(--sage-ink); font-weight: 600; }
.table td.no { color: var(--brick-ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap .table tr:last-child td { border-bottom: 0; }

/* Prose (blog, docs) */
.prose { font-size: 18px; line-height: 1.72; color: var(--ink); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font: 380 30px/1.18 var(--serif); letter-spacing: -.022em; color: var(--ink-solid); }
.prose h3 { margin-top: 1.7em; font: 650 19px/1.35 var(--sans); letter-spacing: -.01em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--cobalt); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose code { font: 500 .86em/1 var(--mono); padding: .15em .38em; border-radius: 5px; background: var(--panel); border: 1px solid var(--panel-line); }
.prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: var(--code-bg); color: #e8eaee; font: 13.5px/1.6 var(--mono); }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; font-size: inherit; }
.prose blockquote { padding-left: 18px; border-left: 3px solid var(--cobalt); color: var(--ink-2); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font-weight: 650; }
.prose strong { font-weight: 650; color: var(--ink-solid); }

/* Code block outside prose */
.code { position: relative; overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: var(--code-bg); color: #e8eaee; font: 13px/1.65 var(--mono); white-space: pre; }
.code .c { color: #8b93a3; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; font: 600 16.5px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 24px/1 var(--sans); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); line-height: 1.65; }

/* Footer */
.site-foot { margin-top: 96px; padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14.5px; color: var(--muted); }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { margin-bottom: 12px; font: 650 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.site-foot ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: var(--ink-3); }
.site-foot a:hover { color: var(--ink-solid); }
.site-foot .foot-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
@media (max-width: 760px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Utilities */
.stack { display: grid; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(36px, 5vw, 56px); }
.art { mix-blend-mode: multiply; }
html[data-theme="dark"] .art { mix-blend-mode: screen; filter: invert(1) hue-rotate(180deg) brightness(.85); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; background: var(--ink-solid); color: var(--on-ink); font: 600 14px/1.3 var(--sans); box-shadow: 0 10px 30px #0004; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--spinner-track); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* The OpenApps free apps network, in every app's footer. */
.oa-network { display: grid; gap: 16px; padding-bottom: 28px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.oa-network-title { display: grid; gap: 4px; }
.oa-network-title a { color: var(--ink-solid); font: 400 22px/1.2 var(--serif); letter-spacing: -.015em; }
.oa-network-title span { font-size: 14px; color: var(--muted); }
.oa-network ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; }
.oa-network li { display: grid; gap: 1px; }
.oa-network li a { color: var(--ink); font: 600 14.5px/1.3 var(--sans); }
.oa-network li a:hover { color: var(--cobalt); }
.oa-network li a[aria-current="page"] { color: var(--muted); }
.oa-network li span { font-size: 13px; color: var(--faint); }
.oa-network-more { font-size: 13.5px; color: var(--faint); }
.oa-network-more a { color: var(--ink-3); }

/* Appearance switch: footer (legacy) and top bar (compact, modern) */
.oa-appearance { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 600 13px/1.2 var(--sans); }
.oa-appearance [role="radiogroup"] { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.oa-appearance button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; }
.oa-appearance button:hover { background: var(--hover); }
.oa-appearance button[aria-checked="true"] { background: var(--ink-solid); color: var(--on-ink); }
.oa-appearance button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
@media (pointer: coarse) { .oa-appearance button { min-height: 44px; padding: 0 14px; } }
body.app-mode:not([data-route="share"]):not([data-route="notfound"]) .oa-appearance { display: none; }

/* Top bar modern theme switcher — professional, minimal, landing-only */
.top-appearance { display: inline-flex; align-items: center; margin-left: 8px; }
.top-appearance [role="radiogroup"] { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px #0000000a; }
.top-appearance button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.top-appearance button:hover { background: var(--hover); color: var(--ink); }
.top-appearance button[aria-checked="true"] { background: var(--ink-solid); color: var(--on-ink); box-shadow: 0 1px 3px #00000018; }
.top-appearance button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.top-appearance button svg { width: 14px; height: 14px; display: block; }
@media (max-width: 760px) {
  .top-appearance { margin-left: auto; }
  .top-appearance button { width: 36px; height: 36px; }
}
body.app-mode .top-appearance { display: none !important; }



body.theme-dark 

