/* Reroute: one stylesheet for the app and the legal pages. No external fonts or
   frameworks (the Content-Security-Policy allows styles and fonts from this site only). */

/* ---------- tokens ---------- */
:root {
  --bg: #f6f7f5;
  --bg-tint: #edf4f1;
  --surface: #ffffff;
  --surface-2: #f3f6f4;
  --ink: #12201c;
  --ink-2: #33433e;
  --muted: #5f6d68;
  --line: #e1e7e4;
  --line-strong: #c9d3cf;
  --accent: #0d6b61;
  --accent-hover: #0a574f;
  --accent-ink: #ffffff;
  --accent-soft: #e1f1ec;
  --accent-soft-ink: #0b5a51;
  --sun: #f2b544;
  --sun-soft: #fdf2d8;
  --warn: #8a5800;
  --warn-soft: #fcf1d8;
  --danger: #b4322b;
  --danger-soft: #fcebea;
  --good: #1b7843;
  --good-soft: #e1f3e8;
  --info: #24589f;
  --info-soft: #e6eefa;
  --tip-bg: #14231f;
  --tip-ink: #ffffff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 28, 0.06);
  --shadow: 0 1px 2px rgba(16, 32, 28, 0.05), 0 6px 20px rgba(16, 32, 28, 0.06);
  --shadow-lg: 0 18px 50px rgba(16, 32, 28, 0.18);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --bg-tint: #13201d;
    --surface: #18201e;
    --surface-2: #1e2826;
    --ink: #e8eeeb;
    --ink-2: #c5d0cc;
    --muted: #9aa8a3;
    --line: #2a3532;
    --line-strong: #3a4743;
    --accent: #4fbfae;
    --accent-hover: #6bd0c0;
    --accent-ink: #062521;
    --accent-soft: #1b322e;
    --accent-soft-ink: #8fdccf;
    --sun-soft: #3a2f17;
    --warn: #f1c46d;
    --warn-soft: #362c18;
    --danger: #f2948d;
    --danger-soft: #3a1f1d;
    --good: #82d3a2;
    --good-soft: #1a3324;
    --info: #9cbcf2;
    --info-soft: #1c2840;
    --tip-bg: #e8eeeb;
    --tip-ink: #12201c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip; /* nothing should ever make the page scroll sideways */
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 10px; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.35; margin: 18px 0 6px; font-weight: 650; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }
.icon-lg { width: 32px; height: 32px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.fine { font-size: 0.86rem; color: var(--muted); }
.center { text-align: center; }
.danger { color: var(--danger); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- header and footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.2rem var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.logo { display: block; border-radius: 8px; }
.landing-nav { display: flex; gap: 22px; margin-left: auto; }
.landing-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.landing-nav a:hover { color: var(--accent); }
@media (max-width: 760px) { .landing-nav { display: none; } }

.user-menu { margin-left: auto; position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font: 500 0.94rem var(--font); color: var(--ink); cursor: pointer;
}
.user-btn:hover { border-color: var(--line-strong); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .user-name { display: none; } }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px;
}
.menu-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 6px 10px 4px; font-weight: 600; }
.menu [role="menuitem"] {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--radius-sm);
  background: none; border: 0; font: 500 0.94rem var(--font); color: var(--ink); text-decoration: none; cursor: pointer; text-align: left;
}
.menu [role="menuitem"]:hover, .menu [role="menuitem"]:focus-visible { background: var(--surface-2); outline: none; }
.menu [role="menuitem"].danger { color: var(--danger); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 32px; flex-wrap: wrap; }
.footer-brand { max-width: 460px; }
.footer-brand .brand { font-size: 1.05rem; margin-bottom: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.footer-links a:hover { color: var(--accent); }
.contact-wrap { max-width: 640px; text-align: center; }
.contact-card { display: grid; gap: 12px; justify-items: center; }
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-line { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.contact-line .icon { color: var(--accent); }
.contact-line .contact-email { font-size: 1.05rem; color: var(--ink); }
#support-contact .contact-line { justify-content: flex-start; }
.contact-email { font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.copy-email { font-size: 0.86rem; margin-left: 2px; }

/* ---------- buttons and form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem var(--font); color: var(--accent-ink); background: var(--accent);
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; min-height: 42px;
  cursor: pointer; text-decoration: none; transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--accent-soft); color: var(--accent-soft-ink); box-shadow: none; }
.btn-secondary:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); color: var(--accent-soft-ink); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); color: #fff; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: 0.86rem; border-radius: 8px; }
.btn-lg { padding: 12px 22px; min-height: 48px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 42px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--danger); }
.link-like { color: var(--accent); text-decoration: underline; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }

.input, .select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { resize: vertical; line-height: 1.55; min-height: 64px; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6d68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.field { margin: 14px 0 0; }
.field-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--ink-2); }
.field-label label { cursor: pointer; }
.field-action { margin-left: auto; font-weight: 600; }
.field-action:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.count { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.over { color: var(--danger); font-weight: 600; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }

/* ---------- tooltips: data-tip="text" on any element ---------- */
/* The tip only exists while shown, so hidden tips never widen the page. */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after, .info-tip:focus::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 60;
  transform: translateX(-50%);
  width: max-content; max-width: min(260px, 80vw);
  background: var(--tip-bg); color: var(--tip-ink);
  font: 500 0.8rem/1.45 var(--font); letter-spacing: 0; text-align: left; white-space: normal;
  padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow);
  pointer-events: none; animation: tip-in 0.15s ease-out 0.3s both;
}
[data-tip-pos="left"]:hover::after, [data-tip-pos="left"]:focus-visible::after, .info-tip[data-tip-pos="left"]:focus::after { left: auto; right: 0; transform: none; }
[data-tip-pos="right"]:hover::after, [data-tip-pos="right"]:focus-visible::after, .info-tip[data-tip-pos="right"]:focus::after { left: 0; transform: none; }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none) { [data-tip]:not(.info-tip):hover::after { display: none; } }
.info-tip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: help; padding: 0; }
.info-tip:hover, .info-tip:focus { color: var(--accent); background: var(--accent-soft); outline: none; }

