:root {
  --bg: #f2f2f7; --card: #ffffff; --card2: #f7f7fa; --text: #111114; --muted: #8a8a90; --sep: rgba(60, 60, 67, .18);
  --accent: #c8742f; --accent-ink: #ffffff; --accent-soft: rgba(200, 116, 47, .12); --danger: #e5484d; --ok: #30a46c;
  --radius: 14px; --tabbar-h: 58px; --topbar-h: 52px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px); --safe-right: env(safe-area-inset-right, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --card: #1c1c1e; --card2: #2c2c2e; --text: #f2f2f7; --muted: #98989f; --sep: rgba(84, 84, 88, .6); --accent: #e0914f; --accent-soft: rgba(224, 145, 79, .18); }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + var(--safe-top) + 8px); scroll-padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
[hidden] { display: none !important; }

/* ---------- rám aplikácie ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px;
  padding: calc(var(--safe-top) + 6px) calc(var(--safe-right) + 10px) 6px calc(var(--safe-left) + 10px); min-height: calc(var(--topbar-h) + var(--safe-top));
  background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep); }
.topbar h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .side { width: 96px; display: flex; align-items: center; gap: 4px; }
.topbar .side.right { justify-content: flex-end; }
.topbar .back { background: none; border: 0; color: var(--accent); font-size: 17px; padding: 8px 4px; display: flex; align-items: center; gap: 2px; }
.topbar .back::before { content: ""; width: 11px; height: 11px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
.save-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.save-status.err { color: var(--danger); }

.view { max-width: 760px; margin: 0 auto; padding: 14px calc(var(--safe-right) + 14px) calc(var(--tabbar-h) + var(--safe-bottom) + 90px) calc(var(--safe-left) + 14px); }
.big-title { font-size: 32px; font-weight: 800; margin: 4px 4px 14px; letter-spacing: -.02em; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; padding: 4px calc(var(--safe-right) + 4px) calc(var(--safe-bottom) + 2px) calc(var(--safe-left) + 4px);
  background: var(--card); background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 500; }
.tabbar a .ico { font-size: 22px; line-height: 1.1; filter: grayscale(1); opacity: .75; }
.tabbar a.on { color: var(--accent); }
.tabbar a.on .ico { filter: none; opacity: 1; }

/* ---------- skupiny a riadky (iOS štýl) ---------- */
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 22px 16px 7px; }
.group { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.group + .group { margin-top: 12px; }
.group-foot { font-size: 13px; color: var(--muted); margin: 7px 16px 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; position: relative; background: var(--card); width: 100%; border: 0; text-align: left; }
.row + .row::before, .field + .field::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: .5px solid var(--sep); }
a.row, button.row { color: inherit; text-decoration: none; }
a.row:active, button.row:active { background: var(--card2); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.chev::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); opacity: .6; flex: none; margin-left: 2px; }
.row.dim .title, .row.dim .thumb { opacity: .45; }
.row .thumb { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.row.danger { color: var(--danger); justify-content: center; font-weight: 500; }
.row.accent { color: var(--accent); font-weight: 500; }

.order { display: flex; flex-direction: column; flex: none; margin: -6px 0; }
.order button { background: none; border: 0; color: var(--muted); padding: 2px 8px; font-size: 13px; line-height: 1.2; }
.order button:disabled { opacity: .2; }

/* ---------- polia formulára ---------- */
.field { position: relative; display: block; padding: 10px 14px; background: var(--card); }
.field > .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field > .lbl b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.field.inline { display: flex; align-items: center; gap: 12px; min-height: 50px; }
.field.inline > .lbl { flex: 1; margin: 0; font-size: 16px; color: var(--text); }
.field .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.input, .field select, .field textarea { width: 100%; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--sep); background: var(--card2); outline: none; -webkit-appearance: none; appearance: none; }
.input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.4; }
.field textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; min-height: 160px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* prepínač */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; inset: 0; opacity: 0; margin: 0; z-index: 1; cursor: pointer; }
.switch span { position: absolute; top: 0; left: 0; right: 0; bottom: 0; inset: 0; border-radius: 999px; background: rgba(120, 120, 128, .32); background: color-mix(in srgb, var(--muted) 40%, transparent); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }

/* segmenty */
.seg { display: flex; background: var(--card2); border-radius: 10px; padding: 2px; gap: 2px; border: 1px solid var(--sep); }
.seg button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 8px; font-size: 14px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg button.on { background: var(--card); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); color: var(--accent); }
@media (prefers-color-scheme: dark) { .seg button.on { background: #48484a; color: #fff; } }

/* posuvník */
.range { display: flex; align-items: center; gap: 12px; }
.range input[type=range] { flex: 1; height: 32px; accent-color: var(--accent); }
.range .num { width: 74px; text-align: center; padding: 8px 6px; }

/* farba */
.color { display: flex; align-items: center; gap: 10px; }
.color .sw { position: relative; width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--sep); overflow: hidden; flex: none; }
.color .sw input { position: absolute; top: -8px; left: -8px; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); border: 0; padding: 0; cursor: pointer; }
.color .sw.auto { background: repeating-conic-gradient(var(--card2) 0 25%, color-mix(in srgb, var(--muted) 35%, transparent) 0 50%) 0 0 / 12px 12px !important; }
.color .sw.auto input { opacity: 0; }
.color .input { font-family: ui-monospace, Menlo, monospace; text-transform: lowercase; }
.swatches { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--sep); padding: 0; }

