:root {
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
  --page: #faf8f4;
  --surface: #fff;
  --text: #282722;
  --muted: #615f56;
  --line: #ded8ce;
  --soft: #f4f0e9;
  --accent: #875817;
  --accent-hover: #704815;
  --button-text: #fff;
  --shadow: #4b3a1a0b;
  --success: #287343;
  --success-line: #7ba983;
  --danger: #a13528;
  --danger-line: #c98277;
  background: var(--page);
  color: var(--text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101412;
  --surface: #191d1a;
  --text: #f4f2eb;
  --muted: #bbb9af;
  --line: #3a403a;
  --soft: #252b25;
  --accent: #d2a057;
  --accent-hover: #e0b36f;
  --button-text: #17130d;
  --shadow: #0003;
  --success: #83d39b;
  --success-line: #528963;
  --danger: #f2a397;
  --danger-line: #aa5c52;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--text); }
.verify-shell { max-width: 760px; margin: 0 auto; padding: 28px 24px 70px; }
.verify-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.verify-brand { display: block; width: 138px; flex: 0 0 auto; }
.verify-brand img { display: block; width: 100%; height: auto; }
:root[data-theme="light"] .verify-brand img { filter: invert(1) hue-rotate(180deg) saturate(1.12) brightness(1.14); }
.verify-theme-switcher { display: inline-flex; align-items: center; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.verify-theme-option { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.verify-theme-option svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.verify-theme-option:hover { color: var(--text); }
.verify-theme-option[aria-pressed="true"] { background: var(--soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.back { display: inline-block; margin-top: 14px; color: var(--accent); text-decoration: none; font-weight: 700; }
.back:hover { text-decoration: underline; }
.eyebrow { margin: 36px 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.intro { font-size: 16px; line-height: 1.65; color: var(--muted); }
.verify-card, .result { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin: 26px 0; box-shadow: 0 8px 30px var(--shadow); }
h2 { margin: 0 0 18px; font-size: 20px; }
.file-button { min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 12px 18px; background: var(--accent); color: var(--button-text); font: inherit; font-weight: 700; cursor: pointer; }
.file-button:hover { background: var(--accent-hover); }
.file-button:focus-visible, .verify-theme-option:focus-visible, .back:focus-visible, .verify-brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.selected-file { margin: 12px 0 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.hint, .note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.note { margin: 26px 0; }
.about-verification { margin: 26px 0; }
.about-verification h2 { margin-bottom: 8px; }
.about-verification .note { margin: 0; }
.result-status { text-transform: uppercase; font-size: 12px; letter-spacing: .13em; font-weight: 800; color: var(--accent); }
.result[data-status="verified"] { border-color: var(--success-line); }
.result[data-status="verified"] .result-status { color: var(--success); }
.result[data-status="changed"] { border-color: var(--danger-line); }
.result[data-status="changed"] .result-status { color: var(--danger); }
.result p { line-height: 1.55; }
dl { margin: 24px 0 0; display: grid; gap: 14px; }
dl div { border-top: 1px solid var(--line); padding-top: 12px; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 600; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
@media (max-width: 520px) {
  .verify-shell { padding: 20px 18px 50px; }
  .verify-brand { width: 112px; }
  .verify-card, .result { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .verify-theme-option { transition: none; }
}