/* ---------- cards, pills, notices ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card > h2:first-child, .card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.hint { color: var(--muted); font-size: 0.93rem; margin: 0 0 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-accent { background: var(--accent-soft); color: var(--accent-soft-ink); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--info-soft); color: var(--info); }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius); padding: 10px 14px; font-size: 0.92rem; margin: 10px 0; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-good { background: var(--good-soft); color: var(--good); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-soft-ink); border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; font: 500 0.88rem var(--font); }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--accent); }
.chip-x { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0; display: inline-grid; place-items: center; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; }
.empty .icon { width: 30px; height: 30px; color: var(--line-strong); margin-bottom: 6px; }
.empty p { margin: 4px 0 12px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 10px 0; }
.skeleton.w60 { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px));
  background: var(--tip-bg); color: var(--tip-ink); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-weight: 500; animation: toast-in 0.2s ease-out;
}
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- landing page ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--accent-soft), transparent 60%), radial-gradient(700px 400px at -10% 110%, var(--sun-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.82rem; font-weight: 600; color: var(--accent-soft-ink); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px; }
.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.signin-box { display: grid; gap: 10px; justify-items: start; }
.signin-box .fine { max-width: 440px; }
.signin-return { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.signin-return .card { max-width: 420px; text-align: center; display: grid; gap: 14px; justify-items: center; }
/* The maintenance page (served from CloudFront's edge; see terraform/modules/static-site). */
.signin-return .break-card { width: min(480px, 100%); max-width: 480px; padding: 32px 28px; gap: 16px; }
.break-card h1 { margin: 0; }
.break-card p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.break-contact { width: 100%; display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.break-contact .contact-email { color: var(--ink); }
.hero-visual { position: relative; }
/* "Your route": one card, the steps in order, joined by one continuous line. */
.journey { max-width: 460px; margin-left: auto; padding: 22px 24px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); }
.journey-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.journey-head b { font: 700 1.05rem var(--font-display); }
.journey-head span { font-size: 0.84rem; color: var(--muted); }
.journey-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.journey-steps::before { content: ""; position: absolute; left: 21px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--accent) 0 62%, var(--line-strong) 62% 100%); }
.journey-steps li { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 0; }
.journey-steps li > div { flex: 1; min-width: 0; }
.journey-steps li b { display: block; font-size: 0.95rem; }
.journey-steps li div span { font-size: 0.84rem; color: var(--muted); }
.js-dot { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); }
.journey-steps li.done .js-dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.journey-steps li.now .js-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.js-done { color: var(--good); flex: none; }
.js-tag { flex: none; font-size: 0.75rem; font-weight: 700; color: var(--accent-soft-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.score-ring { --score: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--surface) 76%, transparent 78%), conic-gradient(var(--accent) calc(var(--score) * 1%), var(--line) 0); }
.score-ring b { font-size: 0.95rem; }
.score-78 { --score: 78; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .hero-visual { max-width: 460px; width: 100%; justify-self: center; }
  .journey { margin: 0 auto; }
}
@media (max-width: 520px) { .hero-visual { display: none; } }

