/* Backstage Stream · Unreleased-Hausstil: warmes Schwarz, Rot als Handlungsfarbe, Mona Sans */
@font-face {
  font-family: "Mona Sans";
  src: url("/fonts/MonaSans-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Mono";
  src: url("/fonts/MonaSansMono-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #0c0a09;
  --surface: #171412;
  --raised: #211d1b;
  --line: #2e2a28;
  --label: #3a3a3c;
  --text: #fafafa;
  --text-2: #c6c6c6;
  --text-3: #9ca3af;
  --red: #e5322d;
  --red-hover: #c9241f;
  --red-text: #ff4d4d;
  --red-deep: #531414;
  --on-red: #ffffff;
  --ok: #5fd08a;
  --f-sans: "Mona Sans", -apple-system, system-ui, sans-serif;
  --f-mono: "Mona Sans Mono", ui-monospace, Menlo, monospace;
  --r: 6px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 40px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
}
[hidden] { display: none !important; }

/* Etikett wie in der Unreleased-App */
.tag {
  display: inline-block;
  background: var(--label);
  color: var(--text);
  font: 700 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
}
.tag--red { background: var(--red); color: var(--on-red); }

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--r);
  background: var(--red);
  color: var(--on-red);
  font: 750 16px/1 var(--f-sans);
  font-stretch: 112%;
  letter-spacing: 0.01em;
  padding: 16px 20px;
  min-height: 52px;
  cursor: pointer;
  transition: background 150ms var(--ease), transform 150ms var(--ease);
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .link:focus-visible, .field:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--ghost { background: var(--raised); color: var(--text); }
.btn--ghost:hover { background: var(--label); }
.btn--small { min-height: 40px; padding: 10px 14px; font-size: 14px; }
.link { color: var(--text-2); font-size: 14px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 0; font-family: inherit; }
.link:hover { color: var(--text); }

/* ---------- Login ---------- */
.login {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(var(--s-xxl), env(safe-area-inset-top)) var(--s-xl) max(var(--s-xl), env(safe-area-inset-bottom));
  max-width: 460px;
  margin: 0 auto;
}
.login__poster {
  margin-top: 12vh;
  margin-bottom: var(--s-xxl);
}
.login__title {
  font-size: clamp(48px, 15vw, 72px);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: var(--s-lg) 0 var(--s-md);
}
.login__title span { color: var(--red); }
.login__lead { color: var(--text-2); margin: 0; max-width: 30ch; }
.login form { display: flex; flex-direction: column; gap: var(--s-md); }
.login label { font: 600 13px/1 var(--f-sans); font-stretch: 110%; color: var(--text-3); letter-spacing: 0.02em; }
.field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font: 700 30px/1 var(--f-mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 12px 16px calc(12px + 0.32em);
  transition: border-color 150ms var(--ease);
}
.field::placeholder { color: var(--label); }
.field:focus { border-color: var(--red); outline: none; }
.field[aria-invalid="true"] { border-color: var(--red-text); }
.form-error { min-height: 1.4em; color: var(--red-text); font-size: 15px; margin: 0; }
.login__foot { margin-top: auto; padding-top: var(--s-xxl); color: var(--text-3); font-size: 13px; }

/* ---------- Kopf ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding: max(var(--s-md), env(safe-area-inset-top)) var(--s-lg) var(--s-md);
}
.top__brand { display: flex; align-items: center; gap: var(--s-sm); min-width: 0; }
.top__name { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__actions { display: flex; gap: var(--s-lg); align-items: center; }

/* ---------- Player ---------- */
/* Player füllt genau die sichtbare Fläche (visualViewport), damit die iPhone-Tastatur nichts verdeckt */
.watch {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: var(--app-h, 100dvh);
  transform: translateY(var(--app-top, 0px));
  overflow: hidden;
}
.watch .stage { flex-shrink: 0; }
/* Handy quer: Video links, Chat rechts, Kopfzeile weg (zu wenig Höhe für untereinander) */
@media (orientation: landscape) and (max-height: 560px) {
  .watch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(300px, 42vw);
    grid-template-rows: auto 1fr;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .watch .top { display: none; }
  .watch .stage {
    grid-column: 1; grid-row: 1;
    height: min(calc((100vw - min(300px, 42vw) - env(safe-area-inset-left) - env(safe-area-inset-right)) * 0.5625), calc(var(--app-h, 100dvh) - 64px));
    width: auto; max-width: 100%; justify-self: center;
  }
  .watch .bar { grid-column: 1; grid-row: 2; align-self: start; }
  .chat { grid-column: 2; grid-row: 1 / 3; border-top: 0; border-left: 1px solid var(--line); min-height: 0; }
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  pointer-events: none;
}
.stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.stage:-webkit-full-screen { aspect-ratio: auto; width: 100vw; height: 100vh; }

.wm {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  font: 700 15px/1.2 var(--f-sans);
  font-stretch: 110%;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  pointer-events: none;
  transition: transform 1.2s var(--ease);
  will-change: transform;
}
.wm-tiles {
  position: absolute;
  inset: -30%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: space-around;
  gap: 48px 24px;
  transform: rotate(-24deg);
  opacity: 0.06;
  pointer-events: none;
  font: 800 14px/1 var(--f-sans);
  color: #fff;
  white-space: nowrap;
}

.state {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-md);
  text-align: center;
  padding: var(--s-xl);
  background: radial-gradient(120% 90% at 50% 0%, #2a0b0b 0%, #0c0a09 70%);
}
.state__title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.state__text { color: var(--text-2); font-size: 15px; margin: 0; max-width: 32ch; }
/* Warte-Video hinter dem Countdown, abgedunkelt, damit die Schrift lesbar bleibt */
#waiting { isolation: isolate; overflow: hidden; }
.stage .state__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; }
.stage .state__bg[hidden] { display: block; opacity: 0; }
#waiting.has-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 40%, rgba(12, 10, 9, 0.6) 0%, rgba(12, 10, 9, 0.88) 100%); }
#waiting.has-video .countdown__num { font-weight: 300; }
#waiting.has-video .countdown__num, #waiting.has-video #waitTitle { color: var(--red-text); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
#waiting.has-video .state__text { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.countdown { display: flex; align-items: baseline; gap: 2px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.countdown[hidden] { display: none; }
.countdown__num { font-size: clamp(40px, 13vw, 72px); font-weight: 200; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.countdown__sep { font-size: clamp(28px, 9vw, 52px); font-weight: 200; color: var(--red); }
.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .wm { transition: none; } }

