:root {
  color-scheme: light;
  --navy: #062b52;
  --navy-deep: #041d38;
  --gold: #e6a51d;
  --gold-soft: #f7c455;
  --paper: #f5f7f6;
  --ink: #143554;
  --muted: #667b8c;
  --line: #d7e0e3;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, transparent 0 49.9%, #dbe4e525 50% 50.1%, transparent 50.2%),
    linear-gradient(120deg, #edf2f2 0%, var(--paper) 42%, #e7eeee 100%);
}

.topbar-note, .new-query, .eyebrow, .panel-heading p, .lookup label, .lookup button,
.hint, .result > p, .status, .code-label, dt, .certificate dd, footer {
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}
.intro h1, .panel-heading h2, .result h2 {
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}
.lookup input, .certificate h2 {
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
}

.site-frame { position: relative; display: grid; min-height: 100svh; grid-template-rows: 72px minmax(0, 1fr) 40px; overflow-x: hidden; }
.site-frame::before, .site-frame::after { position: absolute; z-index: -1; content: ""; pointer-events: none; }
.site-frame::before { top: -210px; right: -110px; width: 510px; height: 510px; border: 1px solid #cfdbdd; border-radius: 50%; box-shadow: 0 0 0 36px #e0e8e920, 0 0 0 74px #e0e8e914; }
.site-frame::after { right: 4%; bottom: 68px; width: 280px; height: 1px; background: #c9d6d9; box-shadow: -82px -23px 0 #e6a51d, -134px -46px 0 #c9d6d9, -182px -69px 0 #c9d6d9; transform: rotate(-24deg); transform-origin: right; }

.topbar, .shell, footer { width: min(100% - 48px, 1120px); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid #cfdadd; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand-logo { display: block; width: 156px; height: auto; }
.topbar-note { display: flex; align-items: center; gap: 9px; margin: 0; color: #587083; font-family: Arial, sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.topbar-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #e6a51d26; }
.new-query { display: none; border: 1px solid #b9c8cf; background: #ffffffa8; color: var(--navy); cursor: pointer; padding: 10px 13px; font-family: Arial, sans-serif; font-size: .61rem; font-weight: 900; letter-spacing: .09em; }.new-query span { color: var(--gold); font-size: 1rem; }

.shell { display: grid; place-items: center; padding: 12px 0; }
.query-column { width: min(100%, 600px); }
.intro { padding: 0 0 14px; text-align: center; }
.eyebrow, .panel-heading p, .lookup label, .code-label, dt { margin: 0; color: #6d8392; font-family: Arial, sans-serif; font-size: .64rem; font-weight: 900; letter-spacing: .15em; }
.eyebrow { color: var(--gold); }
.intro h1 { max-width: 500px; margin: 9px auto 10px; color: var(--navy); font-size: clamp(2.05rem, 3vw, 2.7rem); letter-spacing: -.055em; line-height: .92; }
.intro h1 em { color: var(--gold); font-style: normal; }
.intro-copy { max-width: 410px; margin: 0 auto; color: #536c7f; font-family: Arial, sans-serif; font-size: .84rem; line-height: 1.45; }

.verification-panel { position: relative; padding: 19px 22px 18px; background: var(--navy); box-shadow: 0 16px 34px #062b5228; }
.verification-panel::before { position: absolute; top: 0; right: 0; width: 104px; height: 104px; border-top: 4px solid var(--gold); border-right: 4px solid var(--gold); content: ""; opacity: .9; }
.verification-panel::after { position: absolute; right: 20px; bottom: 15px; color: #ffffff08; content: "SEL"; font-family: Georgia, serif; font-size: 7.5rem; font-weight: bold; line-height: 1; }
.panel-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding-bottom: 11px; border-bottom: 1px solid #ffffff26; }
.panel-index { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #ffffff65; border-radius: 50%; color: var(--gold-soft); font-family: Georgia, serif; font-size: .92rem; }
.panel-heading p { color: #b7cad8; font-size: .57rem; }.panel-heading h2 { margin: 3px 0 0; color: white; font-size: 1.2rem; letter-spacing: -.02em; }
.lookup { position: relative; z-index: 1; padding-top: 12px; }.lookup label { display: block; margin-bottom: 6px; color: #d5e2ec; }
.lookup-row { display: flex; gap: 10px; }
.lookup input { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 0; padding: 12px 13px; color: var(--navy); font-family: "Courier New", monospace; font-size: .96rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; outline: none; }
.lookup input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #e6a51d40; }
.lookup button, .download { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 0; background: var(--gold); color: var(--navy); cursor: pointer; font-family: Arial, sans-serif; font-size: .69rem; font-weight: 900; letter-spacing: .1em; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.lookup button { min-width: 143px; padding: 0 15px; gap: 9px; }.lookup button span { font-size: 1.25rem; line-height: 0; }.lookup button:hover, .download:hover { background: var(--gold-soft); transform: translateY(-1px); }
.hint { margin: 8px 0 0; color: #b8cad7; font-family: Arial, sans-serif; font-size: .68rem; }.hint b { color: white; letter-spacing: .04em; }

.result { position: relative; border: 1px solid var(--line); border-left: 5px solid var(--gold); background: #fff; padding: 24px 26px; box-shadow: 0 16px 38px #062b5215; }
.result h2 { margin: 0 0 9px; color: var(--navy); font-size: 1.55rem; letter-spacing: -.03em; }.result > p { margin: 0; color: #536b7d; font-family: Arial, sans-serif; line-height: 1.6; }
.warning { border-left-color: #c57932; background: #fffdf9; }.loading { border-left-color: #75a9c6; background: #f9fcfd; }
.status { display: inline-block; padding: 7px 10px !important; background: #e7f5ec; color: #156137 !important; font-family: Arial, sans-serif; font-size: .65rem; font-weight: 900; letter-spacing: .11em; line-height: 1 !important; }.invalid .status { background: #fff0ed; color: #9a342b !important; }
.certificate h2 { margin-top: 8px; font-size: 1.72rem; font-weight: 700; letter-spacing: .035em; }.code-label { margin: 22px 0 4px !important; }
.certificate dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 28px; margin: 20px 0; padding-top: 19px; border-top: 1px solid #e0e7e9; }.certificate dd { margin: 6px 0 0; color: var(--navy); font-family: Arial, sans-serif; font-size: .9rem; font-weight: 700; line-height: 1.35; }.download { min-height: 43px; padding: 0 17px; }

.trust-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #cad7db; border-bottom: 1px solid #cad7db; }.trust-row article { display: flex; gap: 13px; padding: 22px 20px; }.trust-row article + article { border-left: 1px solid #cad7db; }.trust-row span { color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; }.trust-row p { margin: 0; color: #637b8d; font-family: Arial, sans-serif; font-size: .72rem; line-height: 1.55; }.trust-row b { display: block; margin-bottom: 3px; color: var(--navy); font-size: .64rem; letter-spacing: .07em; }
footer { display: flex; align-items: center; justify-content: space-between; height: 40px; color: #718696; font-family: Arial, sans-serif; font-size: .62rem; letter-spacing: .03em; }footer p { margin: 0; }footer a { color: var(--navy); font-weight: 900; letter-spacing: .1em; text-decoration: none; }footer a span { color: var(--gold); font-size: .9rem; }

.has-result .topbar-note { display: none; }.has-result .new-query { display: inline-flex; align-items: center; gap: 8px; }.has-result .shell { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); column-gap: 28px; align-items: center; padding: 12px 0; }.has-result .query-column { display: flex; width: auto; flex-direction: column; margin: 0; }.has-result .intro { padding-bottom: 12px; text-align: left; }.has-result .intro h1 { margin: 7px 0 8px; font-size: clamp(1.82rem, 2.45vw, 2.3rem); }.has-result .intro-copy { margin: 0; font-size: .78rem; line-height: 1.4; }.has-result .verification-panel { padding: 18px; }.has-result .panel-heading h2 { font-size: 1.1rem; }.has-result .panel-index { width: 32px; height: 32px; font-size: .9rem; }.has-result .lookup-row { flex-direction: column; gap: 7px; }.has-result .lookup button { min-height: 39px; }.has-result .result { align-self: center; margin: 0; }.has-result .trust-row { display: none; }

@media (max-width: 800px) { .site-frame { grid-template-rows: 72px auto auto; }.shell { display: block; padding: 26px 0; }.query-column { width: min(100%, 600px); margin: 0 auto; }.has-result .shell { display: block; padding: 20px 0; }.has-result .query-column { width: min(100%, 600px); }.has-result .intro { padding-bottom: 14px; }.has-result .verification-panel { min-height: auto; }.has-result .result { margin-top: 18px; }.certificate dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topbar, .shell, footer { width: min(100% - 32px, 1120px); }.topbar { min-height: 68px; }.topbar-note { display: none; }.brand-logo { width: 140px; }.shell { padding: 22px 0; }.intro { padding-bottom: 14px; }.intro h1 { font-size: clamp(2rem, 10.5vw, 2.7rem); }.verification-panel { padding: 19px 17px 18px; }.lookup-row { flex-direction: column; }.lookup button { min-height: 46px; }.result { padding: 20px 18px; }.certificate dl { grid-template-columns: 1fr; gap: 16px; }.site-frame::before { right: -270px; }footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; height: 48px; }.has-result .shell { padding: 18px 0; }.has-result .new-query { padding: 8px; font-size: .56rem; } }
