@font-face{font-family:"Orbitron";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/586efa3c1c.woff2) format("woff2")}
@font-face{font-family:"Orbitron";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/e3065e0f51.woff2) format("woff2")}
@font-face{font-family:"Orbitron";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/76f9d4f33b.woff2) format("woff2")}
@font-face{font-family:"Orbitron";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/9820854994.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/68f645c6b6.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/6b66c741bf.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/e0d61f6dc5.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/5197a7aeb2.woff2) format("woff2")}
@font-face{font-family:"Didact Gothic";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/86ccc60897.woff2) format("woff2")}
@font-face{font-family:"Ubuntu Condensed";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/90a7d04493.woff2) format("woff2")}
/* ---------- design tokens (from the ALEXYS website) ---------- */
:root {
  --ink: #08194a; --night: #061024; --accent: #3266dd; --accent-deep: #2b56c4;
  --cyan: #66d4f0; --violet: #8655f6; --signal: linear-gradient(90deg, var(--cyan), var(--violet));
  --on-dark: #eaf7ff; --on-dark-muted: rgba(226, 238, 255, 0.72); --on-dark-faint: rgba(226, 238, 255, 0.5); --label: #cfe2fb;
  --glass: rgba(4, 10, 40, 0.62); --glass-strong: rgba(6, 13, 32, 0.74); --glass-line: rgba(140, 190, 255, 0.16);
  --pill: rgba(255, 255, 255, 0.08); --pill-line: rgba(150, 200, 255, 0.26); --pill-line-strong: rgba(160, 205, 255, 0.45);
  --primary: linear-gradient(135deg, #3266dd 0%, #5a5cf0 55%, #8655f6 100%);
  --call: #3ddc97; --assist: #ffd23f; --bedexit: #66d4f0; --emergency: #ff4d6d; --duress: #b18cff;
  --display: "Orbitron", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rail-w: clamp(212px, 14vw, 262px);
  --radius: 18px;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* the kit is a dark, on-brand showcase in either system theme */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --night: #061024; --on-dark: #eaf7ff; color-scheme: dark; } }
:root[data-theme="dark"] { --night: #061024; --on-dark: #eaf7ff; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  height: 100%; margin: 0; overflow: hidden; background: var(--night); color: var(--on-dark);
  font: 400 15px/1.45 var(--body); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
.eyebrow, .unit figcaption, .rail h2 {
  font: 600 10.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.2em; color: var(--label);
}

/* ---------- background: still artwork + gentle wave (WebGL) + legibility scrim ---------- */
.bg-still { position: fixed; inset: 0; z-index: -3; background: var(--night) url("../images/58450eb099.jpg") center / cover no-repeat; }
.bg-wave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.bg-wave.is-ready { opacity: 1; }
.bg-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(50, 102, 221, 0.14) 0%, rgba(6, 16, 36, 0) 60%),
              linear-gradient(90deg, rgba(4, 9, 26, 0.55) 0%, rgba(4, 9, 26, 0.18) 34%, rgba(4, 9, 26, 0.12) 60%, rgba(4, 9, 26, 0.4) 100%); }

.app { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); height: 100%; position: relative; }

