/* couch-tv Studio gallery. The same room as the website (site/DESIGN.md, the source of truth): painted
   walls in the room's own colours, each hanging real TVs drawing real designs; Nunito Black loud and
   rare, Inter quiet; round ink pills; a thin bezel and a soft wall shadow; one gentle lift.
   Phone first: most visitors are on phones, so every base rule is the phone rule and the wider screens
   are added below it. Tap targets are 44px or more. Restyled 18 Nov 2026 (BUILD.md, "Market restyle"). */

@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght.woff2) format("woff2"); font-weight: 600 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --wall: #BDCFE1;
  --ink: #14131A;
  --ink-2: #44424C;
  --ink-3: #5F5D67;
  --line: rgba(20, 19, 26, 0.12);
  --tomato: #F2441B;
  --sky: #9CCBF0;
  --sun: #FFC81E;
  --blush: #F8D3CC;
  --leaf: #11804B;
  --bezel: #0B0B0D;
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.4vw, 72px);
  --max: 1360px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-tv: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 34px 60px -30px rgba(30, 20, 30, 0.5), 0 12px 24px -12px rgba(30, 20, 30, 0.28);
  --shadow-tv-up: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 44px 70px -30px rgba(30, 20, 30, 0.55), 0 16px 28px -12px rgba(30, 20, 30, 0.3);
  --shadow-pill: 0 10px 24px -12px rgba(20, 19, 26, 0.6);
  --shadow-pill-up: 0 16px 30px -14px rgba(20, 19, 26, 0.65);
  --shadow-ghost: 0 10px 24px -16px rgba(20, 19, 26, 0.45), inset 0 0 0 1px rgba(20, 19, 26, 0.08);
  --shadow-float: 0 30px 60px -28px rgba(20, 19, 26, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(20, 19, 26, 0.45);
  /* wall text, tuned per wall (site/DESIGN.md "Colors") */
  --on-wall: #233446;
  --on-wall-2: #34465A;
  accent-color: var(--tomato);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: rgba(20, 19, 26, 0.35) transparent; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; min-height: 100svh; display: flex; flex-direction: column; caret-color: var(--tomato); }
main { flex: 1 0 auto; }
img, svg, iframe { display: block; max-width: 100%; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 561px) { body { font-size: 17px; } }

/* ---------- type: Nunito Black only at display size, Inter for everything else ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 900; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(46px, 6.2vw, 96px); line-height: 0.92; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 3.8vw, 56px); line-height: 0.98; letter-spacing: -0.03em; }
h3 { font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; }
.lede { margin: 16px 0 0; max-width: 32em; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- pills and buttons: every action is a full round pill ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 16px/1 var(--text); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s var(--ease-out), color 0.2s; }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill-ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-pill); }
.pill-ink:hover { background: #2A2833; transform: translateY(-1px); box-shadow: var(--shadow-pill-up); }
.pill-ink:active { transform: translateY(0) scale(0.98); }
.pill-lg { height: 54px; padding: 0 26px; font-size: 17px; }
/* the ghost pill: white on the wall, ink type (the homepage's "Get it on your TV") */
.pill-quiet { background: rgba(255, 255, 255, 0.92); color: var(--ink); box-shadow: var(--shadow-ghost); }
.pill-quiet:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(20, 19, 26, 0.5), inset 0 0 0 1px rgba(20, 19, 26, 0.12); }
.pill-quiet:active { transform: translateY(0) scale(0.98); }
.pill-quiet[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-pill); }
.pill-quiet[aria-pressed="true"] .i-heart, .pill-quiet[aria-pressed="true"] .i-save { fill: var(--tomato); stroke: var(--tomato); }
.pill[disabled], .pill[aria-busy="true"] { opacity: 0.55; cursor: progress; transform: none; }
.pill-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0 2px; color: var(--ink-2); font: 500 15px/1.3 var(--text); text-align: left; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; text-decoration-color: rgba(20, 19, 26, 0.3); cursor: pointer; }
.link:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (min-width: 561px) { .pill-lg { height: 58px; padding: 0 30px; font-size: 18px; } }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar: the brand in a pill, one ink pill at right ---------- */
.top { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 3px 12px 3px 8px; border-radius: 999px; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; transition: background-color 0.3s, box-shadow 0.3s; }
.brand:hover { background: rgba(251, 250, 247, 0.6); }
/* the couch-tv Studio lockup (brand/logo, concept 1): one file, /brand/couchtv-studio-lockup.svg, used by
   every page, so the logo is swapped in one place. 160px wide is its smallest size. */
