:root {
  font-family: "Aptos", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
  color: #1e283c;
  background: #faf6ee;
  --paper: #fffdf9;
  --ink: #1e283c;
  --muted: #596277;
  --line: #e9e1d6;
  --navy: #162641;
  --coral: #a93d2a;
  --coral-soft: #fbe8e0;
  --focus: #b5412d;
}

*, *::after, *::before { box-sizing: border-box; }
body { min-width: 0; min-height: 100vh; margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { color: inherit; font: inherit; }
button:not(:disabled), select { cursor: pointer; }
:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.frame { width: min(1170px, 100% - 64px); margin-inline: auto; }

.masthead {
  overflow: hidden;
  background: radial-gradient(ellipse at 82% 22%, #293c5b, transparent 65%), var(--navy);
  color: #fffdf9;
  --focus: #ffb19e;
}
.site-bar {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #c5d0e426;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 760;
  text-decoration: none;
}
.wordmark-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: #293046;
  background: #ffc4ad;
}
.language-control { position: relative; color: #eef2fa; }
.language-control > .icon { position: absolute; top: 13px; left: 12px; pointer-events: none; }
.language-control::after {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
  content: "";
}
.language-control select {
  min-height: 42px;
  padding: 8px 34px 8px 37px;
  appearance: none;
  border: 1px solid #dce6fb44;
  border-radius: 9px;
  background: #334764;
  font-size: .875rem;
}
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 263px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; max-width: 66%; padding-block: 40px 66px; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.12;
  text-wrap: balance;
}
.hero p { margin: 18px 0 0; color: #cfdaec; font-size: 1.0625rem; }
.hero-art { position: absolute; inset: 0 0 0 55%; pointer-events: none; }
.orbit {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 330px;
  height: 228px;
  border: 1px solid #ccdaf02d;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.orbit-small { right: 34px; bottom: 18px; width: 272px; height: 186px; }
.illustration-card {
  position: absolute;
  top: 61px;
  right: 71px;
  width: 206px;
  height: 126px;
  border: 1px solid #f7dedb88;
  border-radius: 18px;
}
.illustration-back {
  top: 39px;
  right: 107px;
  background: #6b819970;
  transform: rotate(-19deg);
}
.illustration-front {
  overflow: hidden;
  background: linear-gradient(132deg, #ffb093, #f57b62);
  box-shadow: 0 20px 34px #06162a73;
  transform: rotate(12deg);
}
.illustration-chip {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  width: 38px;
  height: 28px;
  place-items: center;
  border: 1px solid #ffd5c8;
  border-radius: 7px;
  color: #b5614b;
  background: #ffceaf;
}
.illustration-chip i { width: 18px; height: 13px; border: 1px solid #b5614b86; border-radius: 3px; }
.illustration-lines { position: absolute; bottom: 22px; left: 24px; display: grid; gap: 6px; }
.illustration-lines i { width: 46px; height: 4px; border-radius: 10px; background: #ffe2d7; }
.illustration-lines i + i { width: 25px; opacity: .7; }
.illustration-pattern {
  position: absolute;
  top: -25px;
  right: -69px;
  width: 168px;
  height: 168px;
  border: 1px solid #fff3e48c;
  border-radius: 50%;
  box-shadow: 0 0 0 13px #fff3e430, 0 0 0 26px #fff3e420, 0 0 0 40px #fff3e418;
}
.art-dot {
  position: absolute;
  top: 56px;
  right: 36px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffc4a9;
}

.workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(240px, 1fr);
  align-items: start;
  gap: 20px;
  margin-block: -31px 65px;
}
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 40px #262d4110; }
.mode-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.mode-button {
  position: relative;
  display: inline-flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #525d71;
  font-weight: 680;
  line-height: 1.3;
}
.mode-button:first-child { border-top-left-radius: 19px; }
.mode-button:last-child { border-top-right-radius: 19px; }
.mode-button:focus-visible { z-index: 1; outline-offset: -4px; }
.mode-button:hover { background: #fbf5ed; }
.mode-button[aria-pressed="true"] { color: var(--coral); background: #fff8f3; }
.mode-button[aria-pressed="true"]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--coral);
  content: "";
}
.tool-body { padding: clamp(21px, 4vw, 34px); }
.tool h2, .side h2, dialog h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.53rem); letter-spacing: -.024em; line-height: 1.2; }
#lookup-form { margin-top: 23px; }
#lookup-form label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 690; }
.field-row { display: flex; gap: 10px; align-items: stretch; }
.code-field { position: relative; min-width: 0; flex: 1; }
.code-field input {
  width: 100%;
  min-height: 51px;
  padding: 11px 52px 11px 14px;
  border: 1px solid #d6cbbf;
  border-radius: 10px;
  background: #fffdf9;
}
.code-field input::placeholder { color: #687086; }
.code-field input[aria-invalid="true"] { border-color: var(--coral); }
.visibility {
  position: absolute;
  inset: 4px 4px 4px auto;
  display: grid;
  width: 42px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4d5970;
}
.visibility:enabled:hover { background: #f7f0e7; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 690;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.button:disabled { opacity: .6; }
.button-primary { background: var(--coral); color: #fff; }
.button-primary:not(:disabled):hover { background: #892d1d; }
.button-outline { border-color: #d6cbbf; background: var(--paper); color: var(--ink); }
.button-outline:not(:disabled):hover { background: #f8f1e8; }
.notice { margin: 13px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.notice-error { color: var(--coral); }

.side { padding: 27px; }
.side-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: var(--coral-soft);
  color: var(--coral);
}
.side h2 { font-size: 1.14rem; }
.side p { margin: 9px 0 0; color: var(--muted); }
.side-divider { margin-block: 19px 11px; height: 1px; background: var(--line); }
.side a {
  display: block;
  width: fit-content;
  padding-block: 4px;
  color: #344f79;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}
.side a + a { margin-top: 6px; }
.side a:hover { text-decoration: underline; }

.result { margin-top: 26px; padding-top: 21px; border-top: 1px solid var(--line); }
.result h2 { font-size: 1.25rem; }
.result h3 { margin: 0; font-size: 1.06rem; }
.card-details, .order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 13px 0 0;
}
.card-details > div { padding: 11px 13px; border-radius: 9px; background: #f7f1e8; }
.card-details dt, .order-meta dt { color: var(--muted); font-size: .875rem; }
.card-details dd, .order-meta dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.order-list { display: grid; gap: 11px; margin: 14px 0 0; padding: 0; list-style: none; }
.order-card { padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.order-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 10px; }
.order-heading > div { min-width: 0; overflow-wrap: anywhere; }
.order-id { margin: 3px 0 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: .8rem; }
.order-status { padding: 3px 9px; border-radius: 50px; color: #2f4463; background: #edf1f7; font-size: .875rem; font-weight: 650; }
.order-status[data-status="succeeded"] { color: #115940; background: #e6f4ec; }
.order-status[data-status="failed"], .order-status[data-status="expired"], .order-status[data-status="card_unavailable"] {
  color: var(--coral);
  background: var(--coral-soft);
}
.order-card a { color: #344f79; }
.link-inline { display: inline-block; margin-top: 11px; font-size: .9375rem; font-weight: 670; }
.dialog-plan { margin: 13px 0 0; font-weight: 700; }
dialog {
  width: min(432px, 100% - 32px);
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 65px #17223d57;
}
dialog::backdrop { background: #14203b8f; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }

.icon { position: relative; display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; }
.icon-ticket { height: 13px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-ticket::after { position: absolute; inset: 1px 4px 1px auto; border-right: 1px dashed currentColor; content: ""; }
.icon-clock { border: 1.5px solid currentColor; border-radius: 50%; }
.icon-clock::after { position: absolute; top: 3px; left: 6px; width: 4px; height: 5px; border-left: 1px solid; border-bottom: 1px solid; content: ""; }
.icon-list { border: 1.5px solid currentColor; border-radius: 3px; }
.icon-list::after { position: absolute; inset: 4px 3px auto; height: 1px; background: currentColor; box-shadow: 0 4px 0 currentColor; content: ""; }
.icon-eye { height: 12px; border: 1.5px solid; border-radius: 65% 20%; transform: rotate(42deg); }
.icon-eye::before { position: absolute; inset: 2px auto auto 5px; width: 5px; height: 5px; border: 1px solid; border-radius: 50%; content: ""; }
.visibility[aria-pressed="true"] .icon-eye::after { position: absolute; inset: 4px -4px auto; height: 1.5px; background: currentColor; transform: rotate(103deg); content: ""; }
.icon-globe { border: 1.5px solid; border-radius: 50%; }
.icon-globe::before { position: absolute; inset: -1px 3px; border-inline: 1px solid; border-radius: 50%; content: ""; }
.icon-globe::after { position: absolute; inset: 6px 0 auto; border-top: 1px solid; content: ""; }
.icon-help { width: 21px; height: 21px; border: 1.5px solid; border-radius: 50%; font-size: .875rem; font-weight: 760; line-height: 18px; text-align: center; }

@media (max-width: 790px) {
  .frame { width: calc(100% - 40px); }
  .workspace { grid-template-columns: minmax(0, 1fr); margin-bottom: 38px; }
  .hero-art { opacity: .76; transform: translateX(30px) scale(.84); }
}
@media (max-width: 475px) {
  .frame { width: calc(100% - 28px); }
  .site-bar { min-height: 66px; }
  .hero { min-height: 214px; }
  .hero-copy { max-width: calc(100% - 18px); padding-block: 32px 55px; }
  .hero p { max-width: 33ch; margin-top: 12px; font-size: 1rem; }
  .hero-art { opacity: .25; transform: translateX(82px) scale(.7); }
  .workspace { gap: 13px; margin-top: -21px; }
  .panel { border-radius: 16px; }
  .mode-button { min-height: 64px; flex-direction: column; gap: 6px; padding: 8px 4px; font-size: .875rem; }
  .mode-button:first-child { border-top-left-radius: 15px; }
  .mode-button:last-child { border-top-right-radius: 15px; }
  .field-row { flex-direction: column; }
  .side { padding: 21px; }
}
