/* EOD Tactical Radio – eigenes Stylesheet (radio-*), Designtokens an EOD angelehnt */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Black Ops One";
  src: url("/fonts/black-ops-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --radio-ink: #070a08;
  --radio-panel: #121813;
  --radio-panel-2: #1a221c;
  --radio-olive: #3a4a36;
  --radio-olive-deep: #2a3528;
  --radio-bone: #e8e4d9;
  --radio-muted: #8a928a;
  --radio-acid: #b8a018;
  --radio-lcd: #0d1a10;
  --radio-lcd-text: #9fca78;
  --radio-lcd-dim: #5f7a4e;
  --radio-warn: #c47a3a;
  --radio-danger: #a84838;
  --radio-line: #3a463e;
  --radio-scratch: rgba(232, 228, 217, 0.04);
  --radio-nav-h: 64px;
  --radio-safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--radio-ink); }
html, body.radio-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body.radio-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
body.radio-body {
  min-height: 100dvh;
  color: var(--radio-bone);
  font-family: "Geist", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 50% 0%, #182017 0%, transparent 55%),
    linear-gradient(180deg, #0a0f0c 0%, var(--radio-ink) 40%, #050706 100%);
  overflow-x: clip;
}

.radio-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.radio-shell {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 12px 12px calc(var(--radio-nav-h) + var(--radio-safe-bottom) + 16px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 900px) {
  .radio-shell {
    width: min(920px, calc(100% - 48px));
    padding-top: 28px;
  }
}

.radio-toast {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 160, 24, 0.45);
  background: rgba(18, 24, 19, 0.96);
  font: 650 11px/1.3 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.radio-toast.is-visible { display: flex; }
.radio-toast.is-ios [data-radio-install-action] { display: none; }
.radio-toast button {
  border: 1px solid var(--radio-acid);
  background: transparent;
  color: var(--radio-acid);
  padding: 7px 10px;
  font: 700 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.radio-device {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 18px;
  border: 1px solid var(--radio-line);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.03), transparent 40%),
    linear-gradient(180deg, #1b241d 0%, #121813 55%, #0e140f 100%);
  box-shadow:
    inset 0 1px 0 rgba(232, 228, 217, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.radio-device::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 40%, var(--radio-scratch) 41%, transparent 42%),
    linear-gradient(30deg, transparent 62%, rgba(0,0,0,0.15) 63%, transparent 64%);
  opacity: 0.55;
}
.radio-device > * { position: relative; z-index: 1; }

.radio-device__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.radio-brand {
  font-family: "Black Ops One", "Geist", Arial, sans-serif;
  font-size: clamp(15px, 3.8vw, 20px);
  letter-spacing: 0.04em;
  color: var(--radio-bone);
}
.radio-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a4038;
  box-shadow: inset 0 0 4px rgba(0,0,0,.6);
}
.radio-led--on {
  background: #8fbf5a;
  box-shadow: 0 0 10px rgba(143, 191, 90, 0.55);
}
.radio-led--warn {
  background: var(--radio-warn);
  box-shadow: 0 0 10px rgba(196, 122, 58, 0.5);
}

.radio-power-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #334036;
  background: var(--radio-olive-deep);
}
.radio-power-row strong {
  font: 700 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radio-muted);
}
.radio-switch {
  position: relative;
  width: 74px;
  height: 34px;
  border: 1px solid #55624f;
  background: #0d120e;
  padding: 3px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.radio-switch[aria-checked="true"] {
  border-color: #8fbf5a;
  background: #12200f;
  box-shadow: 0 0 0 1px rgba(143,191,90,.18), 0 0 15px rgba(143,191,90,.28);
}
.radio-switch__knob {
  width: 28px;
  height: 26px;
  background: #6a7464;
  transition: transform .18s ease, background .18s ease;
}
.radio-switch[aria-checked="true"] .radio-switch__knob {
  transform: translateX(40px);
  background: var(--radio-acid);
}
.radio-switch__label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--radio-muted);
}
.radio-switch__label--off { left: 42px; }
.radio-switch__label--on { left: 8px; opacity: 0; }
.radio-switch[aria-checked="true"] .radio-switch__label--off { opacity: 0; }
.radio-switch[aria-checked="true"] .radio-switch__label--on {
  opacity: 1;
  color: #c7f59a;
  text-shadow: 0 0 8px rgba(143,191,90,.75);
}
.radio-device.is-powered .radio-power-row {
  border-color: rgba(143,191,90,.7);
  background: linear-gradient(90deg, rgba(40,70,34,.86), var(--radio-olive-deep));
  box-shadow: inset 0 0 18px rgba(143,191,90,.08);
}
.radio-device.is-powered .radio-power-row > strong { color: #c7f59a; }

.radio-auth {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--radio-line);
  background: rgba(10, 14, 11, 0.72);
}
.radio-auth--guest {
  grid-template-columns: 1fr;
}
.radio-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #4a5648;
  background: #0c110d;
}
.radio-avatar--empty {
  display: grid;
  place-items: center;
  color: var(--radio-muted);
  font: 700 10px/1 "Geist Mono", monospace;
}
.radio-auth__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.radio-auth__meta .radio-eyebrow {
  color: var(--radio-acid);
  font: 700 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.radio-auth__meta strong {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-auth__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #3f4a40;
  color: var(--radio-muted);
  font: 650 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.radio-chip--on {
  border-color: rgba(184, 160, 24, 0.4);
  color: var(--radio-acid);
}

.radio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--radio-acid);
  background: transparent;
  color: var(--radio-acid);
  text-decoration: none;
  font: 800 12px/1 "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.radio-btn--primary {
  background: var(--radio-acid);
  color: #10140f;
}
.radio-btn--primary:hover { filter: brightness(1.05); }
.radio-btn:disabled,
.radio-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.radio-lcd {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px 14px 14px;
  border: 2px solid #2d3b2c;
  background:
    linear-gradient(180deg, rgba(159, 202, 120, 0.05), transparent 30%),
    var(--radio-lcd);
  box-shadow: inset 0 0 0 1px rgba(159, 202, 120, 0.08), inset 0 12px 30px rgba(0,0,0,0.35);
  color: var(--radio-lcd-text);
  font-family: "Geist Mono", monospace;
}
.radio-lcd > :not(.radio-lcd__radar) {
  position: relative;
  z-index: 1;
}
.radio-lcd__radar {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: auto;
  min-width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: saturate(1.18) contrast(1.08);
  transition: opacity 480ms ease;
}
.radio-device.is-powered .radio-lcd__radar {
  opacity: 0.3;
}
.radio-device:not(.is-powered) .radio-lcd {
  color: var(--radio-lcd-dim);
  filter: brightness(0.55);
}
@media (prefers-reduced-motion: reduce) {
  .radio-lcd__radar {
    display: none;
  }
}
.radio-lcd__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.radio-lcd h1 {
  margin: 0 0 14px;
  font-family: "Black Ops One", "Geist", Arial, sans-serif;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: inherit;
}
.radio-lcd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}
.radio-lcd-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.radio-lcd-row--full { grid-column: 1 / -1; }
.radio-lcd-row span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.radio-lcd-row strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.radio-signal i {
  width: 5px;
  background: currentColor;
  opacity: 0.25;
  display: block;
}
.radio-signal i:nth-child(1) { height: 5px; }
.radio-signal i:nth-child(2) { height: 9px; }
.radio-signal i:nth-child(3) { height: 13px; }
.radio-signal i:nth-child(4) { height: 17px; }
.radio-device.is-powered .radio-signal i:nth-child(-n+3) { opacity: 1; }
.radio-battery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.radio-battery__bar {
  width: 46px;
  height: 12px;
  border: 1px solid currentColor;
  padding: 1px;
  position: relative;
}
.radio-battery__bar::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 4px;
  background: currentColor;
}
.radio-battery__fill {
  height: 100%;
  width: 82%;
  background: currentColor;
}

