/* A living menu's Backstage pages (once named Today) (cloud/board/living-today-view.ts): Stetley's own chrome, navy ink on quiet surfaces, made
   for one thumb at 390 px and laid out again for a tablet and a laptop. The café's own colours and serif type live only
   inside the preview (.pv-screen), from the page's theme (backstage/<id>/theme.css sets --st-*; the ones here are the
   standard theme). Light and dark by the device's setting; every target at least 44 px; nothing here comes from a document. */
:root {
  --bg: #e9eef2; --surface: #fff; --raise: #f3f6f9; --ink: #1d2b44; --soft: #4a5870; --line: #d0d8e2; --stage: #dbe2ea;
  --accent: #3b5a8c; --accent-ink: #fff; --mast: #1d2b44; --mast-soft: #b9c4d6; --bezel: #1d2b44;
  --focus: #2f6fd6; --live: #1d7350; --sold: #a8231c; --sold-bg: #fdf1ef; --wait: #8a4b00; --wait-bg: #fff1dc;
  --lift: 0 1px 2px rgb(29 43 68 / .07), 0 10px 26px -18px rgb(29 43 68 / .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --st-brand: #22384a; --st-paper: #fcfbf8; --st-a: #8fa7b8; --st-b: #b8663a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121926; --surface: #1b2433; --raise: #222d40; --ink: #e8ecf2; --soft: #aab5c7; --line: #303d54; --stage: #0c121c;
    --accent: #9fbbe8; --accent-ink: #0f1a2b; --mast: #0c121c; --bezel: #3a4760;
    --focus: #9fc3ff; --live: #74d3a6; --sold: #ff9b92; --sold-bg: #2c1d24; --wait: #ffc979; --wait-bg: #3a2a12;
    --lift: 0 1px 2px rgb(0 0 0 / .4), 0 10px 26px -18px rgb(0 0 0 / .8); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 var(--sans); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the bar: whose page, and the way out */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); background: var(--mast); color: #f2f5f9; }
.brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 19px/1.2 var(--serif); }
.brand span { display: block; font: 650 11px/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mast-soft); }
.top nav { display: flex; flex: none; }
.top a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: inherit; font-size: 14.5px; font-weight: 600; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .45); }
.top a:hover { background: rgb(255 255 255 / .1); text-decoration-color: currentColor; }
.top :focus-visible { outline-color: #9fc3ff; }

/* a venue's own pages (the owner's): Service, Menus, Settings. Under the bar on a phone, in it on a laptop */
.top { flex-wrap: wrap; }
.tabs { order: 3; flex: 1 0 100%; display: flex; gap: 2px; margin: 2px 0 -6px -10px; overflow-x: auto; scrollbar-width: none; }
.tabs a { min-height: 44px; padding: 0 14px; border-radius: 0; border-bottom: 3px solid transparent; color: var(--mast-soft); text-decoration: none; }
.tabs a[aria-current] { border-bottom-color: #f2f5f9; color: #fff; }
main { display: grid; gap: 22px; max-width: 600px; margin: 0 auto; padding: 22px 16px calc(120px + env(safe-area-inset-bottom)); }
.ctl { display: grid; gap: 22px; min-width: 0; }
.head { display: flex; flex-direction: column; }
h1 { font: 600 clamp(36px, 8vw, 44px)/1.05 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.when, .kick { order: -1; margin-bottom: 6px; font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.lede { text-wrap: pretty; max-width: 36rem; margin-top: 10px; color: var(--soft); font-size: 16px; line-height: 1.5; }
.note { font-size: 14px; line-height: 1.45; color: var(--soft); }
.note strong { color: var(--ink); }
.head .note { margin-top: 8px; }
.warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--wait-bg); color: var(--wait); font-size: 14.5px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--lift); }
.card > * + * { margin-top: 10px; }
.sec { display: grid; gap: 10px; align-content: start; }
h2 { font: 600 21px/1.2 var(--serif); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head p { color: var(--soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); padding: 0 10px; }
.btn.quiet:hover { background: var(--raise); }
.btn.danger { color: var(--sold); }
.btn[disabled] { opacity: .5; cursor: default; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { --c: var(--live); flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.dot.off { --c: var(--sold); }
.dot.soon { --c: var(--wait); }
.state { display: flex; align-items: center; gap: 12px; font-size: 18px; }

/* now: the hours and the special, the state's colour down its edge */
.now { --c: var(--line); padding: 0 16px 0 14px; border-left: 4px solid var(--c); }
.now:has(.dot) { --c: var(--live); }
.now:has(.dot.soon) { --c: var(--wait); }
.now:has(.dot.off) { --c: var(--sold); }
.now > * + * { margin-top: 0; }
.now-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.now-row + .now-row { border-top: 1px solid var(--line); }
.now-what { flex: 1; min-width: 0; }
.now-what .note { margin-top: 3px; }
.now-what .state + .note { padding-left: 22px; }
.k { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.v { margin-top: 2px; font: 600 20px/1.25 var(--serif); overflow-wrap: anywhere; }

/* sold out */
.find { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.course-list { display: grid; gap: 16px; }
h3 { margin: 0 0 6px 2px; font-size: 14px; font-weight: 650; color: var(--soft); }
.dishes { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--lift); }
.dishes > li + li { border-top: 1px solid var(--line); }
.srow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px 6px 14px; transition: background .2s; }
.nm { flex: 1; min-width: 0; font-weight: 550; overflow-wrap: anywhere; }
.is-sold { background: var(--sold-bg); }
.is-sold .nm { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--sold); color: var(--soft); }
.switch { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 10px; border: 0; background: none; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--soft); }
.track { position: relative; width: 50px; height: 30px; border-radius: 15px; background: color-mix(in srgb, var(--soft) 38%, var(--surface)); transition: background .15s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s; }
.switch:is([aria-checked="true"], .on) { color: var(--sold); }
:is([aria-checked="true"], .on) .track { background: var(--sold); }
:is([aria-checked="true"], .on) .track::after { transform: translateX(20px); }
.lbl { min-width: 64px; text-align: right; }

/* today's changes, staff links */
.log li { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.log li + li { border-top: 1px solid var(--line); }
.log time { width: 64px; color: var(--soft); font-variant-numeric: tabular-nums; font-size: 14px; flex: none; }
.log li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.undone > span { text-decoration: line-through; color: var(--soft); }
.people li { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.people li + li { border-top: 1px solid var(--line); }
.who { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.who span { display: block; font-weight: 400; font-size: 14px; color: var(--soft); }

/* the list of menus, the way in, the welcome */
.menus { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.menus .card { display: flex; flex-direction: column; padding: 20px; }
.menus h2 { font-size: 24px; }
.menus .state { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.menus .note { overflow-wrap: anywhere; flex: 1; }
.menus .row-actions { margin-top: 16px; }
main[data-view="list"], main[data-view="welcome"] { max-width: 1120px; }
main[data-view="enter"] { max-width: 480px; padding-top: 12vh; text-align: center; }
main[data-view="enter"] .lede { margin-inline: auto; }
.hero { display: grid; gap: 30px; }
.hero .row-actions { margin-top: 20px; }
.hero .card { margin-top: 20px; }
.hero .lede { font-size: 17px; }
.points { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 8px; }
main[data-view="welcome"] h2 { font-size: 26px; }
.new h2 { margin-bottom: 4px; }
.points li { padding-top: 12px; border-top: 2px solid var(--ink); }
.points h3 { margin: 0 0 4px; font: 600 18px/1.25 var(--serif); color: var(--ink); }
.new { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.new > div:first-child { flex: 1 1 300px; }
.new > * + * { margin-top: 0; }
/* the drawing: a phone with the menu on it, and Today's switch that struck the croissant through */
.demo { position: relative; justify-self: center; width: 300px; max-width: calc(100% - 24px); margin-bottom: 44px; }
.phone { height: 500px; border: 9px solid var(--bezel); border-radius: 40px; background: var(--bezel); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(13 22 40 / .55); }
.phone .pv-screen { height: 100%; overflow: hidden; border-radius: 31px; font-size: 13.5px; }
.demo-tap { position: absolute; left: -12px; right: -12px; bottom: -40px; padding: 10px 6px 4px 2px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 36px -14px rgb(13 22 40 / .5); }
.demo-tap p { padding-left: 14px; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.demo-tap .srow { min-height: 48px; background: none; }

dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px 16px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -20px rgb(13 22 40 / .5); }
dialog::backdrop { background: rgb(10 16 28 / .55); }
dialog > * + * { margin-top: 12px; }
.choices { display: grid; gap: 6px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); margin: 0; }
.choice span span { font-size: 14px; color: var(--soft); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--raise); box-shadow: inset 0 0 0 1px var(--accent); }
.fields { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.field input { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 400; font-size: 16px; width: 100%; }
.hint { font-weight: 400; color: var(--soft); }
.err { color: var(--sold); font-size: 14px; font-weight: 600; }
.err:empty { display: none; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.toast { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 536px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 8px 8px 16px; border-radius: 12px; background: #1d2b44; color: #fff; box-shadow: 0 10px 30px rgb(10 16 28 / .35); font-size: 15px; }
.toast button { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; flex: none; }
@media (prefers-color-scheme: dark) { .toast { background: #e8ecf2; color: #121926; } }

/* ---- the preview: the page as readers see it, in the café's own colours. Only beside the controls, on a wide screen. */
.pv { display: none; }
.pv-screen {
  --m-bg: var(--st-paper); --m-head: var(--st-brand); --m-ink: color-mix(in srgb, var(--st-brand) 70%, #000); --m-rule: color-mix(in srgb, var(--st-a) 60%, var(--m-bg));
  --m-acc: var(--st-b); --m-acc-ink: color-mix(in srgb, var(--st-b) 58%, var(--m-ink)); --m-cover: color-mix(in srgb, var(--st-b) 8%, var(--m-bg)); --m-muted: color-mix(in srgb, var(--m-ink) 74%, var(--m-bg));
  container-type: inline-size; background: var(--m-bg); color: var(--m-ink); font: 15px/1.45 var(--serif);
}
@media (prefers-color-scheme: dark) {
  .pv-screen { --m-bg: color-mix(in srgb, var(--st-brand) 22%, #0e1210); --m-head: color-mix(in srgb, var(--st-brand) 26%, #fff); --m-ink: #ece7dc; --m-rule: color-mix(in srgb, var(--st-a) 38%, var(--m-bg));
    --m-acc: color-mix(in srgb, var(--st-b) 80%, #fff); --m-acc-ink: color-mix(in srgb, var(--st-b) 55%, #fff); --m-cover: color-mix(in srgb, var(--m-bg) 82%, #000); }
}
.m-head { padding: 2em 1.4em 1.5em; background: var(--m-cover); text-align: center; }
.m-kick { font: 700 .7em/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--m-acc-ink); }
.m-name { margin-top: .15em; font-size: 2.3em; font-weight: 600; line-height: 1.05; letter-spacing: -.015em; color: var(--m-head); text-wrap: balance; }
.m-sub { margin-top: .4em; font-style: italic; color: var(--m-acc-ink); }
.m-open { display: inline-flex; align-items: center; gap: 10px; margin-top: .9em; text-align: left; }
.m-open .dot { width: 9px; height: 9px; }
.m-open .dot:not(.off, .soon) { --c: #3e8e57; }
.m-open .dot.soon { --c: var(--m-acc); }
.m-open .dot.off { --c: var(--m-muted); }
.m-body { display: grid; gap: 1.3em; padding: 1.2em 1.4em 2.4em; }
.m-sp { padding: .8em 1.1em; border: 1px solid var(--m-acc); border-radius: 6px; background: color-mix(in srgb, var(--m-acc) 6%, transparent); }
.m-day { margin-bottom: .2em; font-size: 1.05em; font-style: italic; text-align: center; color: var(--m-head); }
.m-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.m-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 5px; border: 1.5px solid var(--m-rule); border-radius: 99px; font: 500 .84em/1.2 var(--sans); }
.tg { display: inline-block; min-width: 1.9em; padding: 0 .45em; border-radius: 99px; background: color-mix(in srgb, var(--st-a) 34%, var(--m-bg)); color: var(--m-ink); font: 700 9.5px/1.75 var(--sans); font-style: normal; letter-spacing: .03em; text-align: center; vertical-align: .1em; }
.tg + .tg { margin-left: 3px; }
.m-cols { display: grid; gap: 1.6em; }
.m-h { margin-bottom: .45em; font-size: 1.5em; font-weight: 600; line-height: 1.1; text-align: center; color: var(--m-head); }
.m-item { margin-inline: -6px; padding: .3em 6px; border-radius: 5px; }
.m-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; }
.m-line i { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--m-rule); transform: translateY(-4px); }
.m-line span:last-child { margin-left: auto; font-variant-numeric: lining-nums tabular-nums; }
.m-line:has(span:last-child:empty) i { visibility: hidden; }
.m-desc { font-size: .9em; font-style: italic; color: var(--m-muted); }
.m-desc em { display: inline-block; margin-left: 4px; padding: 0 5px; border: 1px solid; border-radius: 3px; color: var(--m-acc-ink); font: 600 10.5px/1.5 var(--sans); letter-spacing: .04em; white-space: nowrap; }
.is-out .m-line span { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--m-muted); font-weight: 500; }
/* what a venue's page has beyond one menu: a logo and a contact line, notices, the row of menus and each under its name,
   extras and the note at the foot; chips that can be pressed (preview.js) */
.m-logo { display: block; max-width: 46%; max-height: 5.4em; margin: 0 auto .8em; object-fit: contain; }
.m-contact { margin-top: .3em; font: .82em/1.4 var(--sans); color: var(--m-muted); }
.m-notes { display: grid; gap: 5px; }
.m-notes p { padding: .55em .9em; border-left: 3px solid var(--m-acc); border-radius: 5px; background: color-mix(in srgb, var(--m-acc) 13%, transparent); font: 600 .86em/1.4 var(--sans); }
.m-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.m-tab, .m-chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 13px; border: 1.5px solid var(--m-rule); border-radius: 99px; background: none; color: var(--m-ink); font: 500 .84em/1.2 var(--sans); transition: background .2s, border-color .2s, color .2s; }
.m-chips button { padding-left: 5px; }
.m-tab span { font-size: .9em; color: var(--m-muted); }
.m-tab[data-now]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3e8e57; }
:is(.m-tab, .m-chips button)[aria-pressed="true"] { border-color: var(--m-head); background: var(--m-head); color: var(--m-bg); }
.m-tab[aria-pressed="true"] span { color: inherit; opacity: .8; }
.m-menu { display: grid; gap: 1.3em; }
.m-mh { font-size: 1.9em; font-weight: 600; line-height: 1.1; text-align: center; color: var(--m-head); }
.m-mw { margin-top: -1.1em; font-style: italic; text-align: center; color: var(--m-muted); }
.m-menu.off .m-mw::before { content: "Not on now · "; font-style: normal; font-weight: 600; color: var(--m-acc-ink); }
.m-item { transition: opacity .3s, filter .3s; }
.m-item.dim { opacity: .3; filter: grayscale(1); }
.m-x { margin-top: .5em; padding-top: .45em; border-top: 1px dotted var(--m-rule); font-size: .88em; }
.m-x .m-line { font-weight: 400; }
.m-note { text-align: center; font-size: .86em; font-style: italic; color: var(--m-muted); }
@container (min-width: 620px) {
  .m-head { display: grid; grid-template-columns: 1fr auto; column-gap: 2em; align-items: end; padding: 2.2em 2.4em 1.8em; text-align: left; }
  .m-head > * { grid-column: 1; }
  .m-open { grid-column: 2; grid-row: 1 / span 3; }
  .m-body { padding: 1.4em 2.4em 2.6em; }
  .m-sp { display: grid; grid-template-columns: auto 1fr; column-gap: 1.6em; align-items: baseline; }
  .m-sp > :not(.m-day) { grid-column: 2; }
  .m-cols { display: block; columns: 3 15em; column-gap: 2.6em; column-rule: 1px dotted var(--m-rule); }
  .m-sec { break-inside: avoid; margin-bottom: 1.8em; }
}

/* ---- a tablet: the room is used, still no preview */
@media (min-width: 700px) {
  .top { padding-inline: 24px 16px; }
  main { max-width: 900px; padding: 34px 28px 120px; }
  h1 { font-size: 52px; }
  .ctl { grid-template-columns: 1fr 1fr; }
  .ctl > * { grid-column: 1 / -1; }
  .ctl > [aria-labelledby="h-day"], .ctl > #staff { grid-column: auto; }
  .now { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 20px; }
  .now-row + .now-row { border-top: 0; padding-left: 20px; box-shadow: -1px 0 var(--line); }
  .course-list { display: block; columns: 2; column-gap: 16px; }
  .course { break-inside: avoid; padding-bottom: 16px; }
  main[data-view="list"], main[data-view="welcome"] { padding-top: 48px; gap: 44px; }
  .hero { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(44px, 5.4vw, 64px); }
  .hero .lede { font-size: 19px; }
  .demo { margin: 0 12px 44px; }
  .card.new { padding: 24px; }
}
/* ---- a laptop: the controls, and beside them the page as readers see it */
@media (min-width: 1100px) {
  .top { position: sticky; top: 0; z-index: 5; height: 60px; }
  .top { flex-wrap: nowrap; }
  .tabs { order: 0; flex: 1 1 auto; align-self: stretch; margin: -6px 0 -6px 28px; }
  .tabs a { min-height: 60px; }
  main:is([data-view="owner"], [data-view="staff"]) { max-width: none; grid-template-columns: minmax(440px, 560px) minmax(0, 1fr); gap: 0; padding: 0; }
  .ctl { grid-template-columns: 1fr; padding: 32px 32px 120px; }
  .ctl > * { grid-column: auto; }
  .ctl h1 { font-size: 48px; }
  .now { display: block; }
  .now-row + .now-row { border-top: 1px solid var(--line); padding-left: 0; box-shadow: none; }
  .course-list { display: grid; columns: auto; }
  .course { padding-bottom: 0; }
  .pv { position: sticky; top: 60px; display: flex; flex-direction: column; gap: 16px; height: calc(100dvh - 60px); min-width: 0; padding: 16px 28px 28px; background: var(--stage); border-left: 1px solid var(--line); }
  .pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .pv-bar .note { max-width: 22rem; text-align: right; }
  .seg { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .seg label { position: relative; cursor: pointer; }
  .seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .seg span { display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--soft); transition: background .15s, color .15s; }
  .seg input:checked + span { background: var(--ink); color: var(--surface); }
  .seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
  .pv-frame { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 1040px; min-height: 0; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 60px -34px rgb(13 22 40 / .55); }
  .pv-url { flex: none; padding: 9px 14px 9px 76px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 20px 50%, var(--line) 5px, transparent 5.5px), radial-gradient(circle at 38px 50%, var(--line) 5px, transparent 5.5px), radial-gradient(circle at 56px 50%, var(--line) 5px, transparent 5.5px), var(--surface); font-size: 12.5px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pv-screen { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
  .pv:has([value="phone"]:checked) .pv-frame { width: 390px; max-height: 800px; border: 10px solid var(--bezel); border-radius: 46px; background: var(--bezel); }
  .pv:has([value="phone"]:checked) .pv-url { display: none; }
  .pv:has([value="phone"]:checked) .pv-screen { border-radius: 36px; scrollbar-width: none; }
  .toast { left: 32px; right: auto; margin: 0; width: min(496px, 100vw - 64px); }
}

/* small, purposeful motion; none where it is not wanted */
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: rise .18s ease-out; }
  .toast:not([hidden]) { animation: rise .2s ease-out; }
  .m-item.just { animation: land 1.8s ease-out; }
  .demo .track { animation: tap-track .3s 1.3s both; }
  .demo .track::after { animation: tap-thumb .3s 1.3s both; }
  .demo .is-out .m-line span { animation: strike .5s 1.7s both; }
  .demo .m-desc em { animation: appear .5s 1.7s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes land { 0%, 35% { background: color-mix(in srgb, var(--m-acc) 32%, transparent); } }
@keyframes tap-track { from { background: color-mix(in srgb, var(--soft) 38%, var(--surface)); } }
@keyframes tap-thumb { from { transform: none; } }
@keyframes strike { from { text-decoration-color: transparent; color: var(--m-ink); font-weight: 600; } }
@keyframes appear { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
