/* ==========================================================================
   WeRefund — shopper dashboard, « à la Shop » (D81, Rico, 26/09/2026).
   One stylesheet for the six shopper pages (dashboard-shoppers*.html).

   Layout borrowed from the Shop app — a rail of icons (a tab bar at the bottom on a phone), a
   rounded white sheet laid on a grey canvas, pill filters, the return in progress as a tracking
   card, the return windows as a row of products with the ring of days left (D32) — as in the
   approved mockup _preview-shop-shoppers.html. Identity stays WeRefund: Talkto Font (D66), #2EF19C
   for fills only, #047857 for state text (D30), links in ink and underlined on hover (D30), a white
   canvas and no colour-scheme media query anywhere (D4). The rating is drawn in green segments,
   never stars (D38). No external resource.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #F2F2F4; }
body.sd {
  --canvas: #F2F2F4;
  --sheet: #FFFFFF;
  --ink: #0F1115;
  --body: #3A3F4B;
  --muted: #686F7D; /* WR-F005: 4.5:1 on the tile and the canvas (#6B7280 was 4.44:1 on the tile) */
  --faint: #70747C; /* WR-F005: 4.69:1 on white (#8C929C was 3.13:1), still lighter than --muted */
  --hair: #ECEDF0;
  --line: #DDE0E5;
  --tile: #F5F5F7;
  --green: #2EF19C;
  --green-soft: #E6FCF2;
  --green-ink: #047857;
  --amber: #9A6414;
  --amber-soft: #FDF3E1;
  --blue-soft: #E8EEFF;
  --blue-ink: #2B3A8C;
  --red-ink: #B42318;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 12px 40px -18px rgba(15,17,21,.18);
  --pop: 0 0 0 1px rgba(15,17,21,.06), 0 24px 60px -20px rgba(15,17,21,.35);
  font-family: var(--font-text, "Talkto Font", system-ui, sans-serif);
  color: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; }
code, .mono { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12.5px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { top: 10px; }
.grow { flex: 1; }
.nw { white-space: nowrap; }

/* ---- rail ----------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 76px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 18px 0; gap: 6px; }
.rail__logo { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; }
.rail__logo img { width: 34px; height: 34px; }
.rail a { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #5B616E; text-decoration: none; }
.rail a:hover { background: #E7E8EC; color: var(--ink); }
.rail a[aria-current="page"] { background: var(--ink); color: #fff; }
.rail a .dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--canvas); }
.rail a[aria-current="page"] .dot { box-shadow: 0 0 0 2px var(--ink); }
.rail__alt { margin-top: auto; }
.rail a.rail__logo:hover { background: transparent; }
/* A label that opens on hover or focus, the way the Shop app names its rail on desktop. */
.rail a .tip { position: absolute; left: calc(100% + 10px); top: 50%; z-index: 20; translate: 0 -50%; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; }
.rail a:hover .tip, .rail a:focus-visible .tip { opacity: 1; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #DCE3FF; color: var(--blue-ink); font-weight: 700; font-size: 14px; }
.rail a[aria-current="page"] .avatar { box-shadow: 0 0 0 2px #fff; }

/* ---- sheet ------------------------------------------------------------------------ */
.sheet { margin: 12px 12px 12px 0; background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--shadow); min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 34px 40px 48px; }

.top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.hello { flex: 1 1 380px; min-width: 0; }
[tabindex="-1"]:focus { outline: none; }
.hello h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.hello p { margin-top: 6px; max-width: 680px; color: var(--muted); }
.hello .back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--muted); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.hello .back:hover { color: var(--ink); }
.hello .back svg { width: 16px; height: 16px; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.anchor { position: relative; }

/* the search: a pill, as in the app — a real field, which opens the list of what it can reach */
.search { position: relative; }
.search label { display: flex; align-items: center; gap: 10px; width: 340px; max-width: 60vw; height: 48px; padding: 0 7px 0 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 10px 28px -16px rgba(15,17,21,.25); color: var(--faint); cursor: text; }
.search label:focus-within { box-shadow: 0 0 0 1px #BFC4CC, 0 10px 28px -16px rgba(15,17,21,.3); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font-size: 14px; outline: 0; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
/* Le bouton rond au bout du champ. « .search b » tout court attrapait aussi les titres en gras de la liste
   déroulante (.qlist b) : chaque titre prenait un disque gris de 34 px, et un titre long se coupait. */
.search label > b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tile); color: var(--ink); }
.search label > b svg { width: 16px; height: 16px; }
.iconbtn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tile); border: 0; color: var(--ink); }
.iconbtn:hover { background: #E9EAEE; }
.iconbtn .dot { position: absolute; top: 12px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--tile); }

