/* MaintTrack — the only project stylesheet.
   Every page links /css/app.css. Do not add <style> blocks or extra CSS files.
   Theme tokens are the variables below. Dynamic tile photos set --tile-photo.
   Anybody (SIL Open Font License) stands in for UNITED24's Nuber Next, which is not free to redistribute.
   Width is the display cut; body copy stays a little narrower. */
@import url("https://fonts.googleapis.com/css2?family=Anybody:wdth,wght@110..150,400..900&display=swap");

/* Baseline the pages used to get from the Tailwind CDN preflight.
   Headings, links, lists, images, and controls would jump back to browser
   defaults without it. The type rules below still win on html h1/h2/h3. */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre { margin: 0; }
menu, ol, ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button, select { text-transform: none; }
button, input:where([type="button"]), input:where([type="reset"]), input:where([type="submit"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }

:root {
  --bg: #0a0a0a;
  --bg-deep: #000000;
  --bg-raised: #141414;
  --bg-card: #141414;
  --text: #f4f4f5;
  --text-soft: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #8d8d96;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --radius: 0;
  --glow: rgba(37, 99, 235, 0.05);
  --glow-emerald: rgba(37, 99, 235, 0.035);
  --accent: #2563eb;
  --accent-ink: #60a5fa;
  /* Soft halo for blue text. Large figures use --halo; small labels use --halo-soft. */
  --halo: 0 0 12px rgba(37, 99, 235, 0.32), 0 0 26px rgba(37, 99, 235, 0.16);
  --halo-soft: 0 0 5px rgba(96, 165, 250, 0.28), 0 0 12px rgba(37, 99, 235, 0.12);
  --link-glow: 0 0 8px rgba(191, 219, 254, 0.55), 0 0 18px rgba(37, 99, 235, 0.32);
  --link-glow-neutral: 0 0 8px rgba(255, 255, 255, 0.28), 0 0 16px rgba(37, 99, 235, 0.22);
  /* Add Asset fill. The control is .btn-primary; its blue is #2563eb and its hover is #1d4ed8. */
  --btn-primary: #2563eb;
  --btn-primary-hover: #1d4ed8;
  --btn-primary-active: #1e40af;
  --btn-glow: rgba(37, 99, 235, 0.28);
  --btn-glow-hover: rgba(37, 99, 235, 0.46);
  --btn-drop: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 16px rgba(0, 0, 0, 0.38);
  --btn-drop-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 12px 22px rgba(0, 0, 0, 0.46);
  --btn-drop-soft: 0 1px 2px rgba(0, 0, 0, 0.35), 0 5px 12px rgba(0, 0, 0, 0.24);
  --btn-drop-soft-hover: 0 2px 3px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 0, 0, 0.32);
  --metal-fallback: #ffffff;
  --font: "Anybody", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

html, body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
html body {
  font-family: var(--font);
  font-weight: 430;
  font-stretch: 112%;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

body {
  position: relative;
  min-height: 100%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: min(70vw, 820px);
  height: min(50vh, 520px);
  left: -12vw;
  top: -18vh;
  background: radial-gradient(circle, var(--glow), transparent 68%);
}

body::after {
  width: min(48vw, 560px);
  height: min(40vh, 420px);
  right: -10vw;
  bottom: -12vh;
  background: radial-gradient(circle, var(--glow-emerald), transparent 70%);
}

/* Stack page sections above the cursor glow. .fixed is excluded so the id
   specificity here cannot pull modals, toasts, or the sidebar overlay back
   into normal flow. #app itself must not become a stacking context: the
   mobile drawer is position:fixed inside it, and a z-index here would trap
   that drawer under the body-level backdrop. */
#app, body > header, body > main, body > footer, body > div:not(.cursor-glow):not(.fixed) {
  position: relative;
  z-index: 1;
}
#app {
  z-index: auto;
}
#app > .app-main {
  position: relative;
  z-index: 1;
}

/* Faint blue wash under the pointer. The script only adds this on fine pointers. */
.cursor-glow {
  --cursor-x: -999px;
  --cursor-y: -999px;
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.05) 42%, transparent 70%);
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%);
  transition: opacity 0.18s linear;
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* Flat high-contrast type. The metallic sheen is gone: it fought the extended uppercase.
   Figures use the blue accent. Status colors stay on their own classes. */
html h1, html h2, html h3, .display {
  font-family: var(--font);
  font-weight: 500;
  font-stretch: 142%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: #fff;
  background: none;
}
html h1, .display { font-size: clamp(1.7rem, 2.5vw, 2.15rem); }
html h2 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.18; }
html h3 { font-size: 1.05rem; font-stretch: 138%; font-weight: 650; line-height: 1.15; }
#view-title { font-size: 1.15rem; line-height: 1.1; }

.statement {
  font-weight: 850;
  font-stretch: 148%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: #fff;
}

