/* account-forms.css (docs/v2-contracts.md §7.7): the rules the customer panel shares with /track-order/ and
   /request-a-product/: forms, journey, timeline, order card. Loads before account.css; no rule is in both.
   Owner: Account agent. Logical props only. */
/* Keyboard focus scrolls fields clear of the fixed bottom nav (<900) and the chat launcher (short screens: base.css) */
@media (min-height:481px){html:has(.acct,.reqf-wrap,.trackf-wrap){scroll-padding-block-end:96px}}
@media (max-width:899px) and (min-height:481px){html:has(.acct,.reqf-wrap,.trackf-wrap){scroll-padding-block-end:calc(var(--bottomnav-h) + 72px)}}
.acct-ico,.othumb,.acct-item__img,.timeline__node{display:grid;place-items:center;flex:none}
.acct-ico{--icon:20px;width:44px;height:44px;border-radius:50%;background:var(--surface-2)}
.acct-ico--red{background:var(--red-50);color:var(--red-600)}
.acct-ico--ok{background:var(--teal-500);color:#fff}
.journey__items,.acct-formhead,.reqf__facts li{display:flex;align-items:center;gap:14px}
.acct-sh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;margin-block-end:12px}
.olist{display:grid;gap:14px}
.olist,.olist>*{min-width:0}
/* Journey: stage, route arc (US store → door), last update, items */
.journey{position:relative;isolation:isolate;display:grid;gap:18px;overflow:hidden;padding:clamp(22px,3.6vw,44px);border-radius:var(--r-2xl);background-image:radial-gradient(110% 90% at 100% 0,#ffffff1c,#fff0 62%)}
.journey__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.journey__intro{display:grid;justify-items:start;gap:8px}
.journey__kicker,.journey__desc,.journey__meta,.journey__sum{color:var(--text-muted)}
.journey__stage{margin:0;font-size:clamp(1.75rem,1.2rem + 2.2vw,2.75rem);font-weight:780;font-stretch:118%;line-height:1}
.journey__no{display:inline-flex;align-items:center;flex:none;min-height:40px;padding:0 16px;border-radius:var(--r-pill);background:#ffffff24;font-size:14px;text-decoration:none}
/* Touch: the order-number pill grows to a 44px target (base.css grows .btn--sm and the wishlist buttons) */
@media (pointer:coarse){.journey__no{min-height:44px}}
.journey__arc{width:100%;max-width:560px;justify-self:center}
.journey__meta{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:14px}
.journey__foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;padding-block-start:18px;border-block-start:1px solid var(--border)}
.journey__items{margin-inline-end:auto}
.journey__sum{display:grid;font-size:14px}
.journey__total{color:var(--tone-fg);font-size:17px;font-weight:700}
/* The route draws from the US store to the current stage, then the plane lands on it (motion only when allowed) */
@media (prefers-reduced-motion:no-preference){.journey .route-arc__progress{animation:acct-draw 1.2s var(--ease) .2s both}.journey .route-arc__plane{animation:acct-land .45s var(--ease) 1.15s both}}
@keyframes acct-draw{from{stroke-dasharray:0 200}}
@keyframes acct-land{from{opacity:0;scale:.4}}
.othumbs{position:relative;display:flex;flex:none}
.othumb,.acct-item__img{width:56px;height:56px;overflow:hidden;border:2px solid var(--surface);border-radius:var(--r-sm);background:var(--surface-2)}
.othumb+.othumb{margin-inline-start:-18px}
:is(.othumb,.acct-item__img) img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.othumb__ph{color:var(--ink-400);font-weight:800}
.othumb--more{font-size:13px;font-weight:700}
.ocard .othumb,.acct-item__img{width:64px;height:64px}
.ocard .othumb--more{position:absolute;inset-block-end:-6px;inset-inline-end:-6px;width:28px;height:28px;margin:0;border-radius:50%;background:var(--ink-900);color:#fff;font-size:12px}
.oprog{display:inline-flex;align-items:center;gap:10px}
.oprog i{position:relative;width:8px;height:8px;border-radius:50%;background:var(--ink-200)}
.oprog i+i::before{content:"";position:absolute;inset-inline-end:100%;inset-block-start:3px;width:10px;height:2px;background:inherit}
.oprog .is-done,.oprog .is-now::before{background:var(--teal-500)}
/* The current stage pulses twice on load, then rests: done within 5 s (WCAG 2.2.2) */
.oprog .is-now,.is-now .timeline__node{--c:var(--red-500);background:var(--red-500);animation:bs-pulse 1.8s var(--ease) 2}
.timeline{--tl-line:var(--ink-200);--tl-done:var(--teal-500);--tl-ink:#fff;--tl-node:var(--surface);display:grid;margin:0;padding:0;list-style:none}
.tone-teal .timeline{--tl-line:#ffffff47;--tl-done:#fff;--tl-ink:var(--teal-600);--tl-node:var(--tone-teal-bg)}
.timeline__step{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);align-content:start;column-gap:14px;padding-block-end:22px}
.timeline__step:not(:last-child)::before{content:"";position:absolute;inset-inline-start:17px;inset-block:40px 4px;width:2px;border-radius:1px;background:var(--tl-line)}
.timeline__step.is-done::before{background:var(--tl-done)}
.timeline__node{--icon:18px;width:36px;height:36px;border:1.5px solid var(--tl-line);border-radius:50%;background:var(--tl-node);color:var(--text-subtle)}
.is-done .timeline__node{border-color:var(--tl-done);background:var(--tl-done);color:var(--tl-ink)}
.is-now .timeline__node{border-color:var(--red-500);color:#fff}
.timeline__body{display:grid;gap:2px;padding-block-start:6px}
.timeline__title{font-weight:650;line-height:1.3}
.is-next .timeline__title{color:var(--text-subtle);font-weight:550}
.timeline__desc,.timeline__time{color:var(--text-muted);font-size:14px}
.timeline__time{justify-self:start;font-size:12px}
/* Wide: the steps share three rows (subgrid), so times line up when a title wraps; smaller, tighter stamps */
@container (min-width:780px){
.timeline{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-rows:repeat(3,auto)}
.timeline__step{grid-row:span 3;grid-template-rows:subgrid;grid-template-columns:none;row-gap:0;justify-items:center;padding:0 4px;text-align:center}
.timeline__step:not(:last-child)::before{inset-block-start:17px;inset-inline:calc(50% + 24px) calc(-50% + 24px);width:auto;height:2px}
.timeline__body{display:contents}
.timeline__title{margin-block-start:12px;font-size:14px;text-wrap:balance}
.timeline__time{justify-self:center;margin-block-start:4px;font-size:11px;letter-spacing:-.02em;word-spacing:-.25em}
.timeline__desc{display:none}
}
/* Order card. The order link covers the whole card (action buttons sit above it, account.css). */
.ocard{position:relative;isolation:isolate;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px 16px;padding:16px;border-radius:var(--r-lg);background:var(--surface);transition:box-shadow var(--t) var(--ease),translate var(--t) var(--ease)}
.ocard__main{display:grid;gap:6px;min-width:0}
.ocard__no{font-size:17px;font-weight:660;line-height:1.25}
.ocard__no a{text-decoration:none}
.ocard__no a:hover{text-decoration:underline}
.ocard__no a::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.ocard__meta{display:flex;flex-wrap:wrap;gap:2px 14px;color:var(--text-muted);font-size:14px}
.ocard__total{color:var(--text)}
.ocard__stage{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.ocard--compact{grid-template-columns:auto minmax(0,1fr) auto}
@media (hover:hover){.ocard--compact:hover{translate:0 -2px;box-shadow:var(--sh-2)}}
@container (min-width:640px){.ocard{grid-template-columns:auto minmax(0,1fr) auto;padding:18px 22px}}
/* Track and request forms */
.acct-formhead{margin-block-end:22px}
.acct-formhead__sub,.acct-formnote{font-size:14px}
.acct-formnote{margin-block-start:14px;text-align:center}
.acct-formnote a{color:inherit;font-weight:600}
.reqf-wrap,.trackf-wrap{display:grid;gap:16px;container-type:inline-size}
.trackf-own{margin-block-start:clamp(8px,2vw,20px)}
.reqf__row,.trackf__row{display:grid;column-gap:16px}
.reqf__qty .qty{justify-self:start;height:52px}
@container (min-width:520px){.reqf__row{grid-template-columns:1fr 1fr auto}.reqf__row--2,.trackf__row{grid-template-columns:1fr 1fr}}
.reqf__facts{--icon:18px;display:grid;gap:8px;margin:18px 0 0;padding:16px 0 0;border-block-start:1px solid var(--border);color:var(--ink-700);font-size:13px;list-style:none}
.reqf-done{display:flex;align-items:flex-start;gap:14px;padding:20px;border-radius:var(--r-lg);background:var(--teal-50)}
.reqf-done>div{display:grid;justify-items:start;gap:4px}