.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.section-eyebrow { text-align: center; color: var(--accent); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.025em; margin: 0 auto 36px; max-width: 680px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature h3 { margin: 14px 0 6px; font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feature-icon .icon { width: 22px; height: 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 0; }
.steps h3 { margin: 14px 0 6px; }
.steps p { color: var(--muted); margin: 0; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 900px; margin: 0 auto 24px; }
@media (max-width: 680px) { .trust-grid { grid-template-columns: 1fr; } }
.trust { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.trust .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.trust h3 { margin: 0 0 4px; }
.trust p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.faq-wrap { max-width: 760px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap; }
.cta-band h2 { color: var(--accent-ink); font-size: 1.7rem; margin: 0 0 4px; }
.cta-band p { margin: 0; opacity: 0.9; }
.cta-band .btn { background: var(--surface); color: var(--accent-soft-ink); }
.cta-band .btn:hover { background: var(--accent-soft); color: var(--accent-soft-ink); }

/* ---------- consent ---------- */
.consent { display: grid; place-items: center; padding-top: 40px; padding-bottom: 40px; }
.consent-card { max-width: 640px; width: 100%; padding: 32px; }
.logo-lg { display: block; border-radius: 12px; margin-bottom: 14px; }
.consent-list { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 12px; }
.consent-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; color: var(--ink-2); }
.consent-list .icon { color: var(--accent); margin-top: 2px; }

/* ---------- app layout ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 24px; align-items: start; }
.app-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px;
  background: none; border: 0; font: 600 0.96rem var(--font); color: var(--ink-2); cursor: pointer; text-align: left;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-soft-ink); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--sun); color: #3b2a00; font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; }
.meter span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
.meter.low span { background: var(--sun); }
.app-main { min-width: 0; }
.panel { animation: fade-in 0.2s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.page-head { margin-bottom: 14px; }
.page-sub { color: var(--muted); font-size: 1rem; margin: 0; max-width: 680px; }
.block-title { font-size: 1.02rem; margin: 26px 0 12px; }

@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 0; }
  .app-nav {
    position: sticky; top: var(--header-h); z-index: 20; flex-direction: row; overflow-x: auto; gap: 2px;
    margin: 0 -20px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .app-nav::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; flex: none; padding: 8px 12px; font-size: 0.9rem; gap: 8px; }
  .nav-badge { margin-left: 2px; }
}

/* ---------- help ---------- */
.help { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.help summary { cursor: pointer; list-style: none; padding: 12px 16px; display: flex; align-items: center; gap: 8px; color: var(--accent-soft-ink); font-weight: 600; font-size: 0.94rem; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
.help[open] summary::after { transform: rotate(-135deg); }
.help-list { margin: 0; padding: 0 20px 14px 40px; color: var(--ink-2); font-size: 0.94rem; }
.help-note { margin: 0; padding: 0 20px 16px; color: var(--muted); font-size: 0.9rem; }

/* ---------- dashboard pieces ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card { margin-bottom: 18px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.3s; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font: 700 1.6rem/1.1 var(--font-display); }
.stat span { font-size: 0.86rem; color: var(--ink-2); }
.stat small { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ---------- to-do ---------- */
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.todo-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--surface-2); margin: 0; }
.todo-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.todo-item.interview_soon .todo-icon, .todo-item.closing_soon .todo-icon { background: var(--sun-soft); color: var(--warn); }
.todo-body { flex: 1; min-width: 0; }
.todo-body p { margin: 0 0 8px; font-size: 0.94rem; }
.actions { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }

/* ---------- CV ---------- */
.dropzone {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px; margin-top: 6px;
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); cursor: pointer; color: var(--ink-2);
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .icon-lg { color: var(--accent); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- results ---------- */
.result { border-top: 4px solid var(--accent); }
.result-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.result-head .score-ring { width: 64px; height: 64px; }
.result-head .score-ring b { font-size: 1.2rem; }
.result h3 { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.ticks { list-style: none; padding: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--good); margin-top: 2px; }
.tips-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.tips-list li { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; margin: 0; }
.tips-list b { display: block; margin-bottom: 2px; }
.translate { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr); gap: 8px 12px; align-items: center; font-size: 0.94rem; }
.translate .from { color: var(--muted); }
.translate .arrow { color: var(--accent); }
.letter { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 0.97rem; line-height: 1.65; }
.result-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.risk-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); font-weight: 600; }
.risk-banner.low { background: var(--good-soft); color: var(--good); }
.risk-banner.medium { background: var(--warn-soft); color: var(--warn); }
.risk-banner.high { background: var(--danger-soft); color: var(--danger); }


