/*
 * The stock sheet — base + PHONE layout (the primary one: most buyers open
 * the link from WhatsApp). Desktop overrides live in sheet-desktop.css,
 * loaded only at >= 900px. Ported from the approved canvas
 * (ims/docs/mockups/manifest-page/canvas/ Phone.dc.html + Main.dc.html).
 * No inline styles anywhere (strict CSP): the only styles JS sets are the
 * battery bar width and the ticker duration, through the CSSOM.
 */

:root {
  --navy: #16233e;
  --navy-deep: #0f1a30;
  --navy-photo: #0f1729;
  --navy-night: #0b1222;
  --gold: #d9a62e;
  --gold-ink: #7a5a10;
  --bg: #f4f5f8;
  --white: #ffffff;
  --line: #dde1e9;
  --line-soft: #eef0f4;
  --line-input: #cdd3de;
  --muted: #55607a;
  --ink-2: #3d4860;
  --faint: #8790a3;
  --faint-2: #6b7488;
  --head-bg: #f7f8fb;
  --group-bg: #eef1f7;
  --selected-bg: #fbf6e8;
  --green: #1f7a4d;
  --live: #3dbe7a;
  --red: #a32d2d;
  --wa: #25d366;
  --mail: #2563eb;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Grows a small control's hit area to at least 44 x 44 without changing how it looks. */
.hit44 { position: relative; }
.hit44::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

.muted-weight { font-weight: 500; color: var(--muted); }
.mono-ref { font-family: var(--mono); font-size: 12px; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold-ink); }
.eyebrow--pad { padding: 0 4px 4px; }

/* ── shared buttons ─────────────────────────────────────────────────────── */

.link-btn { background: none; border: 0; padding: 4px 0; font-size: 13px; font-weight: 700; color: var(--navy); }
.link-btn--gold { color: var(--gold-ink); }
.link-btn--strong { font-size: inherit; text-decoration: underline; }
.link-btn--underline { padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

.btn-outline, .btn-gold, .btn-navy, .btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.btn-outline { border: 1px solid var(--line-input); background: var(--white); color: var(--navy); }
.btn-outline-navy { border: 1px solid var(--navy); background: var(--white); color: var(--navy); }
.btn-gold { border: 0; background: var(--gold); color: var(--navy); }
.btn-navy { border: 0; background: var(--navy); color: var(--white); }
.btn-42 { height: 42px; padding: 0 12px; gap: 7px; font-weight: 700; }
.btn-44 { min-height: 44px; padding: 0 18px; }
.btn-50 { height: 50px; border-radius: 12px; font-size: 15px; }
.btn-gold.btn-50, .btn-navy.btn-50 { font-weight: 900; }

.close-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-input);
  border-radius: 11px;
  background: var(--white);
  color: var(--navy);
}
.close-btn--sm { width: 36px; height: 36px; border-radius: 8px; }
.close-btn--dark { border-color: rgba(255, 255, 255, 0.3); background: none; color: var(--white); }

/* ── masthead ───────────────────────────────────────────────────────────── */