.stage.is-blocked video { visibility: hidden; }
.stage.is-blocked .blocked { display: flex; }
.blocked { display: none; background: #000; z-index: 5; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
  background: var(--raised);
  color: var(--text-2);
}
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.live-pill.is-live { background: var(--red); color: var(--on-red); }
.live-pill.is-live::before { background: #fff; }
.bar__buttons { display: flex; gap: var(--s-sm); }
.watch__note { padding: 0 var(--s-lg) var(--s-xl); color: var(--text-3); font-size: 13px; margin: 0; }

/* Einbettung in die iPhone-App: nur das Bild */
body.embed .top { display: none; }
body.embed .watch { padding-top: env(safe-area-inset-top); }
.fs-controls { display: none; }
/* App quer = Vollbild: nur das Bild, Wasserzeichen bleibt im Bild */
@media (orientation: landscape) and (max-height: 560px) {
  body.embed .watch { display: block; padding: 0; }
  body.embed .stage {
    position: fixed; inset: 0; z-index: 20;
    width: 100vw; height: var(--app-h, 100dvh);
    aspect-ratio: auto; max-width: none; border-radius: 0;
  }
  body.embed .bar, body.embed .chat { display: none; }
  body.embed .fs-controls {
    display: flex; gap: var(--s-sm);
    position: absolute; z-index: 6;
    top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  }
}
.fs-btn {
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 22px;
  background: rgba(12, 10, 9, 0.6); color: #fff;
  font: 600 15px var(--f-sans);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.fs-btn[hidden] { display: none; }
.bar { flex-shrink: 0; padding: 10px var(--s-lg); }

/* ---------- Reaktionen über dem Video ---------- */
.fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.fx__item {
  position: absolute;
  bottom: 6%;
  left: var(--x);
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, 0) scale(var(--scale, 1));
  animation: fx-rise 2.4s cubic-bezier(0.22, 0.8, 0.3, 1) var(--delay, 0ms) forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
@keyframes fx-rise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(calc(var(--scale, 1) * 0.6)); }
  12% { opacity: 1; transform: translate(-50%, -12px) scale(var(--scale, 1)); }
  70% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), -220px) scale(var(--scale, 1)); }
}
@media (prefers-reduced-motion: reduce) {
  .fx__item { animation: fx-fade 1.2s ease var(--delay, 0ms) forwards; bottom: 10%; }
}
@keyframes fx-fade { 0%, 100% { opacity: 0; } 20%, 70% { opacity: 1; } }

