
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/dashboard/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/dashboard/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* "Dasbor putih" (owner, 3 Dec 2026: "jgn pake warna cream tapi full putih aja biar lbh enak diliet"): white cards on a
     barely-there neutral page, neutral grey lines, near-black text and primary buttons, a dark neutral sidebar. No cream, beige
     or brown-tinted grey anywhere; secondary text >= 7:1 on every light surface; status green / amber / red stay (darkened to 7:1). */
  color-scheme: light;
  --bg: #f7f7f7; --surface: #ffffff; --surface-2: #fafafa; --surface-3: #f2f2f2;
  --ink: #1a1a1a; --ink-strong: #0a0a0a; --ink-2: #404040; --ink-3: #525252; --line: #e5e5e5; --line-2: #d4d4d4; --field-line: #c4c4c4;
  --accent: #171717; --accent-text: #171717; --accent-soft: #f2f2f2; --accent-line: #d4d4d4;
  --chart: #262626; --chart-soft: #d4d4d4; --grid: #eeeeee;
  --primary: #171717; --primary-ink: #ffffff; --primary-hover: #333333;
  --good: #005f43; --good-soft: #ecfdf5; --good-line: #a4f4cf; --good-dot: #00a86f; --good-card: #f0fdf4; --good-card-line: #b9f8cf;
  --warn: #8a3a00; --warn-soft: #fff4e6; --warn-line: #f6cf9f; --warn-card: #fffaf2;
  --bad: #a3002b; --bad-soft: #fff1f2; --bad-line: #ffccd3; --on-bad: #ffffff; --bad-card: #fff7f8;
  --side-bg: #161616; --side-ink: #f5f5f5; --side-ink-2: #b5b5b5; --side-hover: #242424; --side-active: #2e2e2e; --side-active-line: #4a4a4a; --side-line: #2a2a2a; --gold: #e8b77a;
  --tip-bg: #171717; --tip-ink: #ffffff;
  --radius: 14px; --radius-sm: 10px; --gap: 1.25rem; --side: 16rem;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 1px 3px rgb(0 0 0 / .03);
  --font: "Plus Jakarta Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, SFMono-Regular, monospace;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #111111; --surface: #1a1a1a; --surface-2: #161616; --surface-3: #242424;
  --ink: #ededed; --ink-strong: #fafafa; --ink-2: #c8c8c8; --ink-3: #b0b0b0; --line: #2e2e2e; --line-2: #3d3d3d; --field-line: #4a4a4a;
  --accent: #e5e5e5; --accent-text: #f5f5f5; --accent-soft: #262626; --accent-line: #404040;
  --chart: #d4d4d4; --chart-soft: #525252; --grid: #262626;
  --primary: #f5f5f5; --primary-ink: #111111; --primary-hover: #ffffff;
  --good: #4fd9a0; --good-soft: #0d2a21; --good-line: #1d5a44; --good-dot: #2fd08f; --good-card: #0d1f1b; --good-card-line: #1b4a3a;
  --warn: #f5b94a; --warn-soft: #2c2110; --warn-line: #5a4417; --warn-card: #1d1910;
  --bad: #ff8fa3; --bad-soft: #3a1421; --bad-line: #6a2238; --on-bad: #1d0907; --bad-card: #22121a;
  --side-bg: #0b0b0b; --side-ink: #ededed; --side-ink-2: #a8a8a8; --side-hover: #1c1c1c; --side-active: #262626; --side-active-line: #404040; --side-line: #1f1f1f;
  --tip-bg: #ededed; --tip-ink: #111111;
  --shadow: 0 1px 2px rgb(0 0 0 / .4);
}
html { font-size: 100%; }
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2300px) { html { font-size: 125%; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-color: var(--line-2) transparent; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--ink-2); font-size: 1.125rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.err { color: var(--bad); font-weight: 600; margin: 0; }
.err:empty { display: none; }
.ok-note { color: var(--good); font-weight: 600; }
svg { flex: none; }

/* controls */
label { display: grid; grid-template-columns: minmax(0, 1fr); gap: .375rem; font-weight: 600; font-size: .9375rem; color: var(--ink); }
input[type=email], input[type=password], input[type=text], input[type=tel], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; height: 2.625rem; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--field-line); background: var(--surface); color: var(--ink);
  font-size: 1rem; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; padding-right: 2.25rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23525252' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[disabled], select[disabled] { opacity: .55; cursor: not-allowed; }
input[type=number] { width: 8rem; font-variant-numeric: tabular-nums; }
input[type=date] { font-variant-numeric: tabular-nums; }
::placeholder { color: var(--ink-3); opacity: 1; }
.btn { height: 2.625rem; padding: 0 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;
  font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgb(16 18 21 / .04); transition: background-color .15s ease, border-color .15s ease; }
.btn:hover { background: var(--surface-2); border-color: var(--field-line); text-decoration: none; }
.btn:active { background: var(--surface-3); }
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--bad); color: var(--on-bad); border-color: var(--bad); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 86%, #000); border-color: color-mix(in srgb, var(--bad) 86%, #000); }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.sm { height: 2.25rem; padding: 0 .75rem; font-size: .875rem; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); gap: 2px; flex-wrap: wrap; }
.seg button { height: 2.125rem; padding: 0 .875rem; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-weight: 600; font-size: .9375rem; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(16 18 21 / .14), 0 0 0 1px var(--line); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.login form { width: min(26rem, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.75rem; display: grid; gap: 1.1rem; box-shadow: 0 1px 3px rgb(16 18 21 / .06), 0 12px 32px rgb(16 18 21 / .06); }
.login h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.015em; }
.login p { margin: .25rem 0 0; color: var(--ink-2); }
.login .err { color: var(--bad); } /* audit 2 Dec 2026: ".login p" made "Wrong email or password" plain grey, not an error */
.login .btn-primary { height: 2.875rem; font-size: 1rem; }
.login .lang-row { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }

/* shell */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--side-bg); color: var(--ink); border-right: 1px solid var(--line);
  padding: 1.25rem .875rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.brand { padding: .25rem .625rem 1.25rem; display: grid; gap: 2px; }