/* popovers: the bell, the search */
.pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 400px; max-width: calc(100vw - 24px); border-radius: 20px; background: #fff; box-shadow: var(--pop); overflow: hidden; text-align: left; }
.pop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.pop__head h2 { font-size: 16px; color: var(--ink); font-weight: 800; }
.pop__head button { border: 0; background: none; color: var(--ink); font-weight: 700; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.pop__head button:hover { background: var(--tile); }
.nlist { list-style: none; margin: 0; padding: 0 8px 8px; max-height: 60vh; overflow: auto; }
.nlist a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 8px; border-radius: 14px; text-decoration: none; }
.nlist a:hover { background: var(--tile); text-decoration: none; }
.nlist .ni { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--tile); color: var(--ink); }
.nlist .ni svg { width: 18px; height: 18px; }
.nlist b { display: block; color: var(--ink); font-size: 14px; }
.nlist .t { display: block; color: var(--muted); font-size: 13px; }
.nlist time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.nlist li.unread a { background: #F4FEF9; }
.nlist li.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 2px; }
.pop__foot { padding: 12px 16px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 12.5px; }
.pop__foot a { color: var(--ink); font-weight: 700; }
.qpop { left: 0; right: auto; width: 100%; min-width: 320px; }
.qpop h3 { padding: 12px 16px 4px; color: var(--faint); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.qlist { list-style: none; margin: 0; padding: 0 8px 8px; max-height: 56vh; overflow: auto; }
.qlist a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; text-decoration: none; color: var(--body); font-size: 13.5px; }
.qlist a:hover, .qlist a[aria-selected="true"] { background: var(--tile); text-decoration: none; }
.qlist a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.qlist b { color: var(--ink); }
.qlist span span { color: var(--muted); }
.qempty { padding: 6px 16px 16px; color: var(--muted); font-size: 13.5px; }