.kicker {
  font-weight: 600;
  font-stretch: 120%;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.figure, .metal, html .text-2xl.font-bold {
  font-weight: 720;
  font-stretch: 138%;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.accent, a.accent { color: var(--accent-ink); }
a.accent:hover { color: #bfdbfe; }

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.nav-btn.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--inset), 0 0 24px rgba(99, 102, 241, 0.16);
}

.btn-primary, .btn-secondary, .btn-style, .btn-read {
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 122%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
}
html .btn-primary,
html button.bg-emerald-600,
html a.bg-emerald-600 {
  cursor: pointer;
  background-color: var(--btn-primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--inset), var(--btn-drop), 0 0 20px var(--btn-glow);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
html .btn-primary:hover,
html button.bg-emerald-600:hover,
html a.bg-emerald-600:hover {
  background-color: var(--btn-primary-hover);
  box-shadow: var(--inset), var(--btn-drop-hover), 0 0 28px var(--btn-glow-hover);
}
html .btn-primary:active,
html button.bg-emerald-600:active,
html a.bg-emerald-600:active {
  background-color: var(--btn-primary-active);
  box-shadow: var(--inset), 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 12px var(--btn-glow);
}
html .btn-primary:focus-visible,
html button.bg-emerald-600:focus-visible,
html a.bg-emerald-600:focus-visible {
  outline: 2px solid var(--btn-primary);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: 120%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--inset), var(--btn-drop-soft);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--inset), var(--btn-drop-soft-hover);
}
.btn-secondary:active {
  box-shadow: var(--inset), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn-secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.btn-secondary.text-xs {
  box-sizing: content-box;
  font-size: 0.75rem;
  line-height: 1.25;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
  overflow: visible;
}
.schedule-notes-add { width: max-content; max-width: 100%; }

.btn-style {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--inset), var(--btn-drop-soft), 0 0 18px rgba(99, 102, 241, 0.2);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
.btn-style:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--inset), var(--btn-drop-soft-hover), 0 0 22px rgba(99, 102, 241, 0.32);
}
.btn-style:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--inset), var(--btn-drop-soft), 0 0 16px rgba(56, 189, 248, 0.2);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
.btn-read:hover {
  background: rgba(14, 165, 233, 0.12);
  box-shadow: var(--inset), var(--btn-drop-soft-hover), 0 0 20px rgba(56, 189, 248, 0.32);
}
.btn-read:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.8);
  outline-offset: 2px;
}

.card, .plan-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: none;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.form-input {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: var(--inset);
}
.upload-picker { margin-top: 0.25rem; }
.upload-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.upload-choice { position: relative; display: inline-flex; overflow: hidden; }
.upload-choice:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}
.upload-choice .btn-secondary {
  pointer-events: none;
  min-height: 2.75rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}
.upload-choice-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
  box-shadow: none;
  background: transparent;
}
.schedule-note {
  white-space: pre-wrap;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-height: 16rem;
  overflow: auto;
}
textarea.schedule-note-input {
  min-height: 4.5rem;
  resize: vertical;
}
textarea.schedule-note-editor {
  min-height: 50vh;
  resize: vertical;
  white-space: pre-wrap;
  line-height: 1.45;
}
textarea.pdf-task-input {
  min-height: 3.25rem;
  resize: vertical;
  line-height: 1.35;
}
.pdf-duplicate { box-shadow: inset 3px 0 0 #fbbf24; }

.form-input[readonly] {
  color: var(--text-muted);
  border-style: dashed;
}
.vin-notice {
  margin-top: 0.5rem;
  color: #fbbf24;
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}
.vin-notice-locked {
  color: var(--text-muted);
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 1px;
}

.ocr-glow {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 0 16px rgba(56, 189, 248, 0.55);
  animation: ocr-pulse 1.2s ease-in-out infinite;
}
@keyframes ocr-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 0 10px rgba(56, 189, 248, 0.35); }
  50% { box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.7), 0 0 22px rgba(56, 189, 248, 0.8); }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-dim);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--line);
}
.status-healthy {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.28);
}
.status-oos {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.3);
}

/* Garage tiles set only --tile-photo (the photo URL) inline. The wash, size, and position live here. */
.asset-tile-photo {
  background-image: linear-gradient(rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.84)), var(--tile-photo);
  background-size: cover;
  background-position: center;
}

.resend-image-card {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 36px rgba(99, 102, 241, 0.14);
}
.resend-image-card img {
  display: block;
  width: 100%;
  height: auto;
}
.resend-image-card.hidden,
.photo-style-actions.hidden,
.photo-style-kept.hidden {
  display: none;
}
.asset-style-card {
  margin: -1rem -1rem 0.75rem;
  border: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: none;
}
.asset-style-card img {
  max-height: 180px;
  object-fit: cover;
}
.record-style-card { max-width: 220px; margin-bottom: 0.5rem; }
.saved-style-card { margin-top: 0.5rem; }
.saved-style-card .btn-secondary { margin: 0.5rem; }

.photo-style-tools { margin-top: 0.25rem; }
.photo-style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.photo-style-status, .photo-style-kept {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.photo-style-lock {
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--inset);
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}
.photo-style-lock a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.photo-style-lock-mark {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.55);
  vertical-align: -1px;
}

/* Tailwind utility bridge. The CDN injects its slate colors after this file,
   so these rules sit under html and the variables win. */