/* ---------- applications ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font: 600 0.82rem var(--font); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.job-list { display: grid; gap: 12px; }
.job { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--surface); }
.job:hover { border-color: var(--line-strong); }
.job-top { display: flex; gap: 14px; align-items: flex-start; }
.job-top .score-ring { width: 48px; height: 48px; }
.job-title { flex: 1; min-width: 0; }
.job-title h3 { margin: 0; font-size: 1.04rem; }
.job-title p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.job-title p.job-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 0.86rem; color: var(--ink-2); white-space: pre-line; }
.job-note .icon { flex: none; margin-top: 2px; color: var(--muted); }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.job-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-top: 14px; }
.mini-field { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.mini-field .select, .mini-field .input { padding: 6px 10px; font-size: 0.9rem; min-width: 170px; }
.mini-field .select { padding-right: 32px; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- assistant ---------- */
.chat-card { padding: 0; overflow: visible; }
.chat-toolbar { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-toolbar .select { flex: 1; min-width: 0; padding-top: 8px; padding-bottom: 8px; }
.chat-log { display: flex; flex-direction: column; gap: 16px; min-height: 260px; max-height: min(62vh, 640px); overflow-y: auto; padding: 18px 16px; }
.msg { display: flex; gap: 10px; max-width: 100%; }
.msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.msg-body { display: grid; gap: 8px; min-width: 0; max-width: min(640px, 88%); }
.msg.user .msg-body { justify-items: end; }
.bubble { white-space: pre-wrap; overflow-wrap: anywhere; padding: 11px 15px; border-radius: 16px; line-height: 1.55; }
.msg.user .bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.msg.assistant .bubble { background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.error .bubble { background: var(--warn-soft); color: var(--warn); }
.msg-note { font-size: 0.78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.msg .card { margin: 0; box-shadow: none; }
.action { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; justify-items: start; background: var(--surface); }
.action p { margin: 0; font-size: 0.93rem; }
.action-title { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.action-title .icon { color: var(--accent); }
.welcome { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 8px; margin: auto 0; }
.welcome img { border-radius: 12px; }
.welcome h2 { margin: 6px 0 0; }
.welcome p { color: var(--muted); max-width: 520px; margin: 0 0 10px; }
.welcome .chips { justify-content: center; }
.chat-progress { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; padding: 0 16px 10px 56px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.composer { padding: 0 16px 16px; display: grid; gap: 10px; }
.composer-box { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.composer-box textarea { border: 0; box-shadow: none; background: transparent; padding: 12px 14px 4px; min-height: 52px; max-height: 220px; resize: none; }
.composer-box textarea:focus { box-shadow: none; }
.composer-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 8px 10px; }
.memory { list-style: none; padding: 0; margin: 0; }
.memory li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.memory li:last-child { border-bottom: 0; }

/* ---------- dialog ---------- */
.dialog {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(10, 20, 18, 0.45); backdrop-filter: blur(2px); }
.dialog[open] { display: flex; flex-direction: column; animation: fade-in 0.15s ease-out; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.dialog-head h2 { margin: 0; font-size: 1.2rem; }
.dialog-body { padding: 4px 20px 8px; overflow-y: auto; }
.dialog-body .card { border: 0; padding: 0; box-shadow: none; margin: 0; }
.dialog-body .result { border-top: 0; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; flex-wrap: wrap; }
.dialog-foot:empty { display: none; }
.dialog-sm { width: min(440px, calc(100vw - 24px)); }

/* ---------- the journey ---------- */
.eyebrow-sm { font-size: 0.76rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft-ink) !important; margin: 0; }
.step-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-soft-ink); margin: 0 0 4px; }
.nav-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 14px 14px 4px; }
.nav-label:first-child { margin-top: 0; }
.nav-step {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 2px solid var(--line-strong); font-size: 0.78rem; font-weight: 700; color: var(--ink-2); background: var(--surface);
}
.nav-step .icon { width: 14px; height: 14px; }
.nav-step.done { background: var(--good); border-color: var(--good); color: #fff; }
.nav-item[aria-selected="true"] .nav-step:not(.done) { border-color: var(--accent); color: var(--accent-soft-ink); }
@media (max-width: 900px) { .nav-label { display: none; } }
.welcome-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.journey-list { margin: 12px 0; padding-left: 22px; }
.journey-list li { margin-bottom: 6px; }
.step-next:empty { display: none; }
.step-next-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; margin: 6px 0 18px;
  border-radius: var(--radius-lg, 16px); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%);
}
.step-next-card b { display: block; font-size: 1.05rem; margin-top: 2px; }
.step-next-card p.muted { margin: 2px 0 0; }
@media (max-width: 640px) { .step-next-card { flex-direction: column; align-items: flex-start; } }
.cv-used-head { display: flex; align-items: center; gap: 14px; }
.cv-used-head > div { flex: 1; min-width: 0; }
.cv-used-head b { display: block; }
.cv-used-head p { margin: 2px 0 0; }
.cv-used-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-soft-ink); }
.cv-used .chips { margin-top: 12px; }
@media (max-width: 560px) {
  .cv-used-head { flex-wrap: wrap; }
  .cv-used-head > div { flex: 1 1 calc(100% - 60px); }
  .cv-used-head > .btn { margin-left: 54px; }
}
.status-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.status-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.status-tile b { display: block; font: 700 1.6rem/1.1 var(--font-display); }
.status-tile span { font-size: 0.86rem; color: var(--ink-2); }
.status-tile.info b { color: var(--info); }
.status-tile.accent b { color: var(--accent-soft-ink); }
.status-tile.good b { color: var(--good); }
.status-tile.muted b { color: var(--muted); }
@media (max-width: 700px) { .status-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.goal-text { font: 700 1.05rem var(--font-display); margin: 4px 0 10px; }
.prefs-summary { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 0.94rem; }
.prefs-summary dt { color: var(--muted); }
.prefs-summary dd { margin: 0; }
.plan-list { padding-left: 22px; }
.plan-list li { margin-bottom: 8px; }

/* chips you can type into, and choice pills */
.chip-input { display: grid; gap: 8px; }
.chip-input-chips:empty { display: none; }
.chip-ghost { background: transparent; border: 1px dashed var(--line-strong); color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: 600 0.88rem var(--font); cursor: pointer; }
.pill-choice[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.input-num { max-width: 110px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-grid.three { grid-template-columns: 1fr; } }
.field-end { display: flex; align-items: flex-end; }

/* ---------- career directions ---------- */
.directions-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.directions-cta p { margin: 2px 0 0; }
.direction-list { display: grid; gap: 4px; }
.direction.focused { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.grid-2.tight { gap: 4px 24px; }

/* ---------- a job's workspace ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.back-link .icon { transform: rotate(180deg); }
.ws-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ws-head .score-ring { width: 64px; height: 64px; }
.ws-head .score-ring b { font-size: 1.2rem; }
.ws-title { flex: 1; min-width: 220px; }
.ws-title h1 { margin: 0; }
.ws-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.next-step { display: flex; gap: 14px; align-items: center; margin: 18px 0 14px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent-soft-ink); }
.next-step p { margin: 2px 0 0; color: var(--ink-2); }
.subtabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; }
.subtab { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; font: 600 0.92rem var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.subtab:hover { color: var(--ink); }
.subtab[aria-selected="true"] { color: var(--accent-soft-ink); border-bottom-color: var(--accent); }
.gap-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.gap-list li { margin: 0; }
.gap-list p { margin: 2px 0 8px; }
.qa-list { display: grid; gap: 8px; }
.qa { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.qa summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.qa p { margin: 0 0 10px; color: var(--ink-2); }
.story { display: flex; gap: 8px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.story .icon { color: var(--accent); margin-top: 3px; }
.letter-edit { font-size: 0.97rem; line-height: 1.65; }
.ad-text { max-height: 420px; overflow-y: auto; }
.history { list-style: none; padding: 0; display: grid; gap: 8px; }
.history li { display: flex; gap: 10px; align-items: center; margin: 0; }
.notice .btn { margin-left: auto; flex: none; }
.job-link { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.job-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.job-side { display: grid; gap: 8px; justify-items: end; }
.select-sm { padding: 5px 30px 5px 10px; font-size: 0.86rem; width: auto; }
.score-empty { background: var(--surface-2); color: var(--muted); }
@media (max-width: 600px) { .job-side { justify-items: start; } .job-top { flex-wrap: wrap; } }

/* ---------- the CV builder ---------- */
.cv-entries { display: grid; gap: 12px; margin-bottom: 10px; }
.cv-entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; background: var(--surface-2); }
.cv-entry .input, .cv-entry textarea { background: var(--surface); }
.contact-box { margin: 14px 0; }
.saved-list { list-style: none; padding: 0; margin: 0; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; flex-wrap: wrap; }
.saved-list li:last-child { border-bottom: 0; }

/* ---------- support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; } }
.support-item h2 { font-size: 1.05rem; }
.support-item p { color: var(--ink-2); }
.support-contact { font-weight: 600; margin: 0; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { margin-top: 32px; font-size: 1.2rem; }
.legal li { margin-bottom: 8px; }
.legal .version { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Phase 2: where the money goes, the admin dashboard, feedback ---------- */
.money { max-width: 980px; }
.money .lede { max-width: 720px; }
.money-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.money-stat { display: grid; gap: 4px; margin: 0; }
.money-stat b { font: 700 1.5rem var(--font-display); color: var(--ink); }
.money-label { font-size: 0.84rem; color: var(--muted); }
.money-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.money-bar { flex: 1; min-width: 2px; background: var(--accent); border-radius: 3px 3px 0 0; opacity: 0.85; }
.money-bar:hover { opacity: 1; }
.money-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
.money-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.money-table th, .money-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.money-table thead th { color: var(--muted); font-weight: 600; font-size: 0.84rem; }
.money-table td { font-variant-numeric: tabular-nums; }
.money-list { list-style: none; padding: 0; margin: 0; }
.money-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.money-list li:last-child { border-bottom: 0; }
.admin { padding-top: 24px; padding-bottom: 40px; }
.admin section.card { margin-bottom: 18px; }
.admin-tools { display: flex; gap: 10px; align-items: center; }
.feedback-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feedback-list li { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.feedback-list p { margin: 4px 0 0; }
.stars { display: flex; gap: 6px; margin: 4px 0 14px; }
.star { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--line-strong); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.star.on { color: var(--sun, #f2b84b); border-color: var(--sun, #f2b84b); background: var(--sun-soft); }
.star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .money-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
