.masthead {height:68px; border-bottom:1px solid #cbdaf071; background:#f8fbff65}
.mast-inner {max-width:960px; margin:auto; padding:0 32px; height:100%; display:flex; align-items:center}
.brand {display:inline-flex; align-items:center; text-decoration:none; gap:8px; color:var(--ink); font-size:var(--fs-lg); font-weight:var(--fw-bold); letter-spacing:.01em}
.brand img {border-radius:9px; box-shadow:0 3px 9px #3462d330}
.buyer-shell {width:min(100%,600px); margin:0 auto; padding:40px 0 32px}
.hero {text-align:center; margin-bottom:24px}
.hero h1 {font-size:var(--fs-title); line-height:1.15; color:#172d54}
.hero-tagline {display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:8px 16px; border-radius:999px; border:1px solid #d1dfef; background:#ffffff79; color:#49627f; font-size:var(--fs-sm); font-weight:var(--fw-medium); line-height:1.4}
.hero-tagline .icon {width:16px; height:16px; color:#446ac1}
.pass-art {width:150px; height:91px; margin:0 auto 12px; position:relative; isolation:isolate}
.pass-art::before {content:""; position:absolute; bottom:4px; height:10px; width:96px; left:28px; border-radius:50%; background:#7699d55c; filter:blur(7px)}
.back-pass,.front-pass {position:absolute; border-radius:12px; width:99px; height:61px}
.back-pass {left:36px; top:9px; transform:rotate(11deg); background:linear-gradient(145deg,#f8fbff,#c9ddff 54%,#adc7fc); border:1px solid #fff; box-shadow:0 4px 6px #7093ca32}
.back-pass {overflow:hidden}
.back-pass::before {content:""; position:absolute; top:10px; left:0; width:100%; height:8px; background:#a0bdef7d}
.front-pass {top:18px; left:18px; transform:rotate(-11deg); border:1px solid #e9f4ff; background:radial-gradient(ellipse at 115% 10%,transparent 0 26%,#acbfff55 27% 28%,transparent 29% 33%,#c2ceff64 34% 35%,transparent 36% 40%,#d6deff6e 41% 42%,transparent 43%),linear-gradient(125deg,#3a8af4,#4268e6 55%,#584cda); box-shadow:inset 0 1px 1px #ffffff8a,0 5px 10px #4a72c249}
.pass-seal {position:absolute; top:10px; left:12px; color:white}
.pass-seal .icon {width:29px; height:29px; stroke-width:1.4}
.pass-lines {position:absolute; bottom:12px; left:12px; height:3px; width:31px; border-radius:4px; background:#e1eeff; box-shadow:0 5px 0 -1px #cce1ffb3}
.pass-chip {position:absolute; bottom:10px; right:12px; height:10px; width:13px; border-radius:3px; background:linear-gradient(135deg,#def6ff,#9ce1ff 40%,#d9c4ff 78%,#fff2f9)}
.pass-check {position:absolute; right:15px; bottom:9px; width:28px; height:28px; display:grid; place-items:center; color:#315bd6; background:#f3f8ff; border:2px solid white; box-shadow:0 2px 8px #344f9429; border-radius:50%}
.pass-check .icon {width:17px;height:17px; stroke-width:2.4}
.btn {padding:8px 16px}
.control > [data-icon] {left:12px}
.control input {padding:12px 12px 12px 40px; font-size:var(--fs-md)}
.callout {gap:8px; padding:12px 16px}
.callout .icon {width:16px; height:16px}
.badge {gap:4px; padding:4px 8px}
.toast {bottom:24px; padding:8px 16px}
.quick-links {display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; margin-bottom:16px}
.quick-links a {min-width:0; min-height:48px; padding:8px 4px; text-align:center; background:rgba(255,255,255,.72); border-color:#f5faff; box-shadow:0 3px 12px #375c9e12; backdrop-filter:blur(16px)}
.quick-links a:hover {box-shadow:0 5px 14px #375c9e20}
.quick-links .icon {color:#436ac0}
.quick-label {min-inline-size:0; overflow-wrap:anywhere; text-wrap:balance}
.buyer-card {padding:24px 32px 32px}
.tabs {position:relative; isolation:isolate; display:flex; padding:4px; background:#eaf0fa; border:1px solid #e1e9f5; border-radius:14px; margin-bottom:24px}
.tabs::before {content:""; position:absolute; z-index:-1; inset:4px auto 4px 4px; width:calc(50% - 4px); border-radius:10px; background:white; box-shadow:0 2px 6px #314d7f1b; transition:transform 240ms ease}
.tabs.query::before {transform:translateX(100%)}
.tabs button {width:50%; min-height:40px; border:0; background:transparent; color:#52647d; border-radius:10px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:var(--fs-base); font-weight:var(--fw-semibold); cursor:pointer}
.tabs button[aria-selected=true] {color:#2756b8}
.tabs .icon {width:17px;height:17px}
.entry-form {display:grid; gap:20px}
.entry-form .hint {font-weight:var(--fw-medium); text-wrap:balance; word-break:keep-all; overflow-wrap:anywhere}
.entry-form .wide {gap:12px}
.code-field,.result-code {letter-spacing:.03em}
#form-error:not([hidden]) {margin-top:16px}
.notices {display:grid; gap:8px; margin-bottom:16px}
.support-links {display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:20px}
.privacy {display:flex; align-items:center; justify-content:center; gap:8px; color:#586c86; font-size:var(--fs-xs); margin:20px 0 0}
.privacy .icon {width:14px;height:14px}
.result-body {display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0}
.result-title {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px}
.result-code {font-size:var(--fs-sm); color:var(--muted); overflow-wrap:anywhere}
.result-caption {color:var(--muted); font-size:var(--fs-sm)}
.steps {list-style:none; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:0; margin:8px 0 0}
.steps li {position:relative; color:#61738d; font-size:var(--fs-xs); text-align:center}
.steps li::before {content:""; position:absolute; height:2px; background:#dce5f2; top:12px; transform:translateY(-50%); left:-50%; width:100%; z-index:0}
.steps li:first-child::before {display:none}
.steps .step-dot {position:relative; z-index:1; display:grid; margin:0 auto 8px; place-items:center; width:24px; height:24px; border:2px solid #cbd8e9; border-radius:50%; background:#f7faff; font-weight:var(--fw-semibold)}
.steps .done,.steps .current {color:#244da2}
.steps .done::before,.steps .current::before {background:#7aa3ee}
.steps .done .step-dot,.steps .current .step-dot {color:white; background:#3569d7; border-color:#3569d7}
.steps .current .step-dot {box-shadow:0 0 0 4px #e0ebff}
.steps .current {font-weight:var(--fw-semibold)}
.steps .icon {width:14px; height:14px}
.result-meta {display:flex; justify-content:space-between; gap:8px; color:#53637a; font-size:var(--fs-sm); font-variant-numeric:tabular-nums}
.history {border-top:1px solid var(--line); padding-top:12px}
.history summary {cursor:pointer; font-weight:var(--fw-semibold); font-size:var(--fs-base); color:#405674}
.history ol {list-style:none; padding:0; margin:12px 0 0; display:grid; gap:8px}
.history li {background:#f3f7fc; border:1px solid #e2eaf4; border-radius:12px; padding:8px 12px}
.history .row {gap:8px}
.history time {color:var(--muted); font-size:var(--fs-xs)}
.history p {font-size:var(--fs-sm); margin-top:4px; overflow-wrap:anywhere}
@media(max-width:650px) {
  .masthead {height:56px}.mast-inner {padding:0 16px}.brand {font-size:var(--fs-base)}.brand img {width:28px;height:28px}
  .buyer-shell {padding:24px 16px 32px}.hero {margin-bottom:20px}
  .buyer-card {padding:20px 16px; border-radius:24px}.pass-art {margin-bottom:8px}
  .tabs {margin-bottom:20px}.entry-form {gap:16px}
}
@media(max-width:520px) {
  .steps {margin-inline:-8px}
  .steps li {letter-spacing:0; white-space:nowrap}
  .quick-links {margin-bottom:12px}
  .quick-links a {
    display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(2.8em,auto); place-content:center; justify-items:center;
    min-height:80px; padding:8px 4px; font-size:var(--fs-sm); line-height:1.4;
  }
  .quick-links .icon {width:16px; height:16px}
  .quick-links:has(> a:nth-child(3)) .quick-label {max-inline-size:6em}
}