html .bg-slate-950 { background-color: var(--bg-deep); }
html .bg-slate-900 { background-color: var(--bg); }
html .bg-slate-800 { background-color: var(--bg-raised); }
html .bg-slate-700 { background-color: #1a1a1a; }
html .bg-slate-600 { background-color: #222; }
html .hover\:bg-slate-800:hover { background-color: rgba(255, 255, 255, 0.04); }
html .hover\:bg-slate-700:hover { background-color: rgba(255, 255, 255, 0.06); }
html .hover\:bg-slate-600:hover { background-color: rgba(255, 255, 255, 0.08); }
html .border-slate-800,
html .border-slate-700,
html .border-slate-600 { border-color: var(--line); }
.border-emerald-600, .hover\:border-emerald-500:hover { border-color: rgba(37, 99, 235, 0.85); }
.hover\:border-amber-500:hover { border-color: rgba(251, 191, 36, 0.65); }
.text-slate-100, .text-slate-200 { color: var(--text); }
.text-slate-300 { color: var(--text-soft); }
.text-slate-400 { color: var(--text-muted); }
.text-slate-500 { color: var(--text-dim); }
.rounded-xl, .rounded-lg { border-radius: var(--radius); }
.bg-slate-800.border,
.bg-slate-800.rounded-xl,
#modal-content,
#sidebar {
  border-color: var(--line);
  box-shadow: var(--inset);
}
#sidebar {
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  z-index: 50;
  pointer-events: auto;
}
#sidebar-overlay {
  z-index: 40;
}
#modal-content {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--inset), 0 0 60px rgba(99, 102, 241, 0.1);
}

a { text-underline-offset: 2px; }

