/* Admin app. Tokens and buttons live in /static/base.css. */

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---- top bar ---------------------------------------------------------------- */

.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 2rem; min-height: 3.5rem; }
.brand { color: #fff; text-decoration: none; font-size: 1.55rem; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 0.25rem; flex: 1; }
.nav a {
  color: #C9D1D9;
  text-decoration: none;
  font-weight: 600;
  padding: 1rem 0.75rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--ticket); }
.account-btn {
  background: none;
  border: 1px solid #44505D;
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-btn:hover { border-color: #fff; }
.trial-note { color: #C9D1D9; font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.trial-note:hover { color: #fff; text-decoration: underline; }

.block-banner { background: var(--heat); color: #fff; padding: 0.7rem 0; font-weight: 600; }
.block-banner .wrap { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.block-banner a { color: #fff; }

/* ---- the rail: unpublished changes hang here like order tickets ----------- */

.rail { background: var(--steel-1); border-bottom: 1px solid var(--steel-2); }
.rail-bar {
  height: 9px;
  background: linear-gradient(#DDE2E7, #B4BDC6 45%, #8F9AA6 55%, #C7CED5);
  border-bottom: 1px solid #7C8794;
}
.rail-row { display: flex; align-items: flex-start; gap: 1.5rem; padding-bottom: 1rem; }
.tickets { display: flex; flex-wrap: wrap; gap: 0 0.6rem; flex: 1; list-style: none; margin: 0; padding: 0; min-width: 0; }
.ticket-slot { margin-top: -3px; margin-bottom: 0.5rem; filter: drop-shadow(0 2px 1px rgba(23, 33, 43, 0.22)); }
.ticket {
  --tooth: 5px;
  background: var(--ticket);
  padding: 0.7rem 0.8rem calc(0.55rem + var(--tooth));
  min-width: 8.5rem;
  max-width: 15rem;
  font-size: 0.875rem;
  line-height: 1.3;
  /* a torn, perforated bottom edge */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tooth)) 100%;
}
.ticket-title { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-detail s { opacity: 0.6; }
.ticket-where { display: block; font-size: 0.75rem; margin-top: 0.15rem; opacity: 0.75; }
.ticket-more { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); text-decoration: underline; }
.rail-action { padding-top: 0.85rem; text-align: right; flex-shrink: 0; }
.rail-action p { font-size: 0.8125rem; color: var(--steel-4); margin-top: 0.35rem; }

.rail-quiet { padding: 0.6rem 0; font-size: 0.875rem; color: var(--steel-4); display: flex; align-items: center; gap: 0.5rem; }

.rail-result { display: flex; gap: 2rem; align-items: flex-start; padding: 1rem 0 1.1rem; flex-wrap: wrap; }
.rail-result h2 { font-size: 1.75rem; }
.channel-results { display: flex; gap: 1.75rem; flex: 1; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.channel-results li { flex: 1 1 13rem; font-size: 0.875rem; line-height: 1.4; }
.channel-results strong { display: flex; align-items: center; gap: 0.4rem; font-size: 1rem; }

/* ---- status marks ----------------------------------------------------------- */

.dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--steel-3); display: inline-block; flex-shrink: 0; }
.dot-on { background: var(--live); }

.mark { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; white-space: nowrap; }
.mark::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex-shrink: 0; }
.mark-ok::before { background: var(--live); }
.mark-simulated::before { border: 2px solid var(--steel-4); }
.mark-waiting::before { border: 2px solid var(--ticket-shade); background: var(--ticket); }
.mark-skipped::before { height: 2px; border-radius: 0; background: var(--steel-3); }
.mark-error::before { background: var(--heat); border-radius: 2px; }
.mark-error { color: var(--heat); }

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

.view { padding-top: 2rem; padding-bottom: 6rem; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.view-head h1 { font-size: 3rem; }
.lede { color: var(--steel-4); max-width: 46rem; margin-top: 0.5rem; }
.loading { color: var(--steel-4); padding: 2rem 0; }

.field { display: grid; gap: 0.3rem; }
.field > * { min-width: 0; }
.field > span { font-size: 0.875rem; font-weight: 600; }
.field small { color: var(--steel-4); }
.input, .select, .textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--steel-3);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  width: 100%;
  min-width: 0;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(31, 69, 216, 0.2); }
.check { display: flex; align-items: center; gap: 0.5rem; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--pen); }

.icon-btn {
  width: 2.1rem; height: 2.1rem;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--steel-4);
  font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.icon-btn:hover { background: var(--steel-1); color: var(--ink); }

/* ---- menu editor ------------------------------------------------------------- */

.scope { display: grid; gap: 0.3rem; min-width: 15rem; }
.scope span { font-size: 0.875rem; font-weight: 600; }
.scope-note { background: var(--paper); border-left: 4px solid var(--pen); padding: 0.75rem 1rem; margin-bottom: 1.5rem; max-width: 52rem; }

/* One tab per menu, sitting on top of the sheet it opens. */
.menu-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: -1px; }
.menu-tabs { border-bottom: 0; gap: 0.25rem; min-width: 0; }
.menu-tabs .tab {
  border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: 0;
  padding: 0.6rem 1rem; display: inline-flex; align-items: baseline; gap: 0.5rem;
}
.menu-tabs .tab:hover { background: var(--steel-1); }
.menu-tabs .tab[aria-selected="true"] { background: var(--paper); border-color: var(--steel-2); color: var(--ink); position: relative; z-index: 1; }
.tab-count { font-size: 0.75rem; font-weight: 600; color: var(--steel-4); }
.menu-bar + .sheet { border-top-left-radius: 0; }
.menu-bar + .empty { margin-top: 1rem; }

.sheet { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 0.5rem 1.5rem 1.5rem; }

