/* fitztoppicks.com — light theme, Collector's Shelf layout. */
:root {
  --bg: #ffffff; --alt: #f7f6fb; --card: #ffffff;
  --line: #e4e1ee; --line-soft: #efedf5; --line-strong: #d6d2e3;
  --ink: #17141f; --muted: #4d4860; --dim: #6b6580;
  --pink: #d61f69; --pink-hover: #b8185a; --pink-soft: #fde8f1; --pink-line: #f5c2d7;
  --blue: #06708f; --blue-dark: #054f66; /* ≥ 4.5:1 on white and the pale backgrounds */ --amber: #b45309; --green: #047857; --red: #be123c;
  --active: #f1eef9; --radius: 16px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Chakra Petch', var(--font);
  --pixel: 'Press Start 2P', monospace;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
/* Links in text are underlined (a11y) */
p a, .crumbs a, .warn-box a, .ok-box a, .error-box a, .dim a:not(.btn), .muted a:not(.btn), .small a:not(.btn):not(.chip) { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.px { font-family: var(--pixel); font-size: 11px; letter-spacing: .06em; color: var(--blue); }
.hd { font-family: var(--display); font-weight: 700; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; } .tiny { font-size: 12px; }
.pink { color: var(--pink); } .green { color: var(--green); } .amber { color: var(--amber); } .red { color: var(--red); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.wrap:not(.card):not(.panel) { padding-left: 0; padding-right: 0; } /* .wrap alone = page gutters; cards keep their padding */ .spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack.tight { gap: 6px; } .stack.loose { gap: 22px; }
.grow { flex: 1 1 auto; min-width: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,20,31,.05); }
.panel { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; } .pad-lg { padding: 26px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font: 700 15px/1.2 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-pink { background: var(--pink); color: #fff; } .btn-pink:hover { background: var(--pink-hover); color: #fff; }
.btn-line { border: 2px solid var(--blue); color: var(--ink); background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; } .btn-ghost:hover { background: var(--alt); color: var(--ink); }
.btn-danger { border-color: #fecdd3; color: var(--red); background: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
a.chip:hover { text-decoration: none; background: var(--alt); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"], .chip[aria-current] { border-color: var(--pink); background: var(--pink-soft); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-green { background: #dcfce7; color: #166534; } .b-amber { background: #fef3c7; color: #92400e; } .b-pink { background: #fce7f3; color: #9d174d; }
.b-cyan { background: #e0f2fe; color: #075985; } .b-gray { background: #f1eef9; color: var(--muted); } .b-red { background: #ffe4e6; color: #9f1239; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field .hint { font-weight: 400; font-size: 12px; color: var(--dim); }
.input, select.input, textarea.input { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink);
  padding: 10px 12px; font: 400 15px/1.3 var(--font); width: 100%; }
.input:focus { border-color: var(--blue); outline: 2px solid #bae6fd; }
.input.big { font: 700 24px/1.2 var(--display); padding: 12px; }
label.ck { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink); font-weight: 400; }
input[type=checkbox], input[type=radio] { accent-color: var(--pink); width: 16px; height: 16px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.error-box { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.ok-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.warn-box { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 14px; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim);
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.t tr.sel td { background: #fdf1f6; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* No-photo placeholder */
.cart-art { width: 112px; height: 84px; border-radius: 10px 10px 4px 4px; background: #e4e1ee; border: 6px solid #d6d2e3;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.cart-art span { width: 64px; height: 30px; border-radius: 4px; background: var(--pink); }
.cart-art.sm { width: 52px; height: 40px; border-width: 4px; border-radius: 6px 6px 3px 3px; padding-bottom: 4px; }
.cart-art.sm span { width: 30px; height: 14px; }
.thumb { border-radius: 12px; background: var(--alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Store layout ---------- */
.site-header { display: flex; align-items: center; gap: 28px; padding: 16px clamp(16px, 4vw, 60px); border-bottom: 1px solid var(--line); background: #fff; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 8px; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; font: 13px var(--pixel); }
.logo-text { font: 700 22px var(--display); }
.search { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; }
.search input { border: 0; outline: 0; background: transparent; font: 16px var(--font); flex: 1; color: var(--ink); min-width: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #bae6fd; }
.site-nav { display: flex; gap: 20px; align-items: center; font-weight: 600; font-size: 15px; }
.site-nav a { color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; color: var(--ink); }
.count { position: absolute; top: -8px; right: -10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.console-bar { display: flex; gap: 24px; padding: 12px clamp(16px, 4vw, 60px); border-bottom: 1px solid var(--line); background: var(--alt);
  font-size: 14px; font-weight: 600; overflow-x: auto; white-space: nowrap; }
.console-bar a { color: var(--muted); }
.wrap { padding-left: clamp(16px, 4vw, 60px); padding-right: clamp(16px, 4vw, 60px); }
.hero { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; align-items: center;
  background: radial-gradient(circle at 85% 20%, #fde8f1 0%, #fff 55%); }
.hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.tile:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.swatch { width: 40px; height: 26px; border-radius: 6px; background: var(--active); border: 1px solid var(--line); }
.shelf { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 20px; padding-bottom: 60px; }
.filters { display: flex; flex-direction: column; gap: 22px; }
.filters-box > summary { list-style: none; margin-bottom: 12px; }
.filters-box > summary::-webkit-details-marker { display: none; }
.filters legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.filters fieldset { display: flex; flex-direction: column; gap: 9px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pcard { overflow: hidden; display: flex; flex-direction: column; }
/* One 4:3 frame, whole photo */
.pcard .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f6f5f9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.pcard .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } /* a tall photo can't stretch the card */
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .title { font-weight: 700; font-size: 17px; color: var(--ink); }
.pcard .price { font: 700 22px var(--display); }
.site-footer { margin-top: 40px; padding-top: 44px; padding-bottom: 36px; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 1.4fr; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; font-size: 14px; background: var(--alt); }
.site-footer a { color: var(--muted); }
.apps-strip { padding-top: 48px; padding-bottom: 48px; background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--dim); padding-top: 20px; }

/* ---------- Seller hub layout ---------- */
.hub { display: flex; min-height: 100vh; }
.side { width: 240px; flex: none; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; background: #faf9fc; }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.side a:hover { background: var(--active); color: var(--ink); text-decoration: none; }
.side a[aria-current="page"] { background: var(--active); color: var(--ink); }
.side .badge { margin-left: auto; }
.hub-main { flex: 1; min-width: 0; padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 18px; }
.hub-main h1 { font-size: 32px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--pink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font: 700 30px var(--display); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px;
  padding: 12px 18px; display: flex; gap: 16px; align-items: center; font-weight: 600; box-shadow: 0 12px 30px rgba(23,20,31,.25); z-index: 20; }
.toast a, .toast button { color: #f9a8d4; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.cell { background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--ink); padding: 6px 8px; font: inherit; width: 100%; }
.cell:hover { border-color: var(--line); } .cell:focus { border-color: var(--blue); background: #fff; outline: 0; }
.cell.saving { border-color: var(--amber); } .cell.saved { border-color: var(--green); } .cell.bad { border-color: var(--red); background: #fff1f2; }
.auth-box { max-width: 420px; margin: 10vh auto; padding: 32px; }

/* ---------- Phone ---------- */
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .site-nav .label { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .shelf { grid-template-columns: 1fr; }
  .filters-box:not([open]) .filters { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .site-footer { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .hub { flex-direction: column; }
  .side { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .side .side-logo, .side .side-title { display: none; }
  .side a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .hub-main { padding: 18px 16px 60px; }
  .hide-phone { display: none; }
  /* Two-column layouts stack */
  [style*="grid-template-columns: minmax(0"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* Form fields go full width */
  .row.wrap > .field, .row.wrap > .field.grow { flex: 1 1 100%; min-width: 0; width: auto !important; }
  .btn, .chip, .logo { min-height: 44px; } label.row { min-height: 24px; } .search input { align-self: stretch; }
  .site-footer a, .crumbs a, .row > a:not(.btn, .chip), .card > a.small, .path-card .go, .store-alt, th > a { display: inline-flex; align-items: center; min-height: 24px; }
  .grid:has(> .api-card) { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) { .show-phone { display: none; } }
@media print {
  .site-header, .console-bar, .site-footer, .side, .no-print { display: none !important; }
  .hub-main { padding: 0; }
}

/* Phones: order tables become cards */
@media (max-width: 600px) {
  table.cards-phone thead { display: none; }
  table.cards-phone tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num total" "buyer status" "items date"; gap: 2px 12px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
  table.cards-phone td { display: block; padding: 0; border: 0; }
  table.cards-phone td:nth-child(1) { grid-area: num; } table.cards-phone td:nth-child(2) { grid-area: date; text-align: right; }
  table.cards-phone td:nth-child(3) { grid-area: buyer; } table.cards-phone td:nth-child(4) { grid-area: items; }
  table.cards-phone td:nth-child(5) { grid-area: total; font-weight: 700; } table.cards-phone td:nth-child(6) { grid-area: status; text-align: right; }
  table.cards-phone td[colspan] { grid-column: 1 / -1; }
}


/* Big KPI numbers shrink on phones */
@media (max-width: 600px) { .kpi .v { font-size: clamp(20px, 6.5vw, 30px); overflow-wrap: anywhere; } }

/* ---------- Inventory editor ---------- */
.inv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inv-filters .input { width: auto; max-width: 200px; }
.inv-filters .input.grow { flex: 1 1 260px; max-width: none; }
.js .inv-filters [data-nojs] { display: none; }
.js .bulkbar:not(.has-sel) { display: none; }
.bulkbar.has-sel { position: sticky; top: 8px; z-index: 5; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); border-color: var(--pink-line); }
.inv-wrap { padding: 2px 6px; overflow-x: auto; }
.inv-wrap[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
table.inv td { padding: 8px 6px; }
table.inv th { padding-left: 6px; padding-right: 6px; }
table.inv .cell { border-color: var(--line-soft); background: #fff; }
table.inv .cell:hover { border-color: var(--line); }
.inv-thumb { width: 52px; height: 52px; flex: none; }
.inv-name { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.inv-name a { font-weight: 600; color: var(--ink); }
.inv-addphoto { cursor: pointer; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; width: max-content; }
.inv-addphoto:hover { text-decoration: underline; }
.inv-pair { display: grid; gap: 4px; min-width: 132px; }
.inv-pair .cell, .c-status .cell { padding: 5px 6px; font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper .cell { width: 40px; text-align: center; padding: 6px 2px; }
.step { width: 28px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--alt); color: var(--ink); font: 700 17px/1 inherit; cursor: pointer; }
.step:hover:not(:disabled) { background: var(--pink-soft); border-color: var(--pink-line); }
.step:disabled { opacity: .4; cursor: default; }
.money-cell { display: flex; align-items: center; gap: 2px; color: var(--dim); }
.money-cell .cell { width: 76px; }
.c-spot .cell { width: 68px; }
.c-status .cell { min-width: 92px; font-weight: 600; }
.status-active { color: var(--green); } .status-paused, .status-draft { color: var(--amber); } .status-sold_out, .status-archived { color: var(--dim); }
table.inv tr.drop td { background: var(--pink-soft); }
table.inv tr.drop td:first-child { box-shadow: inset 3px 0 0 var(--pink); }
@media (max-width: 900px) {
  .inv-filters .input, .inv-filters .input.grow { flex: 1 1 45%; max-width: none; }
  .inv-filters .input[type="search"] { flex-basis: 100%; }
  .inv-flags { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; }
  .inv-flags .chip { flex: none; }
  table.inv td.hide-phone { display: none; }
  .inv-wrap { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
  table.inv, table.inv tbody { display: block; }
  table.inv thead { display: none; }
  /* Each listing becomes a card */
  table.inv tr { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; padding: 12px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  table.inv td { display: block; padding: 0; border: 0; }
  table.inv td.c-sel { grid-row: 1; grid-column: 1; }
  table.inv td.c-item { grid-row: 1; grid-column: 2 / 4; }
  table.inv td.c-cond { grid-column: 1 / 4; }
  table.inv td.c-cond .inv-pair { grid-template-columns: 1fr 1fr; }
  table.inv td.c-qty, table.inv td.c-price, table.inv td.c-paid, table.inv td.c-spot, table.inv td.c-status { grid-column: span 1; }
  table.inv td.c-qty { grid-column: 1 / 3; }
  table.inv td.c-price { grid-column: 3; }
  table.inv td.c-paid { grid-column: 1 / 3; }
  table.inv td.c-spot { grid-column: 3; }
  table.inv td.c-status { grid-column: 1 / 4; }
  table.inv td[class^="c-"]:not(.c-sel):not(.c-item)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
  table.inv .cell { font-size: 16px; } /* 16px stops iOS zooming into the field */
  .stepper .cell { width: 56px; }
  .step { width: 44px; height: 44px; font-size: 22px; }
  .money-cell .cell, .c-spot .cell { width: 100%; }
  .c-status .cell { width: 100%; }
  table.inv tr.sel { border-color: var(--pink); }
  table.inv tr.sel td { background: none; }
}

/* ---------- Cart ---------- */
.code-row { gap: 6px; }
.code-row .input { flex: 1 1 auto; min-width: 0; width: auto; padding: 8px; }
details.codes > summary, details.alert-later > summary { cursor: pointer; color: var(--blue); width: max-content; max-width: 100%; }
details.alert-later > summary { display: inline-flex; align-items: center; gap: 6px; }
details.alert-later[open] > summary { margin-bottom: 8px; }
/* Gift fields once "This is a gift" is ticked */
@supports selector(:has(*)) { .giftbox:not(:has(input[name="is_gift"]:checked)) .gift-more { display: none; } }
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); transition: transform .2s; }
.paybar .btn { padding: 13px 20px; }
@media (max-width: 900px) { body:has(.paybar) { padding-bottom: 76px; } html:has(.paybar) { scroll-padding-bottom: 96px; } }
@media (min-width: 901px) { .paybar { display: none; } }
.paybar-off { transform: translateY(110%); } @media (prefers-reduced-motion: reduce) { .paybar { transition: none; } }
html:has(.bulkbar.has-sel) { scroll-padding-top: 120px; } /* focus never lands under the sticky bulk bar */

/* ---------- Hub on a phone ---------- */
input[type="file"] { max-width: 100%; }
html:has(.labels-bar) { scroll-padding-bottom: 170px; } /* clear of the "Buy postage" bar */
@media (max-width: 900px) {
  /* Label maker: weight and sides on one row */
  .row.wrap > .field.dimf { flex: 1 1 calc(25% - 9px) !important; min-width: 0; }
  .labels-bar { gap: 8px; padding: 10px 12px; }
  .labels-bar .btn { margin-left: 0 !important; flex: 1 1 100%; }
}
.finish { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; }
.chips .chip:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); font-weight: 600; }
.chips .chip input { accent-color: var(--pink); }
@media (max-width: 900px) { .finish { grid-template-columns: minmax(0, 1fr); } .chips .chip { padding: 10px 14px; } }

/* ---------- Hub sidebar groups ---------- */
.side .navgroup { display: flex; flex-direction: column; }
.side .navgroup .side-title { padding: 10px 12px 4px; }
.side details.navgroup > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.side details.navgroup > summary::-webkit-details-marker { display: none; }
.side details.navgroup > summary::after { content: '▸'; margin-left: auto; transition: transform .15s; }
.side details.navgroup[open] > summary::after { transform: rotate(90deg); }
.side details.navgroup > summary:hover { background: var(--alt); color: var(--ink); }
.side .navmore { display: none; }
@media (max-width: 900px) {
  .side { align-items: center; }
  .side .navgroup.daily { flex-direction: row; }
  .side .navgroup.daily .side-title, .side details.navgroup { display: none; }
  .side .navmore { display: block; position: static; order: -1; } /* first on the strip, so it's always in view */
  .side .navmore > summary { cursor: pointer; padding: 8px 12px; font-weight: 700; white-space: nowrap; border-radius: 10px; border: 1px solid var(--line); list-style: none; }
  .side .navmore > summary::-webkit-details-marker { display: none; }
  .side .navmore[open] .navmore-panel { position: absolute; left: 8px; right: 8px; margin-top: 8px; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 70vh; overflow: auto; }
  .side .navmore-panel .tag { grid-column: 1 / -1; padding: 8px 4px 2px; }
}

/* ---------- Hub quick find ---------- */
.hubfind { position: relative; padding: 0 4px 8px; }
.hubfind .input { padding: 8px 10px; font-size: 14px; }
.findresults { position: absolute; left: 4px; right: -220px; top: 100%; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 6px; max-height: 70vh; overflow: auto; }
.findresults .findgroup { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 8px 8px 2px; }
.findresults a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--ink); }
.findresults a[aria-selected="true"], .findresults a:hover { background: var(--pink-soft); text-decoration: none; }
@media (max-width: 900px) { .hubfind { order: -2; flex: 0 0 160px; padding: 0; } .findresults { position: fixed; left: 8px; right: 8px; top: 56px; } }
.waitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tile .tile-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #fff; border-radius: 8px; overflow: hidden; }
.tile .tile-pic img { width: 100%; height: 100%; object-fit: contain; }
/* Console tiles: up to eight a row */
.tiles.console-tiles { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.console-tiles .tile { padding: 12px; }
/* Inventory region menu, tinted for imports */
.inv-pair .cell-region { width: auto; justify-self: start; font-size: 12px; padding: 3px 6px; }
.inv-pair .cell-region.is-import { background: #fff4e5; border-color: #f0b35c; color: #7a4a00; font-weight: 600; }
table.inv td.c-cond .inv-pair .cell-region { grid-column: 1 / -1; }
/* Japanese imports */
.b-import { background: #fff4e5; color: #7a4a00; }
.pcard .b-import { align-self: flex-start; margin-top: 2px; }
.import-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #fffaf2; border: 1px solid #f5d9a8; color: #5c3b00; }
.langs { gap: 6px; }
/* Sell form suggestions */
.ta { position: relative; display: block; }
.ta-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); padding: 6px; max-height: 300px; overflow: auto; }
.ta-list [role="option"] { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ta-list [role="option"][aria-selected="true"], .ta-list [role="option"]:hover { background: var(--pink-soft); }
/* Button that looks like a link */
.linkish { background: none; border: 0; padding: 0 2px; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; min-height: 24px; }
/* Password Show/Hide */
.pw { position: relative; display: block; }
.pw .input { width: 100%; padding-right: 68px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; min-width: 52px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 600 13px/1 inherit; cursor: pointer; }
.pw-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Sell form estimate */
.ta-est:not(:empty) { display: block; margin: 2px 0 10px; }

/* Promise next to the price (350.27) */
.trust-line { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.trust-line li { display: inline-flex; align-items: center; gap: 6px; } .trust-line svg { flex: none; }
.trust-line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a.badge { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Catalog site tabs (task 360.7) ---------- */
.gear-table { width: 100%; border-collapse: collapse; }
.gear-table th, .gear-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line-soft); }
.gear-table th { width: 30%; }
.printable .pic img { object-fit: cover; }
.book-cover { aspect-ratio: 2 / 3; }
/* Live eBay titles and photos (task 377.1): fixed boxes */
.ebay-card .title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; min-height: calc(3 * 1.35em); }
.ebay-title { line-height: 1.15; min-height: calc(3 * 1.15em); } /* room for a long title */
.pcard [data-live="ship"], .pcard [data-live="condition"], .ship b[data-live="ship"], .ship [data-live="delivery"] { min-height: 1.45em; }
.ebay-photo { position: relative; }
/* 1829: the filter box's room is kept until ebay-filter.js shows it (no layout shift) */
@media (scripting: enabled) { #ebay-filter[hidden] { display: block !important; visibility: hidden; } }
.ebay-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ebay-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ebay-photos .thumb { aspect-ratio: 1; position: relative; visibility: hidden; }
.ebay-photos .thumb.on { visibility: visible; }
.ebay-photos .thumb img { position: absolute; inset: 0; object-fit: contain; }
@media (max-width: 900px) {
  .gear-table th { width: auto; }
  .gear-table th, .gear-table td { display: block; padding: 6px 0; }
  .gear-table td { border-top: 0; }
}
.ship.ok, .ship .ok { color: #166534; } /* free shipping */
/* Our apps (Kevin, Oct 4) */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.app-card { min-height: 100%; }
/* Extension store buttons (task 412) */
.store-btns { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; align-self: flex-start; }
.store-btns .store-alt { font-size: 13px; }
.app-icon { border-radius: 22%; flex: none; object-fit: cover; display: inline-block; }
.app-icon.mac { border-radius: 0; object-fit: contain; }
/* A Mac app page's header (task 1910.22, Nov 23, 2026): the text column may shrink below its longest word, and at phone
   widths the icon and name get smaller, so "Hammerbook" or "NoticeDesk: Informes de licencias…" never scroll sideways at 320 px. */
h1.app-name { font-size: 40px; margin-top: 6px; overflow-wrap: break-word; }
h1.app-name .h1-job { display: block; font-size: 22px; font-weight: 700; margin-top: 6px; }
.app-head-text { min-width: 0; }
@media (max-width: 480px) {
  .app-head { align-items: flex-start; gap: 12px !important; }
  .app-head .app-icon { width: 56px; height: 56px; }
  h1.app-name { font-size: 30px; }
  h1.app-name .h1-job { font-size: 19px; }
}

/* Task 364: game values, gift finder. */
.worth-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 20px; }
.worth-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.worth-list li a { font-weight: 600; min-height: 24px; }
.trend-svg { display: block; width: 100%; height: auto; max-height: 260px; }
.trend-line { fill: none; stroke: var(--pink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.trend-dot { fill: var(--pink); }
.trend-grid { stroke: var(--line); stroke-width: 1; }
.trend-label { fill: var(--dim); font: 12px var(--font); }
.trend-table { border-collapse: collapse; margin-top: 8px; }
.trend-table th, .trend-table td { text-align: left; padding: 4px 14px 4px 0; border-top: 1px solid var(--line-soft); }
.model-rev h2 { scroll-margin-top: 80px; }
.worth-list li .dim { white-space: nowrap; }
.worth-table td, .worth-table th { white-space: nowrap; }
.quiz-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-q legend { padding: 0; margin-bottom: 8px; }
.quiz-q .chip { cursor: pointer; min-height: 44px; }
.quiz-q .chip:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); font-weight: 600; }
.quiz-q .chip input { accent-color: var(--pink); }
.gift-card .pic img { width: 100%; height: 100%; }
/* Gift Finder 2.0 (task 417) */
.gift-card h3.title { font: 700 17px var(--font); margin: 0; }
.gift-card .body p { margin: 0; }
.gift-card .price { margin-top: auto; padding-top: 8px; font-size: 17px; }
.gift-fit { color: var(--blue); font-weight: 600; }
.gift-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; }
.gift-actions .btn, .gift-actions .chip { min-height: 44px; }
.gift-actions .chip { cursor: pointer; }
.gift-bought { background: var(--alt); }
.gift-bought .title { text-decoration: line-through; }
@media (max-width: 560px) { .grid.gift-grid { grid-template-columns: 1fr; } .gift-card .pic { aspect-ratio: 16 / 9; } }
/* Gift finder, search first (task 1991.1): search box and the three main questions on top at every size; at 640 px and
   under the rest waits behind "More filters" (a bottom sheet, gift-finder.js) and the intro shows one line with "More". */
.gift-page { padding-top: 30px; }
.gift-top h1 { font-size: clamp(28px, 6vw, 40px); margin-top: 8px; }
.gift-intro { margin: 0; }
.gift-intro-toggle { display: none; font: inherit; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 0 2px; min-height: 24px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; }
.gift-form { padding: 22px; }
.gift-search { display: flex; gap: 8px; }
.gift-search .input { flex: 1 1 auto; min-width: 0; min-height: 48px; font-size: 16px; }
.gift-search .btn { min-height: 48px; }
.gift-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.gift-pick { color: var(--ink); min-width: 0; }
.gift-pick select.input { min-height: 44px; font-size: 16px; padding: 8px 10px; }
.gift-more-btn { display: none; min-height: 44px; }
.gift-more { padding-top: 6px; border-top: 1px solid var(--line-soft); }
.gift-more .quiz-q { padding-top: 8px; }
.gift-sheet { padding: 0; border: 0; color: var(--ink); background: var(--card); }
@media (max-width: 640px) {
  .gift-page { padding-top: 16px; gap: 10px; }
  .gift-intro:not(.open) .gift-intro-more { display: none; }
  .gift-intro-toggle { display: inline; }
  .gift-form { padding: 14px; gap: 10px; }
  .gift-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; }
  .gift-pick { gap: 3px; font-size: 13px; }
  .gift-more-btn { display: inline-flex; width: 100%; padding-left: 8px; padding-right: 8px; }
  .gift-more-slot { display: none; }
  /* The sheet: the bottom of the screen, scrolls inside, the Show button stays in reach. */
  .gift-sheet[open] { display: flex; flex-direction: column; position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%;
    max-height: 88vh; max-height: 88dvh; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 32px rgba(23, 20, 31, .22); }
  .gift-sheet::backdrop { background: rgba(23, 20, 31, .5); }
  .gift-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); }
  .gift-sheet-head h2 { font-size: 22px; }
  .gift-sheet-head .btn { min-height: 44px; }
  .gift-sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 0; }
  .gift-sheet .gift-more { border-top: 0; padding-top: 0; }
  .gift-sheet .gift-more-foot { position: sticky; bottom: 0; background: var(--card); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .gift-sheet .gift-more-foot .btn { flex: 1 1 100%; }
  html:has(.gift-sheet[open]) { overflow: hidden; }
}

/* Gear & Parts (task 383): live eBay rows in a fixed box */
.gear-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.gear-safety { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.gear-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1000px) {
  .gear-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .gear-filters { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding-right: 6px; }
}
.gear-filters { gap: 14px; }
.gear-facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.gear-facet legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
.gear-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gear-chips .chip { cursor: pointer; min-height: 36px; padding: 6px 11px; font-size: 14px; }
.gear-chips .chip:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); font-weight: 600; }
.gear-chips .chip:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.gear-chips .chip.is-off { opacity: .55; cursor: default; }
.gear-n { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 1.5ch; }
.gear-price { display: flex; gap: 10px; margin-bottom: 8px; }
.gear-price label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.gear-price .input { width: 92px; min-height: 36px; padding: 6px 8px; }
.gear-status { margin: 0; min-height: 1.5em; }
.gear-need { margin: 0; max-width: 820px; padding: 10px 14px; border-left: 3px solid var(--pink); background: var(--alt); border-radius: 0 8px 8px 0; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; }
.gear-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.gear-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gear-name { font-size: 18px; line-height: 1.25; margin: 0; }
.gear-note, .gear-fits { margin: 0; }
.gear-live { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--line-soft); display: grid; align-content: start; gap: 6px; height: calc(3 * 2.8em + 2 * 6px + 8px); overflow: hidden; line-height: 1.4; }
.gear-live li { display: grid; min-width: 0; }
.gear-live li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-live li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-live .ok { color: #166534; }
.gear-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.gear-page[data-store="amazon"] .gear-ebay, .gear-page[data-store="amazon"] .gear-live, .gear-page[data-store="ebay"] .gear-amazon { display: none; }
@media (scripting: none) { .gear-filters, .gear-live { display: none; } }
@media (max-width: 999px) {
  .gear-filters { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--alt); }
  .gear-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .gear-chips .chip { flex: none; min-height: 44px; }
}
@media (max-width: 999px) { .gear-facet[data-facet="ebay"] .gear-chips { flex-wrap: wrap; overflow-x: visible; } }
/* Deals (task 384.1): eBay box apart, fixed rows */
.deal-amazon-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.deal-page-link { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; color: inherit; }
.deal-page-link b { color: var(--pink); }
@media (max-width: 699px) {
  .deal-amazon-pages { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .deal-page-link { flex: 0 0 min(240px, 78%); scroll-snap-align: start; }
}
.deal-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; align-items: start; }
.deal-h { font-size: 17px; margin: 0; }
.deal-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deal-links li { display: grid; gap: 1px; }
.deal-links a { font-weight: 600; }
.deal-ebay { border-color: var(--line-strong); background: var(--alt); }
.deal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.deal-slot { display: grid; grid-template-rows: repeat(3, 1.4em); line-height: 1.4; height: calc(3 * 1.4em); min-width: 0; }
.deal-slot + .deal-slot { border-top: 1px solid var(--line-soft); padding-top: 8px; height: calc(3 * 1.4em + 8px); }
.deal-slot > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.deal-off { color: #fff; background: var(--pink); border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 12px; }
.deal-slot .ok { color: #166534; }
.deals-page[data-store="amazon"] .deal-ebay, .deals-page[data-store="ebay"] .deal-amazon, .deals-page[data-store="ebay"] .deal-amazon-pages { display: none; }
@media (scripting: none) { #deal-filters, .deal-list, .deal-ebay .deal-h .tiny { display: none; } }
/* Travel Deals (task 397): fixed cards while fares load */
.travel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 14px; }
.travel-card { padding: 14px 16px; display: grid; grid-template-rows: auto auto auto auto auto auto 1fr; gap: 4px; min-height: 262px; min-width: 0; }
.travel-card > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travel-card.is-loading { background: var(--alt); border-style: dashed; }
.travel-card.is-stale .travel-price b { color: var(--dim); }
.travel-top { display: grid; gap: 0; }
.travel-place-link { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.travel-price b { font-size: 22px; }
/* price and badge wrap */
.travel-card > .travel-price, .travel-card > .travel-per { white-space: normal; overflow: visible; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.travel-price .badge { vertical-align: 3px; }
.travel-book { align-self: end; justify-self: start; }
.travel-check { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.travel-places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 6px 16px; }
.travel-places li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.travel-places a:first-child { font-weight: 600; }
/* Fare alert sign-up (task 516) */
.travel-alerts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px 16px; }
.travel-alerts { scroll-margin-top: 80px; }
.travel-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.travel-best { display: grid; gap: 4px; min-height: 150px; align-content: start; }
.travel-best .travel-book { margin-top: 6px; }
.table-scroll { position: relative; overflow-x: auto; }
.travel-months { min-width: 420px; }
.travel-months tr.is-best th { color: var(--pink); }
.travel-months td, .travel-months th { white-space: nowrap; }
.travel-month-price { min-width: 9ch; }
.travel-from { max-width: 100%; }
/* Travelers: party cards are one line taller */
.travel-party { display: grid; gap: 8px; }
.travel-party-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.travel-party-row { display: grid; gap: 2px; min-width: 0; }
.travel-party-row label { font-size: 14px; font-weight: 600; }
.travel-party-row .input { min-height: 40px; padding: 6px 8px; width: 100%; }
.travel-list.is-party .travel-card { min-height: 288px; grid-template-rows: auto auto auto auto auto auto auto 1fr; }
.travel-per .badge { vertical-align: 1px; }
@media (scripting: none) { .travel-party { display: none; } }
/* Travel Deals: pick your destination (task 499) */
.travel-dest { gap: 8px; }
.travel-combo { position: relative; display: flex; gap: 6px; align-items: center; }
.travel-combo .input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.travel-to-clear { flex: none; min-height: 44px; }
.travel-suggest { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 10px 30px rgba(23, 20, 31, .16); max-height: 320px; overflow-y: auto; }
.travel-suggest [role="option"] { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.travel-suggest [role="option"]:hover, .travel-suggest [aria-selected="true"] { background: var(--pink-soft); }
.travel-suggest-name { font-weight: 600; }
.travel-suggest-none { padding: 10px; }
.travel-popular .chip { cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); background: var(--card); }
.travel-popular .chip[aria-pressed="true"] { font-weight: 600; }
.travel-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-top: 6px; }
.travel-dates .input { min-height: 44px; }
.travel-when .gear-chips { margin-bottom: 8px; }
.travel-route { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); }
.travel-cal-head { gap: 8px; flex-wrap: wrap; align-items: baseline; }
.travel-cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.travel-cal-grid th { font-size: 12px; font-weight: 600; color: var(--dim); text-align: center; padding: 0; }
.travel-cal-grid td { padding: 0; }
.travel-day { width: 100%; min-height: 52px; display: grid; align-content: center; justify-items: center; gap: 1px; padding: 4px 2px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
button.travel-day { cursor: pointer; }
button.travel-day:hover { border-color: var(--pink); }
button.travel-day[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); box-shadow: inset 0 0 0 1px var(--pink); }
.travel-day.is-cheapest { border-color: var(--green); background: #dcfce7; }
.travel-day.is-stale .travel-day-p { color: var(--dim); }
td.is-none .travel-day { background: var(--alt); border-style: dashed; }
.travel-day-n { font-size: 12px; color: var(--muted); }
.travel-day-p { font-size: 13px; font-weight: 700; white-space: nowrap; }
.travel-months-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.travel-month-btn { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.travel-month-btn:hover:not(:disabled) { border-color: var(--pink); }
.travel-month-btn:disabled { background: var(--alt); color: var(--dim); cursor: default; }
.travel-month-btn.is-cheapest { border-color: var(--green); background: #dcfce7; }
.travel-list.is-route .travel-card { min-height: 190px; grid-template-rows: auto auto auto auto 1fr; }
@media (max-width: 520px) { .travel-day { min-height: 46px; } .travel-day-p { font-size: 11px; } .travel-cal-grid { border-spacing: 2px; } .travel-route { padding: 10px; } }
@media (scripting: none) { .travel-dest, .travel-when [data-route], #travel-route { display: none; } }
@media (scripting: none) { #travel-filters, #travel-list, #travel-status, .travel-place .travel-best, .travel-months .travel-month-price, .travel-months thead th:last-child { display: none; } }

/* ---------- Catalog menus, home strips, search, cross-links (task 411) ---------- */
.catalog-nav { margin-left: auto; position: relative; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; }
a.nav-top:hover, summary.nav-top:hover { background: var(--alt); text-decoration: none; color: var(--ink); }
.nav-top.is-here, .nav-top[aria-current] { box-shadow: inset 0 -3px 0 var(--pink); }
summary.nav-top { list-style: none; }
summary.nav-top::-webkit-details-marker { display: none; }
summary.nav-top::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.nav-group[open] > summary.nav-top { background: var(--alt); }
.nav-group[open] > summary.nav-top::after { transform: translateY(2px) rotate(-135deg); }
.nav-drop { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(23,20,31,.14); display: grid; gap: 2px; }
.nav-item:last-child .nav-drop { left: auto; right: 0; }
.nav-drop a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-drop a:hover { background: var(--alt); text-decoration: none; color: var(--ink); }
.nav-drop a[aria-current] { color: var(--pink); }
.nav-toggle { min-height: 44px; }
@media (min-width: 901px) { .nav-toggle { display: none !important; } }
@media (max-width: 1240px) and (min-width: 901px) { .catalog-nav .nav-top { padding: 8px 7px; font-size: 14px; } .site-header { gap: 16px; } }
/* Task 1681.6: menus get their own row */
@media (max-width: 1320px) and (min-width: 901px) { .site-header { flex-wrap: wrap; row-gap: 8px; } .catalog-nav { order: 4; flex-basis: 100%; margin-left: 0; } }
@media (max-width: 900px) {
  .catalog-nav { order: 2; }
  .catalog-nav:not(.has-js) { order: 4; flex-basis: 100%; margin-left: 0; } /* no JS: menus wrap */
  .catalog-nav.has-js.is-open .nav-menu { display: grid; }
  .nav-menu { flex-wrap: wrap; }
  .catalog-nav.has-js .nav-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: min(340px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(23,20,31,.18); padding: 8px; gap: 2px; }
  .catalog-nav.has-js .nav-top { width: 100%; justify-content: space-between; min-height: 46px; font-size: 16px; }
  .catalog-nav.has-js .nav-drop { position: static; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .catalog-nav.has-js .nav-drop a { white-space: normal; min-height: 44px; display: flex; align-items: center; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}
/* Task 868.8: phones start with the menu closed (no layout shift) */
@media (max-width: 900px) and (scripting: enabled) {
  .catalog-nav:not(.has-js) { order: 2; flex-basis: auto; margin-left: auto; }
  .catalog-nav:not(.has-js) .nav-menu { display: none; }
  .catalog-nav .nav-toggle[hidden] { display: inline-flex; }
}

.home-hero { padding-top: 40px; padding-bottom: 28px; background: radial-gradient(circle at 88% 10%, var(--pink-soft) 0%, #fff 52%); border-bottom: 1px solid var(--line-soft); }
.home-hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.04; max-width: 900px; }
.home-hero p { font-size: 18px; color: var(--muted); margin: 0; max-width: 720px; }
.home-search { display: flex; gap: 8px; max-width: 640px; }
.home-search .input { flex: 1; min-width: 0; min-height: 48px; font-size: 16px; }
.section-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.section-chips a { color: var(--ink); font-weight: 600; background: #fff; }
/* /how-to topics (task 1681.6) */
.how-to-topics:has(.how-to-topic:target) .how-to-topic:not(:target) { display: none; }
.how-to-topic { scroll-margin-top: 16px; }
/* Start here tiles (task 1681.6) */
.start-here-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.start-here-list a { color: inherit; height: 100%; }
@media (max-width: 600px) { .start-here-list { grid-template-columns: 1fr 1fr; } .start-here-list .start-note { display: none; } .start-here-list a { padding: 12px 14px; } }
table.help-where tbody th { font-size: 15px; letter-spacing: 0; text-transform: none; vertical-align: top; }
table.help-where td { vertical-align: top; font-size: 15px; }
@media (max-width: 600px) { table.help-where thead { display: none; } table.help-where tr, table.help-where tbody th, table.help-where td { display: block; border: 0; padding: 2px 0; } table.help-where tr { padding: 10px 0; border-bottom: 1px solid var(--line-soft); } }
.strip { padding-top: 34px; padding-bottom: 6px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.strip-head h2 { font-size: clamp(24px, 3.4vw, 30px); }
.strip-head p { margin: 4px 0 0; }
.strip-head .see-all { font-weight: 600; white-space: nowrap; }
.strip-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strip-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .strip-row, .strip-row.three { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(230px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .strip-row > * { scroll-snap-align: start; }
}
.mini-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; color: var(--ink); }
.mini-card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.mini-card img, .mini-card .mini-art { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--alt); }
.mini-card .mini-art.book { object-fit: contain; }
.mini-card b { display: block; line-height: 1.25; }
.mini-card .dim, .mini-card .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-tile { padding: 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.deal-tile:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.home-trips { list-style: none; margin: 0; padding: 0; }
.home-trip { padding: 16px; display: grid; gap: 4px; min-height: 148px; align-content: start; }
.home-trip.is-loading { background: linear-gradient(90deg, var(--alt), #fff, var(--alt)); }
.home-trip .price { font: 700 22px var(--display); }
.also { padding-top: 10px; padding-bottom: 40px; }
.also-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.also-card { padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.also-card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.also-card b { color: var(--blue); }
.find-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.find-results a { display: grid; gap: 2px; padding: 12px 14px; color: var(--ink); }
.find-results a:hover { text-decoration: none; border-color: var(--line-strong); }
.find-results b { color: var(--blue); }
.new-badge { background: var(--pink-soft); color: var(--pink-hover); }

/* Printable pages (task 413) */
.printable-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
.printable-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-soft); background: #f6f5f9; }
.printable-page > .stack:first-child { max-height: none; }
@media (max-width: 760px) { .printable-page { grid-template-columns: minmax(0, 1fr); } }
.pcard a.title { text-decoration: none; }
/* Deals table view (task 418) */
.deal-view-bar { gap: 8px; align-items: center; }
.deal-view-bar .chip { cursor: pointer; min-height: 44px; }
.deals-page[data-view="table"] .deal-theme { display: none; }
.deal-table-box { position: relative; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); }
.deal-table-box:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.deal-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.deal-table caption { text-align: left; padding: 10px 12px; caption-side: top; }
.deal-table th, .deal-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft, var(--line)); }
.deal-table thead th { background: var(--alt); white-space: nowrap; border-top: 0; }
.deal-table tbody th { font-weight: 600; min-width: 210px; max-width: 320px; }
.deal-table td:nth-child(4), .deal-table td:nth-child(3) { white-space: nowrap; }
.deal-table td.num { white-space: nowrap; }
.deal-sort { all: unset; cursor: pointer; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; min-height: 32px; }
.deal-sort:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 4px; }
.deal-sort-icon::after { content: "↕"; opacity: .45; }
th[aria-sort="ascending"] .deal-sort-icon::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"] .deal-sort-icon::after { content: "↓"; opacity: 1; }
.deal-table .store-ebay { color: #06708f; font-weight: 600; }
.deal-table .store-amazon { color: #b45309; font-weight: 600; }
.deal-table-note { margin: 0; padding: 8px 12px; }
@media (scripting: none) { #deal-view, #deal-table-box { display: none; } }

/* Site search (task 519) */
.search.has-suggest { position: relative; }
.site-suggest { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 20, 31, .14); }
.site-group + .site-group { border-top: 1px solid var(--line-soft); margin-top: 4px; padding-top: 4px; }
.site-group-h { display: flex; align-items: center; gap: 6px; padding: 6px 10px 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.site-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-height: 44px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.site-opt:hover, .site-opt[aria-selected="true"] { background: var(--pink-soft); }
.site-opt[aria-selected="true"] { outline: 2px solid var(--pink); outline-offset: -2px; }
.site-opt-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-opt-k { flex: none; font-size: 12px; color: var(--dim); }
.site-opt svg { flex: none; color: var(--muted); }
.site-none { padding: 8px 10px; color: var(--muted); font-size: 14px; }
.find-group-h { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0; }
.find-group-h svg { color: var(--pink); }
.find-results a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.find-suggest { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--alt); }
.gift-card { scroll-margin-top: 90px; }
.gift-card:target { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-line); }

/* Product pages (task 868.1) */
.what-it-does { margin: 0; font-size: 18px; color: var(--ink); max-width: 760px; }
.what-it-does b { font-family: var(--display); }
.gallery { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; border-radius: 12px; }
.gallery:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 600px); gap: 14px; list-style: none; margin: 0; padding: 0; }
.gallery-row.square { grid-auto-columns: min(70vw, 300px); }
.gallery-item { scroll-snap-align: start; }
.gallery-item figure { margin: 0; display: grid; gap: 6px; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line-soft); background: #f6f5f9; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px; border-left: 3px solid var(--pink); border-bottom: 3px solid var(--pink); transform: rotate(-45deg); }
.tier-table th[scope="row"] { font-weight: 700; color: var(--ink); white-space: normal; min-width: 110px; }
.tier-table td { vertical-align: top; min-width: 160px; }
.tier-table thead th { font-size: 13px; }
.tier-table .yes { font-weight: 700; color: var(--green); }
.table-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 600px) { .tier-table th[scope="row"], .tier-table td { min-width: 0; padding: 9px 8px; } .tier-table th[scope="row"] { width: 28%; } }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq-item > summary { cursor: pointer; font-weight: 700; min-height: 24px; }
.faq-item > p { margin: 10px 0 2px; color: var(--muted); }
/* Mac app facts (task 868.9) */
.fact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px 20px; margin: 0; }
.fact-list dt { font-size: 13px; font-weight: 700; color: var(--dim); }
.fact-list dd { margin: 2px 0 0; color: var(--ink); }
.release-note + .release-note { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.related-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; color: var(--ink); }
.related-card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.related-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.buybar .btn { padding: 12px 20px; flex: none; }
.buybar-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 761px) { .buybar { display: none; } }
@media (max-width: 760px) { html.has-buybar body { padding-bottom: 76px; } html.has-buybar { scroll-padding-bottom: 96px; } }

/* Home page (task 868.2) */
.home-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
/* Task 1788: Tumblemoon band */
.tm-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 24px; align-items: center; padding: 24px; background: #1d1238; color: #fff; border: 0; }
.tm-band .px { color: #ffcc66; } .tm-band .dim { color: #d9d2ee; } .tm-band h2 a:hover { color: #ffcc66; }
.tm-band .btn-line, .tm-band .btn-line:hover { background: transparent; color: #fff; border: 2px solid #fff; }
.tm-shot img { width: 100%; height: auto; border-radius: 10px; display: block; }
@media (max-width: 760px) { .tm-band { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
.path-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); border-top: 4px solid var(--pink); }
.path-card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); border-top-color: var(--pink); }
.path-card b { font: 700 22px var(--display); }
.path-card .go { margin-top: auto; color: var(--pink-hover); font-weight: 700; }
@media (max-width: 760px) { .home-paths { grid-template-columns: minmax(0, 1fr); } .path-card { padding: 16px; } }
.home-trust { justify-content: center; padding: 14px 16px; background: var(--alt); border: 1px solid var(--line-soft); border-radius: var(--radius); margin: 0; }
/* Phones: smaller cover (task 868.1) */
@media (max-width: 760px) { .printable-page > .stack:first-child .printable-shot img { max-width: 240px; margin: 0 auto; display: block; } }

/* Comparison pages (task 868.7) */
.compare-table th[scope="row"] { white-space: normal; min-width: 110px; color: var(--ink); }
.compare-table td { vertical-align: top; min-width: 200px; }
.compare-table tr.ours th, .compare-table tr.ours td { background: var(--pink-soft); }
@media (max-width: 600px) { .compare-table th[scope="row"], .compare-table td { min-width: 0; padding: 9px 8px; } }
/* Mac app pages (task 1906): our column in the comparison table, the click-to-play demo video, the free line */
.app-compare td { min-width: 120px; }
.app-compare th.ours, .app-compare td.ours { background: var(--pink-soft); }
.app-compare .yes { font-weight: 700; color: var(--green); }
@media (max-width: 600px) { .app-compare td { min-width: 96px; } .app-compare th[scope="row"] { min-width: 120px; } }
.yt-lite .yt-box { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #0d1020; }
.yt-lite.tall .yt-box { max-width: 320px; margin: 0 auto; }
.yt-lite .yt-poster, .yt-lite .yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-lite .yt-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lite .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); transition: transform .15s; }
.yt-lite .yt-poster:hover .yt-play, .yt-lite .yt-poster:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-lite .yt-poster:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
.yt-lite.tall figcaption { text-align: center; }
.free-line { font-weight: 600; }
.free-line a { font-weight: 400; white-space: nowrap; }
/* The Mac app sale (Nov 22, 2026): html[data-mac-sale] is set by mac-sale.js */
.sale-banner { margin: 0; padding-top: 8px; padding-bottom: 8px; background: var(--pink-soft); border-bottom: 1px solid var(--pink-line); text-align: center; }
.sale-banner a, .sale-status a { color: var(--blue-dark); }
[data-mac-sale="live"] #buy .price, [data-mac-sale="live"] .sale-was { text-decoration: line-through; text-decoration-thickness: 2px; }
[data-mac-sale="over"] .sale-price { display: none; }
.sale-table th[scope="row"] { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); white-space: normal; border-bottom-color: var(--line-soft); }
.sale-table thead th { white-space: normal; }
.sale-app { display: flex; gap: 12px; align-items: center; } .sale-app b, .sale-app .muted { display: block; } .sale-app .muted { font-weight: 400; }
.sale-app > :first-child { flex: none; } .sale-pair { display: flex; gap: 2px; width: 54px; }
@media (max-width: 400px) { .mac-security .btn { white-space: normal; } }
.sale-price b { color: var(--pink-hover); } .sale-free { max-width: 260px; } .sale-lab { display: none; }
@media (max-width: 760px) {
  .sale-table, .sale-table tbody { display: block; } .sale-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sale-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
  .sale-table tbody th, .sale-table tbody td { padding: 0; border: 0; } .sale-table tbody th, .sale-table .sale-free, .sale-table .sale-go { grid-column: 1 / -1; max-width: none; }
  .sale-lab { display: block; font-size: 12px; font-weight: 700; color: var(--dim); } .sale-go .btn { flex: 1; padding: 11px 12px; }
}
/* Helpful 404 (task 868.13) */
.nf-paths { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
#nf-results .tag svg { vertical-align: -4px; }
/* Travel tools (task 906.2) */
.travel-tools-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.travel-tools-list a[aria-current="page"] { border-color: var(--pink); background: var(--pink-soft); }
.travel-tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 16px; align-items: start; }
.travel-tool-form .input { width: 100%; min-height: 44px; }
.travel-holidays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.travel-getaway-trips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.travel-getaway { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); }
.travel-getaway > .dim { grid-column: 1 / -1; overflow-wrap: anywhere; }
.travel-getaway > .btn { grid-column: 1 / -1; justify-self: start; }
.travel-getaway.is-stale b { color: var(--dim); }
.travel-budget-range input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--pink); }
.travel-map { max-width: 1040px; }
.travel-map svg { display: block; width: 100%; height: auto; background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); }
.travel-map .map-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.travel-map .map-label { fill: var(--dim); font-size: 15px; font-weight: 600; text-anchor: middle; }
.travel-map .map-dot { fill: var(--card); stroke: var(--dim); stroke-width: 1.5; }
.travel-map .map-dot.is-in { fill: var(--pink); stroke: var(--card); stroke-width: 2; }
.travel-check-result { min-height: 120px; }
.travel-check-chart { display: block; width: 100%; max-width: 520px; height: auto; }
.travel-check-chart .check-line { fill: none; stroke: var(--muted); stroke-width: 2; }
.travel-check-chart .check-at { stroke-width: 2; stroke-dasharray: 5 4; stroke: var(--blue); }
.travel-check-chart .check-at.is-low { stroke: var(--green); } .travel-check-chart .check-at.is-high { stroke: var(--amber); }
a.travel-day { text-decoration: none; }
a.travel-day:hover { border-color: var(--pink); }
.travel-day.band-high:not(.is-cheapest) .travel-day-p { color: var(--amber); }
.travel-nearby-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.travel-nearby-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.travel-nearby-list li.is-home { font-weight: 600; }
.travel-best-month { scroll-margin-top: 80px; }
.plan-costs { width: 100%; }
.plan-costs th { font-weight: 500; text-align: left; text-transform: none; letter-spacing: normal; font-size: 15px; color: var(--ink); }
#place-cal-month { width: auto; min-height: 40px; }
.plan-costs td { text-align: right; white-space: nowrap; }
.plan-tag { font-size: 11px; vertical-align: 1px; }
.plan-months tr.is-best th { color: var(--pink); }
.plan-dates { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.travel-plan-table { min-width: 560px; }
.travel-best-month th a { text-decoration: underline; text-underline-offset: 2px; }
/* Free tools, holiday deals (task 924) */
.free-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.free-link { display: grid; gap: 4px; padding: 14px; height: 100%; color: var(--ink); }
.free-link:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.holiday-dates { background: var(--alt); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
/* What to wear (task 928) */
.wear-form fieldset { grid-column: 1 / -1; min-width: 0; }
.wear-form .gear-chips { flex-wrap: wrap; overflow-x: visible; }
.wear-summary { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.wear-list { max-width: 900px; }
.wear-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px 18px; }
.wear-group legend { font-weight: 700; padding: 0 6px; }
.wear-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; }
.wear-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink); }
.wear-item label { display: grid; gap: 1px; cursor: pointer; }
.wear-item input:checked + label .wear-name { text-decoration: line-through; color: var(--dim); }
.wear-days td, .wear-days th { white-space: nowrap; }
.wear-days td:last-child { white-space: normal; min-width: 180px; }
/* Mac for local AI (task 1029.2) */
.ai-table th, .ai-table td { vertical-align: top; padding: 9px 10px; }
.ai-table td b, .ai-table td span, .ai-table th[scope="row"] a, .ai-table th[scope="row"] span { display: block; }
.ai-table td span, .ai-table th[scope="row"] span { font-size: 12px; font-weight: 400; }
.ai-table th[scope="row"] { min-width: 170px; max-width: 240px; white-space: normal; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); position: sticky; left: 0; background: #fff; }
.ai-table td { min-width: 104px; } .ai-table thead th span { display: block; text-transform: none; letter-spacing: 0; }
@media (max-width: 600px) { .ai-table th[scope="row"] { min-width: 128px; max-width: 150px; } .ai-table td { min-width: 92px; } }
@media print {
  [data-tool="what-to-wear"] > :not(.wear-result), body:has([data-tool="what-to-wear"]) .crumbs, body:has([data-tool="what-to-wear"]) .also { display: none !important; }
  .wear-group { break-inside: avoid; }
}
/* Solar eclipse trip planner (tasks 1035.2, 1035) */
.ecl-map-svg, .ecl-map-wrap img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ecl-map-wrap { position: relative; }
.ecl-pin { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 3px solid var(--pink); border-radius: 50%; background: rgba(255,255,255,.6); }
.ecl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.ecl-country summary { cursor: pointer; }
.ecl-page > * { min-width: 0; }
.ecl-glasses .btn { white-space: normal; text-align: center; max-width: 100%; }
.ecl-table th[scope="row"] { white-space: normal; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
/* task 1035: contact times stack on phones */
@media (max-width: 600px) { .ecl-times, .ecl-times tbody { display: block; } .ecl-times thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ecl-times tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
  table.ecl-times th, table.ecl-times td { display: block; padding: 0; border: 0; } .ecl-times td:nth-child(2), .ecl-times td:nth-child(4) { text-align: right; } .ecl-times td:nth-child(2) { font-weight: 700; }
  .ecl-times td[data-label] { font-size: 13px; color: var(--dim); } .ecl-times td[data-label]::before { content: attr(data-label) " "; content: attr(data-label) " " / ""; font-weight: 700; } }
