/* ==========================================================================
   Area: auth + customer account (views/auth/*, views/account/* except business).
   Loaded after site.css via head({ styles: ['/css/area-account.css'] }).
   Object UI: surfaces, not lines. Slips for lists, a docket for money, soft 12–20px corners,
   sentence-case labels, Martian Mono only for data. No borders, no rules, no new colours.
   ========================================================================== */

/* ---------- Auth: one calm paper card, centred, a short note under it ---------- */
.auth { padding: var(--s-6) 0 var(--s-9); }
.auth__wrap { display: grid; justify-items: center; gap: var(--s-4); }
.auth__card { width: 100%; max-width: 480px; padding: 36px 36px 30px; }
.auth__title { margin: 0; font-size: clamp(2rem, 3.4vw, 2.625rem); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; }
.auth__intro { margin: 10px 0 0; color: var(--fg-2); max-width: 34em; }
.auth__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--slip-gap); margin: 0 0 22px; padding: 0; list-style: none; }
.auth__steps li { padding-top: 12px; border-radius: 2px; background: linear-gradient(var(--oat-deep), var(--oat-deep)) top / 100% 6px no-repeat; color: var(--ink-2); font-size: var(--xs-size); font-weight: 600; line-height: 1.25; }
.auth__steps .is-done { background-image: linear-gradient(var(--moss), var(--moss)); color: var(--ink); }
.auth__steps .is-now { background-image: linear-gradient(var(--sprout), var(--sprout)); color: var(--ink); }
.auth__alert { margin-top: var(--s-4); }
.stack > .auth__legal { margin: 2px 0 0 34px; color: var(--fg-2); line-height: 1.4; }
.auth__legal + .btn { margin-top: var(--s-5); }
.stack > .auth__legal + .btn { margin-top: var(--s-5); }
.auth__resend { margin: var(--s-4) 0 0; color: var(--fg-2); font-size: var(--small-size); }
.auth__resend .link-btn { color: var(--fg); font-weight: 600; }
.auth__email { overflow-wrap: anywhere; }
.auth .errsum { margin: var(--s-5) 0 0; }
.auth__form { margin-top: var(--s-5); }
.auth__form .btn--primary { width: 100%; }
.auth__form > .field + .btn { margin-top: var(--s-4); }
.auth__forgot { margin: -6px 0 0; font-size: var(--small-size); }
.auth__forgot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.auth__card > .btnrow { margin-top: var(--s-5); }
.auth__card > .alert { margin-top: var(--s-5); }
.auth__card > .stack { margin-top: var(--s-4); }
.auth__switch { margin: var(--s-5) 0 0; padding: 14px 18px; border-radius: var(--r); background: var(--oat); font-size: var(--small-size); }
.auth__switch a { font-weight: 600; white-space: nowrap; }
.auth__crew { margin: var(--s-4) 0 0; color: var(--fg-2); font-size: var(--small-size); }
.auth__crew a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.auth__note { width: 100%; max-width: 480px; padding: 20px 24px 22px; border-radius: var(--r-l); background: var(--oat-deep); }
.auth__note-title { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.auth__note-body { display: grid; gap: 8px; justify-items: start; color: var(--ink-2); font-size: var(--small-size); }
.auth__note-body p { margin: 0; }
.auth__note-body a[href^="tel:"] { white-space: nowrap; }
.auth__note-body .link-go { margin-top: 2px; }
.auth__list { display: grid; gap: var(--slip-gap); margin: 0; padding: 0; list-style: none; width: 100%; }
.auth__list li { padding: 10px 14px; border-radius: var(--r); background: var(--slip); color: var(--ink); }
/* The narrowest phones: each step as wide as its words, so none wraps */
@media (max-width: 360px) {
  .auth__steps { grid-template-columns: repeat(3, auto); }
  /* The long button stays on one line: the arrow gives up its room */
  .auth__card .btn--go { padding-inline: 8px; white-space: nowrap; }
  .auth__card .btn--go::after { display: none; }
}
@media (max-width: 640px) {
  .auth { padding-top: var(--s-4); }
  .auth__card { padding: 26px 20px 22px; }
  .auth__note { padding: 18px 20px; }
}

/* ---------- Account shell content ---------- */
/* Internal roles on /account/profile: their team under the name, one slip back to their console. */
.shell__who .shell__team { display: inline-block; width: fit-content; margin-top: 8px; padding: 3px 9px; border-radius: 8px; background: var(--oat-deep); color: var(--ink); font-weight: 600; }
.shell__nav .shell__console { justify-content: flex-start; gap: 10px; background: var(--slip); font-weight: 600; }
.shell__nav .shell__console:hover { background: var(--lichen); }
@media (max-width: 960px) {
  .shell__nav .shell__console { width: fit-content; padding-right: 16px; }
}
.shell__main > .flashes { margin-bottom: var(--s-5); }
.acct-gap-b { margin-bottom: var(--s-5); }
.acct-narrow { max-width: 760px; }
.acct-sections > * + * { margin-top: var(--s-5); }
.acct-sub { display: block; color: var(--fg-2); font-size: var(--small-size); }

/* Page head used where the shell title does not fit (overview greeting, data titles, back links) */
.acct-head { margin-bottom: var(--s-6); }
.acct-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.acct-head__text { min-width: 0; flex: 1 1 320px; }
.acct-head__title { margin: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.acct-head__title--data { font-family: var(--f-mono); font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.acct-head__lede { margin: var(--s-2) 0 0; color: var(--fg-2); font-size: var(--lede-size); }
.acct-head__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acct-h2 { margin: 0 0 var(--s-3); font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Overview: parcels pane + side pane (.panes from site.css 21b) ---------- */
.acct-board { --pane-side: 340px; }
.acct-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: 12px; }
.acct-sechead__title { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.acct-filter .tabs__list { gap: 4px; }
.acct-filter__now { background: var(--lichen); font-weight: 600; }

/* Parcel slips: route over number and service · status sticker over one useful line · the action */
.parcel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 112px; gap: 16px; align-items: center; padding: 12px 18px; }
.parcel__main, .parcel__status { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.parcel__route.od { max-width: 100%; gap: 8px; font-size: 1rem; flex-wrap: nowrap; }
.parcel__from { flex: none; }
.parcel__to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.parcel__route .od__arrow { width: 28px; }
.parcel__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.parcel__tn { font-size: .75rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.parcel__tn:hover { color: var(--moss); text-decoration: underline; }
.parcel__svc { color: var(--ink-2); font-size: var(--small-size); }
.parcel.is-current .parcel__svc, .parcel.is-current .parcel__when { color: var(--ink); }
.parcel__when { max-width: 100%; color: var(--ink-2); font-size: var(--small-size); line-height: 1.35; }
.parcel.is-problem .parcel__when { color: var(--ink); }
.parcel__go { display: flex; justify-content: flex-end; }
.parcel__go > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.parcel__go .btn { white-space: nowrap; }
.acct-more { margin: var(--s-3) 0 0; }

/* Next pickup: under the parcels, what is coming on the left, the pickup address beside it */
.acct-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: 14px; }
.acct-next__text { min-width: 0; }
/* The empty card above it starts its text on the same line */
.acct-board__main > .empty { padding-inline: 20px; }
.acct-next .acct-side__addr { margin-top: 0; }
.acct-board__side .acct-next { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 0; }
@media (max-width: 640px) { .acct-next { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* Side pane: recent payments, the business note */
.acct-board__side { display: grid; gap: 14px; }
.acct-side { padding: 18px 20px 20px; }
.acct-side--quiet { border-radius: var(--r-l); background: var(--oat-deep); }
.acct-side__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.acct-side__title { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.acct-side__k { margin: 0 0 2px; color: var(--ink-2); font-size: var(--small-size); font-weight: 600; }
.acct-side--quiet .acct-side__k { color: var(--ink); }
.acct-side__text { margin: 0; overflow-wrap: anywhere; }
.acct-side__text .mono { font-size: .8125rem; white-space: nowrap; }
.acct-side__note { margin: 6px 0 0; color: var(--ink-2); font-size: var(--small-size); }
.acct-side__addr { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--oat); }
.acct-side__addr .acct-side__text { font-size: var(--small-size); }
.acct-side__link { display: inline-flex; align-items: center; min-height: 36px; font-size: var(--small-size); font-weight: 600; }

/* Recent payments: date · what · amount (a status under the amount when it is not a plain payment) */
.acct-pays__list { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.acct-pay { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.acct-pay__date { color: var(--ink-2); font-size: .75rem; }
.acct-pay__what { display: grid; gap: 2px; min-width: 0; }
.acct-pay__name { font-weight: 600; font-size: .9375rem; overflow-wrap: anywhere; }
a.acct-pay__name { color: var(--ink); text-decoration: none; }
a.acct-pay__name:hover { color: var(--moss); text-decoration: underline; }
.acct-pay__tn { color: var(--ink-2); font-size: .6875rem; }
.acct-pay__amt { display: grid; justify-items: end; gap: 2px; font-size: .875rem; }
.acct-pay__st .st { font-size: var(--xs-size); }
.acct-pays__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--oat); }
.acct-pays__total .mono { font-size: 1.25rem; }
.acct-pays__label { display: grid; font-weight: 600; }
.acct-pays__sub { color: var(--ink-2); font-size: var(--xs-size); font-weight: 400; }
.acct-pays__none { margin: 0; color: var(--ink-2); font-size: var(--small-size); }

/* Below 1180px the panes stack: payments at full width, the business note one strip under them */
@media (min-width: 641px) and (max-width: 1179.98px) {
  .acct-side--quiet { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: center; }
  .acct-side--quiet .acct-side__k { grid-column: 1 / -1; }
}
/* The smallest phones: the date moves above the payment so the number and its status never touch */
@media (max-width: 380px) {
  .acct-pay { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .acct-pay__date { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .parcel { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .parcel__main { grid-column: 1 / -1; }
  .parcel__status { grid-column: 1; }
  .parcel__go { grid-column: 2; align-self: end; }
}

/* ---------- Shipments list ---------- */
.acct-tabs { margin-bottom: var(--s-3); }
/* Tablet portrait: six tabs still fit one line, so the last one never drops alone onto a second row */
@media (min-width: 641px) and (max-width: 800px) { .acct-tabs .tabs__link { padding-inline: 10px; } }
.acct-filters { align-items: end; }
.acct-results { margin-top: var(--s-5); }
.filters + .filters__active { margin-top: var(--s-4); }
.acct-tn > a { white-space: nowrap; font-size: .8125rem; font-weight: 500; }
.acct-to { font-weight: 600; }
.acct-ships td { vertical-align: middle; }
/* A reference moves to the next line whole, and only wraps inside itself when it is longer than the line */
.acct-ref { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 360px) { .acct-ref { display: block; } .acct-ref__sep { display: none; } }
.acct-ships .st { white-space: nowrap; }
.acct-ships .acct-where { margin-top: 2px; }
.acct-ships .acct-when { white-space: nowrap; font-size: var(--small-size); }
.acct-ships .acct-booked { white-space: nowrap; }
/* 961–1199px (sidebar beside a narrower page): "Last update" steps aside so the table still fits */
@media (min-width: 961px) and (max-width: 1199.98px) { .acct-ships .acct-col-upd { display: none; } }
/* Stacked on phones and foldables: one compact slip per parcel (number and total, receiver, status and last update) */
@media (max-width: 960px) {
  .acct-ships tr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; }
  .acct-ships td[data-label] { padding-left: 0 !important; }
  .acct-ships td[data-label]::before { content: none; }
  .acct-ships .acct-tn { grid-column: 1; grid-row: 1; }
  .acct-ships td.num { grid-column: 2; grid-row: 1; text-align: right; }
  .acct-ships td[data-label="To"] { grid-column: 1 / -1; }
  .acct-ships td[data-label="Status"] { grid-column: 1; }
  .acct-ships td.acct-when { display: block; grid-column: 2; align-self: end; color: var(--ink-2); font-size: var(--small-size); text-align: right; }
  .acct-ships td.acct-booked { display: none; }
}

/* From a 600px container there is room for one line per parcel: number, receiver, status, the total over the last update */
@container tbl (min-width: 600px) {
  .acct-ships tbody { grid-template-columns: minmax(0, 1fr); }
  .acct-ships tr { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) 150px; column-gap: 16px; row-gap: 0; align-items: center; }
  .acct-ships .acct-tn, .acct-ships td[data-label="To"], .acct-ships td[data-label="Status"] { grid-row: 1 / span 2; }
  .acct-ships td[data-label="To"] { grid-column: 2; }
  .acct-ships td[data-label="Status"] { grid-column: 3; }
  .acct-ships td.num { grid-column: 4; grid-row: 1; }
  .acct-ships td.acct-when { grid-column: 4; grid-row: 2; }
}

/* ---------- Shipment detail: the status card and the journey in the main pane, price and payment beside ---------- */
.acct-detail { --pane-side: 340px; }
.acct-detail__main { display: grid; gap: var(--s-6); }
.acct-detail__side { display: grid; gap: 14px; }
.acct-head--data .console__title { font-family: var(--f-mono); font-weight: 500; letter-spacing: -.01em; }

.acct-now { padding: 24px 26px 6px; border-radius: var(--r-xl); background: var(--slip); }
.acct-now.is-current { background: var(--lichen); --inset: var(--slip); }
.acct-now__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.acct-now__top .st { font-size: 1.25rem; font-weight: 600; gap: 10px; }
.acct-now__top .st__g { width: 24px; height: 24px; }
.acct-now__svc { display: inline-flex; align-items: center; gap: 8px; }
.acct-now__route { margin: var(--s-4) 0 0; font-size: 1.125rem; }
.acct-now__eta { margin: var(--s-2) 0 0; color: var(--fg-2); }
.acct-now__eta strong, .acct-now__eta .mono { color: var(--ink); }
.acct-now__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; }
.acct-now__actnote { color: var(--ink-2); font-size: var(--small-size); }
.acct-now .acct-pickup { margin-top: 14px; }
.acct-price { margin: 0; }
.acct-now .prog { margin: var(--s-5) 0 var(--s-4); }

/* The side pane's panels line up with the price docket; a narrower label column keeps values on one line */
.acct-detail__side .panel__head { padding-inline: 26px; padding-top: 24px; }
.acct-detail__side .panel__body { padding-inline: 26px; }
.acct-detail__side .kv { grid-template-columns: 118px minmax(0, 1fr); gap: 10px 10px; }
.acct-detail__side .kv dd { font-size: var(--small-size); }
.acct-detail__side .kv dt { font-size: var(--small-size); }
.acct-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--slip-gap); }
.acct-party { padding: 18px 20px 20px; border-radius: var(--r-l); background: var(--slip); min-width: 0; }
.acct-party__head { margin: 0 0 6px; color: var(--fg-2); font-size: var(--small-size); font-weight: 600; }
.acct-address { font-style: normal; line-height: 1.5; overflow-wrap: anywhere; }
.acct-contact { margin: var(--s-2) 0 0; color: var(--fg-2); font-size: var(--small-size); overflow-wrap: anywhere; }

.acct-cancel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5); padding: 20px 24px; border-radius: var(--r-l); background: var(--oat-deep); }
.acct-cancel > div { flex: 1 1 280px; min-width: 0; }
/* An outline button is oat-deep, the same as this panel: slip keeps its shape */
.acct-cancel .btn--outline { background: var(--slip); }
.acct-cancel .btn--outline:hover { background: var(--lichen); }
.acct-cancel__title { margin: 0; font-size: 1.125rem; font-weight: 600; }
.acct-cancel__text { margin: 4px 0 0; color: var(--ink-2); font-size: var(--small-size); }

/* Stacked below 1180px: price and payment two up, the details under them at full width */
@media (max-width: 1179.98px) {
  .acct-detail__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .acct-details { grid-column: 1 / -1; }
  .acct-details .kv { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .acct-detail__side, .acct-parties { grid-template-columns: minmax(0, 1fr); }
  .acct-detail__side .panel__head, .acct-detail__side .panel__body, .acct-detail__side .summary { padding-inline: 18px; }
  .acct-details .kv { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
  .acct-detail__side .kv dd { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .acct-detail__main { gap: var(--s-5); }
  .acct-now { padding: 20px 18px 4px; }
  .acct-cancel .btn { width: 100%; }
  /* Two buttons in one panel share the row evenly; on the narrowest phones they stack at full width */
  .acct-cancel > :has(> form + form) { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 8px; }
}

/* ---------- Address book: paper cards, the default sender lichen ---------- */
.acct-addrs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .acct-addrs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acct-addr { display: flex; flex-direction: column; gap: var(--s-3); padding: 22px 24px 10px; border-radius: var(--r-l); background: var(--slip); min-width: 0; container-type: inline-size; }
.acct-addr__body { flex: 1 1 auto; display: grid; gap: var(--s-3); align-content: start; }
/* A wide card: the contact details sit beside the address */
@container (min-width: 460px) { .acct-addr__body { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-5); } }
.acct-addr--note { justify-content: center; padding: 22px 24px; background: var(--oat-deep); }
.acct-addr__notetext { margin: 0; max-width: 34em; color: var(--ink-2); }
.acct-addr.is-default { background: var(--lichen); }
.acct-addr__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.acct-addr__title { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; min-width: 0; }
.acct-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--moss-deep); font-size: var(--small-size); font-weight: 600; white-space: nowrap; }
.acct-addr .acct-address { flex: 1 1 auto; }
.acct-addr .acct-contact { margin: 0; }
.acct-addr__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); font-size: var(--small-size); }
.acct-addr__foot form { display: inline; }
.acct-addr__foot a, .acct-addr__foot .link-btn { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: inherit; }
.acct-danger-link { color: var(--tomato); }
.acct-danger-link:hover { color: var(--tomato); text-decoration-thickness: 2px; }