.sec { padding-top: 1.5rem; }
.sec-head { display: flex; align-items: center; gap: 0.5rem; border-bottom: 3px solid var(--ink); padding-bottom: 0.25rem; }
.sec-name {
  flex: 1; min-width: 0;
  font-size: 1.75rem;
  border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink);
  padding: 0.2rem 0.4rem; margin-left: -0.4rem;
}
.sec-name:hover:not([readonly]) { border-color: var(--steel-2); }
.sec-name:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(31, 69, 216, 0.2); }
.sec-count { color: var(--steel-4); font-size: 0.875rem; white-space: nowrap; }

.row {
  display: grid;
  grid-template-columns: 2.4rem minmax(9rem, 1.15fr) minmax(9rem, 1.7fr) 10.5rem 7.25rem 8.25rem 2.1rem;
  grid-template-areas: "photo name desc tags price avail more";
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.3rem 0 0.3rem 0.6rem;
  margin-left: -0.6rem;
  border-bottom: 1px solid var(--steel-1);
  border-left: 4px solid transparent;
}
.row.is-pending { border-left-color: var(--ticket); background: linear-gradient(90deg, rgba(255, 216, 77, 0.16), transparent 30%); }
.row.is-out .cell-name { text-decoration: line-through; color: var(--steel-4); }

.cell {
  font: inherit; color: var(--ink);
  width: 100%; min-width: 0;
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  padding: 0.45rem 0.5rem;
  text-overflow: ellipsis;
}
.cell:hover:not([readonly]) { border-color: var(--steel-2); background: var(--paper); }
.cell:focus { outline: none; border-color: var(--pen); background: var(--paper); box-shadow: 0 0 0 3px rgba(31, 69, 216, 0.2); }
.cell[readonly] { cursor: default; }
.cell.is-bad { border-color: var(--heat); box-shadow: 0 0 0 3px rgba(194, 45, 27, 0.18); }
.cell-name { grid-area: name; font-weight: 650; }
.cell-desc { grid-area: desc; color: var(--steel-4); }
.cell-desc:focus { color: var(--ink); }

.price-box { display: flex; align-items: center; position: relative; }
.row > .price-box { grid-area: price; }
.price-box .symbol { position: absolute; left: 0.55rem; color: var(--steel-4); pointer-events: none; }
.cell-price { text-align: right; font-weight: 650; padding-left: 1.3rem; border-color: var(--steel-2); background: var(--paper); }
.price-wrap { grid-area: price; display: grid; gap: 0.1rem; }
.reset { background: none; border: 0; padding: 0; font: inherit; font-size: 0.75rem; color: var(--pen); cursor: pointer; justify-self: end; white-space: nowrap; text-decoration: underline; }
.reset[hidden] { display: none; }

.tags-btn {
  grid-area: tags;
  display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
  background: none; border: 1px solid transparent; border-radius: 6px;
  padding: 0.3rem 0.35rem; font: inherit; font-size: 0.8125rem; color: var(--steel-4);
  cursor: pointer; text-align: left; min-height: 2.1rem;
}
.tags-btn:hover:not([disabled]) { border-color: var(--steel-2); }
.tags-btn[disabled] { cursor: default; }
.chip { border: 1px solid var(--steel-3); border-radius: 3px; padding: 0 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--ink); white-space: nowrap; }

.avail { grid-area: avail; }
.switch { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 0; padding: 0.3rem 0.2rem; font: inherit; font-size: 0.875rem; color: var(--ink); cursor: pointer; border-radius: 6px; }
.switch-track { width: 2.3rem; height: 1.3rem; border-radius: 99px; background: var(--steel-3); position: relative; transition: background 0.15s; flex-shrink: 0; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.3rem - 4px); height: calc(1.3rem - 4px); border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch[aria-checked="true"] .switch-track { background: var(--live); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(1rem); }
.switch[aria-checked="false"] .switch-label { color: var(--heat); font-weight: 650; }
.only-here { display: block; font-size: 0.75rem; color: var(--steel-4); padding-left: 0.2rem; }

.row .icon-btn { grid-area: more; }

.row-add { border-bottom: 0; padding-top: 0.6rem; }
.row-add .cell { border-color: var(--steel-2); background: var(--paper); }
.row-add .btn { grid-column: 6 / -1; }

/* A photo of the dish: an empty dashed square until one is added. */
.photo-slot { grid-area: photo; width: 2.4rem; height: 2.4rem; }
.photo-slot.is-busy { opacity: 0.5; pointer-events: none; }
.photo-btn { position: relative; display: block; width: 100%; height: 100%; cursor: pointer; border-radius: 6px; }
.photo-btn:focus-within { outline: 3px solid var(--pen); outline-offset: 2px; }
.photo-thumb { display: block; width: 100%; height: 100%; border-radius: 6px; background-size: cover; background-position: center; }
.photo-empty { display: grid; place-items: center; width: 100%; height: 100%; border: 1px dashed var(--steel-3); border-radius: 6px; color: var(--steel-4); }
.photo-empty::before { content: ""; width: 1rem; height: 0.8rem; border: 2px solid currentColor; border-radius: 2px; box-shadow: inset 0 -0.3rem 0 -0.12rem currentColor; }
.photo-btn:hover .photo-empty { border-color: var(--pen); color: var(--pen); background: var(--paper); }

.add-section { display: flex; gap: 0.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed var(--steel-3); max-width: 32rem; }

.empty { background: var(--paper); border: 1px dashed var(--steel-3); border-radius: 10px; padding: 2.5rem 2rem; max-width: 44rem; }
.empty h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.empty .add-section { border-top: 0; padding-top: 0; margin-top: 1.25rem; }
.empty .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ---- locations ---------------------------------------------------------------- */

