/* Finesse look: 70s Carolina summer. Colors from design/theme.css (approved Nov 29, 2026). */
@font-face { font-family: 'Pacifico'; src: url('/fonts/pacifico.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Righteous'; src: url('/fonts/righteous.woff2') format('woff2'); font-display: swap; }

.dark {
  --bg: #1C1430; --card: #2E1F40; --border: #5B3F63; --text: #F7EEE6; --quiet: #C7B6C9;
  --name: #FFCB7A; --heading: #FFCB7A; --btn: #7BAFD4; --btn-text: #1C1430;
  --btn2: #F5A35C; --on-bg-quiet: #C7B6C9; --on-bg: #F7EEE6; --field: #1C1430; --field-border: #5B3F63;
  --problem: #FF8A65; --code-bg: #1C1430;
}
.light {
  --bg: #7BAFD4; --card: #FBF1DC; --border: transparent; --text: #1C1430; --quiet: #5C4A5A;
  --name: #4A2463; --heading: #4A2463; --btn: #4A2463; --btn-text: #FBF1DC;
  --btn2: #4A2463; --on-bg-quiet: #2A1F3D; --on-bg: #1C1430; --field: #FFFFFF; --field-border: #B9A88A;
  --problem: #A63D2A; --code-bg: #F3E6C8;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0 auto; max-width: 480px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; padding: 24px 16px 32px; }
.top { display: flex; justify-content: space-between; align-items: center; }
.name { font-family: 'Pacifico', cursive; font-size: 38px; color: var(--name); line-height: 1.3; }
.stripe { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 6px 0 18px; }
.stripe span { flex: 1; }
.s1 { background: #F6C453; } .s2 { background: #F28C38; } .s3 { background: #D9572B; } .s4 { background: #A63D2A; } .s5 { background: #4A2463; }
.dark .s5 { background: #7BAFD4; }
.pagetitle { font-family: 'Righteous', sans-serif; font-weight: 400; font-size: 26px; color: var(--name); margin: 0 0 6px; line-height: 1.2; }
.sub { font-size: 15px; color: var(--on-bg-quiet); margin: 0 0 16px; line-height: 1.4; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
h3 { font-family: 'Righteous', sans-serif; font-weight: 400; font-size: 18px; color: var(--heading); margin: 0 0 6px; }
p { font-size: 15px; color: var(--quiet); margin: 0 0 12px; line-height: 1.45; }
.step { font-size: 12px; font-weight: 700; color: var(--quiet); margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
input { display: block; width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--field); border: 1.5px solid var(--field-border); border-radius: 10px; padding: 12px; margin: 0 0 14px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #F6C453; outline-offset: 2px; }
input.code { letter-spacing: 0.2em; font-size: 22px; text-align: center; }
button { font: inherit; cursor: pointer; }
.btn { display: block; width: 100%; background: var(--btn); color: var(--btn-text); border: 0; font-size: 16px; font-weight: 600; padding: 14px; border-radius: 10px; margin: 0 0 10px; }
.btn2 { display: block; width: 100%; background: transparent; border: 1.5px solid var(--btn2); color: var(--btn2); font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: 10px; margin: 0 0 10px; }
.link { background: none; border: 0; color: var(--on-bg); font-size: 15px; font-weight: 600; text-decoration: underline; padding: 8px 0; }
.card .link { color: var(--heading); }
button[disabled] { opacity: 0.6; cursor: wait; }
.problem { color: var(--problem); font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.problem:empty { display: none; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.codes li { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 16px; background: var(--code-bg); border-radius: 8px; padding: 8px; text-align: center; color: var(--text); }
.secret { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 17px; background: var(--code-bg); border-radius: 8px; padding: 10px; text-align: center; word-break: break-all; margin: 0 0 14px; color: var(--text); }
.qr { background: #FFFFFF; border-radius: 12px; padding: 10px; width: 200px; height: 200px; margin: 0 auto 14px; }
.qr svg { display: block; width: 100%; height: 100%; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.light .row { border-top-color: #E9DCC0; }
.row:first-of-type { border-top: 0; }
.row b { font-size: 15px; font-weight: 600; }
.row .meta { font-size: 13px; color: var(--quiet); }
.chip { color: #1C1430; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.fine { background: #C8DFA0; } .look { background: #F6C453; }
.broken { background: #FF8A65; }
.center { text-align: center; }

/* The signed-in app */
.tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; font-size: 14px; font-weight: 600; color: var(--on-bg); text-decoration: none; padding: 9px 6px; border-radius: 999px; border: 1.5px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { background: var(--btn); color: var(--btn-text); }
.tabs a:not([aria-current]) { border-color: var(--on-bg-quiet); }
.checkhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.checkhead h3 { margin-bottom: 6px; }
.check p, .card p.reason { margin-bottom: 4px; }
.reason { font-size: 14px; }
.reason b { color: var(--text); font-weight: 600; }
.card .meta { font-size: 13px; color: var(--quiet); }
.sub + .card, .meta.center { margin-top: 4px; }
p.meta.center { color: var(--on-bg-quiet); font-size: 13px; }
progress { display: block; width: 100%; height: 10px; margin: 0 0 12px; accent-color: #F28C38; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.link.quiet { font-weight: 400; }
.fixes { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.light .fixes { border-top-color: #E9DCC0; }
.fix { margin: 0 0 12px; }
.fix b { display: block; font-size: 15px; color: var(--heading); margin: 0 0 4px; }
.fix p { font-size: 14px; margin: 0 0 8px; }
.btn2.small { display: inline-block; width: auto; font-size: 14px; padding: 8px 12px; margin: 0 6px 6px 0; }
a.btn2.small { text-decoration: none; }
.row .btn2.small { margin: 0; }
.pair { display: flex; gap: 8px; }
.pair button { margin-bottom: 8px; }
textarea.report { display: block; width: 100%; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; color: var(--text); background: var(--field); border: 1.5px solid var(--field-border); border-radius: 10px; padding: 10px; margin: 0 0 10px; resize: vertical; }
.note { margin: 4px 0 0; }
a.btn2 { text-decoration: none; }