/* ---------- Forms in a paper panel (address form, profile): compact (site.css .form-compact) ---------- */
.acct-form { padding: 22px 24px 24px; }
.acct-legend, .form-compact .acct-legend { margin-bottom: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.acct-form__cols { display: grid; gap: 18px 36px; }
.acct-form__cols > .fieldset, .form-compact .acct-form__cols > .fieldset + .fieldset { min-width: 0; margin: 0; }
.acct-form__rp { grid-template-columns: minmax(0, 1fr) clamp(7.5em, 33%, 10em); }
@media (max-width: 400px) { .acct-form__rp { grid-template-columns: minmax(0, 1fr) 4.5em; } }
.acct-form__default { margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--oat); --field: var(--slip); }
.acct-form__actions { margin-top: 16px; }
.acct-form__head { margin-bottom: 12px; }
.acct-form__title { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; }
.acct-form__intro { margin: 2px 0 0; color: var(--fg-2); font-size: var(--small-size); }
.acct-form .errsum { background: var(--oat); }
@media (min-width: 720px) { .acct-form__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Profile: the details and the password side by side, the same height, each Save at its panel's foot */
.acct-profile { display: grid; gap: 16px; align-items: stretch; }
.acct-profile > .acct-form { display: flex; flex-direction: column; }
.acct-profile > .acct-form > form { display: flex; flex-direction: column; flex: 1 1 auto; }
.acct-profile .acct-form__actions { margin-top: auto; padding-top: 16px; }
.acct-profile .field-wrap + .field, .acct-profile .field + .field-wrap { margin-top: 12px; }
.acct-twostep { display: flex; flex-direction: column; }
.acct-twostep .acct-form__head { margin-bottom: 0; }
@media (min-width: 720px) {
  .acct-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; }
  .acct-profile > #details { grid-row: 1 / span 2; }
  /* A long error list on one side: the other panel keeps its own height, with no gap above its button */
  .acct-profile:has(.errsum) { align-items: start; }
}
@media (max-width: 640px) {
  .acct-form { padding: 18px 16px 20px; }
}