.masthead { flex: none; background: var(--navy); color: var(--white); }
.masthead__inner { height: 56px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 9px; }
.brand { flex: 1 1 auto; display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand__mark { flex: none; width: 28px; height: 28px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; }
/* The wordmark is ~189px at 14px; it scales down with the screen so it never runs under the
   header buttons (14px from ~400px wide; 12.3px at 375; the ellipsis is only a last resort). */
.brand__name {
  font-weight: 900;
  font-size: clamp(11px, calc((100vw - 204px) * 0.072), 14px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead.is-priced .brand__name { font-size: clamp(11px, calc((100vw - 220px) * 0.072), 14px); }
.brand__accent { color: var(--gold); }
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.masthead__live:empty { display: none; }
.masthead__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.head-link {
  background: none;
  border: 0;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}

.head-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}
.head-icon--phone { width: 40px; height: 40px; border-radius: 9px; }

.cta, .badge-on {
  flex: none;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.cta { padding: 0 16px; background: var(--gold); color: var(--navy); text-decoration: none; }
.cta--phone { height: 38px; padding: 0 11px; gap: 6px; border-radius: 9px; font-size: 13px; }
.badge-on { padding: 0 14px; border: 1px solid var(--gold); color: var(--gold); }
.badge-on--phone { height: 38px; padding: 0 10px; gap: 5px; border-radius: 9px; font-size: 12px; }

.fresh { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); }
.fresh__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.fresh.is-stale .fresh__dot { background: var(--gold); }

/* ── ticker ─────────────────────────────────────────────────────────────── */

.ticker {
  flex: none;
  height: 30px;
  display: flex;
  align-items: stretch;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold);
}
/* The strip clips here, not on .ticker, so the pause button's 44px hit area can reach past the 30px band. */
.ticker__viewport { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; overflow: hidden; padding-left: 14px; }
.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  animation: ticker-slide 60s linear infinite;
}
/* Held still by hover, by keyboard focus on the toggle, and by the toggle itself (WCAG 2.2.2). */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__toggle {
  position: relative;
  z-index: 16; /* above the sticky search block, which its hit area overlaps by a few px */
  flex: none;
  width: 44px; /* a real 44px across; only the height borrows from the hit area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy-deep);
  color: var(--gold);
}
/* Grow the hit area up and down only: sideways it would poke past the screen edge and widen the page. */
.ticker__toggle.hit44::after { width: 100%; }
.ticker__item { display: inline-flex; align-items: center; gap: 20px; padding-right: 20px; }
.ticker__item b { color: var(--gold); font-weight: 600; }
.ticker__gem { color: var(--gold); font-size: 8px; }

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── notice, loading, failure ───────────────────────────────────────────── */

.notice-slot { padding: 10px 12px 0; }
.notice-slot:empty { display: none; }
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 10px;
  border: 1px solid #ecd7a6;
  background: #fbf3e0;
  color: var(--gold-ink);
}
.notice__text { margin: 0; flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.notice__close {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--gold-ink);
}

.main { flex: 1 0 auto; width: 100%; }
.loading { margin: 0; padding: 48px 16px; text-align: center; color: var(--ink-2); }