/* čipy */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 1px solid var(--sep); background: var(--card2); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* obrázok */
.media { display: flex; gap: 12px; align-items: center; }
.media .pv { width: 88px; height: 66px; border-radius: 10px; background: var(--card2) center/cover no-repeat; border: 1px solid var(--sep); flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; overflow: hidden; }
.media .pv video { width: 100%; height: 100%; object-fit: cover; }
.media .btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 9px 14px; font-size: 15px; font-weight: 600; background: var(--accent-soft); color: var(--accent); text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: rgba(229, 72, 77, .12); color: var(--danger); }
.btn.block { width: 100%; padding: 14px; font-size: 16px; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; }
.btn:active { transform: scale(.97); }
.btns-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { background: none; border: 0; color: var(--accent); font-size: 26px; line-height: 1; padding: 4px 8px; font-weight: 300; }

.search { position: relative; margin-bottom: 14px; }
.search input { padding-left: 36px; background: rgba(120, 120, 128, .14); background: color-mix(in srgb, var(--muted) 14%, transparent); border-color: transparent; }
.search::before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 20px; }

.empty-note { text-align: center; color: var(--muted); padding: 30px 16px; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--card2); color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.pill.warn { background: rgba(229, 72, 77, .14); color: var(--danger); }

/* ---------- editor obrazovky ---------- */
.preview-wrap { position: sticky; top: calc(var(--topbar-h) + var(--safe-top)); z-index: 10; margin: -14px -14px 12px; padding: 10px 14px; background: var(--bg); }
.preview { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.preview iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.preview-wrap.collapsed .preview, .preview-wrap.typing .preview { display: none; }
.preview-wrap.typing .preview-bar { display: none; }
.preview-wrap.collapsed .preview-bar { margin-top: 0; }
.acc { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.acc > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px; font-weight: 600; font-size: 16px; cursor: pointer; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); font-size: 17px; }
.acc > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc[open] > summary { border-bottom: .5px solid var(--sep); }
.sub-title { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 14px 2px; background: var(--card); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 14px; }
.preset { border: 1px solid var(--sep); border-radius: 12px; padding: 0; overflow: hidden; background: var(--card2); text-align: left; position: relative; }
.preset .pv { height: 64px; display: flex; align-items: flex-end; padding: 8px; gap: 5px; }
.preset .pv i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); }
.preset .pv .t { font-size: 20px; line-height: 1; flex: 1; }
.preset .nm { font-size: 13px; font-weight: 600; padding: 7px 9px; }
.preset .del { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; font-size: 13px; }

/* ---------- galéria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.gallery .g { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--card2); border: 0; padding: 0; }
.gallery .g img, .gallery .g video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g .x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; }
.gallery .g .sz { position: absolute; left: 5px; bottom: 5px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 5px; }

/* ---------- plávajúce tlačidlo ---------- */
.fab { position: fixed; right: calc(var(--safe-right) + 18px); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); z-index: 25; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--accent-ink); font-size: 30px; font-weight: 300; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; }

/* ---------- spodné okná (sheets) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .4); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 760px; max-height: calc(100% - var(--safe-top) - 20px); overflow: auto; -webkit-overflow-scrolling: touch; background: var(--bg); border-radius: 16px 16px 0 0;
  padding: 8px calc(var(--safe-right) + 14px) calc(var(--safe-bottom) + 20px) calc(var(--safe-left) + 14px); animation: up .25s cubic-bezier(.2, .8, .2, 1); }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: var(--sep); margin: 2px auto 10px; }
.sheet h2 { font-size: 18px; margin: 4px 4px 12px; display: flex; justify-content: space-between; align-items: center; }
.sheet.full { height: calc(100% - var(--safe-top) - 10px); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 20px); transform: translate(-50%, 20px); z-index: 90; background: rgba(30, 30, 32, .94); color: #fff;
  padding: 11px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 40px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--danger); }

/* ---------- prihlásenie ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px calc(var(--safe-right) + 20px) 24px calc(var(--safe-left) + 20px); }
.login form { width: 100%; max-width: 360px; text-align: center; }
.login .logo { font-size: 58px; margin-bottom: 8px; }
.login h1 { margin: 0 0 4px; font-size: 26px; }
.login p { color: var(--muted); margin: 0 0 24px; }
.login .input { margin-bottom: 12px; text-align: center; padding: 14px; }
.login .err { color: var(--danger); min-height: 22px; font-size: 14px; }

@media (min-width: 800px) {
  .view { padding-top: 24px; }
  .preview-wrap { margin: -24px 0 16px; }
}

/* výber dňa v týždennom menu */
.days-seg button { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 7px 2px; line-height: 1.2; }
.days-seg button b { font-size: 15px; }
.days-seg button small { font-size: 11px; color: var(--muted); font-weight: 500; }
.days-seg button small.cnt { color: var(--ok); font-weight: 700; }
.days-seg button small.cnt.zero { color: var(--muted); }