.loc { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; margin-bottom: 1.5rem; }
.loc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 1rem; flex-wrap: wrap; }
.loc-head h2 { font-size: 2rem; }
.loc-meta { color: var(--steel-4); font-size: 0.9375rem; margin-top: 0.25rem; }
.loc-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.channels { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border-top: 1px solid var(--steel-2); }
.channel { padding: 1.25rem 1.5rem 1.5rem; min-width: 0; }
.channel + .channel { border-left: 1px solid var(--steel-2); }
.channel h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.channel > p { font-size: 0.9375rem; color: var(--steel-4); }
.channel .stack { display: grid; gap: 0.9rem; margin-top: 1rem; }

.screen-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.25rem; }
.screen-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.1rem 0.6rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--steel-1); }
.screen-item .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-item .who span { font-size: 0.8125rem; color: var(--steel-4); }
.screen-actions { grid-column: 2; display: flex; gap: 0.25rem; flex-wrap: wrap; margin: 0.4rem 0 0 -0.1rem; }

.linkline { display: flex; gap: 0.5rem; align-items: center; }
.linkline a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.code { background: var(--steel-0); border: 1px solid var(--steel-2); border-radius: 6px; padding: 0.6rem 0.7rem; font: 0.8125rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; margin: 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
details[open] summary { margin-bottom: 0.75rem; }

.notice { background: var(--steel-0); border-radius: 6px; padding: 0.7rem 0.8rem; font-size: 0.875rem; }

/* ---- design studio --------------------------------------------------------------- */

.small { font-size: 0.875rem; }
.stack { display: grid; gap: 0.9rem; }

.studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.stage { position: sticky; top: 1rem; z-index: 5; }
.stage > p { margin-top: 0.6rem; }
/* The preview is the real screen page, framed like the TV it will run on: a bezel around the glass.
   The page inside is drawn at a TV's size and tv.js scales it to the glass. */
.tv { margin: 0 auto; padding: 0.6rem; border-radius: 0.6rem; background: #262B31; box-shadow: 0 1.2rem 2.4rem -1rem rgba(23, 33, 43, 0.45); }
.tv-glass { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #121212; }
.tv.is-vertical .tv-glass { aspect-ratio: 9 / 16; }
.tv-frame { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; }
.stage .tv.is-vertical { width: min(100%, max(11rem, (100vh - 15rem) * 9 / 16)); }

/* Above the studio preview: the layout and which way the TV hangs, each a row of joined choices. */
.shape-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem 1.25rem; margin-bottom: 0.9rem; }
.shape-bar .check, .shape-note { flex-basis: 100%; }
.seg-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-field legend { padding: 0; margin-bottom: 0.3rem; font-size: 0.875rem; font-weight: 600; }
.seg { display: flex; }
.seg-option {
  position: relative; display: flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem; border: 1px solid var(--steel-3); background: var(--paper);
  font-size: 0.9375rem; font-weight: 600; color: var(--steel-4); cursor: pointer; white-space: nowrap;
}
.seg-option + .seg-option { margin-left: -1px; }
.seg-option:first-child { border-radius: 6px 0 0 6px; }
.seg-option:last-child { border-radius: 0 6px 6px 0; }
.seg-option:hover { color: var(--ink); }
.seg-option.is-on { z-index: 1; border-color: var(--pen); background: var(--pen); color: #fff; }
.seg-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-option:focus-within { outline: 3px solid var(--pen); outline-offset: 2px; z-index: 2; }
.tv-shape { flex-shrink: 0; width: 1.25rem; height: 0.75rem; border: 2px solid currentColor; border-radius: 2px; }
.tv-shape.is-tall { width: 0.75rem; height: 1.25rem; }

.studio-panel { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; min-width: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--steel-2); overflow-x: auto; scrollbar-width: none; }
.tab {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: 0.9rem 1rem 0.7rem; font: inherit; font-weight: 650; color: var(--steel-4);
  white-space: nowrap; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: 1.1rem; }
.picker-group h3 { font-size: 0.9375rem; margin-bottom: 0.6rem; }
.apply-all { border-top: 1px solid var(--steel-2); padding-top: 1rem; }

/* One swatch per design, drawn by the same rules as the real screen (see /static/designs.css). */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: 0.85rem 0.6rem; }
.tile { display: grid; gap: 0.3rem; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.tile-board {
  --p: 5px; --hair: 1px;
  display: grid; align-content: center; gap: 0.35rem;
  height: 5.25rem; padding: 0.6rem 0.7rem; border-radius: 6px; overflow: hidden;
  outline: 1px solid rgba(23, 33, 43, 0.16); outline-offset: -1px;
  font-synthesis: none;
}
.tile-board[data-pattern="frame"] { padding: 0.85rem 0.95rem; }
.tile:hover .tile-board { outline-color: var(--steel-4); }
.tile[aria-pressed="true"] .tile-board { outline: 3px solid var(--pen); outline-offset: 2px; }
.tile-name { font-size: 0.8125rem; font-weight: 600; }
.tile[aria-pressed="true"] .tile-name { font-weight: 800; }
.tile[aria-pressed="true"] .tile-name::after { content: " \2713"; }
.tile-heading { justify-self: start; font-size: 0.8125rem; font-weight: 800; line-height: 1.1; }
.tile-line { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
[data-heading="underline"] > .tile-heading { justify-self: stretch; border-bottom: 2px solid var(--fg); padding-bottom: 2px; }
[data-heading="thin"] > .tile-heading { justify-self: stretch; border-bottom: 1px solid var(--fg); padding-bottom: 2px; font-weight: 600; }
[data-heading="double"] > .tile-heading { justify-self: stretch; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); padding: 2px 0; }
[data-heading="bar"] > .tile-heading { justify-self: stretch; background: var(--fg); color: var(--bg); padding: 2px 5px; }
[data-heading="accent-bar"] > .tile-heading { justify-self: stretch; background: var(--accent); color: var(--on-accent); padding: 2px 5px; }
[data-heading="tab"] > .tile-heading { background: var(--accent); color: var(--on-accent); padding: 2px 8px; border-radius: 99px; }
[data-heading="plain"] > .tile-heading { color: var(--accent); }
[data-price="accent"] > .tile-line b { color: var(--accent); }
[data-case="upper"] > .tile-heading, [data-case="upper"] > .tile-line { text-transform: uppercase; letter-spacing: 0.02em; }

.font-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.5rem; }
.font-option {
  display: grid; gap: 0.1rem; align-content: center; min-height: 3.1rem;
  background: var(--paper); border: 1px solid var(--steel-2); border-radius: 6px;
  padding: 0.5rem 0.7rem; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.font-option:hover { border-color: var(--steel-4); }
.font-option[aria-pressed="true"] { border-color: var(--pen); box-shadow: 0 0 0 2px var(--pen); }
.font-sample { font-size: 1.25rem; line-height: 1.2; font-synthesis: none; }
.font-note { font-size: 0.75rem; color: var(--steel-4); }

.logo-control { display: grid; gap: 0.75rem; justify-items: start; }
.logo-preview { border: 1px solid var(--steel-2); border-radius: 6px; padding: 0.75rem; background: repeating-conic-gradient(var(--steel-1) 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.logo-preview img { display: block; max-height: 5rem; max-width: 14rem; }
.file-button { position: relative; cursor: pointer; }
.file-button:focus-within { outline: 3px solid var(--pen); outline-offset: 2px; }
.file-button.is-busy { opacity: 0.55; pointer-events: none; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ways { margin: 0; }
.ways dt { font-weight: 700; margin-top: 0.6rem; }
.ways dd { margin: 0; color: var(--steel-4); }
.own-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.own-thumb { width: 8rem; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--steel-2); border-radius: 6px; }
.mode { display: flex; align-items: flex-start; gap: 0.6rem; border: 1px solid var(--steel-2); border-radius: 6px; padding: 0.65rem 0.8rem; cursor: pointer; }
.mode.is-on { border-color: var(--pen); box-shadow: 0 0 0 1px var(--pen); }
.mode input { margin-top: 0.3rem; accent-color: var(--pen); }
.mode strong { display: block; }
.mode span span { display: block; color: var(--steel-4); font-size: 0.9375rem; }
input[type="range"] { width: 100%; accent-color: var(--pen); }
input[type="color"] { width: 3.25rem; height: 2.25rem; padding: 2px; border: 1px solid var(--steel-3); border-radius: 6px; background: var(--paper); cursor: pointer; }
input[type="color"]:disabled { opacity: 0.4; cursor: default; }
.color-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.tag-settings { border: 1px solid var(--steel-2); border-radius: 6px; padding: 0.9rem 1rem; }

/* The restaurant's own menu image, with the live prices as draggable handles. */
.tag-canvas { width: 100%; border-radius: 6px; overflow: hidden; outline: 1px solid var(--steel-2); background: #000; touch-action: none; }
.tag-canvas > img { height: auto; }
.tag-handle { border: 0; font-family: inherit; cursor: grab; touch-action: none; }
.tag-handle:active { cursor: grabbing; }
.tag-handle.is-selected, .tag-handle:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pen); }

/* Reading a restaurant's own menu: the review of what was found, and editing it afterwards. */
[hidden] { display: none !important; }
.textarea { resize: vertical; line-height: 1.4; }
.read-block { display: grid; gap: 0.6rem; }
.notice progress { display: block; width: 100%; margin-top: 0.5rem; accent-color: var(--pen); }
.linked { display: grid; gap: 0.5rem; }
.linked h3 { font-size: 0.9375rem; }
.linked-item { display: grid; gap: 0.35rem; padding: 0.6rem 0; border-top: 1px solid var(--steel-1); }
.linked-head { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: 0.75rem; align-items: center; }
/* The name field borrows the menu editor's look, but not its place in that editor's grid. */
.linked-head .cell-name { grid-area: auto; margin-left: -0.5rem; }
.linked-notes:empty { display: none; }
.linked-notes p { margin-top: 0.15rem; }
.by-hand { border-top: 1px solid var(--steel-2); padding-top: 0.9rem; }
.by-hand[open] > summary { margin-bottom: 0.5rem; }
.by-hand > .stack { margin-top: 0.75rem; }

/* ---- preview of a menu: a wide dialog around the real screen page or menu page ------- */

dialog.sheet-dialog.is-wide { width: min(64rem, calc(100vw - 2rem)); }
dialog.is-wide .dialog-body { grid-template-columns: minmax(0, 1fr); }
dialog.is-wide .tabs { margin: 0 -1.5rem; padding: 0 1.5rem; }
.preview-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
/* As wide as the dialog allows, but never so tall that the dialog itself has to scroll. */
.preview-stage { width: min(100%, max(18rem, (100vh - 27rem) * 16 / 9)); margin: 0 auto; }
.preview-stage > [hidden] { display: none; }
/* A vertical TV is as tall as a horizontal one is wide, so it is kept narrow enough to stay in view. */
.preview-stage .tv.is-vertical { width: min(100%, max(11rem, (100vh - 27rem) * 9 / 16)); }
.preview-page, .preview-blank { width: 100%; aspect-ratio: 16 / 9; min-height: 20rem; border-radius: 0.6rem; }
.preview-page { display: block; border: 1px solid var(--steel-3); background: #fff; }
.preview-blank { display: grid; place-content: center; gap: 0.4rem; text-align: center; padding: 1.5rem; background: var(--steel-0); border: 1px dashed var(--steel-3); }
.preview-blank h3 { font-size: 1.25rem; }
.preview-blank p { max-width: 26rem; color: var(--steel-4); }
.preview-caption { max-width: 48rem; color: var(--steel-4); font-size: 0.9375rem; min-height: 2.8em; }

/* ---- add-ons on the Billing page ---------------------------------------------------- */

.add-ons { margin-top: 2.5rem; max-width: 62rem; }
.add-ons > h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.add-on { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.25rem 1.5rem; }
.add-on.is-on { border-color: var(--live); box-shadow: inset 4px 0 0 var(--live); }
.add-on h3 { font-size: 1.125rem; margin-bottom: 0.3rem; }
.add-on p { max-width: 44rem; }
.add-on .status-line { margin-top: 0.6rem; }
.add-on .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

.add-on + .add-on { margin-top: 0.75rem; }
.order-list { margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: 0.9375rem; }

/* ---- dayparts: the day's schedule, one card for each part ---- */

.daypart-now { max-width: 62rem; margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; background: var(--paper); border: 1px solid var(--steel-2); border-left: 4px solid var(--ticket); border-radius: 8px; display: grid; gap: 0.2rem; }
.daypart-list { display: grid; gap: 0.9rem; max-width: 62rem; }
.daypart-card { display: grid; gap: 0.9rem; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.1rem 1.25rem; }
.daypart-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.75rem 1rem; align-items: end; }
.daypart-when { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.day-toggles { display: flex; gap: 0.3rem; }
.day-toggle { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--steel-3); background: var(--paper); font: inherit; font-weight: 700; color: var(--steel-4); cursor: pointer; }
.day-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day-toggle:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.daypart-times { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.input-time { width: auto; }
.daypart-countdowns { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.inline-field { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9375rem; }
.select-small { width: auto; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.daypart-settings { display: grid; gap: 1rem; max-width: 62rem; margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; }
.daypart-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem 1rem; }
.daypart-screens { max-width: 62rem; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.daypart-screens h2 { font-size: 1.1rem; }
.daypart-screen-list { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.daypart-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; max-width: 62rem; margin-top: 1.5rem; padding: 0.8rem 0; background: var(--steel-0); border-top: 1px solid var(--steel-2); }

/* ---- social posts: profiles, the post, and a caption card for each platform ---- */

.social-card { display: grid; gap: 1rem; max-width: 62rem; margin-bottom: 1.25rem; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.25rem 1.5rem; }
.social-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.social-head h2 { font-size: 1.25rem; }
.profile-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.4rem 1.5rem; }
.profile-list li { display: flex; gap: 0.6rem; align-items: baseline; }
.profile-list a { overflow-wrap: anywhere; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem 1rem; }
.promo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 0.75rem 1rem; }
.social-row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1.5rem; }
.picture-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.post-picture { width: 7.5rem; height: 7.5rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--steel-2); display: block; }
.post-picture.is-empty { display: grid; place-items: center; background: var(--steel-0); color: var(--steel-4); font-size: 0.875rem; }
.picture-actions { display: grid; gap: 0.5rem; }
.caption-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 62rem; margin-bottom: 1.5rem; }
.caption-card { display: grid; gap: 0.55rem; align-content: start; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1rem 1.1rem; }
.caption-card.is-posted { border-color: var(--live); box-shadow: inset 4px 0 0 var(--live); }
.caption-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.caption-card h3 { font-size: 1.1rem; }
.caption-text { font: inherit; font-size: 0.9375rem; line-height: 1.45; resize: vertical; }
.caption-meta { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.caption-count { font-size: 0.8125rem; color: var(--steel-4); font-variant-numeric: tabular-nums; }
.caption-count.is-over { color: var(--heat); font-weight: 700; }
.caption-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.posted-mark { font-size: 0.875rem; font-weight: 700; color: var(--live); }
.social-posts { max-width: 62rem; }
.social-posts h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--steel-1); }
.post-list img, .post-thumb-empty { width: 3.25rem; height: 3.25rem; border-radius: 6px; object-fit: cover; display: block; background: var(--steel-1); }