.failure {
  max-width: 560px;
  margin: 24px 12px;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.failure__title { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.2; }
.failure__text { margin: 0; font-size: 15px; color: var(--ink-2); }
.failure__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── chips shared by both layouts ───────────────────────────────────────── */

.grade {
  justify-self: start;
  min-width: 28px;
  text-align: center;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
}
.grade--phone { min-width: 0; font-size: 12px; }
.tone-a { color: var(--green); background: #e7f4ec; border-color: #bfe0cc; }
.tone-b { color: var(--gold-ink); background: #fbf3e0; border-color: #ecd7a6; }
.tone-c { color: var(--ink-2); background: var(--line-soft); border-color: #d5dae3; }
.tone-d { color: var(--red); background: #fbeded; border-color: #f0caca; }

.fault { padding: 2px 8px; border-radius: 4px; font-size: 12px; color: var(--red); background: #fbeded; border: 1px solid #f0caca; }
.fault--phone { padding: 2px 7px; border-radius: 6px; }
.no-faults { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--green); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.chip__x { color: var(--gold); }

/* ── layout switch: the phone shell shows below 900px ───────────────────── */

.desk { display: none; }

/* ── phone: the sticky search block ─────────────────────────────────────── */

.ph-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ph-search { position: relative; display: flex; align-items: center; }
.ph-search svg { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.ph-search__input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line-input);
  border-radius: 11px;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  background: var(--head-bg);
  color: var(--navy);
  appearance: none;
}
.ph-bar__buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ph-btn {
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line-input);
  border-radius: 11px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
}
.ph-btn svg { flex: none; }
.ph-btn.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.ph-btn__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Padding + matching negative margin: the 44px hit areas of the chips stay inside the scroller. */
.ph-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 8px; margin: -6px 0 -6px; scrollbar-width: none; }
.ph-chips::-webkit-scrollbar { display: none; }
.chip--phone { flex: none; height: 32px; white-space: nowrap; }
.ph-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.fresh--phone { gap: 0; color: var(--muted); min-width: 0; }
.fresh--phone .fresh__dot { width: 7px; height: 7px; margin-right: 6px; background: var(--green); }
.fresh--phone b { color: var(--navy); font-weight: 600; }
.ph-meta .link-btn { flex: none; }

/* ── phone: the list of cards ───────────────────────────────────────────── */

.ph-body { padding: 10px 12px 16px; }
.page.has-selection .ph-body { padding-bottom: calc(128px + var(--safe-bottom)); } /* the bar is 79px, 114px with a buyer total */
.ph-list { display: flex; flex-direction: column; gap: 10px; }
.ph-group { padding: 6px 2px 0; display: flex; align-items: baseline; gap: 8px; }
.ph-group__label { font-weight: 900; font-size: 15px; }
.ph-group__count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 30px;
  gap: 8px 12px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card.is-selected { background: var(--selected-bg); border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.card__thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--line-soft);
  cursor: zoom-in;
}
.card__thumb img { width: 76px; height: 76px; object-fit: cover; display: block; }
.card__thumb--none {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted); /* 5.5:1 on the thumb grey; --faint-2 was 4.1:1 */
  font-size: 10.5px;
  line-height: 1.2;
  text-align: center;
  cursor: default;
}
.card__info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.card__model { font-weight: 900; font-size: 16px; line-height: 1.2; }
.card__sub { font-size: 13px; color: var(--muted); }
.card__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.card__batt {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.card__price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; color: var(--navy); }
.card__price--ask { font-size: 12.5px; font-weight: 400; color: var(--muted); }
/* The 26px box sits flush top-right like the canvas, inside a 44 x 44 tap target. */
.card__tick {
  width: 44px;
  height: 44px;
  margin: -9px -9px 0 -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.card__tick input { width: 26px; height: 26px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.card__acts {
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.card__act {
  height: 44px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
}
.card__act--none { border-style: dashed; color: var(--faint); }

.ph-empty { padding: 36px 12px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ph-foot { margin: 16px 2px 0; font-size: 11.5px; color: var(--muted); }
/* Padding gives the small-print link a 44px tap box; the matching negative margin keeps the line. */
.foot__csv { display: inline-block; padding: 14px 0; margin: -14px 0; font-weight: 700; color: var(--navy); }

/* ── phone: selection bar pinned to the bottom ──────────────────────────── */

.selbar { z-index: 30; background: var(--navy); color: var(--white); }
.selbar--phone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 28px rgba(22, 35, 62, 0.25);
}
.selbar__info { margin-right: auto; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.selbar__count { font-weight: 900; font-size: 17px; line-height: 1.1; white-space: nowrap; }
.selbar__sum { font-family: var(--mono); font-size: 12.5px; color: var(--gold); }
.selbar__clear {
  background: none;
  border: 0;
  padding: 8px 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* A real 44px slot under the count and total: the text sits at its top, the extra tap area runs DOWN only. */
.selbar__clear--phone {
  height: 44px;
  min-width: 44px;
  padding: 2px 0 0;
  display: flex;
  align-items: flex-start;
  font-size: 12.5px;
  text-align: left;
}
.selbar__mail-sq {
  flex: none;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  color: var(--white);
}
.selbar__wa {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
/* One row with the count and the email button (Jonas, 2 Oct 2026). The label may wrap to a
   second line on a narrow phone rather than push the row wider than the screen. */
.selbar__wa--phone {
  flex: 0 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 900;
  white-space: normal;
  line-height: 1.15;
}
/* A phone was just added: one short pulse so the eye lands on the button that sends it. */
.selbar__wa--nudge { animation: selbar-nudge 700ms ease-out 1; }
@keyframes selbar-nudge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 166, 46, 0.7); }
  35% { transform: scale(1.03); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(217, 166, 46, 0); }
}

/* ── overlays: bottom sheets (phone) ────────────────────────────────────── */

.overlay { position: fixed; inset: 0; z-index: 60; }
.overlay--sheet { background: rgba(12, 19, 36, 0.55); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { max-height: 100%; background: var(--white); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; }
.sheet--filters { height: 88%; }
.sheet--terms { height: 80%; }
.sheet__handle { flex: none; display: flex; justify-content: center; padding-top: 8px; }
.sheet__handle span { width: 40px; height: 4px; border-radius: 2px; background: var(--line-input); }
.sheet__head {
  flex: none;
  padding: 8px 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sheet__head--terms { padding: 14px 14px 10px; }
.sheet__titles { display: flex; flex-direction: column; }
.sheet__title { margin: 0; font-weight: 900; font-size: 20px; line-height: 1.3; }
.sheet__sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sheet__body {
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sheet__foot {
  flex: none;
  padding: 12px 14px calc(16px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

/* 14px (not the canvas's 8): the "Clear n" button's 44px hit area ends at the first pill row instead of overlapping it. */
.pills-group { display: flex; flex-direction: column; gap: 14px; }
.pills-group__head { display: flex; align-items: baseline; justify-content: space-between; }
.pills-group__head .link-btn { padding: 0; font-size: 12.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  height: 40px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-input);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.pill.is-on { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 700; }
.pill__count { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
.pill--more { padding: 0 12px; border-style: dashed; font-weight: 700; }

.sheet--sort { padding: 8px 14px calc(16px + var(--safe-bottom)); gap: 14px; }
.sheet--sort .sheet__handle { padding-top: 0; }
.sort-block { display: flex; flex-direction: column; gap: 4px; }
.sort-block + .sort-block { gap: 8px; }
.sort-row {
  height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  text-align: left;
}
.sort-row.is-on { background: var(--group-bg); font-weight: 800; }
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.seg { height: 44px; border: 1px solid var(--line-input); border-radius: 10px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 800; }
.seg.is-on { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ── grading & terms (shared, phone sheet form) ─────────────────────────── */

.terms__col { display: flex; flex-direction: column; gap: 9px; }
.terms__grade-row { display: flex; gap: 10px; }
.terms__grade { flex: none; min-width: 44px; font-weight: 900; }
.terms__term { margin: 0; }
.terms--phone { gap: 18px; font-size: 14.5px; }
.terms--phone .terms__col { gap: 10px; }
.terms--phone .terms__grade { min-width: 40px; }

/* ── photo viewer (shared, phone full-screen form) ──────────────────────── */

.overlay--full { background: var(--navy-night); }
.pv--phone { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pv__bar { flex: none; height: 56px; padding: 0 8px 0 14px; display: flex; align-items: center; justify-content: space-between; color: var(--white); }
.pv__pos { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pv__pos--phone { font-size: 13px; color: var(--white); }
.pv__stage { position: relative; display: flex; align-items: center; justify-content: center; }
.pv__stage--phone { flex-grow: 1; min-height: 0; }
.pv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.pv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(22, 35, 62, 0.7);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv__nav--prev { left: 8px; }
.pv__nav--next { right: 8px; }
.pv__thumbs { flex: none; display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; }
.pv__thumb { flex: none; padding: 0; overflow: hidden; background: none; border: 2px solid transparent; border-radius: 8px; opacity: 0.65; }
.pv__thumb.is-on { border-color: var(--gold); opacity: 1; }
.pv__thumb img { display: block; width: 52px; height: 52px; object-fit: cover; }
.pv__panel {
  flex: none;
  padding: 14px 14px calc(16px + var(--safe-bottom));
  background: var(--white);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pv__title { margin: 0; font-weight: 900; }
.pv__title--phone { font-size: 18px; line-height: 1.2; }
.pv__price { font-family: var(--mono); font-weight: 600; font-size: 17px; white-space: nowrap; }
.pv__line { margin: 0; font-size: 13px; color: var(--ink-2); }
.pv__acts--phone { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
.pv__select {
  height: 44px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}
.pv__select.is-on { background: var(--navy); color: var(--white); }
.pv__select--phone { height: 48px; border-radius: 12px; font-size: 15px; font-weight: 900; }
.pv__wa-sq { height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold); color: var(--navy); }

/* A tablet below the desktop switch: cards two-up rather than stretched to 860px. */
@media (min-width: 640px) {
  .ph-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ph-group, .ph-empty { grid-column: 1 / -1; }
}

/* ── coloured actions (Jonas, 2 Oct 2026: "show me … whatsapp green, photos and email
   coloured") ─ one block, so the look comes out whole if it is not kept. WhatsApp wears its
   own green; email is blue; photos take the brand gold — the per-phone photos are the
   sheet's differentiator. Text on green is navy (8.6:1); white on green is kept to the
   WhatsApp glyph alone, the way WhatsApp draws it. ────────────────────────────────────── */
/* Per-phone buttons stay plain (Jonas, 2 Oct 2026: colour in the header and footers only). */
.head-icon--wa, .pv__wa-sq { background: var(--wa); border-color: var(--wa); color: var(--white); }
.head-icon--mail, .selbar__mail-sq { background: var(--mail); border-color: var(--mail); color: var(--white); }
/* Two or more phones ticked: a phone's own ask buttons are off — the footer asks about them all. */
.card__act.is-off { opacity: 0.35; filter: grayscale(1); border-style: dashed; }
.selbar__wa { background: var(--wa); color: var(--navy); }
.selbar__wa--nudge { animation-name: selbar-nudge-wa; }
@keyframes selbar-nudge-wa {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  35% { transform: scale(1.03); }
  100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .selbar__wa--nudge { animation: none; }
  .ticker__toggle { display: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}