.brand b { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.brand span { color: var(--ink-2); font-size: .875rem; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: .75rem; min-height: 2.625rem; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1rem; }
.nav a svg { width: 1.25rem; height: 1.25rem; color: var(--ink-2); }
.nav a:hover { background: var(--side-hover); }
.nav a[aria-current=page] { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.nav a[aria-current=page] svg { color: var(--accent-text); }
.nav-later { margin: 1.25rem .75rem 0; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.nav-later b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.side .foot { margin-top: auto; padding: 1rem .25rem 0; border-top: 1px solid var(--line); display: grid; gap: .75rem; }
.side .who { display: grid; gap: 1px; font-size: .9375rem; padding: .5rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.side .who small { color: var(--ink-2); font-size: .8125rem; overflow-wrap: anywhere; }
.side a.who:hover { background: var(--side-hover); }
.side a.who[aria-current=page] { background: var(--accent-soft); }
.side .foot-row { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.side .foot > .btn { width: 100%; }
.theme-btn span { white-space: nowrap; }
.main { padding: 1.75rem clamp(1rem, 2.4vw, 2.75rem) 4rem; min-width: 0; width: 100%; }
.top { display: none; }

/* page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; font-size: 1.875rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.page-head p { margin: .375rem 0 0; color: var(--ink-2); font-size: 1rem; max-width: 80ch; }
.page-head .actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.stamp { color: var(--ink-2); font-size: .875rem; }
.h2 { font-size: 1.125rem; margin: 0; letter-spacing: -.01em; font-weight: 650; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: 1.125rem 1.25rem 0; flex-wrap: wrap; }
.sheet-head p { margin: .25rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.sheet-head a, .band-link { font-weight: 600; font-size: .9375rem; }
.sheet-body { padding: 1.125rem 1.25rem 1.25rem; }
.soon { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 1.5rem; color: var(--ink-2); }
.empty { color: var(--ink-2); margin: 0; padding: 1.25rem; }

/* Ringkasan: status band (one card per booth) */
.band { margin-bottom: 1.75rem; }
.band-head { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .875rem; }
.band-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; font-weight: 700; }
.band-sum { margin: 0; color: var(--ink-2); font-size: 1rem; }
.band-sum b { color: var(--ink); font-size: 1.125rem; }
.band-link { margin-left: auto; }
.bgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: var(--gap); }
.bgrid:has(> li:only-child) { max-width: 34rem; }
.bcell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.125rem 1.25rem 1.25rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.bcell.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.bcell.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.bc-state { display: inline-flex; align-items: center; gap: .5rem; justify-self: start; font-weight: 650; font-size: .9375rem; padding: .25rem .625rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.bc-state i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.bc-state.good { background: var(--good-soft); color: var(--good); }
.bc-state.warn { background: var(--warn-soft); color: var(--warn); }
.bc-state.bad { background: var(--bad-soft); color: var(--bad); }
.bcell h3 { margin: .125rem 0 .25rem; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; overflow-wrap: anywhere; }
.bc-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; font-size: 1rem; color: var(--ink-2); }
.bc-row b { color: var(--ink); font-size: 1.125rem; font-weight: 650; text-align: right; }
.bc-row b.warn { color: var(--warn); } .bc-row b.bad { color: var(--bad); }
.bc-row .stale, .bc-row b.stale { color: var(--ink-3); font-weight: 600; }
.bc-sub { margin: -.25rem 0 0; color: var(--ink-2); font-size: .875rem; text-align: right; }
.bcell .meter { margin: 0 0 .25rem; }
.bc-issues { list-style: none; margin: .25rem 0 0; padding: .625rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .375rem; }
.bc-issues li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9375rem; font-weight: 600; color: var(--warn); }
.bc-issues li.bad { color: var(--bad); }
.bc-issues svg { width: 1.125rem; height: 1.125rem; margin-top: .1rem; }
.chips { display: flex; gap: .375rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 650; padding: .2rem .625rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.chip i { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.good { background: var(--good-soft); color: var(--good); }

/* Ringkasan: money + charts */
.ov-sales { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--gap); margin-bottom: var(--gap); align-items: start; }
@media (min-width: 1800px) { .ov-sales { align-items: stretch; } }
.ov-low { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(18rem, 1fr); gap: var(--gap); align-items: start; }
.ov-low.solo { grid-template-columns: minmax(0, 1fr); }
.money { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.375rem 0; display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.money h2 { margin: 0; font-size: 1rem; font-weight: 650; color: var(--ink-2); }
.hero { font-size: 2.75rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: .375rem; }
.hero-row { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-top: .625rem; }
.money .sub, .ledger .sub { color: var(--ink-2); font-size: .9375rem; }
.delta { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 650; padding: .2rem .625rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.delta svg { width: .95rem; height: .95rem; }
.delta.up { background: var(--good-soft); color: var(--good); }
.delta.down { background: var(--bad-soft); color: var(--bad); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0 -1.375rem; }
.fig { padding: .875rem 1.375rem; display: grid; gap: 2px; align-content: start; min-width: 0; }
.fig:nth-child(2n) { border-left: 1px solid var(--line); }
.fig:nth-child(n+3) { border-top: 1px solid var(--line); }
.fig .k { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.fig .v { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.015em; overflow-wrap: anywhere; }
.fig .n { font-size: .8125rem; color: var(--ink-3); }
.fig .mix { display: grid; gap: 1px; font-size: .9375rem; font-weight: 650; line-height: 1.35; margin-top: .125rem; }
.col { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.txsum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: .75rem 1.5rem; align-items: end; padding: 1.25rem 1.375rem; margin-bottom: var(--gap); }
.lead-fig { display: grid; gap: 2px; }
.lead-fig .k { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.lead-fig .hero { margin-top: .125rem; font-size: 2.25rem; }
.lead-fig .n { font-size: .8125rem; color: var(--ink-3); }
.txsum .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; margin: 0; }
.txsum .fig { padding: 0 0 0 1.125rem; border-left: 1px solid var(--line); border-top: 0; }

/* chart */
.chart { position: relative; padding: .5rem 1.25rem 1rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-card { display: flex; flex-direction: column; }
.chart-card .chart { flex: 1; min-height: 15rem; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--line-2); stroke-width: 1; }
.chart .axis { fill: var(--ink-2); font-size: .8125rem; font-family: var(--font); }
.chart .axis.today { fill: var(--ink); font-weight: 700; }
.chart .bar { fill: var(--chart-soft); }
.chart .bar.now { fill: var(--chart); }
.chart .hit { fill: transparent; }
.chart .hit:focus { outline: none; }
.chart g:hover .bar, .chart .hit:focus + .bar { fill: var(--chart); }
.chart .val { fill: var(--ink); font-size: .8125rem; font-weight: 700; font-family: var(--font); }
.chart.mini { padding: 0; }
.chart.mini svg { height: 5.75rem; }
.hours { display: grid; gap: .375rem; }
.hours-head { display: flex; justify-content: space-between; gap: .625rem; align-items: baseline; }
.hours-head .k { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.hours-head .peak { font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.tip { position: absolute; z-index: 3; pointer-events: none; background: var(--tip-bg); color: var(--tip-ink); border-radius: var(--radius-sm); padding: .5rem .75rem; font-size: .875rem; line-height: 1.4; box-shadow: 0 6px 20px rgb(0 0 0 / .2); transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; }
.tip b, .tip span { display: block; }
.tip b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.tip[hidden] { display: none; }

/* lists */
.calm { display: flex; gap: .625rem; align-items: center; color: var(--good); font-weight: 600; font-size: .9375rem; padding: .75rem 1rem; border-radius: 10px; background: var(--good-soft); margin: 0 0 var(--gap); }
.calm svg { width: 1.125rem; height: 1.125rem; }
.frames { list-style: none; margin: 0; padding: 0; }
.frames li { display: flex; justify-content: space-between; gap: .625rem; padding: .625rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.frames li:first-child { border-top: 0; }
.frames li span { overflow-wrap: anywhere; min-width: 0; }
.frames li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem; align-content: start; }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.data th { text-align: left; font-size: .875rem; font-weight: 650; color: var(--ink-2); padding: .625rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.data td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .small { font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
table.data td.strong { font-weight: 650; }
table.data .nw { white-space: nowrap; }
table.data td.run { font-weight: 650; }
.book .sheet-head { padding-bottom: .875rem; }
.pill { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 650; padding: .15rem .625rem; border-radius: 999px; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.pill i { width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.tag { display: inline-flex; font-size: .8125rem; font-weight: 650; padding: 0 .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }

/* Transaksi */
.late { margin-bottom: var(--gap); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.late h2 { display: flex; align-items: center; gap: .5rem; color: var(--warn); }
.late h2 svg { width: 1.25rem; height: 1.25rem; }
.late .sheet-head { padding-bottom: .875rem; }
.filters { padding: 1rem 1.25rem; display: grid; gap: .875rem; margin-bottom: var(--gap); }
.filters .row1 { display: flex; gap: .625rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filters .row2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.pager { display: flex; gap: .5rem; align-items: center; color: var(--ink-2); font-size: .9375rem; flex-wrap: wrap; }
.txcards { display: none; }

/* Analitik */
.ov-mid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(19rem, 1fr); gap: var(--gap); margin-bottom: var(--gap); align-items: stretch; }
.ov-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; margin-top: var(--gap); }
.filters .row2.an-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 56rem; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: 0; }
.dl dt, .dl dd { padding: .625rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.dl dt:first-of-type, .dl dd:first-of-type { border-top: 0; }
.dl dt { color: var(--ink-2); }
.dl dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.h2-row { display: flex; justify-content: space-between; align-items: baseline; gap: .625rem; margin-bottom: .75rem; flex-wrap: wrap; }
.small { font-size: .875rem; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: 2px .625rem; align-items: baseline; padding: .625rem 0; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank .pos { color: var(--ink-3); font-size: .875rem; font-weight: 650; }
.rank .nm { font-size: 1rem; overflow-wrap: anywhere; min-width: 0; }
.rank .v { font-size: .9375rem; font-weight: 650; white-space: nowrap; }
.rank .meter { grid-column: 2; margin: 2px 0 0; height: 6px; }
.rank .meter i { background: var(--chart); }
.rank .n { grid-column: 3; font-size: .8125rem; color: var(--ink-2); text-align: right; }
.sharecell { display: grid; gap: .25rem; min-width: 8rem; }
.sharecell .meter { margin: 0; height: 6px; }
.sharecell .meter i { background: var(--chart); }
.heat { display: grid; grid-template-columns: 2.5rem repeat(24, minmax(0, 1fr)); gap: 3px; }
.heat .hd { font-size: .875rem; color: var(--ink-2); font-weight: 650; align-self: center; }
.heat .hc { aspect-ratio: 1.6; min-height: 1rem; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--grid); }
.heat .hc:not(.zero) { border-color: transparent; }
.heat .ha { font-size: .8125rem; color: var(--ink-2); text-align: left; padding-top: .25rem; font-variant-numeric: tabular-nums; }
.heat-foot { display: flex; gap: .625rem 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: .875rem; font-size: .9375rem; }
.legend { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-2); font-size: .875rem; }
.legend i { width: 8rem; height: .5rem; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--chart) 14%, var(--surface)), var(--chart)); }
[data-heat-box] { position: relative; }
[data-heat-box] .tip { transform: translate(-50%, calc(-100% - 6px)); }

/* Voucher */
textarea { height: auto; padding: .625rem .75rem; resize: vertical; line-height: 1.5; }
input[type=file] { font-size: .9375rem; color: var(--ink-2); }
input[type=file]::file-selector-button { height: 2.25rem; padding: 0 .75rem; margin-right: .625rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .875rem var(--font); cursor: pointer; }
.code { font: 650 .9375rem/1.3 var(--mono); letter-spacing: .03em; }
/* align-items: start (audit 2 Dec 2026): a label stretched to its row's height spread the extra space between its text and its
   field, so a field beside a taller one (a hint or a "no use limit" tick under it) sat lower: Team's Booth list, Voucher's Kind */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .875rem 1rem; align-items: start; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); }
.form-grid .wide { grid-column: span 2; }
.vtools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.vtools .search { width: 18rem; }
.vform { margin-bottom: var(--gap); }
.vform form { display: grid; gap: 1rem; }
fieldset.mode, fieldset.menus { border: 0; padding: 0; margin: 0; display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; align-items: center; }
fieldset.mode legend, fieldset.menus legend { font-size: .9375rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: .5rem; float: left; width: 100%; }
label.radio { display: inline-flex; flex-direction: row; align-items: center; gap: .5rem; font-size: 1rem; color: var(--ink); font-weight: 500; }
input[type=radio], input[type=checkbox]:not(.switch) { accent-color: var(--accent); width: 1.125rem; height: 1.125rem; }
.vtable td { vertical-align: top; }
.vcards { display: none; }
.vcards article { padding: .875rem 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.vcards article:first-child { border-top: 0; }
.vcards .l1 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.vcards .l2 { display: flex; flex-wrap: wrap; gap: .25rem .875rem; color: var(--ink-2); font-size: .9375rem; }
.vcards p { margin: 0; }
.vc-red { border-top: 1px solid var(--line); padding-top: .5rem; }
.vtable .sharecell { min-width: 6rem; }
.sub-row td { background: var(--surface-2); }
.hist.red li { padding: .5rem .25rem; }
.print-area:empty { display: none; }
.print-tools { margin: var(--gap) 0; }
.cards-print { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px dashed #c9cdd4; }
.vcard { color: #15171c; background: #fff; padding: 16px 18px; border: 1px dashed #c9cdd4; display: grid; gap: 8px; break-inside: avoid; min-height: 62mm; }
.vc-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.vc-brand { font-weight: 700; }
.vc-kind { color: #4b525c; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.vc-body { display: grid; grid-template-columns: 34mm minmax(0, 1fr); gap: 14px; align-items: center; }
.vc-qr svg { width: 100%; height: auto; display: block; }
.vc-text { display: grid; gap: 4px; }
.vc-value { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.vc-code { font: 700 18px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.vc-until { font-size: 12px; color: #4b525c; }
.vc-how { margin: 0; font-size: 12px; color: #4b525c; }
@media print {
  @page { size: A4; margin: 10mm; }
  body * { visibility: hidden; }
  .cards-print, .cards-print * { visibility: visible; }
  .cards-print { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  .vcard { min-height: 66mm; }
}

/* Harga */
.price-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.price-form .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-form .unit input { width: 100%; }
.price-form > .form-grid { max-width: 44rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Audit 2 Dec 2026: the old Prices page's two-column layout from 1600 px (form left, [data-pprev] preview right) is gone;
   the Prices page moved into Booths > Settings in R8, but the rule stayed and caught the Team form and Profile, which use
   this class too: from 1600 px every ".price-form > .form-grid" was forced into row 1, column 1, so after "Cafe partner" the
   Booth list lay on top of the typed Name and Email (owner, 2 Dec 2026) and Profile split its headings from their fields. */
table.quote { max-width: 48rem; }
table.quote tr.flat td { background: var(--warn-soft); }

/* Galeri */
.inline-select { display: inline-flex; flex-direction: row; align-items: center; gap: .625rem; }
.inline-select select { width: auto; min-width: 14rem; }
.glist { list-style: none; margin: 0; padding: 0; }
.glist > li { border-top: 1px solid var(--line); padding: .875rem 1.25rem; }
.glist > li:first-child { border-top: 0; }
.g-main { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto auto; gap: .5rem 1.25rem; align-items: center; }
.g-when { display: grid; gap: 1px; }
.g-when span { font-size: .875rem; color: var(--ink-2); }
.g-what { display: grid; gap: 1px; min-width: 0; }
.g-what > span:first-child { overflow-wrap: anywhere; }
.g-files { margin-top: .875rem; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; align-items: start; }
.g-thumb { display: grid; gap: .25rem; text-decoration: none; color: var(--ink-2); font-size: .875rem; }
.g-thumb img, .g-thumb video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.g-thumb.main { grid-column: span 2; }
.g-thumb.main img { object-fit: contain; }

/* Tim */
.tmtable [data-tdis] { min-width: 8.5rem; }
/* the four account buttons wrap in two rows when the access chips need the width (never cut off at 1440 px) */
.tm-actions { display: flex; flex-wrap: wrap; gap: .375rem; justify-content: flex-end; min-width: 17.5rem; }
.tm-kind { min-width: 7rem; }
.tm-kind .pill { margin: .125rem 0; }
/* Opt-in access (owner, 25 Nov 2026): what each person can open, as chips; one tick per page, each saying what it opens */
.tm-acc { display: grid; gap: .375rem; justify-items: start; min-width: 14rem; }
.tm-acc .chips { gap: .25rem; }
.tm-acc .chip svg, .tm-opt-name svg { width: .875rem; height: .875rem; flex: none; }
.tm-form fieldset.tm-opts { border: 0; padding: 0; margin: 0; min-width: 0; }
.tm-opts legend { font-size: .9375rem; font-weight: 650; color: var(--ink); padding: 0; }
.tm-opts .tm-lead { margin: .25rem 0 .75rem; max-width: 70ch; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .5rem; max-width: 72rem; }
.tm-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .625rem; row-gap: .125rem; align-items: start; align-content: start; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.tm-opt input { grid-row: 1 / span 2; margin-top: .125rem; }
.tm-opt-name { display: inline-flex; align-items: center; gap: .375rem; font-weight: 650; color: var(--ink); }
.tm-opt-help { font-size: .8125rem; line-height: 1.35; color: var(--ink-2); }
.tm-opt:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.tm-opt:has(input:disabled) { cursor: not-allowed; background: var(--surface-2); }
.tm-opt:has(input:disabled) .tm-opt-name { color: var(--ink-3); }
.tm-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-count { margin: 0; color: var(--ink-2); }
.tm-count.warn { color: var(--warn); font-weight: 650; }
.tm-spv-hint { flex: 0 0 100%; margin: 0; }
/* An account without pages yet: who decides, and a way to ask the server again */
.nm .sheet-body { display: grid; gap: .75rem; justify-items: start; max-width: 42rem; padding: 1.75rem 1.5rem; }
.nm-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.nm-mark svg { width: 1.375rem; height: 1.375rem; }
.nm h2, .nm p { margin: 0; }
.nm p { max-width: 65ch; }

/* Generator QR */
.qr-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 1fr); gap: var(--gap); align-items: start; }
.qr-preview { position: sticky; top: 1rem; }
.qr-box { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; background: var(--surface-2); border-radius: var(--radius-sm); }
.qr-box svg { width: 100%; height: 100%; display: block; border-radius: 6px; }
.qr-box .qr-logo { position: absolute; width: 22%; height: 22%; object-fit: contain; background: #fff; padding: 2%; border-radius: 6px; }
.qr-preview [data-qr-text] { overflow-wrap: anywhere; text-align: center; }
.qr-preview .row-actions { justify-content: center; }

/* Booth */
.booths { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(30rem, 100%), 1fr)); gap: var(--gap); }
.booth { padding: 1.25rem; display: grid; gap: 1rem; align-content: start; }
.booth header { display: flex; align-items: flex-start; justify-content: space-between; gap: .625rem; }
.booth h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.booth .seen { margin: .25rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.problem { margin: 0; display: flex; gap: .5rem; align-items: flex-start; color: var(--bad); font-weight: 600; font-size: .9375rem; padding: .625rem .875rem; border-radius: 10px; background: var(--bad-soft); overflow-wrap: anywhere; }
.problem svg { width: 1.125rem; height: 1.125rem; margin-top: 1px; }
.facts2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.25rem; }
.fact { border-top: 1px solid var(--line); padding: .75rem 0; display: grid; gap: 2px; align-content: start; min-width: 0; }
.fact .k { font-size: .875rem; color: var(--ink-2); font-weight: 600; display: flex; gap: .375rem; align-items: center; }
.fact .k svg { width: 1rem; height: 1rem; }
.fact .v { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.fact .n { font-size: .8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.fact.warn .v { color: var(--warn); }
.fact.bad .v { color: var(--bad); }
.facts2.stale .v { color: var(--ink-3); font-weight: 600; }
.facts2.stale .fact.warn .v { color: var(--warn); } .facts2.stale .fact.bad .v { color: var(--bad); }
.meter.stale i { background: var(--ink-3); }
.stale-note { margin: 0; font-size: .875rem; color: var(--ink-2); }
.meter { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: .25rem; }
.meter i { display: block; height: 100%; width: 0; background: var(--good); border-radius: 99px; }
.meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.secret { margin-bottom: var(--gap); padding: 1.25rem; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); display: grid; gap: .625rem; }
.secret h2 { margin: 0; font-size: 1.125rem; }
.secret p { margin: 0; max-width: 75ch; }
.token { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; overflow-wrap: anywhere; }
.token code { font: 600 .9375rem/1.4 var(--mono); }
.inline-form { display: grid; gap: .5rem; max-width: 34rem; }
.add-slot:empty { display: none; }
.add-slot { margin-bottom: var(--gap); padding: 1rem; }
.confirm p { margin: 0 0 .5rem; }

/* Setelan booth (2c-3) */
.picker { min-width: min(17rem, 100%); }
.note { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; margin: 0 0 1rem; }
.note svg { width: 1.25rem; height: 1.25rem; color: var(--accent-text); margin-top: 1px; }
.note p { margin: 0; max-width: 80ch; font-size: .9375rem; }
.set-tools { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: .75rem; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; }
.tabs button { height: 2.25rem; padding: 0 .875rem; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.tabs button:hover { color: var(--ink); background: var(--surface); border-color: var(--line); }
.tabs button[aria-selected=true] { background: var(--primary); color: var(--primary-ink); }
.tabs .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--warn); }
.tabs button[aria-selected=true] .dot { background: var(--warn-soft); }
.search { position: relative; display: block; width: min(18rem, 100%); }
.search svg { position: absolute; left: .75rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 2.4rem; }
.srow { display: grid; grid-template-columns: minmax(0, 40rem) minmax(16rem, 24rem); justify-content: space-between; gap: .5rem 1.75rem; padding: 1rem 1.25rem; align-items: start; }
.set-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.set-main { min-width: 0; }
.set-side .h2 { margin-top: 1.5rem; }
@media (min-width: 1600px) {
  .set-cols { grid-template-columns: minmax(0, 72rem) minmax(20rem, 1fr); }
  .set-side { position: sticky; top: 1rem; }
  .set-side .h2 { margin-top: 0; }
}
.srow + .srow { border-top: 1px solid var(--line); }
.ssec { margin: 0; padding: 1.5rem 1.25rem .25rem; font-size: 1.0625rem; font-weight: 750; color: var(--ink); }
.ssec:first-child { padding-top: .75rem; }
.ssec + .srow { border-top: 0; }
.srow.has-err { background: var(--bad-soft); }
.srow .name { font-weight: 650; font-size: 1rem; display: block; color: var(--ink); }
.srow .help { margin: .125rem 0 0; color: var(--ink-2); font-size: .9375rem; max-width: 70ch; }
.srow .meta { display: grid; gap: .25rem; margin-top: .375rem; }
.srow .meta:empty { display: none; }
.srow .ctl { display: grid; gap: .25rem; justify-items: start; min-width: 0; }
.srow .ctl select, .srow .ctl input[type=text] { width: 100%; }
.srow .ro { color: var(--ink-2); padding-top: .6rem; font-size: 1rem; }
.field-err { margin: 0; color: var(--bad); font-weight: 600; font-size: .875rem; }
.field-err:empty { display: none; }
.tags { display: flex; gap: .375rem; flex-wrap: wrap; }
.stag { font-size: .8125rem; font-weight: 650; padding: .1rem .55rem; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.stag.dash { background: var(--accent-soft); color: var(--accent-text); }
.stag.new { background: var(--warn-soft); color: var(--warn); }
.ssub { font-size: .875rem; color: var(--ink-2); }
.unit { display: inline-flex; align-items: center; gap: .625rem; color: var(--ink-2); font-size: 1rem; }
.switch { appearance: none; width: 2.75rem; height: 1.5rem; border-radius: 999px; background: var(--line-2); border: 1px solid var(--field-line); position: relative; cursor: pointer; margin: .5rem 0 0; transition: background .15s ease; }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .15s ease; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::before { transform: translateX(1.25rem); }
.switch.unknown { background: var(--surface-2); border-style: dashed; }
.switch.unknown::before { transform: translateX(.625rem); background: var(--line-2); box-shadow: none; }
.color { display: flex; gap: .5rem; width: 100%; }
.color input[type=text] { font-variant-numeric: tabular-nums; }
.color input[type=color] { flex: none; width: 2.625rem; height: 2.625rem; padding: 3px; border-radius: var(--radius-sm); border: 1px solid var(--field-line); background: var(--surface); cursor: pointer; }
.color input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color input[type=color].none::-webkit-color-swatch { background-image: repeating-conic-gradient(var(--line) 0 25%, var(--surface) 0 50%); background-size: 12px 12px; }
.color input[type=color].none::-moz-color-swatch { background-image: repeating-conic-gradient(var(--line) 0 25%, var(--surface) 0 50%); background-size: 12px 12px; }
.savebar { position: sticky; bottom: .75rem; z-index: 4; margin-top: .875rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--primary); color: var(--primary-ink); border-radius: var(--radius); padding: .625rem .75rem .625rem 1rem; box-shadow: 0 10px 30px rgb(0 0 0 / .22); }
.savebar[hidden] { display: none; }
.savebar p { margin: 0; font-size: .9375rem; }
.savebar p .field-err { display: block; margin-top: 2px; color: color-mix(in srgb, var(--bad) 55%, var(--primary-ink)); }
.savebar .ok-note { color: color-mix(in srgb, var(--good) 55%, var(--primary-ink)); }
.savebar .btn { background: transparent; color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 30%, transparent); }
.savebar .btn:hover { background: color-mix(in srgb, var(--primary-ink) 10%, transparent); }
.savebar .btn-primary { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); }
.savebar .btn-primary:hover { background: color-mix(in srgb, var(--primary-ink) 88%, var(--primary)); }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .25rem 1rem; align-items: baseline; padding: .75rem 1.125rem; border-top: 1px solid var(--line); }
.hist li:first-child { border-top: 0; }
.hist li span { color: var(--ink-2); font-size: .9375rem; }
.hist .what { color: var(--ink); min-width: 0; overflow-wrap: anywhere; font-size: 1rem; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: .75rem; }

/* WP5: readiness on the Booth page, incidents, server label, Peringatan */
.env-tag { display: inline-flex; align-items: center; gap: .375rem; font-size: .875rem; font-weight: 650; padding: .2rem .625rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.env-tag svg { width: 1rem; height: 1rem; }
.page-head p .env-tag { margin-left: .5rem; vertical-align: middle; }
.ribbon { margin: 0; display: flex; gap: .5rem; align-items: flex-start; font-weight: 650; font-size: .9375rem; padding: .5rem .875rem; border-radius: 10px; background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.ribbon.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.ribbon svg { width: 1.125rem; height: 1.125rem; margin-top: 1px; }
.booth .rd-issues { margin: 0; padding-top: 0; border-top: 0; }
.inc { border-top: 1px solid var(--line); padding-top: .75rem; display: grid; gap: .375rem; }
.inc-h { margin: 0; font-size: .9375rem; font-weight: 650; color: var(--ink); }
.inc-none { margin: 0; display: flex; gap: .5rem; align-items: center; color: var(--good); font-weight: 600; font-size: .9375rem; }
.inc-none svg { width: 1.125rem; height: 1.125rem; }
.inc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.inc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .125rem .75rem; font-size: .9375rem; padding: .375rem .625rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.inc-list li.bad { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.inc-list li.warn { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.inc-what { min-width: 0; overflow-wrap: anywhere; }
.inc-when { color: var(--ink-2); }
.inc-list li.bad .inc-when, .inc-list li.warn .inc-when { color: inherit; }
.al-open { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.al-open li { border: 1px solid var(--line); border-radius: 10px; padding: .75rem .875rem; display: grid; gap: .25rem; }
.al-open li.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); }
.al-open li.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.al-l1 { display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap; }
.al-l1 b { font-size: 1.0625rem; }
.al-l1 .num { margin-left: auto; }
.al-what { margin: 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.al-open p.small { margin: 0; }
.al-hist td { vertical-align: top; }
.al-hist .pill { margin-right: .25rem; }

@media (max-width: 1280px) {
  .ov-sales { grid-template-columns: minmax(0, 1fr); }
  .txsum { grid-template-columns: 1fr; align-items: start; }
  .txsum .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0 -1.375rem; }
  .txsum .fig { padding: .875rem 1.375rem; border-left: 0; }
  .txsum .fig:nth-child(2n) { border-left: 1px solid var(--line); }
  .txsum .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .filters .row2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phone + small tablet */
@media (max-width: 900px) {
  /* rows: the bar keeps its height on a short page (the "no pages yet" page, Profile); the page takes the rest */
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .top { display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); padding: .625rem .875rem; }
  .top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.0625rem; }
  .top .btn { width: 2.625rem; padding: 0; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(19rem, 86vw); z-index: 10; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 40px rgb(0 0 0 / .3); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 9; }
  .main { padding-top: 1.25rem; }
  .ov-low, .ov-mid, .ov-half, .qr-layout { grid-template-columns: minmax(0, 1fr); }
  .qr-preview { position: static; }
}
@media (max-width: 600px) {
  .main { padding: 1rem 1rem 3.5rem; }
  .page-head h1 { font-size: 1.5rem; }
  .hero { font-size: 2.25rem; }
  .filters .row2 { grid-template-columns: 1fr 1fr; }
  .facts2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .lead-fig .hero { font-size: 1.875rem; }
  .table-wrap.tx { display: none; }
  .txcards { display: grid; }
  .txcards article { padding: .75rem .875rem; border-top: 1px solid var(--line); display: grid; gap: .25rem; }
  .txcards article:first-child { border-top: 0; }
  .txcards .l1 { display: flex; justify-content: space-between; gap: .625rem; align-items: baseline; }
  .txcards .l1 b { font-variant-numeric: tabular-nums; font-size: 1rem; }
  .txcards .l2 { color: var(--ink-2); font-size: .875rem; display: flex; gap: .375rem .625rem; flex-wrap: wrap; align-items: center; }
  .byb th:nth-child(2), .byb td:nth-child(2), .byb th:nth-child(5), .byb td:nth-child(5) { display: none; }
  .book th:nth-child(2), .book td:nth-child(2) { display: none; }
  table.data th, table.data td { padding-left: .75rem; padding-right: .75rem; }
  .srow { grid-template-columns: 1fr; padding: .875rem; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  .h2-row .pill { white-space: normal; }
  input[type=file] { max-width: 100%; }
  .form-grid .wide { grid-column: 1 / -1; }
  .g-main { grid-template-columns: minmax(0, 1fr) auto; }
  /* audit 2 Dec 2026: the frame line had the "auto" column beside the time, so a long frame name pushed over the time and
     the booth name; now time + status on the first line, the frame line under them at full width */
  .g-main .g-what { grid-column: 1 / -1; grid-row: 2; }
  .g-main .row-actions { grid-column: 1 / -1; }
  .glist > li { padding: .75rem .875rem; }
  .inline-select, .inline-select select { width: 100%; }
  .cards-print { grid-template-columns: 1fr; }
  .table-wrap.vt { display: none; }
  .vcards { display: grid; }
  .vtools, .vtools .search { width: 100%; }
  .filters .row2.an-filters { grid-template-columns: 1fr 1fr; }
  .filters .row2.an-filters label:last-child { grid-column: 1 / -1; }
  .heat { grid-template-columns: 1.75rem repeat(24, minmax(0, 1fr)); gap: 2px; }
  .heat .hc { aspect-ratio: auto; min-height: 1rem; border-radius: 2px; }
  .heat .ha { font-size: .6875rem; }
  .byb2 th:nth-child(4), .byb2 td:nth-child(4), .byb2 th:nth-child(5), .byb2 td:nth-child(5) { display: none; }
  .search { width: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; scrollbar-width: thin; }
  .hist li { grid-template-columns: auto minmax(0, 1fr); }
  .hist .what { grid-column: 1 / -1; }
  .savebar { bottom: .5rem; }
  .band-link { margin-left: 0; }
  .qr-box { width: 100%; }
  /* opt-in access: on a phone each account is one stacked block (name, type, what it can open, buttons), nothing to the side */
  .tmtable thead { display: none; }
  .tmtable, .tmtable tbody, .tmtable tr, .tmtable td { display: block; width: auto; }
  .tmtable tbody tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .tmtable tbody tr:last-child { border-bottom: 0; }
  table.data.tmtable td { border-bottom: 0; padding: .25rem 1rem; }
  table.data.tmtable tbody tr:hover td { background: transparent; }
  .tmtable td:nth-child(4) { display: none; }
  .tmtable td.r { text-align: left; }
  .tm-acc, .tm-actions, .tm-kind { min-width: 0; }
  .tm-actions { justify-content: flex-start; padding-top: .25rem; }
  .fig .v { font-size: 1.125rem; }
  .money .fig .v { white-space: nowrap; }
  .figs .fig { padding-left: 1rem; padding-right: 1rem; }
  .al-l1 .num { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .side, .switch, .switch::before, .btn, input, select { transition: none; } }

/* WP6 (kerja malam 22 Nov): Perlu ditindaklanjuti, Ringkasan notes, archived lists */
.fu-list { list-style: none; margin: 0; padding: 0; }
.fu-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: .5rem 1.25rem; align-items: start; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.fu-item:first-child { border-top: 0; }
.fu-item.handled { background: var(--surface-2); }
.fu-when { display: grid; gap: 2px; }
.fu-when span { font-size: .875rem; color: var(--ink-2); }
.fu-what { display: grid; gap: .25rem; min-width: 0; justify-items: start; }
.fu-what p { margin: 0; overflow-wrap: anywhere; }
.fu-title { font-weight: 650; color: var(--ink); font-size: 1rem; }
.fu-hint { color: var(--ink-2); font-size: .9375rem; max-width: 72ch; }
.fu-done { display: flex; gap: .375rem; align-items: center; color: var(--good); font-weight: 600; font-size: .9375rem; }
.fu-done svg { width: 1.125rem; height: 1.125rem; flex: none; }
.fu-side { display: grid; gap: .375rem; justify-items: end; text-align: right; }
.fu-slot { grid-column: 1 / -1; }
.fu-form { display: grid; gap: .5rem; max-width: 36rem; padding: .875rem 1rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.sheet > .fu-form { margin: 0 1.25rem 1rem; }
.ov-notes { list-style: none; margin: .875rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .25rem; color: var(--ink-2); font-size: .9375rem; }
.ov-notes a { font-weight: 600; }
.arch-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.arch-list li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.arch-list li .btn { margin-left: auto; }
.sheet.archived { margin-top: var(--gap); }
.problem.mb { margin-bottom: var(--gap); }
.vfield { display: grid; gap: .375rem; align-content: start; }
.vfield .radio { font-weight: 500; }
.g-slot:empty { display: none; }
.g-slot { margin-top: .75rem; }
@media (max-width: 900px) {
  .fu-item { grid-template-columns: minmax(0, 1fr); padding: .875rem 1rem; }
  .fu-side { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: .75rem; }
}

/* R3: Frame library */
.fr-filters { padding: 1rem 1.25rem 1.125rem; display: grid; gap: 1rem; margin-bottom: var(--gap); }
.fr-counts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.fr-count { display: inline-flex; align-items: baseline; gap: .5rem; padding: .5rem .875rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.fr-count b { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.fr-count span { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.fr-count:hover:not([disabled]) { background: var(--surface-2); border-color: var(--line-2); }
.fr-count[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.fr-count[aria-pressed=true] span { color: var(--accent-text); }
.fr-count.warn b, .fr-count.warn span { color: var(--warn); }
.fr-count[disabled] { cursor: default; }
.fr-sync { margin: 0 0 0 auto; display: flex; align-items: center; gap: .5rem; color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.fr-sync svg { width: 1.25rem; height: 1.25rem; }
.fr-frow { display: grid; grid-template-columns: minmax(12rem, 1.3fr) repeat(5, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.fr-frow.partner { grid-template-columns: minmax(12rem, 1.3fr) repeat(4, minmax(0, 1fr)); }
.fr-frow > label { min-width: 0; }
.fr-frow > .fr-search { width: auto; }
.fr-fnote { margin: -.25rem 0 0; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; color: var(--ink-2); font-size: .9375rem; }
.fr-selbar { position: sticky; top: .75rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: var(--gap);
  padding: .5rem .625rem .5rem 1.125rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 30px rgb(0 0 0 / .22); }
.fr-selbar b { margin-right: auto; font-size: 1rem; }
.fr-selbar .btn { background: transparent; color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 30%, transparent); }
.fr-selbar .btn:hover { background: color-mix(in srgb, var(--primary-ink) 10%, transparent); }
.fr-selbar .btn-primary { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); }
.fr-selbar .btn-primary:hover { background: color-mix(in srgb, var(--primary-ink) 88%, var(--primary)); }
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14.5rem, 100%), 1fr)); gap: var(--gap); }
.fr-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fr-card.picked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.fr-thumb, .fr-checker, .fr-mini { background-color: var(--surface); background-image: conic-gradient(var(--surface-3) 25%, transparent 0 50%, var(--surface-3) 0 75%, transparent 0); background-size: 1.25rem 1.25rem; }
.fr-thumb { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 1rem; border-bottom: 1px solid var(--line); }
.fr-thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 1px 3px rgb(16 18 21 / .22)); }
.fr-card.off .fr-thumb img { opacity: .55; }
.fr-pick { position: absolute; top: .625rem; left: .625rem; display: flex; padding: .375rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgb(16 18 21 / .12); cursor: pointer; }
.fr-pick input { width: 1.25rem; height: 1.25rem; margin: 0; cursor: pointer; }
.fr-size { position: absolute; top: .625rem; right: .625rem; font-size: .875rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.fr-body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: .875rem 1rem 1rem; }
.fr-l1 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fr-cat { display: inline-flex; align-items: center; gap: .375rem; min-width: 0; font-size: .875rem; font-weight: 650; color: var(--ink-2); overflow-wrap: anywhere; }
.fr-cat svg { width: 1rem; height: 1rem; }
.fr-card h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fr-where { margin: 0; display: flex; gap: .45rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); overflow-wrap: anywhere; }
.fr-where svg { width: 1.125rem; height: 1.125rem; margin-top: .125rem; }
label.fr-active { display: inline-flex; flex-direction: row; align-items: center; gap: .625rem; font-size: .9375rem; font-weight: 600; justify-self: start; align-self: flex-start; cursor: pointer; }
.fr-active .switch { margin: 0; }
.fr-active .switch[disabled] { cursor: not-allowed; opacity: .55; }
.fr-problem { margin: 0; display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: .5rem .625rem; border-radius: 8px; }
.fr-problem svg { width: 1rem; height: 1rem; margin-top: .125rem; }
.fr-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .875rem; margin: .125rem 0 0; padding-top: .625rem; border-top: 1px solid var(--line); font-size: .875rem; }
.fr-meta dt { color: var(--ink-2); }
.fr-meta dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.fr-actions { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; padding-top: .375rem; }
.fr-actions .btn { flex: 1 1 auto; }
.fr-actions .fr-del { flex: 0 0 auto; color: var(--bad); }
.fr-actions .fr-del span { display: none; }
.fr-pager { justify-content: flex-end; margin-top: var(--gap); }
.fr-empty { display: grid; justify-items: center; gap: .75rem; text-align: center; padding: 3.5rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.fr-empty h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.fr-empty p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.fr-empty-art svg { width: 2.75rem; height: 2.75rem; color: var(--ink-2); }

/* R3: dialogs (upload, metadata, bulk edit, categories, delete) */
dialog.dlg { padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); width: min(46rem, calc(100vw - 2rem)); max-height: min(60rem, calc(100vh - 2rem)); box-shadow: 0 24px 64px rgb(0 0 0 / .3); overflow: hidden; }
dialog.dlg.wide { width: min(76rem, calc(100vw - 2rem)); }
dialog.dlg.sm { width: min(34rem, calc(100vw - 2rem)); }
dialog.dlg::backdrop { background: rgb(16 18 21 / .5); }
.dlg-form { display: flex; flex-direction: column; max-height: min(60rem, calc(100vh - 2rem)); margin: 0; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 1rem 1.375rem; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.dlg-x { width: 2.25rem; padding: 0; }
.dlg-body { padding: 1.25rem 1.375rem; overflow: auto; flex: 1; display: grid; gap: 1.125rem; align-content: start; }
.dlg-foot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .875rem 1.375rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.dlg-foot .err { margin-right: auto; flex: 1 1 18rem; }
.fr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: start; }
.fr-fields .wide { grid-column: 1 / -1; }
fieldset.fr-set { border: 0; margin: 0; padding: 0; grid-column: 1 / -1; min-width: 0; }
fieldset.fr-set legend { padding: 0; margin-bottom: .5rem; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.fr-opts { display: grid; gap: .5rem; }
.fr-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fr-opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label.fr-opt { display: flex; flex-direction: row; align-items: flex-start; gap: .625rem; padding: .75rem .875rem; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-weight: 400; background: var(--surface); }
label.fr-opt:hover { border-color: var(--field-line); }
label.fr-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
label.fr-opt.dis { opacity: .55; cursor: not-allowed; }
.fr-opt input { margin: .15rem 0 0; flex: none; }
.fr-opt > span { display: grid; gap: 2px; min-width: 0; }
.fr-opt b { font-size: 1rem; font-weight: 650; color: var(--ink); }
.fr-opt small { font-size: .875rem; color: var(--ink-2); line-height: 1.4; }
.fr-boothlist { display: flex; flex-wrap: wrap; gap: .625rem 1.5rem; margin-top: .75rem; padding: .875rem 1rem; border: 1px dashed var(--line-2); border-radius: 10px; }
.fr-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: .75rem 1rem; margin-top: .75rem; }
.fr-price { display: grid; gap: .375rem; }
.fr-price > span:first-child { font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.fr-price .unit { width: 100%; }
.fr-price .unit input { width: 100%; }
.fr-hint { margin: 0; color: var(--ink-2); font-size: .9375rem; max-width: 72ch; }
.fr-fixed { margin: 0; display: flex; align-items: center; gap: .5rem; padding: .75rem .875rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.fr-fixed svg { width: 1.125rem; height: 1.125rem; color: var(--ink-2); }
.fr-ro, .fe-ro { margin: 0; display: flex; align-items: flex-start; gap: .5rem; padding: .625rem .875rem; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: .9375rem; }
.fr-ro svg, .fe-ro svg { width: 1.125rem; height: 1.125rem; margin-top: .1rem; color: var(--ink-2); }
.fr-metahead, .fr-delbody { display: flex; align-items: center; gap: 1rem; }
.fr-metahead p, .fr-delbody p { margin: 0; display: grid; gap: .25rem; }
.fr-metahead p span { color: var(--ink-2); font-size: .9375rem; }
.fr-metahead .fr-dl { margin-left: auto; }
.fr-delbody p { display: block; }
.fr-delbody b { display: block; font-size: 1.0625rem; margin-bottom: .25rem; }
.fr-mini { flex: none; width: 4.75rem; height: 4.75rem; display: block; padding: .375rem; border: 1px solid var(--line); border-radius: 10px; }
.fr-mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fr-up { display: grid; grid-template-columns: minmax(18rem, 28rem) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.fr-upleft { display: grid; gap: .875rem; position: sticky; top: 0; }
label.fr-drop { position: relative; display: grid; justify-items: center; gap: .5rem; padding: 3rem 1.25rem; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); text-align: center; cursor: pointer; font-weight: 400; }
.fr-drop:hover, .fr-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.fr-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.fr-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fr-drop b { font-size: 1.0625rem; font-weight: 650; }
.fr-drop > span:not(.fr-dropart) { color: var(--ink-2); font-size: .9375rem; max-width: 34ch; }
.fr-dropart svg { width: 2.5rem; height: 2.5rem; color: var(--ink-2); }
.fr-preview { display: grid; gap: .75rem; justify-items: start; }
.fr-checker { width: 100%; display: grid; place-items: center; padding: .875rem; border: 1px solid var(--line); border-radius: 12px; }
.fr-checker canvas { display: block; max-width: 100%; max-height: 28rem; width: auto; height: auto; filter: drop-shadow(0 1px 3px rgb(16 18 21 / .22)); }
[data-pfacts] { margin: 0; display: grid; gap: .3rem; }
[data-pfacts] b { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
[data-pfacts] span { color: var(--ink-2); font-size: .9375rem; }
[data-pfacts] .fr-warnline, [data-pfacts] .fr-okline { display: flex; gap: .45rem; align-items: flex-start; font-weight: 600; }
[data-pfacts] .fr-warnline { color: var(--warn); }
[data-pfacts] .fr-okline { color: var(--good); }
.fr-warnline svg, .fr-okline svg { width: 1.125rem; height: 1.125rem; margin-top: .1rem; }
.fr-catadd { display: flex; gap: .5rem; align-items: flex-end; }
.fr-catadd label { flex: 1; }
.fr-catlist { list-style: none; margin: 0; padding: 0; }
.fr-catlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.fr-catname { display: grid; gap: 1px; min-width: 0; }
.fr-catname b { font-size: 1rem; overflow-wrap: anywhere; }
.fr-catname small { color: var(--ink-2); font-size: .875rem; }
.fr-catslot { grid-column: 1 / -1; }
.fr-catslot:empty { display: none; }
.fr-catform { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fr-catform input { flex: 1 1 14rem; width: auto; }
.fr-catform p { margin: 0; flex-basis: 100%; font-weight: 600; }

/* R3: layout editor */
.fe { display: grid; gap: .75rem; }
.fe-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.fe-name { flex: 1 1 16rem; max-width: 30rem; }
.fe-name input { height: 2.875rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
.fe-facts { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .875rem; color: var(--ink-2); font-size: 1rem; }
.fe-facts b { color: var(--ink); }
.fe-save { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fe-state { color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.fe-state.dirty { color: var(--warn); }
.fe-tools { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem .625rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fe-group { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; padding-right: .5rem; border-right: 1px solid var(--line); }
.fe-group:last-child { border-right: 0; padding-right: 0; }
.fe-orient button { height: 1.875rem; padding: 0 .625rem; font-size: .875rem; }
.fe-tools .btn[aria-pressed=true], .fe-view .btn[aria-pressed=true], .fe-colour .btn[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.fe-colour { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fe-chint { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: .9375rem; }
label.fe-swatch, label.fe-tol { display: flex; flex-direction: row; align-items: center; gap: .625rem; }
.fe-swatch input[type=color] { width: 2.75rem; height: 2.25rem; padding: 2px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.fe-tol input[type=range] { width: 11rem; accent-color: var(--accent); }
.fe-tol b { min-width: 2rem; font-variant-numeric: tabular-nums; }
.fe-notice { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.fe-notice:empty { display: none; }
.fe-notice .fe-msg { pointer-events: auto; flex: 0 1 auto; flex-wrap: nowrap; max-width: min(60rem, 100%); box-shadow: 0 8px 28px rgb(16 18 21 / .22); }
.fe-notice .fe-msg > span { flex: 0 1 auto; min-width: 10rem; }
.fe-notice .fe-msg .btn { flex: none; }
.fe-msg { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .5rem .5rem .5rem .875rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9375rem; }
.fe-msg > svg { width: 1.125rem; height: 1.125rem; }
.fe-msg > span { flex: 1 1 22rem; }
.fe-msg.good { background: color-mix(in srgb, var(--good-soft) 70%, var(--surface)); color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.fe-msg.warn { background: color-mix(in srgb, var(--warn-soft) 80%, var(--surface)); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.fe-msg.bad { background: color-mix(in srgb, var(--bad-soft) 80%, var(--surface)); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.fe-msg .btn { color: var(--ink); }
.fe-msgx { width: 2.25rem; padding: 0; }
.fe-main { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: var(--gap); align-items: start; }
.fe-stagewrap { display: grid; gap: .5rem; min-width: 0; }
.fe-stage { position: relative; height: 32rem; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.fe-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fe-stage > canvas, .fe-stage > svg { position: absolute; left: 0; top: 0; }
.fe-stage.picking, .fe-stage.picking * { cursor: crosshair !important; }
.fe-stage.panning, .fe-stage.panning * { cursor: grab !important; }
.fe-halo { fill: none; stroke: #ffffff; stroke-width: 7; stroke-opacity: .85; }
.fe-num { fill: #ffffff; font: 700 1rem var(--font); pointer-events: none; }
.fe-cap { fill: rgb(16 18 21 / .8); pointer-events: none; }
.fe-captext { fill: #ffffff; font: 650 .8125rem var(--font); pointer-events: none; font-variant-numeric: tabular-nums; }
.fe-handle { fill: #ffffff; stroke: #101215; stroke-width: 1.5; }
.fe-rot { fill: #ffffff; stroke: #101215; stroke-width: 2; }
.fe-rotline { stroke: #101215; stroke-width: 1.5; stroke-dasharray: 3 3; }
.fe-guide { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 5 4; pointer-events: none; }
.fe-view { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.fe-zoom { display: flex; align-items: center; gap: .375rem; }
.fe-zoom > .btn:not(:last-child) { width: 2.25rem; padding: 0; }
.fe-zoom b { min-width: 3.75rem; text-align: center; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.fe-panel { display: grid; gap: .75rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; align-content: start; }
.fe-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .875rem 1rem 1rem; display: grid; gap: .625rem; min-width: 0; }
.fe-sec h3 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.fe-props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem .75rem; }
.fe-props .wide { grid-column: 1 / -1; }
.fe-props input[type=number] { width: 100%; }
.fe-hint { margin: 0; color: var(--ink-2); font-size: .875rem; }
.fe-ok { margin: 0; display: flex; gap: .5rem; align-items: flex-start; padding: .625rem .75rem; border-radius: 10px; background: var(--good-soft); color: var(--good); font-weight: 600; font-size: .9375rem; }
.fe-ok svg { width: 1.125rem; height: 1.125rem; margin-top: .1rem; }
.fe-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.fe-issues li { display: flex; gap: .5rem; align-items: flex-start; padding: .5rem .625rem; border-radius: 8px; font-size: .9375rem; font-weight: 600; }
.fe-issues li.bad { background: var(--bad-soft); color: var(--bad); }
.fe-issues li.warn { background: var(--warn-soft); color: var(--warn); }
.fe-issues svg { width: 1.05rem; height: 1.05rem; margin-top: .15rem; }
.fe-issues .linkbtn { color: inherit; }
.fe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 24rem; overflow: auto; }
.fe-list button { width: 100%; display: grid; grid-template-columns: .875rem auto minmax(0, 1fr) auto; gap: .5rem; align-items: center; text-align: left; padding: .5rem .625rem; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; font-size: .9375rem; }
.fe-list button:hover { background: var(--surface-2); }
.fe-list button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent-line); }
.fe-list i { width: .875rem; height: .875rem; border-radius: 4px; }
.fe-list span { color: var(--ink-2); font-size: .875rem; overflow-wrap: anywhere; }
.fe-keys summary { cursor: pointer; display: flex; align-items: center; gap: .5rem; font-weight: 650; }
.fe-keys summary svg { width: 1.125rem; height: 1.125rem; color: var(--ink-2); }
.fe-keys dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem .75rem; margin: .75rem 0 0; font-size: .875rem; align-items: baseline; }
.fe-keys dt { margin: 0; }
.fe-keys dd { margin: 0; color: var(--ink-2); }
kbd { font: 650 .8125rem/1.3 var(--mono); padding: .1rem .4rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
@media (max-width: 1500px) { .fe-facts { display: none; } }
@media (max-width: 1280px) {
  .fe-main { grid-template-columns: minmax(0, 1fr) 20rem; }
  .fr-frow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fr-frow > .fr-search { grid-column: 1 / -1; }
  .fr-up { grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .fe-main { grid-template-columns: minmax(0, 1fr); }
  .fe-panel { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }
}
@media (max-width: 900px) {
  .fr-up { grid-template-columns: minmax(0, 1fr); }
  .fr-upleft { position: static; }
  .fr-fields, .fr-opts.two, .fr-opts.three { grid-template-columns: minmax(0, 1fr); }
  .fr-sync { margin-left: 0; flex-basis: 100%; }
  .fr-frow, .fr-frow.partner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fe-group { border-right: 0; padding-right: 0; }
  .fe-save { margin-left: 0; }
}
@media (max-width: 600px) {
  .dlg-body { padding: 1rem; }
  .dlg-foot { padding: .75rem 1rem; }
  .fr-count b { font-size: 1.125rem; }
}
/* R4: Filter page (filters-script.js). Same card language as the Frame library; the preview is the card. The filter picked first
   is marked with a word + star, hidden ones fade back and say so (never colour alone). */
.fl-bar { padding: 1rem 1.25rem; display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); gap: .75rem 1.5rem; align-items: end; margin-bottom: var(--gap); }
.fl-scope { min-width: 0; }
.fl-sum { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; padding-bottom: .5rem; }
.fl-sum b { font-size: 1.0625rem; }
.fl-sum span { color: var(--ink-2); font-weight: 600; }
.fl-note { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; padding: .625rem .75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.fl-note svg { width: 1.125rem; height: 1.125rem; flex: none; }
.fl-note.own { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.fl-bar > .err, .fl-bar > .ok-note { grid-column: 1 / -1; margin: 0; }
.fl-bar > .err:empty { display: none; }
.fl-savebar { position: sticky; top: .75rem; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: var(--gap);
  padding: .5rem .625rem .5rem 1.125rem; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 30px rgb(0 0 0 / .22); }
.fl-savebar b { margin-right: auto; font-size: 1rem; }
.fl-savebar .btn { background: transparent; color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 30%, transparent); }
.fl-savebar .btn-primary { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: var(--gap); }
.fl-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fl-card.first { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.fl-pic { position: relative; aspect-ratio: 3 / 2; background: var(--surface-3); border-bottom: 1px solid var(--line); }
.fl-pic canvas { display: block; width: 100%; height: 100%; }
.fl-card.off .fl-pic canvas { opacity: .4; filter: grayscale(.5); }
.fl-pos { position: absolute; top: .5rem; left: .5rem; min-width: 1.75rem; height: 1.75rem; padding: 0 .45rem; display: grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 700; box-shadow: 0 1px 3px rgb(16 18 21 / .25); }
.fl-firsttag, .fl-offtag { position: absolute; top: .5rem; right: .5rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.fl-firsttag { background: var(--accent); color: var(--surface); }
.fl-firsttag svg { width: .95rem; height: .95rem; }
.fl-offtag { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); }
.fl-body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: .875rem 1rem 1rem; }
.fl-l1 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fl-fam { font-size: .875rem; font-weight: 650; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.pill.up { background: var(--accent-soft); color: var(--accent-text); }
.fl-card h3 { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fl-en { margin: -.375rem 0 0; font-size: .875rem; color: var(--ink-3); }
.fl-always { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.fl-actions { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; padding-top: .375rem; }
.fl-actions .btn { flex: 1 1 auto; }
.fl-move { display: inline-flex; gap: .375rem; }
.fl-move .btn { flex: 0 0 auto; padding-inline: .5rem; }
.fl-actions .fl-del { flex: 0 0 auto; color: var(--bad); }
.fl-foot { margin-top: calc(var(--gap) * 1.5); display: grid; gap: .75rem; max-width: 70rem; }
.fl-foot .muted { margin: 0; }
.fl-credits { padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.fl-credits h2 { margin: 0 0 .375rem; font-size: 1rem; }
.fl-credits p { margin: .25rem 0 0; font-size: .9375rem; color: var(--ink-2); }
.fl-up { display: grid; gap: 1rem; }
.fl-uppreview { display: grid; gap: .5rem; justify-items: start; }
.fl-uppreview canvas { width: min(100%, 30rem); height: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.fl-dlg .fr-fields { grid-template-columns: 1fr; }
@media (max-width: 700px) { .fl-bar { grid-template-columns: 1fr; } }

/* R2: bell (sidebar + phone top bar) */
.brand { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.brand > div { display: grid; gap: 2px; min-width: 0; }
.bell { position: relative; flex: none; width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.bell svg { width: 1.25rem; height: 1.25rem; }
.bell:hover { color: var(--ink); background: var(--surface-2); border-color: var(--line-2); }
.bell[aria-expanded=true] { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.bell .bell-n { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.375rem; height: 1.375rem; padding: 0 .3rem; border-radius: 999px; background: var(--bad); color: var(--on-bad); font-size: .8125rem; font-weight: 700; line-height: 1.375rem; text-align: center; box-shadow: 0 0 0 2px var(--side-bg); }
.top .bell { margin-left: auto; }
.bell-panel { position: fixed; z-index: 40; width: min(25rem, calc(100vw - 1rem)); max-height: min(34rem, calc(100vh - 6rem)); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 6px 20px rgb(0 0 0 / .2); padding: 1rem 1.125rem 1.125rem; display: grid; gap: .875rem; }
.bell-panel h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.bp-sec { display: grid; gap: .5rem; padding-top: .875rem; border-top: 1px solid var(--line); }
.bp-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.bp-h span { font-weight: 700; font-size: 1.0625rem; }
.bp-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.bp-sec li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; align-items: start; font-size: .9375rem; }
.bp-sec li span { overflow-wrap: anywhere; }
.bp-sec a { font-weight: 600; font-size: .9375rem; }
.notices { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: -.75rem 0 1.5rem; }
.notices:empty { display: none; }
.nt { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border-radius: 999px; font-weight: 650; font-size: .9375rem; text-decoration: none; border: 1px solid transparent; }
.nt svg { width: 1.125rem; height: 1.125rem; }
.nt.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.nt.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.nt:hover { text-decoration: underline; }
.st-alerts { margin-bottom: var(--gap); }
.band-head + .st-alerts, .band-head + .booths { margin-top: .25rem; }

/* R2: Booth workspace = list on the left, the selected booth on the right */
.ws { display: grid; grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.ws-list { padding: 1rem 1rem 1.125rem; display: grid; gap: .75rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.ws-list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.ws-list-head p { margin: .125rem 0 0; }
.ws-search { width: 100%; }
.ws-filter { font-size: .9375rem; }
.ws-bulk { display: grid; gap: .5rem; padding: .625rem .75rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ws-bulk .btn { justify-self: start; }
.ws-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.ws-item { display: flex; gap: .625rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: .625rem .75rem; background: var(--surface); transition: border-color .15s ease, background-color .15s ease; }
.ws-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.ws-item.is-current { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-line); }
.ws-check { margin: .3rem 0 0; width: 1rem; height: 1rem; accent-color: var(--accent); flex: none; }
.ws-link { flex: 1; min-width: 0; display: grid; gap: .3rem; color: var(--ink); text-decoration: none; }
.ws-link:hover { text-decoration: none; }
.ws-l1 { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.ws-l1 b { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; line-height: 1.35; }
.ws-l1 .pill { flex: none; }
.ws-l2 { display: flex; flex-wrap: wrap; gap: .25rem .625rem; align-items: center; font-size: .8125rem; color: var(--ink-2); }
.ws-l2 .tag { background: var(--surface-3); color: var(--ink-2); }
.ws-l2 .tag.on { background: var(--good-soft); color: var(--good); }
.ws-hint { margin: 0; }
.ws-main { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.ws-head { padding: 1.25rem 1.375rem; display: grid; gap: .875rem; }
.ws-title { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1.25rem; }
.ws-title h2 { margin: 0; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; overflow-wrap: anywhere; }
.ws-title p { margin: .375rem 0 0; font-size: .9375rem; }
.ws-head .slot:empty { display: none; }
.ws-replace { border-color: color-mix(in srgb, var(--warn) 45%, var(--line-2)); background: var(--warn-soft); color: var(--warn); }
.ws-replace:hover { background: color-mix(in srgb, var(--warn-soft) 70%, var(--surface)); border-color: var(--warn); }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); justify-self: start; max-width: 100%; }
.ws-tabs a { display: inline-flex; align-items: center; height: 2.25rem; padding: 0 1rem; border-radius: 7px; color: var(--ink-2); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
.ws-tabs a:hover { color: var(--ink); text-decoration: none; }
.ws-tabs a[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(16 18 21 / .14), 0 0 0 1px var(--line); }
.ws-body { min-width: 0; }
.ws-pad { padding: 1.25rem; margin: 0; }

/* Setelan tab */
.ws-set-head { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.ws-set-head p { margin: .25rem 0 0; font-size: .9375rem; }
.ws-layer button { padding: 0 1rem; }
.ws-set-head h2 { font-size: 1.25rem; }
.ws-scope .small { display: block; margin-top: .25rem; }
/* the history beside the editor only on a wide screen, stacked lines (the workspace column is narrower than a page) */
.ws-body .hist li { grid-template-columns: auto minmax(0, 1fr); }
.ws-body .hist .what { grid-column: 1 / -1; }
@media (min-width: 1600px) { .ws-body .set-cols { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); } }
.ws-scope { display: flex; gap: .625rem; align-items: flex-start; margin: 0 0 .875rem; padding: .625rem .875rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9375rem; }
.ws-scope svg { width: 1.125rem; height: 1.125rem; margin-top: 2px; color: var(--ink-2); }
.ws-price { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: 1rem 1.25rem; background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.ws-price h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.ws-price p { margin: .125rem 0 0; }
.ws-price + .ssec { padding-top: 1rem; }
.savebar.is-calm { position: static; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.savebar.is-calm p { color: var(--ink-2); }
.savebar.is-calm .btn { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.savebar.is-calm .btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.savebar.is-calm .ok-note { color: var(--good); }
.srow .ctl input[type=password] { width: 100%; }

/* Status tab */
.ws-status .ws-facts { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.ws-ready { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ws-ready p { margin: 0; font-weight: 650; font-size: 1.0625rem; overflow-wrap: anywhere; }
.ws-reset { justify-self: start; margin-top: .375rem; }
/* R5: Sinkron & perintah */
.ws-sync { border-top: 1px solid var(--line); padding-top: 1rem; }
.ws-sync-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1.25rem; flex-wrap: wrap; }
.ws-sync-head h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.ws-sync-head p { margin: .25rem 0 0; }
.ws-sync-lines, .ws-cmds { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ws-sync-lines li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9375rem; color: var(--ink); overflow-wrap: anywhere; }
.ws-sync-lines svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: 2px; color: var(--ink-2); }
.ws-sync-lines li.good svg { color: var(--good); }
.ws-sync-lines li.warn svg { color: var(--warn); }
.ws-sync-lines li.bad svg { color: var(--bad); }
.ws-cmds-title { margin: 1rem 0 0; font-size: .9375rem; font-weight: 700; }
.ws-cmds li { display: flex; gap: .5rem .75rem; align-items: center; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid var(--line); }
.ws-cmds li:first-child { border-top: 0; }
.ws-cmds b { font-weight: 650; }

/* Jam operasional tab */
.hgrid { display: grid; }
.hrow { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(8rem, 10rem) minmax(8rem, 10rem) minmax(0, 1fr); gap: .5rem 1.25rem; align-items: end; padding: .75rem 0; border-top: 1px solid var(--line); }
.hrow:first-child { border-top: 0; padding-top: 0; }
.hrow .radio { padding-bottom: .55rem; font-weight: 600; }
.hrow .htime { font-size: .875rem; color: var(--ink-2); }
.hrow [data-h-note] { padding-bottom: .65rem; }
input[type=time] { width: 100%; height: 2.625rem; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
input[type=time]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=time][disabled] { opacity: .55; cursor: not-allowed; }

/* Aset tab */
.as-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.as-tools label { font-size: .9375rem; min-width: 12rem; }
.as-tools-gap { flex: 1; }
.as-tools-end { display: flex; gap: .5rem; flex-wrap: wrap; }
.ws-body .slot:empty { display: none; }
.as-kinds { display: grid; }
.as-kind { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; padding: 1.125rem 0; border-top: 1px solid var(--line); align-items: start; }
.as-kind:first-child { border-top: 0; padding-top: .25rem; }
.as-kind-h h3 { margin: 0 0 .25rem; font-size: 1.0625rem; font-weight: 700; }
.as-kind-h p { margin: .125rem 0 0; }
.as-later { color: var(--ink-2); }
.as-later .stag { margin-right: .375rem; }
.as-cell { display: grid; gap: .375rem; align-content: start; min-width: 0; }
.as-k { font-size: .8125rem; font-weight: 650; color: var(--ink-2); }
.as-thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background-color: var(--surface-2); background-image: repeating-conic-gradient(var(--surface-3) 0 25%, transparent 0 50%); background-size: 16px 16px; }
.as-thumb img, .as-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.as-badge { position: absolute; left: .375rem; top: .375rem; z-index: 1; font-size: .8125rem; font-weight: 650; padding: .1rem .5rem; border-radius: 999px; background: var(--tip-bg); color: var(--tip-ink); }
.as-thumb.big { aspect-ratio: 16 / 10; }
.as-kind .as-thumb { aspect-ratio: auto; height: 9rem; }
.as-empty { color: var(--ink-2); font-size: .875rem; font-weight: 600; background: var(--surface); padding: .125rem .5rem; border-radius: 999px; }
.as-font { font-size: 1.625rem; color: var(--ink); background: var(--surface); padding: .25rem .625rem; border-radius: var(--radius-sm); }
.as-state { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; font-weight: 650; color: var(--ink-2); }
.as-state.ready { color: var(--good); }
.as-state svg { width: .95rem; height: .95rem; }
.as-cell.ready .as-thumb { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.as-name { font-size: .875rem; overflow-wrap: anywhere; }
.as-cell .linkbtn { justify-self: start; font-size: .875rem; }
.as-upload { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; padding: .875rem 1rem; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--surface-2); }
.as-upload label { font-size: .9375rem; }
.as-upload select { min-width: 11rem; }
.as-limits { flex-basis: 100%; margin: 0; }
.as-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1rem; }
.as-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; display: grid; gap: .625rem; align-content: start; background: var(--surface); }
.as-meta { display: grid; gap: .25rem; min-width: 0; }
.as-meta b { overflow-wrap: anywhere; }
.as-card .slot:empty { display: none; }

/* the kind's words above its three slots unless the workspace column is wide */
@media (max-width: 1900px) {
  .as-kind { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as-kind-h { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-list { position: static; max-height: none; }
}
@media (max-width: 600px) {
  .ws-title { flex-direction: column; }
  .ws-tabs { flex-wrap: nowrap; overflow-x: auto; justify-self: stretch; }
  .hrow { grid-template-columns: 1fr 1fr; }
  .hrow .radio { grid-column: 1 / -1; padding-bottom: 0; }
  .hrow [data-h-note] { grid-column: 1 / -1; padding-bottom: 0; }
  .as-kind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-tools label { min-width: 0; flex: 1 1 12rem; }
}

/* base */
body { font-family: var(--font); font-weight: 450; letter-spacing: -.003em; }
h1, h2, h3, h4, .h2 { color: var(--ink-strong); }
.num, table.data td, .hero, .v { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
* { scrollbar-color: var(--line-2) transparent; }
a { color: var(--accent-text); }
label { font-weight: 600; color: var(--ink); }
input[type=email], input[type=password], input[type=text], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=time], select, textarea {
  height: 2.625rem; border-radius: var(--radius-sm); border: 1px solid var(--field-line); background-color: var(--surface); font-weight: 500; color: var(--ink-strong);
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink-3) 55%, var(--field-line)); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
::placeholder { color: color-mix(in srgb, var(--ink-3) 85%, transparent); }

/* buttons: white with a hairline, blue primary, rose danger (LuminaSH's Delete), amber "Replace device" */
.btn { height: 2.5rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); font-weight: 650; font-size: .9375rem; color: var(--ink-strong); box-shadow: 0 1px 0 rgb(0 0 0 / .03); }
.btn:hover { background: var(--surface-2); border-color: var(--field-line); }
.btn.sm { height: 2.25rem; font-size: .875rem; }
.btn.xs { height: 1.875rem; padding: 0 .625rem; font-size: .8125rem; border-radius: 8px; border-color: var(--accent-line); color: var(--accent-text); background: var(--surface); }
.btn.xs:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-primary, .btn.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.btn-primary:hover, .btn.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.linkbtn { color: var(--accent-text); font-weight: 650; text-underline-offset: 3px; }
.seg { background: var(--surface-3); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { height: 2.125rem; border-radius: 9px; color: var(--ink-2); font-weight: 650; font-size: .875rem; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 0 0 1px var(--line); }
/* LuminaSH's "Global Defaults | Booth Override": two separate buttons, the active one blue */
.seg-blue { background: none; padding: 0; gap: .375rem; }
.seg-blue button { height: 2.375rem; padding: 0 1rem; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-strong); border-radius: var(--radius-sm); }
.seg-blue button[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }

/* cards */
.sheet, .bcell, .money { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.sheet-head { padding: 1.25rem 1.375rem 0; }
.sheet-body { padding: 1.125rem 1.375rem 1.375rem; }
.h2 { font-size: 1.125rem; font-weight: 750; letter-spacing: -.012em; }
.muted, .sheet-head p { color: var(--ink-2); }
.empty { color: var(--ink-2); }

/* pills: LuminaSH's small uppercase ONLINE / ACTIVE with a dot and a tinted border */
.pill, .spill, .tag, .chip, .bc-state { text-transform: uppercase; letter-spacing: .045em; font-size: .75rem; font-weight: 750; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: .15rem .55rem; }
.pill i, .chip i, .bc-state i { width: .4rem; height: .4rem; }
.pill.good, .chip.good, .bc-state.good, .spill.good { background: var(--good-soft); border-color: var(--good-line); color: var(--good); }
.pill.warn, .chip.warn, .bc-state.warn, .spill.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.pill.bad, .chip.bad, .bc-state.bad, .spill.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.tag { background: var(--surface-3); border-color: var(--line); color: var(--ink-2); }
.tag.on { background: var(--good-soft); border-color: var(--good-line); color: var(--good); }
.delta { border-radius: 999px; font-size: .8125rem; }

/* login */
.login { background: var(--bg); }
.login form { border-radius: 18px; border: 1px solid var(--line); padding: 2.25rem 2rem; gap: 1.125rem; width: min(27rem, 100%); }
.login-brand { background: var(--side-bg); margin: -2.25rem -2rem .25rem; padding: 1.375rem 2rem; border-radius: 18px 18px 0 0; }
.login .wordmark { color: var(--gold); font-weight: 800; font-size: 1.375rem; letter-spacing: -.01em; display: block; }
/* the software's logo (DigiBox, /brand/*.svg from brand/brand.json); the tenant's name stays in the page-head line */
.login .wordmark img { display: block; height: 2.25rem; width: auto; }
.login-place { display: block; margin-top: .625rem; color: var(--side-ink-2); font-size: .875rem; font-weight: 650; }
.login h1 { font-size: 1.625rem; font-weight: 800; color: var(--ink-strong); }
.login .remember { font-weight: 550; color: var(--ink); }
.login .btn-primary { height: 2.875rem; }

/* shell: espresso sidebar, caramel wordmark, active pill, collapse button, the user at the bottom */
@media (min-width: 901px) { .shell { grid-template-columns: var(--side) minmax(0, 1fr); } }
.side { background: var(--side-bg); color: var(--side-ink); border-right: 0; padding: 1.25rem .875rem 1rem; gap: .25rem; overflow: visible; }
.side .brand { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .25rem .5rem 1.125rem; margin-bottom: .75rem; border-bottom: 1px solid var(--side-line); position: relative; }
.side .wordmark { color: var(--gold); font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; min-height: 2.375rem; }
.side .wordmark img { display: block; height: 1.875rem; width: auto; max-width: 100%; }
.side .wordmark .logo-mini { display: none; height: 2.375rem; }
.shell.mini .side .wordmark .logo-full { display: none; }
.shell.mini .side .wordmark .logo-mini { display: block; width: 2.375rem; max-width: none; flex: none; }
/* a cafe partner sees DigiSnap's real logo instead (owner, 3 Dec 2026; script.js PARTNER_LOOK): a chunky square-ish wordmark, so a
   little taller than the software's long one to read the same; its mini logo is the yellow tab icon with rounded corners */
.side .wordmark img[src^="/guest-logo"] { height: 2.75rem; }
.login .wordmark img[src^="/guest-logo"] { height: 3.25rem; }
.side .wordmark img.logo-mini[src^="/guest-icon"] { border-radius: 10px; }
.side .collapse { position: absolute; right: -1.75rem; top: .125rem; width: 1.875rem; height: 1.875rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-strong); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgb(0 0 0 / .15); z-index: 3; padding: 0; }
.side .collapse svg { width: 1rem; height: 1rem; }
.side .collapse:hover { background: var(--surface-2); }
.nav { gap: .25rem; }
.nav a { color: var(--side-ink); font-weight: 600; font-size: .9375rem; min-height: 2.625rem; padding: .5rem .875rem; border-radius: 10px; border: 1px solid transparent; gap: .875rem; }
.nav a svg { color: var(--side-ink-2); width: 1.125rem; height: 1.125rem; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a[aria-current=page] { background: var(--side-active); border-color: var(--side-active-line); color: #fff; font-weight: 700; }
.nav a[aria-current=page] svg { color: #fff; }
.nav-tools { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--side-line); }
.nav-tools a { min-height: 2.25rem; font-size: .875rem; color: var(--side-ink-2); }
.side .foot { border-top: 1px solid var(--side-line); padding: .875rem .25rem 0; gap: .875rem; }
.side .foot-row { justify-content: flex-start; }
.side .foot-row .seg { background: var(--side-hover); }
.side .foot-row .seg button { color: var(--side-ink-2); height: 1.875rem; }
.side .foot-row .seg button[aria-pressed=true] { background: var(--side-active-line); color: #fff; box-shadow: none; }
.side .theme-btn { background: transparent; color: var(--side-ink-2); border-color: var(--side-line); height: 2.125rem; box-shadow: none; }
.side .theme-btn:hover { background: var(--side-hover); color: #fff; }
.side .who { display: flex; align-items: center; gap: .75rem; padding: .625rem; border-radius: 12px; background: var(--side-hover); border: 1px solid var(--side-line); }
.side .avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--surface); color: var(--ink-strong); display: grid; place-items: center; font-weight: 800; font-size: .9375rem; text-decoration: none; }
.side .who-text { display: grid; min-width: 0; gap: 1px; }
.side .who-mail { color: #fff; font-weight: 650; font-size: .875rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who-role { color: var(--side-ink-2); font-size: .8125rem; }
.side .signout { color: var(--side-ink-2); font-size: .8125rem; font-weight: 600; text-decoration: none; justify-self: start; }
.side .signout:hover { color: #fff; text-decoration: underline; }
.side .bell { display: none; }
/* collapsed: icons only, like LuminaSH's chevron button */
@media (min-width: 901px) { .shell.mini { grid-template-columns: 4.75rem minmax(0, 1fr); } }
.shell.mini .side { padding-left: .625rem; padding-right: .625rem; }
.shell.mini .side .wordmark { font-size: 1.125rem; max-width: 2.5rem; flex: none; overflow: visible; }
.shell.mini .nav a { justify-content: center; padding: .5rem; }
.shell.mini .nav a span, .shell.mini .who-text, .shell.mini .foot-row { display: none; }
.shell.mini .side .who { justify-content: center; padding: .375rem; }
.shell.mini .side .collapse svg { transform: rotate(180deg); }
.main { padding: 1.5rem clamp(1rem, 2.2vw, 2.5rem) 4rem; }

/* page head: the workspace line, the bold title, a hairline */
.page-head { align-items: flex-end; padding-bottom: 1.125rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.022em; color: var(--ink-strong); }
.page-head .ph-sub { margin: .375rem 0 0; color: var(--ink-2); }
.page-head .actions .bell { margin-left: .25rem; }
.bell { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-strong); }
.stamp { color: var(--ink-2); font-size: .875rem; }

/* pill tabs (CAMERA / PRINTER / ...): uppercase, outlined, the active one blue */
.tabs button, .pilltabs button { height: 2.125rem; padding: 0 .875rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .8125rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.tabs button:hover { color: var(--ink-strong); border-color: var(--field-line); background: var(--surface-2); }
.tabs button[aria-selected=true] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.tabs { gap: .375rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: .25rem; }
.tabs button, .pilltabs button { flex: none; padding: 0 .75rem; letter-spacing: .035em; }
/* audit 2 Dec 2026: on the owner's 1538 px laptop the last 4 of 11 setting tabs (Custom appearance ... Filters) sat outside
   the row, reachable only by a sideways scroll a mouse wheel does not do; on a computer the pills wrap to a second line,
   phones keep the one sideways-scrolling line */
@media (min-width: 601px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }

/* ------------------------------------------------------------------ Overview */
.ov-attention { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; padding: .75rem 1.125rem; margin-bottom: var(--gap); border-color: var(--warn-line); background: var(--warn-card); }
.ov-attention > b { font-size: .9375rem; color: var(--warn); }
.ov-attention .notices { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.ov-scope { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding: 1.125rem 1.375rem; margin-bottom: var(--gap); }
.ov-scope p { margin: .25rem 0 0; font-size: .9375rem; }
.ov-scope select { min-width: min(20rem, 100%); }
.ov-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-bottom: 1.75rem; align-items: stretch; }
@media (min-width: 1500px) { .ov-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.ov-figs { padding: 1.375rem 1.5rem 1.25rem; display: grid; gap: 1.25rem; align-content: start; }
.ov-hero { display: grid; gap: .25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.ov-hero .k, .ovf .k, .ov-trend .k { font-size: .875rem; font-weight: 650; color: var(--ink-2); }
.ov-hero .hero { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-strong); margin: 0; line-height: 1.1; }
.ov-hero .n { color: var(--ink-2); font-size: .9375rem; }
.ov-hero .hero-row { margin-top: .375rem; }
.ovf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.ovf { display: grid; gap: .125rem; align-content: start; min-width: 0; }
.ovf .v { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); overflow-wrap: anywhere; }
.ovf .n { font-size: .875rem; color: var(--ink-2); }
.ov-figs .ov-notes { margin: 0; }
.ov-trend .sheet-head .k { display: block; margin-bottom: .125rem; }
.ov-trend .hours { padding: 0 1.375rem 1.25rem; }
.ov-trend .chart.mini { flex: none; min-height: 0; }
/* LuminaSH draws every bar in one colour (ours: DigiSnap brown); the bar under the pointer (or the keyboard) goes darker */
.chart .bar, .chart .bar.now { fill: var(--chart); }
.chart g:hover .bar, .chart .hit:focus + .bar { fill: color-mix(in srgb, var(--chart) 78%, #000); }
.chart .axis { fill: var(--ink-2); }

/* LuminaSH's Status page, on Overview: one tinted card per booth with its monitoring line and eight tiles */
.st-section { margin-bottom: 1.75rem; }
.st-head { display: flex; align-items: flex-end; gap: .75rem 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.st-head .h2 { font-size: 1.25rem; }
.st-head p { margin: .25rem 0 0; }
.st-head .chips { flex: 1; }
.st-search { width: min(20rem, 100%); margin-left: auto; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(31rem, 100%), 1fr)); gap: var(--gap); }
@media (min-width: 1100px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* LuminaSH: two cards a row */
.st-card { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 1.125rem 1.125rem 1rem; display: grid; gap: .75rem; align-content: start; min-width: 0; }
.st-card.good { background: var(--good-card); border-color: var(--good-card-line); }
.st-card.warn { background: var(--warn-card); border-color: var(--warn-line); }
.st-card.bad { background: var(--bad-card); border-color: var(--bad-line); }
.st-card > header { display: flex; align-items: flex-start; gap: .625rem; }
.st-dot { flex: none; width: .625rem; height: .625rem; border-radius: 50%; margin-top: .5rem; background: var(--ink-3); }
.st-card.good .st-dot { background: var(--good-dot); }
.st-card.warn .st-dot { background: var(--warn); }
.st-card.bad .st-dot { background: var(--bad); }
.st-name { min-width: 0; flex: 1; }
.st-name h3 { margin: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: -.012em; overflow-wrap: anywhere; color: var(--ink-strong); }
.st-name p { margin: .125rem 0 0; font-size: .8125rem; color: var(--ink-2); }
.spill { flex: none; display: inline-flex; align-items: center; gap: .375rem; }
.spill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.st-mon { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .625rem .75rem; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.st-mon b { display: block; font-size: .875rem; font-weight: 750; color: var(--ink-strong); }
.st-mon span { font-size: .8125rem; color: var(--ink-2); }
.st-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
.st-tile { display: flex; gap: .625rem; align-items: flex-start; padding: .75rem; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); min-width: 0; }
.st-ic { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.st-ic svg { width: 1rem; height: 1rem; }
.st-tile.warn .st-ic, .st-tile.unknown .st-ic { background: var(--warn-soft); color: var(--warn); }
.st-tile.bad .st-ic { background: var(--bad-soft); color: var(--bad); }
.st-tile.unknown { border-color: var(--warn-line); }
.st-card.off .st-ic, .st-card.stale .st-ic { background: var(--surface-3); color: var(--ink-2); }
.st-body { display: grid; gap: 1px; min-width: 0; }
.st-body .k { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.st-body .v { font-size: 1rem; font-weight: 750; color: var(--ink-strong); overflow-wrap: anywhere; }
.st-tile.warn .v { color: var(--warn); } .st-tile.bad .v { color: var(--bad); }
.st-body .n { font-size: .8125rem; color: var(--ink-2); overflow-wrap: anywhere; }
.st-box { display: grid; gap: 1px; margin-top: .375rem; padding: .375rem .5rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8125rem; font-weight: 650; color: var(--ink-strong); }
.st-box small { font-weight: 500; color: var(--ink-2); font-size: .75rem; }
.st-act { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; margin-top: .375rem; }
.st-act small { font-size: .75rem; color: var(--ink-2); }
.st-today { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; font-size: .875rem; color: var(--ink-2); padding-top: .625rem; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.st-today b { color: var(--ink-strong); font-size: 1rem; }
.st-card .bc-issues { margin: 0; padding: 0; border: 0; }
.st-card .stale-note { margin: 0; }
.ws-tiles { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }

/* ------------------------------------------------------------------ Booths workspace */
.ws-list { border-radius: var(--radius); }
.ws-item { border-radius: 12px; }
.ws-item.is-current { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: none; }
.ws-l1 b { font-weight: 750; color: var(--ink-strong); }
.ws-head { border-radius: var(--radius); }
.ws-title h2 { font-size: 1.625rem; font-weight: 800; }
.ws-replace { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.ws-bulk [data-ws="archive-selected"] { width: 100%; background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.ws-hint-top { margin: 0; font-size: .875rem; }
.ws-search-l { display: grid; gap: .375rem; }
.ws-search-l .search { width: 100%; }
/* Analytics: LuminaSH order (filter card, Daily transactions, Peak hours & happy hours) */
.an-range { display: grid; gap: .375rem; }
.an-range-k { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.an-note { margin: 0; }
.an-daily { margin-bottom: var(--gap); }
.an-daily .chart { min-height: 18rem; }
.an-hours { margin-bottom: var(--gap); }
.an-hours-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.an-hour { display: grid; justify-items: center; gap: .125rem; padding: 1.25rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-align: center; }
.an-hour b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); }
.an-hour .k { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.an-hour .n { font-size: .875rem; color: var(--ink-2); }
.ws-tabs { background: var(--surface-3); border-radius: 12px; padding: 4px; gap: 2px; margin: .25rem 0 .875rem; }
.ws-tabs a { height: 2.25rem; border-radius: 9px; font-weight: 650; font-size: .9375rem; color: var(--ink-2); padding: 0 1rem; }
.ws-tabs a[aria-selected=true] { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 0 0 1px var(--line); }

/* Cloud Settings (LuminaSH's field grid) */
.cs { padding: 1.25rem 1.375rem 1.375rem; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1.5rem; flex-wrap: nowrap; margin-bottom: .875rem; }
.cs-head > :first-child { flex: 1; min-width: 0; }
.cs-head .seg-blue { flex: none; flex-wrap: nowrap; }
.cs-head .h2 { font-size: 1.25rem; }
.cs-head p { margin: .25rem 0 0; font-size: .9375rem; }
.cs-info { display: flex; gap: .625rem; align-items: flex-start; margin: 0 0 .875rem; padding: .625rem .875rem; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-size: .9375rem; font-weight: 550; }
.cs-info svg { width: 1.125rem; height: 1.125rem; margin-top: 2px; flex: none; }
.cs-info .small { display: block; margin-top: .125rem; color: var(--ink-2); font-weight: 450; }
.cs-info.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.cs-info.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.cs .set-tools { align-items: center; margin-bottom: 1rem; }
.cs .search { width: min(16rem, 100%); }
.spanel { display: grid; gap: 1rem; }
.cs-lead { padding: 1rem 1.125rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cs-lead h3 { margin: 0; font-size: 1.0625rem; font-weight: 800; }
.cs-lead p { margin: .25rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.cs-sec { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.125rem 1.125rem; background: var(--surface); }
.cs-sec .ssec { margin: 0 0 .75rem; padding: 0; font-size: 1.0625rem; font-weight: 800; color: var(--ink-strong); }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: start; }
.cf { display: grid; gap: .375rem; min-width: 0; align-content: start; }
.cf > .name, .cf-check .name { font-size: .9375rem; font-weight: 650; color: var(--ink-strong); }
.cf .ctl select, .cf .ctl input[type=text], .cf .ctl input[type=number], .cf .ctl input[type=password] { width: 100%; }
.cf .unit { display: flex; width: 100%; gap: 0; }
.cf .unit input { flex: 1; min-width: 0; width: 100%; }
.cf .unit .prefix, .cf .unit .suffix { display: inline-flex; align-items: center; padding: 0 .75rem; height: 2.625rem; border: 1px solid var(--field-line); background: var(--surface-3); color: var(--ink-2); font-weight: 650; font-size: .9375rem; white-space: nowrap; }
.cf .unit .prefix { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cf .unit .suffix { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cf .unit.has-prefix input { border-top-left-radius: 0; border-bottom-left-radius: 0; font-weight: 700; }
.cf .unit input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cf .ro { padding: .5rem 0; color: var(--ink-2); }
.cf .help { margin: 0; color: var(--ink-2); font-size: .8125rem; line-height: 1.45; }
.cf .meta { display: grid; gap: .25rem; }
.cf .tags { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; }
.cf .ssub { font-size: .8125rem; color: var(--ink-2); }
.cf.has-err .ctl input, .cf.has-err .ctl select { border-color: var(--bad); }
.cf-bool { padding: .75rem .875rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cf-check { display: flex; align-items: center; gap: .625rem; }
.cf-check .name { cursor: pointer; }
.cbox { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); flex: none; margin: 0; cursor: pointer; }
.cbox.unknown { opacity: .55; }
.unknown-word { font-size: .8125rem; color: var(--ink-2); }
.stag { text-transform: uppercase; letter-spacing: .05em; font-size: .6875rem; font-weight: 800; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line); }
.stag.dash { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-line); }
.stag.new { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.stag.booth { background: #f8eef5; color: #7a3f6b; border-color: #e6c6dc; text-transform: none; letter-spacing: 0; font-size: .75rem; }
:root[data-theme=dark] .stag.booth { background: #2e1a29; color: #e8a9d6; border-color: #5e3352; }
.cf .tags .linkbtn { font-size: .8125rem; }
.savebar { border-radius: 12px; background: var(--ink-strong); color: #fff; }
:root[data-theme=dark] .savebar { background: var(--surface-3); }
.savebar .btn { color: #fff; border-color: rgb(255 255 255 / .3); background: transparent; }
/* 3 Dec 2026: the primary button is near-black now, so on the dark save bar it turns white (dark mode: the light primary) */
.savebar .btn-primary { background: #ffffff; border-color: #ffffff; color: #0a0a0a; }
.savebar .btn-primary:hover { background: #e5e5e5; border-color: #e5e5e5; }
:root[data-theme=dark] .savebar .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.savebar.is-calm { background: var(--surface-3); color: var(--ink-2); box-shadow: none; }
.savebar.is-calm .btn { color: var(--ink-2); border-color: var(--line-2); }
.savebar.is-calm .btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); opacity: .55; }
.hist li.from-booth b::after { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #8e4a7d; margin-left: .375rem; vertical-align: middle; }
.cs-price { display: grid; gap: .75rem; }
.cs-price .cs-info { margin: 0; }
.cs-price .small { margin: -.375rem 0 .75rem; }
.pq-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.pq { display: grid; gap: 1px; padding: .625rem .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.pq .k { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.pq b { font-size: 1.0625rem; color: var(--ink-strong); }
.pq .n { font-size: .75rem; color: var(--good); font-weight: 700; }
.set-side .sheet { border-radius: 12px; }
@media (max-width: 1100px) { .cs-grid { grid-template-columns: minmax(0, 1fr); } }

/* Filters inside Cloud Settings */
.fl-embed .fl-bar { display: grid; gap: .625rem; padding: 0 0 .25rem; }
.fl-embed .fl-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.fl-embed .fl-bar > .fl-note, .fl-embed .fl-bar > .err { grid-column: 1 / -1; }
.fl-bar h3 { margin: 0; font-size: 1.0625rem; font-weight: 800; }
.fl-embed .fl-sum { margin: .25rem 0 0; }

/* ------------------------------------------------------------------ Frames (LuminaSH's cards) */
.fr-grid { grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
.fr-card { border-radius: 16px; }
.fr-thumb { aspect-ratio: auto; height: clamp(10rem, 11.5vw, 15rem); min-height: 0; overflow: hidden; padding: .625rem; display: flex; align-items: center; justify-content: center; }
.fr-thumb img { max-height: 100%; max-width: 100%; height: auto; width: auto; }
.fr-actions .fr-del span { display: inline; }
.fr-meta dd { text-align: right; font-weight: 650; color: var(--ink-strong); }
.fr-search-l { min-width: 0; }
.fr-search-l .search { width: 100%; }
.fr-l1 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fr-cat { font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.fr-card .fr-active { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--good); }
.fr-card.off .fr-active { color: var(--ink-2); }
.fr-card .fr-active .switch { margin: 0; }
.switch:checked { background: var(--good-dot); border-color: var(--good-dot); }
.fr-card h3 { font-size: 1.0625rem; font-weight: 800; color: var(--ink-strong); }
.fr-where { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .375rem .625rem; color: var(--ink-2); font-size: .875rem; }
.fr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fr-actions .btn { width: 100%; justify-content: center; }
.fr-actions .fr-del { grid-column: 1 / -1; background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.fr-actions .fr-del:hover { background: color-mix(in srgb, var(--bad-soft) 70%, var(--surface)); border-color: var(--bad); }

/* ------------------------------------------------------------------ Analytics: bars in one colour (DigiSnap brown) */
.an-bars .bar, .chart.an .bar { fill: var(--chart); }

@media (max-width: 900px) {
  .shell, .shell.mini { grid-template-columns: minmax(0, 1fr); }
  .shell.mini .nav a span, .shell.mini .who-text, .shell.mini .foot-row { display: revert; }
  .side { overflow: auto; }
  .side .collapse { display: none; }
  .top { background: var(--side-bg); border-bottom: 0; color: #fff; }
  .top .wordmark { color: var(--gold); font-weight: 800; display: flex; align-items: center; }
  .top .wordmark img { display: block; height: 1.5rem; width: auto; }
  .top .wordmark img[src^="/guest-logo"] { height: 2.125rem; }
  .top .btn { background: transparent; color: #fff; border-color: var(--side-line); }
  .top .bell { background: transparent; color: #fff; border-color: var(--side-line); }
  .page-head .actions .bell { display: none; }
  .st-tiles { grid-template-columns: minmax(0, 1fr); }
  .ovf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ov-hero .hero { font-size: 2rem; }
  .page-head h1 { font-size: 1.5rem; }
}
/* ------------------------------------------------------------------ R8 round 2 (coordinator, 24 Nov afternoon) */
/* Overview: LuminaSH's blocks, the status cards, then our extras */
.ov-more-h { margin: 1.75rem 0 .875rem; font-size: 1.125rem; font-weight: 800; color: var(--ink-strong); }
.ov-low2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 1fr); gap: var(--gap); align-items: start; margin-bottom: var(--gap); }
.ov-hours .hours-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .5rem; }
.ov-hours .chart.mini { padding: 0; }
.ov-attention { margin-bottom: var(--gap); }
/* Booth monitoring row with LuminaSH's switch */
.st-mon .switch { margin: 0; flex: none; }
.st-mon.off { background: var(--surface-2); }
.st-mon .err { display: block; font-size: .75rem; }
.st-name h3 a { color: inherit; text-decoration: none; }
.st-name h3 a:hover { text-decoration: underline; }
.st-switch { display: inline-flex; }
.ws-status .st-mon { margin-bottom: .25rem; }
/* Cloud Settings: chip + "Use global" under the field; the rest behind the "i" */
.cf-label { display: flex; align-items: center; gap: .375rem; min-width: 0; }
.cf-info-slot { display: inline-flex; }
.cf-info { position: relative; display: inline-flex; }
.cf-i { width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 700 .6875rem/1 var(--font); font-style: italic; display: grid; place-items: center; padding: 0; cursor: help; }
.cf-i:hover, .cf-i:focus-visible { border-color: var(--accent); color: var(--accent-text); }
.cf-pop { display: none; position: absolute; z-index: 20; left: -.5rem; top: calc(100% + .375rem); width: min(22rem, 70vw); padding: .625rem .75rem; border-radius: 10px; background: var(--tip-bg); color: var(--tip-ink); font-size: .8125rem; font-weight: 500; line-height: 1.45; box-shadow: 0 8px 24px rgb(0 0 0 / .22); }
.cf-pop span { display: block; }
.cf-pop .cf-pop-fact { margin-top: .375rem; padding-top: .375rem; border-top: 1px solid rgb(255 255 255 / .18); font-weight: 650; }
:root[data-theme=dark] .cf-pop .cf-pop-fact { border-top-color: rgb(0 0 0 / .18); }
.cf-info:hover .cf-pop, .cf-info:focus-within .cf-pop { display: block; }
.cf .meta { gap: .125rem; }
.stag.from-booth::after { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-left: .3rem; border-radius: 50%; background: #8e4a7d; vertical-align: middle; }
/* Frames: "Frame Library" + "Photo Frames" */
.fr-lib-head, .fr-photos-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1.25rem; flex-wrap: wrap; }
.fr-lib-head p { margin: .25rem 0 0; }
.fr-lib { display: grid; gap: 1rem; padding: 1.25rem 1.375rem 1.375rem; }
.fr-lib .fr-counts { margin: 0; }
.fr-photos { padding: 1.25rem 1.375rem 1.375rem; display: grid; gap: 1rem; margin-top: var(--gap); }
.fr-photos-head p { margin: .25rem 0 0; }
.fr-photos-head .row-actions { align-items: center; }
.fr-photos-head .pager { margin: 0; }
.fr-photos .fr-pager { justify-content: flex-end; }
.fr-count { border-radius: 12px; background: var(--surface-2); }
/* Analytics: LuminaSH's filter row and blocks */
.an-filterbar { display: grid; gap: .75rem; padding: 1.25rem 1.375rem; margin-bottom: var(--gap); }
.an-frow { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) auto; gap: .75rem 1rem; align-items: end; }
.an-field { display: grid; gap: .375rem; }
.an-k { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.an-inc { display: inline-flex; flex-direction: row; align-items: center; gap: .5rem; height: 2.625rem; padding: 0 .875rem; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; white-space: nowrap; }
.an-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 14rem)); gap: .75rem; }
.an-custom[hidden] { display: none; }
.ms { position: relative; }
.ms summary { list-style: none; display: flex; align-items: center; height: 2.625rem; padding: 0 2.25rem 0 .75rem; border: 1px solid var(--field-line); border-radius: var(--radius-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23525252' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8rem center; cursor: pointer; font-weight: 500; color: var(--ink-strong); }
.ms summary::-webkit-details-marker { display: none; }
.ms[open] summary { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ms-pop { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + .375rem); max-height: 18rem; overflow: auto; display: grid; gap: .25rem; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px rgb(0 0 0 / .16); }
.ms-pop label { padding: .375rem .5rem; border-radius: 8px; font-weight: 550; }
.ms-pop label:hover { background: var(--surface-2); }
.an-note { margin: 0; }
.an-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: var(--gap); align-items: stretch; }
.an-two > .sheet { min-width: 0; }
.an-two.an-mixrow { grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr); }
.an-big { display: grid; gap: .25rem; align-content: start; }
.an-big b { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-strong); }
.an-big span { color: var(--ink-2); font-size: .9375rem; }
.an-summary { margin-bottom: var(--gap); }
.an-sum-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; }
.an-sum { display: grid; gap: .125rem; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.an-sum .k { font-size: .8125rem; font-weight: 650; color: var(--ink-2); }
.an-sum .v { font-size: 1.375rem; font-weight: 800; color: var(--ink-strong); }
.an-sum .n .delta { margin-top: .125rem; }
.an-notes { margin: 0 1.375rem 1.25rem; }
.rank.mix li { grid-template-columns: minmax(0, 1fr) auto; }
.rank.mix .meter { grid-column: 1 / -1; }
.rank.mix .meter.v i { background: var(--chart-soft); }
.an-recent { margin-bottom: var(--gap); }
.an-more { margin: 2rem 0 .875rem; font-size: 1rem; font-weight: 750; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.an-months .chart, .an-weekday .chart { min-height: 14rem; }
@media (max-width: 1100px) {
  .an-two, .an-two.an-mixrow, .ov-low2 { grid-template-columns: minmax(0, 1fr); }
  .an-frow { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- voucher QR: one voucher */
.vq-one { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: .75rem .25rem; }
.vq-one-qr { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .5rem; line-height: 0; }
.vq-one-qr svg { width: 100%; height: auto; display: block; }
.vq-one-text { display: grid; gap: .375rem; align-content: start; }
.vq-one-text h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink-strong); }
.vq-one-text p { margin: 0; }
.vq-one-code { font: 800 1.5rem/1.15 var(--mono); letter-spacing: .08em; color: var(--ink-strong); }
.vq-one-value { font-weight: 650; color: var(--accent-text); }
.vq-one .row-actions { margin-top: .375rem; }

/* ---------------------------------------------------------------- voucher QR: A4 sheet (preview on screen, exact in print) */
.vq-sheet { display: grid; gap: 1.5rem; justify-items: center; margin: var(--gap) 0; }
.vq-page { width: 190mm; max-width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 92mm; background: #fff;
  border: 1px solid var(--line-2); border-radius: 4px; box-shadow: var(--shadow); }
.vq-card { box-sizing: border-box; border: .3mm dashed #c4c4c4; padding: 3mm 4mm; display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #1a1a1a; background: #fff; break-inside: avoid; overflow: hidden; }
.vq-top { width: 100%; display: flex; justify-content: space-between; align-items: baseline; font-size: 3.3mm; line-height: 1.1; }
.vq-brand { font-weight: 800; letter-spacing: .01em; color: #1a1a1a; }
.vq-kind { color: #8a4810; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 2.8mm; }
.vq-qr { margin: 1.5mm 0 .5mm; line-height: 0; }
.vq-qr svg { width: 60mm; height: 60mm; display: block; }
.vq-card p { margin: 0; }
.vq-code { font: 800 5.4mm/1.15 "Cascadia Mono", Consolas, ui-monospace, monospace; letter-spacing: .09em; color: #0a0a0a; }
.vq-value { font-weight: 750; font-size: 3.6mm; color: #8a4810; margin-top: .6mm; }
.vq-until { font-size: 3mm; color: #404040; }
.vq-how { font-size: 2.5mm; line-height: 1.25; color: #404040; margin-top: auto; max-width: 80mm; }
@media (max-width: 900px) {
  .vq-one { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .vq-one-qr { width: min(15rem, 100%); }
  .vq-page { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; width: 100%; }
  .vq-card { min-height: 92mm; }
  .vq-qr svg { width: min(60mm, 70vw); height: auto; }
}
@media print {
  .vq-sheet, .vq-sheet * { visibility: visible; }
  .vq-sheet { position: absolute; left: 0; top: 0; width: 190mm; display: block; margin: 0; }
  .vq-page { width: 190mm; height: 277mm; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 92mm; border: 0; border-radius: 0; box-shadow: none; break-after: page; }
  .vq-page:last-child { break-after: auto; }
  .vq-qr svg { width: 60mm; height: 60mm; }
}

/* ---------------------------------------------------------------- Add booth with a pairing code */
.pair-form { display: grid; gap: .75rem; max-width: 34rem; }
.pair-form label { display: grid; gap: .375rem; font-weight: 600; }
.pair-panel { display: grid; gap: .875rem; }
.pair-panel h2 { margin: 0; }
.pair-panel p { margin: 0; }
.pair-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; }
.pair-fact { display: grid; gap: .25rem; }
.pair-fact .k { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pair-code { font: 800 2.5rem/1 var(--mono); letter-spacing: .12em; color: var(--ink-strong); background: var(--surface); border: 2px solid var(--accent-line);
  border-radius: var(--radius-sm); padding: .625rem 1rem; display: inline-block; }
.pair-boothid { font: 750 1.5rem/1.1 var(--mono); letter-spacing: .06em; color: var(--accent-text); }
.pair-cmd { margin: 0; padding: .75rem 1rem; background: var(--side-bg); color: var(--side-ink); border-radius: var(--radius-sm); font: 500 .875rem/1.5 var(--mono);
  white-space: pre-wrap; word-break: break-all; }
.ws-pair { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.ws-pair p { margin: 0; color: var(--ink-2); }
.ws-pair .row-actions { margin: 0; }
.ws-item .pair-tag { font-weight: 650; }
@media (max-width: 900px) {
  .pair-code { font-size: 1.875rem; }
  .pair-facts { gap: .75rem 1.25rem; }
}

/* ---------------------------------------------------------------- Monitoring connection (Alerts page, owner) */
[data-mon] { margin-top: var(--gap); }
.mon .sheet-body { display: grid; gap: .875rem; }
.mon p { margin: 0; max-width: 75ch; }
.mon-lead { color: var(--ink-2); font-size: .9375rem; }
.mon .secret { margin: 0; }
.mon-facts { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; align-items: end; }
.mon-fact { display: grid; gap: .25rem; min-width: 0; }
.mon-fact .k, .mon-url .k { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mon-fact > span:last-child { font-weight: 600; color: var(--ink-strong); }
.mon-hint { font: 750 1.125rem/1.2 var(--mono); letter-spacing: .03em; color: var(--accent-text); }
.mon-pull { display: flex; gap: .5rem; align-items: center; font-weight: 650; color: var(--good); }
.mon-pull.warn { color: var(--warn); }
.mon-pull.idle { color: var(--ink-2); font-weight: 600; }
.mon-pull svg, .mon-none svg { width: 1.125rem; height: 1.125rem; flex: none; }
.mon-none { display: flex; gap: .5rem; align-items: center; color: var(--ink-2); font-weight: 600; padding: .75rem 1rem; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); }
.mon-url { display: grid; gap: .375rem; }
.mon-url-row { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.mon-url-row code { flex: 1 1 24rem; min-width: 0; font: 600 .9375rem/1.4 var(--mono); color: var(--ink-strong); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .mon-facts { gap: .75rem 1.5rem; }
  .mon-url-row code { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- list page */
.lp-page { --lp-pad: 1.375rem; }
.lp-flush { padding: 0; }
.lp-flush table.data th:first-child, .lp-flush table.data td:first-child { padding-left: var(--lp-pad); }
.lp-flush table.data th:last-child, .lp-flush table.data td:last-child { padding-right: var(--lp-pad); }
.lp-month .sheet-head { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.lp-month .sheet-head p { font-variant-numeric: tabular-nums; }
.lp-month .sheet-head > .btn { align-self: center; }
.lp-month [data-lp-confirm]:not(:empty) { padding: 1rem var(--lp-pad) 0; }
.lp-booth { font-weight: 700; color: var(--ink-strong); text-decoration: none; }
.lp-booth:hover { text-decoration: underline; }
.lp-code-s, .lp-pct-s, .lp-when { display: block; margin-top: .125rem; }
.lp-code-s { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lp-list td .tag { vertical-align: 1px; }
.lp-due .sheet-body { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; }
.lp-due-text { display: flex; gap: .625rem; align-items: flex-start; margin: 0; font-weight: 600; color: var(--ink-strong); max-width: 80ch; }
.lp-due-text svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--accent-text); margin-top: .125rem; }
.lp-due .err:empty { display: none; }
.lp-empty { display: flex; gap: 1rem; align-items: flex-start; }
.lp-empty > svg { width: 1.75rem; height: 1.75rem; flex: none; color: var(--accent-text); }
.lp-empty p { margin: 0; }
.lp-empty-h { font-size: 1.0625rem; font-weight: 700; color: var(--ink-strong); margin-bottom: .25rem !important; }
.lp-auto { display: flex; gap: .5rem; align-items: center; margin: 0; color: var(--ink-2); }
.lp-auto svg { width: 1rem; height: 1rem; flex: none; }
.lp-form-row td, .lp-form-row:hover td { background: var(--surface-2); }
.lp-form { display: grid; gap: 1rem; padding: .5rem 0; max-width: 64rem; }
.lp-form-h { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--ink-strong); }
.lp-form p { margin: 0; }
.lp-form .err:empty { display: none; }
.lp-fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-hint { font-weight: 500; line-height: 1.4; }
.lp-bank { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .75rem; }
.lp-bank legend { padding: 0; margin-bottom: .75rem; font-weight: 700; color: var(--ink-strong); }
/* the owner's check: an account the cafe partner typed itself */
.lp-bank-by { display: flex; gap: .375rem; align-items: flex-start; margin-top: .25rem; color: var(--warn); font-weight: 600; font-size: .875rem; line-height: 1.35; }
.lp-bank-by svg { width: 1rem; height: 1rem; flex: none; margin-top: .125rem; }

/* ---------------------------------------------------------------- the cafe partner's account for the share */
/* home page card while its booth has none (never blocks the page) */
.bank-nudge { border-color: var(--warn-line); background: var(--warn-soft); margin-bottom: var(--gap); }
.bank-nudge .sheet-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .875rem 1rem; }
.bank-nudge .sheet-body > svg { width: 1.5rem; height: 1.5rem; color: var(--warn); }
.bank-nudge .sheet-body > div { min-width: 0; }
.bank-nudge .h2 { margin: 0 0 .25rem; color: var(--ink-strong); }
.bank-nudge p { margin: 0; color: var(--ink); font-size: 1rem; }
/* Profil, first sign-in: own password + account on one screen */
.pb-first { max-width: 80rem; }
.pb-first .sheet-body { display: grid; gap: 1rem; }
.pb-first .h2 { font-size: 1.25rem; }
.pb-first p { margin: 0; }
.pb-lead { font-size: 1rem; color: var(--ink); max-width: 72ch; }
.pb-first .cs-info { margin: 0; }
.pb-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; align-items: start; max-width: 76rem; }
.pb-step { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.375rem 1.375rem; margin: 0; min-width: 0; display: grid; gap: .875rem; }
.pb-step legend { padding: 0 .375rem; margin-left: -.375rem; font-weight: 750; font-size: 1.0625rem; color: var(--ink-strong); }
.pb-step .lp-fgrid { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
.pb-first .err:empty { display: none; }
.pb-first .row-actions .btn { min-width: 12rem; }
/* Profil, later: the account on file, changeable */
.ov-half + .pb-sheet { margin-top: var(--gap); }
.pb-sheet.pb-missing { border-color: var(--warn-line); }
.pb-sheet .cs-info { margin: 0; }
.pb-sheet .lp-fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 60rem; }
.pb-now { display: grid; gap: .125rem; margin: 0; font-size: 1.0625rem; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.pf-onward { margin-left: auto; }

/* ---------------------------------------------------------------- one report: paper + side panel */
.lp-view { display: grid; grid-template-columns: minmax(0, 54rem) minmax(19rem, 25rem); gap: var(--gap) 2rem; align-items: start; }
.lp-side { display: grid; gap: var(--gap); position: sticky; top: 1.5rem; min-width: 0; }
.lp-card .h2 { margin-bottom: .75rem; }
.lp-card p { margin: 0 0 .75rem; }
.lp-card .row-actions { margin-top: .25rem; }
.lp-card .err:empty { display: none; }
.lp-card .err { margin-top: .625rem; }
.lp-state { display: flex; gap: .5rem; align-items: flex-start; font-weight: 650; color: var(--ink-strong); }
.lp-state svg { width: 1.125rem; height: 1.125rem; flex: none; margin-top: .1875rem; color: var(--ink-2); }
.lp-state.good, .lp-state.good svg { color: var(--good); }
.lp-state.warn, .lp-state.warn svg { color: var(--warn); }
.lp-acc { font-variant-numeric: tabular-nums; }
.lp-side .lp-fgrid { grid-template-columns: minmax(0, 1fr); }
.lp-side .lp-form { padding: 0; }
.lp-side .lp-form-h { display: none; }
.lp-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-variant-numeric: tabular-nums; }
.lp-view + .note, .note + .lp-view { margin-top: 0; }

/* The paper. Fixed document colours, both themes: white, neutral grey lines and text, DigiSnap brown only as the brand accent of this sent document (3 Dec 2026: no cream or sand fills or lines). */
.lp-paper {
  --p-ink: #1a1a1a; --p-strong: #0a0a0a; --p-ink-2: #404040; --p-line: #e5e5e5; --p-line-2: #d4d4d4;
  --p-accent: #8a4810; --p-bar: #9a5214; --p-bar-zero: #e5e5e5; --p-soft: #f7f7f7;
  --p-good: #007a55; --p-good-soft: #ecfdf5; --p-good-line: #a4f4cf; --p-warn: #a14300; --p-warn-soft: #fff4e6;
  color-scheme: light;
  font-size: 1rem; line-height: 1.45; color: var(--p-ink); background: #fff;
  border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 28px rgb(0 0 0 / .08);
  padding: 3em 3.25em 2.25em; display: grid; gap: 1.75em; min-width: 0;
  font-variant-numeric: tabular-nums;
}
:root[data-theme=dark] .lp-paper { border-color: #3d3d3d; box-shadow: 0 10px 40px rgb(0 0 0 / .45); }
.lp-paper h2, .lp-paper h3, .lp-paper p, .lp-paper dl, .lp-paper dd { margin: 0; }
.lp-paper .num { font-variant-numeric: tabular-nums; }
.lp-old { background: var(--p-warn-soft); color: var(--p-warn); font-weight: 700; padding: .75em 1em; border-radius: .375em; }

.lp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5em 2em; padding-bottom: 1.375em; border-bottom: 2px solid var(--p-strong); }
.lp-brand { display: grid; gap: .375em; justify-items: start; min-width: 0; }
.lp-logo { display: block; max-height: 3.5em; max-width: 13em; width: auto; height: auto; object-fit: contain; }
.lp-wordmark { font-size: 1.5em; font-weight: 800; letter-spacing: -.02em; color: var(--p-strong); line-height: 1.15; }
.lp-tenant { font-size: .875em; font-weight: 600; color: var(--p-ink-2); }
.lp-title { text-align: right; display: grid; gap: .25em; }
.lp-title h2 { font-size: 1.625em; font-weight: 800; letter-spacing: -.022em; line-height: 1.15; color: var(--p-strong); }
.lp-period { font-size: 1.1875em; font-weight: 700; color: var(--p-accent); }
.lp-range { font-size: .9375em; color: var(--p-ink-2); }

.lp-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em 1.5em; }
.lp-parties > div { display: grid; gap: .25em; align-content: start; min-width: 0; }
.lp-parties dt { font-size: .875em; font-weight: 600; color: var(--p-ink-2); }
.lp-parties dd { color: var(--p-strong); overflow-wrap: anywhere; }
.lp-parties dd b { font-size: 1.0625em; font-weight: 700; }
.lp-code { display: block; font-size: .875em; color: var(--p-ink-2); letter-spacing: .02em; }
.lp-sub { display: block; font-size: .875em; font-weight: 500; color: var(--p-ink-2); margin-top: .125em; }

.lp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75em 2.5em; }
.lp-sec { min-width: 0; }
.lp-sec h3 { font-size: 1.0625em; font-weight: 750; color: var(--p-strong); padding-bottom: .5em; border-bottom: 1px solid var(--p-line-2); letter-spacing: -.005em; }

.lp-ledger { width: 100%; border-collapse: collapse; }
.lp-ledger th, .lp-ledger td { padding: .5625em 0; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.lp-ledger th { text-align: left; font-weight: 500; color: var(--p-ink); padding-right: 1em; }
.lp-ledger td { text-align: right; font-weight: 650; color: var(--p-strong); white-space: nowrap; }
.lp-ledger .lp-total th, .lp-ledger .lp-total td { border-top: 1.5px solid var(--p-strong); border-bottom: 0; padding-top: .75em; font-weight: 800; color: var(--p-strong); }

.lp-share { background: var(--p-soft); border: 1px solid var(--p-line); border-radius: .5em; padding: 1.25em 1.5em 1.375em; display: grid; gap: .875em; }
.lp-share h3 { border-bottom-color: var(--p-line-2); }
.lp-share .lp-total th, .lp-share .lp-total td { border-top: 3px double var(--p-strong); font-size: 1.375em; padding-top: .5em; }
.lp-pay { font-weight: 650; color: var(--p-strong); }
.lp-note { color: var(--p-ink-2); font-size: .9375em; }
.lp-share-none { background: transparent; border-style: dashed; border-color: var(--p-line-2); }

.lp-chart { display: grid; gap: .375em; padding-top: 1em; }
.lp-chart-max { font-size: .875em; color: var(--p-ink-2); }
.lp-bars { height: 7.5em; display: flex; align-items: flex-end; gap: .1875em; border-bottom: 1px solid var(--p-line-2); }
.lp-bars i { flex: 1 1 0; min-width: 0; background: var(--p-bar); border-radius: .1875em .1875em 0 0; }
.lp-bars i.zero { min-height: 2px; background: var(--p-bar-zero); border-radius: 0; }
.lp-ticks { display: flex; gap: .1875em; font-size: .8125em; color: var(--p-ink-2); }
.lp-ticks span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: visible; }

.lp-list2 { width: 100%; border-collapse: collapse; }
.lp-list2 th, .lp-list2 td { padding: .5em 0; border-bottom: 1px solid var(--p-line); text-align: left; }
.lp-list2 th { font-size: .875em; font-weight: 600; color: var(--p-ink-2); padding-top: .625em; }
.lp-list2 td { color: var(--p-ink); }
.lp-list2 .r { text-align: right; padding-left: 1em; white-space: nowrap; }
.lp-list2 td.r:last-child { font-weight: 650; color: var(--p-strong); }
.lp-list2 td:first-child { overflow-wrap: anywhere; }
.lp-unnamed { color: var(--p-ink-2); font-style: italic; }

.lp-foot { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; padding-top: 1em; border-top: 1px solid var(--p-line); font-size: .8125em; color: var(--p-ink-2); }

/* wide desktop: the paper keeps an A4 measure, the panel sits beside it */
@media (max-width: 1600px) {
  .lp-view { grid-template-columns: minmax(0, 1fr); }
  .lp-paper { max-width: 54rem; }
  .lp-side { position: static; max-width: 54rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
}
/* phone: everything in one column, the paper loses its page margins but keeps its order */
@media (max-width: 900px) {
  .lp-fgrid, .pb-sheet .lp-fgrid { grid-template-columns: minmax(0, 1fr); }
  .lp-page { --lp-pad: 1rem; }
  .pb-steps { grid-template-columns: minmax(0, 1fr); }
  .pb-step { padding: .875rem 1rem 1.125rem; }
  .pb-first .row-actions .btn { width: 100%; }
}
@media (max-width: 640px) {
  .lp-paper { padding: 1.5em 1.125em 1.25em; gap: 1.375em; font-size: .9375rem; border-radius: 0; margin: 0 calc(-1 * clamp(1rem, 2.2vw, 2.5rem)); border-left: 0; border-right: 0; }
  .lp-top { flex-direction: column; gap: 1em; }
  .lp-title { text-align: left; }
  .lp-title h2 { font-size: 1.4375em; }
  .lp-parties, .lp-grid2 { grid-template-columns: minmax(0, 1fr); }
  .lp-share { padding: 1em 1.125em 1.125em; }
  .lp-share .lp-total th, .lp-share .lp-total td { font-size: 1.25em; }
  .lp-bars { height: 6em; gap: 1px; }
  .lp-ticks { gap: 1px; }
  .lp-side { grid-template-columns: minmax(0, 1fr); }
  .lp-list th:nth-child(2), .lp-list td:nth-child(2) { display: none; }
  .bank-nudge .sheet-body { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .bank-nudge .sheet-body > svg { margin-top: .125rem; }
  .bank-nudge .sheet-body > a { grid-column: 2; justify-self: start; }
}

/* ---------------------------------------------------------------- print: the paper alone, A4 */
@page lp-a4 { size: A4; margin: 12mm 13mm; }
@media print {
  /* style.js hides every element for the voucher cards' print; this page prints the paper instead */
  body:has(.lp-paper) { background: #fff; color-scheme: light; }
  body:has(.lp-paper) * { visibility: visible; }
  body:has(.lp-paper) .top, body:has(.lp-paper) .side, body:has(.lp-paper) .scrim, body:has(.lp-paper) .bell-panel,
  body:has(.lp-paper) .page-head, body:has(.lp-paper) .lp-side, body:has(.lp-paper) .main > .calm, body:has(.lp-paper) .main > .note,
  body:has(.lp-paper) .main > .err, body:has(.lp-paper) .bank-nudge { display: none !important; }
  body:has(.lp-paper) .shell { display: block; min-height: 0; }
  body:has(.lp-paper) .main { padding: 0; margin: 0; width: auto; }
  .lp-view { display: block; }
  /* one report = one A4 page: 9 pt type and tighter rows (the screen keeps its air) */
  .lp-paper { page: lp-a4; font-size: 9pt; line-height: 1.35; max-width: none; width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 4.5mm; }
  .lp-paper, .lp-paper * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lp-top, .lp-parties, .lp-sec, .lp-chart, .lp-ledger tr, .lp-list2 tr { break-inside: avoid; }
  .lp-sec h3 { break-after: avoid; padding-bottom: .375em; }
  .lp-top { flex-direction: row; padding-bottom: 1em; }
  .lp-logo { max-height: 3em; }
  .lp-title { text-align: right; }
  .lp-title h2 { font-size: 1.5em; }
  .lp-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5mm 9mm; }
  .lp-parties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-ledger th, .lp-ledger td { padding: .375em 0; }
  .lp-ledger .lp-total th, .lp-ledger .lp-total td { padding-top: .5em; }
  .lp-share { padding: .875em 1.25em 1em; gap: .5em; }
  .lp-share .lp-total th, .lp-share .lp-total td { font-size: 1.25em; padding-top: .375em; }
  .lp-chart { padding-top: .5em; gap: .25em; }
  .lp-bars { height: 5em; }
  .lp-list2 th, .lp-list2 td { padding: .3125em 0; }
  .lp-list2 th { padding-top: .5em; }
  .lp-foot { padding-top: .625em; }
}

/* ---------------------------------------------------------------- Gallery: filters + view switch */
.filters .row1 .gg-filt { display: flex; gap: .625rem 1rem; align-items: center; flex-wrap: wrap; min-width: 0; }
.gg-views button { display: inline-flex; align-items: center; gap: .4rem; }
.gg-views svg { width: 1rem; height: 1rem; flex: none; }

/* ---------------------------------------------------------------- Gallery: photo grid */
.gg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.375rem 1rem; align-items: start; }
.gg-day { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .625rem; margin: 1rem 0 -.375rem; font-size: 1.0625rem; letter-spacing: -.01em; }
.gg-day:first-child { margin-top: 0; }
.gg-day b { font-weight: 750; color: var(--ink-strong); }
.gg-day span { font-weight: 650; color: var(--ink-2); }
.gg-card { display: grid; gap: .375rem; min-width: 0; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gg-pic { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; padding: .625rem; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-3); transition: border-color .15s ease, box-shadow .15s ease; }
.gg-pic img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .22)); }
.gg-card:hover .gg-pic { border-color: var(--accent-line); box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.gg-card:focus-visible { outline: none; }
.gg-card:focus-visible .gg-pic { outline: 2px solid var(--accent); outline-offset: 2px; }
.gg-pill { position: absolute; top: .5rem; left: .5rem; }
.gg-none { display: grid; justify-items: center; gap: .5rem; padding: 1rem; color: var(--ink-2); font-size: .9375rem; font-weight: 650; text-align: center; }
.gg-none svg { width: 2rem; height: 2rem; }
.gg-card.gone .gg-pic { border-style: dashed; border-color: var(--line-2); background: var(--surface-2); }
.gg-pic.broken::after { content: attr(data-broken); padding: 1rem; color: var(--ink-2); font-size: .9375rem; text-align: center; }
.gg-cap { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; min-width: 0; padding: 0 .125rem; }
.gg-cap b { flex: none; font-size: 1.0625rem; font-weight: 750; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.gg-cap .num { flex: none; color: var(--ink-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.gg-booth, .gg-frame { display: block; min-width: 0; margin-top: -.25rem; padding: 0 .125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; }
.gg-booth { color: var(--ink); font-weight: 650; }
.gg-frame { color: var(--ink-2); }
.gg-foot { display: grid; justify-items: center; gap: .75rem; padding: 2rem 0 1rem; }
.gg-foot:empty { display: none; }
.gg-count { margin: 0; color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.gg-empty { width: 100%; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------------- Gallery: session viewer (modal dialog) */
.glb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--side-bg); color: var(--side-ink); }
.glb::backdrop { background: rgb(0 0 0 / .7); }
html:has(dialog.glb[open]) { overflow: hidden; } /* the page behind does not scroll under the viewer */
.glb-in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; outline: none; }
.glb :focus-visible { outline: 2px solid var(--side-ink); outline-offset: 2px; }
.glb-top { display: flex; align-items: flex-start; gap: .75rem 1.25rem; min-width: 0; padding: 1rem 1.25rem .875rem 1.5rem; border-bottom: 1px solid var(--side-line); }
.glb-what { flex: 1; display: grid; gap: .25rem; min-width: 0; }
.glb-title { margin: 0; font-size: 1.375rem; font-weight: 750; letter-spacing: -.01em; color: var(--side-ink); }
.glb-title .num { font-variant-numeric: tabular-nums; }
.glb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: 0; color: var(--side-ink-2); font-size: 1rem; }
.glb-meta .pill { margin-left: .375rem; }
.glb-count { margin: 0; color: var(--side-ink-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.glb-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem; }
.glb .btn { display: inline-flex; align-items: center; gap: .45rem; background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .2); color: var(--side-ink); box-shadow: none; text-decoration: none; white-space: nowrap; }
.glb .btn:hover { background: rgb(255 255 255 / .15); border-color: rgb(255 255 255 / .32); }
.glb .btn svg { width: 1.0625rem; height: 1.0625rem; flex: none; }
.glb .btn.btn-danger { background: var(--bad); border-color: var(--bad); color: var(--on-bad); }
.glb .err { color: #ff8fa3; }
.glb-x { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .07); color: var(--side-ink); cursor: pointer; }
.glb-x:hover { background: rgb(255 255 255 / .16); }
.glb-x svg { width: 1.375rem; height: 1.375rem; }
.glb-main { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem; align-items: center; min-height: 0; }
.glb-nav { justify-self: center; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .08); color: var(--side-ink); cursor: pointer; }
.glb-nav:hover:not(:disabled) { background: rgb(255 255 255 / .18); }
.glb-nav:disabled { opacity: .28; cursor: default; }
.glb-nav svg { width: 1.75rem; height: 1.75rem; }
.glb-stage { position: relative; height: 100%; min-height: 0; }
.glb-stage > img, .glb-stage > video { position: absolute; top: 1rem; left: 0; width: 100%; height: calc(100% - 2rem); object-fit: contain; }
.glb-stage > img { filter: drop-shadow(0 10px 28px rgb(0 0 0 / .45)); }
.glb-stage.broken::after { content: attr(data-broken); position: absolute; inset: 0; display: grid; place-items: center; color: var(--side-ink-2); font-size: 1.0625rem; }
.glb-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; margin: 0; padding: 1rem; color: var(--side-ink-2); font-size: 1.0625rem; text-align: center; }
.glb-empty svg { width: 2.5rem; height: 2.5rem; }
.glb-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; padding: .75rem 1.5rem 1rem; border-top: 1px solid var(--side-line); }
.glb-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; min-height: 2.25rem; }
.glb-cap:empty { display: none; }
.glb-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem .875rem; font-size: 1rem; }
.glb-file b { font-size: 1.0625rem; font-weight: 750; color: var(--side-ink); }
.glb-file .num { color: var(--side-ink-2); font-variant-numeric: tabular-nums; }
.glb-fileacts { display: flex; flex-wrap: wrap; gap: .5rem; }
.glb-confirm { display: grid; gap: .625rem; padding: .875rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .06); }
.glb-confirm p { margin: 0; max-width: 75ch; }
.glb-confirm .err:empty { display: none; }
.glb-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .125rem .375rem; scrollbar-color: var(--side-line) transparent; }
.glb-tile { flex: none; padding: 0; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.glb-tpic { position: relative; display: grid; place-items: center; width: 4.5rem; height: 6rem; overflow: hidden; border-radius: 10px; border: 2px solid transparent; background: rgb(255 255 255 / .06); }
.glb-tpic img { width: 100%; height: 100%; object-fit: contain; }
.glb-tile:hover .glb-tpic { border-color: rgb(255 255 255 / .32); }
.glb-tile[aria-current=true] .glb-tpic { border-color: var(--side-ink); background: rgb(255 255 255 / .14); }
.glb-play { position: absolute; right: .3rem; bottom: .3rem; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 999px; background: rgb(0 0 0 / .78); color: #fff; }
.glb-play svg { width: .875rem; height: .875rem; fill: currentColor; }
.glb-wait { margin: 0; color: var(--side-ink-2); }
.glb-keys { margin: 0; color: var(--side-ink-2); font-size: .9375rem; }
@media (hover: none) { .glb-keys { display: none; } }

@media (max-width: 600px) {
  .gg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem .75rem; }
  .gg-pic { padding: .375rem; }
  .gg-filt, .gg-filt > .seg, .gg-views { width: 100%; }
  .gg-filt > .seg { flex-wrap: nowrap; }
  .gg-filt > .seg button { flex: 1 1 auto; padding: 0 .375rem; } /* the four ranges on one line */
  .gg-views button { flex: 1; justify-content: center; }
  .glb-top { flex-wrap: wrap; gap: .625rem .75rem; padding: .75rem .875rem .625rem 1rem; }
  .glb-what { flex: 1 1 calc(100% - 3.75rem); }
  .glb-title { font-size: 1.1875rem; }
  .glb-meta { font-size: .9375rem; }
  .glb-acts { order: 3; width: 100%; flex-wrap: nowrap; }
  .glb-acts .btn { flex: 1 1 0; min-width: 0; height: auto; min-height: 2.5rem; justify-content: center; padding: .25rem .5rem; white-space: normal; text-align: center; line-height: 1.15; } /* a long word wraps, never cut */
  .glb-acts .btn svg { display: none; } /* three words side by side fit a phone; the icons do not */
  .glb-main { position: relative; grid-template-columns: minmax(0, 1fr); }
  .glb-nav { position: absolute; top: 50%; z-index: 1; width: 2.75rem; height: 2.75rem; transform: translateY(-50%); background: rgb(0 0 0 / .6); }
  .glb-nav[data-glb-step="-1"] { left: .375rem; }
  .glb-nav[data-glb-step="1"] { right: .375rem; }
  .glb-nav:disabled { display: none; }
  .glb-stage > img, .glb-stage > video { top: .5rem; height: calc(100% - 1rem); }
  .glb-foot { gap: .5rem; padding: .625rem .875rem .875rem; }
  .glb-fileacts { width: 100%; }
  .glb-fileacts .btn { flex: 1; justify-content: center; }
  .glb-tpic { width: 3.5rem; height: 4.75rem; }
}
@media (prefers-reduced-motion: reduce) { .gg-pic { transition: none; } }

/* Detail teknis: closed by default, a quiet line that is still readable (ink-2, 14 px+, never pale grey) */
details.tech { margin-top: .5rem; border-top: 1px dashed var(--line-2); padding-top: .375rem; }
details.tech > summary { cursor: pointer; display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; font-size: .875rem; font-weight: 650; color: var(--ink-2); list-style: none; border-radius: 6px; }
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: .125rem; }
details.tech[open] > summary::before { transform: rotate(45deg); }
details.tech > summary:hover { color: var(--ink-strong); }
details.tech > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.tech > *:not(summary) { margin-top: .5rem; }
.tech-dl { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: .25rem 1rem; margin: .5rem 0 0; font-size: .875rem; }
.tech-dl dt { color: var(--ink-2); font-weight: 650; }
.tech-dl dd { margin: 0; color: var(--ink-strong); font-family: var(--mono); font-size: .8125rem; overflow-wrap: anywhere; }
.tech .pair-cmd { margin: .375rem 0; }
.st-card details.tech { margin-top: 0; }
.alerts-list details.tech, .al-list details.tech { margin-top: .25rem; }
@media (max-width: 600px) { .tech-dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .tech-dl dd { margin-bottom: .375rem; } }

/* status words are sentences now: sentence case, a bit larger, never small capitals */
.pill, .spill, .chip, .bc-state, .stag, .tag { text-transform: none; letter-spacing: 0; font-size: .8125rem; }
/* a booth that never connected: one sentence instead of empty tiles (T6) */
.st-fresh { margin: 0; display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .875rem; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface-2); color: var(--ink-2); font-size: .9375rem; }
.st-fresh svg { flex: none; width: 1.125rem; height: 1.125rem; margin-top: .125rem; }
.stag { font-weight: 700; padding: .125rem .5rem; }
.st-body .k { font-size: .75rem; }
.st-body .v { font-size: 1.0625rem; }

/* Transactions: the payment code only when "Tampilkan kode pembayaran" is ticked (T29) */
.tx-id { display: none; color: var(--ink-2); overflow-wrap: anywhere; }
.tx-id code { font-family: var(--mono); color: var(--ink-strong); }
.show-tech .tx-id { display: block; }
.tx-tech { margin-left: auto; font-size: .875rem; }

/* Team: a locked sign-in (T19) */
.tm-locked { display: block; margin-top: .25rem; font-size: .875rem; color: var(--warn); font-weight: 600; }

/* QR maker: the advanced options fold away (T22) */
details.q-adv { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .75rem; background: var(--surface-2); }
details.q-adv > summary { cursor: pointer; font-weight: 700; color: var(--ink-strong); min-height: 2rem; display: flex; align-items: center; gap: .5rem; list-style: none; }
details.q-adv > summary::-webkit-details-marker { display: none; }
details.q-adv > summary::before { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details.q-adv[open] > summary::before { transform: rotate(45deg); }
details.q-adv[open] > summary { margin-bottom: .5rem; }

/* Booths on a phone or a narrow window (§4): the list stacks above the booth there, so it folds into one picker */
.ws-phonebar { display: none; }
@media (max-width: 1100px) {
  .ws-phonebar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; padding: .75rem 1rem; margin-bottom: var(--gap); }
  .ws-phonebar label { display: grid; gap: .25rem; flex: 1 1 14rem; min-width: 0; font-weight: 700; color: var(--ink-strong); }
  .ws-phonebar select { width: 100%; min-height: 2.75rem; font-size: 1rem; }
  .ws-phonebar .btn { min-height: 2.75rem; }
  .ws:not(.list-open) > .ws-list { display: none; }
}
/* Booth > Setelan on a phone: the "Semua booth / Hanya booth ini" buttons squeezed the title and its sentence into a column
   one word wide; the buttons now go under the title when there is no room beside it */
.cs-head { flex-wrap: wrap; }
.cs-head > :first-child { flex: 1 1 18rem; }
/* a table's scroll box holds everything inside it: the screen-reader-only label of a column ("Atur" on Laporan bulanan) is
   absolutely placed and, with no positioned box around it, escaped the scroll box and made the whole page scroll 14 px
   sideways on a phone (sweep after the fase-2b merge, 2 Dec 2026) */
.table-wrap { position: relative; }
/* tab pills (settings groups, voucher filters): words, not small capitals */
.tabs button, .pilltabs button { text-transform: none; letter-spacing: 0; font-size: .875rem; }
/* the four booth tabs did not fit a phone ("Jam operasional" was cut at the right edge): two by two there */
@media (max-width: 480px) {
  .ws-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; justify-self: stretch; }
  .ws-tabs a { justify-content: center; padding: 0 .5rem; }
}

/* ---------------------------------------------------------------- emptied helper sentences take no space */
#page p:empty:not([aria-live]):not([role]), #page span.n:empty, #page span.k:empty, #page small:empty, #page .fe-hint:empty, #page .as-state:empty,
.login p:empty { display: none; }
#page .cs-info:has(> span:empty), #page .lp-auto:has(> span:empty) { display: none; }
#page .sheet-head > div:has(> h2:only-child) { align-self: center; }
.ov-scope { padding-block: 1rem; }
.ov-scope > div:has(> h2:only-child) { align-self: center; }

/* ---------------------------------------------------------------- toast: one short line, then gone */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, .75rem); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: .625rem; max-width: min(32rem, calc(100vw - 2rem)); padding: .75rem 1.125rem;
  border-radius: 12px; background: var(--tip-bg); color: var(--tip-ink); font-weight: 650; font-size: .9375rem; line-height: 1.3;
  box-shadow: 0 12px 32px rgb(0 0 0 / .22); transition: opacity .18s ease, transform .18s ease; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--good-dot); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------------------------------------------------------------- fixes found on the way */
/* a page whose sub line is only the test-server tag: the tag starts at the edge */
.page-head p.ph-sub.tag-only .env-tag { margin-left: 0; }
/* Booth head: a lone "move to another PC" button sits in the row of the other buttons (no rule above it) */
.ws-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ws-acts > .row-actions { margin: 0; }
.ws-acts > .ws-pair { margin: 0; padding: 0; border-top: 0; }
/* Booth settings, yes/no rows: "belum diketahui" sits at the far right, and on a phone on its own line under the label
   (it squeezed the label to one word per line) */
.cf-check > .unknown-word { margin-left: auto; text-align: right; }
@media (max-width: 700px) {
  .cf-check { flex-wrap: wrap; row-gap: .125rem; }
  .cf-check > .name { flex: 1 1 0; min-width: 0; }
  .cf-check > .unknown-word { flex: 1 0 100%; margin-left: 0; padding-left: 1.875rem; text-align: left; }
}
/* Small uppercase captions (owner: "kebanyakan detail tulisan kecil"): at least 0.8125rem, 13 px on a phone */
.st-body .k, .an-hour .k, .fr-cat, .fr-card .fr-active, .stag { font-size: .8125rem; }
.st-box small, .st-act small, .st-mon .err { font-size: .8125rem; }
/* Frame card: the booths line keeps the height of its pill when an inactive frame has none (cards stay aligned) */
.fr-card .fr-where { min-height: 1.875rem; }
/* Overview, booth status head on a phone: the search box takes the full width of its own row (it was pushed right) */
@media (max-width: 700px) { .st-search { width: 100%; margin-left: 0; } }

/* ---------------------------------------------------------------- audit 3 Dec 2026 afternoon (docs/AUDIT-3DES-SORE-DASBOR.md) */
/* D01: every drop-down shows its arrow again (r8-style.js set the "background" shorthand, which removed it), and dark mode gets
   a light arrow (the dark grey one was invisible on a dark field) */
:root[data-theme=dark] select, :root[data-theme=dark] .ms summary { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d4d4d4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* D06: "Menunggu dipasang" in the booth list is amber like the same state in the booth head (it was green, like "Siap") */
.ws-item .pair-tag.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
/* D08: a file field in the page's language ("Pilih berkas" + the chosen name) instead of the browser's English "Choose file" */
.filepick { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 2.625rem; font-weight: 500; }
.filepick > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filepick > .fp-btn { flex: none; pointer-events: none; }
.filepick > .fp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.filepick > input[type=file]:focus-visible + .fp-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.filepick:hover > .fp-btn { border-color: var(--ink-3); }
/* D09: the QR and Riwayat buttons of a voucher row sit on one line (the icon pushed the QR button up) */
.data td .btn { vertical-align: middle; }
/* D11: Booth > Setelan > Filter on a phone: the list's title and counts got a 30 px column (one word per line) under the
   "Foto contoh" / "Unggah .cube" buttons; on a phone the buttons go under the text */
@media (max-width: 700px) {
  .fl-embed .fl-bar { grid-template-columns: minmax(0, 1fr); }
  .fl-embed .fl-bar > .row-actions { flex-wrap: wrap; }
}
/* D12: Transaksi on a phone: the filter left alone on the last row takes the whole width ("Semua metode" was cut to "Semua metoc") */
@media (max-width: 600px) { .filters .row2 > label:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* D15: Buat voucher on a phone: one field per row ("Gratis (seluruh pesanan)" was cut to "Gratis (seluru", the code field was
   half wide) */
@media (max-width: 600px) { .vform .form-grid { grid-template-columns: minmax(0, 1fr); } }
/* D16: on a phone the Laporan bulanan tables and the alerts history were wider than the screen (last column cut, booth names one
   word per line). There every row becomes a small card: the first cell on top, then "label .... value" lines (data-label) */
@media (max-width: 600px) {
  table.stack-sm > thead { display: none; }
  table.stack-sm, table.stack-sm > tbody { display: block; width: auto; }
  table.stack-sm > tbody > tr { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 1rem; border-bottom: 1px solid var(--line); }
  table.stack-sm > tbody > tr:last-child { border-bottom: 0; }
  table.stack-sm > tbody > tr > td,
  .lp-flush table.stack-sm > tbody > tr > td:first-child, .lp-flush table.stack-sm > tbody > tr > td:last-child { display: block; width: auto; padding: 0; border: 0; text-align: left; white-space: normal; }
  table.stack-sm > tbody > tr > td[data-label] { text-align: right; }
  table.stack-sm > tbody > tr > td[data-label]::before { content: attr(data-label); float: left; margin-right: 1rem; color: var(--ink-2); font-weight: 600; text-align: left; }
  table.stack-sm > tbody > tr > td[data-label]::after { content: ""; display: block; clear: both; }
  table.stack-sm > tbody > tr > td:last-child:not([data-label]) { padding-top: .375rem; }
  .lp-list.stack-sm td:nth-child(2) { display: block; }
  .al-hist.stack-sm .al-hb { order: -1; font-weight: 700; }
  .al-hist.stack-sm .al-hb:empty { display: none; }
}
/* D19: the "hemat 20%" line of the price table was 12 px, under the 13 px minimum for small text */
.pq .n { font-size: .8125rem; }