.brand-logo { width: 160px; height: 38px; flex: none; }
.brand small { font: 600 15px/1 var(--text); color: var(--on-wall-2); letter-spacing: -0.005em; padding-left: 12px; box-shadow: inset 1.5px 0 0 rgba(20, 19, 26, 0.16); line-height: 22px; }
.top-act { display: flex; align-items: center; gap: 8px; }
.top-link { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none; color: var(--ink); transition: background-color 0.2s; }
.top-link:hover { background: rgba(255, 255, 255, 0.5); }
button.top-link { border: 0; background: transparent; cursor: pointer; min-width: 44px; justify-content: center; }
/* every Help control is a full 44 by 44 target, the short footer one too */
[data-help-open] { min-width: 44px; min-height: 44px; justify-content: center; }
.top-link[aria-current="page"] { background: rgba(255, 255, 255, 0.62); }
.top .pill { height: 44px; padding: 0 16px; font-size: 15px; }
.me-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; background: rgba(251, 250, 247, 0.86); color: var(--ink); cursor: pointer; text-decoration: none; font: 900 18px/1 var(--display); box-shadow: 0 8px 22px -14px rgba(20, 19, 26, 0.45); transition: background-color 0.2s, transform 0.3s var(--ease-out); }
.me-btn:hover { background: #fff; transform: translateY(-1px); }
.me-btn .ico { width: 22px; height: 22px; }
.top-link.hide-sm, .brand small { display: none; }
@media (min-width: 641px) {
  .top { padding: 14px var(--gutter); gap: 12px; }
  .brand { margin-left: -8px; }
  .brand small { display: inline-flex; }
  .top-act { gap: 10px; }
  .top .pill { padding: 0 20px; }
}
/* the smallest phones: the pill keeps its words, the lockup keeps its 160px, the gaps give */
@media (max-width: 379px) {
  .top { padding-inline: 10px; gap: 6px; }
  .brand { padding-inline: 4px 6px; }
  .top-act { gap: 6px; }
  .top .pill { padding: 0 14px; }
}

/* ---------- walls: one colour each, from the room photo ---------- */
.wall-blue { background: var(--wall); --on-wall: #233446; --on-wall-2: #34465A; }
.wall-blush { background: var(--blush); --on-wall: #5B2F2A; --on-wall-2: #6A3A33; }
.wall-sun { background: var(--sun); --on-wall: #3A2E05; --on-wall-2: #4A3B08; }
.wall-sky { background: var(--sky); --on-wall: #12304A; --on-wall-2: #1C3B56; }
[class*="wall-"] .lede { color: var(--on-wall-2); }

/* ---------- a TV on the wall: thin bezel, 16:9 screen, soft wall shadow ---------- */
.tv { position: relative; border-radius: clamp(8px, 0.8vw, 12px); background: var(--bezel); padding: clamp(3px, 0.32vw, 5px); box-shadow: var(--shadow-tv); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(5px, 0.5vw, 8px); background: #101114; isolation: isolate; contain: layout paint; }
.tv-screen::before { content: ""; position: absolute; inset: 0; background: #15161B; z-index: 0; }
.tv-screen::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0) 46%); }
.tv-frame { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; max-width: none; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; z-index: 1; background: transparent; }
.tv-frame.on { opacity: 1; }
.tv-wait { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.tv-wait span { width: 34%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.tv-wait span::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 3px; background: rgba(255, 255, 255, 0.28); animation: wait 1.4s var(--ease-out) infinite; }
.tv-frame.on ~ .tv-wait { display: none; }
@keyframes wait { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.tv-poster { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: saturate(0.95) brightness(0.86); }
.tv-poster ~ .tv-wait span { background: rgba(255, 255, 255, 0.16); }
/* a starter's still: shown at once, under the live home, and kept if the home cannot draw it */
.tv-still { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.has-still .tv-wait, .settled .tv-wait { display: none; }

/* ---------- the account control and the Sell pill in the top bar ----------
   The account control is the same width signed in or out, so the bar never moves when it is known. */
.acct { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(251, 250, 247, 0.86); color: var(--ink); font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap; box-shadow: 0 8px 22px -14px rgba(20, 19, 26, 0.45); transition: background-color 0.2s, transform 0.3s var(--ease-out); }
.acct:hover { background: #fff; transform: translateY(-1px); }
.acct .ico { width: 24px; height: 24px; }
.acct:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.acct-av { width: 34px; height: 34px; border-radius: 50%; background: var(--tomato); color: #fff; display: grid; place-items: center; font: 900 15px/1 var(--display); }
.say-more { display: none; }
.top .pill:has(.say-more) { gap: 0; }
@media (min-width: 761px) { .say-more { display: inline; margin-left: 0.28em; } }
/* the header's text links come in once there is room for them beside the two pills */
@media (min-width: 901px) { .top-link.hide-sm { display: inline-flex; } }
.no-acct { margin: 18px 0 0; }
/* the narrowest phones (320 to 359 px): the lockup keeps its 160 px, the two pills give a little */
@media (max-width: 359px) {
  .top { padding-inline: 8px; gap: 4px; }
  .top-act { gap: 4px; }
  .top .pill { padding: 0 11px; font-size: 14px; }
}

/* ---------- gallery hero: short on a phone (the designs start high), the live wall TV on bigger screens ---------- */
.hero { padding: 2px 0 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 28px; align-items: center; padding-top: 8px; }
.hero-copy h1 { font-size: clamp(40px, 6vw, 88px); color: var(--ink); }
.hero-copy .lede { margin-top: 10px; max-width: 26em; font-size: clamp(16px, 1.45vw, 21px); }
.hero-act { margin-top: 24px; display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.hero-note { font-size: 15px; font-weight: 500; color: var(--on-wall-2); }
.search { position: relative; margin-top: 18px; max-width: 560px; }
.search > .ico { position: absolute; left: 18px; top: 50%; margin-top: -10px; color: var(--on-wall-2); pointer-events: none; }
.search input { width: 100%; height: 52px; padding: 0 52px 0 50px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.96); color: var(--ink); font: 400 17px/1.2 var(--text); box-shadow: var(--shadow-ghost); -webkit-appearance: none; appearance: none; transition: box-shadow 0.2s; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search input::placeholder { color: #6E6C75; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 12px 26px -18px rgba(20, 19, 26, 0.5); }
.search-x { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.search-x:hover { background: #F1EFEA; }
.hero-tv { display: none; margin: 0; }
.hero-tv a { display: block; text-decoration: none; border-radius: 14px; }
.hero-tv a:hover .tv { transform: translateY(-3px); box-shadow: var(--shadow-tv-up); }
.hero-cap { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--on-wall-2); min-height: 34px; }
.chip-now { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; background: rgba(251, 250, 247, 0.94); color: var(--ink); font: 600 14px/1 var(--text); box-shadow: 0 8px 20px -12px rgba(30, 20, 40, 0.5); }
.chip-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }
@media (min-width: 901px) {
  .hero { padding: 8px 0 clamp(40px, 5vw, 72px); }
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); padding-top: clamp(16px, 3vw, 40px); }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-copy h1 { font-size: clamp(56px, 5.4vw, 80px); }
  /* the wall's TV is drawn before the featured design is known, so nothing below it moves when it lands */
  .hero-tv, .hero-tv[hidden] { display: block !important; grid-column: 8 / span 5; }
  .hero-tv[hidden] a { pointer-events: none; }
  .hero-tv[hidden] .hero-cap { visibility: hidden; }
  body:has(#load-err:not([hidden])) .hero-tv[hidden] { display: none !important; }
}

/* ---------- the browse bar: Filters and the category chips, stuck to the top while the designs scroll ---------- */
.browse { position: sticky; top: 0; z-index: 25; background: rgba(248, 211, 204, 0.95); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); transition: box-shadow 0.3s; }
.browse.stuck { box-shadow: 0 12px 24px -22px rgba(60, 20, 10, 0.55); }
.browse-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.filter-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 13px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1 var(--text); cursor: pointer; touch-action: manipulation; box-shadow: var(--shadow-ghost); }
.filter-btn .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tomato); color: #fff; font: 700 13px/1 var(--text); }
.filter-btn .n[hidden] { display: none !important; }
.cat-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 2px 2px; scroll-padding-inline: 2px; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.cat-chips::-webkit-scrollbar { display: none; }
/* "Free only" (gallery.js): a real checkbox in a 44 px pill, at the top of the list; it is Price, Free */
.free-only { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 15px 0 13px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1 var(--text); white-space: nowrap; cursor: pointer; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-ghost); }
.free-only { position: relative; }
.free-only input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.free-only .tick-box { flex: none; position: relative; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); pointer-events: none; }
.free-only input:checked + .tick-box { background: var(--ink); }
.free-only input:checked + .tick-box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.free-only:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.free-only:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.free-only input:focus-visible { outline: none; }
.cat-chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font: 600 15px/1 var(--text); white-space: nowrap; cursor: pointer; touch-action: manipulation; box-shadow: var(--shadow-ghost); transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out); }
.cat-chip small { font: 600 14px/1 var(--text); color: var(--ink-3); }
.cat-chip:hover { background: #fff; }
.cat-chip:active { transform: scale(0.97); }
.cat-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow-pill); }
.cat-chip[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.72); }

/* ---------- the shop: filters (a sheet on phones, a sidebar on desktops) beside the results ---------- */
.shop { padding: 4px 0 clamp(56px, 8vw, 110px); }
.results { min-width: 0; min-height: 80svh; }
.fpanel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; max-height: 88svh; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 70px -40px rgba(20, 19, 26, 0.6); transform: translateY(104%); visibility: hidden; transition: transform 0.45s var(--ease-out), visibility 0s linear 0.45s; }
body.f-open .fpanel { transform: none; visibility: visible; transition: transform 0.45s var(--ease-out); }
.f-back { position: fixed; inset: 0; z-index: 65; background: rgba(20, 19, 26, 0.42); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
body.f-open .f-back { opacity: 1; pointer-events: auto; }
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--gutter) 6px; }
.f-head h2 { font-size: 30px; }
.f-head .sheet-x { position: static; flex: none; }
.f-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 10px; }
.f-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.f-foot .pill { flex: 1 1 auto; max-width: 280px; height: 54px; font-size: 17px; }
.f-foot .link[disabled] { opacity: 0.45; cursor: default; }
.fgroup { margin: 0; padding: 16px 0 18px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.fgroup:first-child { border-top: 0; padding-top: 8px; }
.fgroup legend { float: left; width: 100%; margin: 0 0 12px; padding: 0; font: 700 16px/1.2 var(--text); color: var(--ink); }
.fopts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.fopt { position: relative; display: inline-flex; }
.fopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fopt span { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); font: 600 15px/1 var(--text); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.fopt input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.fopt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 1081px) {
  .shop { display: grid; grid-template-columns: 228px minmax(0, 1fr); column-gap: clamp(28px, 3vw, 44px); align-items: start; }
  .filter-btn, .f-back { display: none; }
  .fpanel { position: sticky; top: 84px; z-index: 1; max-height: calc(100svh - 100px); background: transparent; border-radius: 0; box-shadow: none; transform: none; visibility: visible; transition: none; padding-top: 14px; }
  .f-head { padding: 0 0 2px; }
  .f-head h2 { font-size: 24px; }
  .f-head .sheet-x, .f-foot .pill { display: none; }
  .f-body { padding: 0 6px 0 0; scrollbar-width: thin; }
  .f-foot { padding: 10px 0 0; box-shadow: none; justify-content: flex-start; }
  .fgroup legend { font-size: 15px; margin-bottom: 10px; }
  .fopts { gap: 6px; }
  .fopt span { height: 34px; padding: 0 12px; font-size: 14px; }
}