/* ---------- Chat ---------- */
.chat {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.chat__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: var(--s-sm) var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chat__list > :first-child { margin-top: auto; }
.chat__empty { color: var(--text-3); font-size: 14px; padding: var(--s-md) 0; }
.msg { padding: 6px 10px; border-radius: var(--r); margin: 0 -10px; }
.msg--own { background: var(--surface); box-shadow: inset 2px 0 0 var(--red); }
.msg__head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.msg__name { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__tag {
  background: var(--red);
  color: var(--on-red);
  font: 700 10px/1 var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 5px;
  flex-shrink: 0;
}
.msg__time { color: var(--text-3); font: 500 11px var(--f-mono); flex-shrink: 0; }
.msg__delete {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--red-text);
  font: 600 12px var(--f-sans);
  padding: 4px 0 4px 8px;
  cursor: pointer;
}
.msg__delete:disabled { opacity: 0.5; }
.msg__text { margin: 2px 0 0; font-size: 15px; line-height: 1.35; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg--own .msg__text { color: var(--text); }
.chat__jump {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: var(--raised);
  color: var(--text);
  font: 650 13px var(--f-sans);
  padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.chat__bottom {
  flex-shrink: 0;
  padding: 6px var(--s-lg) max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.reactions { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.reaction {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: var(--r);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms var(--ease), transform 150ms var(--ease);
}
.reaction:hover { background: var(--raised); }
.reaction:active { transform: scale(0.92); }
.reaction:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.reaction:disabled { opacity: 0.35; cursor: not-allowed; }
.reaction.is-pop { animation: pop 260ms var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }
.chat__form { display: flex; gap: 8px; }
.chat__input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--text);
  font: 450 16px/1.2 var(--f-sans);
  padding: 11px 12px;
  min-height: 44px;
}
.chat__input::placeholder { color: var(--text-3); }
.chat__input:focus { outline: none; border-color: var(--red); }
.chat__input:disabled { opacity: 0.6; }
.chat__send { min-height: 44px; }
.chat__hint { margin: 6px 0 0; min-height: 0; font-size: 12px; color: var(--text-3); }
.chat__hint:empty { display: none; }

/* Tastatur offen: Platz für den Chat, Video und Wasserzeichen bleiben */
body.kb-open .top, body.kb-open .bar, body.kb-open .reactions { display: none; }

@media (min-width: 900px) {
  .watch {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto 1fr;
  }
  .watch .top { grid-column: 1 / -1; }
  .watch .stage { grid-column: 1; grid-row: 2; align-self: start; border-radius: 0; }
  .watch .bar { grid-column: 1; grid-row: 3; align-self: start; }
  .chat { grid-column: 2; grid-row: 2 / 4; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Admin ---------- */
.admin { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding-bottom: var(--s-xxl); }
.alert {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 var(--s-lg) var(--s-md);
  padding: var(--s-md) var(--s-lg);
  background: var(--red);
  color: var(--on-red);
  border-radius: var(--r);
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-md);
  animation: drop 300ms var(--ease);
}
.alert button { background: rgba(0, 0, 0, 0.25); color: #fff; border: 0; border-radius: var(--r); padding: 8px 10px; font: 600 13px var(--f-sans); cursor: pointer; }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero {
  margin: var(--s-sm) var(--s-lg) var(--s-xl);
  padding: var(--s-xl) var(--s-lg);
  background: var(--surface);
  border-radius: var(--r);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-md);
  align-items: end;
}
.hero__label { color: var(--text-3); font-size: 13px; margin: 0 0 6px; }
.hero__value { font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin: 0; }
.hero__value small { font-size: 17px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.section { margin: 0 var(--s-lg) var(--s-xl); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-sm); }
.section h2 { font-size: 13px; font-weight: 600; font-stretch: 110%; color: var(--text-3); letter-spacing: 0.02em; text-transform: uppercase; margin: 0; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: var(--s-md);
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--label); }
.dot.is-online { background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 208, 138, 0.14); }
.row__name { font-weight: 600; }
.row__meta { color: var(--text-3); font-size: 13px; }
.row__right { text-align: right; font-size: 13px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }
.row--event { grid-template-columns: 54px 1fr; }
.row__meta--red { color: var(--red-text); font-weight: 600; }
@media (max-width: 420px) { .top__name--wide { display: none; } }
.row__time { font: 600 13px var(--f-mono); color: var(--text-3); }
.empty { color: var(--text-3); font-size: 15px; padding: var(--s-lg) 2px; margin: 0; }
.conn { color: var(--text-3); font-size: 12px; margin: 0 var(--s-lg); }

@media (min-width: 720px) {
  .stage { border-radius: var(--r); }
  body.embed .stage { border-radius: 0; }
}

/* Person anlegen und Code einmal anzeigen */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.add { display: flex; gap: var(--s-sm); }
.add .field--name { flex: 1; min-width: 0; font-family: var(--f-sans); font-size: 17px; letter-spacing: normal; text-transform: none; text-align: left; }
.add__error { color: var(--red-text); font-size: 14px; margin: var(--s-sm) 0 0; }
.codebox { margin-top: var(--s-md); padding: var(--s-md); border-radius: 14px; background: var(--raised); }
.codebox__label { margin: 0; color: var(--text-2); font-size: 14px; }
.codebox__code { margin: 6px 0; font-family: "Mona Sans Mono", ui-monospace, monospace; font-size: 40px; font-weight: 700; letter-spacing: 0.18em; color: var(--text); user-select: all; }
.codebox__hint { margin: 0 0 var(--s-sm); color: var(--text-3); font-size: 13px; }
.codebox__actions { display: flex; gap: var(--s-sm); }
.row__btn { color: var(--text-2); font-size: 13px; background: none; border: 0; cursor: pointer; padding: 8px 4px; font-family: inherit; }
.row__btn:hover { color: var(--text); }
.row__btn--red { color: var(--red-text); }
.row__btn--on { color: var(--text); font-weight: 650; }
.row__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.row__right { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }

/* Crew-Übersicht in der iPhone-App: eigener Scrollbereich, weil die App das Seiten-Scrollen sperrt */
html:has(body.embed-admin), body.embed-admin { height: 100%; overflow: hidden; }
body.embed-admin .admin {
  height: var(--app-h, 100dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.ptr {
  position: fixed; top: 0; left: 50%; z-index: 50;
  margin-left: -110px; width: 220px; padding: 8px 0;
  border-radius: 999px; text-align: center;
  background: var(--raised); color: var(--text-2); font-size: 13px;
  transform: translateY(-40px); opacity: 0; transition: opacity 0.15s;
  pointer-events: none;
}
.ptr--on { opacity: 1; }
.row__btn--armed { color: var(--on-red, #fff); background: var(--red); border-radius: 8px; padding-inline: 8px; }
.automation { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); }
.automation[hidden] { display: none; }
.automation h2 { margin: 0 0 4px; }