/* ďalšie veľkosti jedla */
.variants-ed { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.variant-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; width: 100%; align-items: center; }

/* ---------- denné / týždenné menu ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 4px 10px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.section-head .muted { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.days-sticky { position: sticky; top: calc(var(--topbar-h) + var(--safe-top)); z-index: 9; margin: 14px -14px 0; padding: 8px 14px; background: var(--bg); }
.days-seg button.today b::after { content: "•"; color: var(--accent); margin-left: 2px; }
.days-seg button small.cnt { font-size: 10px; }
.warn-row { background: rgba(229, 72, 77, .08); color: var(--danger); font-size: 14px; font-weight: 500; }
.mini-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.acc-t { display: flex; flex-direction: column; line-height: 1.2; }
.acc-t small { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.acc .field.hint { font-size: 12px; color: var(--muted); padding-top: 0; }

.dishes { display: flex; flex-direction: column; gap: 10px; }
.dish { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.dish-top { display: flex; align-items: center; gap: 10px; }
.dish-top .input { font-weight: 600; }
.dish-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dish-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; }
.mini { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini > span { font-size: 11.5px; color: var(--muted); font-weight: 500; padding-left: 2px; }
.mini .input { padding: 9px 10px; }
.dish-variants { display: flex; flex-direction: column; gap: 4px; }
.dish-actions { display: flex; align-items: center; gap: 6px; padding-top: 2px; }
.dish-actions .grow { flex: 1; }

/* Teraz na TV — rýchle vypredané */
.row.quick { cursor: pointer; min-height: 58px; -webkit-user-select: none; user-select: none; }
.row.quick .title { white-space: normal; }
.row.quick .state { font-size: 12px; font-weight: 600; color: var(--ok); white-space: nowrap; }
.row.quick.sold { background: rgba(229, 72, 77, .07); }
.row.quick.sold .title { text-decoration: line-through; text-decoration-color: var(--danger); color: var(--muted); }
.row.quick.sold .state { color: var(--danger); }
.row.quick .switch input:not(:checked) + span { background: var(--danger); }
.dish-avail { flex: none; display: flex; }
.dish-top.sold .input { text-decoration: line-through; color: var(--muted); }
.dish-top.sold .switch input:not(:checked) + span { background: var(--danger); }
.tabbar a { font-size: 10px; }

/* Nastavenia → Čo zobrazovať */
.feature-row { min-height: 62px; }
.feature-row .sub { white-space: normal; }
.feature-row.off .thumb { filter: grayscale(1); opacity: .5; }
.feature-row.off .title { color: var(--muted); }

/* výber medzi viacerými dennými menu */
.menu-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 12px; padding: 2px 14px 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.menu-chips::-webkit-scrollbar { display: none; }
.menu-chip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid var(--sep); background: var(--card); border-radius: 12px; padding: 8px 12px; text-align: left; max-width: 70%; }
.menu-chip b { font-size: 15px; }
.menu-chip small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.menu-chip.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.menu-chip.on b { color: var(--accent); }
.menu-chip.add { justify-content: center; color: var(--accent); font-weight: 600; background: var(--accent-soft); border-color: transparent; }

/* prihlásenie a zabezpečenie */
.login .hint-small { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.demo-banner { display: block; max-width: 760px; margin: 10px auto 0; padding: 10px 14px; border-radius: 12px; background: rgba(229, 72, 77, .12); color: var(--danger); font-size: 14px; font-weight: 600; text-decoration: none; }
.demo-banner.warn { background: rgba(245, 166, 35, .15); color: #b26b00; }
.view + .demo-banner { display: none; }
code.secret { display: block; white-space: pre-wrap; word-break: break-all; font: 600 16px/1.6 ui-monospace, Menlo, monospace; background: var(--card2); padding: 10px 12px; border-radius: 10px; letter-spacing: .04em; -webkit-user-select: all; user-select: all; }
.ok-text { color: var(--ok); }
.hist-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hist-dot.ok { background: var(--ok); }
.hist-dot.bad { background: var(--danger); }
.tv-state { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--card2); color: var(--muted); margin-left: 8px; vertical-align: 2px; }
.tv-state.on { background: rgba(48, 164, 108, .15); color: var(--ok); }
.tv-state.off { background: rgba(229, 72, 77, .14); color: var(--danger); }
.tv-state::before { content: "●"; margin-right: 4px; }