/* ---------- rails (staff picks, free, new): one row that scrolls sideways, a bit of the next card showing ---------- */
.rail-sec { margin-top: 18px; }
.rail-sec[hidden] { display: none; }
.rail-head, .res-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rail-head h2, .res-head h2 { font-size: clamp(25px, 2.4vw, 34px); line-height: 1; letter-spacing: -0.025em; }
.see-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; margin-bottom: -10px; font: 600 15px/1 var(--text); color: var(--on-wall); text-decoration: underline; text-decoration-color: rgba(91, 47, 42, 0.35); text-underline-offset: 0.22em; }
.see-all:hover { text-decoration-color: currentColor; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px) / 2.25); gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
@media (min-width: 641px) { .rail { grid-auto-columns: calc((100% - 3 * 18px) / 3.35); gap: 18px; } }
@media (min-width: 1081px) { .rail { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; margin: 0; padding: 4px 0 16px; scroll-padding-inline: 0; } }

/* how it works, in three steps, between the first two rails */
.how { list-style: none; margin: 8px 0 4px; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-radius: 22px; background: rgba(255, 255, 255, 0.62); counter-reset: s; }
.how li { counter-increment: s; display: grid; gap: 4px; align-content: start; font-size: 14px; line-height: 1.35; color: var(--on-wall-2); }
.how li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 4px; border-radius: 50%; background: var(--ink); color: #fff; font: 900 15px/1 var(--display); }
.how b { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.25; }
@media (min-width: 641px) { .how { padding: 20px 24px; gap: 24px; } .how li { font-size: 15px; } }

