/* ---- 00-core.css ---- */
/* Interactive app demos: shared core styles (stage tabs, device frames, app UI kit).
   Every selector starts with .zd. Inside a device all sizes are in em: the device sets its font-size
   from its own width (cqw), so it scales like an image. Classes are listed in CONTRACT.md, "Core API". */

/* ---------- stage tabs (page UI: look right on the dark and on the light band) ---------- */
.zd-stage { container-type: inline-size; }
.zd-stage > .zd-pane.zd-pane { margin-top: 0; }
.zd-pane[hidden] { display: none !important; }
.zd-tabs { --t-line: var(--line); --t-bg: var(--card); --t-ink: var(--ink-2); --t-hi: var(--ink); --t-hover: var(--paper-2); --t-on: var(--ink); --t-on-ink: #fff;
  display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto clamp(20px, 3.4cqw, 32px); padding: 4px; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-bg); }
.zd-tabs.zd-on-dark { --t-line: var(--screen-line); --t-bg: color-mix(in oklab, var(--screen-2) 80%, transparent); --t-ink: var(--screen-ink-2); --t-hi: #fff; --t-hover: var(--screen-3); --t-on: #fff; --t-on-ink: var(--screen); }
.zd-tabs .zd-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--t-ink); font: 500 .9375rem/1.2 var(--f-text); cursor: pointer; }
.zd-tabs .zd-tab .zd-i { width: 20px; height: 20px; }
.zd-tabs .zd-tab:hover { background: var(--t-hover); color: var(--t-hi); }
.zd-tabs .zd-tab[aria-selected="true"] { background: var(--t-on); color: var(--t-on-ink); }
@container (max-width: 520px) {
  .zd-tabs { width: 100%; border-radius: 16px; }
  .zd-tabs .zd-tab { flex: 1 1 0; flex-direction: column; gap: 4px; min-width: 0; padding: 8px 4px; border-radius: 12px; font-size: .8125rem; text-align: center; }
}