.radio-status-line {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(159, 202, 120, 0.18);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radio-soundboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--radio-line);
  background: rgba(8, 12, 9, 0.72);
}
.radio-channel-control {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.6fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--radio-line);
  background: linear-gradient(90deg, rgba(184, 160, 24, 0.08), rgba(8, 12, 9, 0.78));
}
.radio-channel-control .radio-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--radio-acid);
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
}
.radio-channel-control h2 {
  margin: 0;
  font: 400 16px/1.1 "Black Ops One", "Geist", sans-serif;
}
.radio-channel-control label {
  display: grid;
  gap: 5px;
  color: #7f897f;
  font: 700 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.11em;
}
.radio-channel-control select {
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  border: 1px solid #526052;
  background: #0b100c;
  color: var(--radio-bone);
  padding: 0 9px;
  font: 700 10px/1 "Geist Mono", monospace;
}
.radio-watch,
.radio-command-badge {
  height: 38px;
  min-height: 38px;
  margin: 0;
  border: 1px solid #526052;
  background: #0b100c;
  color: #8fbf5a;
  padding: 7px 9px;
  font: 750 8px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.radio-watch {
  display: grid;
  align-content: center;
  gap: 3px;
  cursor: pointer;
}
.radio-watch b {
  color: var(--radio-acid);
  font-size: 10px;
}
.radio-watch[aria-pressed="false"] {
  color: #727b73;
}
.radio-watch[aria-pressed="false"] b {
  color: var(--radio-warn);
}
.radio-command-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(196, 122, 58, 0.65);
  color: #e49b73;
  white-space: nowrap;
}
.radio-logistics {
  border: 1px solid #4a5034;
  background:
    linear-gradient(115deg, rgba(184, 160, 24, 0.09), transparent 42%),
    rgba(8, 12, 9, 0.78);
}
.radio-logistics__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.radio-logistics__summary::-webkit-details-marker {
  display: none;
}
.radio-logistics__summary::after {
  content: "▸";
  color: var(--radio-acid);
  font: 800 15px/1 "Geist Mono", monospace;
  transition: transform 160ms ease;
}
.radio-logistics[open] .radio-logistics__summary::after {
  transform: rotate(90deg);
}
.radio-logistics__summary .radio-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--radio-acid);
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
}
.radio-logistics__summary h2 {
  margin: 0;
  color: var(--radio-bone);
  font: 400 18px/1.1 "Black Ops One", "Geist", sans-serif;
  letter-spacing: 0.04em;
}
.radio-logistics__summary h2 [hidden] {
  display: none;
}
.radio-logistics__summary small {
  display: block;
  margin-top: 5px;
  color: #788078;
  font: 700 8px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.08em;
}
.radio-logistics__balance {
  display: grid;
  min-width: 88px;
  gap: 4px;
  padding-block: 1px;
  text-align: right;
}
.radio-logistics__balance small {
  margin: 0;
}
.radio-logistics__balance b {
  color: #c9e39f;
  font: 800 13px/1.15 "Geist Mono", monospace;
}
.radio-logistics__content {
  display: grid;
  gap: 11px;
  padding: 13px 14px 15px;
  border-top: 1px solid #3b422d;
}
.radio-logistics__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.radio-logistics-order {
  min-width: 0;
  padding: 8px;
  border-left: 2px solid #68705a;
  background: rgba(12, 17, 12, 0.74);
}
.radio-logistics-order b,
.radio-logistics-order span {
  display: block;
}
.radio-logistics-order b {
  overflow: hidden;
  color: #c7cec2;
  font: 750 9px/1.25 "Geist Mono", monospace;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.radio-logistics-order span {
  margin-top: 5px;
  color: #929b91;
  font: 700 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
}
.radio-logistics-order[data-status="pending"] {
  border-left-color: #d6b95c;
}
.radio-logistics-order[data-status="delivered"] {
  border-left-color: #8fbf5a;
}
.radio-logistics-order[data-status="failed"] {
  border-left-color: #d24e36;
}
.radio-logistics__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.radio-logistics__tabs button {
  min-height: 38px;
  border: 1px solid #485149;
  background: #0d130e;
  color: #8d978e;
  font: 800 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.radio-logistics__tabs button[aria-pressed="true"] {
  border-color: var(--radio-acid);
  background: rgba(184, 160, 24, 0.12);
  color: var(--radio-acid);
}
.radio-logistics__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.radio-logistics-product {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 6px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #465047;
  background: #111812;
}
.radio-logistics-product__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.radio-logistics-product h3 {
  margin: 0;
  color: var(--radio-bone);
  font: 750 11px/1.25 "Geist Mono", monospace;
  text-transform: uppercase;
}
.radio-logistics-product__price {
  flex: 0 0 auto;
  color: var(--radio-acid);
  font: 800 10px/1 "Geist Mono", monospace;
  white-space: nowrap;
}
.radio-logistics-product p,
.radio-logistics-product small {
  margin: 0;
  color: #899289;
  font: 600 10px/1.4 "Geist", Arial, sans-serif;
}
.radio-logistics-product small {
  color: #707970;
  font-family: "Geist Mono", monospace;
  font-size: 8px;
}
.radio-logistics-product button {
  min-height: 34px;
  border: 1px solid #6c6835;
  background: #24240f;
  color: #d7c95e;
  font: 800 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.radio-logistics-product button:disabled {
  border-color: #394139;
  background: #101510;
  color: #606961;
  cursor: not-allowed;
}
.radio-logistics__feedback,
.radio-logistics__empty {
  margin: 0;
  color: #7e887f;
  font: 650 9px/1.45 "Geist Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.radio-logistics__feedback[data-tone="success"] {
  color: #9ad36f;
}
.radio-logistics__feedback[data-tone="error"] {
  color: #e09276;
}
.radio-logistics-confirm {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 5, 4, 0.82);
  backdrop-filter: blur(4px);
}
.radio-logistics-confirm[hidden] {
  display: none;
}
.radio-logistics-confirm > section {
  width: min(430px, 100%);
  padding: 20px;
  border: 1px solid var(--radio-acid);
  background: #111712;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.62);
}
.radio-logistics-confirm h2 {
  margin: 7px 0 14px;
  font: 400 22px/1.1 "Black Ops One", "Geist", sans-serif;
}
.radio-logistics-confirm__quote {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #465047;
  background: #0b100c;
  color: #adb7ac;
  font: 700 10px/1.35 "Geist Mono", monospace;
}
.radio-logistics-confirm__quote strong {
  color: var(--radio-bone);
  font-size: 13px;
}
.radio-logistics-confirm__warning {
  color: #c7ab78;
  font: 650 10px/1.45 "Geist Mono", monospace;
}
.radio-logistics-confirm__warning [hidden] {
  display: none;
}
.radio-logistics-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
}
.radio-logistics-confirm__actions button {
  min-height: 42px;
  border: 1px solid #505a51;
  background: #111712;
  color: #a5afa5;
  font: 800 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.radio-logistics-confirm__actions [data-radio-logistics-submit] {
  border-color: var(--radio-acid);
  background: var(--radio-acid);
  color: #11150d;
}
@media (max-width: 560px) {
  .radio-logistics__summary {
    align-items: flex-start;
  }
  .radio-logistics__status,
  .radio-logistics__products {
    grid-template-columns: 1fr;
  }
}
.radio-receive-log {
  padding: 0;
  border: 1px solid var(--radio-line);
  background: rgba(8, 12, 9, 0.72);
}
.radio-receive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.radio-receive-summary::-webkit-details-marker {
  display: none;
}
.radio-receive-summary:hover,
.radio-receive-summary:focus-visible {
  background: rgba(184, 160, 24, 0.07);
  outline: none;
}
.radio-receive-summary .radio-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--radio-acid);
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
}
.radio-receive-summary h2 {
  margin: 0;
  font: 400 18px/1.1 "Black Ops One", "Geist", sans-serif;
  letter-spacing: 0.04em;
}
.radio-receive-summary small {
  display: block;
  margin-top: 5px;
  color: #7f897f;
  font: 700 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.12em;
}
.radio-receive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 16px;
  color: var(--radio-acid);
  font: 800 9px/1 "Geist Mono", monospace;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.radio-receive-toggle::before {
  content: "▸";
  font-size: 13px;
  transition: transform 160ms ease;
}
.radio-receive-toggle b {
  display: inline-block;
  font: inherit;
  line-height: 1.2;
}
.radio-unread {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid #d24e36;
  background: rgba(210, 78, 54, 0.15);
  color: #f0a38f;
  font: 800 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  font-style: normal;
}
.radio-unread[hidden] {
  display: none;
}
.radio-receive-toggle__close {
  display: none;
}
.radio-receive-log[open] .radio-receive-summary {
  border-bottom: 1px solid var(--radio-line);
}
.radio-receive-log[open] .radio-receive-toggle::before {
  transform: rotate(90deg);
}
.radio-receive-log[open] .radio-receive-toggle__open {
  display: none;
}
.radio-receive-log[open] .radio-receive-toggle__close {
  display: inline;
}
.radio-receive-log__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
}
.radio-receive-log__content .radio-mute {
  align-self: stretch;
}
.radio-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.radio-section-heading .radio-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--radio-acid);
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
}
.radio-section-heading h2 {
  margin: 0;
  font: 400 18px/1.1 "Black Ops One", "Geist", sans-serif;
  letter-spacing: 0.04em;
}
.radio-sync-state,
.radio-mute,
.radio-translate,
.radio-audio-language {
  flex: 0 0 auto;
  height: 34px;
  min-height: 34px;
  margin: 0;
  border: 1px solid #455046;
  background: #0b100c;
  color: var(--radio-muted);
  padding: 7px 8px;
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.radio-sync-state.is-online {
  border-color: rgba(143, 191, 90, 0.5);
  color: #8fbf5a;
}
.radio-mute {
  cursor: pointer;
}
.radio-section-actions .radio-sync-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.radio-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.radio-translate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.radio-audio-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.radio-audio-language span {
  color: #737d74;
  font-size: 8px;
}
.radio-audio-language b {
  color: var(--radio-acid);
  font: 800 10px/1 "Geist Mono", monospace;
}
.radio-translate span {
  display: inline-grid;
  width: 30px;
  height: 18px;
  place-items: center;
  border: 1px solid #596359;
  color: var(--radio-bone);
  font-size: 8px;
}
.radio-translate b {
  font: inherit;
}
.radio-translate[aria-pressed="true"] {
  border-color: rgba(184, 160, 24, 0.75);
  background: rgba(184, 160, 24, 0.13);
  color: var(--radio-acid);
}
.radio-translate[aria-pressed="true"] span {
  border-color: var(--radio-acid);
  color: var(--radio-acid);
}
@media (max-width: 560px) {
  .radio-section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .radio-section-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .radio-channel-control {
    grid-template-columns: 1fr 1fr;
  }
  .radio-channel-control > div,
  .radio-channel-control label {
    grid-column: 1 / -1;
  }
  .radio-favorites__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.radio-mute[aria-pressed="true"] {
  border-color: rgba(196, 122, 58, 0.65);
  color: var(--radio-warn);
}
.radio-clip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.radio-favorites[hidden] {
  display: none;
}
.radio-favorites {
  display: grid;
  gap: 8px;
}
.radio-favorites__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.radio-clip-divider--favorites {
  margin-top: 0;
  border-left-color: #8fbf5a;
  background: rgba(112, 181, 104, 0.08);
  color: #9ddb93;
}
.radio-favorite-shortcut {
  min-height: 52px;
  border: 1px solid rgba(124, 169, 109, 0.72);
  border-left: 3px solid #79a66d;
  background:
    linear-gradient(120deg, rgba(112, 181, 104, 0.14), transparent 68%),
    #152019;
  color: #edf2e9;
  padding: 10px 11px;
  text-align: left;
  font: 850 11px/1.25 "Geist Mono", monospace;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.radio-favorite-shortcut:hover,
.radio-favorite-shortcut:focus-visible {
  border-color: #a3cc91;
  background-color: #1b2a1f;
  color: #ffffff;
}
.radio-favorite-shortcut[data-tone="negative"] {
  border-color: rgba(196, 92, 68, 0.7);
  border-left-color: #c45c44;
  background:
    linear-gradient(120deg, rgba(196, 92, 68, 0.14), transparent 68%),
    #211614;
  color: #f1d7d0;
}
.radio-favorite-shortcut[data-priority="urgent"] {
  border-color: rgba(224, 146, 65, 0.75);
  border-left-color: #e09241;
  background:
    linear-gradient(120deg, rgba(224, 146, 65, 0.16), transparent 68%),
    #241b12;
}
.radio-favorite-shortcut[data-priority="critical"] {
  border-color: rgba(210, 78, 54, 0.82);
  border-left-color: #d24e36;
  background:
    linear-gradient(120deg, rgba(210, 78, 54, 0.18), transparent 68%),
    #251411;
}
@media (max-width: 560px) {
  .radio-favorites__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.radio-clip-card {
  position: relative;
  display: flex;
  min-width: 0;
}
.radio-clip-card .radio-clip {
  width: 100%;
}
.radio-favorite-toggle {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(232, 228, 217, 0.18);
  background: rgba(7, 10, 8, 0.88);
  color: #7c857c;
  font: 800 16px/1 "Geist Mono", monospace;
  cursor: pointer;
}
.radio-favorite-toggle[aria-pressed="true"] {
  border-color: var(--radio-acid);
  color: var(--radio-acid);
  background: #23210f;
}
.radio-clip--priority-critical {
  border-color: rgba(210, 78, 54, 0.78);
  box-shadow: inset 4px 0 0 #d24e36;
}
.radio-clip--priority-urgent {
  border-color: rgba(224, 146, 65, 0.62);
}
.radio-clip-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #596359;
  background: rgba(255, 255, 255, 0.025);
  color: #8c968d;
  font: 700 9px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.12em;
}
.radio-clip-divider--quick {
  margin-top: 0;
  border-left-color: var(--radio-acid);
  background: rgba(184, 160, 24, 0.09);
  color: var(--radio-acid);
}
.radio-clip-divider b {
  font: inherit;
}
.radio-clip-divider span {
  color: var(--radio-bone);
  font-size: 8px;
  opacity: 0.72;
}
.radio-clip {
  min-height: 118px;
  padding: 12px;
  border: 1px solid #455046;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.035), transparent 60%),
    #182019;
  color: var(--radio-bone);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}
.radio-clip__title {
  font: 750 12px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.radio-clip--quick {
  border-width: 2px;
  box-shadow: inset 4px 0 0 currentColor;
}
.radio-clip--compact {
  min-height: 84px;
}
.radio-clip--compact .radio-clip__title {
  font-size: 15px;
}
.radio-clip--positive {
  border-color: rgba(112, 181, 104, 0.72);
  background:
    linear-gradient(145deg, rgba(112, 181, 104, 0.18), transparent 66%),
    #172219;
}
.radio-clip--negative {
  border-color: rgba(207, 112, 64, 0.78);
  background:
    linear-gradient(145deg, rgba(207, 112, 64, 0.2), transparent 66%),
    #241915;
}
.radio-clip__quick-label {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  color: #eef2e9;
  font: 800 13px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.radio-clip__quick-label span {
  color: currentColor;
  font-size: 8px;
  letter-spacing: 0.13em;
  opacity: 0.68;
}
.radio-clip--positive .radio-clip__quick-label {
  color: #9ddb93;
}
.radio-clip--negative .radio-clip__quick-label {
  color: #e49b73;
}
.radio-clip .radio-clip__message {
  flex: 1;
  color: #aeb6ad;
  font: 550 11px/1.4 "Geist", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.radio-clip__title,
.radio-clip__quick-label,
.radio-clip .radio-clip__message {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.radio-clip [hidden] {
  display: none;
}
.radio-clip em {
  color: var(--radio-acid);
  font: 700 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.12em;
  font-style: normal;
  text-transform: uppercase;
}
.radio-clip:hover:not(:disabled),
.radio-clip:focus-visible {
  border-color: var(--radio-acid);
  background-color: #202a20;
}
.radio-clip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.radio-clip.is-sending {
  border-color: var(--radio-acid);
  box-shadow: inset 0 0 0 1px rgba(184, 160, 24, 0.35);
}
.radio-feedback {
  min-height: 18px;
  margin: 0;
  color: var(--radio-muted);
  font: 600 11px/1.5 "Geist Mono", monospace;
}
.radio-feedback[data-tone="success"] { color: #8fbf5a; }
.radio-feedback[data-tone="error"] { color: var(--radio-warn); }

.radio-event-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.radio-event,
.radio-event-empty {
  padding: 9px 10px;
  border-left: 2px solid #465147;
  background: rgba(13, 18, 14, 0.82);
}
.radio-event > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.radio-event strong {
  color: var(--radio-acid);
  font: 750 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
}
.radio-event time {
  color: #667066;
  font: 600 9px/1 "Geist Mono", monospace;
}
.radio-event > span {
  color: var(--radio-bone);
  font: 650 12px/1.3 "Geist Mono", monospace;
  text-transform: uppercase;
}
.radio-event-empty {
  color: #667066;
  font: 600 11px/1.4 "Geist Mono", monospace;
}
.radio-event--urgent {
  border-left-color: #e09241;
  background: rgba(71, 45, 18, 0.38);
}
.radio-event--critical {
  border-left-color: #d24e36;
  background: rgba(76, 24, 18, 0.46);
}
.radio-event--command {
  border-left-color: #d6b438;
  background: linear-gradient(90deg, rgba(100, 79, 13, 0.33), rgba(13, 18, 14, 0.82));
}
.radio-event__identity {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 7px;
}
.radio-event__identity small {
  grid-column: 1 / -1;
  color: #778278;
  font: 650 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.radio-event__identity em {
  padding: 3px 5px;
  border: 1px solid rgba(214, 180, 56, 0.55);
  color: #e7c85c;
  font: 800 7px/1 "Geist Mono", monospace;
  font-style: normal;
  letter-spacing: 0.08em;
}
.radio-event__replies {
  justify-content: flex-start !important;
  flex-wrap: wrap;
  margin: 9px 0 0 !important;
}
.radio-event__replies button {
  min-height: 28px;
  border: 1px solid #4c594e;
  background: #101711;
  color: #aeb8af;
  padding: 5px 8px;
  font: 750 8px/1 "Geist Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
}
.radio-event__replies button:hover,
.radio-event__replies button:focus-visible {
  border-color: var(--radio-acid);
  color: var(--radio-acid);
}
.radio-priority-alert {
  animation: radio-priority-pulse 600ms ease-in-out 3;
}
@keyframes radio-priority-pulse {
  0%, 100% {
    box-shadow: inset 0 1px 0 rgba(232, 228, 217, 0.06), 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  50% {
    border-color: rgba(210, 78, 54, 0.92);
    box-shadow: 0 0 0 3px rgba(210, 78, 54, 0.18), 0 0 30px rgba(210, 78, 54, 0.24);
  }
}

.radio-ptt-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.radio-ptt {
  width: min(220px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #6a7a58;
  background:
    radial-gradient(circle at 35% 30%, #5a6a4c 0%, #2f3a2c 55%, #1b221a 100%);
  color: var(--radio-bone);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.08),
    inset 0 -8px 16px rgba(0,0,0,0.35),
    0 10px 24px rgba(0,0,0,0.4);
  font: 800 13px/1.25 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  touch-action: none;
}
.radio-ptt span {
  display: block;
  max-width: 70%;
  margin: 0 auto;
}
.radio-device.is-powered .radio-ptt {
  border-color: rgba(184, 160, 24, 0.65);
}
.radio-ptt.is-pressed {
  transform: scale(0.97);
  filter: brightness(0.92);
}
.radio-ptt:disabled {
  opacity: 0.72;
  cursor: default;
}
.radio-ptt-hint {
  margin: 0;
  color: var(--radio-muted);
  font: 600 11px/1.4 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.radio-system {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #2d3630;
  background: rgba(8, 11, 9, 0.65);
  color: var(--radio-muted);
  font: 600 11px/1.45 "Geist Mono", monospace;
  letter-spacing: 0.04em;
}
.radio-system b { color: var(--radio-acid); font-weight: 700; }

.radio-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 0;
  padding: 6px 4px calc(6px + var(--radio-safe-bottom));
  border-top: 1px solid var(--radio-line);
  background: rgba(8, 11, 9, 0.96);
  backdrop-filter: blur(8px);
}
@media (min-width: 900px) {
  .radio-nav { width: min(920px, calc(100% - 48px)); }
}
.radio-nav a,
.radio-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--radio-muted);
  min-height: 52px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  font: 650 8px/1 "Geist Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.radio-nav a.is-active,
.radio-nav button.is-active {
  color: var(--radio-acid);
}
.radio-nav a[aria-disabled="true"],
.radio-nav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.radio-nav__icon {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.radio-footer-note {
  margin: 0;
  text-align: center;
  color: #667066;
  font: 600 10px/1.4 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.radio-provisional {
  margin-left: 8px;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--radio-warn);
  opacity: 0.95;
}

.radio-profile-lead {
  margin: 0;
  color: var(--radio-muted);
  font-size: 13px;
  line-height: 1.5;
}
.radio-profile-lead .radio-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--radio-acid);
  font: 700 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.radio-notice {
  padding: 12px 14px;
  border: 1px solid rgba(196, 122, 58, 0.45);
  background: rgba(34, 22, 14, 0.72);
  color: #d8c4b0;
  font-size: 13px;
  line-height: 1.5;
}
.radio-notice strong {
  display: block;
  margin-bottom: 6px;
  color: var(--radio-warn);
  font: 700 11px/1.3 "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.radio-notice p { margin: 0; }

.radio-config-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--radio-line);
  background: rgba(10, 14, 11, 0.72);
}
.radio-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--radio-muted);
  font: 650 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.radio-field input,
.radio-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--radio-line);
  background: #0d120e;
  color: var(--radio-bone);
  font: 600 14px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.04em;
}
.radio-field input:disabled,
.radio-field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.radio-field small {
  font: 600 10px/1.4 "Geist", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: #6f786f;
}
.radio-lcd--profile h1 { display: none; }

.radio-offline-shell { justify-content: center; }
.radio-offline-page .radio-lcd h1 { margin-bottom: 10px; }
.radio-offline-page .radio-lcd p { color: var(--radio-lcd-text); opacity: 0.85; line-height: 1.5; }
.radio-offline-page .radio-btn { margin-top: 12px; }

@media (orientation: landscape) and (max-height: 480px) {
  .radio-shell { padding-bottom: calc(var(--radio-nav-h) + 8px); }
  .radio-ptt { width: min(140px, 28vw); }
  .radio-auth { grid-template-columns: 40px 1fr auto; }
}

@media (min-width: 900px) {
  .radio-device {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "top top"
      "auth power"
      "lcd lcd"
      "channel channel"
      "logistics logistics"
      "soundboard soundboard"
      "receive receive"
      "system system";
    gap: 16px 20px;
    padding: 22px;
  }
  .radio-device__top { grid-area: top; }
  .radio-auth { grid-area: auth; }
  .radio-power-row { grid-area: power; align-self: stretch; }
  .radio-lcd { grid-area: lcd; }
  .radio-channel-control { grid-area: channel; }
  .radio-logistics { grid-area: logistics; }
  .radio-soundboard { grid-area: soundboard; }
  .radio-receive-log { grid-area: receive; }
  .radio-system { grid-area: system; grid-template-columns: repeat(3, 1fr); }
  .radio-clip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 460px) and (max-width: 899px) {
  .radio-clip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .radio-lcd-row--channel {
    grid-column: 1 / -1;
  }
  .radio-lcd-row--channel strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Im Website-Popup bleibt die Funkoberfläche scrollbar, aber ohne sichtbare Leiste. */
.radio-body--popup {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.radio-body--popup .radio-shell {
  width: min(480px, 100%);
  padding-top: 8px;
}
.radio-body--embed .radio-toast,
.radio-body--embed .radio-nav {
  display: none !important;
}
.radio-body--embed .radio-shell {
  width: min(480px, 100%);
  min-height: 100%;
  padding: 8px;
}

/* EOD Companion Dashboard */
.companion-shell { gap: 16px; }
.companion-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--radio-line);
  background: linear-gradient(135deg, #1a241c 0%, #0d130f 70%);
}
.companion-hero img {
  display: block;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.5));
}
.companion-hero h1 {
  margin: 6px 0 5px;
  color: var(--radio-bone);
  font: 400 clamp(28px, 7vw, 42px)/1 "Black Ops One", sans-serif;
  letter-spacing: .02em;
}
.companion-hero p,
.companion-login p,
.companion-identity p,
.companion-card p {
  margin: 0;
  color: var(--radio-muted);
  font-size: 13px;
  line-height: 1.5;
}
.companion-login {
  padding: 22px;
  border: 1px solid var(--radio-line);
  background: var(--radio-panel);
}
.companion-login h2 { margin: 7px 0 9px; font-size: 22px; }
.companion-login .radio-btn { margin-top: 16px; }
.companion-identity {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--radio-line);
  background: rgba(18,24,19,.88);
}
.companion-identity .radio-avatar { width: 64px; height: 64px; }
.companion-identity strong {
  display: block;
  margin: 4px 0;
  font: 700 19px/1.2 "Geist Mono", monospace;
}
.companion-admin-badge {
  padding: 7px 9px;
  border: 1px solid rgba(196,122,58,.62);
  color: var(--radio-warn);
  font: 800 9px/1 "Geist Mono", monospace;
  letter-spacing: .12em;
}
.companion-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border: 1px solid var(--radio-line);
  background: #0d120e;
}
.companion-stats > div {
  min-width: 0;
  padding: 13px;
  border-right: 1px solid rgba(232,228,217,.09);
}
.companion-stats > div:last-child { border-right: 0; }
.companion-stats small {
  display: block;
  margin-bottom: 7px;
  color: var(--radio-muted);
  font: 650 8px/1 "Geist Mono", monospace;
  letter-spacing: .12em;
}
.companion-stats strong {
  display: block;
  overflow: hidden;
  color: var(--radio-bone);
  font: 750 13px/1.2 "Geist Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.companion-stats .is-online { color: var(--radio-lcd-text); }
.companion-stats .is-offline { color: var(--radio-warn); }
.companion-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.companion-card {
  min-height: 176px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--radio-line);
  background: linear-gradient(155deg, #182019 0%, #101511 75%);
  color: var(--radio-bone);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.companion-card:hover,
.companion-card:focus-visible {
  border-color: var(--radio-acid);
  background: linear-gradient(155deg, #20291d 0%, #121812 75%);
  transform: translateY(-2px);
}
.companion-card--primary { border-left: 3px solid var(--radio-acid); }
.companion-card--admin { border-left: 3px solid var(--radio-warn); }
.companion-card__code {
  color: var(--radio-acid);
  font: 750 9px/1 "Geist Mono", monospace;
  letter-spacing: .15em;
}
.companion-card strong {
  margin: 10px 0 7px;
  font: 700 17px/1.25 "Geist Mono", monospace;
}
.companion-card em {
  margin-top: auto;
  padding-top: 15px;
  color: var(--radio-acid);
  font: 750 9px/1 "Geist Mono", monospace;
  font-style: normal;
  letter-spacing: .1em;
}
@media (max-width: 560px) {
  .companion-hero { grid-template-columns: 64px 1fr; padding: 14px; }
  .companion-hero img { width: 64px; }
  .companion-hero p { font-size: 12px; }
  .companion-identity { grid-template-columns: 52px minmax(0,1fr); }
  .companion-identity .radio-avatar { width: 52px; height: 52px; }
  .companion-admin-badge { grid-column: 2; justify-self: start; }
  .companion-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .companion-stats > div:nth-child(2) { border-right: 0; }
  .companion-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(232,228,217,.09); }
  .companion-grid { grid-template-columns: 1fr; }
  .companion-card { min-height: 154px; }
}

@media (max-width: 520px) {
  .radio-toast {
    align-items: flex-start;
    flex-direction: column;
  }
  .radio-toast > span:last-child {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
  }
}