/* Filled and outline actions outside .btn-primary still share the same shadow. */
button.bg-slate-700,
button.bg-slate-800,
a.border.rounded,
a.border.rounded-lg {
  box-shadow: var(--inset), var(--btn-drop-soft);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
button.bg-slate-700:hover,
button.bg-slate-800:hover,
a.border.rounded:hover,
a.border.rounded-lg:hover {
  box-shadow: var(--inset), var(--btn-drop-soft-hover);
}
button.bg-slate-700:active,
button.bg-slate-800:active,
a.border.rounded:active,
a.border.rounded-lg:active {
  box-shadow: var(--inset), 0 1px 2px rgba(0, 0, 0, 0.4);
}
button.bg-slate-700:focus-visible,
button.bg-slate-800:focus-visible,
a.border.rounded:focus-visible,
a.border.rounded-lg:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

button.bg-amber-600,
a.bg-amber-600 {
  box-shadow: var(--inset), var(--btn-drop), 0 0 18px rgba(217, 119, 6, 0.24);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
button.bg-amber-600:hover,
a.bg-amber-600:hover {
  box-shadow: var(--inset), var(--btn-drop-hover), 0 0 24px rgba(217, 119, 6, 0.38);
}
button.bg-amber-600:active,
a.bg-amber-600:active {
  box-shadow: var(--inset), 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 12px rgba(217, 119, 6, 0.24);
}
button.bg-amber-600:focus-visible,
a.bg-amber-600:focus-visible {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

button.bg-sky-600,
a.bg-sky-600 {
  box-shadow: var(--inset), var(--btn-drop), 0 0 18px rgba(2, 132, 199, 0.28);
  transition: background-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease;
}
button.bg-sky-600:hover,
a.bg-sky-600:hover {
  box-shadow: var(--inset), var(--btn-drop-hover), 0 0 24px rgba(14, 165, 233, 0.4);
}
button.bg-sky-600:active,
a.bg-sky-600:active {
  box-shadow: var(--inset), 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 12px rgba(2, 132, 199, 0.28);
}
button.bg-sky-600:focus-visible,
a.bg-sky-600:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .asset-style-card img { max-height: 140px; }
  .card, .plan-card { padding: 0.85rem; }
  body::before, body::after { opacity: 0.75; }
  html h1, .display { font-size: 1.35rem; line-height: 1.08; }
  html h2 { font-size: 1.2rem; }
  .statement { font-size: 1.2rem; }
}

label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 650;
  font-stretch: 118%;
}
label span, label .text-xs,
input, textarea, select {
  text-transform: none;
  letter-spacing: -0.011em;
  font-weight: 430;
  font-stretch: 112%;
}
label span, label .text-xs { font-size: 0.8rem; }

/* Nowrap flex rows inside a half column spill at phone width. Wrap only when
   the line does not fit, so the desktop row stays one line. */
[data-tile="reminders"] .mt-2.flex {
  flex-wrap: wrap;
  row-gap: 0.2rem;
}
label.form-label.flex {
  flex-wrap: wrap;
  row-gap: 0.15rem;
}

.sidebar-brand {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.sidebar-brand:hover .font-semibold { color: #fff; }
#sidebar .sidebar-brand .font-semibold {
  text-transform: uppercase;
  font-stretch: 145%;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: #fff;
  font-size: 1rem;
}
.card .text-lg.font-semibold {
  text-transform: uppercase;
  font-stretch: 132%;
  letter-spacing: -0.02em;
}

/* Public pages. Hairline bands and a two-column statement, in the UNITED24 rhythm. */
.site-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.site-bar .brand {
  font-weight: 750;
  font-stretch: 145%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.site-bar .bar-actions { margin-left: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sheet { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.sheet.sheet-start { padding-top: 2.5rem; }
.sheet.narrow { max-width: 440px; padding-top: 3rem; }
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-bottom: 1px solid var(--line);
}
.hero-split > div { padding: 2.5rem 1.5rem 2.5rem 0; }
.hero-split > div + div { padding: 2.5rem 0 2.5rem 1.5rem; border-left: 1px solid var(--line); }
.lede { margin-top: 1rem; max-width: 38rem; color: var(--text-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.band { padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.band > .kicker { display: block; margin: 0.4rem 0 1.25rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-cell { padding: 1.25rem 1rem 1.35rem 0; border-top: 1px solid var(--line); }
.stat-cell .figure { font-size: clamp(2.4rem, 4vw, 3.6rem); display: block; }
.stat-cell span { display: block; margin-top: 0.45rem; color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; font-stretch: 118%; }
.step-grid, .feature-grid, .plan-grid { display: grid; gap: 0; }
.step-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid > div, .feature-grid > div { padding: 1.25rem 1.25rem 1.25rem 0; border-top: 1px solid var(--line); }
.step-no { display: block; font-size: 2rem; font-weight: 800; font-stretch: 145%; letter-spacing: -0.04em; color: var(--accent); line-height: 1; margin-bottom: 0.6rem; }
.feature-grid { grid-template-columns: 1fr 1fr; }
.feature-grid strong { display: block; text-transform: uppercase; letter-spacing: -0.02em; font-stretch: 135%; font-weight: 700; margin-bottom: 0.25rem; }
.plan-grid, #plan-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#plan-grid { grid-template-columns: repeat(3, 1fr); }
.plan-grid .plan-card, .plan-grid .card, #plan-grid .plan-card { border-radius: 0; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 1.25rem 1rem 1.25rem 0; }
#plan-grid .font-semibold, .plan-grid .kicker { color: var(--accent-ink); }
.start-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.start-list li { counter-increment: step; padding: 0.9rem 0 0.9rem 3rem; border-top: 1px solid var(--line); position: relative; }
.start-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0.85rem; color: var(--accent); font-weight: 800; font-stretch: 140%; letter-spacing: -0.03em; }
.note { color: var(--text-dim); font-size: 0.8rem; margin-top: 1rem; }
.site-foot { border-top: 1px solid var(--line); padding: 1.25rem; text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.site-foot a { color: #fff; text-decoration: none; }
.auth-links { display: flex; gap: 1rem; margin: 0.75rem 0 1.25rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.auth-links a { text-decoration: none; }

@media (max-width: 800px) {
  .hero-split, .step-grid, .plan-grid, #plan-grid { grid-template-columns: 1fr; }
  .feature-grid, .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-split > div, .hero-split > div + div { padding: 1.5rem 0; border-left: 0; }
  .hero-split > div + div { border-top: 1px solid var(--line); }
  .site-bar { flex-wrap: wrap; padding: 0.75rem 1rem; }
  .sheet { padding: 0 1rem 3rem; }
}

/* Long live-number figures (a full dollar total) are one unbreakable string.
   Below ~700px the 2.4rem floor is wider than a half column, so the grid
   grows past the viewport. Scale the figure to the cell; desktop stays put. */
@media (max-width: 700px) {
  .stat-cell { min-width: 0; container-type: inline-size; }
  .stat-cell .figure {
    font-size: clamp(1.15rem, 10.5cqi, 2.4rem);
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Blue text halo. .halo is the large figure; .halo-soft is for small labels.
   Every selector that paints the accent blue is listed so JS-rendered classes match. */
.halo { text-shadow: var(--halo); }
.halo-soft,
.kicker,
.accent,
a.accent,
#plan-grid .font-semibold,
.plan-grid .kicker,
html .text-sky-300,
html .text-sky-400,
html .text-blue-400,
html .text-blue-500,
html .text-blue-600 {
  text-shadow: var(--halo-soft);
}
.figure,
.metal,
html .text-2xl.font-bold,
.step-no,
.start-list li::before {
  text-shadow: var(--halo);
}
html .text-amber-400,
html .text-emerald-400,
html .text-red-400,
html .text-emerald-300,
.kicker.text-amber-400,
#plan-grid .text-amber-400,
.status-healthy,
.status-oos {
  text-shadow: none;
}
@media (max-width: 640px) {
  .figure,
  .metal,
  html .text-2xl.font-bold,
  .step-no,
  .start-list li::before {
    text-shadow: var(--halo-soft);
  }
}

/* Click glow. Hover only on devices that can hover, so a tap does not stay lit.
   Keyboard focus-visible keeps the same glow. Disabled controls are left alone. */
@media (hover: hover) {
  html .btn-primary:hover:not(:disabled),
  html button.bg-emerald-600:hover:not(:disabled),
  html a.bg-emerald-600:hover {
    box-shadow: var(--inset), var(--btn-drop-hover), 0 0 16px rgba(37, 99, 235, 0.5), 0 0 34px rgba(37, 99, 235, 0.28);
  }
  .btn-secondary:hover:not(:disabled),
  .btn-style:hover:not(:disabled),
  .nav-btn:hover,
  button.bg-slate-700:hover:not(:disabled),
  button.bg-slate-800:hover:not(:disabled),
  a.border.rounded:hover,
  a.border.rounded-lg:hover {
    box-shadow: var(--inset), var(--btn-drop-soft-hover), 0 0 14px rgba(37, 99, 235, 0.32), 0 0 28px rgba(37, 99, 235, 0.14);
  }
  .btn-read:hover:not(:disabled) {
    box-shadow: var(--inset), var(--btn-drop-soft-hover), 0 0 16px rgba(56, 189, 248, 0.4);
  }
  button.bg-amber-600:hover:not(:disabled),
  a.bg-amber-600:hover {
    box-shadow: var(--inset), var(--btn-drop-hover), 0 0 16px rgba(217, 119, 6, 0.45), 0 0 32px rgba(217, 119, 6, 0.2);
  }
  button.bg-sky-600:hover:not(:disabled),
  a.bg-sky-600:hover {
    box-shadow: var(--inset), var(--btn-drop-hover), 0 0 16px rgba(14, 165, 233, 0.45), 0 0 32px rgba(14, 165, 233, 0.22);
  }
  button:not(:disabled):not(.btn-primary):not(.btn-secondary):not(.btn-style):not(.btn-read):not(.nav-btn):not(.underline):not(.bg-amber-600):not(.bg-sky-600):not(.bg-slate-700):not(.bg-slate-800):hover,
  .plan-card:hover {
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.35));
  }
  button.underline:hover:not(:disabled) {
    filter: none;
    text-shadow: var(--link-glow-neutral);
  }
  a:hover { text-shadow: var(--link-glow-neutral); }
  a.btn-primary:hover,
  a.btn-secondary:hover,
  a.bg-amber-600:hover,
  a.bg-sky-600:hover { text-shadow: none; }
  html a.accent:hover,
  html a.text-sky-300:hover,
  html a.text-sky-400:hover,
  html a.text-blue-400:hover,
  html a.text-blue-500:hover {
    text-shadow: var(--link-glow);
  }
}

html .btn-primary:focus-visible:not(:disabled),
html a.btn-primary:focus-visible,
html button.bg-emerald-600:focus-visible,
html a.bg-emerald-600:focus-visible {
  box-shadow: var(--inset), var(--btn-drop-hover), 0 0 16px rgba(37, 99, 235, 0.5), 0 0 34px rgba(37, 99, 235, 0.28);
}
.btn-secondary:focus-visible:not(:disabled),
.btn-style:focus-visible:not(:disabled),
.nav-btn:focus-visible,
button.bg-slate-700:focus-visible:not(:disabled),
button.bg-slate-800:focus-visible:not(:disabled) {
  box-shadow: var(--inset), var(--btn-drop-soft-hover), 0 0 14px rgba(37, 99, 235, 0.32), 0 0 28px rgba(37, 99, 235, 0.14);
}
button.underline:focus-visible:not(:disabled),
a:focus-visible {
  text-shadow: var(--link-glow-neutral);
}
a.btn-primary:focus-visible,
a.btn-secondary:focus-visible,
a.bg-amber-600:focus-visible,
a.bg-sky-600:focus-visible { text-shadow: none; }
html a.accent:focus-visible {
  text-shadow: var(--link-glow);
}
button:disabled,
button[disabled] {
  filter: none;
  box-shadow: none;
  text-shadow: none;
}

@media (hover: none) {
  html .btn-primary:hover,
  html button.bg-emerald-600:hover,
  html a.bg-emerald-600:hover {
    background-color: var(--btn-primary);
    box-shadow: var(--inset), var(--btn-drop), 0 0 20px var(--btn-glow);
  }
  .btn-secondary:hover,
  .btn-style:hover {
    background: transparent;
    box-shadow: var(--inset), var(--btn-drop-soft);
  }
  .nav-btn:hover {
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
  }
  .nav-btn.active:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    box-shadow: var(--inset), 0 0 24px rgba(99, 102, 241, 0.16);
  }
  button.bg-slate-700:hover,
  button.bg-slate-800:hover {
    box-shadow: var(--inset), var(--btn-drop-soft);
  }
  button:hover,
  .plan-card:hover {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  button, a, .nav-btn, .plan-card, .btn-primary, .btn-secondary, .btn-style, .btn-read {
    transition: none;
  }
}

/* Hand-written stand-ins for the utility class names already in the HTML and JS.
   These are the classes the pages and scripts toggle (hidden, translate, grids).
   Values match the Tailwind v3 rules the CDN was injecting, so the layout does
   not move. Theme bridges above (html .bg-slate-*, borders, buttons, halo)
   stay in charge where they are more specific. Not a Tailwind build. */

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.bottom-4 { bottom: 1rem; }
.left-0 { left: 0; }
.right-2 { right: 0.5rem; }
.right-4 { right: 1rem; }
.top-2 { top: 0.5rem; }
.top-8 { top: 2rem; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.z-\[70\] { z-index: 70; }

.col-span-full { grid-column: 1 / -1; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[90vh\] { max-height: 90vh; }
.min-h-screen { min-height: 100vh; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-32 { width: 8rem; }
.w-36 { width: 9rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[10rem\] { max-width: 10rem; }

.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.-translate-x-full { transform: translateX(-100%); }
.cursor-pointer { cursor: pointer; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; margin-bottom: 0; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; margin-bottom: 0; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; margin-bottom: 0; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; margin-bottom: 0; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; margin-bottom: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.whitespace-nowrap { white-space: nowrap; }
.object-cover { object-fit: cover; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-r { border-right-width: 1px; }
.border-t { border-top-width: 1px; }
.border-slate-600 { border-color: rgb(71 85 105); }
.border-slate-700 { border-color: rgb(51 65 85); }
.border-slate-800 { border-color: rgb(30 41 59); }
.border-emerald-600 { border-color: rgb(5 150 105); }

.bg-slate-950 { background-color: rgb(2 6 23); }
.bg-slate-900 { background-color: rgb(15 23 42); }
.bg-slate-800 { background-color: rgb(30 41 59); }
.bg-slate-700 { background-color: rgb(51 65 85); }
.bg-black\/60 { background-color: rgb(0 0 0 / 0.6); }
.bg-black\/70 { background-color: rgb(0 0 0 / 0.7); }
.bg-amber-500\/20 { background-color: rgb(245 158 11 / 0.2); }
.bg-amber-600 { background-color: rgb(217 119 6); }
.bg-sky-600 { background-color: rgb(2 132 199); }
.bg-emerald-600 { background-color: rgb(5 150 105); }
.bg-red-600 { background-color: rgb(220 38 38); }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.underline { text-decoration-line: underline; }
.text-slate-100 { color: rgb(241 245 249); }
.text-slate-300 { color: rgb(203 213 225); }
.text-slate-400 { color: rgb(148 163 184); }
.text-slate-500 { color: rgb(100 116 139); }
.text-amber-400 { color: rgb(251 191 36); }
.text-emerald-400 { color: rgb(52 211 153); }
.text-red-400 { color: rgb(248 113 113); }
.text-sky-300 { color: rgb(125 211 252); }
.text-sky-400 { color: rgb(56 189 248); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.hover\:border-amber-500:hover { border-color: rgb(245 158 11); }
.hover\:border-emerald-500:hover { border-color: rgb(16 185 129); }
.hover\:bg-amber-500:hover { background-color: rgb(245 158 11); }
.hover\:bg-sky-500:hover { background-color: rgb(14 165 233); }
.hover\:bg-slate-600:hover { background-color: rgb(71 85 105); }
.hover\:bg-slate-700:hover { background-color: rgb(51 65 85); }
.hover\:text-white:hover { color: #fff; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:items-center { align-items: center; }
}
@media (min-width: 768px) {
  .md\:static { position: static; }
  .md\:hidden { display: none; }
  .md\:translate-x-0 { transform: translateX(0); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Near-black surfaces and hairline borders win over the slate utility colors above. */
html .bg-slate-950 { background-color: var(--bg-deep); }
html .bg-slate-900 { background-color: var(--bg); }
html .bg-slate-800 { background-color: var(--bg-raised); }
html .bg-slate-700 { background-color: #1a1a1a; }
html .bg-slate-600 { background-color: #222; }
html .hover\:bg-slate-800:hover { background-color: rgba(255, 255, 255, 0.04); }
html .hover\:bg-slate-700:hover { background-color: rgba(255, 255, 255, 0.06); }
html .hover\:bg-slate-600:hover { background-color: rgba(255, 255, 255, 0.08); }
html .border-slate-800,
html .border-slate-700,
html .border-slate-600 { border-color: var(--line); }

/* The CDN preflight landed after the input rules and reset these to inherit,
   so a field inside a label picks up that label's weight and tracking. */
button, input, optgroup, select, textarea {
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Public roadmap. Five columns on a wide sheet; they stack on a phone. */
.sheet.sheet-roadmap { max-width: 1440px; }
.roadmap-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 2rem 0 1.35rem;
}
.roadmap-head h1 { max-width: 18ch; }
.roadmap-head .lede { margin-top: 0.65rem; }
.roadmap-updated {
  margin-top: 0.85rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
}
.roadmap-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  border-top: 1px solid var(--line);
}
.roadmap-col {
  min-width: 0;
  padding: 1rem 0.8rem 2.5rem 0;
}
.roadmap-col + .roadmap-col {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
}
.roadmap-col h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.roadmap-col .roadmap-hint {
  display: block;
  margin: 0.35rem 0 0.15rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 430;
  font-stretch: 112%;
}
.roadmap-dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.28rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.roadmap-dot.consideration { color: #a1a1aa; }
.roadmap-dot.next { color: #60a5fa; }
.roadmap-dot.progress { color: #fbbf24; }
.roadmap-dot.beta { color: #38bdf8; }
.roadmap-dot.released { color: #6ee7b7; }
.roadmap-dot.production { color: #4ade80; }
.roadmap-empty {
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.roadmap-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 0.8rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--inset);
  cursor: pointer;
}
.roadmap-card:hover { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); }
.roadmap-card:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.roadmap-card-icon { color: var(--accent-ink); display: flex; }
.roadmap-card-icon svg,
.roadmap-dialog-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.roadmap-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 128%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}
.roadmap-card-desc,
.roadmap-card-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: -0.011em;
  font-weight: 430;
  font-stretch: 112%;
}
.roadmap-card-note { color: var(--text-dim); font-size: 0.72rem; }
.roadmap-card-date {
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}

.roadmap-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.roadmap-dialog.hidden { display: none; }
body.roadmap-lock { overflow: hidden; }
.roadmap-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.roadmap-dialog-panel {
  position: relative;
  width: min(32rem, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--inset), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.roadmap-dialog-x {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}
.roadmap-dialog-x:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.roadmap-dialog-icon { color: var(--accent-ink); display: flex; }
.roadmap-dialog h2 { font-size: 1.15rem; margin-top: 0.45rem; padding-right: 2rem; }
.roadmap-dialog-desc {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.roadmap-dialog form { margin-top: 1.1rem; }
.roadmap-dialog label,
.roadmap-dialog .roadmap-q {
  text-transform: none;
  letter-spacing: -0.011em;
  font-size: 0.92rem;
  font-weight: 500;
  font-stretch: 112%;
  color: var(--text);
}
.roadmap-q { margin-bottom: 0.55rem; }
.roadmap-impact { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.roadmap-impact label { display: flex; align-items: flex-start; gap: 0.55rem; font-weight: 430; color: var(--text-soft); }
.roadmap-impact input { margin-top: 0.2rem; }
.roadmap-field { display: block; margin-bottom: 0.9rem; }
.roadmap-field .form-input,
.roadmap-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.5rem;
}
.roadmap-dialog textarea { min-height: 6.5rem; resize: vertical; }
.roadmap-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 0.9rem;
  font-weight: 430;
  color: var(--text-soft);
}
.roadmap-check input { margin-top: 0.2rem; }
.roadmap-signed {
  margin: -0.35rem 0 0.9rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.roadmap-error { min-height: 1.2rem; margin: 0 0 0.6rem; color: #fca5a5; font-size: 0.85rem; }
.roadmap-dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.roadmap-dialog .btn-primary:disabled { opacity: 0.45; cursor: default; }
.roadmap-success { margin-top: 0.35rem; }
.roadmap-success p { margin: 0.65rem 0 1rem; color: var(--text-muted); }
.roadmap-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inbox-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.inbox-item { padding: 0.85rem 0; border-top: 1px solid var(--line); }
.inbox-item h3 { font-size: 0.95rem; }
.inbox-meta { margin-top: 0.3rem; color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.inbox-details { margin-top: 0.45rem; color: var(--text-soft); white-space: pre-wrap; }

.contact-block { max-width: 40rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.contact-block h2 { margin-bottom: 0.55rem; }
.contact-block .btn-primary,
.contact-block .btn-secondary { margin-top: 0.85rem; }
.contact-form textarea.form-input { min-height: 8rem; resize: vertical; }
.contact-success { margin-top: 0.4rem; color: var(--text); font-weight: 700; }
.contact-error { margin-top: 0.75rem; color: var(--red); font-size: 0.9rem; }

.roadmap-admin-note {
  margin-top: 0.45rem;
  color: var(--accent-ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}
.roadmap-board-error { margin: 0.75rem 0 0; }
.roadmap-cards { min-height: 0.5rem; }
.roadmap-add { width: 100%; margin-top: 0.85rem; }
.roadmap-card-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}
.roadmap-mini {
  padding: 0.28rem 0.45rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.roadmap-mini:hover { border-color: var(--line-strong); }
.roadmap-mini:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.roadmap-card-tools .roadmap-edit { margin-left: auto; }
.roadmap-drag { touch-action: none; cursor: grab; padding-inline: 0.4rem; }
.roadmap-drag:active { cursor: grabbing; }
.roadmap-grip {
  display: block;
  width: 0.7rem;
  height: 0.55rem;
  background: radial-gradient(circle, currentColor 1.1px, transparent 1.4px) 0 0 / 0.28rem 0.28rem;
}
.roadmap-card-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.roadmap-card-open:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.roadmap-move-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.15rem;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}
.roadmap-move { text-transform: none; letter-spacing: 0; font-weight: 430; }
.roadmap-admin .roadmap-card { cursor: default; }
.roadmap-card.roadmap-dragging { opacity: 0.45; pointer-events: none; }

.mt-4 { margin-top: 1rem; }
.supply-form .supply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.supply-form textarea.form-input { min-height: 4.25rem; resize: vertical; }
.supply-assets { display: flex; flex-direction: column; gap: 0.35rem; }
.su-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  align-items: end;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.su-line .su-desc { grid-column: 1 / -1; }
.supply-invoice-preview {
  display: block;
  max-width: 100%;
  max-height: 180px;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
button.supply-card {
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
button.supply-card:hover { border-color: rgba(56, 189, 248, 0.45); }
@media (min-width: 700px) {
  .supply-form .supply-grid { grid-template-columns: 1fr 1fr; }
  .supply-form .supply-span { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .su-line { grid-template-columns: 4.2rem 8.5rem minmax(8rem, 1fr) 4.6rem 5.6rem 5.6rem auto; }
  .su-line .su-desc { grid-column: auto; }
}
.roadmap-col.roadmap-drop { background: rgba(96, 165, 250, 0.08); }

@media (max-width: 1100px) {
  .roadmap-board { grid-template-columns: 1fr 1fr; }
  .roadmap-col + .roadmap-col { border-left: 0; padding-left: 0; }
  .roadmap-col:nth-child(2n) { padding-left: 0.8rem; border-left: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .roadmap-head { flex-direction: column; align-items: stretch; padding-top: 1.35rem; }
  .roadmap-head .btn-primary { width: 100%; }
  .roadmap-board { grid-template-columns: 1fr; }
  .roadmap-col,
  .roadmap-col:nth-child(2n) { padding-left: 0; border-left: 0; }
  .roadmap-dialog { padding: 0.5rem; align-items: flex-end; }
  .roadmap-dialog-panel { max-height: 92vh; padding: 1rem 0.9rem 0.9rem; }
  .roadmap-dialog-actions { justify-content: stretch; }
  .roadmap-dialog-actions .btn-primary,
  .roadmap-dialog-actions .btn-secondary { flex: 1 1 auto; }
  .inbox-stats { grid-template-columns: 1fr 1fr; }
}

/* Chart pop-out. Colors come from the theme tokens so a light override of
   --text, --bg-raised, and --line restyles the dialog and the canvas. */
:root {
  --chart-grid: color-mix(in srgb, var(--text) 12%, transparent);
}
.chart-card { grid-column: span 2 / span 2; }
.chart-tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding-right: 1.35rem;
}
.chart-tile-copy { min-width: 0; }
.chart-reset {
  display: inline;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chart-reset[hidden] { display: none; }
.chart-reset:hover { color: var(--text); }
.chart-reset:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chart-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.chart-expand:hover,
.chart-card:hover .chart-expand { color: var(--text); border-color: var(--line-strong); }
.chart-expand:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chart-hit { cursor: zoom-in; }
.chart-hit:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chart-hit canvas { width: 100%; cursor: zoom-in; }
body.chart-popout-open { overflow: hidden; }
#chart-popout {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.chart-popout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.chart-popout-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--inset), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 0.9rem 1rem 0.8rem;
}
.chart-popout-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
html .chart-popout h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.15;
}
.chart-popout-heading p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.chart-popout-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.35rem -0.2rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  flex: 0 0 auto;
}
.chart-popout-close:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--text) 8%, transparent); }
.chart-popout-close:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 0.9rem;
  margin: 0.85rem 0 0.7rem;
}
.chart-control { display: flex; flex-direction: column; gap: 0.28rem; min-width: 0; }
.chart-control-label,
.chart-control label {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}
.chart-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); }
.chart-seg button,
.chart-text-btn {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  min-height: 2.25rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: none;
}
.chart-seg button:last-child { border-right: 0; }
.chart-seg button[aria-pressed="true"],
.chart-text-btn[aria-pressed="true"],
.chart-text-btn.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.chart-seg button:focus-visible,
.chart-text-btn:focus-visible,
.chart-select:focus-visible,
.chart-date:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chart-text-btn { border: 1px solid var(--line); }
.chart-control-actions { flex-direction: row; align-items: center; gap: 0.45rem; }
.chart-select,
.chart-date {
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  min-height: 2.25rem;
  font: inherit;
  font-size: 0.85rem;
  box-shadow: var(--inset);
}
.chart-custom { flex-direction: row; align-items: flex-end; gap: 0.45rem; }
.chart-custom.is-hidden { display: none; }
.chart-popout-stage {
  position: relative;
  height: min(52vh, 460px);
  min-height: 240px;
  touch-action: none;
}
.chart-popout-stage canvas { display: block; max-width: 100%; }
.chart-popout-hint {
  margin: 0.55rem 0 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.4;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.25rem; }
.form-actions .btn-primary, .form-actions .btn-secondary { flex: 1 1 8rem; }
.record-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.record-row > div:first-child { min-width: 0; }
.row-menu { position: relative; flex: 0 0 auto; }
.row-menu-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
}
.row-menu-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.row-menu-pop {
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 20;
  min-width: 8rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--inset);
}
.row-menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}
.row-menu-pop button:hover { background: rgba(255, 255, 255, 0.06); }
.app-foot {
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.error-report {
  max-width: 22rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: #9f1239;
  color: #fff;
  box-shadow: var(--inset), 0 12px 30px rgba(0, 0, 0, 0.35);
}
.error-report-message { margin: 0; font-size: 0.9rem; line-height: 1.35; }
.error-report-meta { margin: 0.35rem 0 0; font-size: 0.75rem; line-height: 1.35; opacity: 0.92; }
@media (max-width: 720px) {
  #chart-popout { padding: 0; align-items: stretch; }
  .chart-popout-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  }
  .chart-popout-stage { flex: 1 1 auto; height: auto; min-height: 240px; }
  .chart-controls { gap: 0.65rem; }
}
