/* GENERATED by scripts/build-tokens.ts from docs/project/design/clear-tokens.json. Do not edit. */
:root {
  color-scheme: dark light;
  --ground: #121417;
  --surface: #1B1E22;
  --line: #2A2F35;
  --divider: #22262B;
  --ink: #EEF0F2;
  --muted: #A3AAB3;
  --quiet: #8A929C;
  --accent: #8DB4FF;
  --on-accent: #121417;
  --attention: #F5A35C;
  --good: #7FD3A0;
  --over: #FF9B87;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 32px;
  --tap-min: 44px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
:root {
  color-scheme: light;
  --ground: #F7F8FA;
  --surface: #FFFFFF;
  --line: #DDE1E6;
  --divider: #E9ECEF;
  --ink: #121417;
  --muted: #5B636D;
  --quiet: #6B737D;
  --accent: #2457D6;
  --on-accent: #FFFFFF;
  --attention: #AC5A10;
  --good: #1F7A45;
  --over: #B83A26;
}
}
.t-figure-xl {
  font-family: var(--font-sans);
  font-size: 3.0588rem;
  line-height: 3.0588rem;
  font-weight: 600;
}
.t-figure-md {
  font-family: var(--font-sans);
  font-size: 1.0588rem;
  line-height: 1.4118rem;
  font-weight: 600;
}
.t-title {
  font-family: var(--font-sans);
  font-size: 1.1765rem;
  line-height: 1.5294rem;
  font-weight: 600;
}
.t-body {
  font-family: var(--font-sans);
  font-size: 0.8824rem;
  line-height: 1.2941rem;
  font-weight: 400;
}
.t-label {
  font-family: var(--font-sans);
  font-size: 0.8235rem;
  line-height: 1.1765rem;
  font-weight: 500;
}
.t-caption {
  font-family: var(--font-sans);
  font-size: 0.7059rem;
  line-height: 0.9412rem;
  font-weight: 400;
}
.t-overline {
  font-family: var(--font-mono);
  font-size: 0.7059rem;
  line-height: 0.9412rem;
  font-weight: 500;
}
.t-overline { text-transform: uppercase; letter-spacing: 0.06em; }

/* Base styles for the Clear look. Tokens come from tokens.css (generated). */
html { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Follow the iPhone's Text Size setting (Dynamic Type); 17px is the iOS default body size. */
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 0.8824rem; /* body 15px */
  line-height: 1.4667;
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
  overflow-wrap: anywhere;
}
#app { min-height: 100dvh; display: flex; flex-direction: column; }

.screen {
  flex: 1;
  width: 100%;
  padding: calc(var(--space-5) + env(safe-area-inset-top)) calc(var(--space-5) + env(safe-area-inset-right)) var(--space-6) calc(var(--space-5) + env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: var(--space-5);
}
.screen > * { margin: 0; }
.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.muted { color: var(--muted); }
.t-overline { color: var(--muted); }
h1, h2, h3, p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a, button, input, summary, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Anything tappable: at least 44x44 (F13). */
button, .btn, .link-btn, input:not([type=hidden]), summary {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-2) var(--space-4);
  border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; cursor: pointer; text-decoration: none; width: 100%;
}
.btn[disabled] { opacity: 0.6; }
.btn-quiet {
  background: transparent; color: var(--accent); border: 1px solid var(--line);
}
.link-btn {
  display: inline-flex; align-items: center; padding: 0 var(--space-1);
  background: none; border: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  align-self: flex-start;
}

form { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label { font-weight: 500; }
.field .hint { color: var(--muted); }
input[type=text] {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: max(1rem, 16px); /* 16px+ stops iOS zooming on focus */
}
.error { color: var(--over); }
.error::before { content: "! "; font-weight: 600; }

/* Lists: rows split by hairlines, no boxes. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li {
  min-height: 48px; padding: var(--space-3) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  border-bottom: 1px solid var(--divider);
}
.rows > li:first-child { border-top: 1px solid var(--divider); }
.row-main { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pill { color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--line); flex: none; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }

.empty { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-6); }
.empty svg { color: var(--quiet); }

.offline-note {
  padding: var(--space-2) var(--space-5);
  padding-top: calc(var(--space-2) + env(safe-area-inset-top));
  background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink);
}
.offline-note[hidden] { display: none; }
.offline-note + .screen { padding-top: var(--space-5); }

/* Tab bar */
.tab-bar {
  position: sticky; bottom: 0; z-index: 2;
  background: var(--ground); border-top: 1px solid var(--divider);
  padding: var(--space-1) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.tab-bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.tab-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; min-width: var(--tap-min); padding: var(--space-1) 0;
  color: var(--quiet); text-decoration: none; text-align: center;
}
.tab-bar a[aria-current=page] { color: var(--ink); }
/* Tab labels grow with text size up to 14px, then stop (as iOS's own tab bars do); five labels must fit 375px. */
.tab-bar .tab-label { font-size: min(0.7059rem, 14px); line-height: 1.2; font-weight: 500; overflow-wrap: normal; word-break: keep-all; max-width: 100%; }
.tab-bar li { min-width: 0; display: flex; justify-content: center; }
.tab-bar a.quick-add {
  width: 52px; height: 52px; min-height: 52px; margin: 0 auto;
  border-radius: var(--radius-lg); background: var(--accent); color: var(--on-accent);
}
.icon { width: 22px; height: 22px; flex: none; }

.figure-row { display: flex; flex-direction: column; gap: var(--space-1); }
.share-link { font-family: var(--font-mono); color: var(--muted); user-select: all; -webkit-user-select: all; }
.btn-provider { gap: var(--space-2); background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
