/* Design A ("Cards"). Mobile-first; the column stays 480px wide and centred on larger screens. */
:root {
  --ground: #f4f4f5; --card: #fff; --line: #e4e4e7; --ink: #231f20; --ink-2: #4b4d4e; --ink-body: #3a3c3d;
  --red: #ce3439; --red-dark: #a82a2f; --link: #b4232a; --link-hover: #8c1a20;
  --ok-bg: #e7f4ec; --ok-line: #a9d6b8; --ok-ink: #17703a; --ok-text: #1f3b2a; --ok-sub: #3d5a47;
  --bad-bg: #fdecec; --bad-line: #e8a1a4; --bad-ink: #a51f26; --bad-text: #4a1d1f;
  --fix-bg: #fff6e0; --fix-line: #e9c46a; --fix-ink: #7a4b00; /* #7a4b00 on #fff6e0 = 6.9:1 */
  --none-bg: #fafafa; --none-line: #d4d4d8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, .ref, .qty { font-family: "Titillium Web", Inter, system-ui, sans-serif; }
h1, h2, p, dl, dd { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { background: var(--card); border-top: 4px solid var(--red); }
.top-in { max-width: 480px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 36px; width: auto; display: block; }
.top-label { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }

.col { width: 100%; max-width: 480px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.details { display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--card); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card-h { font-size: 18px; font-weight: 700; color: var(--red); }
.label { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: -8px; }
.label-sm { font-size: 12px; color: var(--ink-2); }
.ref { font-size: 26px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; overflow-wrap: anywhere; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid .wide { grid-column: 1 / -1; }
.grid dt { font-size: 12px; color: var(--ink-2); }
.grid dd { margin-top: 2px; font-weight: 600; overflow-wrap: anywhere; }
.qty-block { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.grid + .qty-block { margin-top: 0; }
.card-h + .qty-block { border-top: 0; padding-top: 0; }
.qty { font-size: 28px; font-weight: 700; line-height: 1.25; }

.status { border-radius: 14px; border: 1px solid; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.status-head { display: flex; align-items: center; gap: 12px; }
.status-ic { width: 40px; height: 40px; flex: none; }
.status h1 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.status .checked { font-size: 12px; }
.status.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-text); }
.status.ok h1, .status.ok .status-ic { color: var(--ok-ink); }
.status.ok .checked { color: var(--ok-sub); }
.status.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-text); }
.status.bad h1, .status.bad .status-ic, .replaced { color: var(--bad-ink); }
.status.bad .checked { color: var(--bad-ink); }
.status.fix { background: var(--fix-bg); border-color: var(--fix-line); color: var(--fix-ink); }
.status.fix h1 { font-size: 24px; }
.status.none { background: var(--none-bg); border-color: var(--none-line); color: var(--ink-body); }
.status.none h1 { font-size: 24px; color: var(--ink); }
.status.none .status-ic { color: var(--ink-2); }
.replaced { font-family: "Titillium Web", Inter, sans-serif; font-weight: 700; font-size: 18px; }

/* Reversed / correcting: details stay readable (contrast kept) but read as void. */
.muted .card { background: var(--none-bg); border: 1px dashed var(--none-line); color: var(--ink-2); }
.muted .card-h { color: var(--ink-2); }
.muted .ref, .muted .qty { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--bad-line); }

.note { padding: 0 4px; font-size: 13px; color: var(--ink-body); }

.pdf { border: 1px dashed #b9bbbd; gap: 10px; }
.pdf-head { display: flex; align-items: center; gap: 10px; }
.pdf-head h2 { font-size: 18px; font-weight: 700; }
.pdf-ic { width: 22px; height: 22px; flex: none; stroke-width: 1.8; }
.pdf-text { font-size: 13px; color: var(--ink-body); }
.btn {
  min-height: 48px; width: 100%; border: 0; border-radius: 10px; background: var(--red); color: #fff;
  font: 600 15px/1.2 Inter, system-ui, sans-serif; cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-again { background: var(--card); color: var(--ink); border: 1px solid #a1a1aa; }
.btn-again:hover { background: var(--ground); }
.result-slot { display: flex; flex-direction: column; gap: 10px; }
.result-slot:empty { display: none; }
.result { display: flex; gap: 10px; border-radius: 10px; border: 1px solid; padding: 12px 14px; font-size: 13.5px; }
.result.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.result.bad { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.result-ic { width: 22px; height: 22px; flex: none; }
.lock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.lock-ic { width: 14px; height: 14px; flex: none; }

.foot { margin-top: auto; background: var(--card); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.foot-in { max-width: 480px; margin: 0 auto; padding: 18px 20px 24px; }
.foot strong { color: var(--ink); }
.credit-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.credit { display: inline-block; padding: 12px 8px; line-height: 20px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.credit span { color: var(--ink); }
.credit:hover span { text-decoration: underline; }

/* Static landing / 404 */
.intro h1 { font-size: 24px; font-weight: 700; }
.intro p { color: var(--ink-body); }

@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s ease; } }
@media (max-width: 359px) { .col, .top-in, .foot-in { padding-left: 16px; padding-right: 16px; } .status h1 { font-size: 26px; } .qty { font-size: 24px; } }