/* ---- menu A/B tests: two versions side by side, what the sales say, and the days ---- */

.ab-group { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 62rem; }
.ab-group-title { font-size: 1.1rem; }
.ab-card { display: grid; gap: 0.9rem; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.25rem; }
.ab-card.is-ended { background: var(--steel-0); }
.ab-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ab-card h2 { font-size: 1.3rem; }
.ab-kept { flex-shrink: 0; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.8125rem; font-weight: 700; background: var(--steel-1); }
.ab-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ab-version { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem; border: 1px solid var(--steel-2); border-radius: 8px; }
.ab-version.is-showing { border-color: var(--pen); box-shadow: 0 0 0 1px var(--pen); }
.ab-letter { flex-shrink: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.ab-version:nth-child(2) .ab-letter { background: var(--pen); }
.ab-today { margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 700; color: var(--pen); }
.ab-photo { display: block; width: 7rem; height: 5rem; object-fit: cover; border-radius: 6px; margin-top: 0.25rem; }
.ab-verdict { font-weight: 650; max-width: 46rem; }
.ab-verdict.is-winner { color: var(--live); }
.ab-bars { display: grid; gap: 0.4rem; max-width: 40rem; }
.ab-bar { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 11rem; gap: 0.6rem; align-items: center; font-size: 0.9375rem; }
.ab-bar-label { font-weight: 800; }
.ab-bar-track { height: 0.75rem; background: var(--steel-1); border-radius: 99px; overflow: hidden; }
.ab-bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.ab-bar-fill.is-b { background: var(--pen); }
.ab-bar-value { color: var(--steel-4); }
.ab-card .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ab-sales { display: grid; gap: 0.75rem; border-top: 1px solid var(--steel-2); padding-top: 1rem; }
.ab-table { border-collapse: collapse; max-width: 26rem; }
.ab-table th { text-align: left; font-size: 0.8125rem; color: var(--steel-4); font-weight: 600; padding: 0 0.75rem 0.3rem 0; }
.ab-table td { padding: 0.2rem 0.75rem 0.2rem 0; border-top: 1px solid var(--steel-1); }
.ab-units { width: 6rem; padding: 0.3rem 0.5rem; }
.ab-chip { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fff; font-weight: 800; font-size: 0.8125rem; background: var(--ink); }
.ab-chip.is-b { background: var(--pen); }
.seg-wrap { flex-wrap: wrap; }

/* ---- menu design by our team: ordering on the Design page, fulfilling on Design orders ---- */

.service-pitch { display: grid; gap: 0.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--steel-2); }
.service-pitch h3 { font-size: 1.25rem; }
.service-price strong { font-size: 1.25rem; }
.ref-list { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.ref { display: grid; gap: 0.2rem; justify-items: center; }
.ref img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--steel-2); display: block; }
.order-card { display: grid; gap: 0.6rem; padding: 1.1rem; border: 1px solid var(--steel-2); border-radius: 10px; background: var(--steel-0); }
.order-card.is-ready { border-color: var(--live); box-shadow: inset 4px 0 0 var(--live); background: var(--paper); }
.order-card h3 { font-size: 1.15rem; }
.order-card .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.order-result { width: 100%; max-height: 22rem; object-fit: contain; background: #121212; border-radius: 8px; }
.staff-note { margin: 0; padding: 0.6rem 0.8rem; border-left: 4px solid var(--pen); background: var(--paper); }
.staff-note span { display: block; font-size: 0.8rem; font-weight: 700; color: var(--pen); }
.order-brief summary { cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.order-brief p { white-space: pre-wrap; margin: 0.4rem 0; }

.staff-orders { display: grid; gap: 1rem; padding-top: 1rem; max-width: 62rem; }
.staff-order { display: grid; gap: 0.8rem; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.25rem; }
.staff-order header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.staff-order h2 { font-size: 1.25rem; }
.staff-brief { white-space: pre-wrap; max-width: 46rem; padding: 0.75rem 0.9rem; background: var(--steel-0); border-radius: 8px; }
.staff-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0; font-size: 0.9375rem; }
.staff-facts dt { font-weight: 600; color: var(--steel-4); }
.staff-facts dd { margin: 0; overflow-wrap: anywhere; }
.staff-result img { max-width: 100%; max-height: 18rem; border-radius: 8px; background: #121212; }
.staff-controls { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.75rem 1rem; align-items: start; border-top: 1px solid var(--steel-2); padding-top: 0.9rem; }
.staff-controls .actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-chip { flex-shrink: 0; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.8125rem; font-weight: 700; background: var(--steel-1); }
.status-chip.is-requested { background: var(--ticket); }
.status-chip.is-in_progress { background: #DCE4FF; color: var(--pen); }
.status-chip.is-ready { background: #DDF2E6; color: var(--live); }

/* ---- allergens: the customer page's code, the ingredient list and each dish's answers ---- */

.allergen-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1.5rem; }
.qr-card, .note-card { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.25rem; }
.qr-card { display: grid; grid-template-columns: 9.25rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.qr-image { width: 9.25rem; height: 9.25rem; display: block; image-rendering: pixelated; border: 1px solid var(--steel-2); border-radius: 6px; }
.qr-text { display: grid; gap: 0.6rem; justify-items: start; }
.qr-text h2 { font-size: 1.25rem; }
.qr-text .scope { min-width: 12rem; }
.qr-text .linkline { max-width: 100%; }
.qr-text .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.note-card { display: grid; gap: 0.75rem; }
.note-input { resize: vertical; min-height: 5.5rem; font: inherit; }
.allergen-progress { font-weight: 650; margin-bottom: 0.75rem; }
.allergen-progress.is-done { color: var(--live); }
.allergen-body { padding-top: 0.5rem; max-width: 62rem; }
.allergen-menu { font-size: 1.6rem; margin-top: 1.75rem; }
.allergen-section h3 { margin-top: 1.25rem; padding-bottom: 0.3rem; border-bottom: 3px solid var(--ink); font-size: 1.05rem; }
.dish-list, .ingredient-list { list-style: none; margin: 0; padding: 0; }
.dish-row, .ingredient-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--steel-1); }
.dish-main, .ingredient-list li > div:first-child { min-width: 0; display: grid; gap: 0.1rem; }
.dish-row .btn, .ingredient-list .loc-actions { flex-shrink: 0; }
.dish-row.is-unlisted { box-shadow: inset 4px 0 0 var(--ticket); padding-left: 0.75rem; }
.unlisted { color: #8A4B00; font-weight: 600; }
.tag-warning { color: var(--heat); }
.ingredient-add { margin: 0.5rem 0 1rem; padding: 0; border: 0; }
.tick-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.tick-group legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.875rem; font-weight: 600; }
.tick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.45rem 1rem; margin-top: 0.4rem; }
.tick-grid .check { align-items: flex-start; flex-wrap: wrap; }
.tick-grid .check input { margin-top: 0.2rem; }
.tick-grid .check small { flex-basis: 100%; padding-left: 1.55rem; font-size: 0.8rem; line-height: 1.3; }
.suggest-note { color: var(--pen); font-weight: 600; min-height: 1.2em; }
.pick-list { display: grid; gap: 0.35rem; max-height: 18rem; overflow-y: auto; padding: 0.5rem 0.75rem; border: 1px solid var(--steel-2); border-radius: 8px; }
.pick-list .check { flex-wrap: wrap; }
.pick-list .check small { margin-left: auto; font-size: 0.8rem; }
.add-ingredient { justify-self: start; margin-top: 0.25rem; }
.dish-answer { font-weight: 650; }

/* ---- install: one dropdown of numbered steps for each channel ------------------------ */

.how-to { font-size: 0.875rem; margin-top: 0.35rem; }

.guide { display: grid; gap: 1rem; max-width: 62rem; }
.guide-item { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; }
.guide-item > summary {
  list-style: none; display: flex; align-items: center; gap: 1rem;
  margin: 0; padding: 1.1rem 1.5rem; font-size: 1rem; font-weight: 400; cursor: pointer; border-radius: 10px;
}
.guide-item > summary::-webkit-details-marker { display: none; }
.guide-item > summary h2 { font-size: 2rem; flex: 1; }
.guide-status { color: var(--steel-4); font-size: 0.9375rem; text-align: right; }
/* The arrow that shows a dropdown is closed (pointing down) or open (pointing up). */
.guide-item > summary::after {
  content: ""; width: 0.65rem; height: 0.65rem; flex-shrink: 0; margin: -0.3rem 0.25rem 0;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform 0.15s;
}
.guide-item[open] > summary::after { transform: rotate(-135deg); margin-top: 0.3rem; }
.guide-item[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--steel-2); border-radius: 10px 10px 0 0; }
.guide-body { padding: 1.25rem 1.5rem 0.75rem; }
.guide-intro { max-width: 46rem; }
.guide-body > .notice { margin-top: 1rem; max-width: 46rem; }
.guide-part { font-size: 1.25rem; margin-top: 2rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--ink); }

