:root {
  --bg: #0c0e12;
  --raise: #14181f;
  --raise-2: #1b212b;
  --line: rgba(232, 238, 246, 0.1);
  --text: #e7edf4;
  --muted: #8b97a8;
  --faint: #5d6b7c;
  --accent: #38bdf8;
  --accent-ink: #041018;
  --ok: #34d399;
  --warn: #fbbf24;
  --over: #fb7185;
  --read: 30%;
  --ink-yellow: #f5d76e;
  --ink-cyan: #7dd3fc;
  --ink-green: #86efac;
  --ink-orange: #fdba74;
  --ink-red: #fda4af;
  --ink-white: #ffffff;
  --hit: 72, 156, 214;
  --hit-line: 168, 214, 248;
  --surface: #171b22;
  --surface-hover: #1c2836;
  --field: #0e1218;
  --hairline: rgba(255, 255, 255, 0.06);
  --field-line: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --focus: rgba(56, 189, 248, 0.7);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b97a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  min-height: 100%;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(var(--hit-line), 0.9);
  outline-offset: 2px;
}
a { color: inherit; }
::selection { background: rgba(56, 189, 248, 0.28); }

body[data-view="show"] {
  background: #000;
  overflow: hidden;
  height: 100%;
}
body[data-view="show"] #app,
body[data-view="show"] .stage { height: 100%; }

.conn {
  margin: 0;
  padding: 8px 14px;
  background: #1a1408;
  color: var(--warn);
  font-size: 13px;
}

