/* AD Supply Echo Terminal — 360x640 field handheld. Layout echoes a store handheld (3-cell header,
   3x3 dark tiles, product card, bottom tabs); brand + palette are AD Supply's own.
   Runs on the TC56 system WebView = Chrome 73: NO flex `gap` (grid gap or child margins only), no clamp()/min()/
   max(), aspect-ratio, inset, :is()/:where()/:has(), dvh, color-mix(). Masks need -webkit-mask. */
:root {
  --bg: #E9EEF2;
  --head: #FFFFFF;
  --tile-a: #10212B;
  --tile-b: #16303D;
  --navy: #10212B;
  --teal: #31C7AF;
  --teal-ink: #0F7D6C;
  --gold: #E9B44C;
  --gold-ink: #7A5410;
  --red: #D65D5D;
  --red-ink: #A23535;
  --green: #2FBF71;
  --green-ink: #167A44;
  --ink: #0E1A21;
  --ink-2: #3D4F59;
  --ink-3: #5F717B;
  --line: #C9D3DA;
  --line-2: #DCE3E8;
  --card: #FFFFFF;
  --any: #7DB4FF;      /* Any Item accent (kept apart from Home Depot teal) */
  --any-ink: #1D4E9E;
  --any-bg: #E8F1FF;
  --font: "Roboto Condensed", "sans-serif-condensed", "Bahnschrift", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "Roboto Mono", "Consolas", "DejaVu Sans Mono", monospace;
  --tap: 52px;
  --r: 6px;
  --gut: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.3 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; }
h1, h2, p { margin: 0; }

/* Hidden but focusable scan target */
.scan-input { position: fixed; left: -200px; top: 0; width: 10px; height: 10px; opacity: 0; border: 0; padding: 0; caret-color: transparent; pointer-events: none; }

