:root {
  color-scheme: light;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ink: #172940;
  --muted: #4f647a;
  --line: #dbe5ee;
  --white: #fff;
  --bg: #f4f7fb;
  --blue: #174fba;
  --blue-dark: #133b87;
  --wash: #eef4ff;
  --green: #176454;
  --radius: 1.1rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #3872d9; outline-offset: 3px; }
input, select, button { min-width: 0; }

.shell { width: min(100% - 2rem, 52rem); margin-inline: auto; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 4.1rem; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.brand, .account { display: flex; align-items: center; gap: .6rem; }
.brand { flex: 0 0 auto; color: var(--ink); font-size: .98rem; font-weight: 800; text-decoration: none; }
.brand-icon { display: block; flex: 0 0 auto; color: var(--blue); }
.account { min-width: 0; }
.account > span { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-label, .account > span { color: var(--muted); font-size: .85rem; }
.channel-label { padding: .25rem .6rem; background: var(--wash); border-radius: 99px; }

.hero {
  margin: 1.3rem 0 1rem;
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 5vw, 2.75rem);
  color: var(--white);
  background: radial-gradient(ellipse at 98% -45%, #4289e9 8%, transparent 60%), linear-gradient(135deg, #102e65, #1854ad);
}
.hero h1, .section-head h2, .sign-in h2 { margin: .15rem 0 .45rem; line-height: 1.23; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(1.85rem, 7vw, 3.2rem); }
.hero p:last-child { margin: .65rem 0 0; color: #e2edff; max-width: 36em; }
.eyebrow, .section-index { margin: 0 0 .55rem; font-size: .8rem; font-weight: 760; letter-spacing: .085em; }
.eyebrow { color: #e2edff; }
.eyebrow > span { display: inline-block; width: .52rem; height: .52rem; margin-right: .3rem; border-radius: 50%; background: #8bdad0; }
.section-index { color: var(--blue); }

.card { padding: clamp(1rem, 4.5vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px #183b6410; }
.sign-in { max-width: 34rem; }
.sign-in .button { margin-top: .85rem; }
.section-head { margin-bottom: 1.05rem; }
.section-head h2, .sign-in h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.muted { color: var(--muted); margin: 0; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: .9rem; }
.notice { margin: 0 0 .9rem; padding: .75rem .9rem; border: 1px solid #cfddf3; border-radius: .65rem; background: var(--wash); color: var(--blue-dark); }
.notice[data-error] { border-color: #f3cdc5; background: #fff3f0; color: #89291f; }

.view-nav { display: flex; gap: .35rem; margin-bottom: .85rem; padding: .28rem; width: fit-content; background: #e7eef8; border-radius: .78rem; }
.view-nav button { padding: .55rem .9rem; min-height: 2.75rem; color: var(--muted); background: none; border: 0; border-radius: .55rem; font-weight: 700; }
.view-nav [aria-pressed="true"] { color: var(--blue-dark); background: var(--white); box-shadow: 0 2px 6px #193d6c16; }

.button { display: inline-flex; min-height: 2.8rem; justify-content: center; align-items: center; padding: .56rem .9rem; border: 1px solid transparent; border-radius: .62rem; text-decoration: none; font-weight: 700; }
.primary { color: var(--white); background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: var(--blue-dark); background: var(--white); border-color: #b5cae8; }
.secondary:hover { background: var(--wash); }
.button-link { padding: .45rem .3rem; min-height: 2.75rem; color: var(--blue); border: 0; background: none; font-weight: 650; white-space: nowrap; }
.button-link:hover { text-decoration: underline; }

.form-fields { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.field-section { border: 1px solid var(--line); border-radius: .7rem; margin: .75rem 0 1rem; min-inline-size: 0; padding: 1rem; }
.field-section legend { padding: 0 .4rem; font-weight: 780; }
.fields { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.fields label { display: grid; gap: .28rem; font-weight: 650; }
.fields input, .fields select { display: block; width: 100%; min-height: 2.85rem; color: var(--ink); padding: .55rem .65rem; border: 1px solid #becbdd; border-radius: .52rem; background: var(--white); font-weight: 450; }
.fields input::placeholder { color: #63758a; }
.remove-passenger { margin: .4rem 0 -.35rem; }
.add-passenger { margin: 0 0 .4rem; }
.consent { margin: 1rem 0; padding: .8rem; color: var(--muted); background: #f5f8fd; border-radius: .62rem; }
.check { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.check input { margin: .25rem 0 0; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; accent-color: var(--blue); }
.submit { width: 100%; }

.order-status { min-height: 1.5rem; font-size: .88rem; }
.order-list { display: grid; gap: .45rem; }
.order-row { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem; text-align: left; padding: .75rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: var(--white); }
.order-row[aria-pressed="true"], .order-row:hover { border-color: #8aade2; background: #f3f7ff; }
.order-row strong { overflow-wrap: anywhere; }
.order-row small { display: block; color: var(--muted); }
.badge { display: inline-block; width: fit-content; padding: .19rem .46rem; border-radius: .32rem; background: var(--wash); color: var(--blue-dark); font-size: .82rem; font-weight: 720; }
.badge[data-status="COMPLETED"], .badge[data-status="SUCCESS"] { background: #e5f5ef; color: var(--green); }
.badge[data-status="PARTIAL"] { background: #fff4de; color: #794b08; }
.badge[data-status="FAILED"] { background: #fff0ea; color: #952d1e; }
.order-detail { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #fbfcff; overflow-wrap: anywhere; }
.order-detail h3, .order-detail h4 { margin: .25rem 0 .5rem; }
.order-detail > p { margin: .25rem 0; }
.order-detail .results { display: grid; gap: .55rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.results > li { padding: .65rem; border: 1px solid var(--line); border-radius: .52rem; background: var(--white); }
.results > li p { margin: .25rem 0 0; }
.empty { margin: .65rem 0 0; padding: 1.1rem; border: 1px dashed var(--line); border-radius: .65rem; text-align: center; }
.footer { padding-block: 1.5rem 2rem; color: var(--muted); font-size: .86rem; }

@media (min-width: 39rem) {
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit { width: auto; min-width: 10rem; }
}
