/* The live demo dashboard. Same look as the design concepts in /demo/. */

:root {
  --bg: #F4F3EF;
  --card: #FFFFFF;
  --ink: #17171A;
  --ink-2: #45443F;
  --muted: #5E5C55;
  --line: #E4E1D8;
  --line-2: #D6D2C7;
  --side: #17171A;
  --side-2: #26262B;
  --mustard: #FFC233;
  --ok-bg: #DCF1E4; --ok: #14532D;
  --warn-bg: #FCEBC7; --warn: #7A3E00;
  --bad-bg: #FADAD5; --bad: #8A1C12;
  --info-bg: #DCE6FB; --info: #1E3A8A;
  --mute-bg: #ECEAE4;
  --red: #B42318;
  --green: #1E7A4C;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--text); }
a { color: #1D4ED8; }
a:hover { color: #1E3A8A; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.small { width: 16px; height: 16px; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; }

/* ---- frame ------------------------------------------------------------------- */

.shell { min-height: 100vh; display: flex; }
.side { width: 256px; flex-shrink: 0; background: var(--side); color: #FFFFFF; display: flex; flex-direction: column; gap: 16px; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none; color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { color: #FFFFFF; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--mustard); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.brand-mark .ic { width: 20px; height: 20px; stroke-width: 2.2; }

.lb { width: 34px; height: 34px; border-radius: 8px; background: var(--c, #0E2A47); color: #FFFFFF; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lb.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; vertical-align: middle; margin-right: 6px; }
.lb.big { width: 48px; height: 48px; border-radius: 12px; font-size: 22px; }
.lt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.lk { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #A9A69C; }
.ln { font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls { font-size: 11.5px; color: #A9A69C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shopbox { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid #34343A; background: #1F1F23; }

/* The shop switcher and the account menu open over everything, the screen view (z-index 60) too. */
.locsw { position: relative; }
.locsw > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid #34343A; background: #1F1F23; cursor: pointer; }
.locsw > summary::-webkit-details-marker { display: none; }
.locsw > summary:hover, .locsw[open] > summary { border-color: var(--mustard); }
.locpop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; max-height: min(70vh, 640px); overflow-y: auto; background: #FFFFFF; color: var(--ink); border-radius: 12px; padding: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 2px; }
.lph { margin: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6E6C64; }
.locit { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.locit:hover { background: var(--bg); color: var(--ink); }
.locit.on { background: #FFF4D6; }
.locit .lb { width: 30px; height: 30px; font-size: 13px; }
.locit strong { display: block; font-size: 14px; }
.locit small { display: block; font-size: 12px; color: var(--muted); }
.locit .tick { margin-left: auto; color: var(--green); }
.locman { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid #EFECE5; font-size: 13px; font-weight: 600; }
/* Finding a shop among many (ADR-0162): the switcher's box, under All shops, and "Nothing matches" when it finds none. */
.locpop .inp.search.locfind { flex-shrink: 0; width: auto; min-width: 0; margin: 6px 0; min-height: 40px; }
.locpop .locnone { margin: 4px 10px 8px; }
.locit:focus-visible { outline: 2px solid var(--mustard); outline-offset: -2px; }

.nav-list { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.nav { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: #C9C6BC; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav:hover { background: var(--side-2); color: #FFFFFF; }
.nav.on { background: var(--mustard); color: var(--ink); font-weight: 600; }
.navh { margin: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8D8A80; }

.who { position: relative; border-top: 1px solid #2C2C31; padding-top: 10px; }
.who > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.who > summary::-webkit-details-marker { display: none; }
.who > summary:hover, .who[open] > summary { background: var(--side-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #3B3B42; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; background: #ECEAE4; color: var(--ink); }
.avatar .ic { width: 17px; height: 17px; }
.whopop { position: absolute; left: 0; right: -80px; bottom: calc(100% + 6px); z-index: 70; max-height: 70vh; overflow-y: auto; background: #FFFFFF; color: var(--ink); border-radius: 12px; padding: 8px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.whonote { margin: 0 10px 8px; font-size: 12.5px; color: var(--muted); }
.whoit { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.whoit:hover { background: var(--bg); }
.whoit strong { display: block; font-size: 14px; }
.whoit small { display: block; font-size: 12px; color: var(--muted); }

.main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 32px; background: #FFFFFF; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
/* The Publish menu, open, goes over the screen view in the corner (z-index 60): on a short screen (a till) the view
   reached up to its third line (ADR-0251). */
.top:has(.pubmenu[open]) { z-index: 70; }
/* The bar is 64 px high unless something is in it: the dashboard's master-key banner, or a second line when it wraps. What
   sticks under it (the After you publish card, the menu's preview, the look preview) and where a jump comes to rest take its
   real height from --top-h, which dash.js keeps (the live demo's bar is always 64 px: the fallback), so none of it ends up
   under the bar. At 980 px wide and narrower the bar scrolls away with the page (a phone's sticks, 57 px high), so there the
   numbers are the 64 px they were made for. */
@media (max-width: 980px) { html { --top-h: 64px !important; } }
.demostrip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* On a laptop or a till (1200 px and wider, where the bar sticks) the bar stays one line: a shop name too long for it is cut
   short with "…", rather than the bar growing a second line over the page. The longer "Mark something sold out" did that at
   1280 wide in the live demo: 117 px of a till's 650, with the top half of a field under it. The master-key banner in the
   bar still wraps. */
@media (min-width: 1200px) {
  .top:not(:has(.visitbar)) { flex-wrap: nowrap; }
  .top:not(:has(.visitbar)) .demostrip { flex-wrap: nowrap; min-width: 0; gap: 10px; }
  .top:not(:has(.visitbar)) .demostrip > :not(.demoname) { flex-shrink: 0; white-space: nowrap; }
  .top:not(:has(.visitbar)) .demoname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top > .btn, .top > .chip { flex-shrink: 0; white-space: nowrap; }
}
.demotag { padding: 3px 9px; border-radius: 6px; background: var(--ink); color: var(--mustard); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.demoname { font-weight: 600; }
.timer { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--mute-bg); font-family: var(--mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.timer .ic { width: 15px; height: 15px; }
.timer-l { font-family: var(--text); }
.timer.low { background: var(--warn-bg); color: var(--warn); }
.timer.vlow { background: var(--bad-bg); color: var(--bad); }
.linkish { border: 0; background: none; padding: 4px 2px; color: #1D4ED8; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }
.endform { display: inline; margin: 0; }
.count { margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--mustard); color: var(--ink); font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--bg); color: var(--ink); }
.btn.pri { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn.pri:hover { background: #000000; color: #FFFFFF; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.btn.danger:hover { background: #8F1C13; color: #FFFFFF; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn .ic { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.iconbtn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { background: var(--mute-bg); color: var(--ink); }
.iconbtn:disabled { opacity: 0.3; cursor: default; background: transparent; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.mute { background: var(--mute-bg); color: var(--ink-2); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.hero { background: #FDEFC3; color: #6B4A00; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.sw { appearance: none; width: 40px; height: 24px; border-radius: 999px; border: 0; background: #C9C5BA; position: relative; padding: 0; cursor: pointer; flex-shrink: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; transition: left 0.15s; }
.sw[aria-checked="true"] { background: var(--green); }
.sw.so[aria-checked="true"] { background: var(--red); }
.sw[aria-checked="true"]::after { left: 19px; }
.sw:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- page parts ------------------------------------------------------------------ */

.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px var(--viewer-room, 380px); display: flex; flex-direction: column; gap: 22px; }
/* Anything scrolled into view (a button or field reached with the keyboard, a link followed) comes to rest
   clear of the sticky top bar and of the example screen view in the corner, which pages leave room to
   scroll past (--viewer-room, set by viewer.js). */
html { scroll-padding-top: max(80px, calc(var(--top-h, 64px) + 16px)); scroll-padding-bottom: var(--viewer-room, 0px); }
.phead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ptitle { flex-grow: 1; min-width: 0; }
.phead h1 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.phead p { margin-top: 4px; }
.pactions { display: flex; gap: 8px; flex-wrap: wrap; }
.date { margin-bottom: -16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 24px; }
.sect { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sect h2 { font-size: 17px; font-weight: 700; }
.sect-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sect-head h2 { flex-grow: 1; }
.sect-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sect-title h2 { font-size: 20px; font-weight: 700; flex-grow: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; gap: 18px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; cursor: pointer; font-size: 13px; font-weight: 600; }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.fchip .n { font-size: 11.5px; opacity: 0.7; }
.inp { width: 100%; min-height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 11px; background: #FFFFFF; font-size: 14px; }
textarea.inp { padding: 8px 11px; min-height: 64px; resize: vertical; }
select.inp { padding-right: 6px; }
.inp:disabled { background: #F7F6F2; color: var(--ink-2); }
.inp.search { width: 260px; max-width: 100%; }
.inp.money { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.inp.time { width: 120px; }
.inp.code { font-family: var(--mono); font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; max-width: 240px; min-height: 48px; }

.banner { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; border: 1px solid; }
.banner p { flex-grow: 1; }
.banner.warn { background: #FFF4D6; border-color: #F3D58A; color: #4A2A00; }
.banner.warn > .ic { color: var(--warn); }
.banner.bad { background: #FDECEA; border-color: #F2B8B0; color: #5A1209; }
.banner.bad > .ic { color: var(--bad); }
.banner.info { background: #EEF3FD; border-color: #C9D7F6; color: #1B2E66; }
.banner.info > .ic { color: var(--info); }
.banner.spreach > div { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }

.tries { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border-color: #F3D58A; background: #FFFBEF; }
.tries-head { display: flex; align-items: center; gap: 12px; }
.tries-head h2 { font-size: 16px; }
.tries .avatar { background: var(--ink); color: var(--mustard); }
.trylist { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* screens and TVs */
.tv { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #0E0E10; }
.tv-inner { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; }
.tv-none { width: 1920px; height: 1080px; display: flex; align-items: center; justify-content: center; color: #8D8A80; font-size: 64px; }
/* An upright drawing (a TV on its side) is previewed upright, in a portrait box of its own (9 / 16), centred. */
.tv.tv-tall .tv-inner { width: 1080px; height: 1920px; }
.tv.tv-tall { width: 56%; aspect-ratio: 9 / 16; margin-inline: auto; }
.tv.mini { width: 150px; border-radius: 4px; }
.tv.mini.tv-tall { width: 84px; }
.tv.small { border-radius: 6px; }
.screens-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.scr { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.scr:hover { border-color: #B9B4A6; }
.scr-tv { display: block; border-radius: 8px; }
.scr-meta { display: flex; flex-direction: column; gap: 6px; }
.scr-title { display: flex; align-items: center; gap: 8px; }
.scr-name { flex-grow: 1; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.scr-name:hover { text-decoration: underline; color: var(--ink); }
.scr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } /* a long chip sends the button to a line of its own */
.scr-edit { gap: 6px; }

.shops-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.shop { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.shop:hover { border-color: #B9B4A6; }
.shop-head { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.shop-head:hover { color: var(--ink); }
.shop-head:hover .shop-name { text-decoration: underline; text-underline-offset: 4px; }
.shop-t { flex-grow: 1; min-width: 0; }
.shop-name { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1.1; }
.shop-tvs { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-radius: 10px; background: #0E0E10; min-height: 104px; overflow: hidden; }
.shop-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px; background: var(--bg); font-size: 12px; }
.st b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.bad-t { color: #A11B10; }
.warn-t { color: var(--warn); }

.solist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sorow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EFECE5; }
.sorow:last-child { border-bottom: 0; }
.soname { flex-grow: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* A sold-out switch says what it is (usability review, 2026-10-09): "Sold out" beside it, in red while it is on, so a
   switch that is on means what it reads. */
.sorow::after { content: "Sold out"; order: 1; font-size: 12.5px; color: var(--muted); }
.sorow:has(.sw[aria-checked="true"])::after { color: var(--red); font-weight: 600; }
.sorow .sw { order: 2; }
.actlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.actlist li { display: flex; gap: 10px; }
.when { flex-shrink: 0; width: 76px; color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.today { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.today li { display: flex; align-items: center; gap: 10px; }

/* menus */
.menus-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.menu-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.menu-card.dim { opacity: 0.7; }
.menu-name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.lock { display: flex; align-items: center; gap: 6px; color: var(--warn); }
.lock .ic { width: 15px; height: 15px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor-main.rows { container-type: inline-size; }
.editor-side { position: sticky; top: calc(var(--top-h, 64px) + 20px); }
.preview-pane { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pane-head { display: flex; align-items: center; gap: 10px; }
.pane-head h2 { font-size: 16px; flex-grow: 1; }
.pane-head select { width: auto; max-width: 200px; }
.secblock { padding: 16px 18px 12px; }
.sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.sec-head h2 { font-family: var(--display); font-size: 19px; }
.irow { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px 146px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #EFECE5; }
.irow.ihead { border-top: 0; padding: 2px 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6E6C64; }
.irow.out .iname .inp { text-decoration: line-through; color: var(--muted); }
.icell { min-width: 0; }
.iname { display: flex; flex-direction: column; gap: 4px; }
.iname .inp.name { font-weight: 600; }
.iname .inp.desc, .addrow .iname .inp + .inp { min-height: 30px; font-size: 13px; color: var(--ink-2); }
/* An item's description wraps onto as many lines as it needs (usability review U11), not cut off at the box's width. */
.iname textarea.inp.desc { display: block; width: 100%; resize: none; overflow: hidden; field-sizing: content; line-height: 1.35; padding-top: 5px; padding-bottom: 5px; font-family: inherit; }
@supports not (field-sizing: content) { .iname textarea.inp.desc { height: 3.6em; overflow: auto; } }
.iprices { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Three price boxes and a line saying where a shop pays another price made the prices column as wide as all of it in one
   line, and left the name and description 24 px (Liam, 2026-10-30, the Saucy Wings rows). Three boxes is the most it
   has, so the column stops there and the shop-price line wraps under the boxes. */
.iprices { max-width: 276px; }
.iprices .ishop { flex: 1 0 100%; text-align: right; }
.pricein { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.pricein .pl { font-size: 11px; color: var(--muted); }
.isold { display: flex; justify-content: center; }
.iacts { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 2px; }
.lockic { color: var(--warn); display: inline-flex; }
.addrow { background: #FBFAF7; margin: 4px -18px -12px; padding: 12px 18px; border-radius: 0 0 12px 12px; }
/* Make it a Hero item? (ADR-0116): the pop-up after an item with a photo of its own is added or edited. */
.modal.hero { width: min(520px, calc(100vw - 16px)); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
.herothing { display: flex; align-items: center; gap: 12px; }
.herothing p { margin: 0; }
.herolist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
/* Items live in their menus (ADR-0075): each section's Add item and Import items, a section opened by a link
   (#/menus/<menu>?section=<section>), and the import dialogs, found by name, shop or menu. */
.secblock { scroll-margin-top: calc(var(--top-h, 64px) + 20px); }
.secblock.focus { box-shadow: 0 0 0 2px var(--mustard); }
.secempty { padding: 8px 0; border-top: 1px solid #EFECE5; }
.secfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px -18px -12px; padding: 10px 18px; border-top: 1px solid #EFECE5; border-radius: 0 0 12px 12px; background: #FBFAF7; }
.modal.imp { width: min(860px, 96vw); }
.modal.imp .modal-body { padding-top: 0; max-height: min(64vh, 640px); }
.impbody { display: flex; flex-direction: column; gap: 12px; }
.impbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 10px; background: #FFFFFF; border-bottom: 1px solid #EFECE5; }
.impbar .inp.search { flex: 1 1 220px; width: auto; }
.impbar select.inp { flex: 0 1 220px; width: auto; min-width: 0; }
.implist, .impgroup { display: flex; flex-direction: column; gap: 2px; }
.impgroup h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.impgroup h3 .impall { font-weight: 400; margin: 0; }
.impsec h4 { margin: 8px 0 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6E6C64; }
.improw { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.improw:hover { background: var(--bg); }
.improw:has(input:checked) { background: #FFF4D6; }
.improw input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.improw.on { cursor: default; opacity: 0.6; }
.impname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.impprice { flex-shrink: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.impnone { padding: 12px 0; }
.modal-actions { flex-wrap: wrap; align-items: flex-end; }
.impfoot { margin-right: auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.impfoot .field { min-width: 180px; }
.impkeep { display: flex; flex-direction: column; gap: 2px; max-width: 340px; }
.soscroll { max-height: 440px; overflow-y: auto; }
/* An item's Shops card (ADR-0162): sold at every shop or only at those ticked, and a price box for each shop (a box for
   each of its prices), found by name. The tick column is there only while "Only at some shops" is chosen. */
.shopwhere { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.shopwhere label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.shoplist { display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.shophead, .shoprow { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(70px, 96px); align-items: center; gap: 8px; padding: 4px 6px; }
.shoplist.cols-0 :is(.shophead, .shoprow) { grid-template-columns: 28px minmax(0, 1fr); }
.shoplist.cols-1 :is(.shophead, .shoprow) { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.4fr); } /* what a shop charges, from its price list (ADR-0264) */
.shopcharge { font-size: 0.92em; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.shoplist.cols-2 :is(.shophead, .shoprow) { grid-template-columns: 28px minmax(0, 1fr) repeat(2, minmax(64px, 90px)); }
.shoplist.cols-3 :is(.shophead, .shoprow) { grid-template-columns: 28px minmax(0, 1fr) repeat(3, minmax(60px, 84px)); }
.shophead { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6E6C64; }
.shoprow { border-radius: 8px; }
.shoprow:hover { background: var(--bg); }
.shoprow input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.shoprow .inp.money { width: 100%; min-width: 0; }
.shopcard:not(.some) .shoptick { visibility: hidden; }
.shopcard:not(.some) .tagticks { display: none; } /* Tick all per tag (ADR-0324) is for a list being ticked */
.tagticks { gap: 6px; align-items: center; }
.inp.tagname { flex: 0 1 220px; width: 220px; }
.tagsfield .row.wrap { gap: 4px 16px; }
.shopcard.some .shoprow.off .shopname { opacity: 0.55; }
.shopname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shopnone { padding: 8px 6px; }
/* Mark something sold out (Liam, 2026-10-08): a button in the top bar and on Home's Sold out now card, and a dialog of the
   shop's items with a switch each, saved at once. Touch targets are 44 px: the button, the boxes, and each switch (its
   hit area reaches past the 40 by 24 it is drawn). */
.top .oosbtn, .sect-head .oosbtn { min-height: 44px; }
.modal.oos { width: min(600px, calc(100vw - 16px)); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
.modal.oos .modal-body { padding-top: 0; gap: 8px; max-height: min(62vh, 560px); }
.oos .impbar select.inp, .oos .impbar .inp.search { min-height: 44px; }
.oos-only { margin: 0; }
.oos .sorow { min-height: 52px; padding: 4px 0; }
.oos .sorow .sw::before { content: ""; position: absolute; inset: -12px -8px; }
.oos .sw.htmx-request { opacity: 0.6; }
.oos .modal-actions { align-items: center; }
.oos .modal-actions .btn { min-height: 44px; }
.oos-status { flex: 1 1 220px; margin: 0; }
.oos-status.bad { color: var(--bad); font-weight: 600; }
.oos-put { display: contents; }
/* An item's price: its label and amount side by side, even on a phone. */
.prices { display: grid; gap: 8px; }
.pricerow { display: flex; align-items: center; gap: 8px; }
.pricerow .lbl { flex: 1; min-width: 0; }

/* tables and forms */
.tablecard { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6E6C64; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #EFECE5; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.right, .tbl th.right { text-align: right; }
.tbl td.right .btn { margin-left: 4px; }
.tbl .socol { width: 1%; white-space: nowrap; }
.fhead h2 { flex-grow: 0; }
.pname { font-weight: 600; color: var(--ink); text-decoration: none; }
.pname:hover { text-decoration: underline; color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; }
.flabel { font-weight: 600; font-size: 13.5px; }
.hint { color: var(--muted); font-size: 12.5px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.swatches { display: flex; gap: 8px; align-items: center; }
/* A pick (featured item or special): its menu, then the item, and a new item's name and price. */
.pick { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.pickthumb { flex-shrink: 0; display: inline-flex; padding-top: 2px; }
.pickbody { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pickinfo { margin: 0; }
.pickremove { flex-shrink: 0; margin-top: 2px; }
.pickadd { align-items: center; gap: 10px; }
.pickrow { flex-wrap: nowrap; }
.pickrow > select { flex: 1 1 0; min-width: 0; }
.pickrow > select[data-key="pick-menu"] { flex: 0 1 38%; }
@media (max-width: 600px) { .pickrow.stackable { flex-wrap: wrap; } .pickrow.stackable > select { flex: 1 1 100%; } }
.newpick { flex-wrap: nowrap; }
.newpick > input { flex: 1 1 0; min-width: 0; }
.newpick > input.money { flex: 0 0 90px; }
.daytabs { margin: 6px 0 2px; gap: 6px; }
.daytabs input[type="date"] { width: auto; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #FFFFFF; background: var(--c); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch.custom { position: relative; overflow: hidden; background: conic-gradient(#F6D44A, #FF5A1F, #C8102E, #7C3AED, #29E6FF, #7CFF6B, #F6D44A); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
h2.mt { margin-top: 8px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.tvwide { max-width: 760px; }
/* A screen's page: the TV now and after you publish beside the controls (usability review, finding 6). With room for it
   (a desk, a till, a tablet on its side) they are a column on the right and "After you publish" stays in view as the
   controls scroll. A tablet upright or a phone has "On the TV now" on top and "After you publish" as a small strip stuck
   to the top of the screen as the controls scroll; one on its side, too short for that, leaves both where they are.
   The page is .screenwork: .screenside (the pictures, in .cmp when there is something to publish) and .screenmain (the
   tabs and the controls). */
.screenwork { display: flex; flex-direction: column; gap: 22px; }
.screenside, .screenside .cmp { display: contents; }
.screenmain { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
@media (min-width: 981px) {
  .screenwork { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 20px; align-items: start; }
  .screenside { display: flex; flex-direction: column; gap: 14px; grid-column: 2; grid-row: 1; align-self: stretch; }
  .screenmain { grid-column: 1; grid-row: 1; }
  .screenmain .cols2 { grid-template-columns: minmax(0, 1fr); }
  .screenwork .after { position: sticky; top: calc(var(--top-h, 64px) + 20px); z-index: 5; max-height: calc(100vh - var(--top-h, 64px) - 40px); overflow-y: auto; }
}
@media (min-width: 1240px) {
  .screenwork { grid-template-columns: minmax(0, 1fr) 360px; }
}
/* A short screen (a till, a laptop): the card is small, a picture beside its words, so it stays above the screen view's
   panel in the bottom corner (400 to 460 high, open) and keeps its button clear of it. A desk 900 high has room for both. */
@media (min-width: 981px) and (max-height: 899px) {
  .screenwork .after { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-areas: "head head" "pic list" "pic act"; align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 12px; }
  .screenwork .after > .sect-head { grid-area: head; flex-wrap: wrap; row-gap: 4px; }
  .screenwork .after > .sect-head h2 { font-size: 15px; }
  .screenwork .after > .tv { grid-area: pic; align-self: start; }
  .screenwork .after > .changes { grid-area: list; align-self: end; padding-left: 0; list-style: none; min-width: 0; }
  .screenwork .after > .changes li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .screenwork .after > .changes li:nth-child(n + 2) { display: none; }
  .screenwork .after > .row, .screenwork .after > [data-key="publish-where"] { grid-area: act; align-self: start; margin: 0; }
  .screenwork .after .btn { width: 100%; min-height: 34px; padding: 0 8px; font-size: 12.5px; }
  .screenwork .after .btn svg { display: none; }
}
@media (max-width: 980px) {
  .screenwork .after { position: sticky; top: 8px; z-index: 25; display: grid; grid-template-columns: 152px minmax(0, 1fr) auto; grid-template-areas: "pic head act" "pic list act"; align-items: center; column-gap: 14px; row-gap: 4px; padding: 10px 14px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); }
  .screenwork .after > .sect-head { grid-area: head; align-self: end; }
  .screenwork .after > .sect-head h2 { font-size: 15px; }
  .screenwork .after > .tv { grid-area: pic; align-self: start; }
  .screenwork .after > .changes { grid-area: list; align-self: start; padding-left: 0; list-style: none; min-width: 0; }
  .screenwork .after > .changes li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .screenwork .after > .changes li:nth-child(n + 2) { display: none; }
  .screenwork .after > .row, .screenwork .after > [data-key="publish-where"] { grid-area: act; margin: 0; }
  /* One Publish (ADR-0251): the words that point to the Publish menu stand where the button stood, so the strip stays as high. */
  .screenwork .after > [data-key="publish-where"] { font-size: 12px; line-height: 1.3; }
  /* A link to a part of the page, or a control reached with the keyboard, comes to rest below the strip. */
  html:has(.screenwork .after) { scroll-padding-top: 130px; }
}
@media (max-width: 600px) {
  .screenwork .after { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "pic head" "pic list" "pic act"; padding: 8px 12px; row-gap: 3px; }
  .screenwork .after > .sect-head h2 { font-size: 14px; }
  .screenwork .after .chip { height: 22px; font-size: 11.5px; }
  .screenwork .after .btn { width: 100%; min-height: 36px; padding: 0 10px; font-size: 13px; }
  html:has(.screenwork .after) { scroll-padding-top: 150px; }
}
@media (max-width: 980px) and (max-height: 560px) {
  .screenwork .after { position: static; box-shadow: none; }
  html:has(.screenwork .after) { scroll-padding-top: 80px; }
}
.changes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rules li { padding-left: 14px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); }

/* publish */
/* The Publish menu on every page (View edits, Publish now) and the list of edits to undo on Review and publish. */
.pubmenu { position: relative; }
.pubmenu > summary { cursor: pointer; list-style: none; }
.pubmenu > summary::-webkit-details-marker { display: none; }
.pubdrop { width: min(320px, 88vw); padding: 6px; }
/* The dashboard's own pop-up rules (dash.css: .pop, .popbox) place it there; the live demo has none, so it is placed here. */
.pubdrop:not(.popbox) { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2); }
/* On a wide screen the top bar is one row of one height whatever its buttons say: the shop's name gives way, so the bar
   never wraps to a second row as Publish changes gains a count (the page below it would move under a tap). */
@media (min-width: 981px) {
  .demotop { flex-wrap: nowrap; }
  .demotop .demostrip { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; white-space: nowrap; }
  .demotop .demostrip > :not(.demoname), .demotop .oosbtn, .demotop .pubmenu { flex: none; }
  .demotop .demoname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* On a narrow screen, under the whole top bar with a margin each side, so it is never off the side of the screen. */
@media (max-width: 980px) {
  .demotop { position: relative; }
  .demotop:has(.pubmenu[open]) { z-index: 70; } /* over the screen view (60) while the menu is open */
  .demotop .pubmenu { position: static; }
  .pubdrop:not(.popbox) { left: 16px; right: 16px; width: auto; top: calc(100% - 4px); }
}
a.whoit { text-decoration: none; color: inherit; }
.pubdrop .whoit[disabled] { opacity: 0.5; cursor: default; }
.pubdrop .whoit[disabled]:hover { background: none; }
.pubkeep { padding: 4px 10px 8px; font-size: 13px; }
.pubfoot { justify-content: flex-end; margin: 10px 0 18px; }
.edgroup { margin: 16px 0 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.edits { list-style: none; margin: 0; padding: 0; }
.edits li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.edtext { min-width: 0; overflow-wrap: anywhere; }
.pubrow { padding: 16px 18px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; gap: 18px; align-items: center; }
.pubpick { display: flex; gap: 10px; align-items: flex-start; }
.pubtvs { display: flex; align-items: center; gap: 8px; }
.pubtvs figure { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pubtvs figcaption { font-size: 11.5px; color: var(--muted); text-align: center; }
.allgood { display: flex; gap: 16px; align-items: center; }
.allgood > .ic { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.livelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.livelist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EFECE5; }
.livelist li:last-child { border-bottom: 0; }

/* schedules (a screen's Menu and times, ADR-0178), themes, locations */
.loc-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.schedrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.schedrows li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.schedrows li span { flex-grow: 1; }
.addsched > summary { cursor: pointer; font-weight: 600; color: #1D4ED8; }
/* Settings → Seasonal: each screen of the shop and the effects it shows, the one picked marked (ADR-0178) */
.fxscreens { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.fxscreens li.on > a { font-weight: 700; }
.schedform { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.daychk { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 13px; cursor: pointer; }
/* the Specials list (ADR-0099) */
.splist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sprow { padding: 10px; border-radius: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.sptop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spmain { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spname { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sptools { gap: 0; flex-shrink: 0; }
.sptools form, .sptoday, .sphero { margin: 0; }
/* Sold out on the row of a special or a Hero (ADR-0147): the switch an item on a menu has, with "Sold out" beside it and
   red while it is on. Its hit area reaches past the 40 by 24 it is drawn, for a thumb (as in the Mark something sold out
   dialog). */
.spsold { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.spsoldtxt { font-size: 12.5px; color: var(--muted); }
.spsold.out .spsoldtxt { color: var(--red); font-weight: 600; }
.spsold .sw::before { content: ""; position: absolute; inset: -12px -8px; }
.spsold .sw.htmx-request { opacity: 0.6; }
.spedit > summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: #1D4ED8; }
.spform { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.spwins { display: flex; flex-direction: column; gap: 8px; }
.spform:not(:has(input[name=base][value=schedule]:checked)) .spwins { display: none; }
.spwin { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; margin: 0; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.spwin .row.wrap { flex-wrap: wrap; align-items: center; gap: 6px; }
.spwin .inp { width: auto; flex: 0 1 160px; }
.spmore > summary { cursor: pointer; font-size: 13px; color: #1D4ED8; margin-bottom: 8px; }
.picfold > summary { cursor: pointer; }
.picfold[open] > summary { margin-bottom: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spscreens { padding-left: 24px; }
.spform:not(:has(input[name=where][value=only]:checked)) .spscreens { display: none; }
/* Only at these shops (ADR-0244): the shops by brand, each brand ticked in one press; the screens by shop. */
.spshopspick { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.spform:not(:has(input[name=where][value=shops]:checked)) .spshopspick { display: none; }
.spgrouphead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.spscreens .spgrouphead { margin-top: 4px; }
.spfrom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.spfrom > span { flex: 1 1 200px; }
/* The two switches over the list (ADR-0139): a button with its sentence on it, which wraps on a phone. */
.swrow { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.swrow .hint { flex: 1 1 260px; min-width: 0; }
.swrow .btn { white-space: normal; text-align: left; justify-content: flex-start; line-height: 1.3; padding-top: 7px; padding-bottom: 7px; max-width: 100%; }
/* A page's one-line lead under its title, and the fold that holds the longer explanation (usability review, ADR-0218):
   the page shows what it is for in a sentence and keeps the rest a press away. */
.lead { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: -6px 0 0; }
.howto { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.howto > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14px; color: #1D4ED8; }
.howto[open] > summary { border-bottom: 1px solid var(--line); }
.howto > p, .howto > div { padding: 12px 16px 14px; font-size: 14px; line-height: 1.55; }
.howto a { white-space: nowrap; } /* a link that wraps has no middle to tap */
.swrow .swtext { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.swrow .swtext .hint { flex: none; }
/* Assign to a slide (ADR-0139): the dialog that puts a special or a Hero in a Smart box of a slide. The slide is drawn as
   the TV will show it, and each Smart box is a button over the picture, in the slide's own pixels (dash.js pinLayer). */
.banner.ok { background: var(--ok-bg); border-color: #A9D9BC; color: var(--ok); }
.banner.ok > .ic { color: var(--ok); }
.spplaces:empty { display: none; }
.modal.assign { width: min(760px, 96vw); }
.assignwho { margin: 0; }
.assignpic .assigntv { max-width: 100%; }
.assigntv.tall { width: min(100%, 250px); aspect-ratio: 9 / 16; margin: 0 auto; }
.pin-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.pin-box { position: absolute; pointer-events: auto; cursor: pointer; margin: 0; padding: 0; border: 0; border-radius: 14px; background: rgba(255, 194, 51, 0.18); outline: 10px dashed var(--mustard); outline-offset: -10px; }
.pin-box:hover { background: rgba(255, 194, 51, 0.38); }
.pin-box.mine { background: rgba(52, 209, 127, 0.24); outline: 10px solid #34D17F; }
.pin-box.other { background: rgba(96, 165, 250, 0.24); outline: 10px solid #60A5FA; }
.pin-box.chosen { outline: 18px solid #FFFFFF; outline-offset: -18px; box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.6); }
.pin-box.locked { cursor: not-allowed; background: rgba(120, 118, 110, 0.5); outline: 10px dotted #BDBAAE; }
.pin-box:focus-visible { outline: 18px solid #FFFFFF; outline-offset: -18px; }
.pin-tag { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 28px); padding: 6px 18px; border-radius: 10px; background: var(--ink); color: #FFFFFF; font: 700 40px/1.25 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assignkey { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.assignkey li { display: inline-flex; align-items: center; gap: 6px; }
.assignkey i { width: 16px; height: 12px; border-radius: 3px; border: 2px dashed var(--mustard); background: rgba(255, 194, 51, 0.25); }
.assignkey i.mine { border: 2px solid #34D17F; background: rgba(52, 209, 127, 0.3); }
.assignkey i.other { border: 2px solid #60A5FA; background: rgba(96, 165, 250, 0.3); }
.assignboxes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.assignbox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.assignbox .btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.assignbox .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.assignact { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px; background: var(--bg); }
.assignact h3 { margin: 0; }
.assignplaces ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.assignplaces li { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.assignplaces form { margin: 0; }
/* Where a special or a Hero is, on its row, and Your Smart Special Boxes / Your Smart Hero Boxes with Swap (ADR-0144): a button for
   each box it is in, a slide drawn with its boxes marked, and under it each box with what it holds. */
.spplace { margin-top: 4px; }
.spplace > summary { cursor: pointer; color: var(--ok); font-size: 13px; padding: 6px 0; min-height: 32px; box-sizing: border-box; }
.placeshots { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.placeshots li { display: flex; flex-direction: column; gap: 4px; max-width: 340px; width: 100%; }
.boxslides { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.boxslide { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); gap: 8px 16px; align-items: start; padding: 12px; border-radius: 10px; background: var(--bg); }
.boxhead { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.boxpic .assigntv { max-width: 100%; }
.boxlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.boxrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 10px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--line-2); }
.boxrow.on, .boxrow.later { border-color: #A9D9BC; }
.boxname { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.boxitem { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.boxitem strong { overflow-wrap: anywhere; }
.boxstate { font-size: 12.5px; color: var(--muted); }
.boxstate.on { color: var(--ok); font-weight: 600; }
.boxstate.later { color: var(--info); font-weight: 600; }
.boxstate.off { color: var(--warn); }
.boxrow .btn { white-space: normal; text-align: center; }
.boxmembers { grid-column: 1 / -1; margin-top: 4px; }
.boxmembers > summary { cursor: pointer; font-size: var(--small, .9rem); color: var(--muted); padding: 4px 0; }
.boxmembers .boxslides { margin-top: 8px; border-left: 3px solid var(--line); padding-left: 10px; }
.boxmembers .boxslide { background: var(--card, var(--bg)); }
@media (max-width: 720px) { .boxslide { grid-template-columns: minmax(0, 1fr); } .boxrow { grid-template-columns: minmax(0, 1fr); } }
/* Swap Special on this box: the specials as big buttons to tap, one tap putting one in the box. */
.swaplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.swaplist form { margin: 0; }
.swapbtn { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #FFFFFF; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.swapbtn:hover { border-color: var(--ink); background: var(--bg); }
.swapbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.swapitem.here .swapbtn { border-color: #34D17F; background: var(--ok-bg); }
.swapname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.swapname strong { overflow-wrap: anywhere; }
.swapline { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.swapgo { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #1D4ED8; }
.swapbtn.off { cursor: default; opacity: 0.7; }
.swapbtn.off:hover { border-color: var(--line-2); background: #FFFFFF; }
.swapheroes > summary { padding: 4px 0 8px; }
.tpl-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tplcard { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tv-slot { aspect-ratio: 16 / 9; border-radius: 8px; background: #0E0E10; }
.tpl-meta { display: flex; align-items: flex-start; gap: 8px; }
.tpl-meta h2 { font-size: 16px; }
.tpl-meta p.small { margin: 2px 0; }
.tplcard > a { display: block; border-radius: 8px; }

/* template picker: a small drawing of each layout */
.tplpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tplopt { display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.tplopt:hover { border-color: var(--ink); }
.tplopt[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.wf { display: grid; aspect-ratio: 16 / 9; gap: 2px; padding: 3px; border-radius: 4px; background: #1F2733; }
/* An upright TV's drawing (design.js standUp), as tall as it is in the picker. */
.wf.tall { aspect-ratio: 9 / 16; width: 58%; align-self: center; }
.wf > span { border-radius: 2px; min-width: 0; min-height: 0; }
/* A drawn template (ADR-0086) drawn small: each of its boxes where it sits on its canvas (templates.js drawnSketch). */
.wfd { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #1F2733; }
.wfd.tall { aspect-ratio: 9 / 16; width: 58%; align-self: center; }
.wfd > span { position: absolute; border-radius: 2px; }
.wfd-shape { background: rgba(255,255,255,.12); }
.wfd-icon { background: radial-gradient(circle at 50% 50%, #F6D44A 0 38%, transparent 40%); }
/* Your templates and a template's page (templates.js) */
.tpnote { margin: 0 0 6px; }
.tpscreens li, .tpversions li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wf-head { background: rgba(255,255,255,.28); }
.wf-head.pics { background: radial-gradient(circle at 6% 50%, #F6D44A 0 9%, transparent 10%), radial-gradient(circle at 94% 50%, #F6D44A 0 9%, transparent 10%), rgba(255,255,255,.28); }
.wf-menu { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px); }
.wf-menu.big { background: linear-gradient(#F6D44A, #F6D44A) top / 60% 3px no-repeat, repeating-linear-gradient(to bottom, transparent 0 6px, rgba(255,255,255,.4) 6px 8px, transparent 8px 10px); }
.wf-menu.panel { border-top: 3px solid #F6D44A; background-color: rgba(255,255,255,.08); }
.wf-feat { background: radial-gradient(circle at 50% 42%, #F6D44A 0 24%, transparent 25%), rgba(246,212,74,.22); }
.wf-feat.wide { background: radial-gradient(circle at 18% 50%, #F6D44A 0 20%, transparent 21%), rgba(246,212,74,.22); }
.wf-tile { background: radial-gradient(circle at 50% 40%, #F6D44A 0 22%, transparent 23%), rgba(255,255,255,.12); }
.wf-tile.num { background: radial-gradient(circle at 20% 22%, #FFFFFF 0 10%, transparent 11%), radial-gradient(circle at 50% 50%, #F6D44A 0 22%, transparent 23%), rgba(255,255,255,.12); }
.wf-text { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 3px, transparent 3px 7px); }
.wf-text.big { background: linear-gradient(#F6D44A, #F6D44A) 10% 30% / 70% 14% no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 10% 62% / 50% 10% no-repeat; }
.wf-text.title { background: linear-gradient(#F6D44A, #F6D44A) 0 45% / 80% 22% no-repeat; }
.wf-pic { background: radial-gradient(circle at 50% 50%, #F6D44A 0 34%, transparent 35%); }
/* Your Artwork: a picture of its own over the whole screen, or shown whole with the background round it. */
.wf-art { background: radial-gradient(circle at 74% 28%, #FFFFFF 0 7%, transparent 8%), linear-gradient(155deg, transparent 58%, rgba(31,39,51,.5) 59%), linear-gradient(135deg, #F6D44A, #E8743B); }
.wf-art.whole { background: radial-gradient(circle at 66% 36%, #FFFFFF 0 5%, transparent 6%), linear-gradient(135deg, #F6D44A, #E8743B) 50% 50% / 56% 66% no-repeat, rgba(255,255,255,.08); }
.wf-rule { background: #F6D44A; }
.wf-menu.fill { background: repeating-linear-gradient(to bottom, rgba(31,39,51,.55) 0 2px, transparent 2px 5px), #F6D44A; }
.wf-menu.thumb { background: repeating-linear-gradient(to bottom, transparent 0 1px, #F6D44A 1px 4px, transparent 4px 7px) 0 0 / 5px 100% no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 2px 4px, transparent 4px 7px) 7px 0 / 100% 100% no-repeat; }
.wf-menu.thumb.large { background: repeating-linear-gradient(to bottom, transparent 0 1px, #F6D44A 1px 7px, transparent 7px 10px) 0 0 / 8px 100% no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 3px 5px, transparent 5px 10px) 10px 0 / 100% 100% no-repeat; }
.wf-menu.thumb.round { border-radius: 0; }
.wf-menu.noprice { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 0 0 / 60% 100% no-repeat; background-color: rgba(255,255,255,.08); }
.wf-card { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.35) 0 2px, transparent 2px 5px) 0 6px / 100% 100% no-repeat, rgba(255,255,255,.1); }
.wf-card.bar { background: linear-gradient(#F6D44A, #F6D44A) 0 0 / 100% 4px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.35) 0 2px, transparent 2px 5px) 0 7px / 100% 100% no-repeat, rgba(255,255,255,.1); }
.wf-card.line { background: linear-gradient(#F6D44A, #F6D44A) 2px 3px / 70% 2px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.35) 0 2px, transparent 2px 5px) 0 8px / 100% 100% no-repeat, rgba(255,255,255,.1); }
.wf-card.pic { background-image: radial-gradient(circle at 18% 60%, #F6D44A 0 13%, transparent 14%), linear-gradient(#F6D44A, #F6D44A), repeating-linear-gradient(to bottom, rgba(255,255,255,.35) 0 2px, transparent 2px 5px); background-position: 0 0, 0 0, 40% 7px; background-size: 100% 100%, 100% 4px, 60% 100%; background-repeat: no-repeat; }
.wf-card.pic:not(.bar) { background-size: 100% 100%, 0 0, 60% 100%; }
.wf-deal { background: #F6D44A; }
.wf-arrow { background: #F6D44A; clip-path: polygon(0 30%, 100% 50%, 0 70%); }
.wf-grid { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 0 6px / 100% 100% no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 0 0 / 100% 3px no-repeat; }
.wf-grid.bar { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 0 6px / 100% 100% no-repeat, linear-gradient(#F6D44A, #F6D44A) 0 0 / 100% 4px no-repeat; }
.wf-grid.striped { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.16) 0 4px, transparent 4px 8px) 0 6px / 100% 100% no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 0 0 / 100% 3px no-repeat; }
.wf-grid.striped.bar { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.16) 0 4px, transparent 4px 8px) 0 6px / 100% 100% no-repeat, linear-gradient(#F6D44A, #F6D44A) 0 0 / 100% 4px no-repeat; }
.wf-centred { background: linear-gradient(#F6D44A, #F6D44A) 50% 0 / 40% 3px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.45) 0 2px, transparent 2px 5px) 50% 6px / 60% 100% no-repeat; }
.wf-centred.under { background: linear-gradient(#F6D44A, #F6D44A) 50% 0 / 40% 3px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.45) 0 2px, rgba(246,212,74,.7) 2px 4px, transparent 4px 7px) 50% 6px / 40% 100% no-repeat; }
.wf-shelf { border-bottom: 1px solid rgba(255,255,255,.3); background: repeating-linear-gradient(to right, rgba(255,255,255,.4) 0 70%, transparent 70% 100%) 0 30% / 33.3% 2px repeat-x, repeating-linear-gradient(to right, rgba(255,255,255,.4) 0 70%, transparent 70% 100%) 0 70% / 33.3% 2px repeat-x; }
.wf-shelf.ontop { background: linear-gradient(#F6D44A, #F6D44A) 0 0 / 30% 3px no-repeat, repeating-linear-gradient(to right, rgba(255,255,255,.4) 0 70%, transparent 70% 100%) 0 45% / 33.3% 2px repeat-x, repeating-linear-gradient(to right, rgba(255,255,255,.4) 0 70%, transparent 70% 100%) 0 80% / 33.3% 2px repeat-x; }
.wf-shelf.pic { background: repeating-linear-gradient(to right, #F6D44A 0 4px, transparent 4px 6px, rgba(255,255,255,.4) 6px 70%, transparent 70% 100%) 0 30% / 33.3% 4px repeat-x, repeating-linear-gradient(to right, #F6D44A 0 4px, transparent 4px 6px, rgba(255,255,255,.4) 6px 70%, transparent 70% 100%) 0 75% / 33.3% 4px repeat-x; }
.wf-shelf.pic.ontop { background: linear-gradient(#F6D44A, #F6D44A) 0 0 / 30% 3px no-repeat, repeating-linear-gradient(to right, #F6D44A 0 4px, transparent 4px 6px, rgba(255,255,255,.4) 6px 70%, transparent 70% 100%) 0 50% / 33.3% 4px repeat-x, repeating-linear-gradient(to right, #F6D44A 0 4px, transparent 4px 6px, rgba(255,255,255,.4) 6px 70%, transparent 70% 100%) 0 85% / 33.3% 4px repeat-x; }
.wf-label { background: linear-gradient(#F6D44A, #F6D44A) 0 20% / 80% 3px no-repeat; }
.wf-panel { background: radial-gradient(circle at 45% 45%, #FFFFFF 0 22%, transparent 23%), #F6D44A; }
.wf-panel.angled { clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.wf-panel.angled.flip { clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%); }
.wf-panel.curved { clip-path: ellipse(100% 80% at 0 50%); }
.wf-panel.curved.flip { clip-path: ellipse(100% 80% at 100% 50%); }
.wf-rank { background: radial-gradient(circle at 8% 50%, #F6D44A 0 7%, transparent 8%), radial-gradient(circle at 26% 50%, rgba(255,255,255,.7) 0 10%, transparent 11%), linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 45% 50% / 30% 3px no-repeat, rgba(255,255,255,.1); }
.wf-tile.first { box-shadow: inset 0 0 0 1px #F6D44A; }
.wf-tile.low { margin-top: 18%; }
.wf-tick { background: repeating-linear-gradient(to right, rgba(31,39,51,.6) 0 8px, transparent 8px 11px) 0 50% / 100% 3px no-repeat, #F6D44A; }
.wf-tick.still { background: linear-gradient(rgba(31,39,51,.6), rgba(31,39,51,.6)) 50% 50% / 50% 3px no-repeat, #F6D44A; }
/* list style samples: a heading and three items with prices */
.smp { display: flex; flex-direction: column; justify-content: center; gap: 4px; aspect-ratio: 16 / 9; padding: 6px 8px; border-radius: 4px; background: #1F2733; }
.smp-h { display: flex; height: 7px; }
.smp-h i { width: 55%; background: rgba(255,255,255,.75); border-radius: 1px; }
.smp-r { display: flex; justify-content: space-between; align-items: center; gap: 6px; height: 7px; padding: 1px 2px; border-bottom: 1px solid rgba(255,255,255,.25); }
.smp-r i { width: 50%; height: 3px; background: rgba(255,255,255,.55); }
.smp-r b { width: 16%; height: 3px; background: rgba(255,255,255,.8); }
.smp[data-k="headstyle"][data-v="bar"] .smp-h { padding: 2px 3px; height: 9px; background: #F6D44A; border-radius: 2px; }
.smp[data-k="headstyle"][data-v="bar"] .smp-h i { background: #1F2733; }
.smp[data-k="headstyle"][data-v="line"] .smp-h { border-bottom: 2px solid #F6D44A; padding-bottom: 2px; height: 9px; }
.smp[data-k="headstyle"][data-v="tag"] .smp-h i { width: 45%; height: 9px; border-radius: 9px; background: #F6D44A; }
.smp[data-k="rowstyle"][data-v="none"] .smp-r { border: 0; }
.smp[data-k="rowstyle"][data-v="dots"] .smp-r { border-bottom: 1px dotted rgba(255,255,255,.6); }
.smp[data-k="rowstyle"][data-v="stripes"] .smp-r { border: 0; }
.smp[data-k="rowstyle"][data-v="stripes"] .smp-r:nth-child(odd) { background: rgba(255,255,255,.14); }
.smp[data-k="pricestyle"][data-v="accent"] .smp-r b { background: #F6D44A; }
.smp[data-k="pricestyle"][data-v="pill"] .smp-r b { height: 6px; border-radius: 6px; background: #F6D44A; }
.smp[data-k="spacing"][data-v="compact"] { gap: 1px; }
.smp[data-k="spacing"][data-v="roomy"] { gap: 7px; }
.smp[data-k="spacing"][data-v="roomy"] .smp-r:last-child { display: none; }
.finetune { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.finetune > summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.finetune[open] > summary { margin-bottom: 12px; }
.smp[data-k="header"] { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 9px 1fr 1fr 1fr; gap: 3px; }
.smp[data-k="header"] .smp-h { grid-column: 1 / -1; height: 9px; background: rgba(255,255,255,.18); padding: 2px 3px; }
.smp[data-k="header"] .smp-h i { width: 40%; }
.smp[data-k="header"] .smp-r { grid-column: 1 / -1; }
.smp[data-k="header"][data-v="centred"] .smp-h { justify-content: center; }
.smp[data-k="header"][data-v="compact"] { grid-template-rows: 5px 1fr 1fr 1fr; }
.smp[data-k="header"][data-v="compact"] .smp-h { height: 5px; padding: 1px 3px; }
.smp[data-k="header"][data-v="side"] { grid-template-columns: 30% 1fr; grid-template-rows: 1fr 1fr 1fr; }
.smp[data-k="header"][data-v="side"] .smp-h { grid-column: 1; grid-row: 1 / -1; height: auto; align-items: center; justify-content: center; }
.smp[data-k="header"][data-v="side"] .smp-h i { width: 70%; height: 4px; }
.smp[data-k="header"][data-v="side"] .smp-r { grid-column: 2; }
.smp[data-k="header"][data-v="off"] { grid-template-rows: 1fr 1fr 1fr; }
.smp[data-k="header"][data-v="off"] .smp-h { display: none; }
.wf-tile.cap { background: linear-gradient(#F6D44A, #F6D44A) 50% 88% / 80% 18% no-repeat, radial-gradient(circle at 50% 40%, #F6D44A 0 22%, transparent 23%), rgba(255,255,255,.12); }
.wf-photo { margin: 2px; background: radial-gradient(circle at 50% 40%, #F6D44A 0 24%, transparent 25%) 0 0 / 100% 80% no-repeat, #F2F0EA; }
.wf-photo.tilt { transform: rotate(-4deg); }
.wf-photo.tilt:nth-child(odd) { transform: rotate(4deg); }
.wf-photo.themed { background: radial-gradient(circle at 50% 40%, #F6D44A 0 24%, transparent 25%) 0 0 / 100% 80% no-repeat, rgba(255,255,255,.14); }
.wf-page { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 6px 4px / calc(100% - 12px) calc(100% - 8px) no-repeat, rgba(255,255,255,.1); }
.wf-page.two { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 4px 4px / 42% calc(100% - 8px) no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 56% 4px / 40% calc(100% - 8px) no-repeat, rgba(255,255,255,.1); }
.wf-page.corner { background-image: linear-gradient(315deg, #F6D44A 0 12%, transparent 12%), repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px); background-size: 100% 100%, calc(100% - 12px) calc(100% - 8px); background-position: 0 0, 6px 4px; background-repeat: no-repeat; }
.wf-page.ribbon { box-shadow: inset -10px 0 0 -6px #F6D44A; }
.wf-note { position: relative; margin: 3px; background: repeating-linear-gradient(to bottom, rgba(31,39,51,.45) 0 2px, transparent 2px 5px) 4px 6px / calc(100% - 8px) calc(100% - 10px) no-repeat, #FFF1A6; }
.wf-note::before { content: ''; position: absolute; top: -2px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #D23B3B; }
.wf-note.tape::before { top: -3px; width: 14px; height: 4px; margin-left: -7px; border-radius: 0; background: rgba(255,255,255,.75); }
.wf-note.pastel:nth-child(5n+3) { background-color: #FFD3DE; }
.wf-note.pastel:nth-child(5n+4) { background-color: #CFEAFF; }
.wf-note.pastel:nth-child(5n+5) { background-color: #D7F5CC; }
.wf-note.accent { background-color: #F6D44A; }
.wf-note.tilt { transform: rotate(-3deg); }
.wf-note.tilt:nth-child(odd) { transform: rotate(2.5deg); }
.wf-receipt { margin: 0 3px; background: repeating-linear-gradient(to bottom, rgba(31,39,51,.45) 0 2px, transparent 2px 5px) 5px 7px / calc(100% - 10px) calc(100% - 14px) no-repeat, #F7F5EF;
  clip-path: polygon(0 3px, 12.5% 0, 25% 3px, 37.5% 0, 50% 3px, 62.5% 0, 75% 3px, 87.5% 0, 100% 3px, 100% calc(100% - 3px), 87.5% 100%, 75% calc(100% - 3px), 62.5% 100%, 50% calc(100% - 3px), 37.5% 100%, 25% calc(100% - 3px), 12.5% 100%, 0 calc(100% - 3px)); }
.wf-receipt.code { background: repeating-linear-gradient(to right, #1F2733 0 1px, transparent 1px 3px) 50% calc(100% - 6px) / 70% 6px no-repeat, repeating-linear-gradient(to bottom, rgba(31,39,51,.45) 0 2px, transparent 2px 5px) 5px 7px / calc(100% - 10px) calc(100% - 24px) no-repeat, #F7F5EF; }
.wf-receipt.tilt { transform: rotate(-2deg); }
.wf-receipt.tilt:nth-child(odd) { transform: rotate(1.5deg); }
.wf-mast.paper { background: linear-gradient(#F6D44A, #F6D44A) 50% 30% / 60% 30% no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 0 100% / 100% 2px no-repeat, linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)) 0 78% / 100% 1px no-repeat; }
.wf-story { background: linear-gradient(#F6D44A, #F6D44A) 0 0 / 70% 14% no-repeat, radial-gradient(circle at 50% 55%, #F6D44A 0 24%, transparent 25%) 0 22% / 100% 60% no-repeat, rgba(255,255,255,.12); }
.wf-menu.ruled { box-shadow: -3px 0 0 -1px rgba(255,255,255,.55); }
.wf-rail { align-self: center; height: 3px; border-radius: 2px; background: #B9B9B9; }
.wf-sign { position: relative; margin: 6px 3px 2px; border-radius: 3px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 2px, transparent 2px 5px) 4px 5px / calc(100% - 8px) calc(100% - 9px) no-repeat, rgba(255,255,255,.14); }
.wf-sign::before, .wf-sign::after { content: ''; position: absolute; top: -6px; width: 1px; height: 6px; background: #C9A26B; }
.wf-sign::before { left: 20%; }
.wf-sign::after { right: 20%; }
.wf-sign.wood { background-color: #8E5B2C; }
.wf-sign.accent { background-color: #F6D44A; }
.wf-sign.square { border-radius: 0; }
.wf-sign.arched { border-radius: 50% 50% 3px 3px / 8px 8px 3px 3px; }
.wf-sign.swing { transform: rotate(-3deg); }
.wf-sign.swing:nth-child(odd) { transform: rotate(2.5deg); }
.wf-awning { --aw: #F6D44A; background: repeating-linear-gradient(90deg, var(--aw) 0 7px, #F7F5EF 7px 14px); }
.wf-awning.red { --aw: #D23B3B; }
.wf-awning.green { --aw: #2E9B57; }
.wf-awning.blue { --aw: #3A78C9; }
.wf-awning.black { --aw: #111111; }
.wf-awning.scallop { -webkit-mask: radial-gradient(3.5px 3px at 50% 0, #000 98%, transparent) 0 100% / 7px 3px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 3px) no-repeat; mask: radial-gradient(3.5px 3px at 50% 0, #000 98%, transparent) 0 100% / 7px 3px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 3px) no-repeat; }
.wf-awning.zigzag { -webkit-mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) 0 100% / 7px 4px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 4px) no-repeat; mask: conic-gradient(from -45deg at 50% 100%, #000 90deg, transparent 0) 0 100% / 7px 4px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 4px) no-repeat; }
.wf-menu.num { background: radial-gradient(circle at 3px 3px, #F6D44A 0 2px, transparent 2.5px) 0 0 / 7px 5px repeat-y, repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 8px 0 / calc(100% - 8px) 100% no-repeat; }
.wf-menu.num.square { background: repeating-linear-gradient(to bottom, #F6D44A 0 3px, transparent 3px 5px) 1px 0 / 4px 100% no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 8px 0 / calc(100% - 8px) 100% no-repeat; }
.wf-menu.num.plain { background: repeating-linear-gradient(to bottom, #F6D44A 0 2px, transparent 2px 5px) 0 0 / 4px 100% no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.4) 0 2px, transparent 2px 5px) 7px 0 / calc(100% - 7px) 100% no-repeat; }
.wf-menu.num.boxed { box-shadow: inset 0 0 0 1.5px #F6D44A; border-top: 4px solid #F6D44A; background-origin: content-box; padding: 2px; }
.wf-ptag { margin: 3px; background: radial-gradient(circle at 34% 50%, #F6D44A 0 14%, transparent 15%), linear-gradient(rgba(31,39,51,.55), rgba(31,39,51,.55)) 70% 60% / 30% 16% no-repeat, #E6CC97; clip-path: polygon(0 26%, 14% 0, 100% 0, 100% 100%, 14% 100%, 0 74%); transform: rotate(-2deg); }
.wf-ptag:nth-child(odd) { transform: rotate(1.5deg); }
.wf-ptag:not(.pic) { background: linear-gradient(rgba(31,39,51,.55), rgba(31,39,51,.55)) 60% 60% / 46% 16% no-repeat, #E6CC97; }
.wf-ptag.white { background-color: #FBFAF5; }
.wf-ptag.accent { background-color: #F6D44A; }
.wf-ptag.accent.pic { background-image: radial-gradient(circle at 34% 50%, #FFFFFF 0 14%, transparent 15%), linear-gradient(rgba(31,39,51,.55), rgba(31,39,51,.55)); }
.wf-ptag.ticket { clip-path: none; -webkit-mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 3px, #000 3.5px) right / 51% 100% no-repeat; mask: radial-gradient(circle at 0 50%, transparent 3px, #000 3.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 3px, #000 3.5px) right / 51% 100% no-repeat; }
.wf-ptag.burst { clip-path: polygon(50% 0, 61% 14%, 79% 9%, 79% 27%, 97% 32%, 88% 50%, 97% 68%, 79% 73%, 79% 91%, 61% 86%, 50% 100%, 39% 86%, 21% 91%, 21% 73%, 3% 68%, 12% 50%, 3% 32%, 21% 27%, 21% 9%, 39% 14%); }
.wf-pills { background: repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 9px, transparent 9px 11px) 0 4px / 100% 3px no-repeat, repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 13px, transparent 13px 15px) 0 9px / 100% 3px no-repeat, repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 7px, transparent 7px 9px) 0 14px / 80% 3px no-repeat, linear-gradient(#F6D44A, #F6D44A) 0 0 / 40% 2px no-repeat, linear-gradient(#F6D44A, #F6D44A) 0 19px / 40% 2px no-repeat, repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 11px, transparent 11px 13px) 0 23px / 100% 3px no-repeat, repeating-linear-gradient(to right, rgba(255,255,255,.45) 0 8px, transparent 8px 10px) 0 28px / 70% 3px no-repeat; }
.wf-pills.outline { filter: drop-shadow(0 0 0.5px #F6D44A); opacity: .85; }
.wf-pills.dot { opacity: .75; }
.wf-pills.badge { box-shadow: inset -3px 0 0 -1px #F6D44A; }
.wf-frame { margin: 0 0.5px; background: radial-gradient(circle at 50% 45%, #F6D44A 0 20%, transparent 21%), repeating-linear-gradient(90deg, #FFFFFF 0 2px, transparent 2px 4px) 0 1px / 100% 2px no-repeat, repeating-linear-gradient(90deg, #FFFFFF 0 2px, transparent 2px 4px) 0 calc(100% - 1px) / 100% 2px no-repeat, #0B0B0B; }
.wf-frame.accent { background-color: #C9A227; }
.wf-panel { margin: 2px; border: 1.5px solid #0B0B0B; box-shadow: 2px 2px 0 #0B0B0B; background: linear-gradient(#F6D44A, #F6D44A) 0 0 / 45% 4px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.45) 0 2px, transparent 2px 5px) 3px 7px / calc(100% - 6px) calc(100% - 9px) no-repeat, rgba(255,255,255,.1); }
.wf-panel.white { background-color: #FFFFFF; background-image: linear-gradient(#F6D44A, #F6D44A), repeating-linear-gradient(to bottom, rgba(31,39,51,.45) 0 2px, transparent 2px 5px); }
.wf-panel.dots { box-shadow: 2px 2px 0 #0B0B0B, inset 0 0 0 40px rgba(246,212,74,.12); }
.wf-pow { background: radial-gradient(circle at 50% 50%, #E2231A 0 12%, transparent 13%), #F6D44A; clip-path: polygon(50% 0, 60% 18%, 80% 8%, 76% 30%, 100% 36%, 82% 52%, 96% 74%, 72% 72%, 66% 96%, 50% 80%, 32% 98%, 28% 74%, 4% 76%, 18% 54%, 0 36%, 24% 30%, 20% 8%, 40% 18%); }
.wf-arch { margin: 0 2px; border-radius: 50% 50% 2px 2px / 9px 9px 2px 2px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.45) 0 2px, transparent 2px 5px) 4px 9px / calc(100% - 8px) calc(100% - 11px) no-repeat, rgba(255,255,255,.12); }
.wf-arch.shallow { border-radius: 50% 50% 2px 2px / 4px 4px 2px 2px; }
.wf-arch.pointed { border-radius: 0; clip-path: polygon(0 100%, 0 10px, 15% 4px, 50% 0, 85% 4px, 100% 10px, 100% 100%); }
.wf-arch.pic { background: radial-gradient(circle at 50% 52%, #FFFFFF 0 20%, transparent 21%), #F6D44A; }
.wf-lboard { --felt: #1C1C1C; border: 3px solid #8A5A2E; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.85) 0 1.5px, transparent 1.5px 5px) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat, repeating-linear-gradient(to bottom, rgba(0,0,0,.4) 0 1px, transparent 1px 3px), var(--felt); }
.wf-lboard.n2 { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.85) 0 1.5px, transparent 1.5px 5px) 4px 4px / 44% calc(100% - 8px) no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.85) 0 1.5px, transparent 1.5px 5px) calc(100% - 4px) 4px / 44% calc(100% - 8px) no-repeat, repeating-linear-gradient(to bottom, rgba(0,0,0,.4) 0 1px, transparent 1px 3px), var(--felt); }
.wf-lboard.n3, .wf-lboard.n4 { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.85) 0 1.5px, transparent 1.5px 5px) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat, var(--felt); }
.wf-lboard.grey { --felt: #4A4C50; }
.wf-lboard.navy { --felt: #1B2A44; }
.wf-lboard.green { --felt: #1F3B2C; }
.wf-lboard.pink { --felt: #B9677D; }
.wf-lboard.fblack { border-color: #0E0E0E; }
.wf-lboard.fwhite { border-color: #F2F0EA; }
.wf-lboard.fnone { border: 0; }
.wf-card.paper { --gc: #D23B3B; margin: 0; padding: 4px; background: linear-gradient(#FFFFFF, #FFFFFF) content-box, repeating-linear-gradient(90deg, color-mix(in srgb, var(--gc) 55%, transparent) 0 4px, transparent 4px 8px), repeating-linear-gradient(color-mix(in srgb, var(--gc) 55%, transparent) 0 4px, transparent 4px 8px), #FBF9F4; }
.wf-card.paper.blue { --gc: #3A78C9; }
.wf-card.paper.green { --gc: #2E9B57; }
.wf-card.paper.black { --gc: #111111; }
.wf-card.paper.accent { --gc: #F6D44A; }
.wf-card.paper.tilt { transform: rotate(-2deg); }
.wf-card.paper.tilt:nth-child(odd) { transform: rotate(2deg); }
.wf-big { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.6) 0 4px, transparent 4px 9px) 0 0 / 62% 100% no-repeat, repeating-linear-gradient(to bottom, #F6D44A 0 4px, transparent 4px 9px) 100% 0 / 22% 100% no-repeat; }
.wf-big.dots { background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.6) 0 4px, transparent 4px 9px), repeating-linear-gradient(to bottom, #F6D44A 0 4px, transparent 4px 9px), repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.35) 3px 4px, transparent 4px 9px); background-size: 50% 100%, 22% 100%, 100% 100%; background-position: 0 0, 100% 0, 0 0; }
.wf-big.centre { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.6) 0 3px, #F6D44A 3px 5px, transparent 5px 9px) 50% 0 / 60% 100% no-repeat; }
.wf-big.heads { border-top: 3px solid #F6D44A; }
.wf-canopy { --c1: #C8302F; margin: 0 -2px; background: repeating-linear-gradient(90deg, var(--c1) 0 6px, #FBF7EE 6px 12px); clip-path: polygon(0 0, 100% 0, 100% 60%, 90% 100%, 80% 60%, 70% 100%, 60% 60%, 50% 100%, 40% 60%, 30% 100%, 20% 60%, 10% 100%, 0 60%); }
.wf-canopy.green { --c1: #2E7D4F; }
.wf-canopy.blue { --c1: #2F5DA8; }
.wf-canopy.accent { --c1: #F6D44A; }
.wf-crate { --w: #C99A63; --s: #9C6E3E; margin: 3px 2px; border: 2px solid var(--s); background: linear-gradient(#3B2A1A, #3B2A1A) 0 0 / 100% 5px no-repeat, repeating-linear-gradient(to bottom, var(--w) 0 5px, var(--s) 5px 6px); }
.wf-crate.dark { --w: #6E4A2A; --s: #4A3019; }
.wf-crate.painted { --w: #F6D44A; --s: #C9A93A; }
.wf-bmat { --b1: #DCC48E; --b2: #B79B62; margin: 2px; border-radius: 2px; background: repeating-linear-gradient(to bottom, var(--b1) 0 3px, var(--b2) 3px 4px); }
.wf-bmat.dark { --b1: #6B4F2C; --b2: #4A361D; }
.wf-bmat.cards { background: linear-gradient(#F6F0E1, #F6F0E1) 5px 5px / calc(50% - 8px) calc(100% - 10px) no-repeat, linear-gradient(#F6F0E1, #F6F0E1) calc(100% - 5px) 5px / calc(50% - 8px) calc(100% - 10px) no-repeat, repeating-linear-gradient(to bottom, var(--b1) 0 3px, var(--b2) 3px 4px); }
.wf-bmat.seal { box-shadow: inset -4px -4px 0 -1px #B3261E; }
.wf-pcard { --st: #C8302F; margin: 3px; border-radius: 1px; background: linear-gradient(var(--st), var(--st)) calc(100% - 3px) 3px / 22% 28% no-repeat, linear-gradient(#EFE9DA, #EFE9DA) 3px 3px / 40% calc(100% - 6px) no-repeat, #FDFBF5; }
.wf-pcard.blue { --st: #2F5DA8; }
.wf-pcard.green { --st: #2E7D4F; }
.wf-pcard.accent { --st: #F6D44A; }
.wf-pcard.airmail { border: 2px solid transparent; border-image: repeating-linear-gradient(45deg, #C8302F 0 3px, #FFFFFF 3px 6px, #2F5DA8 6px 9px, #FFFFFF 9px 12px) 2; }
.wf-pcard.tilt { transform: rotate(-2deg); }
.wf-pcard.tilt:nth-child(odd) { transform: rotate(2deg); }
.wf-pbox { --ink: #B3261E; margin: 2px; border-radius: 2px; box-shadow: inset 0 0 0 3px #B98D5E; background: repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 6px) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat, #C89E6E; }
.wf-pbox.stamp { background: radial-gradient(circle at 88% 74%, transparent 0 6px, var(--ink) 6px 8px, transparent 8.5px), repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 6px) 7px 7px / calc(100% - 30px) calc(100% - 14px) no-repeat, #C89E6E; }
.wf-pbox.white { background-color: #F1EEE7; box-shadow: inset 0 0 0 3px #E3DDD1; }
.wf-pbox.black { --ink: #1E1E1E; }
.wf-pbox.green { --ink: #1F6B3A; }
.wf-pbox.accent { --ink: #F6D44A; }
.wf-shopwin { --frame: #1F3B2C; --gold: #D9AE4F; margin: 2px; border: 4px solid var(--frame); background: repeating-linear-gradient(to bottom, var(--gold) 0 2px, transparent 2px 6px) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat, #121A1C; }
.wf-shopwin.shine { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 30% 40%, transparent 40%), repeating-linear-gradient(to bottom, var(--gold) 0 2px, transparent 2px 6px) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat, #121A1C; }
.wf-shopwin.white { --gold: #FFFFFF; }
.wf-shopwin.accent { --gold: #F6D44A; }
.wf-shopwin.fblack { --frame: #161616; }
.wf-shopwin.fred { --frame: #5B1A1A; }
.wf-shopwin.fblue { --frame: #1B2A44; }
.wf-shopwin.fwood { --frame: #8A5A2E; }
.wf-tray { justify-self: center; align-self: center; height: calc(100% - 4px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 22%, #F6D44A 0 12%, transparent 13%), radial-gradient(circle at 24% 62%, #F6D44A 0 12%, transparent 13%), radial-gradient(circle at 76% 62%, #F6D44A 0 12%, transparent 13%), radial-gradient(circle, #E9ECEF 0 70%, #9EA5AD 100%); }
.wf-tray.brass { background-image: radial-gradient(circle at 50% 22%, #FFFFFF 0 12%, transparent 13%), radial-gradient(circle at 24% 62%, #FFFFFF 0 12%, transparent 13%), radial-gradient(circle at 76% 62%, #FFFFFF 0 12%, transparent 13%), radial-gradient(circle, #E9C97A 0 70%, #8E6A22 100%); }
.wf-tray.leaf { background-image: radial-gradient(circle at 50% 22%, #FFFFFF 0 12%, transparent 13%), radial-gradient(circle at 24% 62%, #FFFFFF 0 12%, transparent 13%), radial-gradient(circle at 76% 62%, #FFFFFF 0 12%, transparent 13%), radial-gradient(circle, #5BA845, #2F6E25); }
.wf-truck { --t: #F6D44A; margin: 1px 2px 5px; border-radius: 6px 6px 2px 2px; background: repeating-linear-gradient(90deg, #FFFFFF 0 5px, rgba(0,0,0,.35) 5px 10px) 50% 3px / 90% 5px no-repeat, linear-gradient(#FBFAF5, #FBFAF5) 50% 11px / 84% calc(100% - 17px) no-repeat, var(--t); box-shadow: -10px 4px 0 -6px #111, 10px 4px 0 -6px #111; }
.wf-truck.dark { background: repeating-linear-gradient(90deg, #FFFFFF 0 5px, rgba(0,0,0,.35) 5px 10px) 50% 3px / 90% 5px no-repeat, linear-gradient(#2A2F2C, #2A2F2C) 50% 11px / 84% calc(100% - 17px) no-repeat, var(--t); }
.wf-truck.aplain { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), linear-gradient(#FBFAF5, #FBFAF5); }
.wf-truck.anone { background-image: none, linear-gradient(#FBFAF5, #FBFAF5); }
.wf-truck.red { --t: #C8302F; }
.wf-truck.teal { --t: #2A9D8F; }
.wf-truck.cream { --t: #F1E4C8; }
.wf-truck.black { --t: #1B1B1B; }
.wf-ttx { background: linear-gradient(#00FFFF, #00FFFF) 4px 4px / 28% 4px no-repeat, linear-gradient(#FFFF00, #FFFF00) 50% 4px / 28% 4px no-repeat, linear-gradient(#FF00FF, #FF00FF) calc(100% - 4px) 4px / 28% 4px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.75) 0 2px, transparent 2px 5px) 4px 12px / calc(100% - 8px) calc(100% - 16px) no-repeat, #000; }
.wf-ttx.pg { border-top: 4px solid #000; box-shadow: inset 0 3px 0 rgba(255,255,255,.25); }
.wf-ttx.accent { background: linear-gradient(#F6D44A, #F6D44A) 4px 4px / calc(100% - 8px) 4px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.75) 0 2px, transparent 2px 5px) 4px 12px / calc(100% - 8px) calc(100% - 16px) no-repeat, #000; }
.wf-chq { --c1: #111111; background: conic-gradient(var(--c1) 25%, #F4F4F0 0 50%, var(--c1) 0 75%, #F4F4F0 0) 0 0 / 6px 6px; }
.wf-chq.red { --c1: #C8102E; }
.wf-chq.teal { --c1: #1F9E9A; }
.wf-dpanel { --p: #FFF6E0; margin: 3px; border-radius: 5px; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.45) 0 2px, transparent 2px 6px) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat, var(--p); }
.wf-dpanel.chrome { box-shadow: 0 0 0 2px #C9CDD2; }
.wf-dpanel.red { --p: #C8102E; }
.wf-dpanel.teal { --p: #1F9E9A; }
.wf-dpanel.theme { --p: rgba(255,255,255,.14); }
.wf-lanterns { --lc: #D2232A; background: radial-gradient(ellipse 9% 34% at 10% 55%, var(--lc) 90%, transparent), radial-gradient(ellipse 9% 34% at 30% 55%, var(--lc) 90%, transparent), radial-gradient(ellipse 9% 34% at 50% 55%, var(--lc) 90%, transparent), radial-gradient(ellipse 9% 34% at 70% 55%, var(--lc) 90%, transparent), radial-gradient(ellipse 9% 34% at 90% 55%, var(--lc) 90%, transparent), linear-gradient(#8A6A3A, #8A6A3A) 0 2px / 100% 1px no-repeat; }
.wf-lanterns.tall { background-size: auto; filter: saturate(1.1); }
.wf-lanterns.gold { --lc: #E8B32E; }
.wf-lanterns.mixed { --lc: #E07A2B; }
.wf-lanterns.accent { --lc: #F6D44A; }
.wf-flags { --a: #E63946; --b: #F6D44A; --c: #3A78C9; background: repeating-linear-gradient(90deg, var(--a) 0 6%, var(--b) 6% 12%, var(--c) 12% 18%); clip-path: polygon(0 0, 100% 0, 100% 30%, 97% 100%, 94% 30%, 91% 100%, 88% 30%, 85% 100%, 82% 30%, 79% 100%, 76% 30%, 73% 100%, 70% 30%, 67% 100%, 64% 30%, 61% 100%, 58% 30%, 55% 100%, 52% 30%, 49% 100%, 46% 30%, 43% 100%, 40% 30%, 37% 100%, 34% 30%, 31% 100%, 28% 30%, 25% 100%, 22% 30%, 19% 100%, 16% 30%, 13% 100%, 10% 30%, 7% 100%, 4% 30%, 1% 100%, 0 30%); }
.wf-flags.under { transform: scaleY(-1); }
.wf-flags.round, .wf-flags.picado { clip-path: none; height: 60%; }
.wf-flags.accent { --a: #F6D44A; --b: #FFFFFF; --c: #F6D44A; }
.wf-flags.rwb { --a: #C8102E; --b: #FFFFFF; --c: #012169; }
.wf-flags.pastel { --a: #F7B9C4; --b: #FCE1A8; --c: #B8E0D2; }
.wf-clipb { margin: 3px; padding: 7px 3px 3px; border-radius: 3px; background: linear-gradient(#C9CDD2, #C9CDD2) 50% 1px / 36% 5px no-repeat, #A9764A; }
.wf-clipb::after { content: ''; display: block; height: 100%; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.4) 0 1.5px, transparent 1.5px 5px) 3px 3px / calc(100% - 6px) calc(100% - 6px) no-repeat, #FDFCF8; }
.wf-clipb.plined::after { background: repeating-linear-gradient(to bottom, rgba(66,120,200,.6) 0 1px, transparent 1px 4px), #FDFCF8; }
.wf-clipb.psquared::after { background: repeating-linear-gradient(90deg, rgba(66,120,200,.45) 0 1px, transparent 1px 4px), repeating-linear-gradient(to bottom, rgba(66,120,200,.45) 0 1px, transparent 1px 4px), #FDFCF8; }
.wf-clipb.black { background-color: #1E1E20; }
.wf-clipb.clear { background-color: rgba(255,255,255,.25); }
.wf-clipb.gold { background-image: linear-gradient(#D4A84A, #D4A84A); }
.wf-clipb.tilt { transform: rotate(-2deg); }
.wf-plate { margin: 2px 0; border-radius: 50%; aspect-ratio: 1; height: calc(100% - 4px); justify-self: center; align-self: center; max-width: 100%; background: radial-gradient(circle, #F6D44A 0 26%, #FFFFFF 28% 58%, #E4E2DC 60%, #FFFFFF 64%); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.wf-plate.black { background: radial-gradient(circle, #F6D44A 0 26%, #2A2A2A 28% 58%, #151515 60%, #333333 64%); }
.wf-plate.accent { background: radial-gradient(circle, #F6D44A 0 26%, #FFFFFF 28% 50%, #F6D44A 52% 62%, #FFFFFF 64%); }
.wf-wanted { margin: 3px; background: linear-gradient(#3B2414, #3B2414) 50% 8px / 60% 4px no-repeat, linear-gradient(rgba(59,36,20,.35), rgba(59,36,20,.35)) 50% 45% / 70% 45% no-repeat, #E9D3A6; clip-path: polygon(0 2%, 20% 0, 50% 1.5%, 80% 0, 100% 2%, 99% 50%, 100% 98%, 70% 100%, 40% 98.5%, 10% 100%, 0 98%, 1% 50%); }
.wf-wanted.white { background-color: #FBF9F3; }
.wf-wanted.kraft { background-color: #C49A66; }
.wf-score { --bd: #1F4D2B; --dg: #F6D44A; margin: 2px; border: 2px solid #2A2A2A; background: repeating-linear-gradient(to bottom, transparent 0 6px, var(--dg) 6px 8px, transparent 8px 12px) right 6px top 4px / 18% calc(100% - 8px) no-repeat, var(--bd); }
.wf-score.black { --bd: #141414; }
.wf-score.blue { --bd: #17305C; }
.wf-score.white { --dg: #FFFFFF; }
.wf-score.red { --dg: #E5372B; }
.wf-score.accent { --dg: var(--accent, #F6D44A); }
.wf-score.bulbs { border-style: dotted; border-color: #FFE38A; }
.wf-jar { --lid: #D9A93B; margin: 3px 6px; border-radius: 6px; background: linear-gradient(var(--lid), var(--lid)) 50% 0 / 70% 16% no-repeat, linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.3)) 50% 100% / 100% 80% no-repeat, linear-gradient(#8A5A2B, #8A5A2B) 50% 100% / 100% 3px no-repeat; }
.wf-jar.red { --lid: #C8302F; }
.wf-jar.gold { --lid: #D9A93B; }
.wf-jar.accent { --lid: var(--accent, #F6D44A); }
.wf-jar.mixed:nth-child(3n) { --lid: #2F5DA8; }
.wf-jar.mixed:nth-child(3n+1) { --lid: #C8302F; }
.wf-aboard { --fr: #C49A60; margin: 2px 4px 8px; border: 3px solid var(--fr); border-radius: 3px; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.5) 5px 7px) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat, #262B29; box-shadow: 0 5px 0 -2px var(--fr); }
.wf-aboard.mixed { background: linear-gradient(#F6D44A, #F6D44A) 6px 4px / 40% 3px no-repeat, repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.5) 5px 7px) 6px 10px / calc(100% - 12px) calc(100% - 16px) no-repeat, #262B29; }
.wf-aboard.dark { --fr: #5A3B22; }
.wf-aboard.black { --fr: #111111; }
.wf-aboard.accent { --fr: var(--accent, #F6D44A); }
.wf-tin { --tn: #B3261E; margin: 2px; border-radius: 5px; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.55) 5px 7px) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat, var(--tn); }
.wf-tin.green { --tn: #1F6B45; }
.wf-tin.blue { --tn: #1E3F7A; }
.wf-tin.cream { --tn: #E9DCBC; }
.wf-tin.accent { --tn: var(--accent, #F6D44A); }
.wf-tin.double { box-shadow: inset 0 0 0 3px var(--tn), inset 0 0 0 4px rgba(255,255,255,.8), inset 0 0 0 6px var(--tn), inset 0 0 0 7px rgba(255,255,255,.8); }
.wf-tin.single { box-shadow: inset 0 0 0 3px var(--tn), inset 0 0 0 4px rgba(255,255,255,.8); }
.wf-tin.rivets { outline: 2px dotted #D9DDE2; outline-offset: -3px; }
.wf-tin.worn { filter: sepia(.25); }
.wf-recipe { --cd: #FBF6E9; margin: 3px; border-radius: 2px; background: linear-gradient(#C8302F, #C8302F) 4px 7px / calc(100% - 8px) 2px no-repeat, var(--cd); }
.wf-recipe.lines { background: linear-gradient(#C8302F, #C8302F) 4px 7px / calc(100% - 8px) 2px no-repeat, repeating-linear-gradient(to bottom, transparent 0 5px, rgba(66,120,200,.45) 5px 6px) 0 11px / 100% calc(100% - 11px) no-repeat, var(--cd); }
.wf-recipe.white { --cd: #FFFFFF; }
.wf-recipe.kraft { --cd: #D8B98C; }
.wf-recipe.pics { box-shadow: inset 6px 12px 0 -2px var(--cd), inset 14px 20px 0 -2px #F6D44A; }
.wf-recipe.tilt { transform: rotate(-1.5deg); }
.wf-recipe.tilt:nth-child(odd) { transform: rotate(1.5deg); }
.wf-chop { --wd: #D2A56B; margin: 7px 3px 3px; border-radius: 5px; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(46,30,15,.45) 5px 7px) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat, var(--wd); }
.wf-chop.walnut { --wd: #5E3E26; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.5) 5px 7px) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat, var(--wd); }
.wf-chop.bamboo { --wd: #E2C38A; }
.wf-chop.slate { --wd: #3A3F45; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.5) 5px 7px) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat, var(--wd); }
.wf-chop.mixed:nth-child(odd) { --wd: #5E3E26; }
.wf-chop.handle { box-shadow: 0 -5px 0 -1px var(--wd); }
.wf-chop.burnt { outline: 2px dotted rgba(46,30,15,.4); outline-offset: -5px; }
.wf-vinyl { --sl: #F6D44A; margin: 4px; background: linear-gradient(var(--sl), var(--sl)) 0 50% / 62% 100% no-repeat, radial-gradient(circle at 70% 50%, #F6D44A 0 12%, #141414 13% 30%, transparent 31%); }
.wf-vinyl.mixed:nth-child(3n) { --sl: #C8302F; }
.wf-vinyl.mixed:nth-child(3n+1) { --sl: #2F5DA8; }
.wf-vinyl.black { --sl: #151515; }
.wf-vinyl.white { --sl: #F7F5F0; }
.wf-vinyl.accent { --sl: var(--accent, #F6D44A); }
.wf-vinyl:not(.disc) { background: linear-gradient(var(--sl), var(--sl)) 50% 50% / 70% 100% no-repeat; }
.wf-ttable { --tt: #F6D44A; margin: 2px; border-top: 4px solid var(--tt); border-radius: 2px; background: linear-gradient(var(--tt), var(--tt)) 5px 5px / 40% 4px no-repeat, repeating-linear-gradient(to bottom, transparent 0 5px, rgba(31,39,51,.45) 5px 6px) 5px 12px / calc(100% - 10px) calc(100% - 16px) no-repeat, #FBFBF8; }
.wf-ttable.dark { background: linear-gradient(var(--tt), var(--tt)) 5px 5px / 40% 4px no-repeat, repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.5) 5px 6px) 5px 12px / calc(100% - 10px) calc(100% - 16px) no-repeat, #1C1F24; }
.wf-ttable.red { --tt: #C8302F; }
.wf-ttable.blue { --tt: #1E4FA0; }
.wf-ttable.green { --tt: #1F7A4A; }
.wf-ttable.accent { --tt: var(--accent, #F6D44A); }
.wf-tiffin { --mt: linear-gradient(90deg, #8E959C, #E7EAED 30%, #BFC5CB 60%, #9AA1A8); margin: 3px 6px; border-radius: 4px; background: linear-gradient(transparent 0 31%, rgba(0,0,0,.45) 31% 34%, transparent 34% 64%, rgba(0,0,0,.45) 64% 67%, transparent 67%), var(--mt); }
.wf-tiffin.brass { --mt: linear-gradient(90deg, #8E6A22, #F2D88E 30%, #C9A045 60%, #A47B2C); }
.wf-tiffin.painted { --mt: linear-gradient(#1F7A6E 0 32%, #C8302F 32% 65%, #2F5DA8 65%); }
.wf-tiffin.loop { box-shadow: 0 -5px 0 -2px #6F767D; margin-top: 7px; }
.wf-marq { --fb: #B3261E; --bl: #FFE6A3; margin: 2px; border: 3px dotted var(--bl); border-radius: 3px; background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(17,17,17,.55) 5px 7px) 7px 7px / calc(100% - 14px) calc(100% - 14px) no-repeat, linear-gradient(#FFFFFF, #FFFFFF) 5px 5px / calc(100% - 10px) calc(100% - 10px) no-repeat, var(--fb); }
.wf-marq.strip { background: linear-gradient(#151515, #151515) 50% 4px / 40% 5px no-repeat, repeating-linear-gradient(to bottom, transparent 0 5px, rgba(17,17,17,.55) 5px 7px) 7px 13px / calc(100% - 14px) calc(100% - 18px) no-repeat, linear-gradient(#FFFFFF, #FFFFFF) 5px 11px / calc(100% - 10px) calc(100% - 16px) no-repeat, var(--fb); }
.wf-marq.gold { --fb: #C9A045; }
.wf-marq.black { --fb: #151515; }
.wf-marq.accent { --fb: var(--accent, #F6D44A); }
.wf-marq.white { --bl: #F4F8FF; }
.wf-marq.colour { --bl: var(--accent, #F6D44A); }
.wf-marq.off { border-style: solid; border-color: var(--fb); }
.wf-slip { --sp: #FFFDF6; margin: 3px; background: linear-gradient(var(--sp), var(--sp)) 50% 100% / 90% 30% no-repeat; }
.wf-slip.pics { background: radial-gradient(circle at 50% 35%, #F6D44A 0 22%, transparent 23%), linear-gradient(var(--sp), var(--sp)) 50% 100% / 90% 30% no-repeat; }
.wf-slip:not(.pics) { background: linear-gradient(var(--sp), var(--sp)) 50% 50% / 90% 60% no-repeat; }
.wf-slip.red { --sp: #B3261E; }
.wf-slip.gold { --sp: #E9C25A; }
.wf-coupon { --stub: #F6D44A; margin: 3px; border-radius: 2px; outline: 1.5px dashed rgba(255,255,255,.75); outline-offset: 2px; background: linear-gradient(90deg, var(--stub) 0 30%, #FBFAF5 30%); }
.wf-coupon.pic { background: radial-gradient(circle at 86% 50%, #F6D44A 0 14%, transparent 15%), linear-gradient(90deg, var(--stub) 0 30%, #FBFAF5 30%); }
.wf-coupon.dotted { outline-style: dotted; }
.wf-coupon.none { outline: 0; }
.wf-coupon.red { --stub: #C8302F; }
.wf-coupon.black { --stub: #111111; }
.wf-folder { --fold: #EBD5A2; margin-top: 7px; position: relative; border-radius: 0 2px 2px 2px; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.35) 0 2px, transparent 2px 6px) 4px 5px / calc(100% - 8px) calc(100% - 8px) no-repeat, var(--fold); }
.wf-folder::before { content: ''; position: absolute; bottom: 100%; left: 0; width: 45%; height: 5px; border-radius: 2px 2px 0 0; background: var(--fold); }
.wf-folder.centre::before, .wf-folder.at1::before { left: 27.5%; }
.wf-folder.at2::before { left: auto; right: 0; }
.wf-folder.mixed { --fold: #F2BFB1; }
.wf-folder.accent { --fold: #FBFAF5; }
.wf-folder.accent::before { background: #F6D44A; }
.wf-folder.theme { --fold: rgba(255,255,255,.14); }
.wf-dep { --dl: #FFB01F; --db: #111214; border-radius: 3px; background: linear-gradient(var(--dl), var(--dl)) 4px 4px / calc(100% - 8px) 3px no-repeat, repeating-linear-gradient(to bottom, var(--dl) 0 2px, transparent 2px 5px) 4px 10px / calc(100% - 8px) calc(100% - 14px) no-repeat, var(--db); }
.wf-dep.n2 { background: linear-gradient(var(--dl), var(--dl)) 4px 4px / 44% 3px no-repeat, linear-gradient(var(--dl), var(--dl)) calc(100% - 4px) 4px / 44% 3px no-repeat, repeating-linear-gradient(to bottom, var(--dl) 0 2px, transparent 2px 5px) 4px 10px / 44% calc(100% - 14px) no-repeat, repeating-linear-gradient(to bottom, var(--dl) 0 2px, transparent 2px 5px) calc(100% - 4px) 10px / 44% calc(100% - 14px) no-repeat, var(--db); }
.wf-dep.flaps { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--db), white 18%); }
.wf-dep.yellow { --dl: #F7E041; }
.wf-dep.white { --dl: #F2F2F0; }
.wf-dep.green { --dl: #5BE36B; }
.wf-dep.accent { --dl: #F6D44A; }
.wf-dep.bblue { --db: #0E2A5C; }
.wf-dep.bgrey { --db: #2B2E33; }
.wf-neon { --glow: #F6D44A; border-radius: 3px; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), repeating-linear-gradient(to bottom, transparent 0 5px, #1F0F0C 5px 6px), #5A2A22; }
.wf-neon.wdark { background: #111116; }
.wf-neon.wtheme { background: rgba(255,255,255,.08); }
.wf-neon.tube { box-shadow: inset 0 0 0 3px #111, inset 0 0 0 5px var(--glow), inset 0 0 6px 6px color-mix(in srgb, var(--glow) 45%, transparent); }
.wf-neon::after { content: ''; display: block; margin: 8px 18%; height: calc(100% - 16px); background: repeating-linear-gradient(to bottom, var(--glow) 0 2px, transparent 2px 7px); filter: drop-shadow(0 0 2px var(--glow)); }
.wf-neon.pink { --glow: #FF4FD8; }
.wf-neon.blue { --glow: #3FD0FF; }
.wf-neon.green { --glow: #5CFF8A; }
.wf-neon.warm { --glow: #FFD9A0; }
.wf-rib { --rib: #F6D44A; background: linear-gradient(var(--rib), var(--rib)) 50% 2px / 92% 6px no-repeat, repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 2px, transparent 2px 6px) 0 12px / 100% calc(100% - 12px) no-repeat; }
.wf-rib.fit { background-size: 60% 6px, 100% calc(100% - 12px); }
.wf-rib.red { --rib: #C8302F; }
.wf-rib.navy { --rib: #6F86C9; }
.wf-rib.green { --rib: #2E9B57; }
.wf-rib.black { --rib: #000000; }
.wf-feat.slides { background: radial-gradient(circle at 50% 40%, #F6D44A 0 22%, transparent 23%), radial-gradient(circle at 42% 90%, #F6D44A 0 3%, transparent 4%), radial-gradient(circle at 50% 90%, rgba(255,255,255,.5) 0 3%, transparent 4%), radial-gradient(circle at 58% 90%, rgba(255,255,255,.5) 0 3%, transparent 4%), rgba(246,212,74,.22); }
.wf-feat.wide.slides { background: radial-gradient(circle at 28% 45%, #F6D44A 0 20%, transparent 21%), linear-gradient(#F6D44A, #F6D44A) 75% 40% / 30% 10% no-repeat, radial-gradient(circle at 47% 90%, #F6D44A 0 2%, transparent 3%), radial-gradient(circle at 53% 90%, rgba(255,255,255,.5) 0 2%, transparent 3%), rgba(246,212,74,.22); }
.wf-tile.star, .wf-tile.circle, .wf-tile.tag { background: radial-gradient(circle at 42% 55%, rgba(255,255,255,.55) 0 20%, transparent 21%), rgba(255,255,255,.12); position: relative; }
.wf-tile.star::after, .wf-tile.circle::after, .wf-tile.tag::after { content: ''; position: absolute; top: 2px; right: 2px; width: 36%; aspect-ratio: 1; background: #F6D44A; }
.wf-tile.star::after { clip-path: polygon(50% 0, 63% 25%, 93% 20%, 78% 48%, 100% 72%, 70% 75%, 60% 100%, 45% 80%, 18% 95%, 22% 68%, 0 50%, 25% 35%, 15% 8%, 40% 20%); }
.wf-tile.circle::after { border-radius: 50%; }
.wf-tile.tag::after { aspect-ratio: 1.6; clip-path: polygon(20% 0, 100% 0, 100% 100%, 20% 100%, 0 50%); }
.wf-mast { background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)) 3px 30% / 45% 55% no-repeat; border-bottom: 2px solid #F6D44A; }
.wf-pic.panel { background: radial-gradient(circle at 50% 45%, #F6D44A 0 28%, transparent 29%), rgba(255,255,255,.1); }
.wf-cline { border-bottom: 1px solid rgba(255,255,255,.3); background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) 0 25% / 70% 3px no-repeat, linear-gradient(#F6D44A, #F6D44A) 0 75% / 30% 3px no-repeat; }
.tplgroup { margin: 6px 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.setpick { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.stack.tight { gap: 6px; }

/* product pictures */
.pcell { display: flex; align-items: center; gap: 10px; }
.pthumb { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; background: var(--bg); object-fit: contain; }
.pthumb.none { display: inline-block; border: 1px dashed var(--line-2); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8A59B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E") center / 56% no-repeat; }
.iname.withthumb { flex-direction: row; align-items: center; gap: 10px; }
.iname .inames { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.thumblink { flex-shrink: 0; display: inline-flex; border-radius: 8px; }
.thumblink:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pthumb.big { width: 72px; height: 72px; }
.picnow { display: flex; align-items: center; gap: 12px; }
.picgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; padding: 2px; }
.picopt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 8px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 12px; text-align: center; cursor: pointer; }
.picfold > .search { margin: 8px 0; max-width: 320px; }
.picopt:hover, .picopt.on { border-color: var(--ink); }
.picopt.on { box-shadow: 0 0 0 2px var(--ink); }
/* Your Artwork's pictures on the screen page, in the order they show. */
.artlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.artrow { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line-2); border-radius: 8px; }
.artrow .pthumb { object-fit: cover; }
.artthumb { position: relative; display: inline-flex; flex-shrink: 0; }
.artvid { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.72); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1.4; }
.artname { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Smart boxes (ADR-0101) on Edit items: a row for each box of the template the screen draws, what the screen shows in it. */
.smart { display: flex; flex-direction: column; gap: 12px; }
.smartrow { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.smarthead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.smarthead .hint { flex-grow: 1; min-width: 0; }
.smarthead form { display: inline; margin: 0; }
.smartrow summary { cursor: pointer; }
.loccard .sect-head h2 { font-family: var(--display); font-size: 20px; }
/* Banner on every screen (ADR-0060): how it looks on the shop's first screen, in its settings. */
.banner-prev { display: flex; flex-direction: column; gap: 6px; }
.banner-prev .tv { max-width: 440px; transition: opacity 0.2s; }
.banner-prev .tv.tv-off { opacity: 0.4; }
.banner-change { margin-left: 4px; }
/* Shown now over a screen's thumbnail, above anything its design stacks. */
.tv-inner > .ss-banner-layer { z-index: 10; }
/* A screen's effects (ADR-0084) over its thumbnail (the demo's, the dashboard's and the staff admin's), as on the
   TV: above anything its design stacks, under the banner. */
.tv-inner > .ss-fx-layer { z-index: 9; }
/* Seasonal effects on a screen's Edit Screen (ADR-0141): each effect's box with its name and what it does, then its parts'
   choices and the dates it runs under it while it is on (as the dashboard's _effects.html). */
.fxrow { display: flex; flex-direction: column; gap: 8px; }
.fxcheck { align-items: flex-start; }
.fxcheck input { margin: 2px 0 0; flex-shrink: 0; }
.fxcheck > span { display: flex; flex-direction: column; gap: 2px; }
.fxparts, .fxdates, .fxwhen { margin-left: 24px; align-items: flex-start; }
.fxdates { gap: 8px 14px; align-items: center; }
.fxdates .inp { width: auto; min-width: 0; }
/* An effect the screen's own template brings (ticked, or left off this screen): where it comes from, in line with where
   its parts would be. */
.fxfrom { margin-left: 24px; }
.person { display: flex; align-items: center; gap: 12px; }
.bigpass code { display: inline-block; margin: 6px 0; padding: 10px 14px; border-radius: 8px; background: var(--bg); font-family: var(--mono); font-size: 20px; }
code { font-family: var(--mono); font-size: 12.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--mustard); }
/* A screen's two halves, Edit items and Edit design: the way into everything on its page. */
.edittabs a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; padding: 12px 18px; }
.addr strong { font-weight: 700; }
.actfull { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.actfull li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EFECE5; }
.actfull li:last-child { border-bottom: 0; }
.actfull .when { width: 52px; }
.what { flex-grow: 1; display: flex; flex-direction: column; }
.where { flex-shrink: 0; display: flex; align-items: center; color: var(--muted); font-size: 12.5px; }
.offcard { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.offcard h1 { font-family: var(--display); font-size: 26px; }
.tipcard { background: #FFFBEF; border-color: #F3D58A; }

/* toasts, dialogs, the end */
#toasts { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 90; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(560px, 92vw); padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #FFFFFF; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: opacity 0.4s; pointer-events: auto; }
.toast .ic { color: #7EE2A8; }
.toast.bad .ic { color: #FF9A8A; }
.toast.warn .ic { color: var(--mustard); }
.toast.gone { opacity: 0; pointer-events: none; }
.modal { border: 0; padding: 0; border-radius: 14px; width: min(520px, 94vw); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.modal::backdrop { background: rgba(23, 23, 26, 0.45); }
.modal-box { margin: 0; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.modal-head h2 { flex-grow: 1; font-size: 18px; }
.modal-body { padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 10px; max-height: 64vh; overflow-y: auto; }
.modal-body h3 { font-size: 14px; margin-top: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid #EFECE5; }
.ended { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(23, 23, 26, 0.78); }
.ended-box { width: min(560px, 100%); padding: 34px 34px 30px; border-radius: 16px; background: #FFFFFF; display: flex; flex-direction: column; gap: 12px; }
.ended-box h1 { font-family: var(--display); font-size: 32px; letter-spacing: -0.02em; }
.ended-box .scrawl { color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12.5px; }
.ended-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---- the example screen view --------------------------------------------------------- */

/* It never runs off the screen: taller than the screen (a phone on its side), it scrolls inside, with its
   header, and so Minimise, always in view. */
.viewer { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 360px; max-width: calc(100vw - 36px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: var(--side); color: #FFFFFF; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.viewer.big { width: 640px; }
.v-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 14px; position: sticky; top: 0; z-index: 4; background: var(--side); }
.v-title { flex-grow: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.v-title .ic { color: var(--mustard); }
.v-head .iconbtn { color: #C9C6BC; }
.v-head .iconbtn:hover { background: var(--side-2); color: #FFFFFF; }
.v-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.viewer.min { width: auto; cursor: pointer; }
.viewer.min .v-body { display: none; }
.viewer.min .v-head .iconbtn:not(.v-min) { display: none; }
/* It starts small (the usability review, quick win 2; ADR-0127): a pill that says what it is for, "Watch it live", with an
   arrow up; open, the panel's own name and the minus. */
.v-open, .v-ic-open { display: none; }
.viewer.min .v-open { display: inline; }
.viewer.min .v-ic-open { display: block; }
.viewer.min .v-name, .viewer.min .v-ic-min { display: none; }
.v-pick { width: 100%; min-height: 32px; border-radius: 8px; border: 1px solid #3A3A41; background: #1F1F23; color: #FFFFFF; padding: 0 8px; font-size: 13px; }
.v-tv { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000000; box-shadow: 0 0 0 4px #0B0B0D, 0 0 0 5px #34343A; }
.v-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.v-status { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #D8D6CF; min-height: 34px; }
.v-status .dot { margin-top: 5px; }
.v-status > span:not(.dot) { flex: 1; }
.v-status.ok .dot { color: #4ADE80; }
.v-status.info .dot { color: #7DD3FC; }
.v-status.bad .dot { color: #F87171; }
.v-status > span.v-sub { flex: 0 0 100%; padding-left: 15px; color: var(--mustard); }
.v-row { display: flex; align-items: center; gap: 8px; }
.v-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #C9C6BC; }
.v-label .ic { width: 15px; height: 15px; }
.v-clock .v-label { margin-right: auto; }
.v-day, .v-time { min-height: 30px; border-radius: 8px; border: 1px solid #3A3A41; background: #1F1F23; color: #FFFFFF; padding: 0 6px; font-size: 12.5px; color-scheme: dark; }
.v-more { position: relative; }
.v-more > summary { list-style: none; cursor: pointer; padding: 5px 10px; border-radius: 8px; border: 1px solid #3A3A41; font-size: 12.5px; font-weight: 600; }
.v-more > summary::-webkit-details-marker { display: none; }
.v-more > summary:hover, .v-more[open] > summary { border-color: var(--mustard); }
.v-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; width: 240px; padding: 6px; border-radius: 10px; background: #FFFFFF; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; }
.v-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; font-size: 13.5px; }
.v-menu button:hover { background: var(--bg); }
.v-note { font-size: 11.5px; color: #8D8A80; }
/* Banner on every screen (ADR-0060): show it now rather than wait for the clock. */
.v-banner { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--mustard); background: none; color: #FFFFFF; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.v-banner:hover { background: var(--side-2); }
.v-banner .ic { width: 15px; height: 15px; color: var(--mustard); }
.v-banner[hidden] { display: none; }

/* ---- smaller screens ------------------------------------------------------------------- */

/* Controls that would change nothing on this screen, and the hidden drawing that finds them. */
.linkbtn { border: 0; background: none; padding: 0; color: var(--info); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; }

@media (min-width: 1680px) {
  .viewer { width: 420px; }
}

@media (max-width: 1180px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; }
  .pubrow { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .shell { flex-direction: column; }
  .side { position: relative; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; overflow: visible; }
  .brand span:last-child { display: none; }
  .locsw, .shopbox { flex: 1 1 200px; }
  .nav-list { order: 3; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 2px; }
  .navh { display: none; }
  .nav { min-height: 36px; padding: 0 10px; }
  .who { border-top: 0; padding-top: 0; }
  .who .lt { display: none; }
  /* The shop switcher and account menu open just under their button, from the bar's left and right
     edges, so they're on the screen whichever row of the bar the button has wrapped to. */
  .locsw, .who { position: static; }
  .locpop, .whopop { top: auto; bottom: auto; margin-top: 6px; }
  .locpop { left: 12px; right: auto; width: min(400px, calc(100% - 24px)); }
  .whopop { left: auto; right: 12px; width: min(360px, calc(100% - 24px)); }
  .top { position: static; padding: 10px 16px; }
  .page { padding: 20px 16px var(--viewer-room, 200px); }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .shops-grid { grid-template-columns: minmax(0, 1fr); }
  .irow { grid-template-columns: minmax(0, 1fr) auto; }
  .irow .isold { justify-content: flex-start; }
  .irow.ihead { display: none; }
  /* With the column headings gone, the sold-out switch carries its own words. */
  .irow:not(.ihead) .isold:has(.sw) { align-items: center; gap: 8px; }
  .irow:not(.ihead) .isold:has(.sw)::before { content: "Sold out"; font-size: 12.5px; color: var(--muted); }
  .irow.out .isold:has(.sw)::before { color: var(--red); font-weight: 600; }
  .viewer, .viewer.big { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .viewer.min { width: auto; }
}

/* A narrow menu column (a phone, or a laptop with the preview beside it): an item's name has the row's whole width (beside
   price boxes it was left 50 to 86 px, so "Haddock" showed as "Had" or as nothing), then the prices and the switch,
   then the buttons. The column is the container, not the window: the preview pane takes 400 px of a laptop's. */
@container (max-width: 700px) {
  .irow { grid-template-columns: minmax(0, 1fr) auto; }
  .irow.ihead { display: none; }
  .irow .iname { grid-column: 1 / -1; }
  .irow .iprices { justify-content: flex-start; }
  .irow .isold { justify-content: flex-start; }
  .irow .iacts { grid-column: 1 / -1; justify-content: flex-end; }
  .irow:not(.ihead) .isold:has(.sw) { align-items: center; gap: 8px; }
  .irow:not(.ihead) .isold:has(.sw)::before { content: "Sold out"; font-size: 12.5px; color: var(--muted); }
  .irow.out .isold:has(.sw)::before { color: var(--red); font-weight: 600; }
}

/* An item with three prices needs about 280 px for them, which leaves a laptop's menu column (about 680 px) a name 150 px
   wide: it takes the narrow layout a little sooner than the rest. */
@container (max-width: 820px) {
  .irow:has(.pricein:nth-child(3)) { grid-template-columns: minmax(0, 1fr) auto; }
  .irow:has(.pricein:nth-child(3)) .iname { grid-column: 1 / -1; }
  .irow:has(.pricein:nth-child(3)) .iprices { justify-content: flex-start; }
  .irow:has(.pricein:nth-child(3)) .isold { justify-content: flex-start; }
  .irow:has(.pricein:nth-child(3)) .iacts { grid-column: 1 / -1; justify-content: flex-end; }
  .irow.ihead.three { display: none; }
}

/* A phone on its side: the screen view keeps to its corner, beside the page, rather than covering it. */
@media (max-height: 560px) {
  .viewer, .viewer.big { width: min(400px, calc(100vw - 20px)); }
  .viewer.min { width: auto; }
}

a.fchip { color: var(--ink); text-decoration: none; }
a.fchip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.tags { color: var(--ink-2); }

/* Themes page: themes grouped by cuisine. */
.theme-list { display: flex; flex-direction: column; gap: 28px; }
.theme-group { display: flex; flex-direction: column; gap: 12px; }
.theme-cuisine { font-size: 18px; }
/* Templates in turn (Liam, 2026-10-07): the screen's own template, then each in turn, drawn as it will show;
   the one being designed is marked, and its own design is framed below the list. */
.turns-head { display: flex; align-items: center; gap: 8px; }
.turnlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.turnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.turnrow.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.turnrow.off .turnthumb, .turnrow.off .turntext b { opacity: .5; }
.turnpick { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.turnpick:hover b { text-decoration: underline; }
.turnpick:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 6px; }
.turnno { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--mute-bg); font-size: 12px; font-weight: 700; }
.turnrow.on .turnno { background: var(--ink); color: #FFFFFF; }
.turnthumb { flex-shrink: 0; width: 112px; }
.tv.turnthumb { border-radius: 5px; }
.turntext { display: flex; flex-direction: column; min-width: 0; }
.turntext b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turnbtns { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.turnadd { margin-top: 2px; }
.turnedit.framed { display: flex; flex-direction: column; gap: 14px; padding: 12px; border: 2px solid var(--ink); border-radius: 12px; }
.turnedit:not(.framed) { display: contents; }
.turnedit-head { display: flex; flex-direction: column; gap: 2px; }
.turnedit-head h3 { font-family: var(--display); font-size: 17px; }
.turnprev { display: flex; flex-direction: column; gap: 4px; }
.turnprev .tv { max-width: 420px; }
.menulinks { gap: 6px; }
.turnwhen .times { gap: 8px; align-items: center; }
.turnwhen .times input[type="time"] { width: auto; }
.wire.turnthumb { display: flex; flex-direction: column; }
/* Edit Screen's Slides (Liam, 2026-10-10, rows 7 and 8): a row per slide with its time, its place in the rotation, its days
   and hours (folded away until asked for) and its order. */
.slidetablerow { align-items: center; }
.slidetablerow .turntext { flex: 1 1 140px; }
.slideseconds label.row { gap: 6px; align-items: center; }
.slideseconds .inp { width: 5.5em; min-height: 36px; }
.slidewhen { flex: 1 1 100%; }
.slidewhen > summary { cursor: pointer; font-size: 13px; padding: 4px 0; min-height: 28px; }
.slidewhen[open] { padding-bottom: 4px; }
/* Versions of a slide (ADR-0326): under the slide they play in place of, top down, set in from it. */
.slideversions { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.versionlist { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid var(--line); }
.versionrow { gap: 8px; align-items: center; }
.versionrow .turnthumb { width: 96px; }
.versionrow > p { flex: 1 1 100%; margin: 0; }
/* The one Add a slide (ADR-0176; _slides.html, screens.js slidesList): a new slide to design, a saved one, or a picture or
   video from the gallery, folded away until asked for. */
.slideadd { margin-top: 8px; }
.slideadd > summary { list-style: none; display: inline-flex; }
.slideadd > summary::-webkit-details-marker { display: none; }
.slideadd[open] { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.slideadd .row { gap: 8px; align-items: center; }
.slideadd .picopt[disabled] { opacity: .5; cursor: not-allowed; }
/* A slide's Copy: Duplicate on this screen, or copy it to another screen. */
.slidecopy { display: inline-block; }
.slidecopy > summary { list-style: none; display: inline-flex; }
.slidecopy > summary::-webkit-details-marker { display: none; }
.slidecopy[open] { flex: 1 1 100%; }
.slidecopybox { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.slidecopybox .row { gap: 6px; align-items: center; }
.slidecopybox select.inp { width: auto; min-height: 36px; }
/* A slide's name picks the slide What it shows is for; the one picked is marked. */
a.slidename { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a.slidename:hover, a.slidename[aria-current="true"] { text-decoration-color: currentColor; }
.turnrow.picked { box-shadow: inset 3px 0 0 var(--mustard); }
@media (max-width: 600px) { .slidetablerow .turnbtns { margin-left: 0; flex: 1 1 100%; } }
/* Starters drawn with a screen's own menu (ADR-0086): Design this screen yourself, on a screen's Edit design, and Make a
   template, on Your templates. A picture each, one tap to make it. The dashboard (views/entry.py, dash.js) and the demo
   (pages/entry.js) draw the same. */
.design-yourself { border: 2px solid var(--ink); }
.starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.starter { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 8px 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.starter:hover { border-color: var(--ink); }
.starter:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.starter:disabled { opacity: .6; cursor: progress; }
.starter-pic { display: block; }
.starter-pic.tall { width: min(100%, 190px); aspect-ratio: 9 / 16; margin: 0 auto; }
.starter-pic.tv-slot { display: flex; align-items: center; justify-content: center; color: #8D8A80; font-size: 12.5px; text-align: center; }  /* waiting to be drawn, or not drawn */
.starter-name { font-weight: 700; }
.starter-desc { color: var(--muted); font-size: 12.5px; }
.edit-copy .btn { min-height: 44px; }  /* the card's one button, a target for a finger (pages/entry.js, views/entry.py) */

/* A phone (600 px and narrower; usability review, 2026-10-09). The strip of links that scrolled sideways across the top is
   gone: the bar along the foot has the daily pages (Home, Menus, Screens) and More, which lists every page. Mark something
   sold out and Publish stay along the top, which now stays with the page, one row of 44 px buttons. The screen view stays
   above the bar. Tap targets are 44 px. */
.tabbar { display: none; }
@media (max-width: 600px) and (min-height: 501px) {
  .side .nav-list { display: none; }
  .side { flex-wrap: nowrap; padding: 8px 12px; }
  .side .locsw, .side .shopbox { flex: 1 1 0; min-width: 0; }
  .who > summary { padding: 4px; }
  .who > summary > .ic { display: none; }
  .top:not(:has(.visitbar)) { position: sticky; top: 0; z-index: 30; flex-wrap: nowrap; gap: 8px; min-height: 0; padding: 6px 12px; }
  .top:not(:has(.visitbar)) > .demoname, .top > .grow, .top > .chip, .top .demostrip > :not(.timer) { display: none; }
  .top .demostrip { flex: none; }
  .top .timer-l { display: none; }
  .top .oosbtn, .top .pubmenu { flex: 1 1 0; min-width: 0; }
  .top .oosbtn, .top .pubmenu > summary { width: 100%; min-height: 44px; justify-content: center; padding: 0 10px; }
  .top .oosbtn .fl, .top .pubmenu .fl, .top .pubmenu > summary > .ic:first-child { display: none; }
  .top .oosbtn .sh { display: inline-block; }
  .top .oosbtn .sh::first-letter { text-transform: uppercase; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #FFFFFF; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08); }
  .tab, .tabmore { flex: 1 1 0; min-width: 0; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 4px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; list-style: none; cursor: pointer; }
  .tab::-webkit-details-marker { display: none; }
  .tab .ic { width: 22px; height: 22px; }
  .tab.on, .tabmore[open] > .tab { color: var(--ink); box-shadow: inset 0 3px 0 var(--mustard); }
  .tabmore { position: static; }
  .tabbar:has(.tabmore[open]) { z-index: 70; } /* the sheet is inside the bar, so the bar goes over the screen view (60) while it is open */
  .tabsheet { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 70; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3); }
  .tabsheet .locit { min-height: 48px; }
  .tabsheet .locit .ic { width: 20px; height: 20px; flex-shrink: 0; }
  .page { padding-bottom: calc(var(--viewer-room, 200px) + 72px); }
  html { scroll-padding-bottom: calc(var(--viewer-room, 0px) + 72px); }
  .viewer, .viewer.big { bottom: calc(64px + env(safe-area-inset-bottom)); max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .btn, .btn.sm, .screenwork .after .btn { min-height: 44px; }
  .iconbtn { width: 44px; height: 44px; }
  .inp, select.inp, .iname .inp.desc, .addrow .iname .inp + .inp { min-height: 44px; }
  .scr-name, .menu-name { display: inline-flex; align-items: center; min-height: 44px; }
  .thumblink { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  /* The strip with the "After you publish" picture sticks below the bar along the top. */
  .screenwork .after { top: 63px; }
  html:has(.screenwork .after) { scroll-padding-top: 210px; }
  .tabsheet button.locit { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
  .tabsheet .endform { display: block; }
}

/* Settings' Seasonal events (ADR-0173): a tab for each kind of occasion, and a row for each event. */
.evtabs { flex-wrap: wrap; margin-bottom: 8px; }
.evtabs button { padding: 10px 14px; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font: inherit; font-weight: 600; cursor: pointer; }
.evtabs button.on { color: var(--ink); border-bottom-color: var(--mustard); }
.evcount { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--ok-bg); color: var(--ok); font-size: 12px; line-height: 18px; text-align: center; }
.evlist > .evrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.evlist > .evrow:first-child { border-top: 0; }
.evtext { flex: 1; min-width: 0; }
.evtext p { margin: 2px 0 0; }

/* ScranBot's change list: each affected screen as it is now and as it will be (Liam, 2026-10-16). */
.bot-pic { padding: 8px 16px 16px; }
.bot-pic h3 { margin: 0 0 8px; font-size: 15px; }
.bot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bot-pair figure { margin: 0; min-width: 0; }
.bot-pair figcaption { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 640px) { .bot-pair { grid-template-columns: 1fr; } }

/* Request a menu change: the live chat (Liam, 2026-10-16), like a direct message. */
.botchat { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.bothead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line, #DDD8CC); }
.bothead > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.botavatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, #D9A520); color: #111; }
.botavatar svg { width: 20px; height: 20px; }
.botagree { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.botother { margin: 16px 0; }
.botother > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.botlog { display: flex; flex-direction: column; gap: 8px; padding: 16px; height: min(60vh, 560px); min-height: 280px; overflow-y: auto; }
.botmsg { max-width: 82%; padding: 10px 14px; border-radius: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.botmsg p { margin: 0; }
.botmsg.bot { align-self: flex-start; background: var(--surface-2, #F1EEE6); border-bottom-left-radius: 4px; }
.botmsg.me { align-self: flex-end; background: var(--accent, #D9A520); color: #111; border-bottom-right-radius: 4px; }
.botmsg.wide { max-width: 100%; width: 100%; }
.botmsg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.botmsg.typing span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; animation: botdot 1.2s infinite ease-in-out; }
.botmsg.typing span:nth-child(2) { animation-delay: .2s; }
.botmsg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes botdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .8; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .botmsg.typing span { animation: none; opacity: .6; } }
.botchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.botchips .chip { cursor: pointer; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; padding: 6px 12px; border-radius: 999px; }
.botcompose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line, #DDD8CC); }
.botcompose textarea { flex: 1; min-width: 0; resize: none; max-height: 8em; }
.botphoto { cursor: pointer; }
.botnew { margin: 0; padding: 0 16px 12px; }

/* Lists that can grow (ADR-0212): the tools above the rows and the count and Show more under them. */
.listtools { margin: 8px 0 12px; }
.listtools .field.inline { flex-direction: row; align-items: center; gap: 6px; }
.listfoot { display: flex; align-items: center; gap: 12px; margin: 8px 0; }

/* The small "Watch it live" pill covered the page (Recent activity on Home, a form's fields on a phone; review
   2026-10-26, W21). It stays in its corner, bottom right, and the page keeps room under its last line, so it can
   scroll clear of the pill. */
.main { padding-bottom: 72px; }

/* A card that opens when asked for (review 2026-10-26, W28, W34): its heading is the summary, with a sign that it opens. */
details.card.sect > summary.sect-head { cursor: pointer; list-style: none; }
details.card.sect > summary.sect-head::-webkit-details-marker { display: none; }
details.card.sect > summary.sect-head h2::after { content: "▸"; margin-left: 8px; color: var(--muted, #6B7280); font-size: 0.8em; }
details.card.sect[open] > summary.sect-head h2::after { content: "▾"; }
details.card.sect:not([open]) > summary.sect-head { margin-bottom: 0; }

/* Opening hours, a row a day (ADR-0231). */
.hoursrow{gap:8px;align-items:center;flex-wrap:wrap}.hoursrow .check{min-width:5.5em}.hoursrow .inp{width:auto}

/* Gallery (W43): as the dashboard's dash.css. */
.gallerylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.galleryrow { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; }
.galleryrow .gallerytext { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }

/* Shops a page lists apart (an item's Other shops, fleet usability review 2026-10-29): folded under one line. */
.others > summary { cursor: pointer; padding: 6px 0; list-style: none; }
.others > summary::before { content: "▸ "; }
.others[open] > summary::before { content: "▾ "; }
.onlyshopprice .irow:not(.ihead):not([data-shopprice="1"]) { display: none; }
/* Home with several shops: one row a shop, its previews folded (fleet usability review 2026-10-29). */
.shoprows { display: flex; flex-direction: column; gap: 8px; }
.shoprow-home { padding: 10px 14px; }
.shoprow-home .shoprow-head { align-items: center; gap: 10px 16px; }
.shoprow-home .shop-stats { display: flex; gap: 8px; }
.shoprow-home .shop-head { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.shoprow-home .shop-t { display: flex; flex-direction: column; min-width: 0; }
.shoprow-home .st { display: flex; flex-direction: column; min-width: 64px; line-height: 1.2; }
.shoprow-home .shop-tvs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* Screens grouped under their profile: one preview, the screens as lines. */
.pgroup-body { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.pgroup-screens li { gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line, #eee); }
.pgroup-screens li:last-child { border-bottom: 0; }
@media (max-width: 640px) { .pgroup-body { grid-template-columns: 1fr; } .shoprow-home .st { min-width: 52px; } }
/* The publish page's screens on a profile, one line a profile that opens to its screens (the fleet review of 2026-10-29). */
.livelist li.col { display: block; }
.livegroup > summary { cursor: pointer; font-size: 13.5px; }
.livegroup > summary > .row { display: inline-flex; width: calc(100% - 20px); align-items: center; gap: 10px; }
.livegroup > .livelist { padding-left: 18px; }