/* ---- pills (the categories of the app): filters, and shortcuts on the home -------- */
.chips { display: flex; gap: 10px; margin: 26px 0 30px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 5px 16px 5px 5px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; white-space: nowrap; font-weight: 600; color: var(--ink); font-size: 14px; text-decoration: none; }
.chip:hover { border-color: #D5D8DE; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tile); color: var(--ink); font-style: normal; }
.chip i svg { width: 17px; height: 17px; }
.chip[aria-pressed="true"] i, .chip[aria-current="true"] i { background: #2A2E36; color: var(--green); }
.chip em { font-style: normal; color: var(--faint); font-weight: 600; }
.chip[aria-pressed="true"] em, .chip[aria-current="true"] em { color: #A7ADB8; }
.chip--plain { padding: 0 16px; height: 44px; }

/* ---- section titles ------------------------------------------------------------------ */
.sec { margin-top: 38px; }
.sec:first-child { margin-top: 0; }
.sec__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.sec__h h2 { font-size: 21px; letter-spacing: -.01em; color: var(--ink); font-weight: 800; }
.sec__h a { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); font-weight: 700; }
.sec__h a:hover { text-decoration: underline; }
.sec__h a svg { width: 18px; height: 18px; }
.sec__h small { margin-left: auto; color: var(--muted); font-size: 13px; }

/* ---- buttons ------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #262A33; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #D9DCE2; }
.btn--ghost:hover { background: var(--tile); }
.btn--green { background: var(--green); color: var(--ink); }
.btn--green:hover { background: #24E08E; }
.btn--danger { background: #fff; color: var(--red-ink); box-shadow: inset 0 0 0 1px #F2C4C0; }
.btn--danger.is-solid { background: var(--red-ink); color: #fff; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }
.linkchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.linkchip:hover { background: #E9EAEE; text-decoration: none; }
.linkchip svg { width: 15px; height: 15px; }
.linkchip--ink { background: var(--ink); color: #fff; }
.linkchip--ink:hover { background: #262A33; }
.tlink { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 700; text-decoration: none; }
.tlink:hover { text-decoration: underline; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.note svg { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--faint); }
.note b { color: var(--ink); }
.note a { color: var(--ink); font-weight: 700; }

/* ---- small state labels ------------------------------------------------------------------ */
.vtick, .pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: 2px; }
.vtick { margin-left: 6px; }
.vtick svg, .pill svg { width: 12px; height: 12px; }
.pill--wait { background: var(--amber-soft); color: var(--amber); }
.pill--info { background: var(--blue-soft); color: var(--blue-ink); }
.pill--mute { background: var(--tile); color: var(--muted); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--lg { padding: 4px 11px; font-size: 12.5px; }

/* ---- the return in progress: the tracking card of Shop ----------------------------------- */
.track { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 0 0 1px var(--hair); background: #fff; }
.map { position: relative; min-height: 360px; background: #EEF3F0; }
.map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pill { position: absolute; right: 16px; bottom: 16px; left: auto; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px -12px rgba(15,17,21,.35); font-size: 13px; color: var(--ink); font-weight: 600; }
.map__pill .carrier { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #F6F1EA; }
.map__pill .carrier svg { width: 18px; height: 20px; }
.map__pill code { font-size: 12px; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.map__eta { position: absolute; left: 16px; top: 16px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.94); font-size: 12px; color: var(--muted); box-shadow: 0 8px 22px -14px rgba(15,17,21,.35); }
.map__eta b { display: block; color: var(--ink); font-size: 14px; }
.track__body { padding: 26px 28px 24px; display: flex; flex-direction: column; min-width: 0; }
.store { display: flex; align-items: center; gap: 10px; }
.store__mark { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--tile); overflow: hidden; color: var(--ink); }
.store__mark svg { width: 24px; height: 24px; }
.store__name { font-weight: 700; color: var(--ink); line-height: 1.2; }
.store__meta { color: var(--muted); font-size: 13px; }
.track__state { margin: 20px 0 4px; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); font-weight: 800; }
.track__sub { color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 20px 0 8px; }
.steps span { height: 6px; border-radius: 999px; background: var(--hair); }
.steps span.on { background: var(--green); }
.steps span.now { background: linear-gradient(90deg, var(--green) 55%, var(--hair) 55%); }
.steplabels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12px; color: var(--faint); }
.steplabels b { color: var(--ink); font-weight: 700; }
.item { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px; border-radius: var(--r-md); background: var(--tile); }
.item .ph { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.item__t { font-weight: 700; color: var(--ink); line-height: 1.25; }
.item__m { color: var(--muted); font-size: 13px; }
.item__amt { margin-left: auto; font-weight: 700; color: var(--ink); white-space: nowrap; }
.events { list-style: none; margin: 18px 0 0; padding: 0; font-size: 13.5px; }
.events li { position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; padding: 7px 0; }
.events li::before { content: ""; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #D5D8DE; }
.events li.on::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.events li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: 21px; bottom: -7px; width: 1px; background: var(--hair); }
.events b { color: var(--ink); font-weight: 600; }
.events time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.track__note { margin-top: 12px; color: var(--faint); font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .truck { animation: sd-roll 4.5s ease-in-out infinite alternate; }
  @keyframes sd-roll { from { transform: translate(0,0); } to { transform: translate(6px,-3px); } }
}

/* ---- the row of products (return windows) -------------------------------------------- */
.rowscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.card__img { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: var(--r-lg); overflow: hidden; }
.card__img .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
a.card__img:hover { box-shadow: 0 0 0 2px var(--ink); }
.card__mark { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px -8px rgba(15,17,21,.4); color: var(--ink); }
.card__mark svg { width: 20px; height: 20px; }
.card__n { position: absolute; left: 52px; bottom: 16px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 11.5px; font-weight: 700; }
.ring { position: absolute; right: 12px; top: 12px; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; box-shadow: 0 6px 16px -10px rgba(15,17,21,.45); }
.ring svg { position: absolute; inset: 5px; width: 48px; height: 48px; transform: rotate(-90deg); }
.ring b { position: relative; font-size: 17px; line-height: 1; color: var(--ink); font-weight: 800; text-align: center; }
.ring b small { display: block; font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tag { position: absolute; right: 12px; top: 12px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 12px; font-weight: 700; color: var(--ink); }
.tag--wait { color: var(--amber); }
.tag--ok { color: var(--green-ink); }
.tag--info { color: var(--blue-ink); }
.card__t { margin: 12px 2px 0; font-weight: 700; color: var(--ink); line-height: 1.25; }
.card__t a { text-decoration: none; }
.card__t a:hover { text-decoration: underline; }
.card__m { margin: 2px 2px 0; color: var(--muted); font-size: 13px; }
.card__a { display: flex; gap: 8px; margin: 12px 2px 0; flex-wrap: wrap; }

/* ---- panels ----------------------------------------------------------------------------- */
.duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.panel { border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--hair); padding: 24px 26px; background: #fff; min-width: 0; }
.panel + .panel { margin-top: 20px; }
.duo > .panel + .panel, .detail__main > .panel + .panel, .detail__side > .panel + .panel, .stack > .panel + .panel { margin-top: 0; }
.panel h2, .panel h3 { font-size: 18px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.panel__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel__h .grow + a, .panel__h .more { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.panel__h .more:hover { text-decoration: underline; }
.panel .lead { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--flush > .panel__h { padding: 20px 22px 0; }
.panel--tile { background: var(--tile); box-shadow: none; }
.onfile { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-size: 12px; font-weight: 700; }
.onfile svg { width: 14px; height: 14px; }
.rec { margin: 18px 0 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--hair); }
.rec dt, .rec dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.rec dt { color: var(--muted); padding-right: 12px; }
.rec dd { color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.rec dd small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.rec code { font-weight: 500; color: var(--body); }
.outcome { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: var(--r-md); background: var(--tile); }
.outcome .ph { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.outcome b { color: var(--ink); display: block; line-height: 1.25; }
.outcome span { color: var(--muted); font-size: 13px; }

/* the rating: five segments, filled in green — never stars (D38) */
.segs { display: flex; gap: 6px; margin: 18px 0 8px; }
.segs button { flex: 1; height: 44px; border-radius: 12px; border: 0; background: var(--tile); color: var(--muted); font-weight: 800; font-size: 15px; }
.segs button:hover { background: #E9EAEE; }
.segs button.on { background: var(--green); color: var(--ink); }
.segs + p { color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; }
.segbar { display: inline-flex; gap: 3px; vertical-align: -1px; }
.segbar i { width: 14px; height: 8px; border-radius: 3px; background: #E3E6EA; }
.segbar i.on { background: var(--green); }
.segbar i.part { background: linear-gradient(90deg, var(--green) var(--f), #E3E6EA var(--f)); }
/* The share of the partial segment, in steps of 5 %: a class, never a style attribute — the dashboards run
   under style-src 'self' (WR-F003, backend docs/DASHBOARDS.md § 1.6, rule 1). */
.segbar i.part.f5 { --f: 5%; }
.segbar i.part.f10 { --f: 10%; }
.segbar i.part.f15 { --f: 15%; }
.segbar i.part.f20 { --f: 20%; }
.segbar i.part.f25 { --f: 25%; }
.segbar i.part.f30 { --f: 30%; }
.segbar i.part.f35 { --f: 35%; }
.segbar i.part.f40 { --f: 40%; }
.segbar i.part.f45 { --f: 45%; }
.segbar i.part.f50 { --f: 50%; }
.segbar i.part.f55 { --f: 55%; }
.segbar i.part.f60 { --f: 60%; }
.segbar i.part.f65 { --f: 65%; }
.segbar i.part.f70 { --f: 70%; }
.segbar i.part.f75 { --f: 75%; }
.segbar i.part.f80 { --f: 80%; }
.segbar i.part.f85 { --f: 85%; }
.segbar i.part.f90 { --f: 90%; }
.segbar i.part.f95 { --f: 95%; }

/* ---- stores -------------------------------------------------------------------------- */
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.storecard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hair); text-decoration: none; background: #fff; min-width: 0; }
.storecard:hover { box-shadow: 0 0 0 1px #D5D8DE, 0 10px 24px -18px rgba(15,17,21,.35); text-decoration: none; }
.storecard .store__mark { width: 46px; height: 46px; }
.storecard .store__mark svg { width: 28px; height: 28px; }
.storecard > div { min-width: 0; }
.storecard b { display: block; color: var(--ink); line-height: 1.3; }
.storecard small { color: var(--muted); font-size: 12.5px; }
.storecard .go { margin-left: auto; color: var(--faint); width: 18px; height: 18px; flex: none; }

/* ---- lists of rows (returns, records, reviews) ---------------------------------------- */
.rows { list-style: none; margin: 0; padding: 0; border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--hair); background: #fff; overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--hair); }
.rowl { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 18px; gap: 14px; align-items: center; padding: 14px 18px; text-decoration: none; color: inherit; }
a.rowl:hover { background: #FAFAFB; text-decoration: none; }
.rowl .ph { width: 64px; height: 64px; border-radius: 14px; }
.rowl__t { display: block; color: var(--ink); font-weight: 700; line-height: 1.3; }
.rowl__m { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rowl__s { display: grid; justify-items: end; gap: 4px; text-align: right; font-size: 12.5px; color: var(--muted); }
.rowl .go { width: 18px; height: 18px; color: var(--faint); }
.rows .empty { padding: 26px 18px; color: var(--muted); text-align: center; }
.rows .empty b { display: block; color: var(--ink); }

/* ---- a detail view: the Shop order page -------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.detail__main, .detail__side { display: grid; gap: 20px; min-width: 0; }
.dhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.dhead .store__mark { width: 48px; height: 48px; }
.dhead .store__mark svg { width: 28px; height: 28px; }
.dhead h1, .dhead h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.dhead p { color: var(--muted); }
.dhead .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.rq, .pd { margin-top: 30px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--muted); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.backlink:hover { color: var(--ink); }
.backlink svg { width: 16px; height: 16px; }
.lines { list-style: none; margin: 14px 0 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair); }
.lines li:first-child { border-top: 0; }
.lines .ph { width: 56px; height: 56px; border-radius: 12px; }
.lines b { display: block; color: var(--ink); line-height: 1.3; }
.lines span { color: var(--muted); font-size: 12.5px; }
.lines .amt { color: var(--ink); font-weight: 700; white-space: nowrap; text-align: right; }
.lines li.off .ph, .lines li.off b, .lines li.off .amt { opacity: .5; }
.totals { margin-top: 6px; border-top: 1px solid var(--hair); }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; }
.totals div span { color: var(--muted); }
.totals div b { color: var(--ink); }
.totals div.big { font-size: 15px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--hair); padding-top: 12px; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.kv div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 13.5px; }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kv dd small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.bigring { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.bigring .ring { position: relative; right: auto; top: auto; flex: none; background: var(--tile); box-shadow: none; }
.bigring p { color: var(--muted); font-size: 13.5px; }
.bigring p b { display: block; color: var(--ink); font-size: 15px; }
.hist { list-style: none; margin: 12px 0 0; padding: 0; }
.hist li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.hist li::before { content: ""; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #D5D8DE; }
.hist li.on::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hist li:not(:last-child)::after { content: ""; position: absolute; left: 4.5px; top: 21px; bottom: -7px; width: 1px; background: var(--hair); }
.hist b { color: var(--ink); font-weight: 600; }
.hist span span { display: block; color: var(--muted); font-size: 12.5px; }
.hist time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--tile); color: var(--body); font-size: 13.5px; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }
.callout b { color: var(--ink); }
.callout--ok { background: var(--green-soft); }
.callout--ok svg { color: var(--green-ink); }
.callout--wait { background: var(--amber-soft); }
.callout--wait svg { color: var(--amber); }
.callout + .callout { margin-top: 10px; }

/* ---- the conversation (D62, D64, D71) ----------------------------------------------------- */
.tl { list-style: none; margin: 14px 0 0; padding: 0; }
.ev { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.ev::before { content: ""; position: absolute; left: 15px; top: 38px; bottom: -9px; width: 2px; background: var(--hair); }
.ev:last-child::before { display: none; }
.ev__rail { display: grid; justify-items: center; }
.ev__rail i { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #C9CDD3; }
.ev.is-key .ev__rail i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #DCE3FF; color: var(--blue-ink); font-size: 12px; font-weight: 800; }
.av--store { background: var(--ink); color: var(--green); }
.av--store svg { width: 18px; height: 18px; }
.ev__body { min-width: 0; font-size: 14px; }
.ev__body > p b { color: var(--ink); }
.ev time { display: block; margin-top: 2px; color: var(--faint); font-size: 12px; }
.ev--msg .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ev--msg .meta b { color: var(--ink); }
.ev--msg .meta time { display: inline; margin: 0; }
.bubble { margin-top: 5px; padding: 11px 14px; border-radius: 6px 18px 18px 18px; background: #DDFBEB; color: var(--ink); max-width: 560px; }
.ev--store .bubble { background: var(--tile); }
.media { display: grid; grid-template-columns: repeat(4, minmax(0, 88px)); gap: 6px; margin-top: 9px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #F4F4F4; box-shadow: inset 0 0 0 1px rgba(15,17,21,.06); }
.tile > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; }
.tile__play svg { width: 12px; height: 12px; margin-left: 2px; }
.tile__dur { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 10.5px; }
.addrbox { display: grid; gap: 2px; margin-top: 9px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; max-width: 420px; }
.addrbox .l { color: var(--muted); font-size: 12px; font-weight: 700; }
.addrbox .co { color: var(--ink); font-weight: 800; }
.addrbox p { color: var(--ink); }
.addrbox small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.addrbox .linkchip { justify-self: start; margin-top: 8px; }
.composer { margin-top: 14px; padding: 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.composer textarea { display: block; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--tile); resize: vertical; }
.composer textarea:focus { outline: 0; box-shadow: 0 0 0 2px rgba(4,120,87,.25); }
.composer__bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.composer__att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.composer__att:empty { display: none; }
.composer__att .tile { width: 64px; }
.closedbar { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--tile); color: var(--muted); font-size: 13.5px; }
.closedbar b { color: var(--ink); }

/* ---- the return shipment and its tracking (D67, D69, D70) --------------------------------- */
.ship__head { display: flex; align-items: flex-start; gap: 12px; }
.ship__mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); }
.ship__mark svg { width: 20px; height: 20px; }
.ship__head p { color: var(--muted); font-size: 12.5px; }
.ship__head h2 { font-size: 18px; color: var(--ink); font-weight: 800; }
.ship__body { margin-top: 14px; }
.ship__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.carriers { margin: 0; padding: 0; border: 0; min-width: 0; }
.carriers legend { padding: 0; margin-bottom: 8px; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.carriers__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.carrier { position: relative; display: block; min-width: 0; }
.carrier input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.carrier__tile { display: grid; place-items: center; height: 64px; padding: 0 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.carrier:hover .carrier__tile { box-shadow: inset 0 0 0 1px #B9BEC6; }
.carrier input:checked + .carrier__tile { box-shadow: inset 0 0 0 2px var(--ink); }
.carrier input:focus-visible + .carrier__tile { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.brandlogo { display: block; width: auto; max-width: 100%; height: 26px; }
.brandlogo--ups { height: 38px; }
.brandlogo--usps { height: 18px; }
.brandlogo--dhl, .brandlogo--rm { height: 22px; }
.others { display: inline-flex; align-items: center; gap: 5px; color: var(--body); font-weight: 700; font-size: 13px; }
.others svg { width: 14px; height: 14px; }
.entry { display: none; margin-top: 12px; }
.entry.is-on { display: grid; gap: 10px; }
.entry .field { display: none; }
.entry[data-kind="number"] [data-field="number"], .entry[data-kind="url"] [data-field="url"] { display: grid; }
.err { color: var(--red-ink); font-size: 12.5px; }
.trk { border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; overflow: hidden; }
.trk__top { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.trk__logo { display: grid; place-items: center; flex: none; min-width: 44px; }
.trk__logo .brandlogo { height: 18px; }
.trk__logo .brandlogo--ups { height: 28px; }
.trk__logo .brandlogo--usps { height: 13px; }
.trk__mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--tile); color: var(--muted); }
.trk__mark svg { width: 16px; height: 16px; }
.trk__id { min-width: 0; }
.trk__id b { display: block; color: var(--ink); overflow-wrap: anywhere; }
.trk__id .mono { display: block; color: var(--muted); overflow-wrap: anywhere; }
.trk__nostat { margin-left: auto; }
/* the route: four steps on one line, the part the carrier reported in green, and a small truck
   standing on the last step reported — never between two, never ahead (D69). */
.route { position: relative; padding: 38px 15px 14px; }
.route__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.route__steps::before, .route__steps::after { content: ""; position: absolute; top: 5px; left: 12.5%; height: 2px; border-radius: 2px; }
.route__steps::before { right: 12.5%; background: var(--hair); }
.route__steps::after { width: calc(75% * var(--p)); background: var(--green); animation: sd-route-fill .9s ease both; }
.route__steps li { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 0 4px; text-align: center; }
.route__steps i { display: block; width: 12px; height: 12px; margin-bottom: 8px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #C9CDD3; }
.route__steps li.is-done i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.route__steps b { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.route__steps li.is-done b { color: var(--ink); }
.route__steps span { font-size: 11.5px; line-height: 1.35; color: var(--faint); }
.route__truck { position: absolute; top: 4px; left: calc(15px + (100% - 30px) * (.125 + .75 * var(--p))); z-index: 2; display: grid; place-items: center; width: 32px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(15,17,21,.45); transform: translateX(-50%); animation: sd-route-drive .9s ease both; }
.route__truck::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 8px; height: 8px; border-radius: 1px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.route__truck svg { position: relative; z-index: 1; width: 18px; height: 18px; }
@keyframes sd-route-drive { from { left: calc(15px + (100% - 30px) * (.125 + .75 * var(--p0))); } }
@keyframes sd-route-fill { from { width: calc(75% * var(--p0)); } }
@media (prefers-reduced-motion: reduce) { .route__truck, .route__steps::after { animation: none; } }
.scans { list-style: none; margin: 0; padding: 4px 15px 10px; border-top: 1px solid var(--hair); }
.scans li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--body); font-size: 13px; }
.scans li time { color: var(--faint); white-space: nowrap; }
.trk__out { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 15px 13px; }
.trk--blind .trk__out { padding-top: 2px; }
.trk__note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.trk__note svg { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--faint); }
.demo { margin-top: 14px; padding: 14px; border-radius: 16px; background: repeating-linear-gradient(45deg, #FBFBFC 0 10px, #F5F6F8 10px 20px); outline: 1px dashed #C9CDD3; outline-offset: -1px; }
.demo__k { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.demo p { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.demo .frow { margin-top: 10px; }
.clock { display: flex; gap: 10px; align-items: flex-start; }
.clock svg { width: 18px; height: 18px; flex: none; color: var(--muted); margin-top: 1px; }
.clock b { display: block; color: var(--ink); }
.clock span { color: var(--muted); font-size: 13px; }

/* ---- forms ------------------------------------------------------------------------------ */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--tile); color: var(--ink); box-shadow: inset 0 0 0 1px transparent; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red-ink); background: #FFF6F5; }
.field small { color: var(--muted); font-size: 12.5px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fgrid .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tile); cursor: pointer; font-size: 13.5px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #0F1115; flex: none; }
.check b { color: var(--ink); }
.check span span { display: block; color: var(--muted); font-size: 12.5px; }
.choices { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-weight: 700; font-size: 13.5px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.choice input { margin: 0; width: 18px; height: 18px; accent-color: #0F1115; flex: none; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.choice:has(input:disabled) { cursor: default; background: #FAFAFB; }
.choice b { color: var(--ink); }
.choice span { display: block; color: var(--muted); font-size: 12.5px; }
.choice .ph { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.choice .amt { margin-left: auto; color: var(--ink); font-weight: 700; white-space: nowrap; }
.choice.off .ph, .choice.off b, .choice.off .amt { opacity: .5; }

/* switches: on in ink, like the app's controls */
.toggle { position: relative; display: inline-flex; flex: none; width: 46px; height: 28px; }
.toggle input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #D9DCE2; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,17,21,.2); transition: transform .15s; }
.toggle input:checked + span { background: var(--ink); }
.toggle input:checked + span::after { transform: translateX(18px); }
.toggle input:focus-visible + span { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.toggle input:disabled { cursor: not-allowed; }
.toggle input:disabled + span { opacity: .45; }
.setrows { list-style: none; margin: 14px 0 0; padding: 0; }
.setrows li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hair); }
.setrows li:first-child { border-top: 0; }
.setrows li > div { min-width: 0; flex: 1; }
.setrows b { display: block; color: var(--ink); }
.setrows small { display: block; color: var(--muted); font-size: 12.5px; }
.setrows .ch { display: inline-flex; gap: 4px; margin-left: 6px; }

/* the option's tiers (D26, D45) */
.tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.tiers div { padding: 12px 10px; border-radius: 14px; background: var(--tile); text-align: center; }
.tiers span { display: block; color: var(--muted); font-size: 12px; }
.tiers b { display: block; margin-top: 2px; color: var(--ink); font-size: 17px; font-weight: 800; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tile); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,17,21,.15); }
.adds { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adds li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--tile); font-size: 13.5px; }
.adds li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--green-ink); }
.adds b { display: block; color: var(--ink); }
.adds span span { color: var(--muted); font-size: 12.5px; }

/* ---- the account card ------------------------------------------------------------------ */
.me { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me .avatar { width: 64px; height: 64px; font-size: 22px; }
.me h2 { font-size: 22px; color: var(--ink); font-weight: 800; }
.me p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.stats a { display: block; padding: 14px; border-radius: 16px; background: var(--tile); text-decoration: none; }
.stats a:hover { background: #E9EAEE; text-decoration: none; }
.stats b { display: block; color: var(--ink); font-size: 24px; font-weight: 800; }
.stats span { color: var(--muted); font-size: 12.5px; }
.pgrid2 { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.subnav { position: sticky; top: 20px; display: grid; gap: 2px; }
.subnav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--body); font-weight: 600; text-decoration: none; }
.subnav a:hover { background: var(--tile); text-decoration: none; color: var(--ink); }
.subnav svg { width: 18px; height: 18px; color: var(--muted); }
.stack { display: grid; gap: 20px; min-width: 0; }
.stack > .panel + .panel { margin-top: 0; }

/* ---- reviews ------------------------------------------------------------------------------ */
.rev { padding: 22px 24px; border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--hair); background: #fff; }
.rev + .rev { margin-top: 16px; }
.rev__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rev__top .grow + * { white-space: nowrap; }
.rev h3 { margin-top: 14px; font-size: 17px; color: var(--ink); font-weight: 800; }
.rev__body { margin-top: 6px; color: var(--body); }
.rev__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.reply { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--tile); font-size: 13.5px; }
.reply b { color: var(--ink); }
.reply small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.editbox { margin-top: 14px; }

/* ---- records ------------------------------------------------------------------------------ */
.recgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.reccard { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--hair); background: #fff; min-width: 0; }
.reccard__top { display: flex; align-items: center; gap: 12px; }
.reccard__top .ph { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.reccard__top > div { min-width: 0; }
.reccard__top b { display: block; color: var(--ink); line-height: 1.3; }
.reccard__top span { color: var(--muted); font-size: 12.5px; }
.reccard dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 12.5px; }
.reccard dt { color: var(--muted); }
.reccard dd { margin: 0; color: var(--ink); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.reccard .card__a { margin: 2px 0 0; }
.shalong { display: block; padding: 10px 12px; border-radius: 12px; background: var(--tile); color: var(--ink); overflow-wrap: anywhere; }

/* ---- dialogs: sheets that rise from the bottom on a phone, like the app ---------------------- */
dialog.dlg { width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 26px; background: #fff; color: var(--body); box-shadow: var(--pop); overflow: auto; }
dialog.dlg--wide { width: min(760px, calc(100vw - 24px)); }
dialog.dlg::backdrop { background: rgba(15,17,21,.45); }
.dlg__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; background: #fff; border-bottom: 1px solid var(--hair); }
.dlg__head p { color: var(--muted); font-size: 12.5px; }
.dlg__head h2 { margin-top: 2px; font-size: 20px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.dlg__head .x { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); }
.dlg__head .x:hover { background: #E9EAEE; }
.dlg__head .x svg { width: 16px; height: 16px; }
.dlg__body { padding: 18px 20px 20px; }
.dlg__body h3 { margin: 18px 0 6px; font-size: 14px; color: var(--ink); font-weight: 800; }
.dlg__body h3:first-child { margin-top: 0; }
.dlg__foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; background: #fff; border-top: 1px solid var(--hair); }
.dlg__foot .hint { color: var(--muted); font-size: 12.5px; }
.viewer { display: grid; place-items: center; aspect-ratio: 1; max-height: 60vh; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #F4F4F4; }
.viewer svg { width: 100%; height: 100%; }

/* the tunnel of a return request (D64): items → reason → conversation */
.tsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tsteps li { list-style: none; display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--faint); }
.tsteps li::before { content: ""; height: 5px; border-radius: 999px; background: var(--hair); }
.tsteps li.is-on, .tsteps li.is-done { color: var(--ink); }
.tsteps li.is-done::before, .tsteps li.is-on::before { background: var(--green); }
.tsteps { padding: 0; margin-bottom: 0; }
.tpane[hidden] { display: none; }
.amountline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--tile); color: var(--muted); font-size: 13.5px; }
.amountline b { color: var(--ink); font-size: 18px; font-weight: 800; }
.allorder { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

/* ---- toast ---------------------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; max-width: min(540px, calc(100vw - 24px)); padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--muted); font-weight: 700; }

/* ---- the four generic states (WR-F004, backend docs/DASHBOARDS.md § 1.7) ------------------- */
/* Loading, failed with a retry, and denied — with empty (.rows .empty, above), the same four as the
   merchant dashboard, in this sheet's own look. HTMX's own indicator sheet is switched off on app.werefund.com
   (includeIndicatorStyles: false — the policy refuses any inline <style>), so the indicator is
   styled here: hidden until its request runs, and the zone that loads says so, never a blank. */
.htmx-indicator { opacity: 0; transition: opacity .15s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px 18px; color: var(--muted); }
.loading svg { width: 18px; height: 18px; animation: sd-spin 1s linear infinite; }
@keyframes sd-spin { to { transform: rotate(360deg); } }
.failed { padding: 24px 18px; text-align: center; color: var(--muted); }
.failed b { display: block; color: var(--red-ink); margin-bottom: 2px; }
.failed .btn { margin-top: 14px; }
.denied { padding: 28px 18px; text-align: center; color: var(--muted); }
.denied b { display: block; color: var(--ink); margin-bottom: 2px; }
.denied .btn { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .loading svg { animation: none; } }

/* ---- the tab bar of the app, on a phone -------------------------------------------------- */
.tabbar { display: none; }

@media (max-width: 1080px) {
  .track { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 260px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .pgrid2 { grid-template-columns: minmax(0, 1fr); }
  .subnav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .subnav a { flex: none; background: var(--tile); }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .sheet { margin: 0; border-radius: 0; box-shadow: none; padding-bottom: 76px; min-height: 100vh; }
  .wrap { padding: 22px 16px 32px; }
  .hello h1 { font-size: 28px; }
  .dhead h1, .dhead h2 { font-size: 24px; }
  .top__right { margin-left: 0; width: 100%; }
  .search { flex: 1; min-width: 0; }
  .search label { width: auto; max-width: none; }
  .qpop { min-width: 0; }
  .pop { position: fixed; top: 76px; left: 12px; right: 12px; width: auto; }
  .sec__h small { display: none; }
  .track__body { padding: 20px 18px; }
  .track__state { font-size: 22px; }
  .rowscroll { grid-auto-columns: 72%; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .rec { grid-template-columns: 112px minmax(0, 1fr); }
  .kv div { grid-template-columns: 112px minmax(0, 1fr); }
  .panel, .rev { padding: 20px 16px; }
  .rowl { grid-template-columns: 52px minmax(0, 1fr) 18px; padding: 12px 14px; }
  .rowl .ph { width: 52px; height: 52px; }
  .rowl__s { grid-column: 2; grid-row: 2; justify-items: start; text-align: left; }
  .rowl .go { grid-column: 3; grid-row: 1 / span 2; }
  .carriers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route { padding-inline: 4px; }
  .route__truck { left: calc(4px + (100% - 8px) * (.125 + .75 * var(--p))); }
  .route__steps b { font-size: 11.5px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adds { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recgrid { grid-template-columns: minmax(0, 1fr); }
  dialog.dlg { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--hair); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar .avatar { width: 24px; height: 24px; font-size: 10px; }
  .tabbar a[aria-current="page"] .avatar { box-shadow: 0 0 0 2px var(--ink); }
  .tabbar .dot { position: absolute; top: -1px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #fff; }
  .toast { bottom: 88px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  @keyframes sd-route-drive { from { left: calc(4px + (100% - 8px) * (.125 + .75 * var(--p0))); } }
}
@media (max-width: 460px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .card__a .linkchip { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Utilities (WR-F003-b): what the scripts used to write as style attributes,
   which the CSP of app.werefund.com refuses (style-src 'self', nothing inline).
   !important keeps the precedence an inline style had over every selector.
   ========================================================================== */
.u-mt0 { margin-top: 0 !important; }
.u-mt10 { margin-top: 10px !important; }
.u-mt12 { margin-top: 12px !important; }
.u-mt14 { margin-top: 14px !important; }
.u-mb12 { margin-bottom: 12px !important; }
.u-m0 { margin: 0 !important; }
.u-p0 { padding: 0 !important; }
.u-fs20 { font-size: 20px !important; }
.u-fs24 { font-size: 24px !important; }
.u-inline { display: inline !important; }
.u-ink { color: var(--ink) !important; }
.u-muted { color: var(--muted) !important; }
.u-fill { overflow-wrap: anywhere !important; min-width: 0 !important; flex: 1 !important; }
/* The truck of a tracking view stands on one of four steps: one class per step, the values the script wrote. */
.route { --p: 0.0000; --p0: 0.0000; }
.route--at1 { --p: 0.3333; }
.route--at2 { --p: 0.6667; }
.route--at3 { --p: 1.0000; }
.route--from1 { --p0: 0.3333; }
.route--from2 { --p0: 0.6667; }
.route--from3 { --p0: 1.0000; }