/* Numbered steps. The numbers are real: each step follows the one before. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--steel-1);
}
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
  content: counter(step);
  font-family: var(--font-display); font-stretch: 68%; font-weight: 800; font-size: 2.6rem; line-height: 0.85;
}
.steps h3 { font-size: 1.125rem; margin-bottom: 0.3rem; }
.steps p, .steps ul.plain { max-width: 44rem; }
.steps p + p, .steps p + ul, .steps ul + p, .steps pre + p, .steps .linkline + p, .steps p + .linkline, .steps p + pre, .steps h3 + .linkline { margin-top: 0.6rem; }
.steps ul.plain { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.steps .notice { margin-top: 0.75rem; max-width: 44rem; }
.steps code { white-space: nowrap; background: var(--steel-0); border: 1px solid var(--steel-2); border-radius: 4px; padding: 0.05rem 0.35rem; font: 0.875rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.steps .code { max-width: 44rem; }
.guide-screens { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; max-width: 44rem; }
.guide-link { margin-top: 0.15rem; }

/* ---- activity ------------------------------------------------------------------ */

.pub { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.pub-head { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.pub-head h2 { font-size: 1.125rem; }
.pub-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.pub-table th { text-align: left; font-weight: 600; color: var(--steel-4); font-size: 0.8125rem; padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--steel-2); }
.pub-table td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--steel-1); vertical-align: top; }
.pub-table td small { display: block; color: var(--steel-4); line-height: 1.35; margin-top: 0.15rem; max-width: 19rem; }
.change-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.change-list li { background: #FFF3C2; border-radius: 3px; padding: 0.1rem 0.45rem; font-size: 0.875rem; }
.change-list s { opacity: 0.6; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--pen); text-decoration: underline; cursor: pointer; }