/* ---------- the results ---------- */
.all { margin-top: 26px; scroll-margin-top: 80px; }
#rails[hidden] + .all { margin-top: 12px; }
.count { margin: 6px 0 0; min-height: 19px; font: 500 15px/1.25 var(--text); color: var(--on-wall-2); }
.res-head .sel { margin-bottom: -2px; }
.res-head .sel select { width: 12.8em; }
.sel { position: relative; display: inline-flex; }
.sel select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 38px 0 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font: 600 15px/1 var(--text); text-overflow: ellipsis; box-shadow: var(--shadow-ghost); cursor: pointer; transition: background-color 0.2s, box-shadow 0.3s var(--ease-out); }
.sel select:hover { background: #fff; }
.sel .ico { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; stroke-width: 2.4; }
.sel.on select { background: var(--ink); color: #fff; box-shadow: var(--shadow-pill); }
.sel.on .ico { color: #fff; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.on-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--text); cursor: pointer; box-shadow: var(--shadow-pill); }
.on-chip .ico { width: 16px; height: 16px; opacity: 0.8; }

/* ---------- the grid: two across on a phone, three on a tablet, four (five on wide screens) beside the filters ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 641px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; row-gap: 28px; } }
@media (min-width: 1081px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 20px; row-gap: 32px; } }
@media (min-width: 1500px) { .shop .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- a card: a small TV with a Free ribbon or its price, then what it takes to choose ---------- */
.card { position: relative; min-width: 0; }
.card > a { display: block; text-decoration: none; border-radius: 12px; -webkit-touch-callout: none; }
.card .tv { border-radius: 9px; padding: 3px; }
.card .tv-screen { border-radius: 6px; background: #24232B; }
.card > a:hover .tv { transform: translateY(-3px); box-shadow: var(--shadow-tv-up); }
.card > a:active .tv { transform: scale(0.985); }
.card-cap { display: grid; gap: 3px; align-content: start; margin-top: 10px; min-height: 7em; }
.card-title { margin: 0; font: 900 16px/1.2 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-by { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.3; color: var(--ink-3); }
.card-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-badge { flex: none; width: 16px; height: 16px; color: var(--leaf); stroke-width: 1.8; }
.card-what { margin: 2px 0 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; overflow-wrap: anywhere; }
.card-what b { color: var(--ink); font-weight: 700; }
.card-foot { display: flex; align-items: center; gap: 10px; margin: 3px 0 0; font: 600 14px/1.1 var(--text); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.card-foot > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.card-foot .fit span { overflow: hidden; text-overflow: ellipsis; }
.card-foot .ico { flex: none; width: 15px; height: 15px; stroke-width: 2; }
.card-foot .stat { flex: none; }
[class*="wall-"] .card-by, [class*="wall-"] .card-foot, [class*="wall-"] .card-likes, [class*="wall-"] .empty p { color: var(--on-wall-2); }
[class*="wall-"] .card-what { color: var(--on-wall); }
.card-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.card .status { justify-self: start; margin: 2px 0; }
@media (min-width: 641px) {
  .card .tv { border-radius: clamp(8px, 0.8vw, 11px); padding: clamp(3px, 0.32vw, 4px); }
  .card-title { font-size: 17px; }
}
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font: 700 13px/1 var(--text); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); white-space: nowrap; }
.status.approved { background: #E3F2E9; color: #0C5B35; box-shadow: none; }
.status.pending { background: #FFF1C2; color: #5A4300; box-shadow: none; }
.status.rejected, .status.removed { background: #FCE0D7; color: #8A2307; box-shadow: none; }
/* taken down by its seller (status withdrawn): neutral grey, not an error, and the card is quieter */
.status.withdrawn { background: #ECEAE6; color: #45423C; box-shadow: inset 0 0 0 1.5px #D6D2CB; }
.card-meta .status.withdrawn { justify-self: start; white-space: normal; height: auto; min-height: 26px; padding: 4px 11px; line-height: 1.3; }
.card.is-withdrawn .tv { opacity: .55; filter: grayscale(.7); }
.card.is-withdrawn .card-title { color: var(--ink-2); }
.pending-note.is-withdrawn { background: #ECEAE6; color: #45423C; }
.price { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14px/1 var(--text); letter-spacing: -0.005em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price.free { background: rgba(255, 255, 255, 0.92); color: #0C5B35; box-shadow: inset 0 0 0 1px rgba(17, 128, 75, 0.25); }
.price.owned { background: var(--sun); color: var(--ink); }
/* the Free ribbon: a leaf green band across the screen's top left corner (seagey: "a little sort of
   banner on top of all of the ones that are free"); a paid design's price sits in the top right */
.ribbon-clip { position: absolute; inset: 3px; z-index: 3; overflow: hidden; border-radius: 6px; pointer-events: none; }
.price.free.ribbon { position: absolute; top: 12px; left: -30px; width: 110px; height: 24px; padding: 0; justify-content: center; border-radius: 0; transform: rotate(-45deg); background: var(--leaf); color: #fff; font: 800 14px/1 var(--text); letter-spacing: 0.02em; box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.7); }
.price.tag { position: absolute; top: 9px; right: 9px; z-index: 3; height: 26px; padding: 0 9px; font-size: 14px; background: rgba(20, 19, 26, 0.9); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.7); }
.price.owned.tag { background: var(--sun); color: var(--ink); }
@media (min-width: 641px) { .price.free.ribbon { top: 14px; left: -28px; width: 116px; height: 26px; } }
/* a grey card while the first ones load */
.card.ghost .tv { background: rgba(255, 255, 255, 0.4); box-shadow: none; }
.card.ghost .tv-screen { background: rgba(255, 255, 255, 0.45); }
.card.ghost .tv-screen::before, .card.ghost .tv-screen::after { display: none; }
.gl { height: 11px; margin: 3px 0; border-radius: 6px; background: rgba(91, 47, 42, 0.12); }
.gl.w8 { width: 80%; height: 14px; } .gl.w5 { width: 50%; } .gl.w9 { width: 92%; } .gl.w6 { width: 60%; }

.empty { padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.empty h2 { font-size: clamp(30px, 3.4vw, 46px); }
.empty p { margin: 14px auto 24px; max-width: 30em; color: var(--ink-2); }
.btns.center { justify-content: center; }
.more-row { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- the sell band: its own wall, sunshine ---------- */
.sell-band { padding: clamp(56px, 8vw, 110px) 0; }
.sell-grid { display: grid; gap: 26px; align-items: end; }
.sell-band h2 { font-size: clamp(34px, 4.6vw, 68px); }
.sell-band .lede { color: var(--on-wall-2); }
.sell-act { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .sell-act .pill { flex: 1 1 100%; } }
@media (min-width: 901px) { .sell-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; } .sell-act { justify-content: flex-end; } }

/* ---------- listing page ---------- */
.stage { padding: 0 0 clamp(40px, 6vw, 88px); }
.back { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; margin-left: -10px; border-radius: 999px; color: var(--on-wall); text-decoration: none; font: 600 15px/1 var(--text); transition: background-color 0.2s; }
.back:hover { background: rgba(255, 255, 255, 0.45); }
.stage-tv { width: min(100%, 1180px); margin: clamp(8px, 2vw, 26px) auto 0; }
.about { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 120px); }
.about-grid { display: grid; grid-template-areas: "main" "side" "facts"; grid-template-columns: minmax(0, 1fr); row-gap: 0; align-items: start; }
.about-main { grid-area: main; }
.about-facts { grid-area: facts; }
.about-side { grid-area: side; align-self: start; margin-top: 24px; }
/* the note on paying, refunds and needing couch-tv shows at every width (red team H3: it was hidden
   under 901px, so a phone buyer saw only the price and Buy) */
@media (min-width: 901px) {
  .about-grid { grid-template-areas: "main . side" "facts . side"; grid-template-columns: minmax(0, 7fr) minmax(24px, 1fr) minmax(320px, 4fr); }
  .about-side { position: sticky; top: 24px; margin-top: 0; }
}
.d-title { font-size: clamp(40px, 4.8vw, 76px); line-height: 0.94; letter-spacing: -0.035em; }
.byline { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }
.byline a { font-weight: 600; color: var(--ink); }
/* links inside a sentence keep their look, and get a 44px tall touch area from padding that does not
   move the line (vertical padding on an inline box does not change the line height) */
.byline a, .tick a, .prose a, .act-note a, .fact-note a, .pub-rules a { padding-block: 12px; margin-block: -12px; }
.small a, small a { display: inline-block; padding-block: 12px; margin-block: -12px; line-height: 20px; }
.facts { margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (min-width: 561px) { .facts > div { grid-template-columns: 11em 1fr; gap: 16px; } }
.fact-note { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #F1EFEA; color: var(--ink-2); font: 600 14px/1 var(--text); }
.act { display: grid; gap: 12px; }
.act .pill-lg { width: 100%; }
.act-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.act-row .pill { padding: 0 10px; }
.act-row .pill { width: 100%; }
.act-row .num { color: inherit; opacity: 0.7; margin-left: -2px; }
.act-note { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.act-report { justify-self: start; margin-top: 2px; }
.more { padding: 0 0 clamp(72px, 9vw, 140px); }
.more h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.pending-note { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #FFF1C2; color: #4A3700; font-size: 15px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.buy-price b { font: 900 34px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.buy-price span { font-size: 15px; color: var(--ink-3); }
.buy-how { margin: 0; padding: 12px 14px; border-radius: 14px; background: #F1EFEA; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.buy-how b { color: var(--ink); font-weight: 600; }
.official-note { display: block; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.wc-hint { margin: 10px 0 0; font-size: 14px; color: var(--ink-3); }

/* phones: the main action stays under the thumb */
.dock-bar { display: none; }
@media (max-width: 900px) {
  .dock-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 250, 247, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -16px 30px -26px rgba(20, 19, 26, 0.5); }
  .dock-bar .pill-ink { flex: 1; height: 54px; font-size: 17px; }
  .dock-bar .pill-quiet { width: 54px; padding: 0; flex: none; height: 54px; }
  body.has-dock { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .about-side .act > .pill-lg { display: none; }
}

/* ---------- sheets: from the bottom on phones, a card in the middle on bigger screens ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 60; background: rgba(20, 19, 26, 0.42); display: grid; place-items: end stretch; padding: 0; opacity: 0; transition: opacity 0.3s ease; }
.sheet-back.open { opacity: 1; }
.sheet { position: relative; width: 100%; max-height: 94svh; overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 28px 28px 0 0; padding: 26px var(--gutter) calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 40px 90px -40px rgba(20, 19, 26, 0.6); transform: translateY(40px); transition: transform 0.45s var(--ease-out); }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 5px; background: rgba(20, 19, 26, 0.18); margin: -12px auto 16px; }
.sheet-back.open .sheet { transform: none; }
.sheet h2 { font-size: clamp(30px, 3vw, 38px); padding-right: 44px; }
.sheet p { color: var(--ink-2); }
.sheet-x { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F1EFEA; display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s; }
.sheet-x:hover { background: #E7E4DD; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.sheet .btns .pill { flex: 1 1 100%; height: 54px; }
@media (min-width: 641px) {
  .sheet-back { place-items: center; padding: 24px; }
  .sheet { width: min(100%, 520px); max-height: min(92svh, 860px); border-radius: 28px; padding: 30px 30px 26px; transform: translateY(14px) scale(0.985); }
  .sheet::before { display: none; }
  .sheet .btns .pill { flex: 1 1 auto; height: 48px; }
  .sheet .btns .pill-lg { height: 58px; }
}
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 40px; color: var(--ink-2); line-height: 1.45; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 900 15px/1 var(--display); }
.steps b { color: var(--ink); font-weight: 600; }
.code-box { margin: 22px 0 0; padding: 22px 20px; border-radius: 22px; background: var(--wall); text-align: center; }
.code-label { margin: 0; font: 600 14px/1 var(--text); color: #34465A; }
.code { margin: 12px 0 0; font: 900 clamp(34px, 7vw, 46px)/1 var(--display); letter-spacing: 0.04em; color: var(--ink); font-variant-numeric: tabular-nums; user-select: all; }
.code-exp { margin: 10px 0 0; font-size: 14px; color: #34465A; }
.qr-row { display: flex; gap: 18px; align-items: center; margin-top: 18px; }
.qr { flex: none; background: #fff; padding: 10px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.qr svg { width: 128px; height: 128px; }
.qr-row p { margin: 0; font-size: 14px; }
.code-copy { margin-top: 12px; }
.no-app { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: #F1EFEA; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.no-app a { font-weight: 600; color: var(--ink); display: inline-block; padding-block: 12px; margin-block: -12px; }
.retry { margin-top: 10px; }
.busy { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--ink-2); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(20, 19, 26, 0.15); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #FCE0D7; color: #7A1F06; font-size: 15px; }
.ok-box { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #E3F2E9; color: #0C4F2E; font-size: 15px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > span, .field legend { font: 600 15px/1.2 var(--text); color: var(--ink); padding: 0; }
.field small { color: var(--ink-3); font-size: 14px; }
.input, .area { width: 100%; height: 52px; padding: 0 18px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); font: 400 17px/1.3 var(--text); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s; }
.area { height: auto; min-height: 110px; padding: 14px 18px; resize: vertical; line-height: 1.45; }
.input:hover, .area:hover { box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.26); }
.input:focus, .area:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px rgba(20, 19, 26, 0.08); }
.input::placeholder, .area::placeholder { color: #6E6C75; }
fieldset.field { border: 0; margin-inline: 0; padding: 0; min-width: 0; }
.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 13px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow 0.2s; }
.radio:hover { box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.26); }
.radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.radio input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.radio span { line-height: 1.4; }
.radio small { display: block; color: var(--ink-3); font-size: 14px; }
.tick { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin-top: 18px; cursor: pointer; line-height: 1.45; color: var(--ink-2); }
.tick input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; }
.toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chips label { position: relative; display: inline-flex; }
.toggle-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle-chips span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 15px/1 var(--text); color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.toggle-chips input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.toggle-chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.pick-for { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 561px) { .pick-for { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); } }
.pick-for label { position: relative; min-width: 0; }
.pick-for input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick-for span { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 60px; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 15px/1.2 var(--text); color: var(--ink); transition: background-color 0.2s, color 0.2s; }
.pick-for span small { font: 500 13px/1.25 var(--text); color: var(--ink-3); margin-top: 3px; }
.pick-for input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.pick-for input:checked + span small { color: rgba(255, 255, 255, 0.72); }
.pick-for input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.price-row { display: flex; align-items: center; gap: 10px; }
.price-row .input { max-width: 180px; height: 52px; font-variant-numeric: tabular-nums; }
.price-cur { font: 800 18px/1 var(--text); color: var(--ink-2); }
.earn { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.notice { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: #FFF1C2; color: #4A3700; font-size: 15px; line-height: 1.45; }
.notice .pill { margin-top: 10px; }
.select-wide { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 16px; background: #fff; font: 400 17px/1.3 var(--text); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- page heads on painted walls (publish, me, creator, admin, rules, terms) ---------- */
.head { padding: 8px 0 clamp(40px, 5.4vw, 80px); }
.head h1 { font-size: clamp(44px, 5.6vw, 88px); margin-top: clamp(12px, 2.6vw, 36px); }
.head .lede { color: var(--on-wall-2); }
.body { padding: clamp(32px, 4.6vw, 64px) 0 clamp(72px, 9vw, 140px); }

/* publish */
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 32px; align-items: start; }
.pub-preview { order: -1; }
/* before a design is brought in: a calm screen in the page's own wall colour with the couch mark,
   not a black box (the caption under it says what will show) */
.pub-preview .tv-screen:empty { background: var(--sun) url("/brand/couchtv-mark.svg") center 46% / 22% auto no-repeat; }
.pub-preview .tv-screen:empty::before, .pub-preview .tv-screen:empty::after { display: none; }
@media (min-width: 961px) {
  .pub-grid { grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 36px; }
  .pub-form { grid-column: 1 / span 6; }
  .pub-preview { grid-column: 8 / span 5; position: sticky; top: 24px; order: 0; }
}
.step { padding: 28px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step h2 { font-size: clamp(26px, 2.6vw, 34px); }
.step > p { margin: 10px 0 0; color: var(--ink-2); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 26px; background: #EFECE6; margin-top: 18px; max-width: 100%; flex-wrap: wrap; }
@media (min-width: 561px) { .seg { border-radius: 999px; flex-wrap: nowrap; } }
.seg button { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1 var(--text); color: var(--ink-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -8px rgba(20, 19, 26, 0.5); }
.drop { margin-top: 16px; display: grid; place-items: center; gap: 10px; min-height: 140px; padding: 22px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; color: var(--ink-2); cursor: pointer; }
.drop.over { box-shadow: inset 0 0 0 2px var(--ink); background: #F6F4EF; }
.drop .ico { width: 28px; height: 28px; }
.inline-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.inline-row .input { flex: 1 1 260px; }
.loaded { margin-top: 16px; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: #E3F2E9; color: #0C4F2E; font-size: 15px; }
.preview-cap { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); max-width: 34em; }
#go-row { margin-top: 26px; }
/* phones: Share it is a full width button, low on the screen once the form is filled in */
/* phones: Share it sits in a bar at the bottom of the screen, under the thumb, like Buy on a design's
   page; an error above it is scrolled clear of the bar */
@media (max-width: 640px) {
  #go-row { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(251, 250, 247, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -16px 30px -26px rgba(20, 19, 26, 0.5); }
  #go-row .pill-lg { width: 100%; height: 54px; }
  body:has(#go-row) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(#go-row) .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  #err, #rights, .tick { scroll-margin-bottom: 96px; }
  html:has(#go-row) { scroll-padding-bottom: 90px; }
}

/* me / creator */
.profile-head { display: flex; gap: 18px; align-items: center; margin-top: clamp(12px, 2.6vw, 36px); }
.avatar { flex: none; width: clamp(68px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--tomato); color: #fff; display: grid; place-items: center; font: 900 clamp(32px, 4vw, 50px)/1 var(--display); box-shadow: 0 16px 30px -18px rgba(60, 20, 10, 0.6); }
.profile-head h1 { margin: 0; font-size: clamp(38px, 5vw, 76px); overflow-wrap: anywhere; }
.profile-head .lede { margin-top: 8px; }
.profile-head .lede:empty { min-height: 4.2em; }
.sec { margin-top: clamp(48px, 6vw, 84px); }
.sec:first-child { margin-top: 0; }
.sec h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.profile-form { max-width: 560px; }
.empty-line { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px; background: #F3F1EC; color: var(--ink-2); }
.empty-line p { margin: 0; flex: 1 1 260px; }
.paid-panel { display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.paid-panel h3 { margin: 0; font: 900 20px/1.2 var(--display); }
.paid-panel p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.paid-panel .btns { margin-top: 4px; }
.state-line { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--text); }
.state-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.state-line.ok::before { background: var(--leaf); }

/* admin */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255, 255, 255, 0.55); width: 100%; margin-top: 26px; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font: 600 15px/1 var(--text); color: var(--on-wall); white-space: nowrap; transition: background-color 0.2s; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(20, 19, 26, 0.1); font-size: 13px; }
.tabs a[aria-current="page"] .n { background: rgba(255, 255, 255, 0.18); }
@media (min-width: 641px) {
  .tabs { display: flex; width: max-content; max-width: 100%; overflow-x: auto; border-radius: 999px; }
}
/* moderation, signed out or not a moderator: what the page is, and where to go instead */
.locked { max-width: 40em; padding: 26px 22px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.locked h2 { font-size: clamp(26px, 2.6vw, 34px); }
.locked p { margin: 12px 0 0; color: var(--ink-2); }
.locked .btns .pill { flex: 1 1 auto; }
@media (min-width: 641px) { .locked { padding: 34px 36px; } .locked .btns .pill { flex: 0 0 auto; } }
.queue { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
@media (min-width: 861px) { .item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 2.4vw, 36px); padding: 24px; } }
.item h3 { font-size: 24px; }
.item-meta { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.item-pic { margin: 14px 0 0; }
.item-pic img { width: 100%; border-radius: 12px; }
.item-pic figcaption { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.item .tags { margin: 14px 0 12px; }
.item .pending-note { margin: 0 0 12px; }
.claim { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: #FFF6F2; box-shadow: inset 0 0 0 1px #F6CDBF; font-size: 15px; color: var(--ink-2); }
.claim dt { font-weight: 600; color: var(--ink); margin-top: 8px; }
.claim dt:first-child { margin-top: 0; }
.claim dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; align-items: center; }
.decide .input { height: 48px; grid-column: 1 / -1; }
.decide .danger { grid-column: 1 / -1; }
.decide .changed-note { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (min-width: 641px) {
  .decide { display: flex; flex-wrap: wrap; }
  .decide .input { flex: 1 1 100%; }
}
.danger { background: #fff; color: #B42E0B; box-shadow: inset 0 0 0 1.5px #E9876A; }
.danger:hover { background: #FFF1EC; color: #8F2408; transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px #D9643F; }
.log { width: 100%; border-collapse: collapse; font-size: 15px; }
.log th, .log td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log th { font-weight: 600; color: var(--ink-3); }

/* rules and the terms (Read): a comfortable measure, plain lists */
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 8px 0; padding-left: 2px; }
.prose li::marker { color: var(--tomato); }
.terms h2 { margin-top: 1.8em; scroll-margin-top: 20px; }
.draft-tag { display: inline-flex; align-items: center; min-height: 30px; margin: 0 0 12px; padding: 6px 14px; border-radius: 16px; text-wrap: balance; background: rgba(255, 255, 255, 0.9); color: #4A3700; font: 700 14px/1.2 var(--text); }

/* ---------- sell your designs: four short steps, then sign up (the last on ink, so it is the one to press) ---------- */
.sell-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 761px) { .sell-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.sell-card { counter-increment: s; display: grid; align-content: start; gap: 12px; padding: 24px 22px 26px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.sell-card::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 900 17px/1 var(--display); }
.sell-card h2 { font-size: clamp(25px, 2.4vw, 32px); }
.sell-card p { margin: 0; color: var(--ink-2); }
.sell-card > .pill, .sell-card > .link { justify-self: start; }
.sell-facts { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.sell-facts li::marker { color: var(--tomato); }
.sell-facts b { color: var(--ink); font-weight: 700; }
.sell-go { background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); }
.sell-go::before { background: var(--tomato); color: #fff; }
.sell-go h2 { color: #fff; }
.sell-go p { color: rgba(255, 255, 255, 0.8); }
.sell-go .btns { margin-top: 6px; }
.sell-go .pill-ink { background: var(--sun); color: var(--ink); }
.sell-go .pill-ink:hover { background: #FFD54F; }
@media (min-width: 641px) { .sell-card { padding: 30px 30px 32px; } }
@media (max-width: 560px) { .head .hero-act .pill, .sell-go .btns .pill { flex: 1 1 100%; } }

/* ---------- a design's page: the price or Free over the name, what it can do, the maker, the TV check ---------- */
.d-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; min-height: 30px; }
.d-badges .price { height: 30px; font-size: 15px; }
.price.free.big-free { background: var(--leaf); color: #fff; box-shadow: none; }
.badge-cat { display: inline-flex; align-items: center; min-height: 44px; margin-block: -7px; padding: 0 12px; border-radius: 999px; font: 600 15px/1 var(--text); color: var(--ink); background: #F1EFEA; text-decoration: none; }
.badge-cat:hover { background: #E7E4DD; }
.badge-stat { display: inline-flex; align-items: center; gap: 5px; font: 600 14px/1 var(--text); color: var(--ink-3); }
.badge-stat .ico { width: 16px; height: 16px; }
.can-box { margin-top: 22px; }
.can-title { font: 700 16px/1.2 var(--text); margin: 0 0 10px; }
.can { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.can li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.45; }
.can li .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--leaf); stroke-width: 2.4; }
.tags li a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -7px; padding: 0 2px; color: inherit; text-decoration: none; }
.tags li:has(a):hover { background: #E7E4DD; }
.seller-card { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 14px 16px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); transition: transform 0.3s var(--ease-out); }
.seller-card:hover { transform: translateY(-1px); }
.seller-card > .ico { margin-left: auto; color: var(--ink-3); }
.avatar.sm { width: 46px; font-size: 22px; box-shadow: none; }
.sc-text { display: grid; gap: 2px; min-width: 0; }
.sc-text b { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.sc-text small { font-size: 14px; color: var(--ink-3); }
.works-check { margin-top: 14px; border-radius: 20px; background: #F3F1EC; padding: 0 16px; }
.works-check summary { display: flex; align-items: center; min-height: 52px; font: 700 16px/1.2 var(--text); cursor: pointer; list-style: none; }
.works-check summary::-webkit-details-marker { display: none; }
.works-check summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out); }
.works-check[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.works-check[open] { padding-bottom: 16px; }
.works-check .field { margin-top: 4px; }
.sel-wide { display: flex; width: 100%; }
.sel-wide select { width: 100%; }
.wc-sum { margin: 14px 0 0; font-weight: 600; }
.wc-sum.ok { color: #0C5B35; } .wc-sum.setup { color: #5A4300; } .wc-sum.no { color: #8A2307; }
.wc-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wc-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 15px; }
.wc-list li span { color: var(--ink-3); text-align: right; }
.wc-list li.wc-ok span { color: #0C5B35; } .wc-list li.wc-setup span { color: #5A4300; } .wc-list li.wc-no span { color: #8A2307; }
.dock-price { display: none; }
@media (max-width: 900px) {
  .dock-price:not([hidden]) { display: grid; place-items: center; flex: none; min-width: 64px; padding: 0 4px; font: 800 15px/1.15 var(--text); white-space: pre; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
  .dock-price.free { color: #0C5B35; }
}
.pill.is-setup { background: #5F5D67; }

/* ---------- publish: the rules before you start, inline errors, what it can do, public words ---------- */
.pub-rules { order: -2; display: grid; gap: 8px; padding: 18px 20px; border-radius: 22px; background: #FFF6D6; color: #4A3700; font-size: 15px; line-height: 1.45; }
.pub-rules p { margin: 0; }
.pub-rules b { color: var(--ink); }
.pub-gate { order: -3; padding: 26px 22px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.pub-gate h2 { font-size: clamp(26px, 2.6vw, 34px); }
.pub-gate p { margin: 10px 0 0; color: var(--ink-2); }
@media (min-width: 961px) { .pub-rules, .pub-gate { grid-column: 1 / span 6; } }
.field-err { margin: 2px 0 0; color: #8A2307; font: 600 15px/1.35 var(--text); }
.field-err::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #D9431B; vertical-align: 1px; }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #D9431B !important; }
.count-hint { font-size: 14px; color: var(--ink-3); }
.more-cats summary { display: flex; align-items: center; min-height: 44px; font: 600 15px/1.2 var(--text); cursor: pointer; }
.more-cats .toggle-chips { margin-top: 8px; }
.toggle-chips input:disabled + span { opacity: 0.4; }
.can-list { display: grid; gap: 8px; }
.can-row { display: block; }
.public-words { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: #F3F1EC; }
.public-words p { margin: 0 0 10px; }

/* ---------- moderation: the automatic checks beside each design ---------- */
.checks { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.chk { display: grid; grid-template-columns: 9em 1fr; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 14px; background: #F3F1EC; }
.chk b { font-weight: 700; }
.chk.ok { background: #E3F2E9; } .chk.look { background: #FFF1C2; } .chk.bad { background: #FCE0D7; }

/* ---------- footer (paper, quiet, centred, as on the homepage), toast ---------- */
/* pages whose content arrives after the first paint keep the footer below the fold meanwhile, so
   nothing on screen moves when it lands (the gallery, a design's page, a creator's page) */
.about { min-height: 80svh; }
.body:has(> .wrap > #grid) { min-height: 90svh; }
.foot { margin-top: auto; padding: 36px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--paper); font-size: 14px; color: var(--ink-3); text-align: center; }
.foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.foot nav { display: flex; gap: 0 6px; flex-wrap: wrap; justify-content: center; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1.3 var(--text); box-shadow: 0 16px 30px -14px rgba(20, 19, 26, 0.7); transition: opacity 0.3s, transform 0.45s var(--ease-out); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-dock .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- motion: the homepage's one gentle lift (26px rise and fade, 0.9s, expo out) for what
   arrives below the fold; content is visible without script, and nothing moves under reduced motion */
.rise { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .card > a:hover .tv, .hero-tv a:hover .tv, .pill:hover, .me-btn:hover { transform: none; }
}

/* ---------- foldables (two screens side by side): nothing sits on the hinge ----------
   The grid and the rails split into the two screens with the hinge as their gap, and the thumb bar keeps
   its buttons on the second screen. */
@media (horizontal-viewport-segments: 2) {
  .wrap { width: calc(100% - 2 * var(--gutter)); }
  .grid, .shop .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: max(20px, calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 20px)); }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .fpanel { display: none; }
  .filter-btn { display: inline-flex; }
  .dock-bar, #go-row { padding-left: calc(env(viewport-segment-left 1 0, 0px) + 12px); }
  .hero-grid { column-gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px) + 24px); }
}
/* the moderator's Stats tab: one row of daily bars per event (heights by class, no inline styles) */
.stat { margin: 0 0 22px; }
.stat h3 { display: flex; justify-content: space-between; gap: 12px; font: 700 16px/1.2 var(--text); margin: 0 0 8px; }
.bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 70px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bars span { display: flex; align-items: flex-end; height: 100%; }
.bars i { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--ink); }
.bars i.h0 { height: 2px; } .bars i.h1 { height: 10%; } .bars i.h2 { height: 20%; } .bars i.h3 { height: 30%; } .bars i.h4 { height: 40%; } .bars i.h5 { height: 50%; }
.bars i.h6 { height: 60%; } .bars i.h7 { height: 70%; } .bars i.h8 { height: 80%; } .bars i.h9 { height: 90%; } .bars i.h10 { height: 100%; }
.stat-h { font: 700 18px/1.2 var(--text); margin: 28px 0 10px; }

/* ---------- your account (/me): section links, tiles, plan, card notes ---------- */
.acct-why { margin: 12px 0 0; max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--on-wall-2); }
.plan-chip { display: inline-flex; align-items: center; min-height: 32px; margin: 12px 0 0; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--ink); font: 700 14px/1 var(--text); }
.plan-chip:empty { display: none; }
.acct-nav { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, 0.94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.acct-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.acct-nav .wrap::-webkit-scrollbar { display: none; }
.acct-nav a { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap; }
.acct-nav a:hover { background: #F3F1EC; color: var(--ink); }
.acct-nav a[aria-current] { background: var(--ink); color: #fff; }
.acct-sec { scroll-margin-top: 70px; }
.sub-title { margin: 28px 0 14px; font: 800 21px/1.2 var(--display); }
.sec h2 + .sub-title { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
@media (min-width: 761px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.tile { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.tile b { font: 900 clamp(24px, 2.6vw, 32px)/1.05 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.tile span { font: 600 14px/1.3 var(--text); color: var(--ink-2); }
.tile small { font-size: 13px; color: var(--ink-3); }
#plan-panel { max-width: 720px; }
.card-meta { display: grid; gap: 4px; margin-top: 8px; }
.meta-line { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.meta-line.why { color: #8A2307; }
.card-meta .btns { margin-top: 6px; gap: 8px; }
.card-meta .btns .pill { flex: 1 1 100%; padding: 0 12px; }
@media (min-width: 641px) { .card-meta .btns .pill { flex: 1 1 auto; } }
.payout-line { margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: #F3F1EC; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.save-list { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.save-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.save-list b { overflow-wrap: anywhere; }
.save-list span { color: var(--ink-3); font-size: 14px; }
#designs-how { margin: 4px 0 0; }
.email-line { margin: 0 0 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.delete-panel { margin-top: 36px; max-width: 560px; }

/* My TVs: each TV a card with the design last sent, phone first (one column), two across from 900px */
.tv-form, .tv-edit { display: grid; gap: 4px; max-width: 560px; margin: 0 0 18px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.tv-form .btns, .tv-edit .btns { margin-top: 10px; }
.tv-edit { grid-column: 1 / -1; margin: 6px 0 0; padding: 14px 0 0; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; }
.tv-list { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
@media (min-width: 900px) { .tv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.tv-list:empty { display: none; }
.tv-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px 14px; align-items: start; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
@media (min-width: 561px) { .tv-item { grid-template-columns: 168px minmax(0, 1fr); padding: 18px; } }
.tv-mini { border-radius: 8px; padding: 3px; }
.tv-mini .tv-screen { border-radius: 5px; background: #24232B; }
.tv-mini .tv-screen:empty { background: var(--sun) url("/brand/couchtv-mark.svg") center 50% / 30% auto no-repeat; }
.tv-mini .tv-screen:empty::before, .tv-mini .tv-screen:empty::after { display: none; }
.tv-body { display: grid; gap: 6px; min-width: 0; }
.tv-head { display: grid; gap: 2px; }
.tv-kind { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--text); color: var(--ink-3); }
.tv-kind .ico { width: 16px; height: 16px; }
.tv-name { margin: 0; font: 900 21px/1.15 var(--display); overflow-wrap: anywhere; }
.tv-last, .tv-state { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.tv-last b { color: var(--ink); }
.tv-state { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.tv-state.ok { color: var(--leaf); font-weight: 600; }
.tv-state.ok .ico { width: 18px; height: 18px; flex: none; }
.tv-state.wait::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--sun); }
.tv-code { font: 700 14px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.tv-acts { grid-column: 1 / -1; margin-top: 2px; gap: 8px; }
.tv-acts .pill { flex: 1 1 auto; padding: 0 14px; }
.tv-acts .pill-ink { flex: 1 1 100%; }
@media (min-width: 561px) { .tv-acts .pill-ink { flex: 1 1 auto; } }
#tv-add[disabled] { cursor: not-allowed; }
#tvs-note { margin: 4px 0 0; }
/* a design for guests: what the TV needs after it arrives (beginner fix round, 19 Nov 2026) */
.guest-tv { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #EAF1F8; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.guest-tv p { margin: 0 0 6px; }
.guest-tv b { color: var(--ink); }
.guest-tv ol.steps { margin: 6px 0 8px; padding-left: 20px; }
.guest-tv ol.steps li { margin: 4px 0; }
.guest-tv a { font-weight: 600; color: var(--ink); display: inline-block; padding-block: 12px; margin-block: -12px; }
