:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #182344;
  background: #f7f4ee;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: clamp(1rem, 6vw, 4.5rem) 1rem; }
.layout {
  width: min(100%, 72rem);
  margin-inline: auto;
  border: 1px solid #e0e4ef;
  border-radius: 1.5rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1.25rem 3.75rem #131c3c12;
}
.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem clamp(1.25rem, 5vw, 2.5rem);
  color: #fff;
  background: #131c3c;
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -.025em;
}
.brand img { display: block; flex: none; border-radius: .85rem; }
.consult { padding: clamp(1.25rem, 5vw, 2.5rem); }
h1 { margin: 0; max-width: 15ch; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.05; letter-spacing: -.05em; }
p { line-height: 1.55; }
.intro p { margin: .8rem 0 1.75rem; color: #52617b; }
form { display: grid; gap: .65rem; }
label { font-size: .93rem; font-weight: 680; }
input, button {
  min-height: 3.1rem;
  width: 100%;
  border-radius: .75rem;
  font: inherit;
}
input {
  padding: .7rem .9rem;
  border: 1px solid #a7b2cc;
  color: #182344;
  background: #f8faff;
  font-family: ui-monospace, Consolas, monospace;
  text-transform: uppercase;
}
input:focus-visible, button:focus-visible { outline: 3px solid #677bea; outline-offset: 2px; }
button {
  border: 1px solid transparent;
  background: #2342c5;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: .7rem 1rem;
}
button:hover { background: #1d329b; }
button:disabled { opacity: .7; cursor: wait; }
.feedback { margin: 1rem 0 0; color: #604027; }
.feedback:empty { display: none; }
.result {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid #c5d1ff;
  border-radius: .85rem;
  background: #ebf0ff;
}
.result h2 { margin: .2rem 0 .5rem; font-size: 1.45rem; }
.result p { margin: 0; color: #34466b; }
time { font-weight: 650; }
.detail-card {
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid #e0e4ef;
  border-radius: .85rem;
}
.detail-card h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
.detail-note, figcaption { color: #52617b; font-size: .93rem; }
.detail-card .detail-note { margin: .8rem 0 0; }
.facts, .amounts { margin: 0; }
.facts > div, .amounts > div {
  padding: .55rem 0;
  border-bottom: 1px solid #e2e8f5;
}
.facts > div:last-child, .amounts > div:last-child { border-bottom: 0; }
.facts dt { color: #52617b; font-size: .9rem; }
dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.facts dd { white-space: pre-wrap; }
.amounts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
.amounts dt { overflow-wrap: anywhere; }
.amounts dd { margin: 0; font-variant-numeric: tabular-nums; text-align: end; }
.amounts > div:last-child { font-weight: 720; }
figure { margin: 1rem 0 0; }
figure img { display: block; width: 100%; max-height: 24rem; object-fit: contain; background: #f7f4ee; border-radius: .65rem; }
figcaption { margin-top: .4rem; }
.account-link { margin-left: auto; color: inherit; font-size: .94rem; }
.consult [hidden] { display: none !important; }
.detail-card label { display: grid; gap: .3rem; }
.detail-card input { text-transform: none; font-family: inherit; }
.detail-card select, .detail-card textarea {
  width: 100%; border: 1px solid #a7b2cc; border-radius: .75rem;
  background: #f8faff; font: inherit; color: inherit; padding: .65rem;
}
.account-list { list-style: none; padding: 0; margin: 0 0 .8rem; }
.account-list li { display: grid; gap: .2rem; padding: .6rem 0; border-bottom: 1px solid #e2e8f5; overflow-wrap: anywhere; }
.account-list li span, .account-list li a { color: #34466b; }
.logout { margin-top: 1rem; }
.member-bike-photo { width: min(100%, 12rem); max-height: 9rem; object-fit: contain; border-radius: .5rem; }
.google-button {
  display: grid; place-items: center; min-height: 3.1rem; border: 1px solid #a7b2cc;
  border-radius: .75rem; color: #182344; font-weight: 700; text-decoration: none;
}
.google-button:hover { background: #ebf0ff; }
.account-layout { width: min(100%, 62rem); }
.account-nav {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem;
  padding: .35rem; border: 1px solid #e0e4ef; border-radius: .9rem; background: #f7f4ee;
  margin-bottom: 1.6rem;
}
.account-nav a {
  display: grid; place-items: center; padding: .55rem .35rem; min-height: 2.8rem;
  border-radius: .65rem; color: #34466b; text-align: center; text-decoration: none; font-weight: 650;
}
.account-nav a:hover { background: #ebf0ff; }
.account-nav a[aria-current="page"] { background: #2342c5; color: #fff; }
.account-panel h1 { max-width: none; font-size: clamp(1.65rem, 5vw, 2.5rem); margin-bottom: 1rem; }
.account-panel h1:focus { outline: none; }
.membership-summary {
  background: #ebf0ff; border: 1px solid #c5d1ff; border-radius: 1rem; padding: 1.15rem;
}
.membership-summary h2 { margin: 0 0 .35rem; font-size: clamp(1.2rem, 4vw, 1.6rem); }
.membership-summary p { margin: .2rem 0; color: #34466b; }
.account-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: .85rem 0;
}
.account-summary a {
  display: grid; align-content: start; gap: .15rem; padding: .85rem; border: 1px solid #e0e4ef;
  border-radius: .8rem; text-decoration: none; color: #2342c5; font-size: .92rem; font-weight: 650;
}
.account-summary a:hover { background: #f7f4ee; }
.account-summary strong { color: #182344; font-size: 1.4rem; }
.account-cards { display: grid; gap: .65rem; margin: .85rem 0; }
.account-cards li { padding: .85rem 1rem; border: 1px solid #e0e4ef; border-radius: .8rem; }
.account-cards li > button { justify-self: start; width: auto; margin-top: .5rem; }
.account-action { margin-top: 0; }
.account-action summary { cursor: pointer; color: #2342c5; font-weight: 700; }
.account-action[open] form { margin-top: 1rem; }
.account-panel .logout button { width: auto; background: #fff; color: #2342c5; border-color: #a7b2cc; }
.account-layout a:focus-visible, .account-action summary:focus-visible { outline: 3px solid #677bea; outline-offset: 2px; }
@media (max-width: 480px) {
  .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-summary { grid-template-columns: 1fr; gap: .45rem; }
  .account-summary a { display: flex; align-items: center; gap: .7rem; }
}
@media (max-width: 400px) {
  .brand { flex-wrap: wrap; }
  .account-link { margin-left: 0; }
}

.approval-alert, .approval-badge {
  color: #69450f;
  background: #fff2d6;
  border: 1px solid #ecd09c;
  border-radius: .75rem;
}
.approval-alert { margin: .85rem 0; padding: .85rem 1rem; }
.approval-alert h2, .approval-alert h3 { margin: 0 0 .3rem; font-size: 1rem; }
.approval-alert p { margin: 0 0 .4rem; color: inherit; }
.approval-alert a { color: inherit; font-weight: 700; }
.approval-badge { justify-self: start; padding: .2rem .5rem; font-weight: 700; }
.history-button { width: auto; margin-top: .8rem; }
.history-dialog {
  width: min(calc(100% - 2rem), 32rem);
  max-height: calc(100% - 2rem);
  padding: 1.25rem;
  border: 1px solid #c5d1ff;
  border-radius: 1rem;
  color: #182344;
}
.history-dialog::backdrop { background: #131c3c80; }
.history-dialog h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.stage-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.stage-list li { padding: .65rem .85rem; border-left: 2px solid #c5d1ff; }
.stage-list time { display: block; color: #52617b; font-size: .9rem; }
.stage-list p { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Customer portal */
.brand-name { display: grid; gap: .18rem; line-height: 1.02; }
.brand-name small { color: #d9e3ff; font-size: .76rem; font-weight: 600; letter-spacing: .025em; }
.brand img { width: 2.65rem; height: 2.65rem; border-radius: .55rem; }
.account-link {
  padding: .6rem .85rem; border: 1px solid #7080ac; border-radius: .55rem;
  color: #fff; font-weight: 650; text-decoration: none;
}
.account-link:hover { background: #2b3964; }
.tracking-page .consult { padding: 0 0 clamp(1.1rem, 4vw, 2.5rem); }
.tracking-hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 1fr);
  align-items: center; gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(1.4rem, 5vw, 4rem);
  background: linear-gradient(120deg, #eaf0ff, #dfe8ff);
  border-bottom: 1px solid #c5d1ff;
}
.tracking-hero h1 {
  max-width: 11ch; font-family: Georgia, serif; font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.07em;
}
.tracking-hero .intro p { max-width: 34ch; margin: 1rem 0 0; }
#lookup {
  align-self: center; padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid #c5d1ff; border-radius: .95rem; background: white;
  box-shadow: 0 .75rem 1.8rem #2342c514; gap: .8rem;
}
#lookup h2 { margin: 0 0 .25rem; font-size: 1.3rem; }
#code-help { margin: -.35rem 0 .1rem; color: #52617b; font-size: .88rem; }
.tracking-page .consult > :not(.tracking-hero) { margin-inline: clamp(1rem, 5vw, 4rem); }
#order-detail { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#order-detail > section:first-child { grid-row: span 2; }
#order-detail > section { margin: 0; }
#order-detail:not([hidden]) { margin-top: 1rem; }
.account-nav { margin: 0 0 2rem; padding: .45rem; border-radius: .75rem; background: #eef2ff; }
.account-panel h1, #access-title { font-family: Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
.account-summary { margin-block: 1rem 1.25rem; }
.account-summary a { background: #fff; border-bottom: 3px solid #b8c7ff; }
.account-summary a:hover { background: #f3f6ff; border-bottom-color: #2342c5; }
.account-cards li { border-left: 3px solid #9db0ff; }
#push-status:empty { display: none; }

@media (max-width: 700px) {
  .tracking-hero { grid-template-columns: 1fr; }
  .tracking-hero h1 { max-width: 13ch; }
  #order-detail { grid-template-columns: 1fr; }
  #order-detail > section:first-child { grid-row: auto; }
}
@media (max-width: 400px) {
  .brand { gap: .5rem; padding-inline: .85rem; }
  .brand img { width: 2.15rem; height: 2.15rem; }
  .brand-name { font-size: 1.14rem; }
  .account-link { margin-left: auto; padding: .5rem; font-size: .8rem; }
}

.purchase-pager { display:flex; gap:.7rem; }
.purchase-pager button { width:auto; }
#purchase-status:empty { display:none; }