/* ---- billing ------------------------------------------------------------------- */

.bill { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.bill-card { background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1.5rem; }
.sum { font-size: 4.5rem; }
.sum small { font-size: 1.25rem; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--steel-4); }
.bill-lines { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.bill-lines td { padding: 0.55rem 0; border-bottom: 1px solid var(--steel-1); }
.bill-lines td:last-child { text-align: right; }
.bill-lines tr:last-child td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 700; }
.bill-card h2 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.bill-card .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.status-line { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; }

/* ---- popovers, dialogs, toasts -------------------------------------------------- */

.popover {
  position: absolute; z-index: 30;
  background: var(--paper); border: 1px solid var(--steel-3); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.2);
  padding: 0.35rem; min-width: 11rem;
}
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 5px; padding: 0.5rem 0.65rem; font: inherit; color: var(--ink); cursor: pointer; }
.menu-item:hover:not([disabled]) { background: var(--steel-1); }
.menu-item[disabled] { color: var(--steel-3); cursor: default; }
.menu-item.is-danger { color: var(--heat); }
.popover .check { padding: 0.4rem 0.6rem; }

dialog.sheet-dialog {
  border: 0; border-radius: 12px; padding: 0;
  width: min(32rem, calc(100vw - 2rem));
  box-shadow: 0 24px 64px rgba(23, 33, 43, 0.35);
  color: var(--ink);
}
dialog.sheet-dialog::backdrop { background: rgba(23, 33, 43, 0.5); }
.dialog-body { padding: 1.5rem; display: grid; gap: 1rem; }
.dialog-body h2 { font-size: 1.75rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-top: 1px solid var(--steel-2); background: var(--steel-0); border-radius: 0 0 12px 12px; }
.dialog-actions .spacer { flex: 1; }
.form-error { color: var(--heat); font-weight: 600; font-size: 0.9375rem; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.4rem; }