/* ---------- product rail (dark glass, like the site header) ---------- */
.rail {
  display: flex; flex-direction: column; gap: 18px; padding: 22px 12px 16px; overflow: hidden; min-height: 0;
  background: var(--glass-strong); border-right: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.logo { display: block; flex: none; width: calc(100% - 16px); max-width: 220px; height: auto; margin: 0 8px; }
.rail-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 18px;
  margin: 0 -6px; padding: 6px 6px 10px; scrollbar-width: thin; scrollbar-color: rgba(150, 200, 255, 0.28) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
}
.rail-scroll::-webkit-scrollbar { width: 6px; }
.rail-scroll::-webkit-scrollbar-thumb { background: rgba(150, 200, 255, 0.28); border-radius: 6px; }
.rail h2 { margin: 0 10px 10px; display: flex; align-items: center; gap: 10px; }
.rail h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(102, 212, 240, 0.5), rgba(134, 85, 246, 0)); }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prod {
  position: relative; width: 100%; min-height: 54px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  text-align: left; padding: 7px 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.prod[aria-current="true"] {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(160, 205, 255, 0.3);
  box-shadow: 0 10px 30px -12px rgba(50, 102, 221, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.prod[aria-current="true"]::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px rgba(102, 212, 240, 0.7); }
.prod-icon svg { width: 34px; height: 34px; display: block; color: #9fb7e0; }
.prod-text { display: grid; gap: 2px; min-width: 0; }
.prod-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; color: var(--on-dark); }
.prod-note { font-size: 11.5px; color: var(--on-dark-faint); line-height: 1.3; }
.prod-note.is-pending { font-style: italic; }
.prod-live { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: linear-gradient(135deg, #ff4d6d, #ff7a59); color: #fff; font: 600 11px/22px var(--display); text-align: center; box-shadow: 0 0 14px rgba(255, 77, 109, 0.55); }
.rail-foot { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
.btn {
  min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  background: var(--pill); border: 1px solid var(--pill-line-strong); color: #eaf4ff; font: 500 13.5px/1 var(--body);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .prod:hover { background: rgba(255, 255, 255, 0.05); }
  .btn:hover { background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 20px rgba(102, 212, 240, 0.25); }
}

/* ---------- main scene ---------- */
.main {
  position: relative; min-height: 0; display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(16px, 2.4vw, 56px); row-gap: clamp(12px, 2.2vh, 26px);
  padding: clamp(14px, 2.6vh, 34px) clamp(16px, 2.4vw, 44px) clamp(12px, 2.4vh, 28px) clamp(16px, 2vw, 36px);
}
.flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; overflow: visible; }
.flow-path { fill: none; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); opacity: 0.9; transition: opacity 0.6s; }
.flow-dot { filter: drop-shadow(0 0 8px #fff); transition: opacity 0.6s; }
.flow-path.is-done, .flow-dot.is-done { opacity: 0; }

.stage-wrap { position: relative; min-height: 0; grid-column: 1; grid-row: 1; }
three-d-stage { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 94%, transparent 100%); mask-image: linear-gradient(to bottom, #000 94%, transparent 100%); }
three-d-stage:not(:defined) { visibility: hidden; }
.stage-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: flex-start; gap: 12px; pointer-events: none; }
.stage-top .chip { margin-left: auto; }
.stage-name {
  margin: 0; min-width: 0; font: 500 clamp(18px, 1.6vw, 26px)/1.15 var(--display); letter-spacing: -0.005em;
  background: linear-gradient(90deg, #f2f7ff 0%, #bfe6ff 55%, #b9a6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage-name::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--signal); box-shadow: 0 0 10px rgba(102, 212, 240, 0.6); }
/* "how to demo" card in the rail */
.howto { margin: 0 2px; padding: 14px 14px 15px; border-radius: 16px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--glass-line); position: relative; }
.howto::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--signal); opacity: 0.85; }
.howto .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 9.5px; }
.howto .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.howto h1 {
  margin: 8px 0 0; font: 500 14px/1.25 var(--display);
  background: linear-gradient(90deg, #f2f7ff 0%, #bfe6ff 60%, #b9a6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.howto p { margin: 7px 0 0; font-size: 12px; line-height: 1.45; color: var(--on-dark-muted); }
.seg {
  display: flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--pill-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.seg button {
  min-height: 38px; border: 0; background: transparent; color: var(--on-dark-muted); padding: 0 16px; border-radius: 999px;
  font: 600 10.5px/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: 0 0 18px rgba(90, 92, 240, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.fs-btn {
  min-height: 46px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px 0 15px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--pill-line-strong); color: #eaf4ff;
  font: 600 10.5px/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s, box-shadow 0.2s;
}
.fs-btn svg { width: 17px; height: 17px; }
.fs-btn .fs-out, .fs-btn[aria-pressed="true"] .fs-in { display: none; }
.fs-btn[aria-pressed="true"] .fs-out { display: block; }
@media (hover: hover) { .fs-btn:hover { background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 20px rgba(102, 212, 240, 0.3); } }
.toast {
  position: absolute; left: 50%; bottom: clamp(90px, 14vh, 130px); z-index: 20; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px));
  padding: 12px 18px; border-radius: 14px; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--on-dark);
  background: rgba(6, 13, 32, 0.92); border: 1px solid rgba(102, 212, 240, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(102, 212, 240, 0.15);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(102, 212, 240, 0.12); border: 1px solid rgba(102, 212, 240, 0.55); color: #d8f5ff; font: 600 10.5px/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; box-shadow: 0 0 16px rgba(102, 212, 240, 0.25); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1s infinite; }
.stage-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; color: var(--on-dark-muted); padding: 24px; z-index: 1; }
.stage-msg strong { color: #fff; font: 500 20px/1.2 var(--display); }
.stage-msg span { max-width: 34ch; }
.hold-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.hold-ring { position: absolute; left: 0; top: 0; z-index: 4; width: 100px; height: 100px; margin: -50px 0 0 -50px; pointer-events: none; display: grid; place-items: center; }
.hold-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--hc, #fff) calc(var(--p, 0) * 1turn), rgba(5, 12, 31, 0.6) 0);
  -webkit-mask: radial-gradient(circle, transparent 38px, #000 39px); mask: radial-gradient(circle, transparent 38px, #000 39px);
  filter: drop-shadow(0 0 8px var(--hc, #fff));
}
.hold-ring span { position: absolute; top: 100%; margin-top: 10px; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: rgba(5, 12, 31, 0.9); border: 1px solid var(--hc, #fff); color: #fff; font: 600 10.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.12em; }
.sr-press { position: absolute; left: 0; top: 10px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.sr-press button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.sr-press button:focus-visible { position: static; width: auto; height: auto; clip: auto; overflow: visible; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }

/* ---------- outputs: glass cards like the website's framework cards ---------- */
.screens { grid-column: 2; grid-row: 1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(14px, 2.4vh, 24px); }
.unit { margin: 0; min-height: 0; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 9px; }
.unit figcaption { display: flex; align-items: center; gap: 8px; }
.unit figcaption::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--signal); }
.card {
  position: relative; min-height: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: var(--signal); opacity: 0.85; z-index: 1; }
.outputs { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(12px, 1.4vw, 20px); row-gap: 9px; }
.outputs .unit { grid-row: 1 / 3; grid-template-rows: subgrid; gap: 0; }
.outputs .unit figcaption { font-size: 9.5px; letter-spacing: 0.13em; align-items: flex-end; }
.outputs .unit figcaption::before { width: 10px; flex: none; margin-bottom: 4px; }

.screen { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.scr-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--glass-line); }
.scr-title { display: grid; gap: 3px; line-height: 1.15; margin-right: auto; min-width: 0; }
.scr-title strong { font: 500 15px/1.1 var(--display); color: #fff; }
.scr-title span { font-size: 12.5px; color: var(--on-dark-faint); }
.sound { min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--pill-line); background: var(--pill); color: var(--on-dark-muted); font: 500 12.5px/1 var(--body); }
.sound svg { width: 15px; height: 15px; }
.sound[aria-pressed="false"] .wave { display: none; }
.sound[aria-pressed="true"] .mute { display: none; }
#clock { font: 500 21px/1 var(--display); color: #fff; letter-spacing: 0.04em; }
.calls { min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: rgba(150, 200, 255, 0.3) transparent; }
.call-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.call {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding-right: 16px; min-height: 56px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(140, 190, 255, 0.12); overflow: hidden;
}
.call.t-assist { animation: flash 1s steps(1) infinite; --f: rgba(255, 210, 63, 0.14); }
.call.t-emergency { animation: flash 0.6s steps(1) infinite; --f: rgba(255, 77, 109, 0.2); }
.call-bar { align-self: stretch; background: var(--c); box-shadow: 0 0 16px var(--c); }
.call-what { display: grid; gap: 3px; line-height: 1.15; min-width: 0; }
.call-what strong { color: var(--c); font: 600 14.5px/1.1 var(--display); letter-spacing: 0.02em; }
.call-what span { color: var(--on-dark-faint); font-size: 12.5px; }
.call-from { color: var(--on-dark-faint); font-size: 12.5px; text-align: right; }
.call .age { font: 500 17px/1 var(--display); color: #fff; min-width: 3.4em; text-align: right; letter-spacing: 0.04em; }
@keyframes flash { 50% { background: var(--f); } }
@keyframes blink { 50% { opacity: 0.25; } }
.all-clear { height: 100%; min-height: 110px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--on-dark-faint); }
.all-clear svg { width: 36px; height: 36px; color: var(--call); filter: drop-shadow(0 0 10px rgba(61, 220, 151, 0.5)); margin-bottom: 4px; }
.all-clear strong { color: #fff; font: 500 18px/1.2 var(--display); }
.all-clear span { font-size: 13px; }
.scr-log { border-top: 1px solid var(--glass-line); padding: 10px 16px 12px; }
.scr-log h3 { margin: 0 0 6px; font: 600 10px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.18em; color: var(--label); }
#log { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; max-height: 6.2em; overflow: hidden; font-size: 12.5px; line-height: 1.5; }
#log li { display: grid; grid-template-columns: 5.2em 8px minmax(0, 1fr); gap: 8px; align-items: center; color: var(--on-dark-muted); }
#log li.is-empty { display: block; color: var(--on-dark-faint); }
#log time { font: 500 10.5px/1 var(--display); color: var(--on-dark-faint); letter-spacing: 0.04em; }
#log .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(160, 190, 230, 0.6); }
#log span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#log .k-call .dot { background: var(--call); box-shadow: 0 0 6px var(--call); } #log .k-assist .dot { background: var(--assist); box-shadow: 0 0 6px var(--assist); }
#log .k-bedexit .dot { background: var(--bedexit); box-shadow: 0 0 6px var(--bedexit); } #log .k-emergency .dot { background: var(--emergency); box-shadow: 0 0 6px var(--emergency); }

/* mini annunciator: a light device screen inside the glass card */
.mini-card { padding: 10px; display: grid; }
.mini-screen { height: 100%; min-height: 0; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #f5f8ff, #e6eefc); color: var(--ink); display: grid; container-type: inline-size; box-shadow: inset 0 0 0 1px rgba(8, 25, 74, 0.1); }
.mini-screen.is-idle { place-content: center; text-align: center; }
.mini-clock { font: 600 clamp(28px, 20cqw, 60px)/1 var(--display); background: linear-gradient(90deg, var(--accent), #6b4ef0); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0.02em; }
.mini-date { margin-top: 8px; font: 600 10px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.16em; color: rgba(8, 25, 74, 0.6); }
.mini-screen:not(.is-idle) { grid-template-rows: auto 1fr auto; }
.mini-bar { background: var(--c); color: var(--ink); font: 600 11px/1.2 var(--display); letter-spacing: 0.1em; padding: 8px 12px; }
.mini-screen.t-emergency .mini-bar { animation: blink 0.6s steps(1) infinite; color: #fff; }
.mini-type { display: grid; place-items: center; font: 700 min(34px, calc(88cqw / var(--len, 6))) / 1 var(--display); letter-spacing: 0.04em; color: var(--ink); }
.mini-foot { display: flex; justify-content: space-between; padding: 7px 12px; font: 500 11px/1 var(--display); color: rgba(8, 25, 74, 0.62); letter-spacing: 0.04em; }
.mini-foot .age { font-weight: 600; color: var(--ink); }

/* overdoor light */
.door-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 12px 10px 10px; background: radial-gradient(90% 70% at 50% 35%, rgba(50, 102, 221, 0.2), transparent 70%), var(--glass); }
#door { width: 100%; max-width: 180px; height: auto; max-height: 100%; overflow: visible; }
#door .seg-path { fill: rgba(220, 232, 255, 0.16); stroke: rgba(160, 200, 255, 0.45); stroke-width: 0.8; transition: fill 0.2s, filter 0.2s; }
#door .door-base { fill: rgba(220, 232, 255, 0.85); stroke: rgba(160, 200, 255, 0.6); }
#door .seg-green.is-on { fill: var(--call); filter: drop-shadow(0 0 10px var(--call)); }
#door .seg-amber.is-on { fill: var(--assist); filter: drop-shadow(0 0 10px var(--assist)); }
#door .seg-red.is-on { fill: var(--emergency); filter: drop-shadow(0 0 12px var(--emergency)); }
#door.is-flash .seg-red.is-on { animation: blink 0.6s steps(1) infinite; }
#door-room { font: 600 10px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.16em; color: var(--label); text-align: center; }

/* nurse phone */
.phone-card { display: grid; place-items: center; padding: 10px; container-type: size; }
.phone { height: min(100cqh, calc(100cqw * 16 / 9)); width: auto; aspect-ratio: 9 / 16; container-type: inline-size; border-radius: 20px; padding: 6px; background: linear-gradient(160deg, #2c3550, #0d1222); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 34px rgba(0, 0, 0, 0.45); }
.phone.buzz { animation: buzz 0.5s linear 2; }
@keyframes buzz { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px) rotate(-1deg); } 40% { transform: translateX(3px) rotate(1deg); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.phone-screen { height: 100%; border-radius: 15px; overflow: hidden; background: linear-gradient(180deg, #0b1636, #060d22); display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.phone-status { display: flex; justify-content: space-between; padding: 7px 10px 3px; font: 500 9px/1 var(--display); color: var(--on-dark-faint); letter-spacing: 0.06em; }
.phone-app { padding: 4px 10px 7px; font: 600 11px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.14em; color: #fff; border-bottom: 1px solid var(--glass-line); }
#phone-list { list-style: none; margin: 0; padding: 6px; display: grid; align-content: start; gap: 5px; overflow: hidden; }
#phone-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px; padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border-left: 3px solid var(--c); }
#phone-list li strong { color: var(--c); font: 600 10.5px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#phone-list li span { grid-column: 1; font-size: 11px; color: var(--on-dark-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#phone-list li .age { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 11px/1 var(--display); color: #fff; }
/* narrow phones: type on its own line, timer underneath */
@container (max-width: 140px) {
  #phone-list li { grid-template-columns: minmax(0, 1fr); padding: 5px 6px; }
  #phone-list li strong { font-size: clamp(8px, 8.6cqw, 10.5px); }
  #phone-list li span { display: none; }
  #phone-list li .age { grid-row: auto; grid-column: 1; font-size: clamp(8px, 8cqw, 10px); color: var(--on-dark-muted); }
  .phone-status span { display: none; }
}
#phone-list li.is-empty { display: block; border-left: 0; background: none; text-align: center; color: var(--on-dark-faint); font-size: 12px; padding-top: 24px; }

/* ---------- accessories ---------- */
.accessories {
  grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: var(--radius);
  background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.acc-head h2 { margin: 0 0 4px; font: 500 14px/1.2 var(--display); color: #fff; letter-spacing: 0.02em; }
.acc-head p { margin: 0; font-size: 12px; color: var(--on-dark-faint); }
.bar-tools { display: flex; align-items: center; gap: 8px; }
.acc-head p { max-width: 24ch; }
.acc-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 270px); gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.acc {
  min-height: 54px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 8px 10px 8px 12px; border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--glass-line);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.acc-icon svg { width: 34px; height: 34px; display: block; color: #9fb7e0; }
.acc-text { display: grid; gap: 2px; min-width: 0; }
.acc-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; color: var(--on-dark); }
.acc-note { font-size: 11.5px; line-height: 1.3; color: var(--on-dark-faint); }
.acc-state { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pill); border: 1px solid var(--pill-line-strong); color: #eaf4ff; transition: background 0.2s, box-shadow 0.2s; }
.acc-state svg { width: 14px; height: 14px; }
.acc.is-on { background: rgba(102, 212, 240, 0.08); border-color: rgba(102, 212, 240, 0.55); box-shadow: 0 0 22px rgba(102, 212, 240, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.acc.is-on .acc-state { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(90, 92, 240, 0.6); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acc:disabled { cursor: not-allowed; opacity: 0.45; }
.acc-empty { margin: 0; color: var(--on-dark-faint); font-size: 13.5px; }
@media (hover: hover) { .acc:hover:not(:disabled) { border-color: var(--pill-line-strong); background: rgba(255, 255, 255, 0.07); } }

@media (prefers-reduced-motion: reduce) {
  .call.t-assist, .call.t-emergency, .chip i, .mini-screen.t-emergency .mini-bar { animation: none; }
  .call.t-assist, .call.t-emergency { background: var(--f); }
}


/* ---------- mode switch (sidebar) ---------- */
.mode-switch { flex: none; margin: 0 2px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; }
.mode-switch .mode-wide { grid-column: 1 / -1; }
.mode-switch button { flex: 1; min-height: 40px; }

/* ---------- panel mode ---------- */
:root[data-mode="panel"] .stage-wrap, :root[data-mode="panel"] .screens, :root[data-mode="panel"] .accessories { display: none; }
:root[data-mode="panel"] .main { grid-template-rows: minmax(0, 1fr); padding: clamp(10px, 1.8vh, 22px) clamp(10px, 1.2vw, 20px); }
.panel-view { grid-column: 1 / -1; grid-row: 1 / -1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 14vw, 270px); gap: clamp(10px, 1vw, 16px); }
.board { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px; min-height: 0; }
.board-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 2px 4px 0 6px; }
.board-head .fs-btn { min-height: 40px; }
.board-title { margin-right: auto; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.board-title .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.board-title .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.board-title h2 { margin: 0; font: 500 clamp(16px, 1.3vw, 21px)/1.1 var(--display); background: linear-gradient(90deg, #f2f7ff 0%, #bfe6ff 55%, #b9a6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font: 600 9.5px/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em; color: var(--label); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.board-grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); column-gap: clamp(6px, 0.6vw, 10px); row-gap: clamp(12px, 1.4vh, 16px); }
.panel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.slot {
  position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 8px 0 10px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)); border: 1px solid var(--glass-line);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.slot-cap { padding: 0 8px; position: relative; z-index: 2; display: grid; gap: 3px; pointer-events: none; }
.slot-place { font: 600 9.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.13em; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-name { font-size: 12px; color: var(--on-dark-faint); }
.slot-view { position: relative; z-index: 2; min-height: 0; touch-action: none; -webkit-touch-callout: none; }
.slot-state { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 3; display: none; padding: 5px 9px; border-radius: 999px; font: 700 9px/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); background: var(--c, var(--cyan)); box-shadow: 0 0 14px var(--c, var(--cyan)); }
.slot.is-live .slot-state, .slot.is-cleaning .slot-state { display: block; }
.slot.is-cleaning { --c: var(--cyan); }
.slot.is-live { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 0 30px color-mix(in srgb, var(--c) 28%, transparent); }
.slot.is-urgent { animation: urgent 1.1s ease-in-out infinite; }
@keyframes urgent { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 44px color-mix(in srgb, var(--c) 55%, transparent); } }
.board-grid .hold-ring { z-index: 4; }

.panel-side { min-height: 0; display: grid; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(14px, 2.4vh, 24px); }
.panel-side .unit { grid-template-rows: auto minmax(0, 1fr); }
/* mini annunciator (panel) */
.pa-card { padding: 12px; display: grid; }
.pa-screen { height: 100%; min-height: 0; border-radius: 12px; overflow: hidden; display: grid; container-type: inline-size; color: var(--ink);
  background: linear-gradient(180deg, #f6f9ff, #e4ecfb); box-shadow: inset 0 0 0 1px rgba(8, 25, 74, 0.1), inset 0 10px 30px rgba(255, 255, 255, 0.6); }
.pa-screen.is-idle { place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 16px; }
.pa-clock { font: 600 clamp(40px, 26cqw, 96px)/1 var(--display); letter-spacing: 0.02em; background: linear-gradient(90deg, var(--accent), #6b4ef0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pa-date { font: 600 clamp(10px, 4.2cqw, 13px)/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: rgba(8, 25, 74, 0.62); }
.pa-clear { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgba(61, 220, 151, 0.14); color: #0c6b45; font: 700 9.5px/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em; }
.pa-clear i { width: 7px; height: 7px; border-radius: 50%; background: var(--call); box-shadow: 0 0 6px var(--call); }
.pa-screen:not(.is-idle) { grid-template-rows: auto minmax(0, 1fr) auto; }
.pa-bar { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--c); color: var(--ink); font: 700 11px/1.2 var(--display); letter-spacing: 0.1em; }
.pa-screen.t-emergency .pa-bar, .pa-screen.t-duress .pa-bar { animation: blink 0.6s steps(1) infinite; color: #fff; }
.pa-bar span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-bar span:last-child { white-space: nowrap; flex: none; }
@container (max-width: 240px) {
  .pa-screen .pa-bar { font-size: 9.5px; letter-spacing: 0.06em; padding: 8px 10px; }
  .pa-screen .pa-meta { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .pa-screen .pa-queue { padding: 6px 6px 8px; }
}
.pa-main { display: grid; place-content: center; justify-items: center; gap: 10px; padding: 10px; }
.pa-type { font: 700 min(52px, calc(86cqw / var(--len, 6)))/1 var(--display); letter-spacing: 0.04em; }
.pa-meta { display: flex; gap: 12px; align-items: baseline; font-size: 12px; color: rgba(8, 25, 74, 0.62); }
.pa-meta .age { font: 600 15px/1 var(--display); color: var(--ink); }
.pa-queue { list-style: none; margin: 0; padding: 6px 10px 10px; display: grid; gap: 5px; border-top: 1px solid rgba(8, 25, 74, 0.1); }
.pa-queue li { display: grid; grid-template-columns: 8px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(8, 25, 74, 0.05); font-size: 12px; }
.pa-queue i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pa-queue b { font: 700 10.5px/1 var(--display); letter-spacing: 0.04em; }
.pa-queue span { color: rgba(8, 25, 74, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-queue time { font: 600 11px/1 var(--display); }
/* overdoor light (panel): frosted lens that glows in the call colour */
.dl-card { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; padding: 18px 16px 14px;
  background: radial-gradient(80% 60% at 50% 40%, rgba(50, 102, 221, 0.16), transparent 70%), var(--glass); }
.dl-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(60% 55% at 50% 42%, color-mix(in srgb, var(--c, #fff) 38%, transparent), transparent 75%); }
.dl-card.is-on::after { opacity: 1; }
.dl { height: 100%; max-height: 300px; min-height: 0; aspect-ratio: 0.64; display: grid; position: relative; z-index: 1; }
.dl-housing { border-radius: 18%/12%; padding: 10%; background: linear-gradient(160deg, #f8fafd, #d4dae4); display: grid;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 #fff, inset 0 -3px 8px rgba(0, 0, 0, 0.14); }
.dl-lens { border-radius: 14%/9%; transition: background 0.3s, box-shadow 0.3s;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 55%, #e1e7ef 100%); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.12), inset 0 -10px 22px rgba(255, 255, 255, 0.7); }
.dl.is-on .dl-lens {
  background: radial-gradient(75% 55% at 50% 38%, #ffffff 0%, color-mix(in srgb, var(--c) 45%, #fff) 30%, var(--c) 72%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  box-shadow: 0 0 34px var(--c), 0 0 90px color-mix(in srgb, var(--c) 60%, transparent), inset 0 0 18px rgba(255, 255, 255, 0.55); }
.dl.is-flash .dl-lens { animation: dlflash 0.7s steps(1) infinite; }
@keyframes dlflash { 50% { background: linear-gradient(180deg, #ffffff 0%, #eef2f7 55%, #e1e7ef 100%); box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.12); } }
.dl-caption { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; }
.dl-caption strong { text-align: center; font: 600 13px/1.15 var(--display); letter-spacing: 0.06em; color: var(--c, #fff); text-transform: uppercase; }
.dl-card:not(.is-on) .dl-caption strong { color: var(--on-dark-faint); }
.dl-caption span { font-size: 12px; color: var(--on-dark-muted); text-align: center; }
#door-card { padding: 14px 10px 12px; }
#door-card .dl { height: auto; width: min(100%, 150px); max-height: 100%; align-self: center; justify-self: center; }
#door-card #door-room { font: 400 12px/1.3 var(--body); text-transform: none; letter-spacing: 0; color: var(--on-dark-muted); padding: 0; }
#door-card .dl-caption strong { font-size: 11.5px; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { .slot.is-urgent, .pa-screen.t-emergency .pa-bar, .pa-screen.t-duress .pa-bar, .dl.is-flash .dl-lens { animation: none; } }
@media (max-width: 1280px) { .panel-view { grid-template-columns: minmax(0, 1fr) 200px; } .legend { display: none; } }
@media (max-width: 1500px) { .slot-num small { display: none; } .slot-place { letter-spacing: 0.06em; font-size: 9px; } .slot-cap { padding: 0 4px; } }
@media (max-width: 900px) {
  :root[data-mode="panel"] .main { grid-template-rows: auto; }
  .panel-view { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, 300px); flex: none; }
  .panel-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 300px; }
}


/* ======================= design pass ======================= */
/* quieter section labels */
.unit figcaption { color: rgba(207, 226, 251, 0.62); letter-spacing: 0.16em; }
.unit figcaption::before { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(102, 212, 240, 0.8); }
.outputs .unit figcaption::before { width: 5px; height: 5px; margin-bottom: 3px; }
.unit.large { grid-template-rows: minmax(0, 1fr); }
.scr-title strong { font-size: 14px; letter-spacing: 0.02em; }

/* glass with a soft top sheen */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 38%), var(--glass); }

/* showroom light behind the product */
.stage-wrap::before {
  content: ""; position: absolute; inset: 4% 6% 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 46% at 50% 46%, rgba(110, 150, 255, 0.20), rgba(110, 150, 255, 0) 70%),
    radial-gradient(34% 7% at 50% 93%, rgba(102, 212, 240, 0.22), rgba(102, 212, 240, 0) 100%);
}
three-d-stage { z-index: 1; }
.slot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(55% 42% at 50% 54%, rgba(110, 150, 255, 0.17), rgba(110, 150, 255, 0) 72%),
              radial-gradient(40% 5% at 50% 90%, rgba(102, 212, 240, 0.18), rgba(102, 212, 240, 0) 100%);
}

/* dark display screens with luminous digits (mini annunciators) */
.mini-screen, .pa-screen {
  color: var(--on-dark);
  background: radial-gradient(120% 80% at 50% 0%, #13265a 0%, #081232 55%, #050b1f 100%);
  box-shadow: inset 0 0 0 1px rgba(140, 190, 255, 0.2), inset 0 0 40px rgba(50, 102, 221, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.mini-clock, .pa-clock {
  background: linear-gradient(90deg, #8fe3ff 0%, #66d4f0 35%, #8a7dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(102, 212, 240, 0.35));
}
.mini-date, .pa-date { color: rgba(207, 226, 251, 0.7); }
.mini-type, .pa-type { color: var(--c); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 55%, transparent)); }
.mini-foot { color: var(--on-dark-faint); }
.mini-foot .age, .pa-meta .age { color: #fff; }
.mini-bar, .pa-bar { box-shadow: 0 6px 24px color-mix(in srgb, var(--c) 40%, transparent); }
.pa-meta { color: var(--on-dark-faint); }
.pa-clear { background: rgba(61, 220, 151, 0.12); color: #8ff0c4; border: 1px solid rgba(61, 220, 151, 0.35); }
.pa-queue { border-top-color: rgba(140, 190, 255, 0.14); }
.pa-queue li { background: rgba(255, 255, 255, 0.05); }
.pa-queue span { color: var(--on-dark-faint); }
.pa-queue b { color: var(--c); }
.pa-queue time { color: #fff; }

/* panel tiles: numbered like the website's sections */
.slot-cap { grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
.slot-place { grid-column: 1; }
.slot-name { grid-column: 1; }
.slot-num { grid-column: 2; grid-row: 1 / 3; align-self: start; font: 700 13px/1 var(--display); color: rgba(234, 247, 255, 0.85); letter-spacing: 0.02em; }
.slot-num small { font-size: 9px; font-weight: 500; color: var(--on-dark-faint); margin-left: 1px; }
.slot { border-color: rgba(140, 190, 255, 0.12); }

/* sidebar: icons on the mode switch */
.mode-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 0 6px; letter-spacing: 0.08em; font-size: 10px; }
.mode-switch svg { width: 14px; height: 14px; flex: none; }
.rail { overflow-x: hidden; }

/* motion: views ease in when you switch, buttons respond to a press */
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: none; } }
.panel-view:not([hidden]), :root[data-mode="product"] .stage-wrap, :root[data-mode="product"] .screens, :root[data-mode="product"] .accessories { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
:root[data-mode="product"] .screens { animation-delay: 0.06s; }
:root[data-mode="product"] .accessories, .panel-side { animation-delay: 0.12s; }
.panel-side { animation: rise 0.5s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.btn, .fs-btn, .seg button, .acc, .prod, .sound { transition: transform 0.12s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s; }
.btn:active, .fs-btn:active, .seg button:active, .acc:active:not(:disabled), .prod:active, .sound:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .panel-view:not([hidden]), .panel-side, :root[data-mode="product"] .stage-wrap, :root[data-mode="product"] .screens, :root[data-mode="product"] .accessories { animation: none; }
}

/* clear all (panel) */
.clear-btn {
  min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 13px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 77, 109, 0.14); border: 1px solid rgba(255, 77, 109, 0.6); color: #ffd6de;
  font: 600 10.5px/1 var(--display); text-transform: uppercase; letter-spacing: 0.14em; box-shadow: 0 0 18px rgba(255, 77, 109, 0.25);
  transition: transform 0.12s ease, background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.clear-btn svg { width: 15px; height: 15px; }
.clear-btn:active:not(:disabled) { transform: scale(0.97); }
.clear-btn:disabled { cursor: default; opacity: 0.4; background: var(--pill); border-color: var(--pill-line); color: var(--on-dark-muted); box-shadow: none; }
@media (hover: hover) { .clear-btn:not(:disabled):hover { background: rgba(255, 77, 109, 0.24); box-shadow: 0 0 24px rgba(255, 77, 109, 0.4); } }

/* annunciator call list: type and time, with the room underneath */
.pa-screen .pa-queue li { grid-template-columns: 8px minmax(0, 1fr) auto; grid-template-areas: "dot type time" "dot room room"; gap: 2px 8px; align-items: center; padding: 6px 9px 7px; }
.pa-screen .pa-queue i { grid-area: dot; align-self: start; margin-top: 2px; }
.pa-screen .pa-queue b { grid-area: type; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-screen .pa-queue span { grid-area: room; display: block; font-size: 11.5px; color: var(--on-dark-muted); }
.pa-screen .pa-queue time { grid-area: time; }

/* ======================= client annunciator display ======================= */
/* drawn at its native size (2560×480 or 1024×600) and scaled to fit its slot */
.ann-host { position: relative; overflow: hidden; min-height: 0; }
.ann-host.is-openable { cursor: zoom-in; }
.ann-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; border-radius: 6px; font-family: Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.ann-canvas.is-dark { background: #212121; --surface: #2c2c2c; --label: #6fe8fc; --value: #ffffff; }
.ann-canvas.is-light { background: #d9d9d9; --surface: #fffcfc; --label: #0000ff; --value: #000000; }
.ann-calls { position: absolute; left: 0; top: 0; overflow: hidden; }
.ann-track { position: absolute; left: 0; top: 0; right: 0; will-change: transform; }
.ann-card { position: absolute; border-radius: 8px; overflow: hidden; background: var(--bg); color: #fff;
  box-shadow: inset 3px 3px 6px rgba(255, 255, 255, 0.28), 5px 6px 12px rgba(0, 0, 0, 0.55); }
.ann-body { display: grid; place-items: center; padding: 0 16px; }
.ann-body span { font-weight: 700; white-space: nowrap; line-height: 1; letter-spacing: -0.01em; }
.ann-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0.2) 100%); border-top: 1.5px solid rgba(90, 140, 230, 0.75); }
.ann-foot.is-esc { border-top-color: rgba(0, 0, 0, 0.25); }
.ann-sub { font-weight: 500; white-space: nowrap; line-height: 1; overflow: hidden; }
.ann-age { font-weight: 700; white-space: nowrap; line-height: 1; text-align: right; flex: none; }
/* HD strip: status column on the right */
.ann-hd .ann-strip { position: absolute; right: 12px; top: 10px; bottom: 10px; width: 248px; border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 18px 16px; }
.ann-hd .ann-clock { font: 700 46px/1 Inter, sans-serif; color: var(--value); padding-bottom: 12px; border-bottom: 2.5px solid var(--label); width: 100%; text-align: center; }
.ann-hd .ann-stat { width: 100%; display: grid; justify-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 2.5px solid var(--label); }
.ann-hd .ann-stat:last-of-type { border-bottom: 0; }
.ann-hd .ann-stat span { font: 700 18px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); }
.ann-hd .ann-stat b { font: 700 34px/1 Inter, sans-serif; color: var(--value); }
.ann-dots { display: flex; gap: 10px; justify-content: center; }
.ann-dot { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #000; color: #fff; font: 700 14px/32px Inter, sans-serif; }
.ann-dot.is-on { background: var(--label); color: #000; }
.ann-canvas.is-light .ann-dot.is-on { color: #fff; }
/* tablet: status bar along the bottom */
.ann-tablet .ann-strip { position: absolute; left: 8px; right: 8px; bottom: 8px; top: calc(83% + 6px); border-radius: 14px; background: var(--surface); display: flex; align-items: stretch; padding: 10px 14px; }
.ann-tablet .ann-strip > * { display: grid; place-items: center; text-align: center; }
.ann-tablet .ann-logo { width: 80px; flex: none; }
.ann-tablet .ann-logo img { width: 40px; height: 40px; }
.ann-tablet .ann-date { flex: none; padding: 0 22px 0 10px; font: 700 16px/1.15 Inter, sans-serif; color: var(--value); border-right: 2px solid var(--label); }
.ann-tablet .ann-stat { flex: 1; grid-template-rows: auto 1fr; gap: 8px; border-right: 2px solid var(--label); padding: 2px 6px; }
.ann-tablet .ann-stat span { font: 700 12.5px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label); }
.ann-tablet .ann-stat b { font: 700 21px/1 Inter, sans-serif; color: var(--value); align-self: end; }
.ann-tablet .ann-pages { border-right: 2px solid var(--label); }
.ann-tablet .ann-dot { width: 26px; height: 26px; font-size: 12px; line-height: 26px; }
.ann-tablet .ann-clock { flex: none; padding: 0 12px 0 22px; font: 700 30px/1 Inter, sans-serif; color: var(--value); }
/* idle clock */
.ann-idle { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 90px 0 0; }
.ann-idle-time { font: 700 216px/1 Inter, sans-serif; color: #6fe8fc; text-align: center; letter-spacing: -0.01em; }
.ann-idle-date { font: 700 64px/1.02 Inter, sans-serif; color: #fef100; text-align: center; text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5); }
.ann-idle.is-tablet { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; justify-items: center; gap: 18px; padding: 0; }
.ann-idle.is-tablet .ann-idle-time { font-size: 200px; }
.ann-idle.is-tablet .ann-idle-date { font-size: 44px; }

/* slots for the display in the product view and panel */
.ann-slot { position: relative; min-height: 0; height: 100%; }
.unit.large .screen { grid-template-rows: auto minmax(0, 1fr) auto; }
.unit.large .ann-slot { margin: 10px 12px 4px; height: auto; }
.pa-card .ann-slot { border-radius: 8px; }
/* panel: a slightly wider right column so the tablet display stays readable */
.panel-view { grid-template-columns: minmax(0, 1fr) clamp(330px, 27vw, 540px); }
/* the annunciator gets the room; the door light is a compact card underneath */
#panel-door-unit .dl-card { grid-template-rows: auto auto; align-content: center; gap: 14px; padding: 14px 12px 12px; }
#panel-door-unit .dl { height: min(230px, 60cqh); }
#panel-door-unit .dl-card { container-type: size; }
@media (max-width: 1700px) { .board-head .legend { display: none; } }
#panel-door-unit .dl { max-height: 230px; }
.panel-side { grid-template-rows: auto minmax(0, 1fr); }
.panel-side #panel-ann-unit .pa-card { aspect-ratio: 1024 / 600; height: auto; padding: 8px; }

/* annunciator mode */
:root[data-mode="annunciator"] .stage-wrap, :root[data-mode="annunciator"] .screens, :root[data-mode="annunciator"] .accessories { display: none; }
:root[data-mode="annunciator"] .main { grid-template-rows: minmax(0, 1fr); }
.ann-view { grid-column: 1 / -1; grid-row: 1 / -1; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(12px, 1.6vh, 18px); }
.ann-view:not([hidden]) { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ann-stage { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px 16px; min-height: 0; }
.ann-stage-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ann-stage-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.ann-stage-head .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.ann-stage-head h2 { margin: 0; font: 500 clamp(16px, 1.3vw, 21px)/1.1 var(--display); color: #fff; }
.ann-stage-head p { margin: 0 0 0 auto; font-size: 13px; color: var(--cyan); max-width: 70ch; text-align: right; }
.ann-big { position: relative; min-height: 0; }
/* HD strip: the stage takes the strip's own shape, and the screen sits higher with the controls closer */
.ann-view.is-hd { grid-template-rows: auto auto; align-content: center; }
.ann-view.is-hd .ann-big { aspect-ratio: 2560 / 480; height: auto; max-height: 60vh; }
.ann-big .ann-canvas { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.ann-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; padding: 14px 18px 16px; }
.ctl { display: grid; gap: 7px; }
.ctl .eyebrow { font-size: 9.5px; color: rgba(207, 226, 251, 0.62); }
.ctl .seg button { min-height: 36px; padding: 0 12px; }
.togs { display: flex; flex-wrap: wrap; gap: 6px; }
.tog { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; border-radius: 999px; cursor: pointer; background: var(--pill); border: 1px solid var(--pill-line); color: var(--on-dark-muted); font: 500 12.5px/1 var(--body); }
.tog i { width: 26px; height: 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; transition: background 0.2s; }
.tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #cfe2fb; transition: transform 0.2s; }
.tog[aria-pressed="true"] { color: #fff; border-color: rgba(102, 212, 240, 0.55); }
.tog[aria-pressed="true"] i { background: var(--primary); }
.tog[aria-pressed="true"] i::after { transform: translateX(11px); background: #fff; }
.demo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-demo { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; cursor: pointer; background: var(--pill); border: 1px solid var(--pill-line-strong); color: #eaf4ff; font: 500 13px/1 var(--body); transition: transform 0.12s, background 0.2s, box-shadow 0.2s; }
.btn-demo svg { width: 13px; height: 13px; }
.btn-demo.is-primary { background: var(--primary); border-color: transparent; color: #fff; box-shadow: 0 0 18px rgba(90, 92, 240, 0.5); }
.btn-demo:active { transform: scale(0.97); }
@media (max-width: 1280px) { .ann-controls { gap: 10px 16px; } .ctl .seg button { padding: 0 9px; } }
@media (max-width: 900px) {
  .ann-view { grid-column: 1; grid-row: auto; grid-template-rows: auto auto; }
  .ann-big { height: 46vw; min-height: 180px; }
}

/* tone switch (Default / Ding) beside the annunciators */
.tone-switch { padding: 3px; }
.tone-switch button { min-height: 30px; padding: 0 11px; font-size: 9.5px; }
#panel-ann-unit figcaption { justify-content: space-between; }
#panel-ann-unit figcaption > span { display: inline-flex; align-items: center; gap: 8px; }
#panel-ann-unit figcaption > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(102, 212, 240, 0.8); }
#panel-ann-unit figcaption::before { display: none; }
#panel-ann-unit .tone-switch button { letter-spacing: 0.1em; }

/* panel: annunciator as large as the column allows; door light is a compact card sized to its lens */
.panel-view { grid-template-columns: minmax(0, 1fr) clamp(360px, 31vw, 600px); }
.panel-side { grid-template-rows: auto auto; align-content: center; gap: clamp(14px, 2.4vh, 24px); }
#panel-door-unit .dl-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; align-items: center; justify-items: start; gap: 22px; padding: 18px 22px; container-type: normal; }
#panel-door-unit .dl { height: clamp(120px, 17vh, 180px); max-height: none; }
#panel-door-unit .dl-caption { justify-items: start; text-align: left; }
#panel-door-unit .dl-caption strong { font-size: 15px; text-align: left; }
#panel-door-unit .dl-caption span { text-align: left; font-size: 13px; }
#panel-door-unit .dl-card::after { background: radial-gradient(50% 80% at 18% 50%, color-mix(in srgb, var(--c, #fff) 38%, transparent), transparent 75%); }

/* ======================= collapsible side menu ======================= */
.app { transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.rail-head { display: flex; align-items: center; gap: 6px; flex: none; }
.rail-head .logo { flex: 1 1 auto; min-width: 0; width: auto; max-width: 200px; margin: 0 0 0 6px; }
.logo-mini { display: none; width: 38px; height: 38px; border-radius: 6px; }
.rail-toggle { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--pill); border: 1px solid var(--pill-line); color: var(--on-dark-muted); transition: transform 0.12s, background 0.2s, color 0.2s; }
.rail-toggle svg { width: 15px; height: 15px; transition: transform 0.28s; }
.rail-toggle:active { transform: scale(0.94); }
@media (hover: hover) { .rail-toggle:hover { background: rgba(255, 255, 255, 0.14); color: #fff; } }
:root[data-rail="collapsed"] { --rail-w: 74px; }
:root[data-rail="collapsed"] .rail { padding: 16px 8px 14px; gap: 14px; }
:root[data-rail="collapsed"] .rail-head { flex-direction: column; gap: 12px; }
:root[data-rail="collapsed"] .rail-head .logo { display: none; }
:root[data-rail="collapsed"] .logo-mini { display: block; }
:root[data-rail="collapsed"] .rail-toggle svg { transform: rotate(180deg); }
:root[data-rail="collapsed"] .mode-switch { grid-template-columns: 1fr; padding: 4px; border-radius: 16px; }
:root[data-rail="collapsed"] .mode-switch button { min-height: 40px; padding: 0; }
:root[data-rail="collapsed"] .mode-switch button span { display: none; }
:root[data-rail="collapsed"] .mode-switch svg { width: 17px; height: 17px; }
:root[data-rail="collapsed"] .rail h2, :root[data-rail="collapsed"] .prod-text, :root[data-rail="collapsed"] .howto { display: none; }
:root[data-rail="collapsed"] .rail-scroll { margin: 0; padding: 4px 0 8px; }
:root[data-rail="collapsed"] .prod { grid-template-columns: 1fr; justify-items: center; min-height: 48px; padding: 6px 0; }
:root[data-rail="collapsed"] .prod[aria-current="true"]::before { left: 1px; }
:root[data-rail="collapsed"] .prod-live { position: absolute; top: 3px; right: 6px; min-width: 18px; height: 18px; font-size: 10px; line-height: 18px; padding: 0 5px; }
:root[data-rail="collapsed"] .rail-foot { justify-content: center; padding: 0; }
:root[data-rail="collapsed"] .rail-foot .btn { width: 46px; padding: 0; justify-content: center; }
:root[data-rail="collapsed"] .rail-foot .btn span { display: none; }
@media (max-width: 900px) { .rail-toggle { display: none; } }

/* mode switch: one mode per row */
.mode-switch { grid-template-columns: 1fr; gap: 3px; padding: 4px; border-radius: 18px; }
.mode-switch .mode-wide { grid-column: auto; }
.mode-switch button { justify-content: flex-start; gap: 10px; padding: 0 14px; min-height: 40px; }
:root[data-rail="collapsed"] .mode-switch button { justify-content: center; padding: 0; }

/* time and repeat inputs in the annunciator controls */
.times { display: flex; align-items: center; gap: 8px; }
.times span { font-size: 12.5px; color: var(--on-dark-faint); }
.times input, .repeats select { min-height: 36px; border-radius: 10px; border: 1px solid var(--pill-line); background: var(--pill); color: #eaf4ff; font: 500 13px/1 var(--body); padding: 0 10px; color-scheme: dark; }
#ctl-daynight.is-disabled { opacity: 0.45; }
#ctl-daynight.is-disabled input { pointer-events: none; }
.repeats { display: flex; flex-wrap: wrap; gap: 10px; }
.repeats label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-dark-muted); }
.ann-canvas.is-off { background: #050505 !important; }

/* panel: no labels on the tiles, so each call point fills its tile */
.slot { grid-template-rows: minmax(0, 1fr); padding: 6px 0 10px; }
.slot-cap { display: none; }
/* panel annunciator: a white device frame around the screen, like the physical unit on the kit */
.panel-side #panel-ann-unit .pa-card { aspect-ratio: auto; height: auto; padding: clamp(10px, 4.2%, 20px); border: 0; border-radius: clamp(12px, 3.4%, 20px);
  background: linear-gradient(160deg, #ffffff 0%, #eef1f6 45%, #d9dee7 100%); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 4px rgba(0, 0, 0, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45); }
#panel-ann-unit .pa-card::before, #panel-ann-unit .pa-card::after { display: none; }
#panel-ann-unit .ann-slot { aspect-ratio: 1024 / 600; width: 100%; height: auto; border-radius: 6px; background: #111; box-shadow: 0 0 0 2px #1b1d22, 0 1px 0 3px rgba(255, 255, 255, 0.6); }

/* panel: tighter spacing so the call points get the width */
:root[data-mode="panel"] .main { padding: clamp(8px, 1.2vh, 14px) clamp(8px, 0.7vw, 12px); }
:root[data-mode="panel"] .panel-view { gap: clamp(8px, 0.7vw, 12px); }
:root[data-mode="panel"] .board { padding: 8px 6px 12px; gap: 6px; }
:root[data-mode="panel"] .board-grid { column-gap: clamp(4px, 0.35vw, 6px); }

/* white device frame on the product view and Annunciator page displays (the panel has its own, same look) */
.ann-fit { container-type: size; display: grid; place-items: center; min-width: 0; min-height: 0; }
.ann-frame { --P: 14px; --aw: 1024; --ah: 600; box-sizing: border-box; padding: var(--P);
  width: min(100cqw, calc((100cqh - 2 * var(--P)) * var(--aw) / var(--ah) + 2 * var(--P)));
  border-radius: calc(var(--P) * 0.9 + 4px);
  background: linear-gradient(160deg, #ffffff 0%, #eef1f6 45%, #d9dee7 100%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 4px rgba(0, 0, 0, 0.12), 0 14px 34px rgba(0, 0, 0, 0.45); }
.ann-frame > .ann-slot, .ann-frame > .ann-big { width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; aspect-ratio: var(--aw) / var(--ah);
  border-radius: 6px; background: #111; box-shadow: 0 0 0 2px #1b1d22, 0 1px 0 3px rgba(255, 255, 255, 0.6); }
.unit.large .ann-frame .ann-slot { margin: 0; height: auto; }
.unit.large .ann-fit { margin: 10px 12px 6px; }
.ann-frame-big { --P: 22px; }
.ann-view.is-hd .ann-frame-big { --aw: 2560; --ah: 480; width: 100%; }
.ann-view.is-hd .ann-fit-big { container-type: inline-size; }
.ann-view .ann-frame .ann-big { aspect-ratio: var(--aw) / var(--ah); height: auto; max-height: none; }
.ann-frame .ann-canvas { box-shadow: none !important; border-radius: 6px; }
@media (max-width: 900px) {
  .ann-fit { container-type: inline-size; }
  .ann-frame { width: 100%; }
  .ann-view .ann-frame .ann-big { height: auto; min-height: 0; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1280px) {
  .main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 18px; }
  .call-from { display: none; }
  .call { grid-template-columns: 4px minmax(0, 1fr) auto; }
}
@media (max-width: 1440px) and (min-width: 901px) {
  .seg button { padding: 0 12px; }
  .fs-btn { padding: 0 14px 0 12px; }
  .stage-head p { font-size: 12.5px; }
  .accessories { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .acc-head p { display: none; }
  .acc-list { grid-auto-columns: minmax(170px, 240px); }
  .acc-note { display: none; }
}
@media (max-height: 900px) and (min-width: 901px) {
  .rail { gap: 14px; padding-top: 16px; }
  .rail-scroll { gap: 14px; }
  .prod { min-height: 44px; padding: 5px 8px; }
  .prod-note { display: none; }
  .prod-icon svg { width: 28px; height: 28px; }
  .howto { padding: 12px 12px 13px; }
  .howto p { font-size: 11.5px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .scr-log { display: none; }
  .acc-note { display: none; }
}
@media (max-width: 900px) {
  body { height: auto; overflow: auto; }
  .app { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100%; }
  .rail, .rail nav { min-width: 0; }
  .rail { gap: 12px; padding: 16px 12px 12px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--glass-line); }
  .rail h2 { display: none; }
  .logo { width: 170px; }
  .products { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 4px; }
  .rail-foot { margin-top: 0; padding: 0; }
  .rail-scroll { overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 20px 14px 28px; row-gap: 22px; }
  .stage-wrap { grid-column: 1; grid-row: auto; height: 72svh; min-height: 420px; }
  .screens { grid-column: 1; grid-row: auto; grid-template-rows: auto auto; }
  .unit.large .card { height: 340px; }
  .outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; row-gap: 16px; }
  .outputs .unit { grid-row: auto; grid-template-rows: auto minmax(0, 1fr); gap: 9px; height: 240px; }
  .outputs .unit.mini { grid-column: 1 / -1; height: 200px; }
  .accessories { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bar-tools { flex-wrap: wrap; }
  .howto { display: none; }
}