.logo {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}
.logo-mark { width: 26px; height: 26px; display: block; flex: 0 0 auto; }
.logo:hover { color: #fff; }
.lede { max-width: 40rem; margin: 6px 0 0; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.btn, .ghost {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 560;
}
.btn { background: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.06); }
.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.ghost:hover { background: rgba(var(--hit), 0.16); border-color: rgba(var(--hit-line), 0.45); color: #fff; }
.btn:disabled, .ghost:disabled { opacity: 0.38; cursor: default; }
.btn.big, .ghost.big { min-height: 52px; font-size: 16px; }
#timer-btn.is-on,
#autoplay-btn.is-on,
.ghost.pressed,
.ghost.pressed:hover {
  background: rgba(var(--hit), 0.38);
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}

input[type="text"], input[type="number"], textarea, input:not([type]) {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--focus); outline: none; }
label, .notes-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 550; }
.timer-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unit-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}
.unit-switch button {
  min-width: 36px;
  min-height: 22px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.unit-switch button.on {
  background: rgba(var(--hit), 0.38);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.error {
  background: rgba(251, 113, 133, 0.1);
  color: #fecdd3;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.control-top .row { margin-left: 0; justify-self: end; }
.control-top {
  display: grid;
  grid-template-columns: 97px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.control-lead { grid-column: 2; grid-row: 1; }
.control-top .row { grid-column: 3; grid-row: 1; }
.editor-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 48px; }
.seg-list { display: grid; gap: 6px; align-content: start; }
.seg {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
}
.seg:hover:not(.current) {
  background: rgba(var(--hit), 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.45);
}
.seg.current {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}
.seg.needs-time {
  color: #f0aeb6;
  background: rgba(251, 113, 133, 0.08);
}
.seg.needs-time.current,
.seg.needs-time:hover:not(.dragging) {
  color: #ffd6dc;
  background: rgba(251, 113, 133, 0.12);
}
.seg strong { font-weight: 600; }
.seg small { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px;
}
.readout, .fine, .save { color: var(--faint); font-size: 12px; }
.readout, .fine { margin: 8px 0 0; }
.save { min-width: 5rem; }
.fine { word-break: break-all; }

.control {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px 28px 36px;
}
.control > .conn { margin: 0 -28px 0; }
.control-grid { display: grid; gap: 12px; }
.control-segment { margin: 0; font-size: 22px; font-weight: 680; letter-spacing: -0.03em; line-height: 1.15; }
.control .panel { padding: 18px 16px 16px; }
.control svg { display: block; }
.control .panel > h2 { margin: 0 0 10px; }
.control .control-segment { margin-top: 0; }
.control .clock { margin-top: 12px; }
.control-now {
  display: grid;
  grid-template-columns: 1fr 18px max-content 1fr;
  column-gap: 10px;
  align-content: start;
}
.control-now > * { grid-column: 1 / -1; }
.control-main { width: 100%; margin-top: 8px; }
.control-now #timer-btn { margin-top: 18px; }
.control-now .control-auto + #timer-btn { margin-top: 8px; }
.control-now #scroll-btn { margin-top: 8px; }
.control-auto {
  width: 100%;
  margin-top: 16px;
  gap: 8px;
}
.control-auto .btn-ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.control-auto .btn-ico svg { width: 18px; height: 18px; }
.control-now .control-main {
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}
.control-now .btn-ico,
.control-now .when-paused,
.control-now .when-running {
  grid-column: 2;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
.control-now .btn-label {
  grid-column: 3;
  justify-self: start;
  text-align: left;
  line-height: 1.15;
}
.control-now .control-main svg { width: 18px; height: 18px; }
#scroll-btn .when-paused svg { transform: translate(1px, 0.5px); }
#scroll-btn .when-running svg { transform: translateY(0.5px); }
#timer-btn .btn-ico svg { transform: translateY(0.5px); }
#scroll-btn .when-running,
#scroll-btn.is-on .when-paused { display: none; }
#scroll-btn.is-on .when-running { display: grid; }
.control-pair.three { grid-template-columns: 1fr 1fr 1fr; }
.control-pair.three [data-act="reset-timer"] { gap: 7px; }
.control-pair.three [data-act="reset-timer"] svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transform: translateY(0.5px);
}
.control-segments .seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
}
.control-segments .seg strong { min-width: 0; font-weight: 600; letter-spacing: -0.015em; }
.control-segments .seg small {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--faint);
}
.control-segments .seg.needs-time small { color: #e7a3ad; }
.control-segments .control-restart {
  width: 100%;
  margin-top: 6px;
  min-height: 34px;
  padding: 11px 8px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.control-segments .control-restart:hover {
  border-top-color: var(--line);
  background: transparent;
  color: #fff;
}
.control-display .panel-head { min-height: 32px; margin-bottom: 6px; }
.control-display .panel-head h2 { margin: 0; line-height: 1.2; }
.control-display #control-gear {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
}
.control-display #control-gear svg { width: 16px; height: 16px; }
.display-extra { display: grid; gap: 8px; margin: 4px 0 12px; }
.display-extra[hidden] { display: none; }
.control .slider-row {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 36px;
  align-items: center;
}
.control .slider-row input[type="range"] { display: block; margin: 0; }
.control .slider-readout,
.control #speed-label {
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.control .slider-readout {
  display: grid;
  justify-items: end;
  line-height: 1.05;
}
.control .slider-readout small {
  color: var(--faint);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.panel h2.with-ico { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.panel h2.with-ico svg { width: 16px; height: 16px; flex: 0 0 auto; transform: translateY(-1.5px); }
.control-top .row { align-items: center; }
.control-top .row .ghost,
.control-top .row .btn { height: 40px; }
.page-title {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.control-pair { display: grid; gap: 8px; margin-top: 8px; }
.control-pair.two { grid-template-columns: 1fr 1fr; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.panel-head .ghost { padding: 4px 10px; }
.control-message-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.control-message-form input { flex: 1; min-width: 0; height: 40px; min-height: 40px; padding: 0 12px; line-height: 1.2; }
.control-message-form .btn,
.control-message-form .ghost { height: 40px; min-height: 40px; padding-top: 0; padding-bottom: 0; }
#scroll-btn.is-on {
  background: rgba(var(--hit), 0.38);
  color: #fff;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
}
.clock {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 68px;
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 4px 0 0;
}
.clock.ok { color: var(--ok); }
.clock.warn { color: var(--warn); }
.clock.over { color: var(--over); }
.clock.idle { color: var(--text); }
.panel .row { margin-top: 10px; }
.sliders { display: grid; gap: 8px; }
.slider-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.takeover {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}
.stage {
  --header: 42px;
  --side: 220px;
  --foot: 76px;
  --read: 40%;
  --band: 84px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  color: #fff;
  user-select: none;
}
.stage input, .stage textarea, .stage select { user-select: text; }
.stage > .conn { position: absolute; top: 0; left: 0; right: 0; z-index: 8; }
.run-head {
  position: relative;
  flex: 0 0 var(--header);
  height: var(--header);
  min-height: 32px;
  display: flex;
  flex-direction: column;
  background: #000;
  z-index: 4;
}
.run-head-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  min-height: 0;
  padding: 0 6px 0 2px;
  background: transparent;
}
.run-head .icon-btn {
  display: grid;
  place-items: center;
  width: min(34px, calc(var(--header) - 6px));
  height: min(34px, calc(var(--header) - 6px));
  min-height: 0;
  color: #fff;
  background: transparent;
}
.run-head .icon-btn svg { display: block; width: 20px; height: 20px; }
.run-head .icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.run-head .icon-btn.is-on { color: #fff; background: transparent; }
#stage-autoplay {
  position: relative;
  display: grid;
  place-items: center;
  width: auto;
  height: min(34px, calc(var(--header) - 6px));
  min-height: 0;
  margin: 0;
  padding: 1px 7px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
#stage-autoplay:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
#stage-scroll-btn.is-on,
#stage-timer.is-on,
#stage-autoplay.is-on {
  color: #fff;
  background: rgba(var(--hit), 0.38);
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
.stage .icon-btn[data-tip] { position: relative; }
.stage .icon-btn[data-tip]:hover::after,
.stage .icon-btn[data-tip]:focus-visible::after,
.stage #stage-autoplay[data-tip]:hover::after,
.stage #stage-autoplay[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  padding: 7px 10px;
  border-radius: 8px;
  background: #10141a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.run-head .run-tools .icon-btn[data-tip]:hover::after,
.run-head .run-tools .icon-btn[data-tip]:focus-visible::after,
.run-head #stage-autoplay[data-tip]:hover::after,
.run-head #stage-autoplay[data-tip]:focus-visible::after {
  left: auto;
  right: 0;
}
.run-icons .icon-btn[data-tip]:hover::after,
.run-icons .icon-btn[data-tip]:focus-visible::after {
  top: auto;
  bottom: calc(100% + 8px);
}
.run-tools[hidden],
.run-pop[hidden],
.run-msg[hidden] { display: none; }
.run-head .run-msg {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.run-head .run-msg .btn {
  min-height: 0;
  height: calc(var(--header) - 12px);
  padding: 0 12px;
}
.seg-progress {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}
.seg-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.seg-progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  --bar-fill: 84, 180, 132;
  --bar-glow: 157, 255, 200;
  --bar-hot: 244, 255, 248;
  --bar-shadow: 99, 201, 143;
  background: rgb(var(--bar-fill));
}
.seg-progress-lead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  background: linear-gradient(
    90deg,
    rgba(var(--bar-glow), 0.32) 0,
    rgba(var(--bar-glow), 0.12) 10px,
    rgba(var(--bar-fill), 0.05) 28px,
    rgba(var(--bar-fill), 0) 64px
  );
  filter: drop-shadow(0 0 2px rgba(var(--bar-glow), 0.22));
}
.seg-progress.is-lit .seg-progress-lead { opacity: 1; }
.seg-progress-fill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(var(--bar-glow), 0.08), rgba(var(--bar-glow), 0.4) 60%, rgba(var(--bar-glow), 0.5));
  box-shadow:
    0 0 3px rgba(var(--bar-glow), 0.28),
    0 1px 6px rgba(var(--bar-shadow), 0.16);
}
.seg-progress.is-lit .seg-progress-fill::after { opacity: 1; }
.run { position: relative; flex: 1; min-height: 0; display: flex; overflow: hidden; background: #000; }
.run-side {
  position: relative;
  width: var(--side);
  flex: 0 0 var(--side);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #12161c;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.stage.side-collapsed .run-side { display: none; }
.side-collapse {
  position: absolute;
  z-index: 8;
  top: calc(var(--read) + 20px);
  left: calc(var(--side) - 30px);
  right: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #1a212b;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.side-collapse svg { width: 14px; height: 14px; display: block; }
.side-collapse:hover { background: #243140; color: #fff; }
.side-collapse .when-open { display: grid; }
.side-collapse .when-shut { display: none; }
.stage.side-collapsed .side-collapse { left: 10px; right: auto; }
.stage.side-collapsed .side-collapse .when-open { display: none; }
.stage.side-collapsed .side-collapse .when-shut { display: grid; }
.side-collapse:hover::after,
.side-collapse:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 40;
  left: calc(100% + 10px);
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border-radius: 8px;
  background: #10141a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.stage.no-chrome .side-collapse { display: none; }
.run-kicker {
  margin: 8px 16px 6px;
  color: #8b97a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.run-segs { flex: 1; min-height: 0; overflow: auto; padding: 4px 10px 12px; scrollbar-width: thin; }
.run-seg {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 2px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c5ced8;
  text-align: left;
  font-size: 15px;
  font-weight: 560;
}
.run-seg:hover:not(.current):not(.dragging) {
  background: rgba(var(--hit), 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.45);
}
.run-seg.dragging { opacity: 0.4; }
.run-seg.drop-target {
  background: rgba(var(--hit), 0.16);
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.45);
}
.run-seg.current {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}
.run-seg.needs-time {
  color: #f0aeb6;
  background: rgba(251, 113, 133, 0.08);
}
.run-seg.needs-time.current,
.run-seg.needs-time:hover:not(.dragging) {
  color: #ffd6dc;
  background: rgba(251, 113, 133, 0.12);
}
.run-seg-go {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 9px 12px 9px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.run-seg .grip {
  position: relative;
  width: 34px;
  height: auto;
  align-self: stretch;
  min-height: 36px;
  cursor: grab;
  background: none;
  opacity: 1;
}
.run-seg .grip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 14px;
  transform: translate(-50%, -50%);
  background-image: radial-gradient(circle, currentColor 1.15px, transparent 1.3px);
  background-size: 5px 5px;
  opacity: 0.75;
}
.run-seg .grip:active { cursor: grabbing; }
.grip {
  width: 10px;
  height: 14px;
  flex: 0 0 auto;
  background-image: radial-gradient(circle, currentColor 1.15px, transparent 1.3px);
  background-size: 5px 5px;
  opacity: 0.75;
}
.run-side-foot { padding: 10px 12px 14px; border-top: 1px solid var(--hairline); }
.run-font {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: #8b97a8;
  font-size: 12px;
}
.run-font input[type="range"],
.control .slider-row input[type="range"] {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  margin: 0;
  background: transparent;
  accent-color: auto;
  cursor: pointer;
}
.run-font input[type="range"]:focus,
.control .slider-row input[type="range"]:focus { outline: none; }
.run-font input[type="range"]:disabled,
.slider-row input[type="range"]:disabled {
  cursor: default;
  opacity: 0.45;
}
.run-font input[type="range"]::-webkit-slider-runnable-track,
.control .slider-row input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(to right, rgba(56, 189, 248, 0.58) var(--fill), rgba(255, 255, 255, 0.2) var(--fill));
}
.run-font input[type="range"]::-webkit-slider-thumb,
.control .slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: rgba(186, 230, 253, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 8px rgba(56, 189, 248, 0.5);
}
.run-font input[type="range"]::-moz-range-track,
.control .slider-row input[type="range"]::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
}
.run-font input[type="range"]::-moz-range-progress,
.control .slider-row input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.58);
}
.run-font input[type="range"]::-moz-range-thumb,
.control .slider-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(186, 230, 253, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 8px rgba(56, 189, 248, 0.5);
}
.run-icons { display: flex; gap: 2px; }
.run-icons .icon-btn { flex: 1; width: auto; min-width: 0; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c5ced8;
  text-decoration: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.icon-btn.is-on {
  color: #fff;
  background: rgba(var(--hit), 0.38);
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
#stage-scroll-btn .when-running,
#stage-scroll-btn.is-on .when-paused { display: none; }
#stage-scroll-btn.is-on .when-running { display: grid; }
.run-scrim { display: none; }
.run-main { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.run-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.run-msg {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  background: #14181f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.run-msg[hidden] { display: none; }
.run-msg input {
  flex: 1;
  min-width: 0;
  background: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
}
.run-banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  background: #10202c;
  color: #fff;
  text-align: left;
  white-space: normal;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.run-banner[hidden] { display: none; }
.stage.no-chrome .run-head,
.stage.no-chrome .run-side,
.stage.no-chrome .run-tools,
.stage.no-chrome .run-msg,
.stage.no-chrome .run-scrim,
.stage.no-chrome .stage-foot,
.stage.no-chrome .run-pop,
.stage.no-chrome .lay-handle { display: none; }
.stage-message {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 16px 14px 28px;
  background: #000;
}
.stage-message[hidden] { display: none; }
.stage-message-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: message-pulse 3.4s ease-in-out infinite;
}
.stage-message-x {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.stage-message-x:hover { background: rgba(255, 255, 255, 0.1); }
@keyframes message-pulse {
  0%, 100% { color: #fff; text-shadow: 0 0 22px rgba(125, 211, 252, 0.9); }
  50% { color: rgba(255, 255, 255, 0.55); text-shadow: 0 0 8px rgba(125, 211, 252, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
  .stage-message-text { animation: none; color: #fff; text-shadow: none; }
}
.stage-foot {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--foot);
  min-height: 0;
  padding: 0 16px;
  box-sizing: border-box;
  container-type: inline-size;
  background: #000;
  border: 0;
  overflow: hidden;
}
.stage-clock,
.stage-wall {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: min(calc(var(--foot) * 0.74), 8cqw);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stage-clock { color: #fff; }
.stage-wall { color: #d5dce6; }
.stage-frame { position: relative; flex: 1; min-height: 0; }
.stage-scroll { position: relative; z-index: 1; height: 100%; overflow: auto; background: transparent; scrollbar-width: none; }
.stage-scroll::-webkit-scrollbar { display: none; }
.focus-band {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: max(0px, calc(var(--read) - var(--band)));
  height: var(--band);
  background: rgba(92, 154, 204, 0.32);
  border: 0;
  pointer-events: none;
  z-index: 0;
}
.stage.guide .focus-band,
.stage.layout-edit .focus-band { display: block; }
.lay-handle { display: none; position: absolute; z-index: 7; touch-action: none; }
.stage.layout-edit .lay-handle { display: block; }
.stage.layout-edit .lay-side-collapsed { display: none; }
.stage.layout-edit.side-collapsed .lay-side-collapsed {
  display: block;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  cursor: ew-resize;
}
.stage.layout-edit.side-collapsed .lay-side { display: none; }
.lay-header, .lay-foot, .lay-side, .lay-band-top, .lay-band-bottom { background: transparent; }
.lay-header::after, .lay-foot::after, .lay-side::after, .lay-band-top::after, .lay-band-bottom::after,
.lay-side-collapsed::after {
  content: "";
  position: absolute;
  border-radius: 99px;
  background: #38bdf8;
}
.lay-header { left: 0; right: 0; bottom: -6px; height: 12px; cursor: ns-resize; }
.lay-header::after { left: 16px; right: 16px; top: 4px; height: 4px; }
.lay-foot { left: 0; right: 0; top: -6px; height: 12px; cursor: ns-resize; }
.lay-foot::after { left: 16px; right: 16px; top: 4px; height: 4px; }
.lay-side { top: 16px; bottom: 16px; right: -6px; width: 12px; cursor: ew-resize; }
.lay-side::after { top: 0; bottom: 0; left: 4px; width: 4px; }
.lay-side-collapsed::after { top: 16px; bottom: 16px; left: 4px; width: 4px; }
.lay-band-top, .lay-band-bottom, .lay-band { left: 0; right: 0; }
.lay-band-top {
  top: max(0px, calc(var(--read) - var(--band) - 6px));
  height: 12px;
  cursor: ns-resize;
  z-index: 8;
}
.lay-band-top::after { left: 18%; right: 18%; top: 4px; height: 4px; }
.lay-band {
  top: max(0px, calc(var(--read) - var(--band)));
  height: var(--band);
  cursor: grab;
  z-index: 7;
}
.lay-band-bottom {
  top: calc(var(--read) - 6px);
  height: 12px;
  cursor: ns-resize;
  z-index: 8;
}
.lay-band-bottom::after { left: 18%; right: 18%; top: 4px; height: 4px; }
.stage.layout-edit .run-head,
.stage.layout-edit .run-side,
.stage.layout-edit .stage-foot { outline: 1px dashed rgba(56, 189, 248, 0.4); outline-offset: -1px; }
.stage.no-chrome .lay-handle { display: none; }
.lay-header { bottom: 0; height: 10px; }
.lay-header::after { top: auto; bottom: 2px; }
.lay-foot { top: 0; height: 10px; }
.lay-foot::after { top: 2px; }
.lay-side { right: 0; width: 12px; }
.lay-side::after { left: auto; right: 0; }
.run-pop {
  position: absolute;
  left: calc(var(--side) + 16px);
  bottom: calc(var(--foot) + 16px);
  z-index: 4;
  width: min(320px, calc(100% - 32px));
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.run-pop-title { margin: 0; font-size: 14px; font-weight: 650; }
#settings-btn.is-on,
#settings-btn.is-on:hover {
  color: #fff;
  background: rgba(var(--hit), 0.38);
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
.settings-list { display: grid; gap: 6px; }
.settings-list .ghost { width: 100%; justify-content: flex-start; text-align: left; }
.run-pop .fine { margin: 0; color: var(--muted); font-size: 12px; }
.run-pop select { width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.service-time { display: grid; gap: 6px; }
.service-time > span:first-child { font-size: 13px; font-weight: 600; color: var(--muted); }
.service-time select,
.service-time input[type="datetime-local"] {
  width: 100%;
  min-height: 36px;
  background: var(--field);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.service-time input[type="datetime-local"] {
  height: 36px;
  margin: 0;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color-scheme: dark;
}
.service-time input[type="datetime-local"]:focus { outline: none; border-color: var(--focus); }
.service-time .fine { margin: 0; color: var(--muted); font-size: 12px; word-break: normal; }
.service-time-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.service-time-actions .text-btn,
.pres-when .service-time-actions .text-btn { min-height: 0; font-size: 13px; font-weight: 600; }
.service-clock {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  gap: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.service-time > .service-clock { display: flex; width: 100%; flex: 1 1 100%; }
.service-clock-hint {
  display: none;
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 11px;
  right: 34px;
  align-items: center;
  overflow: hidden;
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
.service-clock.is-empty:not(:focus-within) .service-clock-hint { display: flex; }
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-text,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.service-clock.is-empty:not(:focus-within) input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  color: transparent;
}
.import-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(8, 10, 14, 0.72);
}
.import-card {
  width: min(440px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.import-card h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.import-card form,
.import-card label { display: grid; gap: 6px; }
.import-card label { color: var(--muted); font-size: 13px; font-weight: 600; }
.import-card input,
.import-card select {
  width: 100%;
  min-height: 40px;
  background-color: var(--field);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
.import-card select {
  padding-right: 36px;
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  font-size: 15px;
  font-weight: 600;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}
.import-card select:focus {
  outline: none;
  border-color: var(--focus);
}
.import-card .fine { margin: 0; color: var(--muted); font-size: 12px; word-break: normal; }
.import-card .error { margin: 0; }
.import-connected { display: grid; gap: 6px; }
.import-type-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.import-type-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.import-connected .text-btn { margin: 0; }
.import-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}
.import-scope button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.import-scope button.on {
  background: rgba(var(--hit), 0.38);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
.import-scope button:disabled { opacity: 0.7; }
.plan-list { display: grid; gap: 8px; }
.plan-list .ghost { width: 100%; justify-content: space-between; min-height: 44px; }
.plan-list small { color: var(--faint); font-weight: 550; }
.stage-copy {
  width: auto;
  margin: 0;
  --copy-left: 32px;
  --copy-right: 56px;
  padding: 0 var(--copy-right) 0 var(--copy-left);
  font-size: 64px;
  font-weight: 450;
  letter-spacing: -0.018em;
  line-height: 1.34;
  color: #fff;
}
.stage-copy.mirror { transform: scaleX(-1); }
.stage-copy.flip { transform: scaleY(-1); }
.stage-copy.mirror.flip { transform: scale(-1, -1); }
.stage-copy p.run-title {
  margin: 0 0 0.28em;
  font-size: 1em;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}
.run-block { position: relative; }
.run-block + .run-block { margin-top: 2.4em; }
.run-block + .run-block::before {
  content: "";
  position: absolute;
  left: calc(var(--copy-left) * -1);
  right: calc(var(--copy-right) * -1);
  bottom: calc(100% + 1.45em);
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.run-split {
  display: none;
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.42em);
  margin: 0;
  padding: 0;
  border: 0;
}
.run-block.is-next .run-split { display: block; }
.run-split span {
  display: block;
  color: #8eb7e6;
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.stage-copy p, .notes-editor p, .notes-editor div { margin: 0 0 0.55em; }
.stage-copy h1, .notes-editor h1,
.stage-copy h2, .notes-editor h2,
.stage-copy h3, .notes-editor h3 {
  margin: 0.35em 0 0.3em;
  font-size: 1em;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}
.stage-copy ul, .notes-editor ul,
.stage-copy ol, .notes-editor ol { margin: 0 0 0.75em; padding-left: 1.15em; }
.stage-copy ul, .notes-editor ul { list-style-type: disc; }
.stage-copy ul ul, .notes-editor ul ul { list-style-type: circle; }
.stage-copy li ul, .notes-editor li ul,
.stage-copy li ol, .notes-editor li ol { margin: 0.15em 0 0.2em; }
.stage-copy em, .notes-editor em,
.stage-copy i, .notes-editor i { font-style: italic; }
.stage-copy .cue, .notes-editor .cue {
  color: var(--accent);
  font-size: 0.62em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.stage-copy .ink-yellow, .notes-editor .ink-yellow { color: var(--ink-yellow); }
.stage-copy .ink-cyan, .notes-editor .ink-cyan { color: var(--ink-cyan); }
.stage-copy .ink-green, .notes-editor .ink-green { color: var(--ink-green); }
.stage-copy .ink-orange, .notes-editor .ink-orange { color: var(--ink-orange); }
.stage-copy .ink-red, .notes-editor .ink-red { color: var(--ink-red); }
.stage-copy .ink-white, .notes-editor .ink-white { color: var(--ink-white); }
.stage-copy .ink-mark, .notes-editor .ink-mark {
  background: #f6e27a;
  color: #1c1404;
  border-radius: 0.12em;
  padding: 0 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.stage-blank { position: absolute; inset: 0; background: #000; z-index: 3; }
.keys {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(340px, calc(100% - 40px));
  background: rgba(12, 14, 18, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 6;
}
.keys h2 { margin: 0 0 8px; font-size: 13px; font-weight: 640; }
.keys p { margin: 4px 0; color: var(--muted); font-size: 13px; }
kbd { color: var(--text); }

.home {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px 20px 88px;
}
.home > .conn { position: absolute; top: 0; left: 0; right: 0; }
.home-inner { width: min(680px, 100%); text-align: center; }
.wordmark {
  margin: 0;
  font-size: clamp(52px, 8vw, 76px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.home-tools {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 42px;
  z-index: 2;
  margin: 0;
  padding: 0 16px;
  text-align: center;
}
.home-new {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.home-new:hover {
  color: #fff;
  background: rgba(var(--hit), 0.16);
  border-color: rgba(var(--hit-line), 0.45);
}
.home-new-form {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.home-new-form input[type="text"] { width: 220px; min-height: 36px; padding: 6px 10px; flex: 0 0 auto; }
.home-new-form .btn, .home-new-form .ghost { min-height: 36px; flex: 0 0 auto; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.cat-grid[data-count="1"] {
  grid-template-columns: min(320px, 100%);
  justify-content: center;
}
.cat-card {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: #f4f7fb;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-align: center;
}
.cat-card:hover, .pres:hover {
  background: var(--surface-hover);
  border-color: rgba(var(--hit-line), 0.45);
}
.home-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}
.deck {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px 28px 72px;
}
.editor-page {
  width: auto;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 8px 28px 28px;
}
.editor-page .edit-bar {
  display: grid;
  grid-template-columns: 97px minmax(0, 1fr) auto;
  grid-template-areas:
    "logo lead end"
    ". meta meta";
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.edit-main { display: contents; }
.edit-lead,
.deck-lead,
.control-lead {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.edit-lead { grid-area: lead; }
.edit-lead .icon-btn,
.deck-lead .icon-btn,
.control-lead .icon-btn { flex: 0 0 auto; }
.edit-title {
  display: inline-grid;
  flex: 0 1 auto;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}
.edit-title::after,
.edit-title textarea {
  grid-area: 1 / 1;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  font-family: inherit;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.2;
  white-space: nowrap;
}
.edit-title::after {
  content: attr(data-value) " ";
  visibility: hidden;
  min-width: 4ch;
}
.edit-title textarea {
  width: 0;
  min-width: 100%;
  height: 0;
  min-height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow: hidden;
  color: inherit;
}
.edit-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding-left: 40px;
}
.editor-page .service-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.editor-page .service-time .fine { flex-basis: 100%; }
.editor-page .service-time input[type="datetime-local"] {
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  field-sizing: content;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
  color-scheme: dark;
}
.editor-page .move-cat {
  color: var(--muted);
  font-weight: 600;
}
.editor-page .move-cat select {
  height: 36px;
  min-height: 36px;
  line-height: 34px;
}
.edit-meta .save { min-width: 0; }
.edit-meta .save:empty { display: none; }
.edit-end {
  grid-area: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.editor-page .editor-grid { flex: 1; align-items: start; }
.editor-page .seg-nav { top: 56px; max-height: calc(100vh - 72px); }
.editor-page .acc-list { display: grid; gap: 10px; min-width: 0; align-content: start; }
.editor-page .acc-body .fields { max-width: 720px; }
.editor-page .notes-field { display: grid; flex: none; }
.editor-page .notes-editor { flex: none; min-height: 240px; max-height: none; height: auto; }
.deck > .conn { margin: 0 -28px 0; }
.deck-top, .edit-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
}
.deck-top { border-bottom: 1px solid var(--hairline); }
.deck:not(.editor-page) .deck-top {
  display: grid;
  grid-template-columns: 97px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}
.deck:not(.editor-page) .deck-lead { grid-column: 2; grid-row: 1; }
.deck:not(.editor-page) .deck-actions { grid-column: 3; grid-row: 1; }
.deck:not(.editor-page) .deck-sub { margin-left: 149px; }
.edit-bar { flex-wrap: wrap; }
input[type="text"].deck-title {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.2;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 2px;
  box-shadow: none;
}
input[type="text"].deck-title:focus,
.edit-title textarea:focus {
  border-color: transparent;
  outline: none;
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.65);
}
.deck-top .btn, .edit-actions, .edit-tools { flex: 0 0 auto; }
.deck-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.edit-tools { display: flex; align-items: center; gap: 2px; }
.edit-actions { display: flex; gap: 8px; }
.edit-actions .btn svg, .control-top .row svg { width: 15px; height: 15px; }
.edit-tools .icon-btn.texty { width: auto; padding: 0 8px; }
.deck-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 13px;
}
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  min-height: 32px;
  font-size: 13px;
  text-decoration: none;
}
.text-btn:hover { color: var(--text); }
.danger-text { color: var(--over); }
.move-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
}
.move-cat select {
  width: auto;
  field-sizing: content;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 32px 0 10px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background-color: var(--field);
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 560;
  line-height: 34px;
  -webkit-appearance: none;
  appearance: none;
}
.move-cat select:focus {
  outline: none;
  border-color: var(--focus);
}
.pres-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.pres {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px 16px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.pres-main { min-width: 0; flex: 1; }
.pres-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.pres-name { min-width: 0; color: inherit; text-decoration: none; }
button.pencil {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 2px;
  min-height: 0;
  color: var(--faint);
  line-height: 0;
}
button.pencil:hover { color: #fff; }
.pencil svg { width: 14px; height: 14px; }
input[type="text"].pres-name-input {
  width: auto;
  min-width: 8ch;
  max-width: 100%;
  field-sizing: content;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.65);
  color: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.pres-when {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pres-when > span { flex: 0 0 auto; }
.pres-when input[type="datetime-local"] {
  width: auto;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
  field-sizing: content;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--field);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
  color-scheme: dark;
}
.pres-when input[type="datetime-local"]:focus,
.editor-page .service-time input[type="datetime-local"]:focus { outline: none; border-color: var(--focus); }
.editor-page .service-time .service-clock,
.pres-when .service-clock {
  display: inline-flex;
  width: auto;
  flex: 0 1 auto;
}
.editor-page .service-time .service-clock.is-empty,
.pres-when .service-clock.is-empty { min-width: 11.5rem; }
.pres-when select,
.editor-page .service-time select {
  width: auto;
  max-width: 100%;
  field-sizing: content;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 32px 0 10px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background-color: var(--field);
  background-image: var(--chevron);
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 12px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 34px;
  -webkit-appearance: none;
  appearance: none;
}
.pres-when select:focus,
.editor-page .service-time select:focus { outline: none; border-color: var(--focus); }
.editor-page .service-time select {
  height: 36px;
  min-height: 36px;
  line-height: 34px;
}
.pres-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.icon-btn.danger-icon { color: var(--over); }
.icon-btn.texty { width: auto; padding: 0 8px; color: var(--over); font-size: 13px; }
.empty-pres { margin: 28px 0; }
.acc-list { display: grid; gap: 10px; min-width: 0; }
.acc {
  min-width: 0;
  scroll-margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.acc:not(.open) .acc-body { display: none; }
.acc-fold { flex: 0 0 auto; color: var(--muted); }
.acc.drop-target { border-color: var(--focus); }
.acc.dragging { opacity: 0.55; }
.acc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px 8px 14px;
}
.acc.open .acc-head {
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.grip.drag { width: 14px; height: 18px; cursor: grab; color: #6d7b8c; }
.seg-nav {
  position: sticky;
  top: 12px;
  min-width: 0;
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.seg-nav-label {
  margin: 12px 14px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.seg-nav-list { overflow: auto; padding: 4px 8px 10px; scrollbar-width: thin; }
.edit-seg {
  display: flex;
  align-items: stretch;
  margin: 2px 0;
  border-radius: 8px;
  color: #c5ced8;
}
.edit-seg.current {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92);
}
.edit-seg:hover:not(.current):not(.dragging) {
  background: rgba(var(--hit), 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.45);
}
.edit-seg.dragging { opacity: 0.45; }
.edit-seg.drop-target {
  background: rgba(var(--hit), 0.16);
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.45);
}
.edit-seg > .grip.drag {
  position: relative;
  width: 28px;
  height: auto;
  min-height: 44px;
  flex: 0 0 auto;
  align-self: stretch;
  background: none;
  cursor: grab;
}
.edit-seg > .grip.drag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 14px;
  transform: translate(-50%, -50%);
  background-image: radial-gradient(circle, currentColor 1.15px, transparent 1.3px);
  background-size: 5px 5px;
  opacity: 0.75;
}
.edit-seg > .grip.drag:active { cursor: grabbing; }
.edit-seg-go {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  column-gap: 4px;
  align-items: baseline;
  margin: 0;
  padding: 8px 10px 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.edit-seg-num { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.edit-seg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 640; }
.edit-seg-time { grid-column: 2; color: var(--muted); font-size: 12px; }
.edit-seg.needs-time .edit-seg-name,
.edit-seg.needs-time .edit-seg-time { color: #f0aeb6; }
.acc-num { width: 1.2rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.acc-name {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.02em;
}
.acc-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
input[type="text"].acc-title {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 640;
  letter-spacing: -0.02em;
}
input[type="text"].acc-title:focus {
  border-color: transparent;
  outline: none;
  box-shadow: inset 0 -1px 0 rgba(56, 189, 248, 0.65);
}
.acc-time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.acc.needs-time .acc-title,
.acc.needs-time .acc-time { color: #f0aeb6; }
.acc-body { padding: 0 16px 14px; }
.acc-body .fields { margin-bottom: 14px; }
.acc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.acc-foot .readout { margin: 0; }
.acc-foot .ghost { min-height: 32px; padding: 4px 10px; }
.md-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #10141a;
}
.md-bar button {
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}
.md-bar button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.md-bar button.on {
  background: rgba(var(--hit), 0.38);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(var(--hit-line), 0.7), 0 0 12px rgba(var(--hit), 0.65);
}
.md-bar button.swatch {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0 3px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.md-bar button.swatch:hover { filter: brightness(1.08); }
.md-bar button.swatch.on {
  box-shadow: 0 0 0 2px #10141a, 0 0 0 4px rgba(var(--hit-line), 0.7);
}
.md-bar button.swatch.ink-yellow { background: var(--ink-yellow); }
.md-bar button.swatch.ink-cyan { background: var(--ink-cyan); }
.md-bar button.swatch.ink-green { background: var(--ink-green); }
.md-bar button.swatch.ink-orange { background: var(--ink-orange); }
.md-bar button.swatch.ink-red { background: var(--ink-red); }
.md-bar button.swatch.ink-white { background: var(--ink-white); }
.md-gap { width: 1px; height: 16px; margin: 0 4px; background: var(--line); }
.notes-editor {
  min-height: 360px;
  max-height: 70vh;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: var(--field);
  color: #f4f7fb;
  font-size: 22px;
  font-weight: 450;
  line-height: 1.34;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  outline: none;
}
.notes-editor:focus { border-color: var(--focus); outline: none; }
.notes-editor > :first-child { margin-top: 0; }
.notes-editor strong, .notes-editor b { font-weight: 750; }
.notes-editor h1 { font-size: 1.5em; font-weight: 760; }
.notes-editor h2 { font-size: 1.28em; font-weight: 740; }
.notes-editor h3 { font-size: 1.12em; font-weight: 720; }
.notes-editor h1,
.notes-editor h2,
.notes-editor h3 {
  padding-left: 0.4em;
  border-left: 2px solid rgba(168, 214, 248, 0.75);
}
.notes-editor p:last-child,
.notes-editor div:last-child,
.notes-editor ul:last-child,
.notes-editor ol:last-child,
.notes-editor h1:last-child,
.notes-editor h2:last-child,
.notes-editor h3:last-child { margin-bottom: 0; }

.missing { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; }
.missing h1 { margin: 0 0 16px; font-size: 32px; font-weight: 680; letter-spacing: -0.045em; }
.muted { color: var(--muted); }

@media (max-width: 800px) {
  .deck:not(.editor-page),
  .control { padding: 12px 12px 24px; }
  .deck:not(.editor-page) .deck-top {
    display: grid;
    grid-template-columns: 109px minmax(0, 1fr);
    align-items: center;
  }
  .deck:not(.editor-page) .deck-lead { grid-column: 2; grid-row: 1; }
  .deck:not(.editor-page) .deck-actions { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .deck:not(.editor-page) .deck-sub { margin-left: 169px; }
  .deck-lead,
  .control-lead { align-items: flex-start; }
  .deck-lead .icon-btn,
  .control-lead .icon-btn { margin-top: 2px; }
  .page-title { white-space: pre-wrap; overflow-wrap: anywhere; }
  .deck > .conn,
  .control > .conn { margin: 0 -12px 0; }
  .control-top {
    display: grid;
    grid-template-columns: 109px minmax(0, 1fr);
    align-items: center;
    row-gap: 8px;
  }
  .control-lead { grid-column: 2; grid-row: 1; }
  .control-top .row {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    justify-self: stretch;
    width: 100%;
  }
  .control-top .row .ghost,
  .control-top .row .btn { flex: 1; }
  .editor-page { width: auto; margin: 0; padding: 12px 12px 24px; }
  .editor-page .edit-bar {
    grid-template-columns: 109px minmax(0, 1fr);
    grid-template-areas:
      "logo lead"
      "meta meta"
      "end end";
  }
  .edit-lead,
  .deck-lead,
  .control-lead { min-width: 0; max-width: 100%; align-items: flex-start; }
  .edit-lead .icon-btn { margin-top: 2px; }
  .edit-title,
  .edit-title::after,
  .edit-title textarea { white-space: pre-wrap; overflow-wrap: anywhere; }
  .edit-meta { padding-left: 0; }
  .edit-end { flex-wrap: wrap; }
  .edit-end .edit-tools { flex: 1 0 100%; margin-left: 0; justify-content: flex-end; }
  .edit-end .edit-actions { flex: 1 0 100%; width: 100%; margin-left: 0; }
  .editor-page .move-cat select { height: 40px; min-height: 40px; line-height: 38px; padding-right: 32px; }
  .editor-page .notes-editor { min-height: 200px; }
  .editor-grid, .fields, .cat-grid { grid-template-columns: 1fr; display: grid; }
  .seg-nav { position: static; max-height: none; }
  .seg-nav-list { display: flex; gap: 6px; overflow-x: auto; }
  .edit-seg { flex: 0 0 auto; width: 180px; }
  .home-new-form { flex-wrap: wrap; }
  .md-bar button.swatch { width: 26px; min-width: 26px; height: 26px; min-height: 26px; }
  .home-new-form input[type="text"] { width: min(220px, 100%); }
  .deck-top, .edit-bar { flex-wrap: wrap; align-items: flex-start; }
  .pres { flex-wrap: wrap; }
  .pres-main { flex: 1 1 14rem; }
  .pres-actions { margin-left: auto; }
  input[type="text"].deck-title { font-size: 26px; width: auto; flex: 1 1 auto; min-width: 0; }
  .deck-actions { flex: 1 1 100%; }
  .import-card input,
  .import-card select,
  .import-scope button { min-height: 44px; }
  .pres-when select,
  .pres-when input[type="datetime-local"],
  .editor-page .service-time select,
  .editor-page .service-time input[type="datetime-local"],
  .service-time input[type="datetime-local"] { height: 44px; min-height: 44px; }
  .deck-actions .btn, .deck-actions .ghost { flex: 1; }
  .edit-actions { width: 100%; }
  .edit-actions .btn, .edit-actions .ghost { flex: 1; }
  .edit-tools { margin-left: auto; }
  .edit-tools .icon-btn.texty { width: auto; }
  .deck-sub { margin-left: 0; }
  .acc-body { padding-left: 14px; }
  .acc-foot { align-items: flex-start; flex-direction: column; }
  .cat-card { min-height: 88px; font-size: 18px; }
  .clock { font-size: 56px; }
  .stage-foot { padding: 0 12px; gap: 12px; }
  .stage-clock, .stage-wall { font-size: min(calc(var(--foot) * 0.74), 11cqw); }
  .stage-copy { width: auto; --copy-left: 16px; padding: 0 var(--copy-right) 0 var(--copy-left); }
  .side-collapse,
  .stage.side-collapsed .side-collapse { left: auto; right: 14px; }
  .side-collapse .when-open { display: none; }
  .side-collapse .when-shut { display: grid; }
  .stage.side-open .side-collapse { left: auto; right: 14px; }
  .stage.side-open .side-collapse .when-open { display: grid; }
  .stage.side-open .side-collapse .when-shut { display: none; }
  .stage.side-open .side-collapse:hover::after,
  .stage.side-open .side-collapse:focus-visible::after {
    left: auto;
    right: calc(100% + 10px);
  }
  .run-tools { position: static; margin-left: auto; }
  .run-pop { left: 12px; width: min(320px, calc(100% - 24px)); }
  .stage.side-collapsed .run-side { display: flex; }
  .run-side {
    position: absolute;
    z-index: 6;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    flex-basis: auto;
    transform: translateX(-105%);
  }
  .stage.side-open .run-side { transform: none; }
  .stage.no-chrome .run-side,
  .stage.no-chrome.side-collapsed .run-side { display: none; }
  .run-head .icon-btn {
    width: min(44px, calc(var(--header) - 4px));
    height: min(44px, calc(var(--header) - 4px));
  }
  #stage-autoplay {
    height: min(44px, calc(var(--header) - 4px));
    font-size: 11px;
  }
  .stage.side-open .run-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
  }
  .icon-btn, .run-seg { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .btn, .ghost { min-height: 44px; }
  .control-message-form input,
  .control-message-form .btn,
  .control-message-form .ghost { height: 44px; min-height: 44px; }
  .control-display #control-gear { width: 36px; height: 36px; min-height: 36px; }
  .deck-lead .icon-btn,
  .edit-lead .icon-btn,
  .control-lead .icon-btn { width: 44px; height: 44px; }
  .control-top .row .ghost,
  .control-top .row .btn { height: 44px; }
}

@media (min-width: 860px) {
  .control-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "now segments"
      "now display"
      "message message";
    align-items: start;
  }
  .control-now { grid-area: now; }
  .control-segments { grid-area: segments; }
  .control-display { grid-area: display; }
  .control-message { grid-area: message; }
  .panel-head .ghost { min-height: 32px; }
}