.toasts { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 50; display: grid; gap: 0.5rem; max-width: min(26rem, calc(100vw - 2.5rem)); }
.toast { background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: 8px; box-shadow: 0 8px 24px rgba(23, 33, 43, 0.3); display: flex; gap: 1rem; align-items: center; }
.toast.is-error { background: var(--heat); }
.toast a { color: #fff; font-weight: 650; white-space: nowrap; }

/* ---- sign in -------------------------------------------------------------------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--ink); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { font-size: 1.75rem; }
.auth-side h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); max-width: 9em; }
.auth-side p { color: #C9D1D9; max-width: 26rem; margin-top: 1rem; }
.auth-main { padding: 3rem; display: grid; align-content: center; justify-items: start; }
.auth-form { width: 100%; max-width: 24rem; display: grid; gap: 1rem; }
.auth-form h2 { font-size: 2.25rem; }
.auth-switch { font-size: 0.9375rem; color: var(--steel-4); }
.auth-sent:empty { display: none; }
.auth-sent { margin: 0; padding: 0.75rem 0.9rem; border-radius: 6px; background: #E6F3EC; color: #0F5E37; font-weight: 600; }
.auth-legal { font-size: 0.875rem; color: var(--steel-4); }
.auth-demo { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--steel-2); max-width: 24rem; width: 100%; }
.auth-demo p { font-size: 0.9375rem; color: var(--steel-4); margin-bottom: 0.75rem; }

/* ---- small screens ---------------------------------------------------------------- */

@media (max-width: 60rem) {
  .studio { grid-template-columns: 1fr; }
  .stage { background: var(--steel-0); padding-bottom: 0.25rem; top: 0; }
  .channels { grid-template-columns: 1fr; }
  .channel + .channel { border-left: 0; border-top: 1px solid var(--steel-2); }
  .bill { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  .daypart-top, .daypart-settings-grid { grid-template-columns: 1fr; }
  .daypart-remove { justify-self: start; }
  .caption-grid, .promo-grid { grid-template-columns: 1fr; }
  .ab-versions { grid-template-columns: 1fr; }
  .ab-bar { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .ab-bar-value { grid-column: 2; }
  .staff-controls { grid-template-columns: 1fr; }
  .allergen-top { grid-template-columns: 1fr; }
  .qr-card { grid-template-columns: 1fr; }
  .add-on { grid-template-columns: 1fr; }
  .add-on .actions { justify-content: flex-start; }
  .dish-row, .ingredient-list li { flex-wrap: wrap; }
  /* The menu tabs take the full width; Preview and the other menu actions sit in a row above them. */
  .menu-bar { flex-wrap: wrap-reverse; gap: 0.6rem 1rem; }
  .menu-bar .menu-tabs { flex-basis: 100%; }
  .menu-bar .loc-actions { margin-left: auto; flex-wrap: nowrap; }
  dialog.is-wide .dialog-body { padding: 1rem; }
  dialog.is-wide .tabs { margin: 0 -1rem; padding: 0 1rem; }
  .guide-item > summary { padding: 1rem; flex-wrap: wrap; gap: 0.25rem 1rem; }
  .guide-item > summary h2 { font-size: 1.6rem; }
  .guide-body { padding: 1rem 1rem 0.5rem; }
  .steps > li { grid-template-columns: 2rem minmax(0, 1fr); gap: 0 0.75rem; }
  .steps > li::before { font-size: 2rem; }
  .top .wrap { flex-wrap: wrap; gap: 0 1rem; padding-top: 0.5rem; }
  .nav { order: 3; flex-basis: 100%; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav a { padding: 0.7rem 0.45rem; }
  .brand { flex: 1; }
  .trial-note { display: none; }
  .rail-row { flex-direction: column; gap: 0.25rem; }
  .rail-action { text-align: left; padding-top: 0; }
  .view-head h1 { font-size: 2.4rem; }
  .sheet { padding: 0.25rem 1rem 1.25rem; }
  .row {
    grid-template-columns: 2.4rem minmax(0, 1fr) 7rem 2.1rem;
    grid-template-areas: "photo name price more" "photo desc desc desc" "tags tags avail avail";
    padding-top: 0.5rem; padding-bottom: 0.5rem;
  }
  .row-add { grid-template-areas: "name name price price" "desc desc desc desc" "btn btn btn btn"; }
  .row-add .btn { grid-area: btn; }
  .avail { justify-self: end; }
  .pub-table, .pub-table tbody, .pub-table tr, .pub-table td { display: block; }
  .pub-table thead { display: none; }
  .pub-table td { border: 0; padding: 0.25rem 0; }
  .pub-table tr { border-bottom: 1px solid var(--steel-1); padding: 0.5rem 0; }
  .pub-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--steel-4); font-size: 0.8125rem; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 1.5rem; gap: 2rem; }
  .auth-main { padding: 2rem 1.5rem 3rem; }
  .sum { font-size: 3.5rem; }
}

/* ---- Design tab: every screen as it looks now ------------------------------------- */

.design-hub + .design-hub { margin-top: 2.25rem; }
.design-hub h2 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.design-card { display: grid; gap: 0.75rem; align-content: start; background: var(--paper); border: 1px solid var(--steel-2); border-radius: 10px; padding: 1rem; }
.design-card-tv { display: block; }
.design-card-tv .tv { box-shadow: none; }
/* A TV hung on its side stays a sensible size in the card. */
.design-card-tv .tv.is-vertical { max-width: 9.5rem; }
.design-card-text h3 { font-size: 1.125rem; }
.design-card-text p { font-size: 0.9375rem; margin-top: 0.15rem; }
.design-card .btn { justify-self: start; }

/* How text changed on a restaurant's own menu is lettered */
.lettering { display: grid; gap: 0.75rem; border-top: 1px solid var(--steel-1); padding-top: 1rem; }
.lettering h3 { margin: 0; font-size: 0.9375rem; }
.lettering-row { display: grid; gap: 0.4rem; }
.lettering-row p { margin: 0; }

/* Which version of a restaurant's own menu a vertical TV shows */
.vertical-block { display: grid; gap: 0.6rem; border-top: 1px solid var(--steel-1); padding-top: 1rem; }
.vertical-block h3 { margin: 0; font-size: 0.9375rem; }
.vertical-block p { margin: 0; }
