:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #65718a;
  --line: #dbe2ef;
  --panel: #ffffff;
  --surface: #f4f6fb;
  --primary: #2447a8;
  --primary-dark: #19357f;
  --warning-bg: #fff5df;
  --warning-line: #e9bd5c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.55; }
.topbar { display: flex; align-items: center; gap: 16px; padding: max(24px, env(safe-area-inset-top)) clamp(18px, 4vw, 42px) 26px; background: #172554; color: white; }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #a7b8f5; border-radius: 15px; font-weight: 800; letter-spacing: -1px; }
.eyebrow { margin: 0 0 5px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: #c4d1ff; direction: ltr; text-align: right; }
h1 { margin: 0; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.25; }
.subtitle { margin: 6px 0 0; color: #d9e1ff; font-size: 14px; direction: ltr; text-align: right; }
main { width: min(1080px, 100%); margin: 0 auto; padding: 22px clamp(12px, 3vw, 28px) 38px; }
.panel, .warning { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(17px, 2.5vw, 25px); margin-bottom: 16px; box-shadow: 0 3px 12px rgba(23, 37, 84, .035); }
.warning { background: var(--warning-bg); border-color: var(--warning-line); }
.warning strong { font-size: 16px; }
.warning p { margin: 5px 0 0; }
h2 { margin: 0 0 7px; font-size: 19px; }
p { margin-top: 0; }
.panel > p, .section-heading p { color: var(--muted); margin-bottom: 15px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }
.status-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.status-card .label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.status-card .value { display: block; font-weight: 700; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button { appearance: none; min-height: 46px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; display: inline-flex; justify-content: center; align-items: center; text-align: center; }
.button:focus-visible { outline: 3px solid #89a4ff; outline-offset: 2px; }
.button:disabled { opacity: .55; cursor: wait; }
.primary { color: white; background: var(--primary); }
.primary:active { background: var(--primary-dark); }
.secondary { color: var(--ink); background: white; border-color: var(--line); }
.file-button { cursor: pointer; }
.result { border-radius: 10px; padding: 12px 14px; margin-top: 14px; overflow-wrap: anywhere; }
.result.neutral { background: #f0f3f9; color: #35425d; }
.result.success { background: #e7f7ee; color: #175c38; }
.result.error { background: #fff0ef; color: #9b2824; }
.test-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.test-log li { padding: 11px 12px; border-right: 3px solid #a6b3ca; background: #f7f9fc; border-radius: 7px; font-size: 14px; overflow-wrap: anywhere; }
.test-log li.success { border-color: #2b9661; }
.test-log li.error { border-color: #c8433c; }
.test-log time { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.next-steps ul { padding-right: 22px; margin-bottom: 0; }
.next-steps li { margin: 6px 0; }
footer { text-align: center; color: var(--muted); padding: 6px 16px max(22px, env(safe-area-inset-bottom)); font-size: 12px; }
footer p { margin: 5px; }
@media (min-width: 760px) { .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .actions .button { min-width: 180px; } }
@media (max-width: 420px) { .topbar { align-items: flex-start; gap: 11px; } .brand-mark { width: 43px; height: 43px; border-radius: 12px; } .status-grid { grid-template-columns: 1fr; } .button { flex: 1 1 100%; } .section-heading > .button { flex: 0 0 auto; } }