/* ---------- instance root, resets against the site's element styles ---------- */
.zd { --zd-edge: rgba(20,30,60,.18); --zd-shadow: 0 3cqw 6cqw rgba(10,20,50,.28); --zd-ground: rgba(10,20,50,.3); --zd-focus: var(--focus); --brand-ink: #fff;
  --brand-2: color-mix(in oklab, var(--brand) 55%, #0b1020); --brand-hi: color-mix(in oklab, var(--brand) 55%, #fff);
  min-width: 0; isolation: isolate; font-family: var(--f-text); line-height: 1.25; -webkit-tap-highlight-color: transparent; }
.zd.zd-on-dark { --zd-edge: #2a3350; --zd-shadow: 0 3cqw 6cqw rgba(0,0,0,.45); --zd-ground: rgba(0,0,0,.55); --zd-focus: var(--focus-on-dark); }
.zd [hidden] { display: none !important; }
.zd :where(button) { appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.zd :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, small, table, th, td) { margin: 0; padding: 0; border: 0; max-width: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; list-style: none; }
.zd p, .zd strong, .zd h1, .zd h2, .zd h3, .zd h4, .zd a { color: inherit; }
.zd input, .zd select, .zd textarea { width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; }
.zd :focus-visible { outline: max(.14em, 2px) solid var(--zd-focus); outline-offset: max(.14em, 2px); }
.zd .zd-i { width: 1.4em; height: 1.4em; stroke-width: 1.5; vertical-align: middle; }
.zd.is-paused *, .zd.is-paused *::before, .zd.is-paused *::after { animation-play-state: paused !important; }
.zd-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.zd-hint { max-width: 62ch; margin: 16px auto 0; font-size: .9375rem; line-height: 1.45; text-align: center; color: var(--ink-3); }
.zd-hint.zd-on-dark { color: var(--screen-ink-2); }

/* ---------- device frames ---------- */
.zd-dev { container-type: inline-size; position: relative; width: 100%; max-width: var(--zd-max); margin-inline: auto; }
.zd-dev--tv { --zd-max: 960px; --zd-fs: 1.62cqw; --zd-pad: .68em; --zd-r: .86em; --zd-r2: .3em; --zd-ratio: 16 / 9; }
.zd-dev--phone { --zd-max: 300px; --zd-fs: 4.6cqw; --zd-pad: .56em; --zd-r: 2.8em; --zd-r2: 2.28em; --zd-ratio: 9 / 19; }
.zd-dev--laptop { --zd-max: 1000px; --zd-fs: 1.22cqw; --zd-pad: .75em .75em .95em; --zd-r: 1.1em 1.1em 0 0; --zd-r2: .2em; --zd-ratio: 16 / 10; }
.zd-dev--browser { --zd-max: none; --zd-fs: 1.3cqw; --zd-pad: 0; --zd-r: .7em; --zd-r2: .7em; --zd-ratio: 16 / 10; }
.zd-dev-body { position: relative; padding: var(--zd-pad); border-radius: var(--zd-r); background: #05070c; box-shadow: 0 0 0 1px var(--zd-edge), var(--zd-shadow); font-size: var(--zd-fs); }
.zd-screen { position: relative; display: flex; flex-direction: column; overflow: hidden; aspect-ratio: var(--zd-ratio); border-radius: var(--zd-r2); background: #0b1020; }
.zd-dev--tv:focus-within > .zd-dev-body { box-shadow: 0 0 0 1px var(--zd-edge), 0 0 0 max(.2em, 3px) var(--zd-focus), var(--zd-shadow); }
.zd-dev-stand { position: relative; width: 26%; height: 2.3cqw; margin: 0 auto; }
.zd-dev-stand::before { content: ""; position: absolute; inset: 0 37% .45cqw; background: linear-gradient(90deg, #0b0f1a, #232c47 50%, #0b0f1a); }
.zd-dev-stand::after { content: ""; position: absolute; inset: auto 0 0; height: .5cqw; border-radius: .5cqw .5cqw .12cqw .12cqw; background: linear-gradient(#2b3554, #121829); }
.zd-dev--phone .zd-screen::before { content: ""; position: absolute; z-index: 70; top: .62em; left: 50%; width: .72em; height: .72em; margin-left: -.36em; border-radius: 50%; background: #05070c; box-shadow: inset 0 0 0 .12em #141b2e; }
.zd-dev--phone .zd-screen::after { content: ""; position: absolute; z-index: 70; bottom: .42em; left: 34%; right: 34%; height: .2em; border-radius: 1em; background: rgba(255,255,255,.5); pointer-events: none; }
.zd-dev--phone .zd-app { padding: 2em 0 1.1em; }
.zd-dev--phone .zd-toast--banner { top: 2.5em; }
.zd-status { position: absolute; z-index: 70; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 2.9em; padding: 0 1.9em; color: #fff; font-size: .7em; font-weight: 500; pointer-events: none; }
.zd-status i { display: flex; align-items: center; gap: .45em; }
.zd-status i::before { content: ""; width: .95em; height: .95em; background: #fff; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.zd-status i::after { content: ""; width: .55em; height: .95em; border-radius: .14em; background: #fff; }
.zd-dev--laptop > .zd-dev-body { width: 90%; margin: 0 auto; box-shadow: 0 0 0 1px var(--zd-edge); }
.zd-dev--laptop > .zd-dev-body::before { content: ""; position: absolute; top: .3em; left: 50%; width: .22em; height: .22em; margin-left: -.11em; border-radius: 50%; background: #2a3350; }
.zd-dev--laptop::after { content: ""; display: block; height: 2cqw; margin: 0 2%; background: radial-gradient(50% 100% at 50% 0, var(--zd-ground), transparent 72%); }
.zd-dev-deck { position: relative; height: 4.4cqw; background: linear-gradient(#2a3350, #2a3350) 50% 88% / 15% 24% no-repeat, linear-gradient(#39435f, #1d2439 14%, #262f49 62%, #141a2b); clip-path: polygon(5% 0, 95% 0, 100% 90%, 99.4% 100%, .6% 100%, 0 90%); }
.zd-dev-deck::before { content: ""; position: absolute; inset: 0 5% auto; height: .42cqw; background: linear-gradient(#04060b, #161c2e); }
.zd-dev-deck::after { content: ""; position: absolute; left: 16%; right: 16%; top: .85cqw; height: 1.75cqw; border-radius: .2cqw; clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%);
  background: repeating-linear-gradient(#1d2439 0 9%, transparent 9% 33.4%), repeating-linear-gradient(90deg, #1d2439 0 .28cqw, #0b0f1c .28cqw 1.86cqw); }

/* window title bar (Windows app) and browser window (tab and address bar) */
.zd-winbar { flex: none; display: flex; align-items: center; gap: .6em; height: 2.3em; padding-left: .9em; background: #070b16; color: #c9d1e3; white-space: nowrap; }
.zd-winbar .zd-glyph, .zd-browser-tab .zd-glyph { font-size: .8em; }
.zd-winbar-ctrl { display: flex; height: 100%; margin-left: auto; }
.zd-winbar-ctrl i { display: grid; place-items: center; width: 3.2em; }
.zd-winbar-ctrl i::before { content: ""; width: .8em; height: .8em; border: 1px solid #9aa4bb; }
.zd-winbar-ctrl i:first-child::before { height: 0; border-width: 1px 0 0; }
.zd-winbar-ctrl i:last-child::before { width: .9em; height: .9em; border: 0; background: linear-gradient(45deg, transparent 46%, #9aa4bb 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #9aa4bb 46% 54%, transparent 54%); }
.zd-browser { --b1: #d6dbe4; --b2: #f1f3f7; --b3: #fff; --b-ink: #2c3444; --b-mute: #8d96a8; flex: none; background: var(--b1); color: var(--b-ink); white-space: nowrap; }
.zd-browser--dark { --b1: #070b16; --b2: #1a2238; --b3: #0d1323; --b-ink: #d5dbe8; --b-mute: #6f7a96; }
.zd-browser-tabs { display: flex; align-items: flex-end; gap: 1em; height: 2.3em; padding: 0 1em; }
.zd-browser-dots { align-self: center; display: flex; gap: .45em; }
.zd-browser-dots i { width: .72em; height: .72em; border-radius: 50%; background: var(--b-mute); opacity: .7; }
.zd-browser-tab { display: flex; align-items: center; gap: .55em; min-width: 0; max-width: 17em; height: 1.9em; padding: 0 1.4em 0 .8em; border-radius: .55em .55em 0 0; background: var(--b2); font-size: .92em; }
.zd-browser-tab > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.zd-browser-bar { display: flex; align-items: center; gap: .9em; height: 2.4em; padding: 0 1em; background: var(--b2); }
.zd-browser-nav { display: flex; gap: .9em; padding: 0 .2em; }
.zd-browser-nav i { width: .55em; height: .55em; border: solid var(--b-mute); border-width: 0 0 .13em .13em; transform: rotate(45deg); }
.zd-browser-nav i + i { transform: rotate(-135deg); opacity: .5; }
.zd-browser-url { flex: 1; display: flex; align-items: center; min-width: 0; height: 1.7em; padding: 0 .9em; overflow: hidden; border-radius: 99em; background: var(--b3); font-size: .92em; }
.zd-browser-url::before { content: ""; flex: none; width: .55em; height: .62em; margin-right: .55em; border: .12em solid var(--b-mute); border-radius: .12em; }
.zd-browser-path { color: var(--b-mute); }

/* ---------- app surface and tokens (dark app; --light for the control panel) ---------- */
.zd-app { --zd-bg: #0b1020; --zd-bg-2: #141b31; --zd-raise: #1c2542; --zd-surface: rgba(255,255,255,.06); --zd-surface-2: rgba(255,255,255,.12); --zd-line: rgba(255,255,255,.1);
  --zd-ink: #eef1f8; --zd-ink-2: #aab3c9; --zd-ink-3: #8f9ab4; --zd-ok: #3ccf7f; --zd-warn: #f2a33a; --zd-bad: #ff6b72; --zd-scrim: rgba(5,8,18,.74); --zd-focus: #fff;
  position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; color: var(--zd-ink);
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 70%), linear-gradient(160deg, var(--zd-bg-2), var(--zd-bg) 70%); }
.zd-app--light { --zd-bg: #f4f6fa; --zd-raise: #fff; --zd-surface: #fff; --zd-surface-2: #e7ebf1; --zd-line: #dde2ea; --zd-ink: #1b2233; --zd-ink-2: #4c556a; --zd-ink-3: #6b7385;
  --zd-ok: #17804a; --zd-warn: #9a5b06; --zd-bad: #c2333b; --zd-scrim: rgba(20,28,50,.4); --zd-focus: var(--focus); --brand-hi: color-mix(in oklab, var(--brand) 80%, #000); background: var(--zd-bg); }
/* the demo renders into .zd-view (frame.screen); dialogs and toasts are its siblings, so a re-render never removes them */
.zd-view { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* top bar, brand glyph, text */
.zd-bar { flex: none; display: flex; align-items: center; gap: 1em; min-width: 0; }
.zd-glyph { flex: none; display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: .45em; background: var(--brand); }
.zd-glyph::before { content: ""; margin-left: .14em; border-left: .62em solid var(--brand-ink); border-top: .38em solid transparent; border-bottom: .38em solid transparent; }
/* the visitor's own logo (state.brandLogo) instead of the glyph's drawing: same height, the logo's shape (1:1 to 2.5:1) */
.zd.zd-has-logo .zd-glyph { width: auto; aspect-ratio: var(--brand-logo-ratio, 1); border-radius: .2em; background: var(--brand-logo) center / contain no-repeat; }
.zd.zd-has-logo .zd-glyph::before { display: none; }
/* the visitor's own background picture (state.brandBackground) on the app surface of the TV, phone and laptop, under a
   dark veil that keeps the text readable (a demo can override it: same specificity, later in the bundle) */
.zd.zd-has-bg:where(.zd-tv, .zd-phone, .zd-laptop) .zd-app:where(:not(.zd-app--light)) {
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in oklab, var(--brand) 20%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(20,27,49,.5), rgba(11,16,32,.78) 70%), var(--brand-bg) center / cover no-repeat, var(--zd-bg); }
.zd-name { min-width: 0; overflow: hidden; font-size: 1.25em; font-weight: 500; letter-spacing: .01em; white-space: nowrap; text-overflow: ellipsis; }
.zd-clock { font-size: 1.35em; font-weight: 500; font-variant-numeric: tabular-nums; }
.zd-grow { flex: 1; min-width: 0; }
.zd-title { font: 700 1.7em/1.05 var(--f-display); }
.zd-h { font-size: .85em; font-weight: 500; color: var(--zd-ink-2); }
.zd-muted { color: var(--zd-ink-2); }

/* pills, badges, chips */
.zd-pill { display: inline-flex; align-items: center; gap: .4em; padding: .25em .7em; border-radius: 99em; background: var(--zd-surface-2); color: var(--zd-ink-2); font-size: .82em; white-space: nowrap; }
.zd-dot { flex: none; width: .55em; height: .55em; border-radius: 50%; background: var(--zd-ok); }
.zd-dot.is-warn { background: var(--zd-warn); }
.zd-dot.is-bad { background: var(--zd-bad); }
.zd-dot.is-off { background: var(--zd-ink-3); }
.zd-badge { display: inline-flex; align-items: center; gap: .3em; padding: .15em .5em; border-radius: .3em; background: var(--zd-surface-2); color: var(--zd-ink); font-size: .72em; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.zd-badge--live, .zd-badge--brand { background: var(--brand); color: var(--brand-ink); }
.zd-badge--ok { background: color-mix(in oklab, var(--zd-ok) 18%, transparent); color: var(--zd-ok); }
.zd-badge--warn { background: color-mix(in oklab, var(--zd-warn) 20%, transparent); color: var(--zd-warn); }
.zd-badge--bad { background: color-mix(in oklab, var(--zd-bad) 18%, transparent); color: var(--zd-bad); }
.zd-chips { flex: none; display: flex; gap: .4em; overflow-x: auto; scrollbar-width: none; }
.zd-chip { flex: none; padding: .5em .9em; border-radius: 99em; background: var(--zd-surface-2); font-size: .82em; white-space: nowrap; }
.zd-chip.is-on, .zd-chip[aria-pressed="true"], .zd-chip[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }

/* buttons, toggles, inputs, progress */
.zd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 2.5em; padding: 0 1.1em; border-radius: .5em; background: var(--zd-surface-2); color: var(--zd-ink); font-weight: 500; white-space: nowrap; }
.zd-btn--primary { background: var(--brand); color: var(--brand-ink); }
.zd-btn--ghost { background: none; box-shadow: inset 0 0 0 1px var(--zd-ink-3); }
.zd-btn--icon { width: 2.5em; padding: 0; border-radius: 50%; }
.zd-btn:disabled, .zd-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.zd-toggle { flex: none; position: relative; width: 2.3em; height: 1.3em; border-radius: 1em; background: color-mix(in oklab, var(--zd-ink-3) 62%, transparent); }
.zd-toggle::before { content: ""; position: absolute; inset: -.55em -.3em; }
.zd-toggle::after { content: ""; position: absolute; top: .16em; left: .16em; width: .98em; height: .98em; border-radius: 50%; background: #fff; box-shadow: 0 .05em .2em rgba(0,0,0,.3); }
.zd-toggle[aria-checked="true"] { background: var(--brand); }
.zd-toggle[aria-checked="true"]::after { transform: translateX(1em); }
.zd .zd-input { width: 100%; min-height: 2.5em; padding: 0 .9em; border-radius: .5em; background: var(--zd-surface); box-shadow: inset 0 0 0 1px var(--zd-line); color: var(--zd-ink); }
.zd .zd-input::placeholder { color: var(--zd-ink-3); opacity: 1; }
.zd-field { position: relative; display: flex; align-items: center; min-width: 0; }
.zd-field > .zd-i { position: absolute; left: .75em; color: var(--zd-ink-3); pointer-events: none; }
.zd-field > .zd-input { padding-left: 2.7em; }
.zd-prog { display: block; height: .22em; overflow: hidden; border-radius: 1em; background: var(--zd-surface-2); }
.zd-prog > i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--brand); }

/* home tiles */
.zd-tiles { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: .8em; min-height: 0; }
.zd-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .45em; min-width: 0; padding: .8em .9em; overflow: hidden; border-radius: .6em; background: var(--zd-surface); box-shadow: inset 0 0 0 1px var(--zd-line); font-size: .95em; font-weight: 500; }
.zd-tile .zd-i { width: 1.7em; height: 1.7em; }
.zd-tile--big { background: linear-gradient(150deg, var(--brand), var(--brand-2)); box-shadow: none; color: var(--brand-ink); font-size: 1.25em; }
.zd-tile--big:nth-child(2) { background: linear-gradient(150deg, color-mix(in oklab, var(--brand) 55%, #1a2342), #18213b); color: #fff; }
.zd-tile--big:nth-child(n+3) { background: linear-gradient(150deg, color-mix(in oklab, var(--brand) 40%, #1a2342), #161e36); color: #fff; }
.zd-tile--big .zd-i { width: 2.1em; height: 2.1em; margin-bottom: auto; }

/* list rows (channel row: number square, title, time, progress), posters, artwork */
.zd-list { display: flex; flex-direction: column; gap: .15em; min-height: 0; }
.zd-row { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; gap: .6em; align-items: center; width: 100%; padding: .45em .5em; border-radius: .45em; }
.zd-row.is-on { background: var(--zd-surface-2); }
.zd-row b, .zd-poster b { display: block; overflow: hidden; font-size: .86em; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.zd-row small, .zd-poster small { display: block; overflow: hidden; font-size: .72em; color: var(--zd-ink-2); white-space: nowrap; text-overflow: ellipsis; }
.zd-row .zd-prog { margin-top: .32em; }
.zd-logo { display: grid; place-items: center; aspect-ratio: 1; border-radius: .4em; color: #fff; font: 700 .8em/1 var(--f-display);
  background: radial-gradient(circle at 24% 18%, rgba(255,255,255,.26), transparent 54%), linear-gradient(145deg, var(--c, #33405f), color-mix(in oklab, var(--c, #33405f) 58%, #0b1020)); }
.zd-art { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3; border-radius: .5em; background: #1a2238 center / cover no-repeat; }
.zd-art--wide { aspect-ratio: 16 / 9; }
.zd-art > .zd-prog { position: absolute; inset: auto .5em .5em; background: rgba(255,255,255,.3); }
.zd-art > .zd-badge { position: absolute; top: .5em; left: .5em; }
.zd-poster { display: block; min-width: 0; }
.zd-poster b { margin-top: .5em; }
.zd-scroll { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--zd-surface-2) transparent; }
.zd-hscroll { display: flex; gap: .8em; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.zd-app--tv .zd-scroll, .zd-app--tv .zd-hscroll { margin: -.4em; padding: .4em; scrollbar-width: none; }
.zd-chips::-webkit-scrollbar, .zd-hscroll::-webkit-scrollbar, .zd-app--tv .zd-scroll::-webkit-scrollbar { display: none; }

/* video area */
.zd-video { flex: none; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: .5em; background: #05070c center / cover no-repeat; }
.zd-video::before { content: ""; position: absolute; inset: -12%; background: inherit; }
.zd-video > * { position: relative; }
.zd-video > .zd-badge { position: absolute; top: .6em; left: .6em; }
.zd-video-over { position: absolute; inset: auto 0 0; padding: 3em 1.4em 1.1em; background: linear-gradient(transparent, rgba(5,8,18,.9)); }
.zd-controls { display: flex; align-items: center; gap: .8em; min-width: 0; }

/* TV guide cell (one programme) */
.zd-cell { min-width: 0; padding: .45em .6em; overflow: hidden; border-radius: .3em; background: var(--zd-surface); color: var(--zd-ink-2); white-space: nowrap; text-overflow: ellipsis; }
.zd-cell.is-now { background: color-mix(in oklab, var(--brand) 62%, #10182c); color: #fff; }
.zd-cell.is-on { box-shadow: inset 0 0 0 .14em var(--zd-focus); }

/* dialogs (message, update), toast and banner, empty state, small parts */
.zd-modal { position: absolute; z-index: 50; inset: 0; display: grid; place-items: center; padding: 1.2em; background: var(--zd-scrim); }
.zd-dialog { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1em; width: min(100%, 27em); padding: 1.3em 1.4em; border-radius: .9em; background: var(--zd-raise); box-shadow: 0 0 0 1px var(--zd-line), 0 1.2em 3em rgba(0,0,0,.45); }
.zd .zd-dialog:focus { outline: none; }
.zd-dialog-icon { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: color-mix(in oklab, var(--brand) 26%, transparent); color: var(--brand-hi); }
.zd-dialog--warn .zd-dialog-icon { background: color-mix(in oklab, var(--zd-warn) 20%, transparent); color: var(--zd-warn); }
.zd-dialog-main { display: grid; gap: .4em; align-content: start; justify-items: start; min-width: 0; }
.zd-dialog-main:first-child { grid-column: 1 / -1; }
.zd-dialog-title { font-size: 1.15em; font-weight: 500; line-height: 1.2; }
.zd-dialog-main p { color: var(--zd-ink-2); font-size: .92em; line-height: 1.4; }
.zd-dialog-main .zd-dialog-note { color: var(--zd-warn); }
.zd-dialog-main .zd-prog { width: 100%; height: .36em; margin-top: .5em; }
.zd-dialog-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6em; }
.zd-toast { pointer-events: none; position: absolute; z-index: 60; inset: auto 1em 1.6em; display: flex; align-items: center; gap: .6em; width: fit-content; max-width: calc(100% - 2em); margin-inline: auto; padding: .6em 1em; border-radius: .7em; background: var(--zd-raise); box-shadow: 0 0 0 1px var(--zd-line), 0 .8em 2em rgba(0,0,0,.4); font-size: .9em; }
.zd-toast--banner { inset: 1.1em 1em auto; align-items: flex-start; width: min(100% - 2em, 34em); line-height: 1.35; }
.zd-toast strong { display: block; }
.zd-toast .zd-i { flex: none; color: var(--brand-hi); }
.zd-toast--ok .zd-i { color: var(--zd-ok); }
.zd-toast--warn .zd-i { color: var(--zd-warn); }
.zd-toast--bad .zd-i { color: var(--zd-bad); }
.zd-toast-x { pointer-events: auto; flex: none; position: relative; width: 2em; height: 2em; margin: -.3em -.5em -.3em auto; border-radius: 50%; }
.zd-toast-x::before, .zd-toast-x::after { content: ""; position: absolute; top: 50%; left: 25%; width: 50%; height: .1em; background: currentColor; transform: rotate(45deg); }
.zd-toast-x::after { transform: rotate(-45deg); }
.zd-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: .5em; padding: 2em; color: var(--zd-ink-2); text-align: center; }
.zd-empty .zd-i { width: 2.6em; height: 2.6em; color: var(--zd-ink-3); }
.zd-empty b { color: var(--zd-ink); font-size: 1.1em; }
.zd-key { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.5em; padding: 0 .4em; border-radius: .3em; box-shadow: inset 0 0 0 1px var(--zd-ink-3); color: var(--zd-ink-2); font-size: .8em; }
.zd-spin { flex: none; width: 1.4em; height: 1.4em; border: .18em solid var(--zd-surface-2); border-top-color: var(--brand-hi); border-radius: 50%; }

/* ---------- focus: white ring and a slight scale on TV, calm elsewhere ---------- */
/* in scroll areas the outline is drawn inside the element (outside it would be clipped); controls inside a row keep the normal one */
.zd-scroll :focus-visible, .zd-hscroll :focus-visible, .zd-chips :focus-visible, .zd-cell:focus-visible { outline-color: var(--zd-ink); outline-offset: calc(0px - max(.14em, 2px)); }
.zd-row :focus-visible { outline-color: var(--zd-focus); outline-offset: max(.14em, 2px); }
.zd-poster:focus-visible { outline: none; }
.zd-poster:focus-visible .zd-art { outline: max(.14em, 2px) solid var(--zd-ink); outline-offset: calc(0px - max(.14em, 2px)); }
.zd-app--tv :focus-visible, .zd-app--tv .zd-poster:focus-visible .zd-art { outline: none; }
.zd-app--tv .is-focus { z-index: 2; box-shadow: 0 0 0 .18em #fff, 0 .6em 1.6em rgba(0,0,0,.45); transform: scale(1.04); }
.zd-app--tv .zd-row.is-focus { background: var(--zd-surface-2); box-shadow: inset 0 0 0 .14em #fff; transform: none; }
.zd-app--tv .zd-poster.is-focus { box-shadow: none; }
.zd-app--tv .zd-poster.is-focus .zd-art { box-shadow: 0 0 0 .18em #fff, 0 .6em 1.6em rgba(0,0,0,.45); }
@media (hover: hover) {
  .zd-btn:hover, .zd-tile:hover, .zd-chip:hover, .zd-poster:hover .zd-art { filter: brightness(1.14); }
  .zd-row:hover { background: var(--zd-surface-2); }
  .zd-app--light .zd-btn:hover, .zd-app--light .zd-chip:hover { filter: brightness(.95); }
}

/* ---------- forced colours (Windows high contrast): focus and switch state must not depend on shadows or fills ---------- */
@media (forced-colors: active) {
  .zd-app--tv .is-focus, .zd-cell.is-on { outline: max(.18em, 2px) solid Highlight; outline-offset: calc(0px - max(.18em, 2px)); }
  .zd-toggle { border: 1px solid ButtonText; }
  .zd-toggle::after { background: ButtonText; }
  .zd-toggle[aria-checked="true"]::after { background: Highlight; }
}

/* ---------- motion (the site switches all of it off for prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .zd { transition: --brand .45s ease; }
  .zd-tabs .zd-tab { transition: background-color .15s, color .15s; }
  .zd-app--tv [data-nav] { transition: transform .12s ease-out, box-shadow .12s ease-out; }
  .zd-toggle, .zd-toggle::after { transition: transform .15s, background-color .15s; }
  .zd-prog > i { transition: width .25s linear; }
  .zd-modal { animation: zd-fade .18s ease-out; }
  .zd-dialog, .zd-toast { animation: zd-rise .22s ease-out; }
  .zd-spin { animation: zd-spin .8s linear infinite; }
  .zd-video.is-playing::before { animation: zd-drift 28s ease-in-out infinite alternate; will-change: transform; }
}
@keyframes zd-fade { from { opacity: 0; } }
@keyframes zd-rise { from { opacity: 0; transform: translateY(.6em); } }
@keyframes zd-spin { to { transform: rotate(360deg); } }
@keyframes zd-drift { from { transform: translate3d(-5%, -3%, 0); } to { transform: translate3d(5%, 3%, 0) scale(1.07); } }

/* ---- 10-android.css ---- */
/* Interactive demos: the Android app on a TV and on a phone (10-android.js).
   It is one app, so its parts have one name on both devices: .zd-tv-*. The phone shows the same screens in
   landscape (as the real app does); its own sizes are rules under .zd-phone, and rules for core classes are
   scoped to a root (.zd-tv ..., .zd-phone ..., or both: :is(.zd-tv, .zd-phone) ...).
   Inside a device all sizes are in em (a frame scales like a picture); the remote is page UI and uses px. */

/* ---------- TV: the set and its remote ---------- */
.zd-tv { container-type: inline-size; }
.zd-tv-rig { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; }
.zd-tv-remote { display: grid; grid-template-columns: minmax(0, 64px) 136px minmax(0, 64px); grid-template-areas: "a pad b"; align-items: center; gap: 12px; width: min(100%, 316px); padding: 12px 14px; border-radius: 28px;
  background: linear-gradient(165deg, #232c49, #10162a); box-shadow: 0 0 0 1px var(--zd-edge), inset 0 1px 0 rgba(255,255,255,.1), 0 14px 28px rgba(5,8,18,.3); color: #e6eaf5; font: 500 .75rem/1.1 var(--f-text); }
.zd-tv-dpad { grid-area: pad; display: grid; grid-template: repeat(3, 44px) / repeat(3, 44px); padding: 2px; border-radius: 50%; background: #2d3758; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.zd-tv-keys { grid-area: a; display: grid; gap: 8px; }
.zd-tv-keys:last-child { grid-area: b; }
.zd-tv-k { display: grid; place-content: center; justify-items: center; gap: 3px; min-width: 44px; height: 44px; border-radius: 50%; }
.zd-tv .zd-tv-k .zd-i { width: 20px; height: 20px; stroke-width: 1.9; }
.zd-tv-k--up { grid-area: 1 / 2; }
.zd-tv-k--left { grid-area: 2 / 1; }
.zd-tv-k--right { grid-area: 2 / 3; }
.zd-tv-k--down { grid-area: 3 / 2; }
.zd-tv-k--ok { grid-area: 2 / 2; background: #10162a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; }
.zd-tv-k--wide { border-radius: 14px; background: #2d3758; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.zd-tv .zd-tv-k--wide .zd-i { width: 18px; height: 18px; }
.zd-tv-k:active { background: #46527c; }
@media (hover: hover) { .zd-tv-k:hover { background: #3a4670; } }
@container (min-width: 900px) {
  .zd-tv-rig { grid-template-columns: minmax(0, 960px) auto; justify-content: center; align-items: center; gap: 28px; }
  .zd-tv-remote { grid-template-columns: 64px 64px; grid-template-areas: "pad pad" "a b"; gap: 16px 8px; width: auto; padding: 18px 16px 20px; border-radius: 36px; }
}

/* ---------- TV: a modern set (thin black bezel, slim stand) and the real app's dark background ---------- */
.zd-tv .zd-dev--tv { --zd-pad: .3em; --zd-r: .36em; --zd-r2: .1em; --zd-edge: #30343c; }
.zd-tv .zd-dev-body { background: linear-gradient(#26292f, #070809 7%, #070809 93%, #1d2025); }
.zd-tv .zd-dev-stand { width: 30%; height: 3cqw; }
.zd-tv .zd-dev-stand::before { inset: 0 46.5% .4cqw; background: linear-gradient(90deg, #111317, #3d424c 50%, #111317); }
.zd-tv .zd-dev-stand::after { height: .42cqw; border-radius: .3cqw; background: linear-gradient(#5b616c, #1b1e23); box-shadow: 0 .5cqw 1.2cqw rgba(0,0,0,.35); }
:is(.zd-tv, .zd-phone) .zd-app, :is(.zd-tv, .zd-phone).zd-has-bg .zd-app { --zd-raise: #33424a; background: radial-gradient(42% 60% at 82% 16%, rgba(255,255,255,.07), transparent 70%),
  radial-gradient(50% 55% at 10% 90%, color-mix(in oklab, var(--brand) 13%, transparent), transparent 72%), linear-gradient(172deg, #1b1c21, #0f1013 52%, #060607); }

/* ---------- TV home as in the real app: 960 x 540 dp, header 144, cards 264, footer 132 (1em is about 16 dp) ---------- */
.zd-tv-home { flex: 1; display: grid; grid-template-rows: 144fr 264fr 132fr; min-height: 0; padding: 0 1.15em 0 1.78em; }
.zd-tv-hh { display: flex; align-items: center; min-width: 0; padding: 1.15em .3em 0 1.1em; }
.zd-tv-logo { flex: none; display: flex; align-items: center; gap: .45em; min-width: 0; max-width: 12.5em; }
.zd-tv-logo > .zd-glyph { font-size: 1.3em; }
.zd-tv-logo > b { overflow: hidden; font: 700 1.3em/1.1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-when { flex: none; display: grid; gap: .15em; margin-left: .9em; padding: .1em 0 .1em .95em; border-left: 1px solid rgba(255,255,255,.6); line-height: 1.1; white-space: nowrap; }
.zd-tv-when > b { font-size: 1.2em; font-weight: 400; }
.zd-tv-when > small { font-size: .84em; }
.zd-tv-ms { flex: 0 1 12.3em; display: flex; align-items: center; gap: .75em; min-width: 0; height: 2.05em; margin-left: 2.6em; padding: 0 1em; border-radius: 99em; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 .09em rgba(255,255,255,.3); white-space: nowrap; }
.zd-tv-ms > .zd-i { flex: none; width: 1.2em; height: 1.2em; stroke-width: 2.2; }
.zd-tv-ms > span { overflow: hidden; font-size: .96em; text-overflow: ellipsis; }
.zd-tv-hi { position: relative; flex: none; display: grid; place-items: center; width: 3.1em; height: 3.1em; margin-left: .4em; border-radius: 50%; }
.zd-tv-hi > .zd-i { width: 2.1em; height: 2.1em; stroke-width: 2; }
.zd-tv-hi > .zd-tv-fill { fill: currentColor; }
.zd-tv-hi > .zd-dot { width: 1.05em; height: 1.05em; }
.zd-tv-hi > span[aria-hidden] { position: absolute; top: 100%; left: 50%; margin-top: -.35em; font: 700 .86em/1 var(--f-display); text-transform: uppercase; white-space: nowrap; transform: translateX(-50%); }
:is(.zd-tv, .zd-phone) .zd-tv-hi.is-focus, :is(.zd-tv, .zd-phone) .zd-tv-ms.is-focus { background: rgba(255,255,255,.14); box-shadow: 0 0 0 .14em #fff; transform: none; }
.zd-tv-hb { display: grid; grid-template-columns: 323fr 583fr; gap: .51em; min-height: 0; }
.zd-tv-hb.is-wide { grid-template-columns: minmax(0, 1fr); }
.zd-tv-hb > .zd-empty { grid-column: 1 / -1; }
.zd-tv-hr { display: grid; grid-template-rows: 193fr 60fr; gap: .7em; min-width: 0; min-height: 0; }
.zd-tv-hr > :only-child { grid-row: 1 / -1; }
.zd-tv-hr1, .zd-tv-hr2 { display: flex; gap: .64em; min-height: 0; }
.zd-tv-hr1 > * { flex: 279 1 0; }
.zd-tv-hr1 > .zd-tv-hc--series { flex-grow: 294; }
.zd-tv-hr2 > * { flex: 1 1 0; }
.zd-tv-hc { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-radius: .45em; background: #141518; box-shadow: 0 0 0 .1em color-mix(in oklab, var(--brand) 32%, #2a2b30); }
.zd-tv-hc:has(> .is-focus) { z-index: 2; }
.zd-tv-hc:has(> .zd-tv-hm.is-focus) { box-shadow: 0 0 0 .2em #fff; }
.zd-tv-hs { flex: none; display: flex; align-items: center; justify-content: space-between; gap: .5em; height: 2.67em; padding: 0 .55em 0 .85em; background: color-mix(in oklab, var(--brand) 18%, #151417); text-align: left; outline-offset: -2px; }
.zd-tv-hs > span { display: grid; gap: .1em; min-width: 0; line-height: 1.2; }
.zd-tv-hs b, .zd-tv-hs small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-hs b { font-size: .95em; font-weight: 700; }
.zd-tv-hs small { display: flex; align-items: center; gap: .3em; font-size: .82em; }
.zd-tv-hs small > .zd-i { flex: none; width: 1.15em; height: 1.15em; stroke-width: 2.2; }
.zd-tv-hs > i { flex: none; display: grid; place-items: center; width: 2.2em; height: 1.6em; border-radius: .28em; background: #d3d5da; color: #16181c; }
.zd-tv-hs > i > .zd-i { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.zd-tv-hs > i > .zd-spin { width: 1em; height: 1em; }
:is(.zd-tv, .zd-phone) .zd-tv-hs.is-focus { box-shadow: inset 0 0 0 .14em #fff; transform: none; }
.zd-tv-hs.is-focus > i, .zd-tv-hc:has(> .zd-tv-hm.is-focus) .zd-tv-hs > i { background: #fff; }
.zd-tv-hm { flex: 1; display: flex; flex-direction: column; min-height: 0; outline-offset: -2px; }
:is(.zd-tv, .zd-phone) .zd-tv-hm.is-focus { box-shadow: none; transform: none; }
.zd-tv-ha { position: relative; flex: 1; display: block; width: 100%; min-height: 0; overflow: hidden; background: #0b0c0f center / cover no-repeat; }
.zd-tv-hm:not(.is-focus) > .zd-tv-ha { filter: brightness(.74); }
.zd-tv-hm > b { flex: none; overflow: hidden; padding: 0 .3em; color: #9b9da4; text-align: center; font: 700 1.53em/1.42 var(--f-display); text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-hc--live .zd-tv-hm > b { font-size: 1.97em; line-height: 1.49; }
.zd-tv-hm.is-focus > b { background: #fff; color: #141518; }
.zd-tv-ha--mov { background: radial-gradient(50% 70% at 50% 105%, color-mix(in oklab, var(--brand) 45%, transparent), transparent),
  repeating-linear-gradient(90deg, rgba(0,0,0,.42), rgba(255,255,255,.05) .7em, rgba(0,0,0,.42) 1.4em), linear-gradient(color-mix(in oklab, var(--brand) 40%, #1a0c10), #0b0607); }
.zd-tv-ha--mov::before, .zd-tv-ha--mov::after { content: ""; position: absolute; left: 22%; width: 50%; border-radius: .14em; }
.zd-tv-ha--mov::before { z-index: 1; top: 17%; height: 12%; background: repeating-linear-gradient(-60deg, #ececef 0 .75em, #1c1d22 .75em 1.5em); transform: rotate(-10deg); transform-origin: 0 100%; }
.zd-tv-ha--mov::after { top: 30%; height: 52%; background: linear-gradient(#2a2b31, #131418); box-shadow: 0 .4em 1em rgba(0,0,0,.5); }
.zd-tv-ha--mov > i { position: absolute; z-index: 1; right: 15%; bottom: 5%; width: 27%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #101114 9%, transparent 10%), radial-gradient(circle at 50% 24%, #101114 11%, transparent 12%), radial-gradient(circle at 50% 76%, #101114 11%, transparent 12%),
  radial-gradient(circle at 24% 50%, #101114 11%, transparent 12%), radial-gradient(circle at 76% 50%, #101114 11%, transparent 12%), radial-gradient(circle, #6a6e78 58%, #3a3d45 59% 68%, #1d1f24 69%); }
.zd-tv-ha--ser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 6%; }
.zd-tv-ha--ser > i { background: center / cover; opacity: .72; }
.zd-tv-hp { position: absolute; top: 38%; left: 50%; display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: rgba(0,0,0,.5); transform: translate(-50%, -50%); }
.zd-tv-hp > .zd-i { width: 1.3em; height: 1.3em; margin-left: .15em; fill: #fff; stroke: none; }
.zd-tv-ha--ser > em { position: absolute; top: 60%; left: 0; right: 0; color: rgba(255,255,255,.55); font: 700 .95em/1 var(--f-display); text-align: center; text-transform: uppercase; }
.zd-tv-heps { position: absolute; inset: auto 6% 0; display: flex; justify-content: space-around; padding: .55em 0 .5em; background: rgba(8,9,11,.72); color: rgba(255,255,255,.5); font: 700 .74em/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.zd-tv-heps > :nth-child(2) { color: rgba(255,255,255,.82); text-decoration: underline .16em var(--brand-hi); text-underline-offset: .4em; }
.zd-tv-hx { display: flex; align-items: center; justify-content: center; gap: .85em; min-width: 0; padding: 0 .6em; border-radius: .45em; background: #1c2024; box-shadow: inset 0 0 0 .1em #2d3238; font-size: 1.08em; text-transform: uppercase; white-space: nowrap; }
.zd-tv-hx > .zd-i { flex: none; width: 1.3em; height: 1.3em; stroke-width: 2; }
.zd-tv-hx > span { overflow: hidden; text-overflow: ellipsis; }
:is(.zd-tv, .zd-phone) .zd-tv-hx.is-focus { background: #fff; box-shadow: none; color: #141518; transform: none; }
.zd-tv-hf { position: relative; display: flex; justify-content: center; padding-top: 1.6em; font-size: 1.15em; line-height: 1.3; white-space: nowrap; }
.zd-tv-hf > :last-child { position: absolute; top: 1.4em; right: 1.4em; padding: .2em .55em; background: rgba(0,0,0,.6); font-size: .86em; }
.zd-tv-hf--vpn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: .4em;
  padding-top: .94em;
}
.zd-tv-hf--vpn > :last-child {
  position: static;
  justify-self: end;
  margin-right: .55em;
  padding: 0;
  background: none;
  font-size: 1em;
}
.zd-tv-vpn-badge {
  --zd-vpn-accent: #a6afbb;
  display: grid;
  grid-template-columns: 57fr 43fr;
  align-items: center;
  width: min(33cqw, 100%);
  height: 2.58em;
  border: max(1px, .077em) solid transparent;
  border-radius: 99em;
  background: linear-gradient(100deg, color-mix(in srgb, var(--zd-vpn-accent) 15%, #101416), #171a1f 65%) padding-box,
    linear-gradient(90deg, var(--zd-vpn-accent) 15%, #a1aab8 84%) border-box;
  color: #fff;
  line-height: 1.08;
}
.zd-tv-vpn-badge.is-connected {
  --zd-vpn-accent: #6de59b;
  box-shadow: -.22em 0 .58em color-mix(in srgb, var(--zd-vpn-accent) 34%, transparent);
}
.zd-tv-vpn-ip, .zd-tv-vpn-state {
  display: flex;
  align-items: center;
  gap: .3em;
  min-width: 0;
  padding: 0 .34em 0 .48em;
}
.zd-tv-vpn-ip > span { display: grid; gap: .13em; }
.zd-tv-vpn-ip small { color: #e0e6ea; font-size: .55em; }
.zd-tv-vpn-ip b { font-size: .71em; font-variant-numeric: tabular-nums; }
.zd-tv-vpn-state { padding-left: .4em; border-left: 1px solid rgba(255,255,255,.32); }
.zd-tv-vpn-state b { font-size: .59em; white-space: normal; }
:is(.zd-tv, .zd-phone) .zd-tv-vpn-badge .zd-i { flex: 0 0 auto; width: 1.94em; height: 1.94em; color: var(--zd-vpn-accent); stroke-width: 1.8; }
:is(.zd-tv, .zd-phone) .zd-tv-vpn-state .zd-i { width: 1.73em; height: 1.73em; color: #bcc5cf; }
.zd-tv-home:has(.zd-tv-hf--vpn) .zd-tv-hi > .zd-dot.is-off {
  position: relative;
  border: max(1px, .1em) solid currentColor;
  background: none;
  box-shadow: none;
  color: #f36961;
}
.zd-tv-home:has(.zd-tv-hf--vpn) .zd-tv-hi > .zd-dot.is-off::before,
.zd-tv-home:has(.zd-tv-hf--vpn) .zd-tv-hi > .zd-dot.is-off::after {
  position: absolute;
  inset: calc(50% - .05em) 19% auto;
  height: max(1px, .1em);
  border-radius: 1em;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
}
.zd-tv-home:has(.zd-tv-hf--vpn) .zd-tv-hi > .zd-dot.is-off::after { transform: rotate(-45deg); }
.zd-tv-vpn-picker { padding: 0; background: rgba(0,0,0,.60); }
.zd-tv-vpn-picker .zd-dialog {
  display: flex;
  flex-direction: column;
  width: 51.6667%;
  max-height: calc(100% - 1.65cqw);
  padding: 0 0 .58cqw;
  overflow: hidden;
  border-radius: .14em;
  background: #324248;
  box-shadow: 0 .58em 1.35em rgba(0,0,0,.40);
  color: #fff;
}
.zd-tv-vpn-picker .zd-dialog-main { display: flex; flex-direction: column; gap: 0; min-height: 0; }
.zd-tv-vpn-picker .zd-dialog-title {
  flex: none;
  padding: 1.02em 1.16em .5em;
  color: #d0d5d7;
  font-size: max(8px, 2.08cqw);
  font-weight: 600;
}
.zd-tv-vpn-picker .zd-dialog-actions:empty { display: none; }
.zd-tv-vpn-options { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.zd-tv-vpn-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45em;
  width: 100%;
  min-height: 6.62cqw;
  padding: 0 .58em 0 .55em;
  font-size: max(8px, 2.29cqw);
  text-align: left;
}
.zd-tv-vpn-option > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-vpn-option::after {
  width: .89em;
  aspect-ratio: 1;
  border: max(1px, .09em) solid #aeb3b6;
  border-radius: 50%;
  content: "";
}
.zd-tv-vpn-option[aria-checked="true"]::after {
  border-color: #80cbc4;
  background: radial-gradient(circle, #80cbc4 0 47%, transparent 52%);
}
.zd-tv .zd-tv-vpn-option.is-focus { box-shadow: none; transform: none; }
.zd-tv .zd-tv-vpn-option[aria-checked="false"].is-focus { background: #455961; }
@media (hover: hover) { .zd-tv-hx:hover, .zd-tv-hi:hover, .zd-tv-ms:hover, .zd-tv-hs:hover { filter: brightness(1.25); } .zd-tv-hm:hover > b { color: #fff; } }
/* the visitor's own logo: as in the real app it stands alone (taller, in its own shape, no name beside it); their own
   picture is the home screen's background (the other screens keep the app's dark surface), darkened for legibility */
:is(.zd-tv, .zd-phone).zd-has-logo .zd-tv-logo > .zd-glyph { height: 2.2em; border-radius: 0; }
:is(.zd-tv, .zd-phone).zd-has-logo :is(.zd-tv-logo > b, .zd-tv-top > .zd-name) { display: none; }
:is(.zd-tv, .zd-phone).zd-has-bg .zd-tv-home { background: linear-gradient(rgba(8,9,11,.6), rgba(8,9,11,.82)), var(--brand-bg) 50% / cover no-repeat; }
@container (max-width: 460px) {
  :is(.zd-tv, .zd-phone) .zd-tv-home { grid-template-rows: auto minmax(0, 1fr) auto; gap: .6em; padding: .75em .9em .6em; font-size: 1em; }
  .zd-tv-hh { padding: 0; }
  .zd-tv-logo { flex: 0 1 auto; max-width: 8.8em; }
  .zd-tv-logo > .zd-glyph { font-size: .95em; }
  .zd-tv-logo > b { font-size: .95em; }
  .zd-tv-when { margin-left: .55em; padding-left: .55em; }
  .zd-tv-when > b { font-size: 1em; }
  .zd-tv-when > small, .zd-tv-ms > span, .zd-tv-hi > span[aria-hidden] { display: none; }
  .zd-tv-ms { flex: none; justify-content: center; width: 2.2em; height: 2.2em; margin-left: auto; padding: 0; }
  .zd-tv-hi { width: 2.2em; height: 2.2em; margin-left: .05em; }
  .zd-tv-hi > .zd-i { width: 1.6em; height: 1.6em; }
  .zd-tv-hi > .zd-dot { width: .8em; height: .8em; }
  .zd-tv-hb, .zd-tv-hb.is-wide { grid-template-columns: none; grid-template-rows: minmax(0, 1fr) 2.5em; grid-auto-columns: minmax(0, 1fr); gap: .5em; }
  .zd-tv-hr, .zd-tv-hr1, .zd-tv-hr2 { display: contents; }
  .zd-tv-hc { grid-row: 1; border-radius: .35em; }
  .zd-tv-hx { grid-row: 2; gap: .4em; padding: 0 .3em; border-radius: .35em; font-size: .7em; }
  .zd-tv-hx > .zd-i { width: 1.4em; height: 1.4em; }
  .zd-tv-hs { height: 2.3em; padding: 0 .35em 0 .55em; }
  .zd-tv-hs b { font-size: .74em; }
  .zd-tv-hs small { font-size: .66em; }
  .zd-tv-hs > i { width: 1.6em; height: 1.35em; }
  .zd-tv-hm > b, .zd-tv-hc--live .zd-tv-hm > b { font-size: 1.12em; line-height: 1.75; }
  .zd-tv-hp { width: 1.9em; height: 1.9em; }
  .zd-tv-ha--ser > em { display: none; }
  .zd-tv-heps { font-size: .5em; }
  .zd-tv-hf { justify-content: space-between; padding: 0 .3em; font-size: .78em; }
  .zd-tv-hf > :last-child { position: static; padding: 0; background: none; }
  .zd-tv-hf--vpn { display: flex; justify-content: center; }
  .zd-tv-hf--vpn > :last-child { position: absolute; inset: 50% .2em auto auto; margin: 0; transform: translateY(-50%); }
  .zd-tv-vpn-badge {
    position: absolute;
    inset: 50% auto auto 0;
    grid-template-columns: 53fr 47fr;
    width: min(36cqw, calc(50% - 4.6em));
    height: 2.45em;
    transform: translateY(-50%);
  }
  .zd-tv-vpn-ip { gap: .22em; padding-inline: .33em; }
  .zd-tv-vpn-state { gap: .15em; padding-inline: .25em .13em; }
  :is(.zd-tv, .zd-phone) .zd-tv-vpn-badge .zd-i { width: 1.68em; height: 1.68em; }
  :is(.zd-tv, .zd-phone) .zd-tv-vpn-state .zd-i { width: 1.5em; height: 1.5em; }
  .zd-tv-vpn-badge.is-connected { box-shadow: inset .13em 0 .28em color-mix(in srgb, var(--zd-vpn-accent) 24%, transparent); }
}

/* ---------- TV: screens ---------- */
.zd-tv-pad { position: relative; flex: 1; display: flex; flex-direction: column; gap: 1.1em; min-width: 0; min-height: 0; padding: 1.5em 1.9em 1.3em; }
.zd-tv-pad > .zd-bar { min-height: 1.9em; }
.zd-tv-top .zd-tv-ttl { margin-left: .3em; padding-left: .75em; border-left: 1px solid rgba(255,255,255,.65); font-size: 1.15em; white-space: nowrap; }
.zd-tv-date { color: var(--zd-ink-2); white-space: nowrap; }
.zd-tv-cols { flex: 1; display: grid; grid-template-columns: minmax(0, 19em) minmax(0, 1fr); gap: 1.5em; min-height: 0; }
.zd-tv-cols > * { min-height: 0; }
.zd-tv-pane { display: flex; flex-direction: column; gap: .9em; min-width: 0; }
.zd-tv-pane > .zd-scroll { flex: 1; }
:is(.zd-tv, .zd-phone) .zd-row > .zd-i { width: 1.15em; height: 1.15em; color: var(--zd-ink-3); }
.zd-tv-stack { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .8em; }
.zd-tv-stack > .zd-empty { padding: 3.5em 2em .6em; }
.zd-tv-solo { justify-self: center; }


.zd-tv-surface { position: absolute; inset: 0; width: 100%; height: 100%; cursor: default; }
:is(.zd-tv, .zd-phone) .zd-tv-surface.is-focus { box-shadow: none; transform: none; }
:is(.zd-tv, .zd-phone) .zd-tv-subs { font-size: 1.15em; }
:is(.zd-tv, .zd-phone) .zd-app:has(.zd-tv-full) > .zd-toast:not(.zd-toast--banner) { inset: 1.3em 1em auto; }

/* TV guide: one grid that scrolls both ways; times and channel names stay in place */
.zd-tv-gsel { flex: none; display: flex; align-items: center; gap: 1em; min-width: 0; min-height: 4.2em; }
.zd-tv-gsel > .zd-logo { flex: none; width: 3.2em; font-size: 1.1em; }
.zd-tv-gsel > .zd-tv-info { flex: 1; }
.zd-tv-grid { --gm: .2em; --gc: 8.6em; flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; font-size: .82em; }
.zd-tv-grid::-webkit-scrollbar { display: none; }
.zd-tv-gbody { position: relative; display: grid; gap: .25em; width: max-content; }
.zd-tv-gtimes, .zd-tv-grow { display: flex; }
.zd-tv-gtimes { position: sticky; top: 0; z-index: 4; height: 2.5em; background: #121316; box-shadow: 0 .25em 0 #121316; color: var(--zd-ink-3); }
.zd-tv-gtimes > span { flex: none; align-self: end; width: calc(30 * var(--gm)); padding: .25em 0 .3em .5em; box-shadow: inset 1px 0 0 var(--zd-line); }
.zd-tv-gtimes > .zd-tv-gch, .zd-tv-grow > .zd-tv-gch { position: sticky; left: 0; z-index: 3; flex: none; display: flex; align-items: center; gap: .55em; width: var(--gc); margin-right: .25em; padding: 0 .5em; border-radius: .3em; background: #121316; box-shadow: none; white-space: nowrap; }
.zd-tv-gch > .zd-logo { flex: none; width: 1.9em; font-size: .9em; }
.zd-tv-gch > b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; }
.zd-tv-grid .zd-cell { flex: none; width: calc(var(--m) * var(--gm) - .25em); height: 2.5em; margin-right: .25em; padding: 0 .6em; line-height: 2.5em; }
.zd-tv-grid .zd-cell.is-past { background: rgba(255,255,255,.03); color: var(--zd-ink-3); }
.zd-tv-grid .zd-cell > .zd-i { width: 1.05em; height: 1.05em; margin: -.2em .35em 0 0; }
:is(.zd-tv, .zd-phone) .zd-cell.is-focus { background: var(--zd-surface-2); box-shadow: inset 0 0 0 .16em #fff; color: #fff; transform: none; }
:is(.zd-tv, .zd-phone) .zd-cell.is-now.is-focus { background: color-mix(in oklab, var(--brand) 62%, #10182c); }
.zd-tv-gline { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--gc) + .25em + var(--m) * var(--gm)); width: .14em; border-radius: 1em; background: var(--brand-hi); pointer-events: none; }


/* radio, search, multi-screen, settings */
.zd-tv-radio .zd-tv-pane { align-items: center; justify-content: center; gap: 1.2em; padding: 1.5em; border-radius: .8em; background: var(--zd-surface); text-align: center; }
.zd-tv-radio .zd-tv-disc { width: 11em; }
.zd-tv-radio .zd-tv-info { justify-items: center; }
.zd-tv-search .zd-tv-cols { grid-template-columns: auto minmax(0, 1fr); gap: 1.8em; }
.zd-tv-kb { --k: 2.75em; display: grid; grid-template-columns: repeat(6, var(--k)); grid-auto-rows: var(--k); align-content: start; gap: .4em; }
.zd-tv-key { display: grid; place-items: center; border-radius: .4em; background: var(--zd-surface); box-shadow: inset 0 0 0 1px var(--zd-line); font-weight: 500; text-transform: uppercase; }
.zd-tv-key:nth-last-child(-n+3) { grid-column: span 2; font-size: .8em; text-transform: none; }
.zd-tv-q { flex: none; display: flex; align-items: center; gap: .6em; min-height: 2.75em; padding: 0 1em; border-radius: .5em; background: var(--zd-surface); box-shadow: inset 0 0 0 1px var(--zd-line); white-space: pre; }
.zd-tv-q > .zd-i { color: var(--zd-ink-3); }
.zd-tv-q > i { width: .1em; height: 1.3em; margin-left: -.45em; background: var(--brand-hi); }
.zd-tv-search .zd-tv-posters { --pc: 4; }
.zd-tv-multi { position: relative; flex: 1; display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: .25em; min-height: 0; background: #05070c; }
:is(.zd-tv, .zd-phone) .zd-tv-cell.is-focus { box-shadow: none; transform: none; }
:is(.zd-tv, .zd-phone) .zd-tv-cell.is-focus::after { box-shadow: inset 0 0 0 .22em #fff; }
.zd-tv-mhint { position: absolute; z-index: 3; top: 50%; left: 50%; display: flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 99em; background: rgba(5,8,18,.86); box-shadow: 0 0 0 1px var(--zd-line); font-size: .8em; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; }
.zd-tv-mhint > .zd-key:not(:first-child) { margin-left: .7em; }
.zd-tv-multi > :nth-child(-n+2) > .zd-tv-cap { inset: 0 0 auto; padding: .6em .8em 1.8em; background: linear-gradient(rgba(5,8,18,.88), transparent); }
.zd-tv-multi > :nth-child(n+3) > .zd-tv-snd { top: auto; bottom: .6em; }
:is(.zd-tv, .zd-phone) .zd-tv-card { margin: 0; padding: 1.4em 1.6em; border-radius: .8em; background: var(--zd-surface); }
:is(.zd-tv, .zd-phone) .zd-tv-set > .zd-tv-card { flex: 1; width: 100%; max-width: 40em; min-height: 0; margin: 0 auto; }
.zd-tv-stiles { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 1.4em 1.6em; min-height: 0; padding: .4em 3.2em 1.2em; }
.zd-tv-stile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4em; min-width: 0; padding: .6em; background: color-mix(in oklab, var(--brand) 24%, #121530); text-align: center; }
.zd-tv-stile > .zd-i { width: 2.7em; height: 2.7em; margin-bottom: .2em; color: color-mix(in oklab, var(--brand-hi) 75%, #fff); stroke-width: 1.3; }
.zd-tv-stile > b { max-width: 100%; overflow: hidden; font-size: 1.3em; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-stile > small { min-height: 1.25em; color: var(--zd-ink-2); font-size: .82em; }
:is(.zd-tv, .zd-phone) .zd-tv-stile.is-focus { background: linear-gradient(160deg, color-mix(in oklab, var(--brand) 60%, #4fc3ff), color-mix(in oklab, var(--brand) 70%, #8b1fe0)); box-shadow: 0 0 0 .14em #fff; transform: scale(1.03); }
.zd-tv-stile.is-focus > .zd-i, .zd-tv-stile.is-focus > small { color: #fff; }
:is(.zd-tv, .zd-phone) .zd-toggle.is-focus { box-shadow: none; transform: none; }
:is(.zd-tv, .zd-phone) .zd-row:has(> .zd-toggle.is-focus) { background: var(--zd-surface-2); box-shadow: inset 0 0 0 .14em #fff; }
:is(.zd-tv, .zd-phone) .zd-tv-track.is-focus { box-shadow: none; transform: none; }
:is(.zd-tv, .zd-phone) .zd-tv-track.is-focus > .zd-prog { box-shadow: 0 0 0 .16em #fff; }

/* ---------- Live TV, Movies, Series, the details and the player, as the real app lays them out (960 x 540 dp; 1em is 16 dp) ---------- */
:is(.zd-tv-sky, .zd-tv-vb, .zd-tv-dt) { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
:is(.zd-tv-sh, .zd-tv-vh, .zd-tv-dh) { flex: none; display: flex; align-items: center; min-width: 0; white-space: nowrap; }
:is(.zd-tv-sh, .zd-tv-dh, .zd-tv-drh) > .zd-tv-logo { font-size: .85em; }
.zd-tv-sh { height: 4.7em; padding: .35em 1.1em 0 2.05em; }
.zd-tv-sep { margin-left: 1.2em; padding-left: .45em; border-left: .09em solid #fff; font-size: 1.05em; line-height: 1.05; }
.zd-tv-st { display: flex; align-items: baseline; gap: .9em; margin-right: 3.2em; }
.zd-tv-st > b { font-size: 1.15em; font-weight: 400; }
.zd-tv-st > small { color: #ccc; font-size: 1em; }
.zd-tv-ib { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; margin-left: .8em; border-radius: 50%; }
.zd-tv-ib > .zd-i { width: 1.7em; height: 1.7em; stroke-width: 2.4; }
/* live TV: categories | channels (rows of 40 dp on a 52 % black) | preview and guide */
.zd-tv-sb { flex: 1; display: grid; grid-template-columns: 30fr 30fr 40fr; min-height: 0; padding: 0 1.5em 0 1.56em; }
.zd-tv-cc, .zd-tv-sb > .zd-tv-cl, .zd-tv-pcat, .zd-tv-plst > .zd-tv-cl { min-height: 0; background: rgba(0,0,0,.52); }
.zd-tv-cc, .zd-tv-pcat, .zd-tv-dr { display: flex; flex-direction: column; min-height: 0; }
:is(.zd-tv, .zd-phone) .zd-tv-cl { display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 0; }
:is(.zd-tv-cc, .zd-tv-pcat, .zd-tv-dr) > .zd-tv-cl { flex: 1; }
.zd-tv-find { flex: none; display: flex; align-items: center; gap: .35em; height: 2.5em; padding: 0 .65em; background: #11141e; }
.zd-tv-find > .zd-i { flex: none; width: 1.3em; height: 1.3em; stroke-width: 2.3; }
:is(.zd-tv, .zd-phone) .zd-tv-find .zd-input { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font-size: .875em; }
.zd-tv-find:has(.is-focus, :focus-visible) { box-shadow: inset 0 0 0 .12em #fff; }
:is(.zd-tv, .zd-phone) .zd-tv-find .zd-input:is(.is-focus, :focus-visible) { outline: 0; box-shadow: none; transform: none; }
.zd-tv-cr { flex: none; display: grid; grid-template-columns: 4fr 1fr; align-items: center; gap: .3em; min-height: 2.5em; padding-left: .63em; box-shadow: inset 0 -.04em #1b1a1a; text-align: left; text-transform: uppercase; }
.zd-tv-cr > * { overflow: hidden; font-size: .875em; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-dr .zd-tv-cr { min-height: 2.8em; }
.zd-tv-cr[aria-pressed="true"], .zd-tv-ch.is-on { background: #5b2e56; }
.zd-tv-ch { flex: none; display: flex; min-height: 2.5em; }
.zd-tv-cb { flex: 1; display: flex; align-items: center; min-width: 0; padding-left: .25em; text-align: left; }
.zd-tv-cb > .zd-logo { flex: none; width: 2.1em; font-size: .9em; }
.zd-tv-cb > span { flex: 1; display: grid; min-width: 0; margin-left: .6em; }
.zd-tv-cb b, .zd-tv-cb small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-cb b { font-size: .8125em; font-weight: 400; }
.zd-tv-cb small { font-size: .625em; }
.zd-tv-cb i { height: max(1px, .07em); margin-top: .3em; background: linear-gradient(#e6e1e1 0 0) 0 / var(--p) 100% no-repeat, rgba(166,160,160,.5); }
.zd-tv-cb > .zd-i { flex: none; width: 1.1em; height: 1.1em; margin: 0 .2em; color: var(--zd-ink-3); }
.zd-tv-hrt { flex: none; display: grid; place-items: center; width: 2.5em; }
.zd-tv-hrt > .zd-i { width: 1.5em; height: 1.5em; }
:is(.zd-tv-hrt, .zd-tv-like)[aria-pressed="true"] > .zd-i, .zd-tv-pc .zd-tv-fh { fill: #e3262c; stroke: #e3262c; }
.zd-tv .zd-tv-hrt[aria-pressed="false"]:not(.is-focus) { opacity: 0; }
.zd-phone .zd-tv-hrt[aria-pressed="false"] { opacity: .4; }
:is(.zd-tv, .zd-phone) :is(.zd-tv-cr, .zd-tv-pi).is-focus, .zd-tv-ch:has(> .is-focus) { background: #a64c02; box-shadow: none; transform: none; }
:is(.zd-tv, .zd-phone) :is(.zd-tv-cb, .zd-tv-hrt).is-focus { box-shadow: none; transform: none; }
:is(.zd-tv, .zd-phone) .zd-tv-hrt.is-focus > .zd-i { stroke: #fff; stroke-width: 2.4; }
:is(.zd-tv, .zd-phone) :is(.zd-tv-ib, .zd-tv-rb, .zd-tv-like).is-focus { background: rgba(255,255,255,.18); box-shadow: 0 0 0 .14em #fff; transform: none; }
.zd-phone :is(.zd-tv-cr, .zd-tv-cb, .zd-tv-pi, .zd-tv-epi):active { background: #a64c02; }
.zd-tv-sr { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding-left: .95em; }
.zd-tv-lpv { flex: 0 0 48%; display: flex; align-items: center; justify-content: center; min-height: 0; margin-top: .25em; overflow: hidden; background: #000; }
.zd-tv-lpv > .zd-video { width: 100%; border-radius: 0; }
.zd-tv-lpv > .zd-tv-lock { align-content: center; gap: .5em; color: var(--zd-ink-2); font-size: .9em; }
:is(.zd-tv, .zd-phone) .zd-tv-lpv.is-focus { box-shadow: 0 0 0 .2em #fff; transform: none; }
.zd-tv-epg { flex: 1; display: grid; align-content: start; gap: .5em; min-height: 0; margin: .75em .3em .3em; overflow: hidden; }
.zd-tv-epg > div { display: grid; gap: .15em; min-width: 0; }
.zd-tv-epg b { overflow: hidden; font-size: .94em; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-epg b > span { margin-right: .7em; }
.zd-tv-epg .is-now b { color: #05a0bc; }
.zd-tv-epg small { display: -webkit-box; overflow: hidden; color: rgba(255,255,255,.62); font-size: .75em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zd-tv-none { padding: 1.3em .8em; font-size: .875em; text-align: center; }
/* movies and series: black drawer (270 dp) with logo, search and categories; the poster grid */
.zd-tv-vb { flex-direction: row; }
.zd-tv-dr { flex: 0 0 28.125%; background: #000; }
.zd-tv-drh { flex: none; position: relative; display: flex; align-items: center; justify-content: center; height: 5.6em; padding: .5em 2.6em 0; }
.zd-tv-drh > .zd-tv-ib { position: absolute; top: .3em; right: .3em; margin: 0; }
.zd-tv-dr > .zd-tv-find { height: 2.75em; background: #1b1b1b; }
.zd-tv-vr { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.zd-tv-vh { height: 3.45em; padding: 0 .9em 0 .6em; }
.zd-tv-vh > b { flex: 1; overflow: hidden; padding-left: 4.4em; font-weight: 700; text-align: center; text-transform: uppercase; text-overflow: ellipsis; }
.zd-tv-vh > .zd-tv-ib:first-child { margin-left: 0; }
.zd-tv-vh > .zd-tv-ib:first-child + b { padding-left: 1.8em; }
:is(.zd-tv, .zd-phone) .zd-tv-vg { flex: 1; display: grid; grid-template-columns: repeat(var(--vc, 5), minmax(0, 1fr)); align-content: start; gap: .8em .75em; margin: 0; padding: .3em 1.1em 1em .65em; }
.zd-tv-vb.is-shut .zd-tv-vg { --vc: 7; }
.zd-tv-vg > .zd-empty { grid-column: 1 / -1; padding-top: 4em; }
.zd-tv-pc { display: block; border-radius: .25em; }
.zd-tv-pc > span { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: inherit; background: rgba(89,84,84,.18) center / cover no-repeat; }
:is(.zd-tv-pc > span, .zd-tv-dp) > .zd-badge { position: absolute; top: .25em; left: .25em; padding: .1em .4em; border-radius: .25em; background: #1c86c7; color: #fff; font-size: .75em; }
.zd-tv-pc .zd-tv-fh { position: absolute; top: .2em; right: .2em; width: 1.5em; height: 1.5em; }
.zd-tv-pc b { position: absolute; inset: auto 0 0; display: -webkit-box; overflow: hidden; padding: 1.4em .35em .45em; background: linear-gradient(transparent, rgba(0,0,0,.66) 45%); font-size: .8125em; font-weight: 400; line-height: 1.25; text-align: center; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zd-tv-pc .zd-prog { position: absolute; inset: auto 0 0; height: .18em; border-radius: 0; background: rgba(255,255,255,.2); }
:is(.zd-tv, .zd-phone) .zd-tv-pc.is-focus { box-shadow: 0 0 0 .3em #fff; transform: none; }
/* details: the picture behind, poster, facts (16 sp), Play in blue, Season, the heart; episodes under a tab */
.zd-tv-dt { isolation: isolate; }
.zd-tv-bd { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.zd-tv-bd::after { content: ""; position: absolute; inset: 0; background: rgba(12,11,11,.8); }
.zd-tv-dh { height: 3.75em; padding: 0 1em 0 2.9em; }
.zd-tv-dh > b { flex: 1; overflow: hidden; padding: 0 1em; font-size: 1.375em; font-weight: 700; text-align: center; text-overflow: ellipsis; }
:is(.zd-tv, .zd-phone) .zd-tv-ds { flex: 1; margin: 0; padding: 0 0 1em; }
.zd-tv-dg { position: relative; display: flex; align-items: flex-start; margin: .1em 3.1em 0; }
.zd-tv-dp { position: relative; flex: none; width: 9.6em; aspect-ratio: 154 / 216; border-radius: .25em; background: center / cover no-repeat; }
.zd-tv-dl { flex: 1; display: grid; grid-template-columns: 10.25em minmax(0, 1fr); grid-auto-rows: minmax(2.4em, auto); min-width: 0; padding-right: 5em; color: #ccc; }
.zd-tv-dl > span:nth-child(odd) { padding-left: 1.9em; font-weight: 700; white-space: nowrap; }
.zd-tv-dl > span:nth-child(even) { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.zd-tv-da { display: flex; flex-wrap: wrap; gap: .7em; margin-top: .7em; }
.zd-tv-play, .zd-tv-sea { position: relative; display: flex; align-items: center; justify-content: center; width: 11.6em; height: 2.75em; padding: 0 2em; font-size: .94em; font-weight: 500; white-space: nowrap; }
.zd-tv-play { background: linear-gradient(103deg, rgba(255,255,255,.13), transparent 42%), linear-gradient(90deg, #25a9e1, #4381ea); }
.zd-tv-sea, .zd-tv-chip { border-radius: .27em; background: rgba(175,165,165,.19); }
.zd-tv-sea > .zd-i { position: absolute; right: .8em; width: 1.1em; height: 1.1em; stroke-width: 2.6; }
:is(.zd-tv, .zd-phone) :is(.zd-tv-play, .zd-tv-sea).is-focus { box-shadow: 0 0 0 .15em #fff; transform: none; }
.zd-tv-chip { display: inline-block; padding: .15em .62em; color: #ccc; }
.zd-tv-dfav { position: absolute; top: 1.1em; right: 3.4em; }
.zd-tv-like { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; }
.zd-tv-like > .zd-i { width: 2.2em; height: 2.2em; fill: #fff; stroke: #fff; }
.zd-tv-tabs { display: flex; margin: 1.4em 3.1em 0; }
.zd-tv-tabs > span { display: grid; place-items: center; width: 12.5em; height: 2.5em; background: rgba(150,140,130,.14); box-shadow: inset 0 -.19em #de85ed; font-size: 1.06em; font-weight: 500; }
.zd-tv-eps { display: grid; gap: .7em; padding: .7em 3.1em 0; border-top: max(1px, .06em) solid #848383; }
.zd-tv-epi { display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: .94em; height: 8.1em; text-align: left; }
.zd-tv-epi > .zd-art { height: 100%; aspect-ratio: auto; border-radius: .25em; }
.zd-tv-epi > .zd-art > .zd-prog { position: absolute; inset: auto 0 0; border-radius: 0; }
.zd-tv-epi > span:last-child { display: grid; align-content: start; justify-items: start; gap: .7em; min-width: 0; padding-top: .35em; }
.zd-tv-epi b { max-width: 100%; overflow: hidden; font-size: 1.125em; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-epi .zd-tv-chip { font-size: .8125em; }
:is(.zd-tv, .zd-phone) .zd-tv-epi.is-focus { background: rgba(151,89,151,.3); box-shadow: 0 0 0 .12em rgba(222,133,237,.75); transform: none; }
/* the player: round back and settings buttons, the guide line in amber or the position, the buttons in a row */
.zd-tv-full { flex: 1; aspect-ratio: auto; border-radius: 0; }
.zd-tv-osd { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 1.4em 3.7em 1.5em 3.6em; background: linear-gradient(rgba(0,0,0,.45), transparent 22% 50%, rgba(0,0,0,.7)); pointer-events: none; }
.zd-tv-osd > * { pointer-events: auto; }
.zd-tv-ot, .zd-tv-ob { display: flex; align-items: center; gap: 1.5em; min-width: 0; }
.zd-tv-ot > b { overflow: hidden; font-size: 1.25em; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-ot > .zd-tv-rb ~ .zd-tv-rb { margin-left: 3.3em; }
.zd-tv-ob { gap: .9em; margin-top: auto; }
.zd-tv-ob > .zd-logo { flex: none; width: 2.5em; }
.zd-tv-oe { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .55em 1em; min-width: 0; margin-left: .3em; font-size: .94em; white-space: nowrap; }
.zd-tv-oe > span { overflow: hidden; text-overflow: ellipsis; }
:is(.zd-tv, .zd-phone) .zd-tv-oe > .zd-prog { grid-column: 1 / -1; height: .2em; border-radius: 0; background: #575a6a; }
.zd-tv-oe > .zd-prog > i { background: #ffbb15; }
.zd-tv-ob > .zd-tv-seek { flex: 1; }
.zd-tv-orow { display: flex; justify-content: space-between; margin: 1.6em -.55em 0; }
.zd-tv-ob2 { display: flex; align-items: center; gap: .6em; min-width: 0; padding: .3em .55em; border-radius: .3em; font-size: .94em; white-space: nowrap; }
.zd-tv-ob2 > .zd-i { flex: none; width: 1.8em; height: 1.8em; stroke-width: 1.8; }
.zd-tv-ob2.is-rec > .zd-i { color: #e3262c; }
:is(.zd-tv, .zd-phone) .zd-tv-ob2.is-focus { background: rgba(255,255,255,.2); box-shadow: 0 0 0 .12em #fff; transform: none; }
.zd-tv-rb { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: radial-gradient(circle at 50% 28%, #928b91, #4b454b 72%); box-shadow: 0 .1em .35em rgba(0,0,0,.45); color: #fff; }
.zd-tv-rb > .zd-i { width: 1.5em; height: 1.5em; stroke-width: 3; }
.zd-tv-ob:last-child { margin-bottom: 2.6em; }
.zd-tv-side { position: absolute; inset: 0; z-index: 3; display: flex; }
.zd-tv-plst { display: grid; grid-template-columns: repeat(2, 15.6em); }
.zd-tv-ph { flex: none; display: flex; align-items: center; gap: .9em; height: 3.4em; padding: 0 .8em; }
.zd-tv-ph > b { overflow: hidden; font-size: 1.125em; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-pset { display: flex; flex-direction: column; width: 22.5em; margin-left: auto; background: rgba(0,0,0,.92); }
.zd-tv-pset > .zd-tv-ph { height: 5.6em; padding: 0 1.9em; border-bottom: max(1px, .06em) solid #8a8a8a; }
.zd-tv-pset > .zd-tv-ph > b { font-size: 1.25em; }
.zd-tv-pi { display: flex; align-items: center; gap: .55em; height: 2.8em; padding: 0 1.46em; font-size: 1.3em; font-weight: 700; text-align: left; }
.zd-tv-pi > .zd-i { flex: none; width: 1.2em; height: 1.2em; stroke-width: 1.8; }
.zd-tv-full .zd-tv-rec { top: 4.4em; right: 3.7em; font-size: .86em; }
.zd-tv-full:has(.zd-tv-osd:not([hidden])) .zd-tv-subs { bottom: 34%; }
.zd-tv-jump { position: absolute; top: 2.4em; left: 50%; padding: .45em 1.9em; background: rgba(21,15,15,.65); font-size: 1.25em; white-space: nowrap; transform: translateX(-50%); }
@container (max-width: 620px) { .zd-tv :is(.zd-tv-sky, .zd-tv-vb, .zd-tv-dt, .zd-tv-full) { font-size: .8em; } }
@container (max-width: 460px) {
  :is(.zd-tv, .zd-phone) :is(.zd-tv-sky, .zd-tv-vb, .zd-tv-dt, .zd-tv-full) { font-size: .76em; }
  :is(.zd-tv, .zd-phone) :is(.zd-tv-sep, .zd-tv-st > small, .zd-tv-ob2 > span, .zd-tv-epg small) { display: none; }
  .zd-tv-sh { height: 3.7em; padding: .2em .5em 0 1em; }
  .zd-tv-st { margin-right: .4em; }
  .zd-tv-ib { margin-left: .2em; }
  .zd-tv-sb { grid-template-columns: 31fr 31fr 38fr; padding: 0 .8em; }
  .zd-tv-sr { padding-left: .6em; }
  .zd-tv-lpv { flex-basis: 42%; }
  .zd-tv-epg { gap: .35em; margin-top: .5em; }
  .zd-tv-dr { flex-basis: 30%; }
  .zd-tv-drh { height: 4.2em; padding: .3em 2.4em 0 .6em; }
  .zd-tv-vh > b { padding-left: 0; }
  :is(.zd-tv, .zd-phone) .zd-tv-vg { --vc: 3; gap: .7em .6em; padding: .2em .7em .8em .5em; }
  .zd-tv-vb.is-shut .zd-tv-vg { --vc: 4; }
  .zd-tv-dh { padding-left: 1em; }
  .zd-tv-dg, .zd-tv-tabs { margin: 0 1.2em; }
  .zd-tv-tabs { margin-top: 1em; }
  .zd-tv-eps { padding: .6em 1.2em 0; }
  .zd-tv-dp { width: 7.4em; }
  .zd-tv-dl { grid-template-columns: 8.2em minmax(0, 1fr); padding-right: 0; font-size: .92em; }
  .zd-tv-dl > span:nth-child(odd) { padding-left: 1em; }
  .zd-tv-dl > span:nth-child(even) { -webkit-line-clamp: 2; }
  .zd-tv-dfav { top: -.4em; right: 0; }
  .zd-tv-play, .zd-tv-sea { width: 10.4em; padding: 0 1.6em; }
  .zd-tv-epi { height: 5.6em; }
  .zd-tv-osd { padding: 1em 1.4em 1.1em; }
  .zd-tv-orow { justify-content: space-around; margin-top: 1em; }
}

/* ---------- app catalogue reached from the opening TV demo ---------- */
.zd-tv-catalog {
  background: #101113 url("../img/tv-catalog/room.webp") center / cover no-repeat;
}
.zd-tv.zd-has-bg .zd-tv-catalog {
  background-image: linear-gradient(rgba(8,9,11,.38), rgba(8,9,11,.62)), var(--brand-bg);
}
.zd-tv-catalog .zd-tv-sb > [data-pane="chs"] {
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.zd-tv-catalog .zd-tv-ch {
  box-shadow: inset 0 -.04em rgba(255,255,255,.14);
}
.zd-tv-catalog .zd-tv-station {
  display: block;
  width: 2.25em;
  aspect-ratio: 76 / 62;
  object-fit: contain;
}
.zd-tv-catalog .zd-tv-cb {
  gap: .65em;
  padding-left: .35em;
}
.zd-tv-catalog .zd-tv-cb > span { margin-left: 0; }
.zd-tv-catalog .zd-tv-cb i { background-color: rgba(215,210,210,.48); }
.zd-tv-catalog .zd-tv-lpv > .zd-video { height: 100%; background: #000 center / contain no-repeat; }
.zd-tv-catalog .zd-tv-lpv > .zd-video::before { content: none; }
.zd-tv-catalog .zd-tv-epg > div { background: rgba(0,0,0,.46); }
.zd-tv-catalog .zd-tv-epg b, .zd-tv-catalog .zd-tv-epg small { padding-inline: .35em; }
.zd-tv-catalog .zd-tv-epg small { color: #ddd; }
.zd-tv-catalog .zd-tv-vr { background: rgba(0,0,0,.12); }
.zd-tv-catalog .zd-tv-pc b {
  padding-inline: .3em;
  background: linear-gradient(transparent, rgba(0,0,0,.95) 61%);
}
.zd-tv-archive { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.zd-tv-archive-title { position: relative; justify-content: flex-end; }
.zd-tv-archive-title > .zd-tv-logo { margin-right: auto; }
.zd-tv-archive-title > b {
  position: absolute;
  left: 50%;
  font-size: 1.36em;
  line-height: 1.1;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.zd-tv .zd-tv-archive :is(.zd-tv-archive-cats, .zd-tv-archive-channels, .zd-tv-archive-programmes) {
  flex: 1;
  display: grid;
  align-content: start;
  margin: 0;
  padding: .25em .6em .6em;
}
.zd-tv .zd-tv-archive .zd-tv-archive-cats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .48em 1.35em;
  margin-inline: 2.25em;
}
.zd-tv .zd-tv-archive .zd-tv-archive-channels { gap: 1em; margin-inline: 2.25em; }
.zd-tv-archive-choice {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr) auto 1.3em;
  align-items: center;
  gap: .86em;
  min-width: 0;
  min-height: 3.25em;
  padding: .28em .8em .28em .6em;
  background: #37384e;
  font-size: 1.05em;
  text-align: left;
}
.zd-tv-archive-cats .zd-tv-archive-choice { text-transform: uppercase; }
.zd-tv-archive-channels .zd-tv-archive-choice {
  grid-template-columns: 2.85em 1.6em minmax(0, 1fr) 1.3em;
  gap: 1em;
  min-height: 4.65em;
  padding-inline: 1.6em;
}
.zd-tv-archive-choice > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-archive-choice > small { font-size: .88em; }
.zd-tv-archive-choice > .zd-i { width: 1.55em; height: 1.55em; }
.zd-tv .zd-tv-archive-choice.is-focus {
  position: relative;
  z-index: 1;
  box-shadow: 0 .35em .8em rgba(0,0,0,.45);
  transform: scale(1.035);
}
.zd-tv-archive-header { padding-inline: 3.35em; }
.zd-tv-archive-header .zd-tv-st { margin-right: 0; }
.zd-tv-archive-days {
  flex: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: .55em 3.35em 0;
  background: rgba(3,3,5,.65);
}
.zd-tv-archive-days > button {
  min-width: 0;
  min-height: 3.5em;
  padding-inline: .2em;
  font-size: .84em;
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
}
.zd-tv-archive-days > button[aria-pressed="true"] {
  background: #ff870b;
  box-shadow: inset 0 -.14em #fff;
  color: #161616;
}
.zd-tv .zd-tv-archive .zd-tv-archive-programmes { gap: .55em; margin-inline: 2.75em; }
.zd-tv-archive-programmes > button {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: .24em;
  min-height: 4.7em;
  padding: .55em 1.55em;
  background: #f7f7f6;
  color: #34343a;
  text-align: left;
}
.zd-tv-archive-programmes b { font-size: 1.14em; }
.zd-tv-archive-programmes > button > span { display: flex; align-items: center; gap: .45em; color: #515258; font-size: .94em; }
.zd-tv-archive-programmes .zd-i { width: 1.12em; height: 1.12em; }
.zd-tv .zd-tv-archive-programmes > button.is-focus {
  box-shadow: 0 0 0 .22em #ff870b;
  outline: 0;
  transform: none;
}
@container (max-width: 460px) {
  .zd-tv-archive .zd-tv-sh { padding-inline: 1.4em; }
  .zd-tv-archive-header .zd-tv-sep { display: inline; margin-left: .75em; font-size: .86em; }
  .zd-tv-archive-days { margin-inline: 1.5em; }
  .zd-tv-archive-days > button { font-size: .74em; }
  .zd-tv .zd-tv-archive :is(.zd-tv-archive-cats, .zd-tv-archive-channels, .zd-tv-archive-programmes) { margin-inline: .9em; }
  .zd-tv-archive-cats .zd-tv-archive-choice { gap: .45em; min-height: 3em; font-size: .92em; }
  .zd-tv-archive-channels .zd-tv-archive-choice { min-height: 3.65em; }
}

/* ---------- parts of the app that both devices use ---------- */
.zd-tv-pv { display: contents; }
.zd-tv-info { display: grid; gap: .3em; min-width: 0; }
.zd-tv-info > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-info > .zd-title { padding-bottom: .08em; line-height: 1.15; }
.zd-tv-info > .zd-prog { margin: .25em 0 .1em; }
.zd-video.zd-tv-lock { display: grid; place-items: center; background-color: #090d1a; }
.zd-tv-lock > .zd-i { width: 2.4em; height: 2.4em; color: var(--zd-ink-3); }
.zd-tv-cap { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: .6em; padding: 1.8em .8em .6em; background: linear-gradient(transparent, rgba(5,8,18,.88)); text-align: left; }
.zd-tv-cap > .zd-logo { flex: none; width: 2.1em; }
.zd-tv-cap > span:last-child { min-width: 0; }
.zd-tv-cap b, .zd-tv-cap small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zd-tv-cap b { font-size: .86em; font-weight: 500; }
.zd-tv-cap small { color: var(--zd-ink-2); font-size: .72em; }
.zd-tv-pic { grid-template-columns: 5em minmax(0, 1fr) auto; gap: .8em; }
.zd-tv-pic .zd-art { border-radius: .3em; }
@container (min-width: 621px) { .zd-tv-pane > .zd-list > .zd-tv-pic { grid-template-columns: 8em minmax(0, 1fr) auto; gap: 1.1em; font-size: 1.12em; } }
.zd-tv-pic > .zd-i { width: 1.2em; height: 1.2em; color: var(--zd-ink-3); }
.zd-tv-posters { display: grid; grid-template-columns: repeat(var(--pc, 6), minmax(0, 1fr)); align-content: start; gap: 1.1em .9em; }
.zd-tv-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3em 1em; }
.zd-tv-disc { flex: none; aspect-ratio: 1; border-radius: 14%; }
.zd-tv-eq { display: inline-flex; align-items: flex-end; gap: .14em; height: 1em; }
.zd-tv-eq > i { width: .2em; height: 100%; border-radius: .1em; background: var(--brand-hi); transform: scaleY(.55); transform-origin: bottom; }
.zd-tv-eq > i:nth-child(2) { transform: scaleY(1); animation-delay: -.35s; }
.zd-tv-eq > i:nth-child(3) { transform: scaleY(.75); animation-delay: -.6s; }

/* player parts */
:is(.zd-tv, .zd-phone) .zd-video.is-held::before { animation-play-state: paused; }
.zd-tv-over { position: absolute; inset: 0; pointer-events: none; }
.zd-tv-rec { position: absolute; top: .6em; right: .6em; background: #c5303a; color: #fff; }
.zd-tv-rec > i { width: .5em; height: .5em; border-radius: 50%; background: #fff; }
.zd-tv-subs { position: absolute; bottom: 9%; left: 50%; max-width: 92%; padding: .2em .7em; border-radius: .3em; background: rgba(5,8,18,.82); white-space: nowrap; transform: translateX(-50%); }
.zd-tv-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.2em; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.zd-tv-track { display: block; padding: .7em 0; border-radius: .4em; cursor: pointer; }
:is(.zd-tv, .zd-phone) .zd-tv-track > .zd-prog { height: .16em; overflow: visible; border-radius: 0; background: #6c6b6b; }
.zd-tv-track > .zd-prog > i { position: relative; background: #fff; }
.zd-tv-track > .zd-prog > i::after { content: ""; position: absolute; top: 50%; right: -.45em; width: .9em; height: .9em; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.zd-tv-cell { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.zd-tv-cell::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.zd-tv-snd { position: absolute; top: .6em; right: .6em; display: none; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: rgba(5,8,18,.7); }
.zd-tv-cell.is-sound > .zd-tv-snd { display: grid; }
.zd-tv-snd .zd-i { width: 1.2em; height: 1.2em; }

/* settings parts, PIN pad, choices */
.zd-tv-ico { display: grid; place-items: center; aspect-ratio: 1; border-radius: .4em; background: var(--zd-surface-2); color: var(--zd-ink-2); }
.zd-tv-ico > .zd-i { width: 1.2em; height: 1.2em; }
.zd-tv-sw { cursor: pointer; }
.zd-tv-box { display: grid; justify-items: center; gap: .9em; padding: .4em 0; text-align: center; }
.zd-tv-box > .zd-i { width: 2.4em; height: 2.4em; color: var(--zd-ink-3); }
.zd-tv-note { max-width: 25em; font-size: .88em; line-height: 1.4; }
.zd-tv-gauge { position: relative; width: 13em; }
.zd-tv-gauge > svg { display: block; width: 100%; overflow: visible; }
.zd-tv-gauge path { fill: none; stroke: var(--zd-surface-2); stroke-width: 9; stroke-linecap: round; }
.zd-tv-gauge path + path { opacity: calc(var(--v) * 4); stroke: var(--brand-hi); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); }
.zd-tv-gauge > span { position: absolute; inset: auto 0 0; display: grid; justify-items: center; }
.zd-tv-gauge b { font: 700 2.5em/1 var(--f-display); font-variant-numeric: tabular-nums; }
.zd-tv-gauge small { color: var(--zd-ink-2); font-size: .8em; }
.zd-tv-qual { display: flex; flex-wrap: wrap; justify-content: center; gap: .45em; }
.zd-tv-qual > .zd-badge { padding: .28em .65em; font-size: .82em; }
.zd-tv-qual .zd-i { width: 1em; height: 1em; stroke-width: 2.4; }
.zd-tv-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; padding: .68em .1em; border-bottom: 1px solid var(--zd-line); font-size: .92em; }
.zd-tv-kv span { color: var(--zd-ink-2); white-space: nowrap; }
.zd-tv-kv b { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.zd-tv-pin { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7em 1em; }
.zd-tv-dots { display: flex; gap: .6em; padding: .2em 0; }
.zd-tv-dots > i { width: .8em; height: .8em; border-radius: 50%; box-shadow: inset 0 0 0 .1em var(--zd-ink-3); }
.zd-tv-dots > .is-on { background: var(--zd-ink); box-shadow: none; }
.zd-tv-nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 2.7em); gap: .4em; }
.zd-tv-nums > .zd-btn { padding: 0; }
:is(.zd-tv, .zd-phone) .zd-tv-nums > [data-d="del"] { order: 1; }
.zd-tv-msg { color: var(--zd-warn); font-size: .85em; }
.zd-tv-opts { width: 100%; }
.zd-tv-opts > .zd-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 2.7em; padding: .5em .8em; }
.zd-tv-opts > .zd-row.is-on > .zd-i { width: 1.2em; height: 1.2em; color: var(--brand-hi); }
:is(.zd-tv, .zd-phone) .zd-dialog-main > p:empty { display: none; }
:is(.zd-tv, .zd-phone) .zd-dialog:has(.zd-tv-pin, .zd-tv-opts) .zd-btn--primary { background: var(--zd-surface-2); color: var(--zd-ink); }

/* ---------- TV on smaller screens: larger type, simpler layouts ---------- */
@container (max-width: 620px) {
  .zd-tv .zd-dev-body { --zd-fs: 2.1cqw; }
  .zd-tv-pad { gap: .9em; padding: 1.2em 1.5em 1.1em; }
  .zd-tv-home { font-size: .771em; }
  .zd-tv-stiles { gap: 1em; padding: .2em 1em .6em; }
  .zd-tv-kb { --k: 2.45em; gap: .35em; }
  :is(.zd-tv, .zd-phone) .zd-tv-posters { --pc: 5; }
  .zd-tv-search .zd-tv-posters { --pc: 3; }
  .zd-tv-radio .zd-tv-disc { width: 8.5em; }
  :is(.zd-tv, .zd-phone) .zd-tv-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.zd-tv, .zd-phone) .zd-tv-gauge { width: 11em; }
}
@container (max-width: 460px) {
  .zd-tv .zd-dev-body { --zd-fs: 2.9cqw; --zd-ratio: 16 / 10; }
  .zd-tv-pad { gap: .7em; padding: 1em 1.2em .9em; }
  .zd-tv-cols { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1em; }
  .zd-tv-date, .zd-tv-top > .zd-name { display: none; }
  .zd-tv-stiles { gap: .6em; padding: 0; }
  .zd-tv-stile > b { font-size: 1em; }
  .zd-tv-stile > .zd-i { width: 2em; height: 2em; }
  .zd-tv-pane { gap: .6em; }
  .zd-tv-gsel .zd-muted { display: none; }
  :is(.zd-tv, .zd-phone) .zd-title { font-size: 1.4em; }
  .zd-tv-gsel { min-height: 3em; }
  .zd-tv-grid { --gc: 2.6em; }
  .zd-tv-gch > b { display: none; }
  :is(.zd-tv, .zd-phone) .zd-tv-sw small { white-space: normal; }
  :is(.zd-tv, .zd-phone) .zd-tv-pic { grid-template-columns: 4em minmax(0, 1fr) auto; gap: .6em; }
  .zd-tv-kb { --k: 2em; gap: .3em; }
  .zd-tv-search .zd-tv-cols { gap: 1em; }
  :is(.zd-tv, .zd-phone) .zd-tv-posters { --pc: 4; gap: .8em .7em; }
  .zd-tv-search .zd-tv-posters { --pc: 2; }
  .zd-tv-radio .zd-tv-pane { gap: .7em; padding: 1em; }
  .zd-tv-radio .zd-tv-disc { width: 5.5em; }
  :is(.zd-tv, .zd-phone) .zd-tv-rows { grid-template-columns: minmax(0, 1fr); }
  :is(.zd-tv, .zd-phone) .zd-tv-card { padding: 1em 1.1em; }
  :is(.zd-tv, .zd-phone) .zd-tv-box { gap: .6em; }
  :is(.zd-tv, .zd-phone) .zd-tv-gauge { width: 9em; }
  :is(.zd-tv, .zd-phone) .zd-tv-gauge b { font-size: 2em; }
  .zd-tv-grid { font-size: .87em; }
  :is(.zd-tv, .zd-phone) .zd-badge, .zd-tv-mhint { font-size: .82em; }
}

/* ---------- phone: the same app on a phone held sideways (the real app runs in landscape only) ---------- */
/* The device: a modern flagship on its side (camera hole on the left, keys on the top edge), a slim metal frame, an even
   black bezel under one sheet of glass, big rounded corners. Its screen is the status bar, the app and the gesture bar.
   The app keeps its size and shape (20:9 and 53.51em wide; on small screens 16:10 and 33.64em), so
   --zd-fs = 100 / (app width + 2 x (frame --ph-f + bezel --ph-b)). */
.zd-phone .zd-dev--phone { --zd-max: 880px; --zd-fs: 1.8186cqw; --ph-f: .22em; --ph-b: .52em; --zd-r: 3.4em; --zd-ratio: 20 / 9; }
@container (max-width: 460px) {
  .zd-phone .zd-dev-body { --zd-fs: 2.8635cqw; --ph-f: .2em; --ph-b: .44em; --zd-r: 3.1em; --zd-ratio: 16 / 10; }
  .zd-phone .zd-dev--phone .zd-screen::before { left: .16em; width: .54em; height: .54em; margin-top: -.27em; }
}
.zd-phone .zd-dev--phone > .zd-dev-body { padding: var(--ph-b); border: var(--ph-f) solid transparent;
  background: linear-gradient(#08090b 0 0) padding-box,
    radial-gradient(16em 1.1em at 30% 0, rgba(255,255,255,.8), transparent) border-box,
    radial-gradient(12em .9em at 72% 100%, rgba(255,255,255,.45), transparent) border-box,
    linear-gradient(90deg, transparent 9.3%, #2e3136 0 9.55%, transparent 0 90.45%, #2e3136 0 90.7%, transparent 0) border-box,
    linear-gradient(90deg, rgba(255,255,255,.3), transparent .14em calc(100% - .14em), rgba(255,255,255,.22)) border-box,
    linear-gradient(#dfe2e6, #a3a8af 3%, #6c7178 15%, #4d5158 50%, #5e636a 85%, #9fa4ab 97%, #cdd1d6) border-box;
  box-shadow: inset 0 0 0 .05em #000, 0 0 0 .04em rgba(0,0,0,.5), 0 .45em .8em -.2em rgba(0,0,0,.5), 0 1.6em 3em -.6em var(--zd-ground); }
/* volume rocker and side key: slim bumps on the top edge, behind the frame */
.zd-phone .zd-dev--phone > .zd-dev-body::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--ph-f) - .2em); left: 21%; width: 26.5%; height: .7em; border-radius: .16em;
  background: linear-gradient(#f1f3f5, #b4b9bf 22%, #6f747b 55%, #4b4f55) 0 0 / 56.6% 100% no-repeat, linear-gradient(#f1f3f5, #b4b9bf 22%, #6f747b 55%, #4b4f55) 100% 0 / 28.3% 100% no-repeat; filter: drop-shadow(0 0 .03em rgba(0,0,0,.55)); }
/* one sheet of glass over bezel and screen: a soft reflection that takes no clicks */
.zd-phone .zd-dev--phone > .zd-dev-body::after { content: ""; position: absolute; z-index: 39; inset: 0; border-radius: calc(var(--zd-r) - var(--ph-f)); pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 17%, transparent 29% 58%, rgba(255,255,255,.045) 70%, transparent 82%);
  box-shadow: inset 0 .07em .08em rgba(255,255,255,.1); }
.zd-phone .zd-dev--phone .zd-screen { aspect-ratio: auto; border-radius: calc(var(--zd-r) - var(--ph-f) - var(--ph-b)); background: linear-gradient(#111215 50%, #060607 0); box-shadow: 0 0 0 .05em rgba(255,255,255,.045); }
.zd-phone .zd-dev--phone .zd-app { flex: none; width: 100%; aspect-ratio: var(--zd-ratio); padding: 0; }
.zd-phone .zd-dev--phone .zd-toast--banner { top: .8em; }
/* front camera: a small hole in the screen, centred on the short edge */
.zd-phone .zd-dev--phone .zd-screen::before { top: 50%; left: .26em; width: .64em; height: .64em; margin: -.32em 0 0; box-shadow: 0 0 0 .045em #000;
  background: radial-gradient(circle at 38% 36%, rgba(160,180,240,.55) 0 .04em, transparent .1em), radial-gradient(circle, #141826 0 .12em, #232a3d .15em .18em, #030304 .22em); }
/* Android status bar (time | Wi-Fi, signal, battery) above the app and the gesture bar below it */
.zd-phone .zd-dev--phone .zd-status { position: relative; inset: auto; flex: none; height: 1.75em; padding: 0 2em 0 2.2em; font-size: .8em; }
.zd-phone .zd-status > i { gap: 0; background: linear-gradient(#fff 0 0) 1.4em calc(100% - .05em) / .16em .27em, linear-gradient(#fff 0 0) 1.66em calc(100% - .05em) / .16em .45em,
  linear-gradient(#fff 0 0) 1.92em calc(100% - .05em) / .16em .63em, linear-gradient(rgba(255,255,255,.38) 0 0) 2.18em calc(100% - .05em) / .16em .81em; background-repeat: no-repeat; }
.zd-phone .zd-status > i::before { width: 1.1em; height: .82em; margin-right: 1.52em; clip-path: polygon(50% 100%, 0 33%, 0 0, 100% 0, 100% 33%); background: radial-gradient(circle .82em at 50% 100%, #fff 96%, transparent); }
.zd-phone .zd-status > i::after { width: .5em; height: .88em; border-radius: .1em; background: linear-gradient(rgba(255,255,255,.4) 0 24%, #fff 0); box-shadow: 0 -.2em 0 -.12em rgba(255,255,255,.4); }
.zd-phone .zd-dev--phone .zd-screen::after { position: static; flex: none; align-self: center; width: 7.2em; height: .2em; margin: .35em 0; background: rgba(255,255,255,.6); }
/* the made-up model name, printed small on the bottom bezel (markup from 10-android.js; a joke for the second look) */
.zd-phone .zd-phone-model { position: absolute; right: 11%; bottom: 0; display: flex; align-items: center; height: var(--ph-b); color: rgba(210,215,225,.5); pointer-events: none; user-select: none; }
.zd-phone .zd-phone-model > span { font: 500 max(.44em, 6px)/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
@container (max-width: 560px) { .zd-phone .zd-phone-model { display: none; } }
/* no remote: a back arrow in the top bar, in the player and on the four screens (the app's own toolbar arrow) */
.zd-tv-bk { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; margin: -.3em .15em -.3em -.6em; border-radius: 50%; }
.zd-tv-bk > .zd-i { width: 1.4em; height: 1.4em; stroke-width: 2; }
.zd-tv-mhint > .zd-tv-bk { margin: -.45em .1em -.45em -.7em; pointer-events: auto; }
.zd-tv-search > .zd-field { flex: none; }
.zd-phone .zd-tv-search .zd-tv-posters { --pc: 6; }
.zd-phone .zd-input:focus-visible { outline: none; box-shadow: inset 0 0 0 max(.12em, 2px) var(--brand-hi); }
.zd-tv-opts.zd-scroll { max-height: 10.5em; overflow: hidden auto; }
/* touch: what a finger presses turns white, as in the real app (at rest nothing is highlighted); with a keyboard the
   element in focus looks as the real app's focused one */
.zd-phone .zd-tv-hm:is(:active, :focus-visible) > b, .zd-phone :is(.zd-tv-hx, .zd-tv-ms, .zd-tv-hs):is(:active, :focus-visible) { background: #fff; box-shadow: none; color: #141518; }
.zd-phone .zd-tv-hs:is(:active, :focus-visible) > i { background: #e2e4e7; }
.zd-phone .zd-tv-hm:is(:active, :focus-visible) > .zd-tv-ha { filter: none; }
.zd-phone .zd-tv-hc:has(> .zd-tv-hm:focus-visible) { box-shadow: 0 0 0 .2em #fff; }
.zd-phone .zd-tv-hi:active { transform: scale(1.15); }
/* home by the app's phone layout: 853 x 384 dp, header 84, cards 209, footer 91 (here 1em is 16 dp) */
@container (min-width: 461px) {
  .zd-phone .zd-tv-home { grid-template-rows: 84.3fr 209fr 90.8fr; padding: 0 1em; font-size: 1em; }
  .zd-phone .zd-tv-hh { padding: 0; margin: 0 -.44em 0 .125em; }
  .zd-phone .zd-tv-logo { max-width: 8em; gap: .4em; }
  .zd-phone .zd-tv-logo > .zd-glyph, .zd-phone .zd-tv-logo > b { font-size: 1.05em; }
  .zd-phone .zd-tv-when { gap: 0; margin-left: .44em; padding: .05em 0 .05em .625em; }
  .zd-phone .zd-tv-when > b { font-size: .875em; }
  .zd-phone .zd-tv-when > small { font-size: .656em; }
  .zd-phone .zd-tv-ms { flex: 0 1 auto; gap: .44em; height: 2.75em; margin: 0 .5em 0 .375em; padding: 0 .75em 0 .625em; border-radius: 1.03em; }
  .zd-phone .zd-tv-ms > .zd-i { width: 1.1em; height: 1.1em; }
  .zd-phone .zd-tv-ms > span { font-size: .72em; }
  .zd-phone .zd-tv-hi { width: 3em; height: 3em; margin-left: 0; }
  .zd-phone .zd-tv-hi > .zd-i { width: 1.4em; height: 1.4em; }
  .zd-phone .zd-tv-hi > .zd-dot { width: .95em; height: .95em; }
  .zd-phone .zd-tv-hi > span[aria-hidden] { margin-top: -1.45em; font-size: .6em; }
  .zd-phone .zd-tv-hb, .zd-phone .zd-tv-hr1, .zd-phone .zd-tv-hr2 { gap: .5em; }
  .zd-phone .zd-tv-hr { grid-template-rows: minmax(0, 1fr) 3em; gap: .5em; }
  .zd-phone .zd-tv-hc { border-radius: .625em; }
  .zd-phone .zd-tv-hs { height: 2.75em; padding: 0 .375em 0 .625em; }
  .zd-phone .zd-tv-hs b { font-size: .75em; }
  .zd-phone .zd-tv-hs small { font-size: .625em; }
  .zd-phone .zd-tv-hs small > .zd-i { width: 1.1em; height: 1.1em; }
  .zd-phone .zd-tv-hs > i { width: 1.75em; height: 1.31em; border-radius: .31em; }
  .zd-phone .zd-tv-hs > i > .zd-i { width: .85em; height: .85em; }
  .zd-phone .zd-tv-hm > b { font-size: .9375em; line-height: 1.73; }
  .zd-phone .zd-tv-hc--live .zd-tv-hm > b { font-size: 1.25em; line-height: 1.7; }
  .zd-phone .zd-tv-hp { width: 1.6em; height: 1.6em; }
  .zd-phone .zd-tv-ha--ser > em { font-size: .6em; }
  .zd-phone .zd-tv-heps { padding: .35em 0 .32em; font-size: .47em; }
  .zd-phone .zd-tv-hx { gap: .6em; border-radius: .75em; font-size: .75em; }
  .zd-phone .zd-tv-hx > .zd-i { width: 1.6em; height: 1.6em; }
  .zd-phone .zd-tv-hf { padding-top: 1.65em; font-size: .8125em; }
  .zd-phone .zd-tv-hf > :last-child { top: 1.5em; right: .6em; font-size: .85em; }
  .zd-phone .zd-tv-hf--vpn { padding-top: .94em; }
  /* the other screens: the TV's layouts on the phone's smaller screen */
  .zd-phone :is(.zd-tv-pad, .zd-tv-multi) { font-size: .78em; }
  .zd-phone :is(.zd-tv-sky, .zd-tv-vb, .zd-tv-dt, .zd-tv-full) { font-size: .9em; }
  .zd-phone .zd-tv-pad { gap: .8em; padding: 1em 1.6em .9em; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .zd-tv-k { transition: background-color .12s; }
  .zd-tv-eq > i { animation: zd-tv-eq .8s ease-in-out infinite alternate; }
  .zd-tv-rec > i { animation: zd-tv-blink 1.6s steps(2, jump-none) infinite; }
  .zd-tv-gauge path + path { transition: stroke-dashoffset .12s linear; }
  :is(.zd-tv, .zd-phone) .zd-tv-new > * { animation: zd-tv-in .18s ease-out; }
}
@keyframes zd-tv-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes zd-tv-blink { from { opacity: 1; } to { opacity: .25; } }
@keyframes zd-tv-in { from { opacity: 0; } }

/* ---- 20-windows.css ---- */
/* Interactive app demos: the Windows app in a laptop and the web player in a browser window (.zd-laptop, .zd-web).
   Every selector starts with .zd-laptop (both variants) or .zd-web; the classes inside are zl-*. Sizes are in em:
   the frame sets its font-size from its own width, so each layout scales like an image. Colours are the real apps'
   own: black category column, purple #5b2e56 = selected, orange #a64c02 = focused row, navy #1d2353 settings tiles,
   white focus on cards and buttons, cyan programme times; the operator's colour (--brand) is the logo underline,
   the IP address pill, the card edges and the primary buttons. One layout at every width, also on phones and in the
   panel's previews: like a screenshot, the app keeps its desktop layout and scales down with the laptop (where its
   text gets too small, 20-windows.js turns the hint under the device into a tip). */

/* ---------- frame, Windows title bar, app surface ---------- */
.zd-laptop { container-type: inline-size; }
/* The device: a thin modern laptop, open, seen from the front and a little from above. Lid (.zd-dev-body): a slim metal
   rim (inset shadows: a border would be rounded to whole pixels), a thin black glass bezel with the webcam, a wider chin
   with the made-up model name (.zl-model, from 20-windows.js). The screen keeps core's size (90% of the frame minus .75em
   a side), so the app's layout does not change. The lid's ::after is the hinge. Base (.zd-dev-deck, 1em = one key): its
   top is drawn flat, as seen from straight above, then tipped back in perspective so that its front edge is the frame's
   full width (::before: aluminium, keyboard, speakers; ::after: the touchpad, a second plane under the same transform).
   The deck's own background is the front lip with the thumb notch; the frame's ::after is the soft shadow on the table. */
.zd-laptop .zd-dev--laptop { --zd-fs: 1.4cqw; --lp-top: .95em; --lp-chin: 1.55em; }
.zd-laptop .zd-dev--laptop > .zd-dev-body { padding: var(--lp-top) .75em var(--lp-chin); border-radius: 1.25em 1.25em .6em .6em;
  background: linear-gradient(166deg, rgba(255,255,255,.11), rgba(255,255,255,.025) 24%, transparent 42%), linear-gradient(#0d0e11, #050506);
  box-shadow: inset 0 .1em 0 #eef0f3, inset 0 -.08em 0 #5b6067, inset 0 0 0 .12em #979ca3, 0 0 0 .04em rgba(0,0,0,.5); }
.zd-laptop .zd-dev--laptop > .zd-dev-body::before { top: calc(var(--lp-top) / 2 - .2em); width: .4em; height: .4em; margin-left: -.2em; box-shadow: .66em 0 0 -.13em #18291f;
  background: radial-gradient(circle at 38% 34%, rgba(175,195,255,.85) 0 .028em, transparent .065em), radial-gradient(circle, #2a3450 0 .06em, #0a0d15 .09em .12em, #3b3f47 .135em .155em, #111215 .17em); }
.zd-laptop .zd-dev--laptop > .zd-dev-body::after { content: ""; position: absolute; z-index: 1; top: 100%; left: 5.5%; right: 5.5%; height: 1cqw;
  border-radius: 0 0 .5cqw .5cqw / 0 0 .4cqw .4cqw; background: linear-gradient(#000, #1d1f23 35%, #3c3f45 60%, #18191c 85%, #0b0b0c); }
.zd-laptop .zd-dev--laptop .zd-screen { box-shadow: 0 0 0 .05em rgba(255,255,255,.04); }
.zd-laptop .zd-dev--laptop .zd-screen::after { content: ""; position: absolute; z-index: 90; inset: 0; pointer-events: none;
  background: linear-gradient(116deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 22%, transparent 34% 63%, rgba(255,255,255,.028) 73%, transparent 86%); }
.zd-laptop .zl-model { position: absolute; inset: auto 0 0; display: grid; place-items: center; height: var(--lp-chin); pointer-events: none; user-select: none; }
.zd-laptop .zl-model > span { color: rgba(206,211,221,.5); font: 500 max(.46em, 6px)/1 var(--f-text); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
/* the lip starts where the deck's rounded front corners do, so that its ends follow them */
.zd-laptop .zd-dev-deck { height: 4.89em; font-size: 4.5cqw; clip-path: none; border-radius: 0 0 .61em .61em / 0 0 .21em .21em;
  background: radial-gradient(50% 100% at 50% 0, rgba(44,48,55,.62), rgba(44,48,55,.22) 55%, rgba(44,48,55,0) 78%) 50% 4.55em / 10.5% .26em,
    linear-gradient(#bfc3c9 38%, #a3a8af 55%, #858a92 80%, #6c7179) 0 100% / 100% .55em;
  background-repeat: no-repeat; }
.zd-laptop .zd-dev-deck::before, .zd-laptop .zd-dev-deck::after { content: ""; position: absolute; inset: 0 0 auto; margin: 0 auto; clip-path: none; transform-origin: 50% 0; transform: perspective(114em) rotateX(70deg); }
/* the keys: Esc, F-keys, power; numbers, Backspace; Tab, letters, \; Caps, letters, Enter; Shifts; fn ctrl opt, cmd, space bar, cmd, opt, arrows */
.zd-laptop .zd-dev-deck::before { width: 20em; height: 12em; border-radius: .12em .12em .55em .55em; --fh: .58em; --kh: .78em; --ah: .36em; --ay: 6.22em;
  --k: linear-gradient(#1c1d20 0 0); --kr: repeating-linear-gradient(90deg, #1c1d20 0 .84em, transparent 0 1em);
  --lp-keys: var(--k) 2.58em 1em / 1.34em var(--fh), var(--kr) 4.08em 1em / 12em var(--fh), var(--k) 16.08em 1em / 1.34em var(--fh),
    var(--kr) 2.58em 1.8em / 13em var(--kh), var(--k) 15.58em 1.8em / 1.84em var(--kh),
    var(--k) 2.58em 2.8em / 1.34em var(--kh), var(--kr) 4.08em 2.8em / 12em var(--kh), var(--k) 16.08em 2.8em / 1.34em var(--kh),
    var(--k) 2.58em 3.8em / 1.59em var(--kh), var(--kr) 4.33em 3.8em / 11em var(--kh), var(--k) 15.33em 3.8em / 2.09em var(--kh),
    var(--k) 2.58em 4.8em / 2.09em var(--kh), var(--kr) 4.83em 4.8em / 10em var(--kh), var(--k) 14.83em 4.8em / 2.59em var(--kh),
    var(--kr) 2.58em 5.8em / 3em var(--kh), var(--k) 5.58em 5.8em / 1.09em var(--kh), var(--k) 6.83em 5.8em / 5.34em var(--kh), var(--k) 12.33em 5.8em / 1.09em var(--kh),
    var(--k) 13.58em 5.8em / .84em var(--kh), var(--kr) 14.58em var(--ay) / 3em var(--ah), var(--k) 15.58em 5.8em / .84em var(--ah);
  --lp-edge: linear-gradient(rgba(14,16,20,.6), rgba(14,16,20,.18) .3em, rgba(14,16,20,0) .95em),
    radial-gradient(50% 100% at 50% 100%, rgba(64,69,77,.45), rgba(64,69,77,0) 78%) 50% 100% / 10.5% .6em,
    linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.95)) 0 100% / 44.7% .16em, linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.95)) 100% 100% / 44.7% .16em;
  --lp-alu: linear-gradient(101deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.26) 27%, rgba(255,255,255,0) 46%),
    linear-gradient(90deg, rgba(56,60,68,.22), rgba(56,60,68,0) 9% 91%, rgba(56,60,68,.22)), linear-gradient(#a9aeb5, #bdc2c8 20%, #c8ccd1 62%, #c2c6cc);
  --lp-grille: repeating-linear-gradient(90deg, rgba(58,63,71,.42) 0 .05em, transparent 0 .16em);
  background: var(--lp-edge),
    linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,0) .2em, rgba(0,0,0,0) .4em, rgba(0,0,0,.3)) 2.58em 1em / 14.84em .58em,
    repeating-linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,0) .26em, rgba(0,0,0,0) .58em, rgba(0,0,0,.3) .78em, transparent .78em 1em) 2.58em 1.8em / 14.84em 5em,
    var(--lp-keys), linear-gradient(rgba(66,71,80,.2) 0 0) 2.42em .92em / 15.16em 5.74em,
    var(--lp-grille) .91em 1em / 1.12em 5.58em, var(--lp-grille) 17.97em 1em / 1.12em 5.58em, var(--lp-alu);
  background-repeat: no-repeat; }
.zd-laptop .zd-dev-deck::after { top: 7.18em; width: 7.6em; height: 4.3em; border-radius: .3em; transform-origin: 50% -7.18em;
  background: linear-gradient(174deg, rgba(255,255,255,.3), rgba(255,255,255,0) 45%), linear-gradient(#c2c6cc, #b5bac1);
  box-shadow: inset 0 0 0 .035em rgba(78,84,92,.55), inset 0 .1em 0 rgba(78,84,92,.3), inset 0 -.12em 0 rgba(255,255,255,.6); }
.zd-laptop .zd-dev--laptop::after { position: relative; z-index: -1; height: 3cqw; margin: -1.3cqw 0 0;
  background: radial-gradient(51% 40% at 50% 42%, rgba(0,0,0,.42), transparent), radial-gradient(50% 100% at 50% 30%, var(--zd-ground), transparent 80%); }
/* small frames (the panel's preview, phones): a simpler keyboard, without the function row and the speakers, wider gaps */
@container (max-width: 420px) {
  .zd-laptop .zd-dev-deck::before { --fh: 0em; --kh: .66em; --ah: .3em; --ay: 6.16em; background: var(--lp-edge), var(--lp-keys), var(--lp-alu); background-repeat: no-repeat; }
}
@container (max-width: 560px) { .zd-laptop .zl-model { display: none; } }
.zd-laptop:not(.zd-web) .zd-winbar { height: 2em; gap: .5em; padding-left: .7em; background: #fff; color: #1a1a1a; font-size: .92em; }
.zd-laptop:not(.zd-web) .zd-winbar-ctrl i::before { border-color: #2b2b2b; }
.zd-laptop:not(.zd-web) .zd-winbar-ctrl i:last-child::before { background: linear-gradient(45deg, transparent 46%, #2b2b2b 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #2b2b2b 46% 54%, transparent 54%); }
.zd-laptop.zd-has-logo .zd-winbar .zd-glyph, .zd-laptop.zd-has-logo .zd-browser-tab .zd-glyph, .zd-laptop.zd-has-logo .zl-logo .zd-glyph { border-radius: 0; background: var(--brand-logo) center / contain no-repeat; }
.zd-laptop.zd-has-logo .zd-winbar .zd-glyph::before, .zd-laptop.zd-has-logo .zd-browser-tab .zd-glyph::before, .zd-laptop.zd-has-logo .zl-logo .zd-glyph::before { display: none; }
.zd-laptop.zd-has-logo .zl-logo .zd-glyph { width: 3.2em; background-position: left center; }
.zd-laptop .zl-pv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.zd-laptop .zl-app { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; color: #fff; font-family: var(--f-text); line-height: 1.25;
  background: radial-gradient(34% 52% at 82% 24%, rgba(205, 212, 228, .13), transparent 72%), radial-gradient(40% 40% at 8% 92%, rgba(150, 118, 96, .1), transparent 70%), linear-gradient(168deg, #16181c, #0b0d10 52%, #070809); }
/* the dimmed room behind the real apps, drawn as a soft window */
.zd-laptop .zl-app::before { content: ""; position: absolute; top: 0; right: 4%; bottom: 34%; width: 38%; pointer-events: none; filter: blur(.25em);
  background: linear-gradient(90deg, transparent 0 31%, rgba(0, 0, 0, .5) 31% 34%, transparent 34% 65%, rgba(0, 0, 0, .5) 65% 68%, transparent 68%), linear-gradient(transparent 0 46%, rgba(0, 0, 0, .45) 46% 49%, transparent 49%), linear-gradient(rgba(178, 188, 208, .09), rgba(178, 188, 208, .02)); }
.zd-laptop.zd-has-bg .zl-app { background: linear-gradient(rgba(5, 6, 8, .72), rgba(5, 6, 8, .84)), var(--brand-bg) center / cover no-repeat; }
.zd-laptop.zd-has-bg .zl-app::before { display: none; }
.zd-laptop .zl-app > * { position: relative; }
.zd-laptop .zl-app button { color: inherit; }
.zd-laptop .zl-app small { font-size: .82em; }
.zd-laptop .zl-app .zd-h { margin: .6em 0 .35em; color: #c4c4c4; }

/* ---------- logo, clock, section header ---------- */
.zd-laptop .zl-logo { flex: none; display: inline-flex; align-items: center; gap: .4em; min-width: 0; max-width: 12em; font: 800 1.2em/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.zd-laptop .zl-logo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.zd-laptop .zl-when { flex: none; display: flex; align-items: baseline; gap: .6em; white-space: nowrap; }
.zd-laptop .zl-when b { font-size: 1.45em; font-weight: 400; }
.zd-laptop .zl-when small { font-size: 1em; color: #c4c4c4; }
.zd-laptop .zl-top { flex: none; display: flex; align-items: center; gap: .8em; height: 4.4em; padding: 0 1.4em 0 .7em; }
.zd-laptop .zl-back { flex: none; display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; }
.zd-laptop .zl-back .i { width: 1.45em; height: 1.45em; }
.zd-laptop .zl-tt { min-width: 0; padding-left: .6em; border-left: .1em solid #fff; font-size: 1.4em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zd-web .zl-tt { text-transform: uppercase; }
.zd-web .zl-top .zl-when b { font-size: 1.9em; }

/* ---------- home: header icons ---------- */
.zd-laptop .zl-home { flex: 1; display: flex; flex-direction: column; gap: 1em; padding: 1.1em 1.8em .9em; }
.zd-laptop .zl-hh { flex: none; display: flex; align-items: center; gap: 1.1em; height: 5em; }
.zd-laptop .zl-hh .zl-logo { position: relative; padding-bottom: .5em; font-size: 1.5em; }
.zd-laptop .zl-hh .zl-logo::after { content: ""; position: absolute; left: 32%; bottom: 0; width: 36%; height: .13em; background: var(--brand); }
.zd-laptop .zl-hh .zl-when { flex-direction: column; align-items: flex-start; gap: .2em; padding-left: .9em; border-left: 1px solid rgba(255, 255, 255, .4); }
.zd-laptop .zl-hh .zl-when b { font-size: 1.55em; font-weight: 300; }
.zd-laptop .zl-hh .zl-when small { color: #fff; font-weight: 500; }
.zd-laptop .zl-hr0 { flex: 1; display: flex; align-items: center; gap: .55em; min-width: 0; }
.zd-laptop .zl-ms { flex: 0 1 11em; display: flex; align-items: center; gap: .55em; min-width: 3.4em; height: 2.6em; padding: 0 1em; border: 1px solid #3e4144; border-radius: 2em; background: rgba(20, 22, 24, .9); white-space: nowrap; overflow: hidden; }
.zd-laptop .zl-ms .i { flex: none; width: 1.25em; height: 1.25em; }
.zd-laptop .zl-ms span { overflow: hidden; text-overflow: ellipsis; }
.zd-laptop .zl-hi { position: relative; flex: none; display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 50%; }
.zd-laptop .zl-hi .i { width: 1.6em; height: 1.6em; }
.zd-laptop .zl-hi .zl-fill { fill: currentColor; }
.zd-laptop .zl-hi > span:last-child { position: absolute; top: 100%; left: 50%; display: none; margin-top: .5em; transform: translateX(-50%); color: #fff; font: 700 .8em/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.zd-laptop .zl-hi.has-l > span:last-child, .zd-laptop .zl-hi.is-focus > span:last-child { display: block; }
.zd-laptop .zl-hi.is-focus + .zl-hi.has-l > span:last-child { visibility: hidden; }
.zd-laptop .zl-vdot { width: 1.3em; height: 1.3em; border-radius: 50%; background: #c8c8c8; }
.zd-laptop .zl-vd { flex: none; width: .75em; height: .75em; border-radius: 50%; background: #c8c8c8; }
.zd-laptop .zl-vdot.is-on, .zd-laptop .zl-vd.is-on { background: #4cf25e; }
.zd-laptop .zl-vdot.is-bad, .zd-laptop .zl-vd.is-bad { background: #ee0c0c; }
.zd-laptop .zl-vdot.is-busy { background: #ffb02e; }
.zd-laptop .zl-cam { fill: currentColor; stroke: none; }
.zd-laptop .zl-cam text { fill: #15171b; font: 700 5.3px var(--f-display); }

/* ---------- home: three cards, three buttons, footer ---------- */
.zd-laptop .zl-hb { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); gap: .85em; min-height: 0; }
.zd-laptop .zl-hb.is-wide { grid-template-columns: minmax(0, 1fr); }
.zd-laptop .zl-hr { display: flex; flex-direction: column; gap: .85em; min-width: 0; min-height: 0; }
.zd-laptop .zl-hr1, .zd-laptop .zl-hr2 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .85em; }
.zd-laptop .zl-hr1 { flex: 1; min-height: 0; }
.zd-laptop .zl-hr2 { flex: none; height: 4.2em; }
.zd-laptop .zl-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: .14em solid color-mix(in srgb, var(--brand) 32%, #2b2e33); border-radius: .55em; background: #0f1216; }
.zd-laptop .zl-card:has(.zl-cm.is-focus) { border-color: #fff; }
.zd-laptop .zl-strip { flex: none; display: flex; align-items: center; gap: .6em; padding: .45em .6em .45em .85em; border-bottom: 1px solid #5a4d4b; background: linear-gradient(color-mix(in srgb, var(--brand) 16%, #1b1214), #22191c); text-align: left; }
.zd-laptop .zl-strip > span { flex: 1; display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.zd-laptop .zl-strip b, .zd-laptop .zl-strip small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-strip b { font-size: 1.05em; }
.zd-laptop .zl-strip small { display: flex; align-items: center; gap: .3em; color: #ececec; }
.zd-laptop .zl-strip small .i { flex: none; width: 1.1em; height: 1.1em; }
.zd-laptop .zl-strip > i { flex: none; display: grid; place-items: center; width: 2.3em; height: 1.95em; border-radius: .3em; background: #fff; color: #1d1d1d; }
.zd-laptop .zl-strip > i .i { width: 1.25em; height: 1.25em; stroke-width: 2.2; }
.zd-laptop .zl-strip .zd-spin { width: 1.1em; height: 1.1em; }
.zd-laptop .zl-cm { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.zd-laptop .zl-art { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #1a1a1a center / cover no-repeat; }
.zd-laptop .zl-cm > b { flex: none; padding: .42em .3em .38em; background: #0f1216; font: 800 1.6em/1 var(--f-display); text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zd-laptop .zl-card--live .zl-cm > b { padding: .5em .3em; font-size: 2.15em; }
/* movies: curtains, a clapperboard, popcorn and a film reel, in CSS */
.zd-laptop .zl-art--mov { background: radial-gradient(40% 90% at 0 35%, #8f0f15, transparent 72%), radial-gradient(40% 90% at 100% 35%, #8f0f15, transparent 72%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .18) 0 .5em, transparent .5em 1.1em), linear-gradient(#3a0a0d, #150405); }
.zd-laptop .zl-art--mov i:first-child { position: absolute; left: 34%; top: 34%; width: 40%; height: 44%; border-radius: .25em; background: linear-gradient(#262626 0 30%, #0d0d0d 30%); box-shadow: 0 .4em .9em rgba(0, 0, 0, .6); }
.zd-laptop .zl-art--mov i:first-child::before { content: ""; position: absolute; left: -3%; right: -3%; top: -27%; height: 25%; border-radius: .15em; background: repeating-linear-gradient(115deg, #f1f1f1 0 .8em, #1e1e1e .8em 1.6em); transform: rotate(-9deg); transform-origin: 0 100%; }
.zd-laptop .zl-art--mov i:last-child { position: absolute; left: 9%; bottom: 0; width: 20%; height: 58%; clip-path: polygon(0 0, 100% 0, 100% 24%, 88% 100%, 12% 100%, 0 24%);
  background: radial-gradient(circle at 18% 14%, #ffe8a3 0 13%, transparent 14%), radial-gradient(circle at 48% 8%, #fff3c9 0 14%, transparent 15%), radial-gradient(circle at 80% 14%, #ffe8a3 0 13%, transparent 14%), repeating-linear-gradient(90deg, #d71d25 0 .5em, #f3f3f3 .5em 1em) 0 100% / 100% 76% no-repeat; }
.zd-laptop .zl-art--mov::after { content: ""; position: absolute; right: 7%; bottom: 6%; width: 27%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #111 0 10%, transparent 11%), radial-gradient(circle at 28% 62%, #111 0 10%, transparent 11%), radial-gradient(circle at 72% 62%, #111 0 10%, transparent 11%), radial-gradient(circle, #d6d6d6 0 12%, #5d5d5d 13% 62%, #cfcfcf 63% 70%, #2c2c2c 71%); }
/* series: three episode pictures, continue, the episode row */
.zd-laptop .zl-art--ser { display: flex; }
.zd-laptop .zl-art--ser > i { flex: 1; background: #1a1a1a center / cover; }
.zd-laptop .zl-art--ser > i:nth-child(2) { flex: 1.7; }
.zd-laptop .zl-hp { position: absolute; left: 50%; top: 36%; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(12, 12, 12, .85); box-shadow: 0 0 0 .14em color-mix(in srgb, var(--brand) 80%, #000); transform: translate(-50%, -50%); }
.zd-laptop .zl-hp .i { width: 1.25em; height: 1.25em; margin-left: .15em; fill: #fff; stroke: none; }
.zd-laptop .zl-art--ser em { position: absolute; left: 0; right: 0; top: 58%; color: #f2f2f2; font: 800 .95em/1 var(--f-display); font-style: normal; text-align: center; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.zd-laptop .zl-eps { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .5em .2em .55em; background: linear-gradient(transparent, rgba(0, 0, 0, .88) 40%); font: 700 .75em/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.zd-laptop .zl-eps span:nth-child(2) { box-shadow: 0 .35em 0 -.12em var(--brand); }
.zd-laptop .zl-hx { display: flex; align-items: center; justify-content: center; gap: .6em; min-width: 0; padding: 0 .6em; border: .1em solid #3a3d41; border-radius: .45em; background: linear-gradient(#1d2227, #13181b); font-size: 1.12em; text-transform: uppercase; white-space: nowrap; }
.zd-laptop .zl-hx span { overflow: hidden; text-overflow: ellipsis; }
.zd-laptop .zl-hx .i { flex: none; width: 1.35em; height: 1.35em; }
.zd-laptop .zl-hf { flex: none; display: flex; align-items: center; gap: 1.2em; }
.zd-laptop .zl-ip { flex: none; display: flex; align-items: center; gap: .65em; height: 3.3em; padding: 0 1.1em 0 .95em; border: .14em solid var(--brand); border-radius: 2em; background: rgba(14, 4, 6, .55); text-align: left; white-space: nowrap;
  box-shadow: 0 0 .8em color-mix(in srgb, var(--brand) 55%, transparent), inset 0 0 .5em color-mix(in srgb, var(--brand) 30%, transparent); }
.zd-laptop .zl-ip > .i { width: 1.8em; height: 1.8em; color: var(--brand-hi); }
.zd-laptop .zl-ip span { display: flex; flex-direction: column; gap: .1em; }
.zd-laptop .zl-ip b { font-size: 1.12em; }
.zd-laptop .zl-ip .zl-ipv { flex-direction: row; align-items: center; gap: .45em; margin-left: .15em; padding-left: .75em; border-left: 1px solid rgba(255, 255, 255, .3); }
.zd-laptop .zl-ipv .i { width: 1.45em; height: 1.45em; }
.zd-laptop .zl-exp { flex: 1; text-align: center; font-size: 1.2em; }
.zd-laptop .zl-ver { font-size: 1.2em; }
.zd-web .zl-ver { color: #c4c4c4; font-size: 1em; }

/* ---------- sections: category column, lists ---------- */
.zd-laptop .zl-cols { flex: 1; display: grid; gap: 0 .55em; min-height: 0; padding: 0 1.2em 1em; }
.zd-laptop .zl-live { grid-template-columns: minmax(0, 25fr) minmax(0, 33fr) minmax(0, 37fr); }
.zd-web .zl-live { grid-template-columns: minmax(0, 16fr) minmax(0, 24fr) minmax(0, 60fr); gap: 0; padding: 0; }
.zd-laptop .zl-cu, .zd-laptop .zl-vod { grid-template-columns: minmax(0, 17em) minmax(0, 1fr); gap: 0 .9em; }
.zd-laptop .zl-radio { grid-template-columns: minmax(0, 19em) minmax(0, 1fr); gap: 0 1em; }
.zd-laptop .zl-cats, .zd-laptop .zl-chs, .zd-laptop .zl-vm, .zd-laptop .zl-right { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.zd-laptop .zl-cats { background: rgba(0, 0, 0, .9); }
.zd-laptop .zl-chs { background: rgba(0, 0, 0, .5); }
.zd-web .zl-chs { background: rgba(10, 13, 18, .82); }
.zd-laptop .zl-list { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.zd-laptop .zl-cq { flex: none; display: flex; align-items: center; gap: .55em; height: 2.9em; padding: 0 .9em; background: #1b1b1b; color: #918f8f; }
.zd-laptop .zl-cq .i, .zd-laptop .zl-sq .i { flex: none; width: 1.3em; height: 1.3em; }
.zd-laptop .zl-cq .zd-input, .zd-laptop .zl-sq .zd-input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #fff; font: inherit; }
.zd-laptop .zl-cq .zd-input::placeholder, .zd-laptop .zl-sq .zd-input::placeholder, .zd-laptop .zl-wtools .zd-input::placeholder { color: #918f8f; }
.zd-laptop .zl-cq:has(.is-focus), .zd-laptop .zl-sq:has(.is-focus) { box-shadow: inset 0 0 0 .12em #fc8210; }
.zd-laptop .zl-ch2 { flex: none; padding: .9em .9em .6em; color: #fc8210; font-weight: 700; }
.zd-laptop .zl-cat { flex: none; display: flex; align-items: center; gap: .6em; min-height: 2.75em; padding: .3em .9em; border-bottom: 1px solid #1b1a1a; text-align: left; text-transform: uppercase; }
.zd-laptop .zl-cat > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-cat > small { flex: none; font-size: .85em; }
.zd-laptop .zl-cat.is-on { background: #5b2e56; }
.zd-web .zl-cat { min-height: 2.5em; font-size: .85em; }
.zd-web .zl-cq { gap: .4em; padding: 0 .6em; font-size: .85em; }
.zd-laptop .zl-rrow { text-transform: none; }
.zd-laptop .zl-rrow > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.zd-laptop .zl-rrow b, .zd-laptop .zl-rrow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-rrow > .i { flex: none; width: 1.2em; height: 1.2em; }
.zd-laptop .zl-chb > .zd-logo, .zd-laptop .zl-rrow > .zd-logo, .zd-laptop .zl-wgc > .zd-logo, .zd-laptop .zl-gch > .zd-logo { flex: none; width: 2.5em; aspect-ratio: 4 / 3; font-size: .85em; }
.zd-laptop .zl-chh { flex: none; display: flex; align-items: center; height: 2.9em; padding: 0 .3em; }
.zd-laptop .zl-chh b { flex: 1; min-width: 0; font-size: 1.15em; text-align: center; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-arr { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .3em; }
.zd-laptop .zl-arr .i { width: 1.35em; height: 1.35em; stroke-width: 2.4; }
.zd-laptop .zl-arr:disabled { opacity: .35; }
.zd-laptop .zl-chr { flex: none; display: flex; border-bottom: 1px solid #1b1a1a; }
.zd-laptop .zl-chb { flex: 1; display: flex; align-items: center; gap: .65em; min-width: 0; min-height: 3.25em; padding: .3em .55em; text-align: left; }
.zd-laptop .zl-chb > span:last-child { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .12em; }
.zd-laptop .zl-chb b, .zd-laptop .zl-chb small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-chb small { font-size: .8em; }
.zd-laptop .zl-chr.is-on .zl-chb { box-shadow: inset .22em 0 #fc8210; }
.zd-web .zl-chb { min-height: 2.9em; font-size: .9em; }
.zd-laptop .zl-pr { display: block; height: .16em; margin-top: .2em; background: rgba(112, 105, 105, .65); }
.zd-laptop .zl-pr i { display: block; width: var(--p); height: 100%; background: #fc8210; }
.zd-laptop .zl-heart { flex: none; display: grid; place-items: center; width: 2.5em; }
.zd-laptop .zl-heart .i { width: 1.3em; height: 1.3em; fill: currentColor; }
.zd-laptop .zl-heart.is-on { color: #ff4f5e; }
.zd-laptop .zl-wtools { flex: none; display: flex; flex-wrap: wrap; gap: .4em; padding: .5em; font-size: .85em; }
.zd-laptop .zl-wtools .zd-input { flex: 1 1 100%; min-width: 0; height: 2.4em; padding: 0 .7em; border: 1px solid #3e4144; border-radius: .3em; background: rgba(15, 18, 22, .92); color: #fff; font: inherit; }
.zd-laptop .zl-sel, .zd-laptop .zl-rfb, .zd-laptop .zl-day { display: flex; align-items: center; justify-content: space-between; gap: .4em; height: 2.4em; padding: 0 .6em; border: 1px solid #3e4144; border-radius: .3em; background: rgba(15, 18, 22, .92); white-space: nowrap; }
.zd-laptop .zl-sel { flex: 1; min-width: 0; }
.zd-laptop .zl-sel span { overflow: hidden; text-overflow: ellipsis; }
.zd-laptop .zl-rfb { flex: none; justify-content: center; width: 2.6em; padding: 0; }
.zd-laptop .zl-sel .i, .zd-laptop .zl-rfb .i, .zd-laptop .zl-day .i { flex: none; width: 1.2em; height: 1.2em; }

/* ---------- live TV: preview (Windows), player (web), programmes ---------- */
.zd-laptop .zl-right { gap: .7em; }
.zd-laptop .zl-pvw { position: relative; flex: none; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #000; font-size: 1.15em; }
.zd-laptop .zl-pvw > .zd-video, .zd-laptop .zl-wp > .zd-video, .zd-laptop .zl-play > .zd-video, .zd-laptop .zl-mc > .zd-video { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.zd-laptop .zl-li { flex: none; display: flex; align-items: center; gap: .8em; min-width: 0; }
.zd-laptop .zl-lb { flex: none; padding: .45em .7em; background: #5b2e56; font-size: .95em; text-transform: uppercase; }
.zd-laptop .zl-li b { font-size: 1.2em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-epg { flex: 1; display: flex; flex-direction: column; gap: .6em; min-height: 0; }
.zd-laptop .zl-er { flex: none; display: flex; flex-direction: column; gap: .3em; }
.zd-laptop .zl-er > span { display: flex; gap: .6em; color: #2ea6e8; font-size: 1.05em; white-space: nowrap; overflow: hidden; }
.zd-laptop .zl-er > span > span { flex: none; }
.zd-laptop .zl-er b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.zd-laptop .zl-er.is-now b { font-weight: 700; }
.zd-laptop .zl-er small { color: #cfcfcf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-web .zl-right { gap: .45em; padding: .6em 1em .6em .9em; }
.zd-web .zl-right > .zd-h { margin: .3em 0 0; color: #fff; font-size: 1em; font-weight: 700; }
.zd-web .zl-epg { font-size: .85em; }
.zd-laptop .zl-wt { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: 1.1em; }
.zd-laptop .zl-wt .zl-heart { height: 1.8em; }
.zd-laptop .zl-wp { position: relative; flex: none; display: grid; place-items: center; aspect-ratio: 16 / 8.4; overflow: hidden; background: #000; }
.zd-laptop .zl-choose { color: #d8d8d8; font-size: .9em; }

/* ---------- player and its on-screen bar ---------- */
.zd-laptop .zl-play { flex: 1; min-height: 0; overflow: hidden; background: #000; }
.zd-laptop .zl-asp1 > .zd-video { transform: scale(1.14); }
.zd-laptop .zl-asp2 > .zd-video { inset: 7% 0; }
.zd-laptop .zl-asp3 > .zd-video { inset: 0 12.5%; }
.zd-laptop .zl-pt { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .7em; padding: .8em 1.2em 2.2em; background: linear-gradient(rgba(0, 0, 0, .72), transparent); }
.zd-laptop .zl-pt > b { min-width: 0; font-size: 1.15em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-pt > .zl-ob:first-child, .zd-laptop .zl-o1 > .zl-ob { background: rgba(255, 255, 255, .2); }
.zd-laptop .zl-recb { flex: none; padding: .25em .55em; border-radius: .3em; background: #d3131b; font-size: .85em; font-weight: 700; }
.zd-laptop .zl-sub { position: absolute; left: 50%; bottom: 8.6em; max-width: 90%; padding: .15em .55em; background: rgba(0, 0, 0, .55); transform: translateX(-50%); text-align: center; white-space: nowrap; }
.zd-laptop .zl-sub0 { font-size: .9em; }
.zd-laptop .zl-sub1 { font-size: 1.15em; }
.zd-laptop .zl-sub2 { font-size: 1.45em; }
.zd-laptop .zl-osd { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4em 1.5em .9em; background: linear-gradient(transparent, rgba(0, 0, 0, .6) 30%, rgba(0, 0, 0, .86)); }
.zd-laptop .zl-osd--in { padding: 1.6em .9em .5em; font-size: .78em; }
.zd-laptop .zl-o1 { display: flex; align-items: center; gap: .9em; }
.zd-laptop .zl-o1 > .zd-logo { flex: none; width: 2.6em; font-size: 1em; }
.zd-laptop .zl-oi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35em; }
.zd-laptop .zl-oi b, .zd-laptop .zl-oi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-oi b { font-size: 1.15em; font-weight: 400; }
.zd-laptop .zl-oi small { font-size: 1em; color: #ececec; }
.zd-laptop .zl-osd .zl-pr { height: .22em; margin: 0; }
.zd-laptop .zl-osd .zl-pr i { background: #ffb21f; }
.zd-laptop .zl-o2 { display: flex; align-items: center; justify-content: space-around; margin-top: .55em; }
.zd-laptop .zl-ob { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; }
.zd-laptop .zl-ob .i { width: 1.4em; height: 1.4em; }
.zd-laptop .zl-ob.is-on { color: #ff4f5e; }
.zd-laptop .zl-ob.is-on .i { fill: currentColor; }
.zd-laptop .zl-ob--x { width: auto; min-width: 2.6em; padding: 0 .6em; border-radius: 1.3em; font-weight: 700; }

/* ---------- buttons ---------- */
.zd-laptop .zl-btn { flex: none; display: inline-flex; align-items: center; gap: .5em; height: 2.5em; padding: 0 1.1em; border: 1px solid #3a3d41; border-radius: .35em; background: linear-gradient(#1d2227, #13181b); white-space: nowrap; }
.zd-laptop .zl-btn .i { width: 1.2em; height: 1.2em; }
.zd-laptop .zl-btn--p { border-color: color-mix(in srgb, var(--brand) 80%, #fff); background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: var(--brand-ink); }
.zd-laptop .zl-btn.is-on .i { fill: #ff4f5e; stroke: #ff4f5e; }

/* ---------- guide: grid (Windows), list (web) ---------- */
.zd-laptop .zl-guide { --gch: 9.5em; flex: 1; display: flex; flex-direction: column; gap: .45em; min-height: 0; padding: 0 1.2em 1em; }
.zd-laptop .zl-gi { flex: none; display: flex; gap: 1em; height: 7.6em; }
.zd-laptop .zl-gi > .zd-video { height: 100%; border-radius: 0; }
.zd-laptop .zl-gi > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3em; }
.zd-laptop .zl-gi small { color: #2ea6e8; }
.zd-laptop .zl-gi b { font-size: 1.35em; }
.zd-laptop .zl-gd { display: -webkit-box; overflow: hidden; color: #cfcfcf; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.zd-laptop .zl-gt { flex: none; display: flex; align-items: center; height: 2.2em; }
.zd-laptop .zl-gnav { flex: none; display: flex; gap: .3em; width: var(--gch); }
.zd-laptop .zl-gts { position: relative; flex: 1; align-self: stretch; }
.zd-laptop .zl-gts span { position: absolute; top: .55em; padding-left: .35em; border-left: 1px solid #5a5a5a; color: #c4c4c4; font-size: .85em; white-space: nowrap; }
.zd-laptop .zl-gg { flex: 1; display: flex; flex-direction: column; gap: .22em; min-height: 0; }
.zd-laptop .zl-gr { flex: none; display: flex; height: 2.65em; }
.zd-laptop .zl-gch { flex: none; display: flex; align-items: center; gap: .5em; width: var(--gch); padding: 0 .5em; background: rgba(0, 0, 0, .8); }
.zd-laptop .zl-gch b { min-width: 0; font-size: .9em; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-gcs { position: relative; flex: 1; }
.zd-laptop .zl-gg[style] .zl-gcs::after { content: ""; position: absolute; top: -.11em; bottom: -.11em; left: var(--now); width: .14em; background: #fc8210; pointer-events: none; }
.zd-laptop .zl-gc { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: .3em; padding: 0 .5em; border: 1px solid #0b0d10; background: rgba(29, 34, 39, .94); font-size: .88em; text-align: left; overflow: hidden; }
.zd-laptop .zl-gc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-gc .i { flex: none; width: 1em; height: 1em; }
.zd-laptop .zl-gc.is-now { background: #5b2e56; }
.zd-laptop .zl-ghint { flex: none; max-width: none; margin: 0 1.6em .6em; color: #dcdcdc; font-size: .85em; }
.zd-laptop .zl-wg { flex: 1; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 1em; min-height: 0; padding: 0 1.6em 1em; }
.zd-laptop .zl-wgc { flex: none; display: flex; align-items: center; gap: .6em; min-height: 2.75em; padding: 0 .6em; border-bottom: 1px solid #1b1a1a; background: rgba(0, 0, 0, .55); text-align: left; white-space: nowrap; }
.zd-laptop .zl-wgc.is-on { background: #a64c02; }
.zd-laptop .zl-wgr { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: .8em 1em; border-radius: .4em; background: rgba(15, 18, 22, .78); }
.zd-laptop .zl-wgh { flex: none; display: flex; align-items: center; gap: .7em; padding-bottom: .6em; }
.zd-laptop .zl-wgh > b { min-width: 0; font-size: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-wgh .zl-heart { height: 2.2em; }
.zd-laptop .zl-wgp { flex: none; display: grid; grid-template-columns: 7.6em minmax(0, 1fr) auto; align-items: start; gap: .8em; padding: .7em .6em; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.zd-laptop .zl-wgp > span { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.zd-laptop .zl-wgp small { color: #cfcfcf; }
.zd-laptop .zl-wgp.is-now { background: rgba(91, 46, 86, .6); }
.zd-laptop .zl-wgp .i { width: 1.1em; height: 1.1em; }
.zd-laptop .zl-nowb { padding: .2em .45em; border-radius: .2em; background: #d3131b; font-size: .75em; }

/* ---------- catch-up, movies and series ---------- */
.zd-laptop .zl-cur { flex: none; display: flex; align-items: center; gap: .9em; padding: .5em .7em; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(0, 0, 0, .5); text-align: left; }
.zd-laptop .zl-cua { flex: none; width: 7.4em; aspect-ratio: 16 / 9; border-radius: .2em; background: #1a1a1a center / cover; }
.zd-laptop .zl-cur > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2em; }
.zd-laptop .zl-cur small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfcfcf; }
.zd-laptop .zl-cur small:first-child { color: #2ea6e8; }
.zd-laptop .zl-cur > .i { flex: none; width: 1.4em; height: 1.4em; }
.zd-laptop .zl-vh { flex: none; display: grid; place-items: center; height: 2.6em; font-size: 1.2em; font-weight: 700; text-transform: uppercase; }
.zd-laptop .zl-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4em, 1fr)); align-content: start; gap: .8em; min-height: 0; padding: .2em .2em .6em; }
.zd-laptop .zl-grid > .zd-empty { grid-column: 1 / -1; }
.zd-laptop .zl-grid--s { flex: none; }
.zd-laptop .zl-pc { position: relative; min-width: 0; }
.zd-laptop .zl-po { position: relative; display: block; width: 100%; text-align: center; }
.zd-laptop .zl-pa { position: relative; display: block; aspect-ratio: 2 / 3; background: #1a1a1a center / cover; }
.zd-laptop .zl-rate { position: absolute; top: .45em; left: .45em; padding: .25em .4em; border-radius: .25em; background: #1c86c7; font-size: .8em; font-weight: 700; }
.zd-laptop .zl-pa > .zl-pr { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: .25em; margin: 0; }
.zd-laptop .zl-pa > .zl-pr i { background: #ffeb3b; }
.zd-laptop .zl-po > b { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8em .35em .5em; background: linear-gradient(transparent, rgba(0, 0, 0, .88) 55%); font-size: .92em; font-weight: 500; line-height: 1.3; }
.zd-web .zl-po > b { position: static; display: block; padding: .5em .3em; background: #0b0b0b; font-size: .82em; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zd-laptop .zl-pc > .zl-heart { position: absolute; top: .25em; right: .2em; height: 2em; }
.zd-laptop .zl-item { flex: 1; display: flex; gap: 1.6em; min-height: 0; padding: .4em 2em 1.2em; }
.zd-laptop .zl-ibg { position: absolute; inset: 0; background: center / cover; opacity: .32; }
.zd-laptop .zl-ibg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .9), rgba(8, 9, 11, .3)); }
.zd-laptop .zl-ipo { position: relative; flex: none; align-self: flex-start; width: 12.5em; aspect-ratio: 2 / 3; background: #1a1a1a center / cover; box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .6); }
.zd-laptop .zl-ii { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .75em; }
.zd-laptop .zl-it { font: 700 2em/1.1 var(--f-display); }
.zd-laptop .zl-im { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; color: #dcdcdc; }
.zd-laptop .zl-id { max-width: 42em; color: #d0d0d0; line-height: 1.45; }
.zd-laptop .zl-ia { display: flex; flex-wrap: wrap; gap: .6em; }
.zd-laptop .zl-eps2 { display: flex; flex-direction: column; gap: .3em; width: 100%; }
.zd-laptop .zl-ep { display: flex; align-items: center; gap: .9em; width: 100%; padding: .4em .5em; border-radius: .3em; background: rgba(0, 0, 0, .45); text-align: left; }
.zd-laptop .zl-epa { position: relative; flex: none; width: 7em; aspect-ratio: 16 / 9; background: #1a1a1a center / cover; }
.zd-laptop .zl-epa > .zl-pr { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
.zd-laptop .zl-ep > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: .2em; }
.zd-laptop .zl-ep > .i { flex: none; width: 1.3em; height: 1.3em; }

/* ---------- multi-screen, radio, search ---------- */
.zd-laptop .zl-multi { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .35em; min-height: 0; padding: 0 1.2em; }
.zd-laptop .zl-m4 { grid-template-rows: 1fr 1fr; }
.zd-laptop .zl-m2 { align-content: center; }
.zd-laptop .zl-m2 .zl-mc { aspect-ratio: 16 / 9; }
.zd-laptop .zl-mc { position: relative; min-height: 0; overflow: hidden; border: .14em solid transparent; background: #000; }
.zd-laptop .zl-mc.is-on { border-color: var(--brand); }
.zd-laptop .zl-mcap { position: absolute; left: .5em; bottom: .5em; display: flex; align-items: center; gap: .45em; padding: .25em .55em .25em .25em; border-radius: .3em; background: rgba(0, 0, 0, .65); font-size: .9em; }
.zd-laptop .zl-mcap .zd-logo { width: 2em; font-size: .8em; }
.zd-laptop .zl-msnd { position: absolute; top: .5em; right: .5em; box-sizing: content-box; width: 1.4em; height: 1.4em; padding: .3em; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
.zd-laptop .zl-mbar { flex: none; display: flex; align-items: center; gap: .6em; padding: .6em 1.2em .9em; }
.zd-laptop .zl-mbar > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.zd-laptop .zl-mbar small { color: #cfcfcf; }
.zd-laptop .zl-rnow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5em; min-height: 0; padding: 1em; background: rgba(0, 0, 0, .45); text-align: center; }
.zd-laptop .zl-disc { width: 9em; aspect-ratio: 1; border-radius: 50%; background: #1b1b1b center / cover; box-shadow: 0 0 0 .3em rgba(255, 255, 255, .08); }
.zd-laptop .zl-rnow > b { font-size: 1.5em; }
.zd-laptop .zl-rnow > small { color: #fc8210; font-weight: 700; text-transform: uppercase; }
.zd-laptop .zl-eq { display: flex; align-items: flex-end; gap: .22em; height: 1.4em; }
.zd-laptop .zl-eq i { width: .32em; height: 100%; background: var(--brand-hi); transform-origin: bottom; }
.zd-laptop .zl-search { flex: 1; display: flex; flex-direction: column; gap: .7em; min-height: 0; padding: 0 2em 1em; }
.zd-laptop .zl-sq { flex: none; display: flex; align-items: center; gap: .6em; height: 2.9em; padding: 0 1.1em; border: 1px solid #3e4144; border-radius: 2em; background: rgba(20, 22, 24, .9); }
.zd-laptop .zl-res { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.zd-laptop .zl-rl { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: .3em; }
.zd-laptop .zl-rl .zl-cat { background: rgba(0, 0, 0, .55); }

/* ---------- settings: tiles and pages; option lists (also in dialogs) ---------- */
.zd-laptop .zl-sets { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 1em; min-height: 0; padding: .4em 3.2em 1.2em; }
.zd-laptop .zl-st { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55em; aspect-ratio: 1.5; padding: .5em; background: #1d2353; text-align: center; }
.zd-laptop .zl-st .i { width: 3.3em; height: 3.3em; color: #3f7fe6; stroke-width: 1.3; }
.zd-laptop .zl-st b { font-size: 1.3em; font-weight: 500; }
.zd-laptop .zl-pane { flex: 1; min-height: 0; padding: .2em 1.4em 1.2em; }
.zd-laptop .zl-pw { width: min(34em, 100%); margin: 0 auto; }
.zd-laptop .zl-pick { display: flex; flex-direction: column; gap: .3em; }
.zd-laptop .zl-opt { display: flex; align-items: center; gap: .8em; min-height: 2.8em; padding: .35em 1em; border-radius: .3em; background: rgba(29, 35, 83, .9); text-align: left; }
.zd-laptop .zd-dialog .zl-opt { min-height: 2.3em; padding: .2em .8em; background: rgba(255, 255, 255, .07); }
.zd-laptop .zl-dlg { align-self: stretch; width: 100%; max-height: 19em; margin-right: -.4em; padding-right: .4em; overflow-y: auto; scrollbar-width: thin; }
.zd-laptop .zl-opt > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.zd-laptop .zl-opt small { color: #c4c4c4; }
.zd-laptop .zl-opt > .i { flex: none; width: 1.2em; height: 1.2em; }
.zd-laptop .zl-opt.is-on { box-shadow: inset .25em 0 var(--brand); }
.zd-laptop .zl-kv > div { display: flex; justify-content: space-between; gap: 1em; padding: .65em .2em; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.zd-laptop .zl-kv span { color: #c4c4c4; }
.zd-laptop .zl-kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.zd-laptop .zl-note { max-width: none; margin: .8em 0 0; color: #cdcdcd; font-size: .9em; line-height: 1.45; }
.zd-laptop .zl-vrow { display: flex; align-items: center; gap: 1em; padding: .6em 0; }
.zd-laptop .zl-vrow > span, .zd-laptop .zl-ks > span { flex: 1; display: flex; flex-direction: column; gap: .2em; }
.zd-laptop .zl-vrow small, .zd-laptop .zl-ks small { color: #c4c4c4; line-height: 1.4; }
.zd-laptop .zl-ks { display: flex; gap: .7em; margin: .2em 0 .4em; padding: .6em .8em; border-radius: .4em; background: rgba(76, 242, 94, .08); }
.zd-laptop .zl-ks > .i { flex: none; width: 1.5em; height: 1.5em; color: #4cf25e; }
.zd-laptop .zl-link { align-self: flex-start; margin-top: .35em; color: var(--brand-hi); font-size: .9em; text-decoration: underline; }
.zd-laptop .zl-speed { display: flex; flex-direction: column; align-items: center; gap: .5em; padding-top: 1em; text-align: center; }
.zd-laptop .zl-speed > b { font: 700 3em/1 var(--f-display); }
.zd-laptop .zl-speed > .zl-pr { width: 70%; height: .3em; }
.zd-laptop .zd-input.zl-pin { width: 100%; letter-spacing: .3em; }
.zd-laptop .zl-pinm { display: block; margin-top: .45em; color: #c4c4c4; font-size: .85em; }

/* ---------- pointer hover, then the focus of the real apps (white on cards and buttons, orange on rows) ---------- */
@media (hover: hover) {
  .zd-laptop .zl-cat:hover, .zd-laptop .zl-chb:hover, .zd-laptop .zl-cur:hover, .zd-laptop .zl-wgc:hover, .zd-laptop .zl-wgp:hover, .zd-laptop .zl-ep:hover, .zd-laptop .zl-gc:hover { background-color: rgba(166, 76, 2, .55); }
  .zd-laptop .zl-hi:hover, .zd-laptop .zl-ob:hover, .zd-laptop .zl-back:hover, .zd-laptop .zl-arr:hover, .zd-laptop .zl-heart:hover { background-color: rgba(255, 255, 255, .16); }
  .zd-laptop .zl-hx:hover, .zd-laptop .zl-btn:hover, .zd-laptop .zl-st:hover, .zd-laptop .zl-opt:hover, .zd-laptop .zl-strip:hover { filter: brightness(1.3); }
  .zd-laptop .zl-card:hover { border-color: rgba(255, 255, 255, .6); }
}
.zd-laptop .zl-cat.is-focus, .zd-laptop .zl-chb.is-focus, .zd-laptop .zl-cur.is-focus, .zd-laptop .zl-wgc.is-focus, .zd-laptop .zl-wgp.is-focus, .zd-laptop .zl-ep.is-focus, .zd-laptop .zl-gc.is-focus, .zd-laptop .zl-arr.is-focus { background: #a64c02; }
.zd-laptop .zl-heart.is-focus { background: #5b2e56; }
.zd-laptop .zl-hi.is-focus, .zd-laptop .zl-hx.is-focus, .zd-laptop .zl-ms.is-focus, .zd-laptop .zl-btn.is-focus, .zd-laptop .zl-ob.is-focus, .zd-laptop .zl-back.is-focus, .zd-laptop .zl-opt.is-focus, .zd-laptop .zl-strip.is-focus { border-color: #fff; background: #fff; color: #121212; filter: none; }
.zd-laptop .zl-cm.is-focus > b { background: #fff; color: #111; }
.zd-laptop .zl-hi.is-focus .zl-cam text { fill: #fff; }
.zd-laptop .zl-strip.is-focus small, .zd-laptop .zl-opt.is-focus small { color: #444; }
.zd-laptop .zl-strip.is-focus > i { background: #1d1d1d; color: #fff; }
.zd-laptop .zl-ip.is-focus, .zd-laptop .zl-sel.is-focus, .zd-laptop .zl-rfb.is-focus { border-color: #fff; }
.zd-laptop .zl-wtools .zd-input.is-focus { border-color: #fc8210; }
.zd-laptop .zl-pvw.is-focus { box-shadow: 0 0 0 .14em #fff; }
.zd-laptop .zl-po.is-focus .zl-pa { box-shadow: 0 0 0 .2em #fc8210; }
.zd-laptop .zl-mc.is-focus { border-color: #fff; }
.zd-laptop .zl-st.is-focus { background: linear-gradient(160deg, #4a90d9, #7b2ff0 58%, #5a1db3); box-shadow: 0 0 0 .14em #fff; }
.zd-laptop .zl-st.is-focus .i { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .zd-laptop .zl-new { animation: zd-laptop-in .22s ease-out; }
  .zd-laptop .zl-eq i { animation: zd-laptop-eq .8s ease-in-out infinite alternate; }
  .zd-laptop .zl-eq i:nth-child(2n) { animation-duration: .55s; }
  .zd-laptop .zl-eq i:nth-child(3n) { animation-duration: 1.1s; }
}
@keyframes zd-laptop-in { from { opacity: 0; } }
@keyframes zd-laptop-eq { from { transform: scaleY(.25); } }

/* ---- 30-panel.css ---- */
/* The control panel demo: the real panel's owner pages in a browser window, real tokens and components prefixed "zp-".
   1em of the window = the real 15px (--zp = 1 real px); container queries in em = real px / 15 ("zp" the window, "zpc"
   the page column). */
@property --zp{syntax:"<length>";inherits:true;initial-value:1px}

/* ---------- layout: the window, and the devices under it ---------- */
.zd-panel{container:zd-panel / inline-size}
.zd-panel-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
.zd-panel-win{min-width:0}
.zd-panel-win>.zd-dev{--zd-fs:clamp(13px,1.6cqw,14.5px);--zd-ratio:auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-synthesis:none}
.zd-panel-win .zd-screen{height:46em}
.zd-panel-win .zd-browser-tab .zd-glyph{display:none}
.zd-panel-win .zd-browser--dark{--b1:#0b0e12;--b2:#161b22;--b3:#0f1216;--b-ink:#c4cfdb;--b-mute:#66758a}

/* narrow: one device at a time, with a switcher */
.zd-panel-live{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 12px;min-width:0}
.zd-panel-live-h{display:grid;gap:2px;color:var(--ink-3);font-size:.875rem;line-height:1.4}
.zd-panel-live-h span{display:none}
.zd-panel-live-h b{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:.9375rem;font-weight:500}
.zd-panel-live-h i{flex:none;width:8px;height:8px;margin-left:4px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px color-mix(in oklab,var(--ok) 24%,transparent)}
.zd-panel.zd-on-dark .zd-panel-live-h{color:var(--screen-ink-2)}
.zd-panel.zd-on-dark :is(.zd-panel-live-h b,.zd-panel-cap b){color:#fff}
.zd-panel-switch{width:auto;margin:0;padding:3px;gap:2px;border-radius:999px}
.zd-panel-seg{min-width:46px;min-height:40px;padding:0 11px;border-radius:999px;color:var(--t-ink);font:500 .8125rem/1.2 var(--f-text);text-align:center}
.zd-panel-seg[aria-pressed="true"]{background:var(--t-on);color:var(--t-on-ink)}
.zd-panel-seg:focus-visible{outline-offset:1px}
.zd-panel-devs{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr);column-gap:16px}
.zd-panel-slot{display:none;min-width:0}
.zd-panel-slot.is-shown{display:block}
.zd-panel-slot[data-kind="phone"] .zd-panel-mount{width:min(100%,440px);margin-inline:auto}
.zd-panel-mount{min-width:0}
.zd-panel-cap{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 8px;margin:12px 0 0;color:var(--ink-3);font-size:.8125rem;line-height:1.35;text-align:center}
.zd-panel-cap b{color:var(--ink);font-weight:500}
.zd-panel-cap i{padding:1px 8px;border-radius:99px;background:rgba(127,135,150,.18);color:var(--ink);font-style:normal}
.zd-panel.zd-on-dark .zd-panel-cap{color:var(--screen-ink-2)}
.zd-panel.zd-on-dark .zd-panel-cap i{color:#fff}
.zd-panel-splash{flex:1;display:grid;place-content:center;justify-items:center;gap:.9em;padding:1em;text-align:center}
.zd-panel-splash .zd-glyph{font-size:2.2em}
.zd-panel-splash .zd-name{max-width:100%}

@container zd-panel (max-width: 312px) {
  .zd-panel-live{column-gap:6px}
  .zd-panel-seg{min-width:40px;padding-inline:8px}
}

/* all devices in a row under the window */
@container zd-panel (min-width: 620px) {
  .zd-panel-live{display:block}
  .zd-panel-live-h{margin-bottom:16px}
  .zd-panel-live-h span{display:block}
  .zd-panel-live-h b{font-size:1rem}
  .zd-panel-switch{display:none}
  .zd-panel-devs{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
  .zd-panel-devs--trio{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) clamp(140px,22cqw,260px)}
  .zd-panel-slot,.zd-panel-slot.is-shown{display:grid;grid-template-rows:subgrid;grid-row:span 2}
  .zd-panel-slot[data-kind="phone"] .zd-panel-mount{justify-self:center;width:min(100%,160px);margin-inline:0}
  .zd-panel-devs--trio>[data-kind="phone"] .zd-panel-mount{justify-self:stretch;width:auto}
  .zd-panel-mount{align-self:end}
  .zd-panel-cap{align-self:start;margin-bottom:4px}
}
@container zd-panel (min-width: 1040px) {
  .zd-panel-win .zd-screen{height:48em}
}
/* wide: the window stands for a desktop browser (1140-1385 real px) */
@container zd-panel (min-width: 1100px) {
  .zd-panel-win>.zd-dev{--zd-fs:clamp(13px,31px - 1.5cqw,14.5px)}
  .zd-panel-win .zd-screen{height:50em}
}
/* a phone: a larger font, no tab strip */
@container (max-width: 639px) {
  .zd-panel-win .zd-dev-body{--zd-fs:clamp(13px,3.75cqw,15px)}
  .zd-panel-win .zd-screen{height:42em}
  .zd-panel-win .zd-browser-tabs{display:none}
}

/* the demo strip under the window (site UI): one row kept on every page, so the devices under it stay put */
.zd-panel-demo{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-height:36px;margin-top:14px;color:var(--ink-3);font-size:.8125rem;line-height:1.35}
.zd-panel-demo.is-empty{visibility:hidden}
.zd-panel-demo-k{padding:2px 8px;border-radius:4px;background:var(--ink);color:#fff;font-weight:500;letter-spacing:.04em;text-transform:uppercase;font-size:.6875rem}
.zd-panel-dbtn{min-height:36px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line-2);background:var(--card);color:var(--ink);font:500 .8125rem/1.2 var(--f-text)}
.zd-panel.zd-on-dark .zd-panel-demo{color:var(--screen-ink-2)}
.zd-panel.zd-on-dark .zd-panel-dbtn{box-shadow:inset 0 0 0 1px var(--screen-line);background:var(--screen-2);color:#fff}
@media (hover: hover) { .zd-panel-dbtn:hover{box-shadow:inset 0 0 0 1px var(--ink-3)} }
@media (pointer: coarse) { .zd-panel-dbtn,.zd-panel-demo,.zd-panel-seg{min-height:44px} }

/* ---------- the real tokens (panel.css): dark, and light ---------- */
.zd-panel-win>.zd-dev{--zp-brand:var(--brand);--bg:#0f1216;--bg-2:#161b22;--card:#1b222c;--card-2:#202936;--line:#2a3340;--line-2:#364254;--text:#e6edf3;--muted:#8b98a8;
  --accent:#fc8210;--accent-ink:#1a1206;--ok:#2fbf71;--warn:#f0b429;--bad:#ef5350;--info:#4ea1ff;--lab:#7c5cff;--prod:#2fbf71;
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.18);--surface:#161b22;--sunken:#11151b;--input:#161b22;--text-2:#c4cfdb;--placeholder:#66758a;--focus:#fc8210;
  --row-hover:rgba(255,255,255,.02);--checker:#222b36;--ok-bg:#0f2b1d;--ok-line:#1f6b45;--ok-ink:#8df0bb;--prod-ink:#aee9c8;--prod-btn:#c9f5dd;
  --warn-bg:#2e2408;--warn-line:#7a5f12;--warn-ink:#ffd978;--bad-bg:#2a1a1a;--bad-line:#6b2a2a;--bad-ink:#ffb3b0;--danger-bg:#3a1616;--danger-line:#7a2b2b;
  --info-bg:#15233a;--info-line:#2c4f86;--info-ink:#a9cdff;--lab-bg:#1d1640;--lab-line:#4b3aa3;--lab-ink:#cbbfff;
  --st-ok:#0ca30c;--st-ok-soft:rgba(12,163,12,.16);--st-ok-line:rgba(12,163,12,.5);--st-warn:#fab219;--st-warn-soft:rgba(250,178,25,.15);--st-warn-line:rgba(250,178,25,.5);
  --st-bad:#e05252;--st-bad-soft:rgba(224,82,82,.16);--st-bad-line:rgba(224,82,82,.5);--st-stop:#8f9bab;--st-stop-soft:rgba(143,155,171,.16);--st-stop-line:rgba(143,155,171,.45);
  --st-info:#3987e5;--st-info-soft:rgba(57,135,229,.16);--st-info-line:rgba(57,135,229,.45);--series:#3987e5;--series-wash:rgba(57,135,229,.12);--grid:#262e39;--card-shadow:none;color-scheme:dark}
.zd-panel-win[data-zp-theme="light"]>.zd-dev{--bg:#f3f5f8;--bg-2:#f7f9fc;--card:#fff;--card-2:#f1f4f8;--line:#dfe4ea;--line-2:#c9d1db;--text:#121a24;--muted:#5d6a7a;
  --ok:#0a8a0a;--warn:#a86b00;--bad:#c62f2f;--info:#1f63c4;--lab:#6a48e8;--prod:#0a8a0a;--shadow:0 1px 2px rgba(16,24,40,.06),0 8px 24px rgba(16,24,40,.06);
  --surface:#fff;--sunken:#eef1f5;--input:#fff;--text-2:#3b4858;--placeholder:#8a96a6;--focus:#c25e00;--row-hover:rgba(16,24,40,.03);--checker:#dfe4ea;
  --ok-bg:#e3f6ea;--ok-line:#7cc79a;--ok-ink:#0d5c2e;--prod-ink:#0d5c2e;--prod-btn:#0d5c2e;--warn-bg:#fff4d6;--warn-line:#e3b341;--warn-ink:#7a4d00;
  --bad-bg:#fdecec;--bad-line:#e3a3a3;--bad-ink:#9b1c1c;--danger-bg:#fdecec;--danger-line:#d98c8c;--info-bg:#e6f0fd;--info-line:#8db5ec;--info-ink:#1d4f9a;
  --lab-bg:#efeafe;--lab-line:#a897ec;--lab-ink:#4b2fc0;--st-ok:#0a8a0a;--st-ok-soft:rgba(12,163,12,.12);--st-ok-line:rgba(10,138,10,.45);
  --st-warn:#c98500;--st-warn-soft:rgba(250,178,25,.18);--st-warn-line:rgba(201,133,0,.5);--st-bad:#c62f2f;--st-bad-soft:rgba(208,59,59,.11);--st-bad-line:rgba(198,47,47,.45);
  --st-stop:#6b7787;--st-stop-soft:rgba(107,119,135,.12);--st-stop-line:rgba(107,119,135,.45);--st-info:#2a78d6;--st-info-soft:rgba(42,120,214,.11);--st-info-line:rgba(42,120,214,.45);
  --series:#2a78d6;--series-wash:rgba(42,120,214,.10);--grid:#e6e9ee;--card-shadow:0 1px 2px rgba(16,24,40,.05);color-scheme:light}

/* core dialogs and notes in the window; a confirm() looks like the browser's own box */
.zd-panel-win .zd-app{--zd-bg:var(--bg);--zd-raise:var(--card);--zd-surface:var(--card);--zd-surface-2:var(--card-2);--zd-line:var(--line-2);--zd-ink:var(--text);--zd-ink-2:var(--muted);--zd-ink-3:var(--muted);
  --zd-ok:var(--st-ok);--zd-warn:var(--st-warn);--zd-bad:var(--st-bad);--zd-scrim:rgba(0,0,0,.3);--zd-focus:var(--focus);--brand:var(--accent);--brand-ink:var(--accent-ink);--brand-hi:var(--accent);--brand-2:#8a4708;background:var(--bg);color:var(--text)}
.zd-panel-win .zd-toast:not(.zd-toast--banner){pointer-events:none}
.zd-panel-win .zd-modal{place-items:start center;padding:1.2em}
.zd-panel-win .zd-dialog{display:block;width:min(100%,28em);padding:1.5em 1.6em 1.3em;border-radius:.7em;background:var(--card);box-shadow:0 .3em 1.4em rgba(0,0,0,.35)}
.zd-panel-win .zd-dialog-main{gap:.7em}
.zd-panel-win .zd-dialog .zd-badge{padding:0;background:none;color:var(--text);font-size:.95em;white-space:normal;overflow-wrap:anywhere}
.zd-panel-win .zd-dialog-title{color:var(--muted);font-size:.95em;font-weight:400;line-height:1.45}
.zd-panel-win .zd-dialog-actions{margin-top:1.5em}
.zd-panel-win .zd-dialog .zd-btn{padding:0 1.5em;border-radius:99em;background:none;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--info)}
.zd-panel-win .zd-dialog .zd-btn--primary{background:var(--info);box-shadow:none;color:var(--bg)}

/* ---------- base and shell (panel.css, owner.css); --zp-11/12: the real 11/12px with a floor ---------- */
.zd-panel .zp-app{--zp:calc(1em / 15);--zp-11:max(calc(11 * var(--zp)),10.5px);--zp-12:max(calc(12 * var(--zp)),11px);container:zp / inline-size;flex:1;display:flex;flex-direction:column;min-height:0;background:var(--bg);color:var(--text);font-weight:400;line-height:1.5}
.zd-panel .zp-app :focus-visible{outline:max(2px,.133em) solid var(--focus);outline-offset:max(2px,.133em)}
.zd-panel :where(.zp-app) :where(b,strong){font-weight:700}
.zd-panel :where(.zp-main-in) :where(p){margin:0 0 calc(12 * var(--zp))}
.zd-panel :where(.zp-main-in) :where(p:last-child){margin-bottom:0}
.zd-panel .zp-icon{flex:none;width:calc(18 * var(--zp));height:calc(18 * var(--zp));fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:calc(-3 * var(--zp))}
.zd-panel .zp-icon-lg{width:calc(22 * var(--zp));height:calc(22 * var(--zp))}
.zd-panel .zp-shell{position:relative;flex:1;display:grid;grid-template:3.733em minmax(0,1fr) / 16.8em minmax(0,1fr);min-height:0}
.zd-panel .zp-topbar{grid-column:1 / -1;position:relative;z-index:31;display:flex;align-items:center;gap:.8em;min-width:0;padding:0 .933em;background:var(--surface);border-bottom:1px solid var(--line)}
.zd-panel .zp-brand{display:inline-flex;align-items:center;gap:.5em;min-width:0;color:var(--text);font-size:calc(16 * var(--zp));font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.zd-panel .zp-brand>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.zd-panel .zp-brand-cp{flex:none;color:var(--accent);font-weight:600}
/* light: the real orange is 2.5:1 on white, --focus 4.6:1 */
.zd-panel-win[data-zp-theme="light"] .zp-brand-cp{color:var(--focus)}
.zd-panel .zp-topbar-status{flex:1;display:flex;align-items:center;gap:.533em;min-width:0;margin:0 -.267em;padding:.267em;overflow-x:auto;scrollbar-width:none}
.zd-panel .zp-topbar-status::-webkit-scrollbar{display:none}
/* where its box is too narrow (the real one is cut there) the pill ends in an ellipsis */
.zd-panel .zp-o-pill{display:inline-flex;align-items:center;gap:.538em;min-width:0;min-height:2.462em;padding:.308em .923em;border:1px solid var(--line-2);border-radius:999px;background:var(--card);color:var(--text);font-size:calc(13 * var(--zp));font-weight:600;white-space:nowrap}
.zd-panel .zp-o-pill>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.zd-panel .zp-o-pill::before{content:"";flex:none;width:.615em;height:.615em;border-radius:50%;background:var(--st-stop)}
.zd-panel .zp-o-pill-ok::before{background:var(--st-ok)}
.zd-panel .zp-o-pill-warn::before{background:var(--st-warn)}
.zd-panel .zp-o-theme{flex:none;display:inline-flex;overflow:hidden;border:1px solid var(--line-2);border-radius:.667em;background:var(--card)}
.zd-panel .zp-o-theme button{min-height:2.667em;padding:.333em .833em;color:var(--muted);font-size:var(--zp-12);font-weight:600}
.zd-panel .zp-o-theme button+button{border-left:1px solid var(--line-2)}
.zd-panel .zp-o-theme button[aria-pressed="true"]{background:var(--card-2);color:var(--text);box-shadow:inset 0 -.167em 0 var(--accent)}
.zd-panel .zp-o-theme button:focus-visible{outline-offset:calc(-2 * var(--zp))}
.zd-panel .zp-topbar-user{display:flex;align-items:center;gap:.667em;white-space:nowrap}
.zd-panel .zp-user{display:inline-flex;align-items:center;justify-content:center;gap:.4em;min-height:2.667em;color:var(--text)}
.zd-panel .zp-sidebar{grid-row:2;min-height:0;padding:.4em .667em 1.6em;overflow-y:auto;background:var(--surface);border-right:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.zd-panel .zp-nav-heading{margin:1.454em 0 .364em;padding:0 1.091em;color:var(--muted);font-size:var(--zp-11);font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.zd-panel .zp-nav-item{display:flex;align-items:center;gap:.733em;width:100%;min-height:2.667em;margin:1px 0;padding:.533em .8em;border-radius:.6em;color:var(--text-2);line-height:1.3;text-align:left}
.zd-panel .zp-nav-item .zp-icon{color:var(--muted)}
.zd-panel .zp-nav-item.zp-is-active{background:var(--card-2);box-shadow:inset .2em 0 0 var(--accent);color:var(--text);font-weight:600}
.zd-panel .zp-nav-item.zp-is-active .zp-icon{color:var(--accent)}
.zd-panel .zp-nav-count{margin-left:auto;min-width:2em;padding:.091em .636em;border:1px solid var(--warn-line);border-radius:999px;background:var(--warn-bg);color:var(--warn-ink);font-size:var(--zp-11);font-weight:700;text-align:center}
.zd-panel .zp-nav-count.zp-o-nav-problem{border-color:var(--st-bad-line);background:var(--st-bad-soft);color:var(--text)}
.zd-panel .zp-backdrop{display:none;position:absolute;z-index:25;inset:3.733em 0 0;background:rgba(5,8,12,.62)}
.zd-panel .zp-main{grid-row:2;min-width:0;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
.zd-panel .zp-main-in{container:zpc / inline-size;max-width:85.333em;padding:1.467em 1.6em 4em}
.zd-panel .zp-page-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8em;margin-bottom:1.2em}
.zd-panel .zp-page-actions{display:flex;flex-wrap:wrap;gap:.533em}
.zd-panel .zp-h1{margin:0;font-size:calc(22 * var(--zp));font-weight:700;line-height:1.25;letter-spacing:-.01em}
.zd-panel .zp-h1:focus{outline:none}
.zd-panel .zp-h2{margin:0 0 .706em;font-size:calc(17 * var(--zp));font-weight:700}
.zd-panel .zp-h3{margin:0 0 .571em;color:var(--muted);font-size:calc(14 * var(--zp));font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.zd-panel .zp-lead{max-width:72ch;margin:-.533em 0 1.2em;color:var(--muted)}
.zd-panel .zp-flash-list{margin-bottom:1.067em}
.zd-panel .zp-flash{margin-bottom:.8em;padding:.667em .933em;border:1px solid var(--line);border-left-width:.267em;border-radius:.667em;background:var(--card)}
.zd-panel .zp-flash-success{border-color:var(--ok-line)}
.zd-panel .zp-flash-error{border-color:var(--danger-line)}
.zd-panel .zp-flash-warning{border-color:var(--warn-line)}
.zd-panel .zp-flash-info{border-color:var(--info-line)}

/* ---------- shared components (panel.css) ---------- */
.zd-panel .zp-card{margin-bottom:1.067em;padding:1.067em;border:1px solid var(--line);border-radius:.8em;background:var(--card);box-shadow:var(--card-shadow)}
.zd-panel .zp-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:.533em;margin-bottom:.8em}
.zd-panel .zp-card-head .zp-h2{display:inline-flex;align-items:center;gap:.471em;margin:0}
.zd-panel .zp-card-head .zp-h2 .zp-icon{color:var(--muted)}
.zd-panel .zp-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:.533em;margin-top:.933em}
.zd-panel .zp-card-apk{border-top:.2em solid var(--warn)}
.zd-panel .zp-grid{display:grid;gap:1.067em;margin-bottom:1.067em}
.zd-panel .zp-grid>.zp-card{margin-bottom:0}
.zd-panel .zp-grid-2{grid-template-columns:repeat(auto-fit,minmax(min(20em,100%),1fr))}
.zd-panel .zp-stat{font-size:calc(26 * var(--zp));font-weight:700;line-height:1.2;letter-spacing:-.01em}
.zd-panel .zp-muted{color:var(--muted)}
.zd-panel .zp-small{font-size:calc(13 * var(--zp))}
.zd-panel .zp-stat-row{display:flex;flex-wrap:wrap;gap:.533em 1.867em}
.zd-panel .zp-stat-label{color:var(--muted);font-size:calc(13 * var(--zp))}
.zd-panel .zp-row{display:flex;flex-wrap:wrap;align-items:center;gap:.667em}
.zd-panel .zp-spacer{flex:1}
.zd-panel .zp-stack>*+*{margin-top:.933em}
.zd-panel .zp-kv{display:grid;grid-template-columns:minmax(6.4em,auto) 1fr;gap:.4em .933em;margin:0}
.zd-panel .zp-kv dt{padding-top:1px;color:var(--muted);font-size:calc(13 * var(--zp));opacity:.7}
.zd-panel .zp-kv dd{min-width:0;overflow-wrap:anywhere}
.zd-panel :is(.zp-kv+p,.zp-stat-row+p,.zp-stat+.zp-kv){margin-top:calc(12 * var(--zp))}
.zd-panel .zp-empty{padding:.4em 0;color:var(--muted)}
.zd-panel .zp-sub-head{margin-top:1.067em;padding-top:.933em;border-top:1px solid var(--line)}
.zd-panel .zp-change-list>li{padding:.6em 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.zd-panel .zp-change-list>li:first-child{padding-top:0;border-top:0}
.zd-panel .zp-change-name{margin-right:.4em;font-weight:600}
.zd-panel .zp-quick{display:grid;gap:.667em;grid-template-columns:repeat(auto-fit,minmax(min(13.333em,100%),1fr))}
.zd-panel .zp-quick>button{display:flex;align-items:center;gap:.667em;min-height:3.2em;padding:.667em .933em;border:1px solid var(--line);border-radius:.667em;background:var(--bg-2);color:var(--text);font-weight:600;text-align:left}
.zd-panel .zp-quick .zp-icon{color:var(--accent)}
.zd-panel .zp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:calc(13 * var(--zp))}
.zd-panel .zp-a{display:inline;color:var(--info);text-align:left}
.zd-panel .zp-nowrap{white-space:nowrap}

/* badges */
.zd-panel .zp-badge{display:inline-flex;align-items:center;gap:.5em;padding:.25em .833em;border:1px solid var(--line);border-radius:999px;color:var(--text);font-size:var(--zp-12);font-weight:600;line-height:1.5;white-space:nowrap}
.zd-panel :is(.zp-badge-instant,.zp-badge-ok){border-color:var(--ok-line);background:var(--ok-bg);color:var(--ok-ink)}
.zd-panel :is(.zp-badge-apk,.zp-badge-warn){border-color:var(--warn-line);background:var(--warn-bg);color:var(--warn-ink)}
.zd-panel .zp-badge-info{border-color:var(--info-line);background:var(--info-bg);color:var(--info-ink)}
.zd-panel .zp-badge-bad{border-color:var(--bad-line);background:var(--bad-bg);color:var(--bad-ink)}
.zd-panel .zp-badge-muted{color:var(--muted)}
.zd-panel .zp-badge-lab{border-color:var(--lab-line);background:var(--lab-bg);color:var(--lab-ink)}
.zd-panel .zp-badge-prod{border-color:var(--ok-line);background:var(--ok-bg);color:var(--prod-ink)}
.zd-panel .zp-badge.zp-o-st{gap:.56em;padding:.24em .8em .24em .64em;border-color:transparent;color:var(--text);font-size:max(calc(12.5 * var(--zp)),11px);font-weight:650;vertical-align:middle}
.zd-panel .zp-o-st::before{content:"";flex:none;width:.64em;height:.64em;border-radius:50%;background:var(--st-stop)}
.zd-panel .zp-badge.zp-o-st-online{border-color:var(--st-ok-line);background:var(--st-ok-soft)}
.zd-panel .zp-o-st-online::before{background:var(--st-ok)}
.zd-panel .zp-badge:is(.zp-o-st-full,.zp-o-st-busy){border-color:var(--st-warn-line);background:var(--st-warn-soft)}
.zd-panel :is(.zp-o-st-full,.zp-o-st-busy)::before{background:var(--st-warn)}
.zd-panel .zp-badge.zp-o-st-problem{border-color:var(--st-bad-line);background:var(--st-bad-soft)}
.zd-panel .zp-o-st-problem::before{background:var(--st-bad)}
.zd-panel .zp-badge.zp-o-st-stopped{border-color:var(--st-stop-line);background:var(--st-stop-soft)}
.zd-panel .zp-badge.zp-o-st-installing{border-color:var(--st-info-line);background:var(--st-info-soft)}
.zd-panel .zp-o-st-installing::before{background:var(--st-info)}
.zd-panel .zp-badge:is(.zp-o-st-unknown,.zp-o-st-new){border-color:var(--line-2);background:transparent}
.zd-panel :is(.zp-o-st-unknown,.zp-o-st-new)::before{width:.48em;height:.48em;border:.16em solid var(--st-stop);background:transparent}
.zd-panel .zp-o-badge-explain{display:inline-block;margin-left:.667em;color:var(--muted);font-size:var(--zp-12);vertical-align:middle}

.zd-panel .zp-btn{display:inline-flex;align-items:center;justify-content:center;gap:.533em;min-height:2.667em;padding:0 1.067em;border:1px solid var(--line-2);border-radius:.667em;background:var(--card);color:var(--text);font-weight:600;text-align:center;transition:filter .12s ease,border-color .12s ease}
.zd-panel .zp-btn:active{filter:brightness(.96)}
.zd-panel .zp-btn:disabled{opacity:.5;cursor:not-allowed}
.zd-panel .zp-btn-primary{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}
.zd-panel .zp-btn-danger{border-color:var(--danger-line);background:var(--danger-bg);color:var(--bad-ink)}
.zd-panel .zp-btn-prod{border-color:var(--prod);background:var(--ok-bg);color:var(--prod-btn)}
.zd-panel .zp-btn-ghost{background:transparent}
.zd-panel .zp-btn-sm{min-height:2.462em;padding:0 .769em;border-radius:.615em;font-size:calc(13 * var(--zp))}
.zd-panel .zp-icon-btn{display:inline-grid;place-items:center;min-width:2.667em;min-height:2.667em;border-radius:.667em;color:var(--text)}

/* forms */
.zd-panel .zp-field{display:grid;grid-template-columns:minmax(12em,18.667em) 1fr;gap:.4em 1.2em;padding:.933em 0;border-top:1px solid var(--line)}
.zd-panel .zp-field:first-child{border-top:0}
.zd-panel .zp-field.zp-is-changed{padding-left:.8em;box-shadow:inset .2em 0 0 var(--accent)}
.zd-panel .zp-field-label{font-weight:600}
.zd-panel .zp-field-help{margin-top:.154em;color:var(--muted);font-size:calc(13 * var(--zp))}
.zd-panel .zp-field-meta{display:flex;flex-wrap:wrap;gap:.4em;margin-top:.4em}
.zd-panel .zp-field-error{margin-top:.308em;color:var(--bad);font-size:calc(13 * var(--zp))}
.zd-panel .zp-input{width:100%;max-width:37.333em;min-height:2.667em;padding:.533em .8em;border:1px solid var(--line-2);border-radius:.667em;background:var(--input);color:var(--text);font:inherit}
.zd-panel .zp-input::placeholder{color:var(--placeholder);opacity:1}
.zd-panel textarea.zp-input{min-height:6.4em;resize:vertical}
.zd-panel .zp-input:focus{outline:max(2px,.133em) solid var(--focus);outline-offset:max(2px,.133em)}
.zd-panel .zp-switch{display:inline-flex;align-items:center;gap:.667em;cursor:pointer}
.zd-panel .zp-switch input{flex:none;width:2.933em;height:1.6em;margin:0;accent-color:var(--accent)}
.zd-panel .zp-form-row>label{display:block;margin-bottom:.4em;font-weight:600}
.zd-panel .zp-form-row .zp-field-help{margin-top:.462em}
.zd-panel .zp-savebar{position:sticky;bottom:0;z-index:10;display:flex;flex-wrap:wrap;align-items:center;gap:.667em;margin:1.067em -1.067em -1.067em;padding:.8em 1.067em;border-top:1px solid var(--line);border-radius:0 0 .8em .8em;background:var(--bg-2)}

/* tables (cards at 700px or less, labels from data-th) */
.zd-panel .zp-table-wrap{overflow-x:auto}
.zd-panel .zp-table{width:100%;border-collapse:collapse}
.zd-panel .zp-table :is(th,td){padding:.667em .533em;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.zd-panel .zp-table th{padding:.833em .667em;border-top:0;color:var(--muted);font-size:var(--zp-12);font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
.zd-panel .zp-o-cards th[scope="row"]{padding:.667em .533em;border-top:1px solid var(--line);color:var(--text);font-size:inherit;font-weight:600;letter-spacing:normal;text-transform:none;white-space:normal}
.zd-panel .zp-o-cards tbody tr:first-child th[scope="row"]{border-top:0}

/* ---------- owner components (owner.css) ---------- */
.zd-panel .zp-o-status{display:grid;gap:1.067em;grid-template-columns:repeat(auto-fit,minmax(min(17.333em,100%),1fr));margin-bottom:1.067em}
.zd-panel .zp-o-status-tile{min-width:0;padding:.933em 1.067em;border:1px solid var(--line);border-top:.2em solid var(--line-2);border-radius:.933em;background:var(--card);box-shadow:var(--shadow)}
.zd-panel .zp-o-status-tile .zp-h3{margin:0 0 .615em;font-size:calc(13 * var(--zp));font-weight:600;letter-spacing:normal;text-transform:none}
.zd-panel .zp-o-status-tile .zp-stat{font-size:calc(22 * var(--zp));overflow-wrap:anywhere}
.zd-panel .zp-o-status-tile.zp-o-avail-now .zp-stat{font-size:calc(26 * var(--zp));font-weight:650;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.zd-panel .zp-main-in .zp-o-status-tile p{margin:calc(8 * var(--zp)) 0 0}
.zd-panel .zp-o-avail-now.zp-o-state-ok{border-top-color:var(--ok)}
.zd-panel .zp-o-avail-now.zp-o-state-warn{border-top-color:var(--warn)}
.zd-panel .zp-o-avail-now.zp-o-state-bad{border-top-color:var(--bad)}
.zd-panel .zp-o-avail-later{border-style:dashed;background:var(--bg-2)}
.zd-panel .zp-o-kpis{display:grid;gap:.8em;grid-template-columns:repeat(auto-fit,minmax(min(12.667em,100%),1fr));margin:0 0 1.067em}
.zd-panel .zp-o-kpi{min-width:0;margin:0;padding:.933em 1.067em;border:1px solid var(--line);border-radius:.933em;background:var(--card);box-shadow:var(--shadow)}
.zd-panel .zp-o-details{margin-top:.933em;padding-top:.667em;border-top:1px dashed var(--line)}
.zd-panel .zp-o-details>summary{display:flex;align-items:center;gap:.615em;min-height:3.077em;color:var(--muted);font-size:calc(13 * var(--zp));cursor:pointer}
.zd-panel .zp-o-details>summary::before{content:"";flex:none;border:.385em solid transparent;border-left-color:currentColor;transition:transform .15s ease}
.zd-panel .zp-o-details[open]>summary::before{transform:rotate(90deg)}
.zd-panel .zp-o-details[open]>summary{margin-bottom:.769em}
.zd-panel .zp-o-details ul{margin:.667em 0 0;padding-left:1.333em}
.zd-panel .zp-o-details li{margin:.2em 0;list-style:disc}
.zd-panel .zp-o-tabs{display:flex;flex-wrap:wrap;gap:.533em;margin:0 0 .933em}
.zd-panel .zp-o-tabs button{display:inline-flex;align-items:center;gap:.462em;min-height:3.077em;padding:.462em 1.077em;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--text);font-size:calc(13 * var(--zp));font-weight:600}
.zd-panel .zp-o-tabs :is([aria-current="page"],[aria-selected="true"],[aria-pressed="true"]){border-color:var(--accent);background:var(--card-2);color:var(--text)}
.zd-panel .zp-o-steps{counter-reset:zp-step}
.zd-panel .zp-o-steps>li{position:relative;padding:.8em 0 .8em 2.933em;border-bottom:1px solid var(--line)}
.zd-panel .zp-o-steps>li:last-child{border-bottom:0}
.zd-panel .zp-o-steps>li::before{counter-increment:zp-step;content:counter(zp-step);position:absolute;left:0;top:.923em;display:grid;place-items:center;width:2.154em;height:2.154em;border:1px solid var(--line-2);border-radius:999px;background:var(--bg-2);color:var(--muted);font-size:calc(13 * var(--zp));font-weight:700}
.zd-panel .zp-o-step-done::before{border-color:var(--ok);background:var(--ok-bg);color:var(--ok-ink)}
.zd-panel .zp-o-step-next::before{border-color:var(--accent);background:var(--card-2);color:var(--text)}
.zd-panel .zp-o-step-todo::before{border-color:var(--line);color:var(--muted)}
.zd-panel .zp-o-section-title{display:flex;align-items:center;gap:.769em;margin:2.154em 0 .923em;color:var(--muted);font-size:calc(13 * var(--zp));font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.zd-panel .zp-o-section-title::after{content:"";flex:1;height:1px;background:var(--line)}
.zd-panel .zp-o-section{margin:0 0 .667em;border:1px solid var(--line);border-radius:.933em;background:var(--card);box-shadow:var(--shadow)}
.zd-panel .zp-o-section>summary{display:grid;grid-template-columns:1.333em minmax(0,1fr) auto;align-items:center;gap:.8em;min-height:3.733em;padding:.8em 1.067em;color:var(--text);cursor:pointer;list-style:none}
.zd-panel .zp-o-section>summary::-webkit-details-marker{display:none}
.zd-panel .zp-o-section>summary::before{content:"";justify-self:center;margin-left:.4em;border:.4em solid transparent;border-left-color:var(--muted);transition:transform .15s ease}
.zd-panel .zp-o-section[open]>summary::before{margin:.4em 0 0;transform:rotate(90deg)}
.zd-panel .zp-o-section>summary:focus-visible{border-radius:.933em}
.zd-panel .zp-o-section-name{display:block;font-weight:650;overflow-wrap:anywhere}
.zd-panel .zp-o-section-state{display:block;color:var(--muted);font-size:calc(13 * var(--zp));overflow-wrap:anywhere}
.zd-panel .zp-o-section-body{padding:0 1.067em 1.067em}
.zd-panel .zp-o-section-body .zp-card{margin:0;padding:1.067em 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.zd-panel .zp-o-section-body .zp-card+.zp-card{margin-top:1.067em}
.zd-panel .zp-o-section-body .zp-savebar{margin:1.067em 0 0;border:1px solid var(--line);border-radius:.667em}
.zd-panel .zp-card .zp-o-section{margin-top:.8em;background:var(--bg-2);box-shadow:none}
.zd-panel .zp-card .zp-o-section>summary{min-height:2.933em;padding:.533em .8em}
.zd-panel .zp-o-callout{max-width:80ch;margin:0 0 .933em;padding:.8em .933em;border:1px solid var(--line);border-left:.267em solid var(--st-info);border-radius:.8em;background:var(--card-2)}
.zd-panel .zp-o-callout-warn{border-left-color:var(--st-warn)}
.zd-panel .zp-o-callout-ok{border-left-color:var(--st-ok)}
.zd-panel .zp-o-callout-bad{border-left-color:var(--st-bad)}

@media (hover: hover) {
  .zd-panel .zp-nav-item:hover{background:var(--card-2);color:var(--text)}
  .zd-panel .zp-o-pill:hover{border-color:var(--accent)}
  .zd-panel .zp-o-theme button:hover{color:var(--text)}
  .zd-panel .zp-icon-btn:hover{background:var(--card)}
  .zd-panel .zp-btn:hover{filter:brightness(1.12)}
  .zd-panel .zp-btn:not(.zp-btn-primary,.zp-btn-danger,.zp-btn-prod):hover{border-color:var(--line-2);background:var(--card-2)}
  .zd-panel .zp-btn:disabled:hover{filter:none}
  .zd-panel :is(.zp-a:hover,.zp-o-section>summary:hover .zp-o-section-name){text-decoration:underline}
  .zd-panel :is(.zp-quick>button,.zp-o-tabs button:not([aria-pressed="true"],[aria-current="page"])):hover{border-color:var(--line-2);background:var(--card-2)}
  .zd-panel .zp-o-details>summary:hover{color:var(--text)}
  .zd-panel .zp-table tbody tr:hover{background:var(--row-hover)}
}
@media (pointer: coarse) {
  .zd-panel .zp-btn-sm{min-height:3.077em}
  .zd-panel .zp-nav-item{min-height:2.933em}
}

/* ---------- real breakpoints on the window: 900px (60em), 780px (52em: the menu, the real 900px), 700, 600, 400px ---------- */
/* the real compact top bar at the real 900px, so the status line keeps its room; the user link 24px wide (real 18px) */
@container zp (max-width: 60em) {
  .zd-panel .zp-topbar{gap:.533em;padding:0 .533em}
  .zd-panel :is(.zp-brand-cp,.zp-user>span){display:none}
  .zd-panel .zp-user{min-width:24px}
}
@container zp (max-width: 52em) {
  .zd-panel .zp-shell{grid-template-columns:minmax(0,1fr)}
  /* in row 2 (its containing block): right under the top bar */
  .zd-panel .zp-sidebar{position:absolute;z-index:30;top:0;bottom:0;left:0;width:min(16.8em,86%);visibility:hidden;transform:translateX(-100%);box-shadow:0 0 2.667em rgba(0,0,0,.5);transition:transform .18s ease,visibility 0s linear .18s}
  .zd-panel .zp-sidebar.zp-is-open{visibility:visible;transform:none;transition:transform .18s ease}
  .zd-panel .zp-sidebar.zp-is-open~.zp-backdrop{display:block}
  .zd-panel .zp-main-in{padding:.933em 1.067em 4em}
  .zd-panel .zp-field{grid-template-columns:minmax(0,1fr)}
}
@container zp (max-width: 46.667em) {
  .zd-panel .zp-o-status{grid-template-columns:minmax(0,1fr)}
  .zd-panel .zp-o-details>summary{min-height:3.385em}
  .zd-panel .zp-o-cards :is(table,tbody,tr,td){display:block;min-width:0}
  .zd-panel .zp-o-cards thead{display:none}
  .zd-panel .zp-o-cards tr{margin-bottom:.667em;padding:.4em .667em;border:1px solid var(--line);border-radius:.667em;background:var(--bg-2)}
  .zd-panel .zp-o-cards td{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.533em;padding:.267em 0;border:0}
  .zd-panel .zp-o-cards td[data-th]::before{content:attr(data-th) "\00a0";font-weight:600}
  .zd-panel .zp-o-cards :is(td.zp-nowrap,td.zp-nowrap *){white-space:normal}
  .zd-panel .zp-o-cards th[scope="row"]{display:block;min-width:0;padding:.267em 0;border:0}
}
@container zp (max-width: 40em) {
  .zd-panel :is(.zp-o-pill,.zp-btn-text){display:none}
  .zd-panel .zp-topbar-user{gap:2px}
  .zd-panel .zp-h1{font-size:calc(20 * var(--zp))}
  .zd-panel .zp-o-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zd-panel .zp-o-status-tile.zp-o-avail-now .zp-stat{font-size:calc(22 * var(--zp))}
  .zd-panel .zp-o-section>summary{grid-template-columns:1.067em minmax(0,1fr);row-gap:.4em}
  .zd-panel .zp-o-section>summary>.zp-badge{grid-column:2;justify-self:start}
  .zd-panel .zp-o-section-body{padding:0 .8em .8em}
  .zd-panel .zp-o-theme button{padding:.333em .583em}
}
/* 400px: the labels keep their 10.5px floor, so less padding (the brand keeps its room) */
@container zp (max-width: 26.667em) {
  .zd-panel .zp-o-theme button{padding:.333em .3em;font-size:var(--zp-11)}
  .zd-panel .zp-brand{font-size:calc(15 * var(--zp))}
}
@media (forced-colors: active) {
  .zd-panel :is(.zp-nav-item.zp-is-active,.zp-o-theme [aria-pressed="true"],.zp-o-tabs [aria-pressed="true"],.zd-panel-seg[aria-pressed="true"]){outline:2px solid Highlight;outline-offset:-2px}
}

/* ---- 31-panel-daily.css ---- */
/* Interactive app demos: the control panel's every-day pages (31-panel-daily.js): VPN servers, VPN statistics, New app
   version, Users & devices, Portal. The real page CSS (owner_vpn.css, owner_vpn_stats.css, owner.css, misc.css) with the
   class names prefixed "zp-"; 1em = the real 15px, --zp = 1 real px; container "zp" = the real viewport (PANEL-API.md). */

/* ---------- owner parts these pages share (owner.css, misc.css, panel.css) ---------- */
.zd-panel .zp-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed;filter:none}
.zd-panel .zp-o-section-lead>.zp-card-head:first-child{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.zd-panel .zp-ul{margin:1em 0;padding-left:calc(40*var(--zp))}
.zd-panel .zp-ul>li{list-style:disc}
.zd-panel .zp-o-textrow,.zd-panel .zp-o-switchrow{display:flex;flex-wrap:wrap;align-items:center;gap:.667em 1.067em;padding:.8em 0;border-bottom:1px solid var(--line)}
.zd-panel .zp-o-textrow:last-child,.zd-panel .zp-o-switchrow:last-child{border-bottom:0}
.zd-panel .zp-o-textrow>label,.zd-panel .zp-o-switchrow>label{flex:1 1 14.667em;min-width:0}
.zd-panel .zp-o-textrow .zp-input{width:100%}
.zd-panel .zp-o-switchrow .zp-field-help{margin:calc(2*var(--zp)) 0 0}
.zd-panel .zp-o-legend{display:flex;flex-wrap:wrap;align-items:center;gap:.462em .769em;margin:.923em 0 0}
.zd-panel .zp-o-choice{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.667em;max-width:37.333em;margin:0 0 .533em;padding:.667em .933em;border:1px solid var(--line-2);border-radius:.667em;background:var(--card);cursor:pointer}
.zd-panel .zp-o-choice:has(input:checked){border-color:var(--accent);background:var(--card-2)}
.zd-panel .zp-o-choice input{margin:.2em .2em 0 .333em}
.zd-panel .zp-o-tag{display:inline-flex;align-items:center;padding:calc(1*var(--zp)) calc(8*var(--zp));border:1px solid var(--line);border-radius:calc(6*var(--zp));background:var(--sunken);color:var(--text-2);font-size:var(--zp-12);font-weight:600}
.zd-panel .zp-o-tag-accent{border-color:var(--accent);color:var(--text)}
.zd-panel .zp-o-story{max-width:72ch;margin:0 0 .8em;padding:calc(2*var(--zp)) 0 calc(2*var(--zp)) .933em;border-left:.2em solid var(--line-2)}
.zd-panel .zp-o-story:last-child{margin-bottom:0}
.zd-panel .zp-filter-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.8em 1.067em;margin-bottom:.8em}
.zd-panel .zp-filter-row .zp-form-row{flex:0 1 auto;min-width:0}
.zd-panel .zp-filter-row .zp-filter-grow{flex:1 1 16em}
.zd-panel .zp-pager{margin-top:.933em}
.zd-panel .zp-device-form{display:flex;flex-wrap:wrap;align-items:center;gap:.533em;min-width:14.667em;margin:0}
.zd-panel .zp-device-form .zp-input{flex:1 1 10.667em}
.zd-panel .zp-po-text{white-space:pre-line}
.zd-panel .zp-po-adr td{overflow-wrap:anywhere}
.zd-panel .zp-input.zp-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:calc(13*var(--zp))}
.zd-panel .zp-o-tv-preview{max-width:29.333em;margin:0 0 .8em;padding:.933em 1.067em;border:1px solid var(--line-2);border-radius:.8em;background:var(--bg-2)}
.zd-panel .zp-o-tv-preview p{margin:0 0 .533em}
.zd-panel .zp-o-tv-preview p:last-child{margin:0}
.zd-panel .zp-o-tv-preview .zp-o-tv-preview-title{font-size:calc(16*var(--zp));font-weight:650}

/* ---------- VPN servers (owner_vpn.css; the fleet card from owner_vpn_stats.css) ---------- */
.zd-panel .zp-vpn-fleet-grid{display:grid;gap:.8em;grid-template-columns:repeat(auto-fit,minmax(min(14.667em,100%),1fr));margin:0 0 .8em}
.zd-panel .zp-vpn-fleet-grid>div{min-width:0;padding:.8em .933em;border:1px solid var(--line);border-radius:.8em;background:var(--bg-2)}
.zd-panel .zp-vpn-fleet-grid dt{color:var(--muted);font-size:calc(13*var(--zp));font-weight:600;opacity:.7}
.zd-panel .zp-vpn-fleet-grid dd{margin:calc(2*var(--zp)) 0 0;overflow-wrap:anywhere}
.zd-panel .zp-vpn-fleet-grid strong{font-size:calc(24*var(--zp));font-weight:650;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.zd-panel .zp-vpn-fleet-grid .zp-small{display:block;margin-top:calc(2*var(--zp))}
.zd-panel .zp-vpn-live-note{display:flex;flex-wrap:wrap;gap:.308em .923em}
.zd-panel .zp-vpn-warn{margin:calc(4*var(--zp)) 0;color:var(--warn-ink)}
.zd-panel .zp-vpn-pool{margin:.8em 0;border-color:var(--line-2);border-radius:.8em;background:var(--bg-2);box-shadow:none}
.zd-panel .zp-vpn-pool>.zp-card-head{padding-bottom:.667em;border-bottom:1px solid var(--line)}
.zd-panel .zp-vpn-pool .zp-card-head .zp-h3{margin:0;color:var(--text);font-size:1em;letter-spacing:normal;text-transform:none}
.zd-panel .zp-vpn-server{display:grid;grid-template-columns:9.067em minmax(0,1fr) minmax(10em,14em) auto;column-gap:1.067em;row-gap:calc(2*var(--zp));align-items:center;padding:.8em 0;border-top:1px solid var(--line)}
.zd-panel .zp-vpn-srv-st{grid-area:1/1}
.zd-panel .zp-vpn-line{grid-area:1/2;display:flex;flex-wrap:wrap;align-items:baseline;gap:.4em .667em;margin:0}
.zd-panel .zp-vpn-line .zp-a,.zd-panel .zp-vpn-word{font-weight:600}
.zd-panel .zp-vpn-srv-cap{grid-area:1/3;min-width:0}
.zd-panel .zp-vpn-actions{grid-area:1/4;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.533em}
.zd-panel .zp-vpn-server>p:not(.zp-vpn-line){grid-column:2/-1;margin:calc(2*var(--zp)) 0 0}
.zd-panel .zp-vpn-dot{display:inline-block;flex:none;width:.667em;height:.667em;margin-right:.267em;border:1px solid var(--line-2);border-radius:50%;background:var(--muted)}
.zd-panel .zp-dot-green{border-color:var(--ok);background:var(--ok)}
.zd-panel .zp-dot-red{border-color:var(--bad);background:var(--bad)}
.zd-panel .zp-dot-grey{border-color:var(--line-2);background:var(--line-2)}
.zd-panel .zp-vpn-dot-quiet{visibility:hidden}
.zd-panel .zp-vpn-more{position:relative;display:inline-block}
.zd-panel .zp-vpn-more>summary{display:inline-flex;list-style:none}
.zd-panel .zp-vpn-more>summary::-webkit-details-marker{display:none}
.zd-panel .zp-vpn-more-body{position:absolute;top:calc(100% + 4*var(--zp));right:0;z-index:5;display:flex;flex-wrap:wrap;gap:.533em;min-width:14em;padding:.667em;border:1px solid var(--line);border-radius:.667em;background:var(--card-2);box-shadow:var(--shadow)}
.zd-panel .zp-o-meter{display:inline-grid;grid-template-columns:minmax(4.267em,9.333em) auto;align-items:center;gap:.267em .667em;min-width:0;max-width:100%}
.zd-panel .zp-o-meter-bar{display:block;height:.533em;border:1px solid var(--line);border-radius:999px;background:var(--sunken);overflow:hidden}
.zd-panel .zp-o-meter-bar>i{display:block;height:100%;border-radius:999px;background:var(--st-ok)}
.zd-panel .zp-o-meter-full .zp-o-meter-bar>i{background:var(--st-warn)}
.zd-panel .zp-o-meter-txt{font-size:calc(13*var(--zp));font-variant-numeric:tabular-nums;white-space:nowrap}
.zd-panel .zp-vpn-choose{display:grid;gap:1.067em;grid-template-columns:repeat(auto-fit,minmax(min(20em,100%),1fr));margin-bottom:1.067em}
.zd-panel .zp-vpn-choose>.zp-card{margin-bottom:0}
.zd-panel .zp-vpn-choose>.zp-vpn-tile:first-child{border-top:.2em solid var(--accent)}
.zd-panel .zp-vpn-tile .zp-card-head{gap:.667em}
.zd-panel .zp-vpn-tile p{max-width:52ch}
/* the edit form: the notes under its save bar stay readable (the bar ends the card in every other form) */
.zd-panel .zp-vpn-gw>.zp-savebar{margin-bottom:.8em;border-radius:0}

/* ---------- VPN statistics (owner_vpn_stats.css, the "vs-" part) ---------- */
.zd-panel .zp-vs-root{min-width:0}
.zd-panel :where(.zp-vs-root) :where(p){margin:0}
.zd-panel :where(.zp-vs-root) :where(h4){margin:0;font-size:calc(20*var(--zp));font-weight:700;line-height:1.25;letter-spacing:-.01em}
.zd-panel :where(.zp-vs-root) :where(h5){display:inline-flex;align-items:center;gap:.533em;margin:0;color:var(--text);font-size:1em;font-weight:650;line-height:1.3}
.zd-panel .zp-vs-root h5 .zp-icon{color:var(--muted)}
.zd-panel .zp-vs-sub{color:var(--muted);font-size:calc(14*var(--zp));font-weight:500;letter-spacing:normal}
.zd-panel .zp-vs-note{color:var(--muted);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-live{display:inline-flex;align-items:center;gap:.615em;min-height:2.462em;padding:.308em .923em;border:1px solid var(--line-2);border-radius:999px;background:var(--card);color:var(--text);font-size:calc(13*var(--zp));font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.zd-panel .zp-vs-live-dot{flex:none;width:.615em;height:.615em;border-radius:50%;background:var(--st-ok)}
.zd-panel .zp-vs-attn-list,.zd-panel .zp-vs-attn-items{display:grid;gap:.667em}
.zd-panel .zp-vs-attn-list{margin:0 0 1.067em}
.zd-panel .zp-vs-attn{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.4em .933em;padding:.933em 1.067em;border:1px solid var(--st-bad-line);border-radius:.933em;background:var(--st-bad-soft)}
.zd-panel .zp-vs-attn-icon{width:1.6em;height:1.6em;color:var(--st-bad)}
.zd-panel .zp-vs-attn-body{min-width:0}
.zd-panel .zp-vs-attn-title{color:var(--bad-ink);font-weight:650;overflow-wrap:anywhere}
.zd-panel .zp-vs-attn-text{overflow-wrap:anywhere}
.zd-panel .zp-vs-attn-btn{background:transparent}
.zd-panel .zp-vs-strip{display:flex;flex-wrap:wrap;gap:.533em 0;margin:0 0 1.067em}
.zd-panel .zp-vs-strip>div{min-width:0;margin:0 1.467em 0 0;padding:0 1.467em 0 0;border-right:1px solid var(--line)}
.zd-panel .zp-vs-strip>div:last-child{margin-right:0;padding-right:0;border-right:0}
.zd-panel .zp-vs-strip dt{color:var(--muted);font-size:calc(12.5*var(--zp))}
.zd-panel .zp-vs-strip dd{font-size:calc(16*var(--zp));font-weight:650;overflow-wrap:anywhere}
.zd-panel .zp-vs-strip-val{font-variant-numeric:tabular-nums}
.zd-panel .zp-vs-strip-note{display:block;color:var(--text-2);font-size:calc(12.5*var(--zp));font-weight:600}
.zd-panel .zp-vs-strip-note:empty{display:none}
.zd-panel .zp-vs-strip-note.zp-is-bad{color:var(--bad-ink)}
.zd-panel .zp-vs-cards{display:grid;gap:.933em;grid-template-columns:repeat(auto-fit,minmax(min(20em,100%),1fr));margin:0 0 1.067em}
.zd-panel .zp-vs-card{position:relative;display:grid;align-content:start;gap:.667em;min-width:0;padding:1.067em 1.2em;border:1px solid var(--line);border-radius:.933em;background:var(--card);overflow-x:clip}
.zd-panel .zp-vs-card.zp-is-selected{border-color:var(--info);box-shadow:inset 0 0 0 1px var(--info);background:var(--card-2)}
.zd-panel .zp-vs-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:.267em .533em;min-width:0}
.zd-panel .zp-vs-card-ic{color:var(--muted)}
.zd-panel .zp-vs-card-link{min-width:0;color:var(--text);font-size:calc(17*var(--zp));font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.zd-panel .zp-vs-card-link::after{content:"";position:absolute;inset:0;border-radius:.824em}
.zd-panel .zp-vs-card-link:focus-visible{outline:0}
.zd-panel .zp-vs-card-link:focus-visible::after{outline:2px solid var(--focus);outline-offset:-2px}
.zd-panel .zp-vs-card-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:calc(2*var(--zp)) calc(8*var(--zp));min-width:0;margin-left:auto;font-size:calc(13*var(--zp));text-align:right}
.zd-panel .zp-vs-card .zp-badge.zp-o-st{gap:.462em;padding:0;border:0;background:transparent;color:var(--text-2);font-size:calc(13*var(--zp));font-weight:600}
.zd-panel .zp-vs-card .zp-badge.zp-o-st-online{color:var(--ok-ink)}
.zd-panel .zp-vs-card .zp-badge.zp-o-st-problem{color:var(--bad-ink)}
.zd-panel .zp-vs-card .zp-badge.zp-o-st-installing{color:var(--info-ink)}
.zd-panel .zp-vs-card .zp-vpn-st-word{flex-basis:100%;color:var(--text-2);overflow-wrap:anywhere}
.zd-panel .zp-vs-card .zp-vpn-st-word .zp-vpn-dot{display:none}
.zd-panel .zp-vs-card-speed{display:flex;flex-wrap:wrap;align-items:baseline;gap:calc(2*var(--zp)) calc(8*var(--zp));min-width:0}
.zd-panel .zp-vs-card-big{font-size:calc(30*var(--zp));font-weight:650;line-height:1.1;letter-spacing:-.02em}
.zd-panel .zp-vs-card-of{color:var(--text-2);font-size:calc(16*var(--zp))}
.zd-panel .zp-vs-card-used{margin-left:auto;color:var(--text-2);font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-card-of:empty,.zd-panel .zp-vs-card-used:empty{display:none}
.zd-panel .zp-vs-card .zp-vs-meter{margin:calc(2*var(--zp)) 0}
.zd-panel .zp-vs-setcap{position:relative;z-index:1;justify-self:start;font-size:calc(13*var(--zp));font-weight:600}
.zd-panel .zp-vs-card-facts{display:flex;flex-wrap:wrap;gap:calc(4*var(--zp)) calc(18*var(--zp));color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-edit{position:relative;z-index:1;display:inline-flex;flex:none;align-items:center;justify-content:center;width:2.133em;height:2.133em;border-radius:.533em;color:var(--muted)}
.zd-panel .zp-vs-edit:is(:hover,:focus-visible){background:var(--card-2);color:var(--text)}
.zd-panel .zp-vs-edit:focus-visible{outline-offset:1px}
.zd-panel .zp-vs-edit-label{position:absolute;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.zd-panel .zp-vs-edit:is(:hover,:focus-visible) .zp-vs-edit-label{top:50%;left:calc(100% + 6*var(--zp));z-index:2;width:auto;height:auto;max-width:calc(256*var(--zp));margin:0;padding:calc(2*var(--zp)) calc(8*var(--zp));border:1px solid var(--line-2);border-radius:calc(6*var(--zp));background:var(--card);box-shadow:var(--shadow);color:var(--text);font-size:calc(12.5*var(--zp));font-weight:600;line-height:1.5;text-overflow:ellipsis;clip-path:none;transform:translateY(-50%);pointer-events:none}
.zd-panel .zp-vs-meter{display:block;height:calc(6*var(--zp));border:1px solid var(--line);border-radius:999px;background:var(--sunken);overflow:hidden}
.zd-panel .zp-vs-meter>i{display:block;height:100%;border-radius:999px;background:var(--series);transition:width .35s ease}
.zd-panel .zp-vs-meter.zp-is-plain>i{background:var(--muted)}
.zd-panel .zp-vs-meter.zp-is-warn>i{background:var(--st-warn)}
.zd-panel .zp-vs-meter.zp-vs-meter-lg{height:calc(10*var(--zp))}
.zd-panel .zp-vs-detail{padding:1.333em;overflow-x:clip}
.zd-panel .zp-vs-detail:focus{outline:0}
.zd-panel .zp-vs-d-head{display:flex;flex-wrap:wrap;align-items:center;gap:.4em .8em;margin-bottom:1.067em}
.zd-panel .zp-vs-d-head h4{min-width:0;overflow-wrap:anywhere}
.zd-panel .zp-vs-d-meta{display:inline-flex;align-items:center;gap:calc(6*var(--zp));margin-left:auto;color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-d-meta .zp-icon{width:calc(16*var(--zp));height:calc(16*var(--zp));color:var(--muted)}
.zd-panel .zp-vs-d-links{display:flex;flex-wrap:wrap;gap:calc(4*var(--zp)) calc(16*var(--zp));font-size:calc(13*var(--zp));font-weight:600}
.zd-panel .zp-vs-d-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:1.067em;margin-bottom:1.067em}
.zd-panel .zp-vs-panel{min-width:0;padding:1.333em;border:1px solid var(--line);border-radius:.933em;background:var(--bg-2)}
.zd-panel .zp-vs-tp{background:linear-gradient(var(--series-wash),var(--series-wash)),var(--bg-2)}
.zd-panel .zp-vs-p-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4em .8em;margin-bottom:.667em}
.zd-panel .zp-vs-state{display:inline-flex;align-items:center;gap:calc(6*var(--zp));color:var(--text-2);font-size:calc(13*var(--zp));font-weight:600;white-space:nowrap}
.zd-panel .zp-vs-state-dot{flex:none;width:calc(8*var(--zp));height:calc(8*var(--zp));border-radius:50%;background:var(--st-stop)}
.zd-panel .zp-vs-state.zp-is-ok{color:var(--ok-ink)}
.zd-panel .zp-is-ok>.zp-vs-state-dot{background:var(--st-ok)}
.zd-panel .zp-vs-state.zp-is-warn{color:var(--warn-ink)}
.zd-panel .zp-is-warn>.zp-vs-state-dot{background:var(--st-warn)}
.zd-panel .zp-vs-tp-now{display:flex;flex-wrap:wrap;align-items:baseline;gap:calc(2*var(--zp)) calc(12*var(--zp));margin:.4em 0 .267em}
.zd-panel .zp-vs-tp-big{font-size:calc(64*var(--zp));font-weight:700;line-height:1;letter-spacing:-.035em}
.zd-panel .zp-vs-tp-of{color:var(--text-2);font-size:calc(28*var(--zp));font-weight:500}
.zd-panel .zp-vs-tp .zp-vs-tp-sub{margin-bottom:calc(18*var(--zp));color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-split{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.667em 1.067em;margin-top:.933em}
.zd-panel .zp-vs-fig{display:grid;gap:calc(2*var(--zp));min-width:0}
.zd-panel .zp-vs-fig strong{font-size:calc(24*var(--zp));font-weight:650;letter-spacing:-.01em}
.zd-panel .zp-vs-fig span{color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-fig span:empty{display:none}
.zd-panel .zp-vs-fig-end{justify-items:end;text-align:right}
.zd-panel .zp-vs-rule{margin-top:calc(16*var(--zp));padding-top:calc(14*var(--zp));border-top:1px solid var(--line)}
.zd-panel .zp-vs-tp-rx{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:calc(6*var(--zp)) calc(16*var(--zp));font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-rx{display:inline-flex;flex-wrap:wrap;align-items:center;gap:calc(4*var(--zp)) calc(8*var(--zp))}
.zd-panel .zp-vs-rx .zp-icon{width:calc(16*var(--zp));height:calc(16*var(--zp));color:var(--muted)}
.zd-panel .zp-vs-callout{padding:calc(12*var(--zp)) calc(14*var(--zp));border:1px solid var(--line);border-left:calc(4*var(--zp)) solid var(--st-info);border-radius:calc(12*var(--zp));background:var(--card-2);font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-callout p+p{margin-top:calc(6*var(--zp))}
.zd-panel .zp-vs-callout .zp-a{font-weight:600}
.zd-panel .zp-vs-res-row{display:flex;align-items:baseline;gap:.667em;margin-top:.933em}
.zd-panel .zp-vs-p-head+.zp-vs-res-row{margin-top:.267em}
.zd-panel .zp-vs-res-name{font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-res-row strong{min-width:3.4em;margin-left:auto;font-weight:650;text-align:right}
.zd-panel .zp-vs-res-abs{margin-left:auto;color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-res-abs+strong{margin-left:0}
.zd-panel .zp-vs-res .zp-vs-meter{margin-top:.533em}
.zd-panel .zp-vs-kv{display:block;margin:1.067em 0 0}
.zd-panel .zp-vs-kv>div{display:flex;justify-content:space-between;gap:.667em;padding:.667em 0;border-top:1px solid var(--line)}
.zd-panel .zp-vs-kv dt{color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-kv dd{font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.zd-panel .zp-vs-res-line{display:flex;align-items:flex-start;gap:calc(8*var(--zp));margin-top:calc(12*var(--zp));color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-res-line .zp-icon{width:calc(16*var(--zp));height:calc(16*var(--zp));margin-top:1px;color:var(--st-ok)}
.zd-panel .zp-vs-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.933em;margin:0 0 1.333em}
.zd-panel .zp-vs-tile{display:flex;flex-direction:column;gap:.533em;min-width:0;padding:1.067em 1.2em;border:1px solid var(--line);border-radius:.933em;background:var(--bg-2)}
.zd-panel .zp-vs-tile dt{display:flex;align-items:flex-start;justify-content:space-between;gap:calc(8*var(--zp));color:var(--text-2);font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-tile dt .zp-icon{color:var(--muted)}
.zd-panel .zp-vs-t-val{display:flex;flex-wrap:wrap;align-items:baseline;gap:calc(2*var(--zp)) calc(8*var(--zp))}
.zd-panel .zp-vs-t-val strong{font-size:calc(32*var(--zp));font-weight:650;line-height:1.15;letter-spacing:-.02em}
.zd-panel .zp-vs-t-val span{color:var(--text-2)}
.zd-panel .zp-vs-hint{display:block;margin-top:calc(8*var(--zp));color:var(--muted);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-hint.zp-is-warn{color:var(--warn-ink)}
.zd-panel .zp-vs-sec{padding-top:1.2em;border-top:1px solid var(--line)}
.zd-panel .zp-vs-sec-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.4em .8em;margin-bottom:.8em}
.zd-panel .zp-vs-quality{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.933em 1.6em}
.zd-panel .zp-vs-quality dt{color:var(--text-2);font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-quality dd{margin-top:.267em}
.zd-panel .zp-vs-q-val strong{font-size:calc(30*var(--zp));font-weight:650;letter-spacing:-.02em}
.zd-panel .zp-vs-q-val span{color:var(--text-2)}
.zd-panel .zp-vs-quality .zp-vs-hint{margin-top:calc(2*var(--zp))}
.zd-panel .zp-vs-events{margin-top:1.2em;border-top:1px solid var(--line)}
.zd-panel .zp-vs-events>summary{display:flex;align-items:center;gap:.667em;min-height:3.2em;padding:.533em 0;font-weight:600;list-style:none;cursor:pointer}
.zd-panel .zp-vs-events>summary::-webkit-details-marker{display:none}
.zd-panel .zp-vs-events>summary .zp-icon{color:var(--muted)}
.zd-panel .zp-vs-events>summary:focus-visible{border-radius:.533em}
.zd-panel .zp-vs-ev-count{margin-left:auto;color:var(--text-2);font-size:calc(13*var(--zp));font-weight:500}
.zd-panel .zp-vs-chev{transition:transform .15s ease}
.zd-panel .zp-vs-events[open] .zp-vs-chev{transform:rotate(180deg)}
.zd-panel .zp-vs-ev{display:grid;grid-template-columns:8.6em .714em minmax(0,1fr);align-items:baseline;gap:.286em .857em;padding:.714em 0;border-top:1px solid var(--line);font-size:calc(14*var(--zp))}
.zd-panel .zp-vs-ev-time{color:var(--text-2);font-size:calc(13*var(--zp));font-variant-numeric:tabular-nums}
.zd-panel .zp-vs-ev-dot{align-self:center;width:calc(8*var(--zp));height:calc(8*var(--zp));border-radius:50%;background:var(--st-stop)}
.zd-panel .zp-vs-ev-ok .zp-vs-ev-dot{background:var(--st-ok)}
.zd-panel .zp-vs-ev-info .zp-vs-ev-dot{background:var(--st-info)}
.zd-panel .zp-vs-ev-warn .zp-vs-ev-dot{background:var(--st-warn)}
.zd-panel .zp-vs-ev-bad .zp-vs-ev-dot{background:var(--st-bad)}
.zd-panel .zp-vs-ev-text{overflow-wrap:anywhere}
.zd-panel .zp-vs-ev-empty{padding:calc(10*var(--zp)) 0;border-top:1px solid var(--line)}
.zd-panel .zp-vs-ev-more{padding:calc(10*var(--zp)) 0 calc(2*var(--zp));font-size:calc(13*var(--zp));font-weight:600}
.zd-panel .zp-vs-history{padding:1.333em}
.zd-panel .zp-vs-h-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8em;margin-bottom:1.067em}
.zd-panel .zp-vs-h-head h4{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2em .5em}
.zd-panel .zp-vs-h-controls{display:flex;flex-wrap:wrap;gap:.667em}
.zd-panel .zp-vpn-ranges{display:flex;flex-wrap:wrap;overflow:hidden;border:1px solid var(--line-2);border-radius:.667em;background:var(--card)}
.zd-panel .zp-vpn-ranges .zp-btn{min-height:2.615em;border:0;border-radius:0}
.zd-panel .zp-vpn-ranges .zp-btn+.zp-btn{border-left:1px solid var(--line)}
.zd-panel .zp-vpn-ranges .zp-btn[aria-pressed="true"]{background:var(--card-2);color:var(--text);box-shadow:inset 0 calc(-2*var(--zp)) 0 var(--accent)}
.zd-panel .zp-vpn-ranges .zp-btn-ghost{color:var(--text-2)}
.zd-panel .zp-vpn-ranges .zp-btn:focus-visible{outline-offset:-2px}
.zd-panel .zp-vs-charts{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);gap:.933em}
.zd-panel .zp-vs-chart{position:relative;min-width:0;margin:0;padding:1.067em 1.2em .933em;border:1px solid var(--line);border-radius:.933em;background:var(--bg-2)}
.zd-panel .zp-vs-c-title{color:var(--text-2);font-size:calc(14*var(--zp));font-weight:600}
.zd-panel .zp-vs-c-now{display:flex;flex-wrap:wrap;align-items:baseline;gap:calc(2*var(--zp)) calc(8*var(--zp));margin:.4em 0 .667em}
.zd-panel .zp-vs-c-now strong{font-size:calc(28*var(--zp));font-weight:650;letter-spacing:-.02em}
.zd-panel .zp-vs-c-now span{color:var(--text-2)}
.zd-panel .zp-vs-c-unit{display:block;margin-bottom:calc(6*var(--zp));color:var(--muted);font-size:var(--zp-12)}
.zd-panel .zp-vpn-plot{position:relative;padding-left:calc(44*var(--zp))}
.zd-panel .zp-vpn-y{position:absolute;left:0;width:calc(38*var(--zp));color:var(--muted);font-size:var(--zp-11);line-height:1;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;transform:translateY(-50%)}
.zd-panel .zp-vpn-y-top{top:calc(2*var(--zp))}
.zd-panel .zp-vpn-y-mid{top:50%}
.zd-panel .zp-vpn-y-0{top:calc(100% - 2*var(--zp))}
.zd-panel .zp-vpn-chart-svg{display:block;width:100%;height:8em;overflow:visible;background-image:linear-gradient(to bottom,var(--grid) 1px,transparent 1px);background-size:100% 50%}
.zd-panel .zp-vpn-chart-line{fill:none;stroke:var(--series);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.zd-panel .zp-vpn-chart-from{stroke:var(--muted);stroke-width:1.75;stroke-dasharray:5 4}
.zd-panel .zp-vpn-chart-area{fill:var(--series);fill-opacity:.1;stroke:none}
.zd-panel .zp-vpn-chart-cap{stroke:var(--text-2);stroke-width:1;opacity:.75;vector-effect:non-scaling-stroke}
.zd-panel .zp-vpn-chart-base{stroke:var(--line-2);stroke-width:1;vector-effect:non-scaling-stroke}
.zd-panel .zp-vs-x-axis{display:flex;justify-content:space-between;gap:calc(8*var(--zp));margin-top:calc(6*var(--zp));padding-left:calc(44*var(--zp));color:var(--muted);font-size:var(--zp-12);font-variant-numeric:tabular-nums}
.zd-panel .zp-vs-c-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:calc(6*var(--zp)) calc(14*var(--zp));margin-top:calc(10*var(--zp));color:var(--text-2);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-legend{display:flex;flex-wrap:wrap;gap:calc(4*var(--zp)) calc(14*var(--zp))}
.zd-panel .zp-vs-legend li{display:inline-flex;align-items:center;gap:calc(6*var(--zp))}
.zd-panel .zp-vs-key{display:inline-block;flex:none;width:calc(16*var(--zp));height:0;border-top:2px solid var(--series)}
.zd-panel .zp-vs-key.zp-vs-key-from{border-top:2px dashed var(--muted)}
.zd-panel .zp-vs-key.zp-vs-key-cap{border-top:1px solid var(--text-2)}
.zd-panel .zp-vs-c-peak{margin-left:auto}
.zd-panel .zp-vs-c-peak strong{color:var(--text);font-weight:650}
.zd-panel .zp-vs-chart .zp-vs-cap{margin-top:calc(8*var(--zp))}
.zd-panel .zp-vs-notes{display:grid;gap:calc(6*var(--zp));margin:calc(4*var(--zp)) 0 calc(24*var(--zp));padding-top:calc(14*var(--zp));border-top:1px solid var(--line);color:var(--muted);font-size:calc(13*var(--zp))}
.zd-panel .zp-vs-notes p{max-width:100ch}
.zd-panel .zp-vs-how>summary{padding:calc(8*var(--zp)) 0;color:var(--text-2);font-weight:600;cursor:pointer}
.zd-panel .zp-vs-how ul{display:grid;gap:calc(4*var(--zp));max-width:100ch;margin:calc(6*var(--zp)) 0 0;padding-left:calc(18*var(--zp))}
.zd-panel .zp-vs-how li{list-style:disc}

/* ---------- touch, motion ---------- */
@media (pointer: coarse) {
  .zd-panel .zp-vpn-ranges .zp-btn{min-height:3.231em}
  .zd-panel .zp-vs-edit{width:2.667em;height:2.667em}
  .zd-panel .zp-vs-setcap,.zd-panel .zp-vs-d-links .zp-a,.zd-panel .zp-vs-ev-more .zp-a,.zd-panel .zp-vs-callout .zp-a{display:inline-flex;align-items:center;min-height:calc(40*var(--zp))}
}
@media (prefers-reduced-motion: reduce) {
  .zd-panel .zp-vs-meter>i,.zd-panel .zp-vs-chev{transition:none}
}

/* ---------- the server list (vpn_server_line.html) by the width of the page column (container zpc): the real one is a
   row at 1100px and more, the meter goes under the name below that and it stacks at 700px; the demo window is narrower
   than any real screen with the menu, so the same steps follow the column (801px, 601px) ---------- */
@container zpc (max-width: 53.333em) {
  .zd-panel .zp-vpn-server{grid-template-columns:8.8em minmax(0,1fr) auto}
  .zd-panel .zp-vpn-actions{grid-column:3}
  .zd-panel .zp-vpn-srv-cap{grid-area:2/2}
}
@container zpc (max-width: 40em) {
  .zd-panel .zp-vpn-server{display:block}
  .zd-panel .zp-vpn-srv-st{margin-bottom:calc(4*var(--zp))}
  .zd-panel .zp-vpn-line{margin:0 0 calc(4*var(--zp))}
  .zd-panel .zp-vpn-srv-cap{margin:calc(4*var(--zp)) 0}
  .zd-panel .zp-vpn-actions{margin-top:calc(8*var(--zp))}
  .zd-panel .zp-vpn-actions .zp-btn{flex:1 1 auto}
  .zd-panel .zp-vpn-more,.zd-panel .zp-vpn-more>summary{display:block;width:100%}
  .zd-panel .zp-vpn-more-body{position:static;flex-direction:column;align-items:stretch;margin-top:calc(8*var(--zp));box-shadow:none}
}

/* a wide table (.zp-fit: the devices, what the televisions have) as the real cards of 700px while the column is
   narrower than the real table needs (900px) */
@container zpc (max-width: 60em) {
  .zd-panel .zp-fit .zp-table :is(table,tbody,tr,td){display:block;min-width:0}
  .zd-panel .zp-fit .zp-table thead{display:none}
  .zd-panel .zp-fit .zp-table tr{margin-bottom:.667em;padding:.4em .667em;border:1px solid var(--line);border-radius:.667em;background:var(--bg-2)}
  .zd-panel .zp-fit .zp-table td{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.533em;padding:.267em 0;border:0}
  .zd-panel .zp-fit .zp-table td[data-th]::before{content:attr(data-th) "\00a0";font-weight:600}
  .zd-panel .zp-fit .zp-table td.zp-nowrap{white-space:normal}
  .zd-panel .zp-fit .zp-table th[scope="row"]{display:block;min-width:0;padding:.267em 0;border:0}
}

/* ---------- the real breakpoints, on the window (container zp, em = real px / 15) ---------- */
@container zp (max-width: 90em) {
  .zd-panel .zp-vs-charts{grid-template-columns:minmax(0,1fr)}
}
@container zp (max-width: 83.333em) {
  .zd-panel .zp-vs-d-grid{grid-template-columns:minmax(0,1fr)}
  .zd-panel .zp-vs-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container zp (max-width: 50.667em) {
  .zd-panel .zp-vs-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.667em .933em}
  .zd-panel .zp-vs-strip>div{margin:0;padding:0;border:0}
  .zd-panel .zp-vs-quality{grid-template-columns:minmax(0,1fr)}
}
@container zp (max-width: 46.667em) {
  .zd-panel .zp-vpn-fleet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zd-panel .zp-vpn-fleet-grid strong{font-size:calc(20*var(--zp))}
  .zd-panel .zp-vpn-choose{grid-template-columns:minmax(0,1fr)}
  .zd-panel .zp-vpn-ranges{width:100%}
  .zd-panel .zp-vpn-ranges .zp-btn{flex:1 1 auto}
}
@container zp (max-width: 40em) {
  .zd-panel .zp-vs-attn{grid-template-columns:auto minmax(0,1fr)}
  .zd-panel .zp-vs-attn-btn{grid-column:2;justify-self:start}
  .zd-panel .zp-vs-card{padding:.933em 1.067em}
  .zd-panel .zp-vs-detail,.zd-panel .zp-vs-history,.zd-panel .zp-vs-panel{padding:1.067em}
  .zd-panel .zp-vs-tp-big{font-size:calc(46*var(--zp))}
  .zd-panel .zp-vs-tp-of{font-size:calc(22*var(--zp))}
  .zd-panel .zp-vs-d-meta{margin-left:0}
  .zd-panel .zp-vs-h-controls,.zd-panel .zp-vs-h-controls .zp-vpn-ranges{width:100%}
  .zd-panel .zp-vs-h-controls .zp-btn{flex:1 1 0;padding:0 calc(6*var(--zp))}
  .zd-panel .zp-vs-chart{padding:.933em .933em .8em}
  .zd-panel .zp-vs-ev{grid-template-columns:.714em minmax(0,1fr);grid-template-areas:"dot time" ". text";gap:calc(2*var(--zp)) calc(10*var(--zp))}
  .zd-panel .zp-vs-ev-time{grid-area:time}
  .zd-panel .zp-vs-ev-dot{grid-area:dot}
  .zd-panel .zp-vs-ev-text{grid-area:text}
}
@container zp (max-width: 28em) {
  .zd-panel .zp-vs-tiles{grid-template-columns:minmax(0,1fr)}
}
@container zp (max-width: 25.333em) {
  .zd-panel .zp-vpn-fleet-grid{grid-template-columns:minmax(0,1fr)}
}

/* ---- 32-panel-app.css ---- */
/* Interactive app demos: the control panel's "Your app" pages (32-panel-app.js): Branding & images, Texts, Show / hide,
   Features & defaults, Messages. The real owner.css, sections.css and misc.css parts these pages use, with the shell's
   prefix "zp-" under .zd-panel; real px are calc(n * var(--zp)) (1 real px, PANEL-API.md). The shell has the rest. */

/* ---------- groups (details.card): Branding loads sections.css (17px summary, a glyph, a line under it when open);
   Texts, Show / hide and Features keep the browser's own disclosure summary ---------- */
.zd-panel .zp-br-form>details.zp-card>summary{display:flex;flex-wrap:wrap;align-items:center;gap:calc(8*var(--zp));min-height:calc(40*var(--zp));cursor:pointer;font-size:calc(17*var(--zp));font-weight:600;list-style:none}
.zd-panel .zp-br-form>details.zp-card>summary::-webkit-details-marker{display:none}
.zd-panel .zp-br-form>details.zp-card>summary::before{content:"\25B8";width:calc(14*var(--zp));color:var(--muted)}
.zd-panel .zp-br-form>details.zp-card[open]>summary::before{content:"\25BE"}
.zd-panel .zp-br-form>details.zp-card[open]>summary{margin-bottom:calc(6*var(--zp));border-bottom:1px solid var(--line)}
.zd-panel .zp-app .zp-br-form>details.zp-card>summary:focus-visible{outline:max(2px,calc(2*var(--zp))) solid var(--accent);outline-offset:max(2px,calc(2*var(--zp)));border-radius:calc(8*var(--zp))}
.zd-panel .zp-group-count{font-weight:400}
.zd-panel details.zp-card>summary{cursor:pointer}
.zd-panel details.zp-card>summary .zp-badge{margin-left:calc(8*var(--zp))}
.zd-panel .zp-br-form>details.zp-card>summary .zp-badge{margin-left:0}
.zd-panel .zp-br-form>.zp-savebar{margin:calc(16*var(--zp)) 0 0;border:1px solid var(--line);border-radius:calc(12*var(--zp))}
/* a field the keyboard reaches is never hidden under a sticky save bar */
.zd-panel .zp-main:has(.zp-br-form,.zp-ms-form){scroll-padding-bottom:calc(130*var(--zp))}
.zd-panel .zp-unsaved:empty{margin-left:calc(-10*var(--zp))}
.zd-panel .zp-field-reset{margin-top:calc(10*var(--zp));min-height:calc(40*var(--zp))}
.zd-panel .zp-switch.zp-small input{width:calc(44*var(--zp));height:calc(24*var(--zp))}
.zd-panel .zp-switch.zp-field-reset input{width:calc(22*var(--zp));height:calc(22*var(--zp))}
/* the real panel keeps the browser's own margins of a checkbox (3px 3px 3px 4px) and of a figure (1em 40px) */
.zd-panel :is(.zp-br-form,.zp-sh-form,.zp-fe-form,.zp-ms-form) .zp-switch input{margin:calc(3*var(--zp)) calc(3*var(--zp)) calc(3*var(--zp)) calc(4*var(--zp))}

/* ---------- Branding & images: the colour row, BEFORE | AFTER picture cards (owner.css), the pictures (demo artwork) ---------- */
.zd-panel .zp-color-row{display:flex;align-items:center;gap:calc(8*var(--zp))}
.zd-panel .zp-app .zp-color-row .zp-input{max-width:calc(140*var(--zp))}
.zd-panel .zp-app input.zp-color{flex:none;width:calc(56*var(--zp));height:calc(40*var(--zp));padding:calc(2*var(--zp));border:1px solid var(--line);border-radius:calc(10*var(--zp));background:var(--bg-2);cursor:pointer}
.zd-panel .zp-o-imgcard{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(calc(200*var(--zp)),100%),1fr));align-items:start;gap:calc(12*var(--zp))}
.zd-panel .zp-o-before,.zd-panel .zp-o-after{min-width:0;margin:calc(15*var(--zp)) calc(40*var(--zp))}
.zd-panel .zp-o-imgcard figcaption{margin-bottom:calc(6*var(--zp));color:var(--muted);font-size:var(--zp-12);letter-spacing:.06em;text-transform:uppercase}
.zd-panel .zp-o-fit{position:relative;display:grid;place-items:center;width:100%;height:calc(160*var(--zp));overflow:hidden;border:1px solid var(--line);border-radius:calc(10*var(--zp));background:var(--bg-2)}
.zd-panel .zp-o-checker{background-color:var(--bg-2);background-image:linear-gradient(45deg,var(--checker) 25%,transparent 25%),linear-gradient(-45deg,var(--checker) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--checker) 75%),linear-gradient(-45deg,transparent 75%,var(--checker) 75%);background-size:calc(16*var(--zp)) calc(16*var(--zp));background-position:0 0,0 calc(8*var(--zp)),calc(8*var(--zp)) calc(-8*var(--zp)),calc(-8*var(--zp)) 0}
.zd-panel .zp-img-preview{position:relative;display:grid;place-items:center;width:calc(50*var(--zp));height:calc(50*var(--zp));margin-top:calc(8*var(--zp));overflow:hidden;border:1px solid var(--line);border-radius:calc(8*var(--zp));background:#000 repeating-conic-gradient(#222 0 25%,#2c2c2c 0 50%) 50%/calc(16*var(--zp)) calc(16*var(--zp))}
/* the pictures, fitted like the real images (a logo 400 x 120, a square icon, a 16:9 background: "contain" shows all of
   it, "cover" fills the box). After you save: the demo artwork in the colour --c (a ring mark on a plate of the colour,
   the initial, a backdrop), its text in --k (white, or dark navy on a light colour) */
.zd-panel .zp-art{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;container-type:inline-size;color:var(--k,#fff);font-family:var(--f-text);line-height:1.2}
.zd-panel .zp-art-logo{aspect-ratio:10/3;padding:0 6%;border-radius:7%/23%;background:linear-gradient(135deg,color-mix(in oklab,var(--c) 78%,#fff),var(--c) 70%)}
.zd-panel .zp-art-logo i{flex:none;width:13cqw;height:13cqw;margin-right:4cqw;border:2.6cqw solid;border-radius:50%}
.zd-panel .zp-art-logo b{min-width:0;overflow:hidden;font-size:12cqw;font-weight:700;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 .3cqw 1cqw rgba(0,0,0,.25)}
.zd-panel .zp-art-icon{width:min(100%,calc(158*var(--zp)));aspect-ratio:1}
.zd-panel .zp-art-icon i{display:grid;place-items:center;width:100%;height:100%;border-radius:22%;background:linear-gradient(150deg,color-mix(in oklab,var(--c) 72%,#fff),var(--c) 55%);font:700 50cqw/1 var(--f-text);font-style:normal}
.zd-panel .zp-art-bg{aspect-ratio:16/9;overflow:hidden;background:radial-gradient(120% 90% at 20% 10%,color-mix(in oklab,var(--c) 75%,#fff) 0,var(--c) 30%,#0b1020 100%)}
.zd-panel .zp-o-fit-cover>.zp-art-bg{position:absolute;inset:0;width:auto;aspect-ratio:auto}
.zd-panel .zp-o-fit-contain>.zp-art-bg{width:min(100%,calc(160*16/9*var(--zp)))}
.zd-panel .zp-art-bg i{position:absolute;inset:auto -10% -38% 30%;height:70%;border-radius:50% 50% 0 0;background:rgba(5,8,20,.45)}
/* In the app today: the app's own pictures as the demo devices draw them (core .zd-glyph, .zd-name, .zd-app): the glyph
   with its play mark, the name on the dark navy screen, the screen with a glow of the colour */
.zd-panel .zp-art-own.zp-art-logo{background:linear-gradient(160deg,#141b31,#0b1020 70%)}
.zd-panel .zp-art-own.zp-art-bg{background:radial-gradient(80% 60% at 100% 0%,color-mix(in oklab,var(--c) 26%,transparent),transparent 70%),linear-gradient(160deg,#141b31,#0b1020 70%)}
.zd-panel .zp-art-own:is(.zp-art-logo,.zp-art-icon) i{display:grid;place-items:center;border:0;border-radius:26%;background:var(--c)}
.zd-panel .zp-art-own.zp-art-logo i{width:15cqw;height:15cqw}
.zd-panel .zp-art-own i::before{content:"";margin-left:1.2cqw;border-left:5.5cqw solid;border-block:3.35cqw solid transparent}
.zd-panel .zp-art-own.zp-art-icon i::before{margin-left:8.2cqw;border-left-width:36.5cqw;border-block-width:22.4cqw}
.zd-panel .zp-art-own.zp-art-logo b{color:#eef1f8;font-weight:500;letter-spacing:.01em;text-shadow:none}
.zd-panel .zp-art-own.zp-art-bg i{display:none}
/* the visitor's own logo and background picture (state; the demo devices show them at once): a file field that looks like
   the panel's button, and the picture itself in the AFTER box (core keeps --brand-logo and --brand-bg on the root) */
.zd-panel .zp-br-own{display:grid;justify-items:start;gap:calc(6*var(--zp));margin-top:calc(14*var(--zp));padding-top:calc(12*var(--zp));border-top:1px solid var(--line)}
.zd-panel .zp-br-own .zp-field-help{margin:0}
.zd-panel .zp-br-pick{position:relative;cursor:pointer}
.zd-panel .zp-br-pick input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;font-size:0;cursor:pointer}
.zd-panel .zp-app .zp-br-pick:has(input:focus-visible){outline:max(2px,.133em) solid var(--focus);outline-offset:max(2px,.133em)}
.zd-panel .zp-br-img{position:absolute;inset:calc(12*var(--zp));background:var(--brand-logo) center/contain no-repeat}
.zd-panel .zp-br-img-bg{inset:0;background:var(--brand-bg) center/cover no-repeat}
.zd-panel .zp-br-form .zp-row>.zp-input{flex:1 1 100%}

/* ---------- rows: one text, one switch, one tile (owner.css) ---------- */
.zd-panel :is(.zp-o-textrow,.zp-o-switchrow){display:flex;flex-wrap:wrap;align-items:center;gap:calc(10*var(--zp)) calc(16*var(--zp));padding:calc(12*var(--zp)) 0;border-bottom:1px solid var(--line)}
.zd-panel :is(.zp-o-textrow,.zp-o-switchrow):last-child{border-bottom:0}
.zd-panel :is(.zp-o-textrow,.zp-o-switchrow)>label{flex:1 1 calc(220*var(--zp));min-width:0}
.zd-panel .zp-app .zp-o-textrow>.zp-input{width:100%}
.zd-panel :is(.zp-o-textrow,.zp-o-switchrow)>.zp-o-details,.zd-panel .zp-o-switch-body>.zp-o-details{flex:1 0 100%}
.zd-panel .zp-o-switch-body{min-width:0}
.zd-panel .zp-o-switchrow .zp-o-badge-explain{flex-basis:100%;margin-left:0}
.zd-panel .zp-o-tile{display:flex;align-items:center;gap:calc(12*var(--zp));margin-bottom:calc(8*var(--zp));padding:calc(10*var(--zp)) calc(12*var(--zp));border:1px solid var(--line);border-radius:calc(10*var(--zp));background:var(--bg-2)}
.zd-panel .zp-o-tile>.zp-switch{flex:none;min-width:0}
.zd-panel .zp-o-tile.zp-is-edit{flex-wrap:wrap;row-gap:calc(8*var(--zp))}
.zd-panel .zp-sh-line{display:flex;flex:1 0 100%;flex-wrap:wrap;align-items:center;gap:calc(8*var(--zp)) calc(12*var(--zp))}
/* the badges of a tile (the real ones sit straight in the row, 12px apart): they wrap inside the row, never past it */
.zd-panel .zp-sh-b{display:flex;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:calc(6*var(--zp)) calc(12*var(--zp));min-width:0}
.zd-panel .zp-sh-in{display:flex;flex:1 1 calc(150*var(--zp));flex-direction:column;gap:calc(4*var(--zp));min-width:0;max-width:calc(240*var(--zp))}
.zd-panel .zp-sh-move{display:inline-flex;gap:calc(6*var(--zp));margin-left:auto}
.zd-panel .zp-sh-move .zp-btn{min-width:calc(36*var(--zp))}

/* ---------- Messages (misc.css): the fieldsets of the form, the phone- and TV-shaped preview ---------- */
.zd-panel .zp-fieldset{min-width:0;margin:0;padding:calc(12*var(--zp)) calc(14*var(--zp));border:1px solid var(--line);border-radius:calc(10*var(--zp))}
.zd-panel .zp-fieldset>legend{padding:0 calc(6*var(--zp));font-weight:600}
.zd-panel .zp-ms-grid>div{min-width:0}
.zd-panel .zp-pv-wrap{display:flex;flex-wrap:wrap;align-items:flex-end;gap:calc(16*var(--zp));margin-bottom:calc(12*var(--zp))}
.zd-panel .zp-pv{margin:0;text-align:center}
.zd-panel .zp-pv-phone{flex:0 1 calc(170*var(--zp))}
.zd-panel .zp-pv-tv{flex:1 1 calc(260*var(--zp));max-width:calc(420*var(--zp))}
.zd-panel .zp-pv-screen{position:relative;display:flex;align-items:center;justify-content:center;margin-bottom:calc(6*var(--zp));overflow:hidden;border:calc(3*var(--zp)) solid var(--line-2);background:#0b0d10 linear-gradient(160deg,#1b2431,#0b0d10)}
.zd-panel .zp-pv-phone .zp-pv-screen{aspect-ratio:9/16;padding:calc(10*var(--zp));border-radius:calc(22*var(--zp))}
.zd-panel .zp-pv-tv .zp-pv-screen{aspect-ratio:16/9;padding:6%;border-radius:calc(10*var(--zp))}
.zd-panel .zp-pv-box{width:100%;max-height:100%;overflow:hidden;padding:calc(10*var(--zp)) calc(12*var(--zp));border-radius:calc(6*var(--zp));background:#2b2f36;box-shadow:var(--shadow);color:#f2f4f7;text-align:left}
.zd-panel .zp-pv-tv .zp-pv-box{max-width:70%}
.zd-panel .zp-pv-gate{background:#0b0d10}
.zd-panel .zp-pv-gate .zp-pv-box{background:transparent;box-shadow:none;text-align:center}
.zd-panel .zp-pv-title{margin-bottom:calc(6*var(--zp));font-size:calc(13*var(--zp));font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.zd-panel .zp-pv-body{color:#d5dae1;font-size:calc(11*var(--zp));line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.zd-panel .zp-pv-btns{display:flex;justify-content:flex-end;gap:calc(8*var(--zp));margin-top:calc(10*var(--zp))}
.zd-panel .zp-pv-gate .zp-pv-btns{justify-content:center}
.zd-panel .zp-pv-btn{padding:calc(3*var(--zp)) calc(10*var(--zp));border:1px solid transparent;border-radius:calc(4*var(--zp));color:#9fd0ff;font-size:calc(11*var(--zp));font-weight:700;line-height:1.5}
.zd-panel .zp-pv-btn.zp-is-focus{border-color:var(--accent);color:#fff}
.zd-panel .zp-pv-banner{align-items:flex-start}
.zd-panel .zp-pv-banner-text{position:absolute;inset:0 0 auto 0;padding:calc(5*var(--zp)) calc(8*var(--zp));background:rgba(0,0,0,.72);color:#fff;font-size:calc(10*var(--zp));line-height:1.35;text-align:left;overflow-wrap:anywhere}
.zd-panel .zp-pv-backdrop-note{align-self:center;color:#4b5666;font-size:calc(12*var(--zp));letter-spacing:.08em;text-transform:uppercase}
.zd-panel .zp-ms-list th .zd-vh{left:0}
.zd-panel .zp-nowrap-link{white-space:nowrap}

/* ---------- the real breakpoints: on the window (zp, 46.667em = 700px) and, where the page column is narrower than any
   the real panel draws (its menu stays visible here), on the column (zpc: 52em = 780px, 28em = 420px) ---------- */
@container zp (max-width: 46.667em) {
  .zd-panel .zp-o-imgcard{grid-template-columns:minmax(0,1fr)}
}
@container zpc (max-width: 52em) {
  .zd-panel .zp-ms-list :is(table,tbody,tr,td){display:block;min-width:0}
  .zd-panel .zp-ms-list thead{display:none}
  .zd-panel .zp-ms-list tr{margin-bottom:calc(10*var(--zp));padding:calc(6*var(--zp)) calc(10*var(--zp));border:1px solid var(--line);border-radius:calc(10*var(--zp));background:var(--bg-2)}
  .zd-panel .zp-ms-list td{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:calc(8*var(--zp));padding:calc(4*var(--zp)) 0;border:0}
  .zd-panel .zp-ms-list td[data-th]::before{content:attr(data-th) "\00a0";font-weight:600}
  .zd-panel .zp-ms-list :is(td.zp-nowrap,td.zp-nowrap *){white-space:normal}
  .zd-panel .zp-ms-list th[scope="row"]{display:block;min-width:0;padding:calc(4*var(--zp)) 0;border:0}
}
@container zpc (max-width: 28em) {
  .zd-panel .zp-o-tile{flex-wrap:wrap;row-gap:calc(8*var(--zp))}
  .zd-panel .zp-o-tile>.zp-switch{flex:0 1 auto}
  .zd-panel .zp-sh-b{justify-content:flex-start}
}

/* ---------- the demo strip under the window (page UI, not the panel): a note next to the "Demo" key ---------- */
.zd-panel .zd-panel-demo>.zp-ap-dnote{flex:1 1 16em;min-width:0}

/* ---- 33-panel-issues.css ---- */
/* Control panel demo: Errors & logs and Backup (33-panel-issues.js). The real owner_logs.css and the Backup page's own
   parts, prefixed "zp-", under .zd-panel; em = the element's own size, calc(N*var(--zp)) = N real px. The page column
   decides the phone layout (container zpc): the demo keeps its menu beside a narrower page than the real panel ever has.
   The window (container zp, 80em = the real 1200px) decides whether the selected issue sits beside the list. */
.zd-panel .zp-el{min-width:0;font-variant-numeric:tabular-nums}
/* a control the keyboard reaches keeps its ring clear of the column's and the details' edges */
.zd-panel .zp-el :is(button,summary,input,select){scroll-margin:calc(8*var(--zp)) 0}
.zd-panel :where(.zp-el) p{margin:0}
.zd-panel :where(.zp-el) small{font-size:calc(12.5*var(--zp))}
.zd-panel .zp-el .zp-icon{vertical-align:middle}
.zd-panel :is(.zp-el-dtitle,.zp-bk-rt):focus{outline:none}

.zd-panel .zp-el-k-error{--k:var(--st-bad)}
.zd-panel .zp-el-k-warning{--k:var(--st-warn)}
.zd-panel .zp-el-k-success{--k:var(--st-ok)}
.zd-panel .zp-el-k-info{--k:var(--st-info)}
.zd-panel .zp-el-k-diagnostic{--k:var(--st-stop)}
.zd-panel :is(.zp-el-ico,.zp-el-group .zp-icon,.zp-el-sevpill .zp-icon){color:var(--k,var(--text-2))}
.zd-panel :is(.zp-el-now li,.zp-el-legend button,.zp-el-cls)>i{background:var(--k)}
.zd-panel .zp-el-seg{fill:var(--k)}
.zd-panel :is(.zp-el-k-error .zp-el-sev,.zp-el-cls.zp-el-k-error,.zp-el-sevpill.zp-el-k-error){color:var(--bad-ink)}
.zd-panel :is(.zp-el-k-warning .zp-el-sev,.zp-el-cls.zp-el-k-warning,.zp-el-sevpill.zp-el-k-warning){color:var(--warn-ink)}
.zd-panel :is(.zp-el-group.zp-el-k-success,.zp-el-cls.zp-el-k-success){color:var(--ok-ink)}
.zd-panel .zp-el-cls.zp-el-k-info{color:var(--info-ink)}
.zd-panel .zp-el-cls.zp-el-k-diagnostic{color:var(--text-2);font-weight:500}
.zd-panel .zp-el-sevpill.zp-el-k-error{border-color:var(--st-bad-line);background:var(--st-bad-soft)}
.zd-panel .zp-el-sevpill.zp-el-k-warning{border-color:var(--st-warn-line);background:var(--st-warn-soft)}
.zd-panel .zp-is-recovered :is(.zp-el-ico,.zp-el-sev){color:var(--muted)}
.zd-panel .zp-is-recovered .zp-el-sev{font-weight:500}

.zd-panel .zp-el-asof{align-self:center;margin-right:.308em;font-size:.867em;color:var(--muted);white-space:nowrap}
.zd-panel .zp-el-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 .933em;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.zd-panel .zp-el-kpi{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.133em 1.067em;min-width:0;padding:1.2em 1.333em;text-align:left}
.zd-panel .zp-el-kpi+.zp-el-kpi{border-left:1px solid var(--line)}
.zd-panel .zp-el .zp-el-kpi:focus-visible{outline-offset:-.133em}
.zd-panel .zp-el-kpi-icon{grid-row:span 2;display:grid;place-items:center;width:3.067em;height:3.067em;border-radius:.8em;background:var(--card-2);color:var(--text-2)}
.zd-panel .zp-el-kpi-icon .zp-icon{width:1.467em;height:1.467em}
.zd-panel .zp-is-bad .zp-el-kpi-icon{background:var(--st-bad-soft);color:var(--st-bad)}
.zd-panel .zp-is-ok .zp-el-kpi-icon{background:var(--st-ok-soft);color:var(--st-ok)}
.zd-panel .zp-el-kpi-label{font-weight:600}
.zd-panel .zp-el-kpi-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .667em;min-width:0}
.zd-panel .zp-el-kpi-num{font-size:2.533em;font-weight:650;line-height:1.05;letter-spacing:-.02em}
.zd-panel .zp-el-kpi-unit{font-size:.933em;color:var(--text-2)}
.zd-panel .zp-el-now{display:flex;flex-wrap:wrap;align-items:center;gap:.429em 1.286em;margin:0 0 1.286em;font-size:.933em}
.zd-panel .zp-el-now li{display:inline-flex;align-items:center;gap:.571em;min-width:0}
.zd-panel .zp-el-now li>i{flex:none;width:.571em;height:.571em;border-radius:50%}
.zd-panel .zp-el-now-label{color:var(--muted);font-weight:600}
.zd-panel :is(.zp-el-now,.zp-el-ctx,.zp-el-note) button,.zd-panel .zp-el-linkbtn{text-align:left;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:.214em;overflow-wrap:anywhere}

.zd-panel .zp-el-toolbar{position:relative;display:flex;flex-wrap:wrap;gap:.667em;margin:0 0 .667em}
.zd-panel .zp-el-search{position:relative;flex:1 1 21.333em;min-width:0}
.zd-panel .zp-el-search>.zp-icon{position:absolute;left:1em;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.zd-panel .zp-el-search input{width:100%;min-height:3.067em;padding:0 .933em 0 2.933em;border-radius:.8em;border:1px solid var(--line-2);background:var(--input);color:var(--text)}
.zd-panel .zp-el :is(input,select)::placeholder{color:var(--placeholder);opacity:1}
.zd-panel .zp-el-menu{position:relative}
.zd-panel .zp-el-menu>summary{list-style:none;cursor:pointer}
.zd-panel .zp-el-menu>summary::-webkit-details-marker{display:none}
.zd-panel .zp-el-mbtn{display:inline-flex;align-items:center;gap:.667em;min-height:3.067em;padding:0 .933em;border-radius:.8em;border:1px solid var(--line-2);background:var(--card);font-weight:600;white-space:nowrap}
.zd-panel .zp-el-mbtn .zp-icon{color:var(--text-2)}
.zd-panel .zp-el-mbtn>span:not(.zp-el-count){min-width:0;overflow:hidden;text-overflow:ellipsis}
.zd-panel .zp-el-mbtn .zp-el-chev{width:1.067em;height:1.067em;margin-left:.4em;color:var(--muted)}
.zd-panel .zp-el-mbtn-sm{min-height:2.857em;padding:0 1em;font-size:.933em;border-radius:.714em}
.zd-panel .zp-el-mbtn-quiet{min-height:2.857em;padding:0 1em;border-color:transparent;background:transparent;color:var(--text-2);font-size:.933em;font-weight:500}
.zd-panel .zp-el-menu[open]>.zp-el-mbtn{border-color:var(--text-2)}
.zd-panel .zp-el-pop{position:absolute;top:calc(100% + .4em);right:0;z-index:25;width:max-content;min-width:14.667em;max-width:min(21.333em,100cqw);padding:.4em;border:1px solid var(--line-2);border-radius:.8em;background:var(--card);box-shadow:var(--shadow)}
.zd-panel .zp-el-pop-left{left:0;right:auto}
.zd-panel .zp-el-opt{display:grid;grid-template-columns:1.286em minmax(0,1fr);align-items:start;gap:.143em .714em;width:100%;min-height:2.857em;padding:.643em .714em;border-radius:.571em;font-size:.933em;line-height:1.4;text-align:left}
.zd-panel .zp-el .zp-el-opt:focus-visible{outline-offset:-.143em}
.zd-panel .zp-el-opt .zp-icon{width:1.143em;height:1.143em;margin-top:1px;stroke-width:2.6;visibility:hidden}
.zd-panel .zp-el-opt[aria-current="true"]{font-weight:650}
.zd-panel .zp-el-opt[aria-current="true"] .zp-icon{visibility:visible}
.zd-panel .zp-el-opt small{grid-column:2;display:block;font-weight:400;color:var(--muted);line-height:1.4}
.zd-panel .zp-el-filters{position:static}
.zd-panel .zp-el-filters>.zp-el-pop{left:0;right:0;width:auto;max-width:none;padding:1.067em}
.zd-panel .zp-el-fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12em,100%),1fr));gap:.8em .933em}
.zd-panel .zp-el-field{display:grid;gap:.267em;min-width:0}
.zd-panel .zp-el-field label{font-size:.867em;font-weight:600;color:var(--text-2)}
.zd-panel .zp-el-field :is(select,input){width:100%;min-height:2.667em;padding:0 .667em;border-radius:.667em;border:1px solid var(--line-2);background:var(--input);color:var(--text)}
.zd-panel .zp-el-fhelp{margin-top:.8em;font-size:.833em;color:var(--muted)}
.zd-panel .zp-el-factions{display:flex;flex-wrap:wrap;gap:.533em;margin-top:.933em}
.zd-panel .zp-el-chips{display:flex;flex-wrap:wrap;gap:.4em;margin:0 0 .667em}
.zd-panel .zp-el-chip{display:inline-flex;align-items:center;gap:.462em;min-width:0;max-width:100%;min-height:2.462em;padding:0 .308em 0 .923em;border-radius:99em;border:1px solid var(--line-2);background:var(--card);font-size:.867em;color:var(--text-2)}
.zd-panel .zp-el-chip>span{min-width:0;overflow-wrap:anywhere}
.zd-panel .zp-el .zp-el-chip strong{color:var(--text);font-weight:600}
.zd-panel .zp-el-chip .zp-badge{vertical-align:baseline}
.zd-panel .zp-el-chip>button{display:inline-grid;flex:none;place-items:center;width:2em;height:2em;border-radius:50%;color:var(--muted)}
.zd-panel .zp-el-chip>button .zp-icon{width:1.077em;height:1.077em}
.zd-panel .zp-el-aud{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.533em 1.067em;margin:0 0 1.6em}
.zd-panel .zp-el-aud-note{font-size:.867em;color:var(--text-2)}
.zd-panel .zp-el-linkbtn{padding:0 .154em;color:var(--text);font-weight:600}

.zd-panel .zp-el-chart{margin:0 0 1.733em}
.zd-panel .zp-el-chart-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.4em 1.2em;margin-bottom:.533em}
.zd-panel .zp-el-chart-head h4{font-size:1.067em;font-weight:600;line-height:1.4}
.zd-panel .zp-el-chart-total{margin-left:.125em;color:var(--muted);font-weight:500}
.zd-panel .zp-el-legend{display:flex;flex-wrap:wrap;gap:.133em .4em}
.zd-panel .zp-el-legend button{display:inline-flex;align-items:center;gap:.519em;min-height:2.37em;padding:.148em .593em;border:1px solid transparent;border-radius:.593em;color:var(--text-2);font-size:.9em}
.zd-panel .zp-el-legend button[aria-current="true"]{border-color:var(--line-2);background:var(--card-2);color:var(--text)}
.zd-panel .zp-el-legend b{font-weight:650;color:var(--text)}
.zd-panel .zp-el-sw{flex:none;width:.741em;height:.741em;border-radius:.148em}
.zd-panel .zp-el-plot{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.667em}
.zd-panel .zp-el-yaxis{display:flex;flex-direction:column;justify-content:space-between;height:10.333em;font-size:.8em;line-height:1;color:var(--muted);text-align:right}
.zd-panel .zp-el-svg{display:block;width:100%;height:8.267em;overflow:visible}
.zd-panel .zp-el-grid{stroke:var(--grid);stroke-width:1;shape-rendering:crispEdges}
.zd-panel .zp-el-hit{fill:transparent}
.zd-panel .zp-el-xaxis{grid-column:2;position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:.5em;font-size:.8em;color:var(--muted);white-space:nowrap}
.zd-panel .zp-el-xaxis span{min-width:0;overflow:hidden;padding-right:.333em}
.zd-panel .zp-el-xaxis .zp-el-x-end{position:absolute;top:0;right:0;padding-right:0;text-align:right}
.zd-panel .zp-el-twin{margin-top:.769em;font-size:.867em}
.zd-panel .zp-el-twin>summary{padding:.462em 0;color:var(--muted);cursor:pointer}
.zd-panel .zp-el-twin>summary:focus-visible{border-radius:.308em}
.zd-panel .zp-el-twin table{width:100%;max-width:49.231em;margin-top:.615em;border-collapse:collapse}
.zd-panel .zp-el-twin :is(th,td){padding:.385em .615em;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.zd-panel .zp-el-twin :is(th,td):first-child{text-align:left}
.zd-panel .zp-el-twin th{color:var(--muted);font-weight:600}
.zd-panel .zp-el-twin th[scope="row"]{color:var(--text-2);font-weight:500}
.zd-panel .zp-el-twin-empty{margin-top:.4em;color:var(--text-2)}

/* the board: the selected issue under the list (beside it from a 1200 real px window, further down) */
.zd-panel .zp-el-board{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;border:1px solid var(--line);border-radius:1.067em;background:var(--card)}
.zd-panel .zp-el-pane{min-width:0}
.zd-panel .zp-el-pane-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0 .8em;padding:.4em 1.333em 0;border-bottom:1px solid var(--line)}
.zd-panel .zp-el-tabs{display:flex;flex-wrap:wrap;gap:.267em .933em}
.zd-panel .zp-el-tab{display:inline-flex;align-items:center;gap:.625em;min-height:3.25em;padding:0 .25em;margin-bottom:-1px;border-bottom:.188em solid transparent;color:var(--text-2);font-size:1.067em;font-weight:600}
.zd-panel .zp-el-tab[aria-current="page"]{color:var(--text);border-bottom-color:var(--text)}
.zd-panel .zp-el .zp-el-tab:focus-visible,.zd-panel .zp-el .zp-el-dtab:focus-visible{outline-offset:-.133em}
.zd-panel .zp-el-count{display:inline-grid;place-items:center;min-width:calc(28*var(--zp));height:calc(24*var(--zp));padding:0 calc(7*var(--zp));border-radius:calc(7*var(--zp));border:1px solid var(--line-2);background:var(--card-2);font-size:calc(12.5*var(--zp));font-weight:650;color:var(--text-2)}
.zd-panel .zp-el-sortbox{margin-left:auto;padding-bottom:.4em}
.zd-panel .zp-el-sub{display:flex;flex-wrap:wrap;gap:.533em;padding:.933em 1.333em;border-bottom:1px solid var(--line)}
.zd-panel .zp-el-filter{display:inline-flex;align-items:center;gap:.571em;min-height:2.857em;padding:0 1em;border-radius:.714em;border:1px solid transparent;color:var(--text-2);font-size:.933em;font-weight:600}
.zd-panel .zp-el-filter[aria-current="true"]{border-color:var(--line-2);background:var(--card-2);color:var(--text)}
.zd-panel .zp-el-filter span{color:var(--muted)}
.zd-panel .zp-el-filter[aria-current="true"] span{color:var(--text-2)}
.zd-panel .zp-el-cols{display:grid;grid-template-columns:2.154em minmax(0,1fr) 5.538em 4.923em 6.615em;column-gap:.923em;padding:.923em 1.538em;font-size:.867em;color:var(--muted);border-bottom:1px solid var(--line)}
.zd-panel .zp-el-cols span:first-child{grid-column:1/span 2}
.zd-panel .zp-el-cols span:not(:first-child),.zd-panel .zp-el-num{text-align:right}
.zd-panel .zp-el-sec{border-bottom:1px solid var(--line)}
.zd-panel .zp-el-group{display:flex;align-items:center;gap:.667em;padding:.933em 1.333em;font-weight:600;line-height:1.4;border-bottom:1px solid var(--line)}
.zd-panel .zp-el-group-n{margin-left:auto;font-size:.867em;font-weight:500;color:var(--text-2)}
.zd-panel .zp-el-issues>li+li{border-top:1px solid var(--line)}
.zd-panel .zp-el-row{position:relative;display:grid;grid-template-columns:1.867em minmax(0,1fr) 4.8em 4.267em 5.733em;column-gap:.8em;align-items:center;width:100%;min-width:0;padding:1.067em 1.333em;text-align:left}
.zd-panel .zp-el-row[aria-current="true"]{background:var(--card-2);box-shadow:inset .2em 0 0 var(--text-2)}
.zd-panel .zp-el .zp-el-row:focus-visible{outline-offset:-.2em}
.zd-panel .zp-el-ico{display:grid;place-items:center;align-self:start;width:1.867em;height:1.867em;margin-top:1px}
.zd-panel .zp-el-ico .zp-icon{width:1.6em;height:1.6em}
.zd-panel .zp-el-row-main{min-width:0}
.zd-panel .zp-el-row-title{display:block;font-size:1.033em;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.zd-panel .zp-el-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.148em 0;margin-top:.37em;font-size:.9em;color:var(--text-2)}
.zd-panel .zp-el-row-meta>span{display:inline-flex;align-items:center;gap:.296em}
.zd-panel .zp-el-row-meta>span+span::before{content:"\00b7";margin:0 .593em;color:var(--muted)}
.zd-panel .zp-el-sev{font-weight:600}
.zd-panel .zp-el-rec{color:var(--ok-ink);font-weight:600}
.zd-panel :is(.zp-el-rec,.zp-el-part) .zp-icon{width:1.111em;height:1.111em;color:var(--st-ok);stroke-width:2.4}
.zd-panel .zp-el-code{color:var(--muted);letter-spacing:.01em}
.zd-panel .zp-el-num{font-weight:600}
.zd-panel .zp-el-last{font-weight:500;color:var(--text-2)}
.zd-panel .zp-el-row-counts{display:block;position:absolute;width:1px;height:1px;margin-top:.308em;overflow:hidden;clip-path:inset(50%);white-space:nowrap;font-size:.867em;color:var(--text-2)}
.zd-panel .zp-el-list-foot{padding:1.077em 1.538em;font-size:.867em;color:var(--text-2);border-bottom:1px solid var(--line)}
.zd-panel .zp-el-keep{display:flex;align-items:flex-start;gap:.741em;padding:1.037em 1.481em 1.333em;font-size:.9em;color:var(--text-2)}
.zd-panel .zp-el-keep .zp-icon{margin-top:.148em;color:var(--muted)}
.zd-panel .zp-el-empty{max-width:70ch;padding:1.517em 1.379em;font-size:.967em;color:var(--text-2);overflow-wrap:anywhere}
.zd-panel .zp-el .zp-el-empty strong{display:block;margin-bottom:.267em;color:var(--text);font-size:calc(15*var(--zp))}
.zd-panel .zp-el .zp-el-empty.zp-el-k-success strong{color:var(--ok-ink)}

.zd-panel .zp-el-logbar{display:flex;flex-wrap:wrap;align-items:center;gap:.615em .923em;padding:.923em 1.538em;border-bottom:1px solid var(--line);font-size:.867em;color:var(--text-2)}
.zd-panel .zp-el-logbar .zp-el-chips{margin:0}
.zd-panel .zp-el-logbar .zp-el-chip{font-size:1em}
.zd-panel .zp-el-logs{font-size:.933em}
.zd-panel .zp-el-logs th{padding:.846em .923em;border-bottom:1px solid var(--line);font-size:calc(13*var(--zp));font-weight:600;letter-spacing:normal;text-transform:none}
.zd-panel .zp-el-logs td{min-width:0;padding:.857em;border-top:0;border-bottom:1px solid var(--line)}
.zd-panel .zp-el-logs :is(th,td):first-child{padding-left:1.429em}
.zd-panel .zp-el-logs :is(th,td):last-child{padding-right:1.429em}
.zd-panel .zp-el-when{white-space:nowrap;color:var(--text-2)}
.zd-panel .zp-el-cls{display:inline-flex;align-items:center;gap:.467em;white-space:nowrap;font-weight:600}
.zd-panel .zp-el-cls>i{flex:none;width:.571em;height:.571em;border-radius:50%}
.zd-panel .zp-el-what{overflow-wrap:anywhere}
.zd-panel .zp-el-logs .zp-o-details{margin-top:.462em;padding-top:.154em;border-top:0;font-size:calc(13*var(--zp))}
.zd-panel .zp-el-logs .zp-o-details>summary{min-height:2.462em}
.zd-panel .zp-el-logs .zp-o-details[open]>summary{margin-bottom:.308em}
.zd-panel .zp-el-tv{overflow-wrap:anywhere}
.zd-panel .zp-el-tv small{display:block;color:var(--muted)}
.zd-panel .zp-el-tv button{display:block;margin-top:.154em;font-size:calc(13*var(--zp));color:var(--text-2);text-align:left;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:.231em}
.zd-panel .zp-el-pager{display:flex;flex-wrap:wrap;align-items:center;gap:.615em .923em;padding:1.077em 1.538em;border-bottom:1px solid var(--line);font-size:.867em;color:var(--text-2)}

.zd-panel .zp-el-detail{min-width:0;border-top:1px solid var(--line);border-radius:0 0 1.067em 1.067em;background:var(--card-2)}
.zd-panel .zp-el-detail-in{min-width:0}
.zd-panel .zp-el-dhead{display:flex;align-items:center;gap:.714em;min-height:4em;padding:.571em .857em .571em 1.429em;border-bottom:1px solid var(--line);font-size:.933em;color:var(--text-2)}
.zd-panel .zp-el-dhead>.zp-icon{color:var(--muted)}
.zd-panel .zp-el-dhead-code{font-weight:600;letter-spacing:.01em}
.zd-panel .zp-el-dhead .zp-el-dclose{display:none;min-width:calc(40*var(--zp));min-height:calc(40*var(--zp));margin-left:auto;border-radius:calc(10*var(--zp))}
.zd-panel .zp-el-back{margin:.923em 1.538em 0}
.zd-panel .zp-el-dbody{padding:1.333em}
.zd-panel .zp-el-dpills{display:flex;flex-wrap:wrap;align-items:center;gap:.533em .933em}
.zd-panel .zp-el-sevpill{display:inline-flex;align-items:center;gap:.444em;padding:.222em .741em .222em .593em;border-radius:.593em;border:1px solid var(--line-2);font-size:.9em;font-weight:650}
.zd-panel :is(.zp-el-sevpill,.zp-el-state) .zp-icon{width:1.185em;height:1.185em}
.zd-panel .zp-el-state{display:inline-flex;align-items:center;gap:.444em;font-size:.9em;font-weight:500;color:var(--text-2)}
.zd-panel .zp-el-state.zp-is-ok{color:var(--ok-ink);font-weight:600}
.zd-panel .zp-el-state.zp-is-ok .zp-icon{color:var(--st-ok)}
.zd-panel .zp-el .zp-el-dtitle{margin:.5em 0 .417em;color:var(--text);font-size:1.6em;font-weight:650;line-height:1.25;letter-spacing:-.012em;overflow-wrap:anywhere}
.zd-panel .zp-el .zp-el-dexplain{max-width:64ch;line-height:1.6;color:var(--text-2)}
.zd-panel .zp-el-dstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8em;margin:1.2em 0;padding:1.067em 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.zd-panel .zp-el-dstats>div{display:flex;flex-direction:column;min-width:0}
.zd-panel .zp-el-dstats dt{order:2;font-size:.867em;color:var(--text-2)}
.zd-panel .zp-el-dstats dd{font-size:1.867em;font-weight:650;line-height:1.15;letter-spacing:-.015em}
.zd-panel .zp-el-dstats dd.zp-is-time{font-size:1.333em;line-height:1.6}
.zd-panel .zp-el-session{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.267em .933em;width:100%;padding:.933em .933em .933em 1.067em;border:1px solid var(--line-2);border-radius:.933em;background:var(--card);text-align:left}
.zd-panel .zp-el-session-icon{display:grid;place-items:center;width:2.8em;height:2.8em;border-radius:.667em;background:var(--card-2);color:var(--text-2)}
.zd-panel .zp-el-session-main{min-width:0;font-size:.9em;line-height:1.5;color:var(--text-2)}
.zd-panel .zp-el-session-main small{display:block;color:var(--muted)}
.zd-panel .zp-el .zp-el-session-main strong{display:block;font-size:calc(15*var(--zp));font-weight:650;color:var(--text);overflow-wrap:anywhere}
.zd-panel .zp-el-chevr{color:var(--muted)}
.zd-panel .zp-el-dtabs{display:flex;flex-wrap:wrap;gap:.267em 1.2em;margin:1.2em 0 0;border-bottom:1px solid var(--line)}
.zd-panel .zp-el-dtab{display:inline-flex;align-items:center;min-height:2.933em;padding:0 .133em;margin-bottom:-1px;border-bottom:.2em solid transparent;color:var(--text-2);font-weight:600}
.zd-panel .zp-el-dtab[aria-current="page"]{color:var(--text);border-bottom-color:var(--text)}
.zd-panel .zp-el-tlhead{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.308em .923em;margin:1.231em 0 .462em;font-size:.867em;font-weight:600;color:var(--text-2)}
.zd-panel .zp-el-tlhead span:last-child{font-weight:500;color:var(--muted)}
.zd-panel .zp-el-tl{position:relative}
.zd-panel .zp-el-tl li{position:relative;display:grid;grid-template-columns:1.067em minmax(0,1fr) auto;align-items:start;gap:.267em .8em;padding:.6em 0}
.zd-panel .zp-el-tl li:not(:last-child)::after{content:"";position:absolute;left:.467em;top:1.933em;bottom:-.6em;width:.133em;background:var(--line)}
.zd-panel .zp-el-dot{position:relative;z-index:1;width:1.067em;height:1.067em;margin-top:.133em;border-radius:50%;border:.167em solid var(--k,var(--st-stop));background:var(--card-2)}
.zd-panel .zp-el-dot.zp-is-fill{background:var(--k)}
.zd-panel .zp-el-tl-text{font-size:.967em;line-height:1.45;overflow-wrap:anywhere}
.zd-panel .zp-el-tl-time{font-size:.867em;color:var(--text-2);white-space:nowrap}
.zd-panel .zp-el-ctx{display:grid;grid-template-columns:minmax(7.857em,38%) minmax(0,1fr);margin:.857em 0 0;font-size:.933em}
.zd-panel .zp-el-ctx dt{padding:.643em .857em .643em 0;border-bottom:1px solid var(--line);color:var(--text-2)}
.zd-panel .zp-el-ctx dd{padding:.643em 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.zd-panel .zp-el-ctx li+li{margin-top:.429em}
.zd-panel .zp-el-ctx small{display:block;color:var(--muted)}
.zd-panel .zp-el-raw{margin-top:.8em}
.zd-panel .zp-el .zp-el-raw>p{margin-top:.571em;font-size:.933em;color:var(--text-2)}
.zd-panel .zp-el-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.714em;margin:1.286em 0;padding:1em 1.143em;border:1px solid var(--line-2);border-radius:.857em;background:var(--card);font-size:.933em;line-height:1.55;color:var(--text-2)}
.zd-panel .zp-el-note>.zp-icon{margin-top:.143em;color:var(--text-2)}
.zd-panel .zp-el-note b{color:var(--text);font-weight:650}
.zd-panel .zp-el-note p{overflow-wrap:anywhere}
.zd-panel .zp-el-note.zp-is-ok{border-color:var(--st-ok-line);background:var(--st-ok-soft)}
.zd-panel .zp-el-note.zp-is-ok>.zp-icon{color:var(--st-ok)}
.zd-panel .zp-el-note.zp-is-ok b{color:var(--ok-ink)}
.zd-panel .zp-el-related{display:flex;align-items:center;justify-content:center;gap:.667em;width:100%;min-height:3.333em;border-radius:.8em;background:var(--text);color:var(--bg);font-weight:650}
.zd-panel .zp-el-related .zp-icon{color:var(--bg)}

/* Backup: a form's <fieldset> without the browser's groove; its save bars span the card, the last sits on its foot */
.zd-panel .zp-bk-fs{min-width:0;margin:0;padding:0;border:0}
.zd-panel .zp-bk-fs>legend{padding:0;font-weight:600}
.zd-panel .zp-bk-fs .zp-savebar{margin-bottom:1.067em}
.zd-panel .zp-bk-fs .zp-bk-end{margin-bottom:-1.067em}
.zd-panel .zp-bk-file{max-width:100%;font-size:calc(13.333*var(--zp))}
.zd-panel .zp-btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}

@media (hover:hover){
  .zd-panel :is(.zp-el-kpi,.zp-el-row):hover{background:var(--row-hover)}
  .zd-panel .zp-el-row[aria-current="true"]:hover{background:var(--card-2)}
  .zd-panel :is(.zp-el-mbtn,.zp-el-opt,.zp-el-chip>button,.zp-el-legend button):hover{background:var(--card-2)}
  .zd-panel :is(.zp-el-chip>button,.zp-el-legend button,.zp-el-tv button):hover{color:var(--text)}
  .zd-panel :is(.zp-el-now,.zp-el-ctx,.zp-el-note,.zp-el-tv) button:hover,.zd-panel .zp-el-linkbtn:hover{text-decoration-color:currentColor}
  .zd-panel .zp-el-bar:hover .zp-el-seg{opacity:.78}
  .zd-panel :is(.zp-el-twin>summary,.zp-el-tab,.zp-el-dtab):hover{color:var(--text)}
  .zd-panel .zp-el-filter:hover{color:var(--text);background:var(--row-hover)}
  .zd-panel .zp-el-filter[aria-current="true"]:hover{background:var(--card-2)}
  .zd-panel .zp-el-session:hover{border-color:var(--text-2)}
  .zd-panel .zp-el-related:hover{opacity:.92}
  .zd-panel .zp-btn[aria-disabled="true"]:hover{filter:none}
}

/* the real 1200px rule: the selected issue beside the list, sticky 12 real px under the column's top and at most the
   column's height (--zp-el-col, set by the page) less 24; the X instead of "Back to the list"; no issue: one column */
@container zp (min-width:80em){
  .zd-panel .zp-el-board{grid-template-columns:minmax(0,7fr) minmax(calc(340*var(--zp)),5fr)}
  .zd-panel .zp-el-board.zp-no-detail{grid-template-columns:minmax(0,1fr)}
  .zd-panel .zp-el-detail{border-top:0;border-left:1px solid var(--line);border-radius:0 1.067em 1.067em 0}
  .zd-panel .zp-el-detail-in{position:sticky;top:calc(12*var(--zp));max-height:calc(var(--zp-el-col) - 24*var(--zp));overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
  .zd-panel .zp-el-dhead .zp-el-dclose{display:inline-grid}
  .zd-panel .zp-el-detail .zp-el-back{display:none}
}

/* the real 720px and 700px rules: a page column of 668 real px or less */
@container zpc (max-width:44.533em){
  .zd-panel .zp-el-kpis{grid-template-columns:minmax(0,1fr)}
  .zd-panel .zp-el-kpi{grid-template-columns:auto minmax(0,1fr) auto;gap:0 .933em;padding:.8em .267em}
  .zd-panel .zp-el-kpi+.zp-el-kpi{border-left:0;border-top:1px solid var(--line)}
  .zd-panel .zp-el-kpi-icon{grid-row:auto;width:2.667em;height:2.667em}
  .zd-panel .zp-el-kpi-label{grid-column:2}
  .zd-panel .zp-el-kpi-value{grid-column:3;grid-row:1;flex-direction:column;align-items:flex-end;justify-content:flex-end;text-align:right}
  .zd-panel .zp-el-kpi-num{font-size:1.867em}
  .zd-panel .zp-el-kpi-unit{font-size:.833em}
  .zd-panel .zp-el-search{flex-basis:100%}
  .zd-panel .zp-el-toolbar>.zp-el-menu{position:static;flex:1 1 auto;min-width:0}
  .zd-panel .zp-el-toolbar>.zp-el-menu>.zp-el-mbtn{width:100%;min-width:0;justify-content:space-between}
  .zd-panel .zp-el-toolbar>.zp-el-menu>.zp-el-pop{left:0;right:0;width:auto;max-width:none}
  .zd-panel .zp-el-pane-head{padding:.267em 1.067em 0}
  .zd-panel :is(.zp-el-sub,.zp-el-group){padding-left:1.067em;padding-right:1.067em}
  .zd-panel :is(.zp-el-list-foot,.zp-el-logbar,.zp-el-pager){padding-left:1.231em;padding-right:1.231em}
  .zd-panel .zp-el-keep{padding-left:1.185em;padding-right:1.185em}
  .zd-panel .zp-el-cols,.zd-panel .zp-el-row>.zp-el-num{display:none}
  .zd-panel .zp-el-row{grid-template-columns:1.867em minmax(0,1fr);padding:.933em 1.067em}
  .zd-panel .zp-el-row-counts{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
  .zd-panel .zp-el-dbody{padding:1.067em}
  .zd-panel .zp-el-dhead{padding-left:1.143em}
  .zd-panel .zp-el-back{margin:.923em 1.231em 0}
  .zd-panel .zp-el .zp-el-dtitle{font-size:1.4em}
  .zd-panel .zp-el-dstats dd{font-size:1.6em}
  .zd-panel .zp-el-dstats dd.zp-is-time{font-size:1.2em}
  .zd-panel .zp-el-twin thead{display:none}
  .zd-panel .zp-el-twin :is(table,tbody,tr,th,td){display:block}
  .zd-panel .zp-el-twin tr{display:flex;flex-wrap:wrap;gap:.154em 1.077em;padding:.615em 0;border-bottom:1px solid var(--line)}
  .zd-panel .zp-el-twin :is(th,td){padding:0;border:0;text-align:left}
  .zd-panel .zp-el-twin th[scope="row"]{flex-basis:100%;color:var(--text);font-weight:600}
  .zd-panel .zp-el-twin td::before{content:attr(data-th) " ";color:var(--muted)}
  .zd-panel .zp-el-twin td.zp-is-zero{display:none}
  .zd-panel .zp-el-ctx{grid-template-columns:minmax(0,1fr)}
  .zd-panel .zp-el-ctx dt{padding:.769em 0 0;border-bottom:0;font-size:calc(13*var(--zp))}
  .zd-panel .zp-el-ctx dd{padding:.143em 0 .714em}
  .zd-panel .zp-el-cards :is(table,tbody,tr,td){display:block;min-width:0}
  .zd-panel .zp-el-cards thead{display:none}
  .zd-panel .zp-el-cards tr{margin-bottom:.667em;padding:.4em .667em;border:1px solid var(--line);border-radius:.667em;background:var(--bg-2)}
  .zd-panel .zp-el-cards td{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.533em;padding:.267em 0;border:0}
  .zd-panel .zp-el-cards td[data-th]::before{content:attr(data-th) "\00a0";font-weight:600}
  .zd-panel .zp-el-cards th[scope="row"]{display:block;min-width:0;padding:.267em 0;border:0}
  .zd-panel .zp-el-logs{padding:.714em .857em .143em}
  .zd-panel .zp-el-logs td{padding:.214em 0;border:0}
  .zd-panel .zp-el-logs :is(th,td):is(:first-child,:last-child){padding-left:0;padding-right:0}
  .zd-panel .zp-el-logs td:is(.zp-el-when,.zp-el-what,[data-th="Kind"])::before{content:none}
  .zd-panel .zp-el-logs td:is(.zp-el-what,.zp-el-tv){display:block}
  .zd-panel .zp-el-logs td.zp-el-what{padding:.429em 0}
  .zd-panel .zp-el-logs td.zp-el-tv::before{display:inline}
  .zd-panel .zp-el-logs td.zp-el-tv :is(small,button){display:block}
}
@container zpc (max-width:25.867em){
  .zd-panel .zp-el-dstats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zd-panel .zp-el-xaxis .zp-el-x-mid{visibility:hidden}
}
@media (pointer:coarse){
  .zd-panel .zp-el-chip{min-height:calc(40*var(--zp))}
  .zd-panel .zp-el-chip>button{width:calc(40*var(--zp));height:calc(40*var(--zp));margin-right:calc(-4*var(--zp))}
  .zd-panel :is(.zp-el-legend,.zp-el-now,.zp-el-ctx,.zp-el-note) button,.zd-panel .zp-el-linkbtn{display:inline-flex;align-items:center;min-height:calc(40*var(--zp))}
  .zd-panel .zp-el-tv button{display:flex;align-items:center;min-height:calc(40*var(--zp))}
  .zd-panel .zp-el-twin>summary{padding:.846em 0}
  .zd-panel .zp-el-logs .zp-o-details>summary{min-height:calc(40*var(--zp))}
  .zd-panel :is(.zp-el-tab,.zp-el-dtab,.zp-el-filter){min-height:calc(44*var(--zp))}
}