.app { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.bottom:empty { display: none; }
.boot { padding: 40px 16px; text-align: center; color: var(--ink-3); }
.fatal { white-space: pre-wrap; padding: 16px; color: var(--red-ink); font: 12px var(--mono); }

/* ---------- icons (mask so they take currentColor) ---------- */
.ic { display: inline-block; width: 24px; height: 24px; flex: none; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }

/* ---------- 3-cell home header ---------- */
.top { flex: none; background: var(--head); border-bottom: 2px solid var(--line); }
.top-home { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; height: 64px; }
.hcell { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 0; text-align: left; }
.hcell + .hcell { border-left: 1px solid var(--line-2); }
.hc-top { font-size: 20px; font-weight: 800; letter-spacing: .01em; line-height: 1.05; display: flex; align-items: center; white-space: nowrap; }
.hc-top .dot { margin-right: 6px; }
.hc-sub { font-size: 13px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hcell-mark { align-items: center; padding: 0 10px; }
.hcell-mark img { display: block; width: 54px; height: 35px; }
.hc-brand { font-size: 10px; font-weight: 800; letter-spacing: .32em; color: var(--ink-2); margin-right: -.32em; margin-top: 1px; }
.hcell-net { align-items: flex-end; text-align: right; }
.hcell-net .hc-top { font-size: 15px; }
/* real lookup spend (Apify): '$4.93 of $5' over 'resets Nov 17' (the ' · ' between them only shows in the text) */
.hc-spend { white-space: normal; font-size: 12px; line-height: 1.15; }
.hc-spend b, .hc-spend span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-spend b { font-weight: 800; color: var(--ink-2); }
.hc-spend .sep { display: none; }
.is-capped .hc-spend b { color: var(--red-ink); }
/* 0.6.2: today's spend vs the daily limit, under the month (the tooltip says the rest) */
.hc-today { font-size: 11px; line-height: 1.1; margin-top: 1px; font-weight: 700; }
.hc-today.is-hot { color: var(--red-ink); }
/* lookup credit used up: saved data is shown as it is */
.capban { display: block; padding: 8px 12px; background: #FFF4D6; border-bottom: 2px solid var(--gold); color: var(--gold-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.capban b { font-weight: 900; color: var(--ink); }
.home-ban .capban { border: 2px solid var(--gold); border-radius: var(--r); padding: 6px 10px; font-size: 13.5px; }
.is-on .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(47,191,113,.2); }
.is-off .dot { background: var(--red); }
.is-mock .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(233,180,76,.25); }

/* ---------- title bar (inner screens) ---------- */
.top-title { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 52px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--teal); }
.tb-back { display: flex; align-items: center; height: 52px; padding: 0 12px 0 6px; font-size: 16px; font-weight: 700; color: #fff; }
.tb-back .ic { width: 22px; height: 22px; margin-right: 2px; }
.tb-title { font-size: 19px; font-weight: 800; letter-spacing: .02em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-net { display: flex; align-items: center; height: 52px; padding: 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.tb-net .dot { width: 9px; height: 9px; margin-right: 6px; }

/* ---------- sticky scan bar ---------- */
.scanbar { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: var(--navy); color: #fff; border-top: 3px solid var(--teal); }
.sb-state { display: flex; align-items: center; font-size: 16px; letter-spacing: .06em; white-space: nowrap; }
.sb-state .dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(49,199,175,.25); animation: pulse 1.6s ease-in-out infinite; margin-right: 8px; }
.sb-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; line-height: 1.15; color: #A9BCC6; min-width: 0; margin-left: 10px; }
.sb-meta > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sb-meta b { color: #fff; font-size: 14px; }
.scanbar[data-state="lost"] { border-top-color: var(--gold); background: #3A2E12; }
.scanbar[data-state="lost"] .dot { background: var(--gold); animation: none; }
.scanbar[data-state="paused"] { border-top-color: var(--ink-3); }
.scanbar[data-state="paused"] .dot { background: #8BA0AA; animation: none; box-shadow: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(49,199,175,0); } }

/* ---------- bottom tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); height: 54px; background: var(--navy); border-top: 3px solid var(--teal); }
.tab { color: #A9BCC6; font-size: 16px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-right: 1px solid #23404E; }
.tab:last-child { border-right: 0; }
.tab.is-active { color: var(--navy); background: var(--teal); }

/* ---------- column stacks (grid, because flex gap is Chrome 84) ---------- */
.home, .scout, .pad, .ov, .verdict, .xr-body, .chans, .chooser-list { display: grid; grid-template-columns: 100%; align-content: start; }

/* ---------- home tiles ---------- */
.home { padding: var(--gut); grid-row-gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; }
/* near-square tiles without aspect-ratio: 3 columns of (viewport - 2 gutters - 2 gaps), 8 px shorter so 3 rows + the Inventory bar + TODAY fit 360x640 */
.tile { height: calc((100vw - 40px) / 3 - 8px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 4px;
  border-radius: 4px; color: #fff; background: linear-gradient(160deg, var(--tile-b), var(--tile-a) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 0 #08141A; position: relative; overflow: hidden;
  animation: rise .28s ease-out both; animation-delay: calc(var(--i) * 22ms); }
@media (min-width: 560px) { .tile { height: 173px; } }
.tile > * + * { margin-top: 8px; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--teal); opacity: 0; }
.tile:active { transform: translateY(1px); background: var(--tile-b); }
.tile:active::after { opacity: 1; }
.tile-ic { width: 44px; height: 44px; color: var(--teal); }
.tile-label { font-size: 16px; font-weight: 800; letter-spacing: .01em; line-height: 1.05; text-align: center; }
.tile.is-hero { background: linear-gradient(160deg, #1B4A55, var(--tile-a) 75%); }
.tile.is-hero::after { opacity: 1; }
.tile.is-hunt .tile-ic { color: var(--gold); }
.tile.is-any { background: linear-gradient(160deg, #1D3A63, var(--tile-a) 75%); }
.tile.is-any .tile-ic { color: var(--any); }
.tile.is-any::after { background: var(--any); opacity: 1; }
.tile .tile-tag { margin-top: 4px; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; color: #8FB0BF; line-height: 1; }
.tile.is-any .tile-tag { color: var(--any); }
.tile.is-hero .tile-tag { color: var(--teal); }
.tile.is-soon { background: linear-gradient(160deg, #2A3A43, #1D2B33); }
/* Inventory · Selling (coming soon): one slim full-width bar so the grid stays 3 wide and fits the screen */
.tile.is-wide { grid-column: span 3; height: 46px; flex-direction: row; justify-content: flex-start; padding: 0 12px; }
.tile.is-wide > * + * { margin-top: 0; margin-left: 10px; }
.tile.is-wide .tile-ic { width: 24px; height: 24px; }
.tile.is-wide .tile-label { font-size: 15px; }
.tile.is-wide .tile-soon { margin-top: 0; margin-left: auto; }
.tile.is-soon .tile-ic { color: #9FB6C0; width: 36px; height: 36px; }
.tile.is-soon .tile-label { color: #E3EBEF; font-size: 15px; }
.tile .tile-soon { margin-top: 6px; text-align: center; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 2px 3px; border-radius: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.today { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.today-head { width: 100%; display: flex; align-items: center; flex-wrap: wrap; min-height: 46px; padding: 6px 6px 6px 12px; font-size: 14px; color: var(--ink-2); text-align: left; }
.today.is-open .today-head { border-bottom: 1px solid var(--line-2); }
.today-head .today-chev { margin-left: auto; margin-right: 0; width: 24px; height: 24px; color: var(--teal-ink); transition: transform .15s; }
.today.is-open .today-chev { transform: rotate(180deg); }
.today-head > * { margin-right: 8px; }
.today-head b { color: var(--ink); letter-spacing: .08em; }
.today-head .tc { font-weight: 800; }
.today-empty { padding: 14px 12px; color: var(--ink-3); }
.tc.v-BUY { color: var(--green-ink); } .tc.v-REVIEW { color: var(--gold-ink); } .tc.v-PASS { color: var(--red-ink); }

/* ---------- scan rows ---------- */
.slist { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
/* Chrome 73 (the TC56 WebView) cannot lay out a <button> as a grid container: the grid lives on an inner span. */
.srow { display: block; padding: 0; text-align: left; width: 100%; border-bottom: 1px solid var(--line-2); background: var(--card); }
.srow-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; grid-column-gap: 10px; min-height: 60px; padding: 7px 12px; width: 100%; }
.srow.is-any .srow-img { border-color: var(--any); }
.srow:last-child { border-bottom: 0; }
.srow:active { background: #F1F5F7; }
.srow.is-hunt { box-shadow: inset 5px 0 0 var(--gold); }
.srow-main { min-width: 0; display: flex; flex-direction: column; }
.srow-main b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-main small { font-size: 13px; color: var(--ink-3); font-family: var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.srow-main small .vpill { margin-right: 6px; vertical-align: 1px; }
.any-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 2px; background: var(--any-bg); color: var(--any-ink); border: 1px solid var(--any); font-size: 10.5px; font-weight: 900; letter-spacing: .06em; line-height: 15px; vertical-align: 1px; }
.hunt-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 2px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 900; letter-spacing: .06em; line-height: 17px; vertical-align: 1px; }
.srow-price { font-size: 18px; font-weight: 800; }
.vpill { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; height: 26px; padding: 0 6px; border-radius: 3px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; color: #fff; background: #8193A0; }
.vpill.v-BUY { background: var(--green); } .vpill.v-REVIEW { background: var(--gold); color: var(--navy); } .vpill.v-PASS { background: var(--red); }
.vpill.v-NONE { background: #E3E9ED; color: var(--ink-2); }
.vpill.vpill-sm { display: inline-block; min-width: 0; height: 17px; line-height: 17px; padding: 0 5px; font-size: 10.5px; border-radius: 2px; }
.day { padding: 7px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: #F2F5F7; border-bottom: 1px solid var(--line-2); }

/* ---------- ON HUNT LIST badge (Stamper) ---------- */
.hunt { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; background: var(--gold); color: var(--navy); border-bottom: 2px solid #B8862B; }
.hunt-word { font-size: 15px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.hunt-word::before { content: "\2605"; margin-right: 6px; }
.hunt-sub { font-size: 13px; font-weight: 800; text-align: right; margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hunt-big { padding: 9px 12px; }
.hunt-big .hunt-word { font-size: 20px; }
.hunt-FOUND, .hunt-BOUGHT { background: var(--teal); border-bottom-color: var(--teal-ink); }
.hunt-SKIPPED { background: #CBD5DB; border-bottom-color: #9FB0B9; }

/* ---------- Store Scout ---------- */
.scout { padding: var(--gut); grid-row-gap: 12px; }
.chips { display: grid; grid-template-columns: 1fr 1.35fr .85fr; grid-gap: 6px; }
.cchip { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: var(--tap); padding: 4px 9px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-align: left; min-width: 0; }
.cchip small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--ink-3); }
.cchip b { font-size: 14.5px; line-height: 1.08; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.target { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 196px; border-radius: 8px; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #1D4552 0%, var(--navy) 62%); border: 2px solid var(--teal); position: relative; overflow: hidden; }
.target > * + * { margin-top: 6px; }
.target::before { content: ""; position: absolute; left: 12%; right: 12%; height: 2px; background: var(--teal); box-shadow: 0 0 12px 2px rgba(49,199,175,.6); top: 30%; animation: sweep 2.4s ease-in-out infinite alternate; opacity: .85; }
.target-frame { display: grid; place-items: center; width: 92px; height: 72px; }
.target-ic { width: 76px; height: 76px; color: var(--teal); }
.target-big { font-size: 30px; font-weight: 900; letter-spacing: .06em; }
.target-sub { font-size: 14px; color: #A9BCC6; }
@keyframes sweep { to { top: 62%; } }
html[data-native="0"] .target { min-height: 150px; }
.target-any { border-color: var(--any); background: radial-gradient(120% 90% at 50% 0%, #1F3F6B 0%, var(--navy) 62%); }
.target-any::before { background: var(--any); box-shadow: 0 0 12px 2px rgba(125,180,255,.6); }
.target-any .target-ic { color: var(--any); }
.chips-any { grid-template-columns: 1.6fr 1fr; }
.any-intro { font-size: 14px; line-height: 1.35; color: var(--ink-2); background: var(--any-bg); border-left: 4px solid var(--any); border-radius: 4px; padding: 8px 10px; }
.any-intro b { color: var(--any-ink); }
.scanbar.is-any { border-top-color: var(--any); }
.scanbar.is-any .sb-state .dot { background: var(--any); box-shadow: 0 0 0 4px rgba(125,180,255,.25); }
.seg.seg-2 { grid-template-columns: 1fr 1fr; }
.lk-mode .seg-b.is-active[data-mode="ANY"] { color: var(--any); }
.scanhere-wrap { display: block; background: #FFF8E8; border: 2px dashed var(--gold); border-radius: var(--r); padding: 6px 8px 8px; }
.scanhere-wrap > span { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .08em; color: var(--gold-ink); margin-bottom: 4px; }
.scanhere { height: 46px; font: 700 18px var(--mono); }
.manual { justify-self: stretch; }

.sec { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 -4px; }
.linkish { display: inline-flex; align-items: center; justify-content: flex-end; color: var(--teal-ink); font-weight: 800; font-size: 14px; letter-spacing: .04em; padding: 0 4px 0 12px; min-height: 44px; min-width: 44px; margin: -6px 0; }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 16px; border-radius: var(--r); font-size: 16px; font-weight: 800; letter-spacing: .02em; text-decoration: none; text-align: center; }
.btn .ic { width: 20px; height: 20px; margin-right: 8px; }
.btn-main { background: var(--teal); color: var(--navy); box-shadow: 0 2px 0 var(--teal-ink); }
.btn-main:active { transform: translateY(1px); box-shadow: none; }
.btn-main:disabled { background: #B9CBD2; box-shadow: none; color: var(--ink-2); }
.btn-line { background: var(--card); color: var(--ink); border: 2px solid var(--navy); }
.btn-ghost { color: var(--teal-ink); min-height: 44px; }
.btn-slim { min-height: 44px; margin: 0 12px 10px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--ink-2); flex: none; }
.pad { padding: var(--gut); grid-row-gap: 12px; }
.form .sec { margin-top: 8px; }
.field { width: 100%; height: var(--tap); padding: 0 12px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; font-size: 18px; font-weight: 600; -webkit-user-select: text; user-select: text; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(49,199,175,.25); }
.field-big { height: 60px; font-size: 24px; letter-spacing: .06em; font-family: var(--mono); }
.field-secret { -webkit-text-security: disc; font-family: var(--mono); }
.field-secret.is-shown { -webkit-text-security: none; }
.field-note { font-size: 13.5px; font-weight: 700; margin-top: -6px; }
.field-note[data-tone="ok"] { color: var(--green-ink); }
.field-note[data-tone="bad"] { color: var(--red-ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; }
.form-grid label, label.stack { display: flex; flex-direction: column; min-width: 0; }
.form-grid label > * + *, label.stack > * + * { margin-top: 4px; }
.form-grid label > span, label.stack > span { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
label.stack > .lab-row { display: flex; align-items: center; justify-content: space-between; }
.lab-row .linkish { margin: -10px 0 -12px; text-transform: none; }
.span2 { grid-column: span 2; }
.check { display: flex !important; flex-direction: row !important; align-items: center; min-height: var(--tap); font-size: 16px; }
.check > * + * { margin-left: 10px; }
.form-grid .check > * + * { margin-top: 0; }
.check input { width: 30px; height: 30px; margin: 0; flex: none; } /* the whole 44px+ label row is the tap target */
.form-grid .check > span { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--navy); border-radius: var(--r); overflow: hidden; }
.seg-b { min-height: 48px; font-weight: 800; font-size: 15px; border-right: 1px solid var(--line); background: #fff; }
.seg-b:last-child { border-right: 0; }
.seg-b.is-active { background: var(--navy); color: var(--teal); }
.retailer { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 6px 12px; border: 2px solid var(--teal); border-radius: var(--r); background: #E6F7F4; }
.retailer b { font-size: 18px; }
.retailer small { font-size: 12.5px; color: var(--teal-ink); font-weight: 700; text-align: right; margin-left: 10px; }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.btn { position: relative; cursor: pointer; }

.note { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.note.center { text-align: center; }
.note-warn { color: var(--gold-ink); background: #FBF1DC; border-left: 4px solid var(--gold); padding: 8px 10px; font-weight: 700; }
.note-ask { color: var(--ink-2); background: #EEF2F5; border-left: 4px solid var(--ink-3); padding: 6px 10px; font-weight: 700; font-size: 13px; }
.note-mock { color: #6B4A00; background: #FFF4D6; border: 1px dashed var(--gold); padding: 6px 10px; font-weight: 800; letter-spacing: .02em; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }

.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--ink-3); flex: none; }
.kv > b { text-align: right; min-width: 0; margin-left: 12px; word-break: break-word; overflow-wrap: anywhere; }
.kvs { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 12px; }
.kvs:empty { display: none; }
.meter { padding: 8px 0; }
.meter-top { display: flex; justify-content: space-between; font-size: 15px; }
.meter-top span { color: var(--ink-3); }
.meter-bar { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; margin-top: 6px; }
.meter-bar i { display: block; height: 100%; background: var(--teal); }
.meter-bar i.hot { background: var(--red); }

/* ---------- lookup ---------- */
.kind { min-height: 34px; padding: 6px 10px; border-radius: var(--r); font-weight: 800; font-size: 15px; margin-top: -4px; background: #E3E9ED; color: var(--ink-2); }
.kind[data-tone="ok"] { background: #DFF5E8; color: var(--green-ink); }
.kind[data-tone="bad"] { background: #F8E3E3; color: var(--red-ink); }
.kind[data-tone="warn"] { background: #FBF1DC; color: var(--gold-ink); }
.kinds { display: grid; grid-template-columns: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.kinds > div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.kinds > div:last-child { border-bottom: 0; }
.kinds small { color: var(--ink-3); font-size: 13px; text-align: right; margin-left: 10px; }

/* ---------- history / wishlist ---------- */
.filters { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 5px; }
.fchip { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-radius: var(--r); background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: 15px; line-height: 1.1; }
.fchip small { font-size: 12.5px; color: var(--ink-3); }
.fchip.f-BUY { border-bottom: 4px solid var(--green); } .fchip.f-REVIEW { border-bottom: 4px solid var(--gold); } .fchip.f-PASS { border-bottom: 4px solid var(--red); }
.fchip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fchip.is-active small { color: var(--teal); }
.wlist { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wrow { display: flex; align-items: center; border-bottom: 1px solid var(--line-2); }
.wrow:last-child { border-bottom: 0; }
.wrow-main { flex: 1; min-width: 0; min-height: 58px; padding: 8px 12px; display: flex; flex-direction: column; text-align: left; }
.wrow-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wrow-main small { color: var(--ink-3); font-size: 13px; }
/* W43 Settings > Tools links */
.set-tool { text-decoration: none; }
.set-tool:after { content: "\203A"; font-size: 24px; font-weight: 800; color: var(--ink-3); padding: 0 14px 0 4px; }
.set-tool.has-open b { color: #A23535; }
.set-tool.has-open small { color: #8A1F1F; font-weight: 800; }

/* ---------- pricing channels ---------- */
.chans { grid-row-gap: 8px; }
.chan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.chan.is-open { border: 2px solid var(--navy); padding-bottom: 12px; }
.chan.is-open > :not(.chan-head) { margin: 10px 12px 0; }
.chan-head { width: 100%; display: block; padding: 0; text-align: left; }
.chan-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; grid-gap: 4px 8px; padding: 10px 12px; min-height: 60px; width: 100%; }
.chan-name { font-size: 17px; min-width: 0; }
.chan-fee { font-size: 17px; font-weight: 800; text-align: right; white-space: nowrap; }
.chan-ver { font-size: 13px; color: var(--gold-ink); font-weight: 700; }
.chan-head .chip { justify-self: end; }
.chan-ver.is-ok { color: var(--green-ink); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border-radius: 3px; font-size: 12.5px; font-weight: 900; letter-spacing: .06em; color: #fff; background: var(--ink-3); flex: none; }
.chip.id-VERIFIED { background: var(--green); }
.chip.id-UNVERIFIED { background: var(--gold); color: var(--navy); }
.chip.id-NO_MATCH { background: var(--ink-2); }
.chip.id-CONFLICT { background: var(--red); }
.chip-owner { background: #fff; color: var(--green-ink); border: 2px solid var(--green); height: 24px; }
.chip-teal { background: var(--teal); color: var(--navy); }
.rchip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 7px; border-radius: 3px; font-size: 12.5px; font-weight: 800; background: rgba(14,26,33,.08); color: var(--ink); }

/* ---------- product details ---------- */
.details { padding-bottom: 16px; }
.status { position: -webkit-sticky; position: sticky; top: 0; z-index: 3; }
.status-line { width: 100%; display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14.5px; text-align: left; background: #DDE5EA; color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.status-line .dot { margin-right: 6px; }
.status-line b { letter-spacing: .06em; margin-right: 4px; }
.status-detail { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.status-why { margin-left: auto; font-weight: 800; color: var(--teal-ink); padding-left: 8px; flex: none; }
.s-CURRENT .status-line { background: #DDF5EE; } .s-CURRENT .dot { background: var(--green); }
.s-CHECKING .status-line { background: #E1EEF7; } .s-CHECKING .dot { background: var(--teal); animation: blink 1s steps(2) infinite; }
.s-CACHED .dot { background: var(--ink-3); }
.s-PARTIAL .status-line { background: #FBF1DC; } .s-PARTIAL .dot { background: var(--gold); }
.s-OFFLINE .status-line { background: #F6E1E1; } .s-OFFLINE .dot { background: var(--red); }
.s-NO_MATCH .status-line { background: #E6E9EB; } .s-NO_MATCH .dot { background: var(--ink); }
.s-CAPPED .status-line { background: #FFF4D6; } .s-CAPPED .dot { background: var(--gold); }
@keyframes blink { 50% { opacity: .2; } }
.why-drawer { background: #fff; padding: 2px 12px; border-bottom: 2px solid var(--line); }
/* per-part progress chips: Identity / Home Depot / eBay / Retail (tap a failed one to retry) */
.parts { display: grid; grid-gap: 4px; padding: 5px 12px 6px; background: #F7F9FA; border-bottom: 1px solid var(--line); }
.pchip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 2px; border-radius: 5px; background: #fff; border: 1.5px solid var(--line); line-height: 1.1; min-width: 0; }
.pc-name { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pc-st { font-size: 14px; font-weight: 900; white-space: nowrap; }
.pchip.p-ok { border-color: #9ADBB8; background: #F0FAF4; }
.pchip.p-ok .pc-st { color: var(--green-ink); }
.pchip.p-busy { border-color: var(--teal); }
.pchip.p-busy .pc-st { color: var(--teal-ink); animation: blink 1s steps(2) infinite; }
.pchip.p-wait { border-color: var(--gold); background: #FFF8E8; }
.pchip.p-wait .pc-st { color: var(--gold-ink); font-size: 12.5px; }
.pchip.p-bad { border-color: var(--red); background: #FDF1F1; }
.pchip.p-bad .pc-st { color: var(--red-ink); font-size: 12.5px; }
.pchip.p-none .pc-st { color: var(--ink-3); font-size: 12.5px; }
.pchip.p-cap { border-color: var(--gold); border-style: dashed; }
.pchip.p-cap .pc-st { color: var(--gold-ink); font-size: 12.5px; }
.pchip.p-ask { border-style: dashed; }
.pchip.p-ask .pc-st { color: var(--teal-ink); font-size: 12.5px; }
/* on-demand lookups (the owner taps; each shows what it costs) */
.more { display: grid; grid-template-columns: 1fr; grid-row-gap: 6px; }
.more .btn { min-height: 44px; font-size: 15px; padding: 0 10px; }
.more .btn:disabled { color: var(--ink-3); border-color: var(--line); }
.more-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.xr-body .more { margin-top: 6px; }
.pchip.p-zip { border-color: var(--gold); }
.pchip.p-zip .pc-st { color: var(--gold-ink); }

.ov { grid-row-gap: 10px; padding: 10px var(--gut) 0; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pc-top { display: flex; align-items: center; padding: 9px 12px 0; }
.pc-top > * + * { margin-left: 6px; }
.pc-top .pc-code { margin-left: auto; font: 700 17px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; }
.pc-code small { font: 800 11px var(--font); letter-spacing: .1em; color: var(--ink-3); }
.pc-body { display: grid; grid-template-columns: 84px 1fr; grid-gap: 10px; padding: 9px 12px 10px; align-items: start; }
/* product photos (all sizes): placeholder icon until /api/img answers, never a layout jump */
.photo { display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; overflow: hidden;
  background: #F1F4F6; border: 1px solid var(--line-2); border-radius: 4px; color: #9AABB4; vertical-align: middle; }
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.photo .photo-ph { width: 50%; height: 50%; }
.photo[data-state="loading"]::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0)); animation: shine 1.2s ease-in-out infinite; }
@keyframes shine { to { left: 110%; } }
.photo.is-zoomable { cursor: zoom-in; }
.pc-img.is-zoomable::before { content: "+"; position: absolute; right: 2px; bottom: 2px; z-index: 1; width: 20px; height: 20px; line-height: 19px; text-align: center; font-size: 17px; font-weight: 900; color: #fff; background: rgba(16,33,43,.72); border-radius: 3px; }
.pc-img { width: 84px; height: 84px; }
.srow-img { width: 44px; height: 44px; }
.kp-photo { width: 34px; height: 34px; margin-right: 8px; border-color: #23404E; background: #0A171E; color: #4D6572; }
.st-img { width: 48px; height: 48px; }
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: rgba(6,14,19,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; animation: fade .12s ease-out; }
.lb-frame { width: 100%; max-width: 520px; background: #fff; border-radius: 8px; padding: 10px; }
.lb-frame img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.lb-title { color: #fff; font-size: 15px; font-weight: 700; text-align: center; margin-top: 12px; max-width: 520px; }
.lb-hint { color: #8FA6B1; font-size: 13px; margin-top: 6px; }
.pc-text { min-width: 0; }
.pc-title { font-size: 17px; font-weight: 800; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-transform: uppercase; letter-spacing: .005em; }
.pc-title.is-pending { color: var(--ink-3); font-style: italic; text-transform: none; font-weight: 700; }
.pc-meta { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.pc-meta:empty { display: none; }
.pc-hd { font-size: 14px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.pc-src { font-size: 12.5px; font-weight: 700; color: var(--any-ink); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 0.6.1 Home Depot store SKU / 9807 tag: how it was matched, the owner link prompt, the pick-one list (Chrome 73: no gap) */
.pc-sku { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-top: 3px; line-height: 1.25; }
.pc-sku.is-pending { color: var(--teal-ink); }
.pc-sku.is-variant, .pc-sku.is-notOnHd { color: var(--gold-ink); background: #FBF1DC; border-left: 3px solid var(--gold); padding: 2px 6px; }
.pc-sku.is-model { color: var(--ink-3); font-weight: 600; }
.linkcard, .pickcard { background: #FBF1DC; border: 2px solid var(--gold); border-radius: var(--r); padding: 10px 12px; }
.lk-q, .pk-q { display: block; font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.lk-why, .pk-why { font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.lk-btns { display: grid; grid-template-columns: 2fr 1fr; grid-column-gap: 8px; }
.lk-btns .btn { width: 100%; min-height: 52px; }
.pk-row { display: block; width: 100%; min-height: 56px; text-align: left; padding: 6px 10px; margin-top: 6px; background: var(--card); border: 2px solid var(--navy); border-radius: var(--r); }
.pk-row b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.pk-row small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.chip-any { background: var(--any-bg); color: var(--any-ink); border: 1.5px solid var(--any); }
.yourprice { width: 100%; display: block; padding: 0; text-align: left; background: #F4F7F9; border-top: 1px solid var(--line-2); }
.yp-grid { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: end; grid-column-gap: 12px; padding: 8px 12px 10px; width: 100%; }
.yp-label { grid-row: span 2; align-self: center; display: flex; flex-direction: column; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; color: var(--ink-2); }
.yp-label small { font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3); }
.yp-label .yp-tap { color: var(--teal-ink); }
.yp-price { justify-self: end; display: flex; align-items: flex-start; line-height: .9; color: var(--ink); }
.bp-cur { font-size: 24px; font-weight: 800; margin-top: 4px; }
.bp-d { font-size: 50px; font-weight: 900; letter-spacing: -.01em; }
.bp-c { font-size: 24px; font-weight: 900; margin-top: 4px; margin-left: 1px; text-decoration: underline; }
.bp-empty { font-size: 17px; font-weight: 900; letter-spacing: .06em; color: var(--teal-ink); padding: 12px 0; border-bottom: 3px dashed var(--teal); }
.yp-unit { grid-column: 2; justify-self: end; font-size: 13px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.verdict { background: var(--card); border: 1px solid var(--line); border-left: 10px solid #8193A0; border-radius: var(--r); padding: 10px 12px 12px; grid-row-gap: 8px; }
.v-head { display: flex; align-items: baseline; justify-content: space-between; }
.v-top { display: flex; align-items: flex-start; justify-content: space-between; }
.v-headline { min-width: 0; }
.v-headline .v-word { display: block; }
.v-sep { display: none; } /* the " · " joins the headline for screen readers / copy; the layout uses lines */
.v-sell { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 4px; line-height: 1.2; }
.v-sell b { font-size: 22px; font-weight: 900; }
.v-sell.is-none { font-size: 15px; color: var(--ink-3); }
.v-for { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink-2); margin-top: 2px; }
.v-sell.is-better { font-size: 16px; }
.vn-loss b { color: var(--red-ink); }
.v-keep { display: block; font-size: 16px; font-weight: 700; color: var(--green-ink); margin-top: 1px; }
.v-keep b { font-size: 19px; font-weight: 900; }
.v-keep.is-loss { color: var(--red-ink); }
.v-line { font-size: 16px; font-weight: 700; line-height: 1.3; }
.v-line b { font-size: 19px; font-weight: 900; }
.v-line.is-none { color: var(--ink-3); font-size: 15px; }
.v-mine { font-size: 13px; color: var(--ink-2); background: #F2F5F7; border-radius: 4px; padding: 6px 8px; }
.help-btn { flex: none; width: 44px; height: 44px; margin: -6px -8px 0 6px; display: flex; align-items: center; justify-content: center; position: relative; color: var(--teal-ink); font-size: 18px; font-weight: 900; }
.help-btn::before { content: ""; position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border: 2px solid var(--teal); border-radius: 50%; }
.v-word { font-size: 32px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.v-sub { font-size: 13.5px; color: var(--ink-3); text-align: right; margin-left: 8px; }
.v-BUY { border-left-color: var(--green); } .v-BUY .v-word { color: var(--green-ink); }
.v-REVIEW { border-left-color: var(--gold); } .v-REVIEW .v-word { color: var(--gold-ink); }
.v-PASS { border-left-color: var(--red); } .v-PASS .v-word { color: var(--red-ink); }
.v-NONE .v-word { color: var(--ink-2); font-size: 24px; }
.v-nocost { border-left-color: var(--teal); }
.v-nocost .v-word { color: var(--teal-ink); letter-spacing: .01em; font-size: 23px; white-space: nowrap; }
.hdcard, .anchorcard, .sellfor, .xrows, .rej-drawer, .cstat-big { scroll-margin-top: 52px; }
.v-stage { margin: 4px 0 6px; font-size: 13px; font-weight: 700; color: var(--teal-ink); }.v-reasons { display: flex; flex-wrap: wrap; margin: 0 -5px -5px 0; }
.v-reasons > * { margin: 0 5px 5px 0; }
.v-REVIEW .rchip { background: #FBF1DC; color: var(--gold-ink); }
.v-PASS .rchip { background: #F8E3E3; color: var(--red-ink); }
.v-BUY .rchip { background: #DFF5E8; color: var(--green-ink); }
.v-why { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.v-why li + li { margin-top: 2px; }
.v-nums, .mks { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.vn, .mk { background: #fff; padding: 6px 7px; display: flex; flex-direction: column; min-width: 0; }
.vn span, .mk span { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vn b, .mk b { font-size: 18px; font-weight: 900; }
.vn small, .mk small { font-size: 11.5px; line-height: 1.25; color: var(--ink-3); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.vn-key { background: #EEF9F7; }
.vn-key b { color: var(--teal-ink); }
/* Sell-for table: every channel */
.sellfor { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sf-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 12px; min-height: 44px; }
.sf-head b { font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.sf-head .help-btn { margin: 0; }
.sf-row { padding: 8px 12px 9px; border-top: 1px solid var(--line-2); }
.sf-row.is-best { background: #EEF9F7; box-shadow: inset 5px 0 0 var(--teal); }
.sf-row.is-low .sf-keep b { color: var(--red-ink); }
.sf-row.is-empty { background: #FAFBFC; }
.sf-name { display: flex; align-items: center; }
.sf-name b { font-size: 15.5px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-best, .sf-mine { flex: none; margin-left: 6px; padding: 0 5px; border-radius: 2px; font-size: 10.5px; font-weight: 900; letter-spacing: .08em; line-height: 17px; }
.sf-best { background: var(--teal); color: var(--navy); }
.sf-mine { background: #fff; color: var(--ink-2); border: 1px solid var(--line); line-height: 15px; }
.sf-nums { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-gap: 6px; margin-top: 4px; }
.sf-n { display: flex; flex-direction: column; min-width: 0; }
.sf-n span { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.sf-n b { font-size: 17px; font-weight: 900; line-height: 1.15; white-space: nowrap; }
.sf-sell b { color: var(--teal-ink); font-size: 19px; }
.sf-keep b { color: var(--green-ink); }
.sf-keep.is-loss b { color: var(--red-ink); }
.sf-foot { margin-top: 3px; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.sf-foot b { color: var(--ink); }
.sf-min { display: block; }
.sf-basis { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }
.sf-basis:empty { display: none; }
.sf-need { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; font-style: italic; }
/* retail price card (Any Item, or an item Home Depot does not carry) */
.anchorcard { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--any); border-radius: var(--r); overflow: hidden; }
.an-main { display: grid; grid-template-columns: auto 1fr; grid-column-gap: 14px; padding: 6px 12px 4px; align-items: start; }
.an-price { display: flex; flex-direction: column; }
.an-price small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.an-price b { font-size: 26px; font-weight: 900; line-height: 1.05; }
.an-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.an-list li { display: flex; justify-content: space-between; font-size: 13.5px; padding: 1px 0; color: var(--ink-2); }
.an-list li b { color: var(--ink); margin-left: 8px; }
.an-note { font-size: 12.5px; color: var(--ink-3); padding: 4px 12px 9px; line-height: 1.3; }
.of-tag { display: inline-block; margin-left: 6px; padding: 0 4px; border-radius: 2px; font-size: 10px; font-weight: 900; letter-spacing: .06em; line-height: 15px; vertical-align: 2px; }
.of-major { background: var(--any-bg); color: var(--any-ink); }
.of-resale { background: #F2F5F7; color: var(--ink-3); }
/* "?" explanation sheet */
.explain { max-height: 92vh; display: flex; flex-direction: column; }
.ex-body { overflow-y: auto; padding: 4px 16px; }
.ex-row { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.ex-row:last-child { border-bottom: 0; }
.ex-row b { font-size: 15.5px; font-weight: 900; color: var(--teal-ink); }
.ex-row p { font-size: 14.5px; line-height: 1.35; color: var(--ink-2); margin-top: 2px; }
.ex-ok { margin: 8px 16px 14px; }

/* Home Depot card */
.hdcard { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--r); overflow: hidden; }
.hd-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 12px 0; }
.hd-head b { font-size: 13px; font-weight: 900; letter-spacing: .12em; flex: none; }
.hd-where { font-size: 13.5px; color: var(--ink-2); font-weight: 700; text-align: right; margin-left: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-main { display: grid; grid-template-columns: 1.3fr .7fr 1fr; grid-gap: 8px; padding: 6px 12px 10px; align-items: end; }
.hd-main > div { display: flex; flex-direction: column; min-width: 0; }
.hd-main small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.hd-price b { font-size: 26px; font-weight: 900; line-height: 1.05; }
.hd-qty b { font-size: 22px; font-weight: 900; line-height: 1.1; }
.hd-asof b { font-size: 14px; font-weight: 800; line-height: 1.6; white-space: nowrap; }
.hdcard > .note { padding: 6px 12px 10px; }
.hd-note { font-size: 13px; font-weight: 700; color: var(--gold-ink); background: #FBF1DC; padding: 6px 12px; border-top: 1px solid var(--line-2); }

.xrows { scroll-margin-top: 46px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.xrow + .xrow { border-top: 1px solid var(--line); }
.xrow summary { list-style: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; grid-column-gap: 8px; align-items: center; min-height: 58px; padding: 8px 12px; cursor: pointer; }
.xrow summary::-webkit-details-marker { display: none; }
.xr-title { font-size: 16.5px; font-weight: 800; }
.xr-sum { grid-row: 2; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-chev { grid-row: span 2; grid-column: 2; grid-row-start: 1; width: 26px; height: 26px; color: var(--teal-ink); transition: transform .15s; }
.xrow[open] .xr-chev { transform: rotate(180deg); }
.xrow[open] summary { background: #F4F7F9; border-bottom: 1px solid var(--line-2); }
.xr-body { padding: 4px 12px 10px; grid-row-gap: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 4px 0; }
.tbl th { white-space: nowrap; text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 4px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 7px 4px; border-bottom: 1px solid var(--line-2); font-weight: 700; vertical-align: top; }
.tbl .num { text-align: right; }
.tbl tr.is-best td { background: #EEF9F7; }
.tbl tr.is-mine td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.tbl td b { display: block; }
.basis { display: block; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--ink-3); line-height: 1.2; }
.basis-warn { color: var(--gold-ink); }
.tbl-max td { padding: 6px 4px; }

.offers { list-style: none; margin: 0; padding: 0; }
.offer { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.offer:last-child { border-bottom: 0; }
.of-m { display: flex; flex-direction: column; min-width: 0; }
.of-m b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-m small { font-size: 12.5px; color: var(--ink-3); }
.of-p { font-size: 17px; font-weight: 900; margin-left: 10px; flex: none; }

.actions { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; }
.act { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 8px; border-radius: var(--r); background: var(--navy); color: #fff; font-size: 15.5px; font-weight: 800; }
.act .ic { width: 20px; height: 20px; color: var(--teal); margin-right: 8px; }
.act.is-on { background: var(--teal); color: var(--navy); }
.act.is-on .ic { color: var(--navy); }
.act-hunt .ic { color: var(--gold); }
.act-hunt.is-on { background: var(--gold); }
.act-wide { grid-column: span 2; }
.act:disabled { background: #CBD5DB; color: #5F717B; }
.act:disabled .ic { color: #5F717B; }

/* Comps tab */
.cfilter { grid-template-columns: repeat(4, 1fr); }
.cfilter .seg-b { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-size: 14.5px; }
.cfilter .seg-b small { font-size: 12px; color: var(--ink-3); font-weight: 800; }
.cfilter .seg-b.is-active small { color: #A9F0E4; }
.cstat-big { background: var(--card); border: 2px solid var(--teal); border-radius: var(--r); padding: 8px 12px; display: grid; grid-template-columns: auto 1fr; grid-gap: 4px 14px; align-items: center; }
.csb-main { display: flex; flex-direction: column; }
.csb-main span, .csb-grid span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.csb-median { font-size: 30px; font-weight: 900; line-height: 1.05; }
.csb-grid { display: grid; grid-template-columns: auto 1fr; grid-gap: 2px 10px; }
.csb-grid > div { display: flex; flex-direction: column; min-width: 0; }
.csb-grid b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csb-grid .span2 { grid-column: span 2; }
.comps { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.comp { padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.comp:last-child { border-bottom: 0; }
.comp-t { font-size: 14.5px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp-m { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.comp-m b { color: var(--ink); font-size: 15px; }
.comp-m .rchip { margin-left: 6px; }
.comp.is-rej { background: #FAFBFC; }
.comp.is-rej .comp-t { color: var(--ink-3); text-decoration: line-through; }
.rej-drawer { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rej-drawer summary { list-style: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; grid-column-gap: 8px; align-items: center; min-height: 54px; padding: 6px 12px; cursor: pointer; }
.rej-drawer summary::-webkit-details-marker { display: none; }
.rej-drawer summary > span { font-size: 16px; font-weight: 800; }
.rej-drawer summary > small { grid-row: 2; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rej-drawer[open] .xr-chev { transform: rotate(180deg); }
.rej-drawer .comps { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; }
.research .btn-row .btn, .lookup .btn-row .btn { font-size: 15px; padding: 0 8px; white-space: nowrap; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; background: rgba(8,20,26,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .12s ease-out; }
.sheet { width: 100%; max-width: 560px; background: var(--card); border-radius: 12px 12px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.25); animation: up .16s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 16px; font-size: 18px; border-bottom: 1px solid var(--line); }
.chooser-list { padding: 8px 12px 14px; grid-row-gap: 6px; max-height: 70vh; overflow: auto; }
.choice { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 56px; padding: 6px 14px; border: 2px solid var(--line); border-radius: var(--r); text-align: left; }
.choice-main { font-size: 17px; font-weight: 800; }
.choice-sub { font-size: 13px; color: var(--ink-3); }
.choice.is-active { border-color: var(--teal); background: #E6F7F4; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }

/* Keypad: only dims the lower part so the identity card stays readable above it. */
.kp-wrap { background: linear-gradient(to bottom, rgba(8,20,26,0) 0, rgba(8,20,26,0) 26%, rgba(8,20,26,.35) 36%); pointer-events: none; }
.keypad { pointer-events: auto; background: var(--navy); color: #fff; border-top: 3px solid var(--teal); padding: 0 10px 8px; border-radius: 10px 10px 0 0; overflow: hidden; }
.kp-hunt { margin: 0 -10px; }
.kp-hunt:empty { display: none; }
.kp-hunt .hunt { border-bottom: 0; }
.kp-head { display: flex; align-items: center; height: 42px; }
.kp-head .icon-btn { color: #A9BCC6; margin-right: -8px; margin-left: 6px; height: 38px; }
.kp-id { flex: 1; min-width: 0; display: flex; align-items: baseline; white-space: nowrap; overflow: hidden; }
.kp-code { font: 700 16px var(--mono); color: var(--teal); flex: none; }
.kp-title { font-size: 14px; color: #C9D6DD; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-left: 8px; }
.kp-display { background: #0A171E; border: 1px solid #23404E; border-radius: 6px; padding: 5px 10px 5px 12px; }
.kp-label { display: flex; justify-content: space-between; align-items: center; }
.kp-what { display: flex; flex-direction: column; flex: none; line-height: 1.15; }
.kp-what b { font-size: 13px; font-weight: 900; letter-spacing: .06em; color: #DCE7EC; text-transform: uppercase; }
.kp-what small { font-size: 12px; font-weight: 700; color: #8FA6B1; }
.kp-hint { font-weight: 800; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: #8FA6B1; margin-top: 1px; min-height: 16px; }
.kp-hint[data-tone="BUY"] { color: var(--green); } .kp-hint[data-tone="REVIEW"] { color: var(--gold); } .kp-hint[data-tone="PASS"] { color: #FF8C8C; }
.kp-price { display: flex; justify-content: flex-end; align-items: flex-start; line-height: .95; height: 50px; padding-top: 2px; margin-left: 8px; min-width: 0; }
.kp-cur { font-size: 26px; font-weight: 800; margin-top: 6px; color: var(--teal); }
.kp-dollars { font-size: 48px; font-weight: 900; letter-spacing: -.01em; }
.kp-cents { font-size: 26px; font-weight: 900; margin-top: 6px; margin-left: 2px; text-decoration: underline; }
.kp-price[data-empty="yes"] { color: #4D6572; }
.kp-price[data-empty="yes"] .kp-cur { color: #4D6572; }
.kp-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 5px; margin-top: 6px; }
.kp-key { height: 52px; border-radius: 6px; background: #1D3846; color: #fff; font-size: 28px; font-weight: 800; box-shadow: 0 2px 0 #06121A; display: flex; align-items: center; justify-content: center; }
.kp-key:active, .kp-penny:active { background: var(--teal); color: var(--navy); transform: translateY(1px); box-shadow: none; }
.kp-key.kp-alt { background: #284957; font-size: 22px; }
.kp-key .ic { width: 30px; height: 30px; }
.kp-foot { display: grid; grid-template-columns: 1fr 1.7fr 1fr; grid-gap: 5px; margin-top: 5px; }
.kp-penny { height: 52px; border-radius: 6px; background: #3A2E12; border: 2px solid var(--gold); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.kp-penny b { font-size: 16px; font-weight: 900; letter-spacing: .06em; }
.kp-penny small { font-size: 13px; font-weight: 800; color: #F3D9A3; }
.kp-qty { display: flex; align-items: center; justify-content: space-between; background: #0A171E; border: 1px solid #23404E; border-radius: 6px; }
.kp-step { width: 44px; height: 52px; font-size: 28px; font-weight: 800; color: var(--teal); flex: none; }
.kp-qty-n { display: flex; flex-direction: column; align-items: center; min-width: 30px; line-height: 1; }
.kp-qty-n small { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #8FA6B1; }
.kp-qty-n b { font-size: 22px; }
.kp-tax { height: 52px; border-radius: 6px; border: 2px solid var(--gold); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.kp-tax small { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; }
.kp-tax b { font-size: 15px; font-weight: 900; }
.kp-tax[data-on="no"] { border-color: #4D6572; color: #A9BCC6; }
.kp-done { display: block; width: 100%; height: 50px; margin-top: 5px; border-radius: 6px; background: var(--teal); color: var(--navy); font-size: 22px; font-weight: 900; letter-spacing: .1em; box-shadow: 0 2px 0 var(--teal-ink); }
.kp-done:active { transform: translateY(1px); box-shadow: none; }
body.keypad-open .view { padding-bottom: 440px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 10px; transform: translate(-50%, -160%); z-index: 40; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 6px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.25); border-left: 6px solid var(--teal); transition: transform .18s ease-out; pointer-events: none; overflow: hidden;
  /* 0.6.6: up to 3 lines instead of one cut-off line */ white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.toast.show { transform: translate(-50%, 0); }
.toast[data-tone="bad"] { border-left-color: var(--red); }
.toast[data-tone="warn"] { border-left-color: var(--gold); }
.toast[data-tone="hunt"] { background: var(--gold); color: var(--navy); border-left-color: var(--navy); }

/* Mock mode: unmistakable */
html[data-mock="1"] body::after { content: ""; position: fixed; left: 0; right: 0; top: 0; height: 5px; z-index: 30; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--gold) 0 10px, var(--navy) 10px 20px); }
html[data-mock="1"] .top { padding-top: 5px; }
html[data-mock="1"] .top-home { height: 69px; }
html[data-mock="1"] .top-title { height: 57px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 340px) { .bp-d { font-size: 42px; } .tile-label { font-size: 14px; } .kp-dollars { font-size: 42px; } }
.field-big::placeholder { font: 600 17px var(--font); letter-spacing: 0; }
.comps-tab .cf-use { margin: 0; }

/* ---------- S2 lane ui: scan-mode bar (mode · store · online / paid research) ---------- */
.sb-col { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.sb-mode { font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--teal); margin-top: 3px; white-space: nowrap; }
.scanbar.is-any .sb-mode { color: var(--any); }
.sb-meta .sb-net { font-weight: 800; color: #A9BCC6; }
.sb-net.t-off, .ms-net.t-off { color: #FF9C9C; }
.sb-net.t-paused, .ms-net.t-paused { color: var(--gold); }
.sb-net.t-mock, .ms-net.t-mock { color: var(--gold); }
/* slim strip above a screen's own bottom (tabs, Finish trip) */
.modestrip { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 26px; padding: 0 12px; background: #1B3340; color: #A9BCC6; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.modestrip[hidden] { display: none; }
.ms-mode { color: var(--teal); font-weight: 900; letter-spacing: .06em; margin-right: 8px; }
.ms-net { overflow: hidden; text-overflow: ellipsis; }
/* STRICT PENNY HUNT: one gold bar on every screen (scans check the day list only), END HUNT asks first */
.scanbar.is-hunt, .modestrip.is-hunt { display: flex; align-items: stretch; justify-content: flex-start; height: auto; min-height: 62px; padding: 0; background: var(--gold); color: var(--navy);
  border-top: 5px solid var(--navy); border-image: repeating-linear-gradient(135deg, var(--navy) 0 10px, #3A2E12 10px 20px) 5; }
.modestrip.is-hunt { min-height: 50px; white-space: normal; }
.scanbar.is-hunt[data-state] { background: var(--gold); }
.hb-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; text-align: left; padding: 4px 10px 4px 12px; color: var(--navy); }
.hb-title { font-size: 17px; font-weight: 900; letter-spacing: .06em; line-height: 1.1; white-space: nowrap; }
.hb-sub { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-sub .sb-label { font-weight: 900; letter-spacing: .04em; }
.scanbar.is-hunt[data-state="lost"] .sb-label { color: var(--red-ink); }
.hb-end { flex: none; width: 74px; margin: 6px 8px 6px 0; border-radius: 6px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .06em; line-height: 1.1; }
.modestrip.is-hunt .hb-end { margin: 5px 8px 5px 0; }
.modestrip.is-hunt .hb-title { font-size: 15px; }
body[data-hunt="1"] #bottom .scanbar:not(.is-hunt) { display: none; }
body[data-hunt="1"] .top-title { border-bottom-color: var(--gold); }
.tb-hunt { color: var(--gold); }
.tb-hunt .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(233,180,76,.3); }

/* ---------- S2 lane ui: Home - Work modes row under Inventory | Selling; TODAY = today's scans only ---------- */
/* tiles 11 px shorter than before (icon 38 px) so 3 rows + Inventory | Selling + Work modes + TODAY + its row fit 360x640 */
.tiles.has-modes .tile:not(.is-half):not(.is-wide) { height: calc((100vw - 40px) / 3 - 19px); }
.tiles.has-modes .tile:not(.is-half):not(.is-wide) > * + * { margin-top: 6px; }
.tiles.has-modes .tile:not(.is-half):not(.is-wide) .tile-ic { width: 38px; height: 38px; }
@media (min-width: 560px) { .tiles.has-modes .tile:not(.is-half):not(.is-wide) { height: 162px; } }
.mtile { grid-column: span 3; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; height: 44px; padding: 0 12px; border-radius: 4px; color: #fff; text-align: left;
  background: linear-gradient(160deg, #3A2E12, var(--tile-a) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 0 #08141A; position: relative; overflow: hidden;
  animation: rise .28s ease-out both; animation-delay: calc(var(--i) * 22ms); }
.mtile > * + * { margin-left: 10px; }
.mtile .tile-ic { width: 24px; height: 24px; color: var(--gold); }
.mtile .tile-label { font-size: 15px; white-space: nowrap; }
.mtile-sub { min-width: 0; font-size: 11.5px; font-weight: 700; color: #C9B48A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); }
.mtile:active { transform: translateY(1px); }
.home .today-head { min-height: 44px; }
.today-empty { display: block; }
.today-empty > span { display: block; }
.today-hist { display: block; margin-top: 6px; min-height: 40px; padding: 0 2px; font-size: 14.5px; font-weight: 800; color: var(--teal-ink); text-align: left; }
/* S2: a little tighter so the Work modes row + TODAY's scan row fit 360x640 (also with the 5 px MOCK stripe) */
.home.has-modes { grid-row-gap: 8px; }
.tiles.has-modes { grid-gap: 6px; }
.tiles.has-modes .tile:not(.is-half):not(.is-wide) { height: calc((100vw - 36px) / 3 - 19px); }
.home.has-modes .today-head { min-height: 42px; }
.home.has-modes .today .srow-grid { min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
.home.has-modes .today-head { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }

/* ---- Performance (2026-10-24, measured on the TC56CJ): endless animations made the Chrome 73 WebView repaint every frame -
   Echo used ~95% CPU + ~50% in the WebView process while idle on Home (hot, slow, battery drain). With them stopped: 0%.
   Status dots and busy states are now still; finite effects (sheet slide, toast fade, row flash) stay.
   tests/perf-css.test.mjs fails if a new endless animation is added without being listed here. */
.sb-state .dot, .target::before, .s-CHECKING .dot, .pchip.p-busy .pc-st, .photo[data-state="loading"]::after,
.inv-live-dot, .iv-fresh.f-CHECKING .iv-fresh-dot, .starget::after { animation: none !important; }
.sb-state .dot { box-shadow: 0 0 0 4px rgba(49,199,175,.25); }
.target::before { top: 50%; }

/* ---------- 0.6.6: owner text size (ui/textsize.js zooms <html>; these boxes have fixed heights that would clip) ---------- */
html[data-text] .tile:not(.is-wide):not(.is-half) { height: auto !important; min-height: calc((100vw - 40px) / 3 - 19px); padding-top: 8px; padding-bottom: 8px; }
html[data-text] .tile:not(.is-half) .tile-tag { white-space: normal; text-align: center; line-height: 1.1; }
/* the slim Inventory | Selling pair: grow in height, let the right-hand tag shrink and wrap instead of running out */
html[data-text] .tile.is-half { height: auto; min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
html[data-text] .tile.is-half .tile-label { flex: none; }
html[data-text] .tile.is-half .tile-tag { flex: 0 1 auto; min-width: 0; }
html[data-text] .scanbar { height: auto; min-height: 52px; padding-top: 4px; padding-bottom: 4px; }

/* ---------- 0.6.6: on-screen SCAN button (APK 1.2.0+, chrome.js renderScanBar) ---------- */
.scanrow { display: flex; width: 100%; }
.scanrow .scanbar { flex: 1 1 auto; min-width: 0; }
.scanbtn { flex: none; width: 86px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--teal); color: var(--navy); border-top: 3px solid var(--teal-ink); font-size: 15px; font-weight: 900; letter-spacing: .08em; }
.scanbtn-ic { width: 24px; height: 24px; margin-bottom: 2px; }
.scanbtn:active { background: #27A893; }

/* ---------- 0.6.11: look + smoothness pass (owner 2026-11-12). Looks and motion only: no size, spacing or text changes.
   Every effect is FINITE and runs on transform / opacity / colour only (the TC56CJ's Chrome 73 repaints endless
   animations every frame - see the Performance block). prefers-reduced-motion above switches all of it off. ---------- */
:root { --r: 10px; --ease: cubic-bezier(.2, .8, .2, 1); --lift: 0 1px 2px rgba(16,33,43,.06), 0 2px 6px rgba(16,33,43,.05); }

/* softer cards: a light lift instead of a hard outline */
.today, .slist, .wlist, .kvs, .kinds, .pcard, .verdict, .sellfor, .anchorcard, .hdcard, .chan, .cchip { box-shadow: var(--lift); border-color: var(--line-2); }
.verdict { border-left-color: #8193A0; }
.verdict.v-BUY { border-left-color: var(--green); } .verdict.v-REVIEW { border-left-color: var(--gold); } .verdict.v-PASS { border-left-color: var(--red); }
.verdict.v-nocost { border-left-color: var(--teal); }
.chan.is-open { border-color: var(--navy); }
.hdcard { border-top-color: var(--navy); } .anchorcard { border-top-color: var(--any); }
.top { border-bottom-color: var(--line-2); box-shadow: 0 1px 4px rgba(16,33,43,.06); position: relative; z-index: 2; }
.tile { border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 0 #08141A, 0 3px 8px rgba(8,20,26,.16); }
.target { border-radius: 14px; }
.chip, .vpill, .rchip { border-radius: 5px; }
.vpill.vpill-sm, .any-tag, .hunt-tag, .sf-best, .sf-mine, .of-tag, .tile .tile-soon { border-radius: 4px; }
.pchip { border-radius: 8px; }
.photo { border-radius: 8px; }
.lb-frame { border-radius: 14px; }
.meter-bar i { transition: width .4s var(--ease); }

/* press feedback: instant on touch, eases back on release */
.btn, .tile, .mtile, .tab, .seg-b, .fchip, .cchip, .pchip, .srow, .wrow-main, .chan-head, .pk-row, .choice, .linkish, .icon-btn, .tb-back,
.today-head, .yourprice, .help-btn, .status-line, .scanbtn, .kp-key, .kp-penny, .kp-done {
  transition: transform .18s var(--ease), opacity .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out, color .18s ease-out; }
.btn:active, .tile:active, .mtile:active, .tab:active, .seg-b:active, .fchip:active, .cchip:active, .pchip:active, .srow:active, .wrow-main:active, .chan-head:active,
.pk-row:active, .choice:active, .linkish:active, .icon-btn:active, .tb-back:active, .today-head:active, .yourprice:active, .help-btn:active, .status-line:active,
.scanbtn:active, .kp-key:active, .kp-penny:active, .kp-done:active { transition-duration: 0s; }
.tile:active, .mtile:active { transform: scale(.965); }
.btn:active { transform: scale(.98); }
.btn-main:active { transform: scale(.98) translateY(1px); }
.btn-line:active, .choice:active, .pk-row:active, .cchip:active, .fchip:active { background: #EEF3F6; }
.btn-ghost:active, .linkish:active, .icon-btn:active, .tb-back:active, .help-btn:active { opacity: .55; }
.tab:active { background: #1B3644; color: #fff; }
.tab.is-active:active { background: #27A893; color: var(--navy); }
.seg-b:active { background: #EEF3F6; }
.seg-b.is-active:active { background: #1B3644; }
.wrow-main:active, .chan-head:active, .today-head:active, .yourprice:active { background: #F1F5F7; }
.pchip:active { transform: scale(.96); }
.btn:disabled, .btn:disabled:active { transform: none; }
.field { transition: border-color .15s ease-out, box-shadow .15s ease-out; }
.status-line, .pchip, .scanbar { transition: background-color .25s ease-out, border-color .25s ease-out; }
.today-chev, .xr-chev { transition: transform .22s var(--ease); }

/* screen change: the new screen eases in once (main.js route() adds .view-in for 220 ms on a route change only) */
.view.view-in > * { animation: viewIn .2s var(--ease); }
@keyframes viewIn { from { opacity: .3; } } /* opacity only: a transform would move sticky bars for 200 ms */

/* sheets, lightbox, toast */
.sheet-wrap { animation: fade .2s ease-out; }
.sheet { border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(8,20,26,.28); animation: sheetUp .28s var(--ease); }
@keyframes sheetUp { from { transform: translateY(100%); } }
/* the price keypad opens on every scan (and reopens on the next one): it keeps its short 0.6.10 slide */
.keypad { animation: up .16s ease-out; }
.lightbox { animation: fade .2s ease-out; }
.lb-frame { animation: pop .24s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: .5; } }
.toast { border-radius: 12px; box-shadow: 0 8px 24px rgba(8,20,26,.3); transition: transform .3s var(--ease); }
.photo img { animation: fade .2s ease-out; }