/* ---------- Payments: tracking numbers at data size ---------- */
.shell__main .table a.mono { font-size: .8125rem; font-weight: 500; white-space: nowrap; }
/* Stacked payments: a short slip (number and amount, date and card, status and receipt), one line each from a 600px container */
@media (max-width: 960px) {
  .acct-payments tr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .acct-payments td[data-label] { padding-left: 0 !important; }
  .acct-payments td[data-label]::before { content: none; }
  .acct-payments td[data-label="For"] { grid-column: 1; grid-row: 1; }
  .acct-payments td.num { grid-column: 2; grid-row: 1; text-align: right; }
  .acct-payments td[data-label="Date"], .acct-payments td[data-label="Card"] { color: var(--ink-2); font-size: var(--small-size); }
  .acct-payments td[data-label="Date"] { grid-column: 1; grid-row: 2; }
  .acct-payments td[data-label="Card"] { grid-column: 2; grid-row: 2; text-align: right; }
  .acct-payments td[data-label="Status"] { grid-column: 1; grid-row: 3; align-self: center; }
  .acct-payments td.table__actions { grid-column: 2; grid-row: 3; justify-content: flex-end; margin-top: 0; }
  .acct-payments .sub { white-space: normal; }
  .acct-payments .table__muted { white-space: nowrap; }
}
@container tbl (min-width: 600px) {
  .acct-payments tbody { grid-template-columns: minmax(0, 1fr); }
  .acct-payments tr { grid-template-columns: 84px minmax(0, 1fr) 150px 90px 62px 78px; column-gap: 10px; align-items: center; }
  .acct-payments td[data-label="Date"], .acct-payments td[data-label="For"], .acct-payments td[data-label="Card"], .acct-payments td[data-label="Status"], .acct-payments td.num, .acct-payments td.table__actions { grid-row: 1; }
  .acct-payments td[data-label="Date"] { grid-column: 1; color: var(--ink); }
  .acct-payments td[data-label="For"] { grid-column: 2; }
  .acct-payments td[data-label="Card"] { grid-column: 3; text-align: left; color: var(--ink); }
  .acct-payments td[data-label="Status"] { grid-column: 4; }
  .acct-payments td.num { grid-column: 5; }
  .acct-payments td.table__actions { grid-column: 6; }
}
/* Column headers are words, not data: numeric headers stay in the sans face */
.shell__main .table thead th.num { font-family: var(--f-sans); font-size: var(--caption-size, var(--small-size)); font-weight: 600; }

/* ---------- Parcel flow: journey on the detail page, pickup block, "Where now" in lists ---------- */
.acct-now__headline { margin: var(--s-4) 0 0; font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; max-width: 34em; }
.acct-now:not(:has(.prog)) { padding-bottom: 22px; }
.acct-journey { margin-top: 0; }
.acct-journey .acct-h2 { margin-bottom: 14px; }
.acct-journey .jrny__cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.acct-journey .jrny__stage-label { font-size: .75rem; letter-spacing: -.01em; }
.acct-pod { margin: 18px 0 0; max-width: 480px; }
.acct-pod img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--oat-deep); }
.acct-pod__cap { margin-top: 8px; color: var(--ink-2); font-size: var(--small-size); }
.acct-pickup { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 14px 18px; border-radius: var(--r); background: var(--oat-deep); line-height: 1.45; }
.acct-pickup--now { background: var(--lichen); }
.acct-pickup--problem { box-shadow: inset 3px 0 0 var(--tomato); }
.acct-pickup__k { font-weight: 600; min-width: 5em; }
.acct-where { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.acct-where__text { font-size: var(--small-size); }
.acct-when { white-space: nowrap; }

/* ---------- Touch (≤ 960px or a finger): 44px tap areas, 12px smallest type ---------- */
@media (max-width: 960px), (pointer: coarse) {
  .stack > .auth__legal { margin-top: -10px; }
  .parcel__tn { display: inline-flex; align-items: center; min-height: 44px; margin-block: -14px; }
  a.acct-pay__name { display: flex; align-items: center; min-height: 44px; margin-block: -11px; }
  .parcel__go a { min-width: 44px; justify-content: flex-end; }
  .acct-addr__foot a, .acct-addr__foot .link-btn { min-width: 44px; }
  .acct-pay__tn { font-size: .75rem; }
}

/* Charges made after booking, under the price */
.acct-charges__title { margin: var(--s-4) 0 var(--s-2); }
.acct-charges { margin-top: 0; }
.acct-charges .summary__line + .summary__line { margin-top: var(--s-2); }

/* Parcel page: what you can do with this booking. */
.acct-more { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; }
.acct-more form { margin: 0; }

/* Claims: a closed claim has no reply date, so its stacked card drops that line; an odd last card fills the row */
@media (max-width: 960px) { .acct-claims td[data-label]:empty { display: none; } }
@container tbl (min-width: 600px) {
  .acct-claims tbody tr:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .acct-claims tbody tr:last-child:nth-child(odd) td[data-label] { padding-left: calc(19% + 12px) !important; }
  .acct-claims tbody tr:last-child:nth-child(odd) td[data-label]::before { width: 19%; }
}
