:root {
  color-scheme: dark;
  --bg: #0d1014;
  --panel: #171c22;
  --panel-2: #20262e;
  --text: #eff4f7;
  --muted: #9aa8b4;
  --line: #384451;
  --ok: #2ed47a;
  --warn: #f6bd3d;
  --bad: #ff5c7a;
  --info: #58a6ff;
  --voice: #b38cff;
  --audio: #45d6c5;
  --table: #f6bd3d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.shell {
  width: min(1840px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.meters,
.lower {
  display: grid;
  gap: 16px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  font-weight: 750;
}

.topbar p,
.node p,
.panel li,
.clock {
  color: var(--muted);
}

.attention-details {
  max-width: 980px;
  margin-top: 8px;
  color: var(--warn);
  font-size: 14px;
  line-height: 1.4;
}

.attention-details[hidden] {
  display: none;
}

.clock {
  display: grid;
  justify-items: end;
  gap: 8px;
  font-size: 13px;
}

.topbar-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.quick-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.quick-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--info), transparent 45%);
  border-radius: 6px;
  color: var(--text);
  background: #121922;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.quick-tab:hover,
.quick-tab:focus-visible {
  border-color: var(--info);
  color: #ffffff;
  background: #172331;
  outline: none;
}

.user-auth {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-login-button {
  font: inherit;
  cursor: pointer;
}

.auth-login-button[hidden] {
  display: none;
}

.auth-login-button:disabled {
  cursor: wait;
  opacity: .7;
}

.auth-user-display {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding: 4px 6px 4px 8px;
  border: 1px solid color-mix(in srgb, var(--ok), transparent 50%);
  border-radius: 6px;
  background: #121922;
}

.auth-user-display[hidden],
.auth-user-photo[hidden],
.auth-user-initials[hidden] {
  display: none;
}

.auth-user-photo,
.auth-user-initials {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.auth-user-photo {
  object-fit: cover;
}

.auth-user-initials {
  display: inline-grid;
  flex: 0 0 26px;
  place-items: center;
  color: #07110c;
  background: var(--ok);
  font-size: 10px;
  font-weight: 800;
}

.auth-user-copy {
  display: grid;
  max-width: 190px;
  line-height: 1.15;
}

.auth-user-copy small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.auth-user-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-copy .auth-user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

.auth-logout-button {
  min-height: 25px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #0d131a;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.auth-logout-button:hover,
.auth-logout-button:focus-visible {
  border-color: var(--info);
  color: var(--text);
  outline: none;
}

.auth-status {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 3;
  width: max-content;
  max-width: min(360px, 80vw);
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.auth-status:empty {
  display: none;
}

.state,
.node strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #10151b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ok {
  border-color: color-mix(in srgb, var(--ok), transparent 45%);
  color: var(--ok);
}

.warn {
  border-color: color-mix(in srgb, var(--warn), transparent 40%);
  color: var(--warn);
}

.bad {
  border-color: color-mix(in srgb, var(--bad), transparent 40%);
  color: var(--bad);
}

.unknown {
  border-color: color-mix(in srgb, var(--info), transparent 50%);
  color: var(--info);
}

.recorder-console {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid #344150;
  border-radius: 10px;
  background: linear-gradient(135deg, #18202a, #12171e 68%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

.mobile-recorder-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--info), #344150 58%);
  border-radius: 10px;
  background: linear-gradient(135deg, #172530, #12171e 68%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

.mobile-recorder-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mobile-recorder-body > div:first-child {
  display: grid;
  gap: 5px;
}

.mobile-recorder-body p,
.mobile-recorder-boundary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.mobile-recorder-body small {
  color: var(--muted);
}

.mobile-recorder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mobile-recorder-slot {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10171e;
}

.mobile-recorder-slot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mobile-recorder-slot.identified span {
  overflow-wrap: anywhere;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.mobile-recorder-slot strong {
  font-size: 16px;
}

.mobile-recorder-slot small {
  color: var(--muted);
}

.mobile-recorder-sound {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 3px;
  padding: 3px 1px;
  filter: none;
}

.mobile-recorder-sound i {
  width: 5px;
  height: 24px;
  transform: scaleY(.08);
  transform-origin: center;
  border-radius: 999px;
  background: #52606d;
  opacity: .72;
  animation: none;
}

.mobile-recorder-slot.recording .mobile-recorder-sound {
  filter: drop-shadow(0 0 7px rgba(79, 209, 197, .38));
}

.mobile-recorder-slot.recording .mobile-recorder-sound i {
  opacity: 1;
  background: #4fd1c5;
  animation: sound-bar-pulse .72s steps(7, end) infinite alternate;
}

.mobile-recorder-slot.recording .mobile-recorder-sound i:nth-child(3n + 1) { background: #64d8ff; animation-duration: .51s; animation-delay: -.31s; }
.mobile-recorder-slot.recording .mobile-recorder-sound i:nth-child(3n + 2) { background: #b794f4; animation-duration: .86s; animation-delay: -.58s; }
.mobile-recorder-slot.recording .mobile-recorder-sound i:nth-child(3n) { background: #ff7eb6; animation-duration: .63s; animation-delay: -.17s; }

.mobile-recorder-slot.recording {
  background: linear-gradient(135deg, rgba(79, 209, 197, .10), rgba(183, 148, 244, .08) 52%, rgba(255, 126, 182, .08)), #10171e;
  box-shadow: inset 0 0 20px rgba(79, 209, 197, .06), 0 0 18px rgba(79, 209, 197, .08);
}

.mobile-recorder-slot.gm {
  border-color: color-mix(in srgb, var(--voice), transparent 42%);
  background: color-mix(in srgb, var(--voice), #10171e 90%);
}

.mobile-recorder-slot.recording,
.mobile-recorder-slot.connected,
.mobile-recorder-slot.archived {
  border-color: color-mix(in srgb, var(--ok), transparent 35%);
}

.mobile-recorder-slot.recording strong,
.mobile-recorder-slot.archived strong {
  color: var(--ok);
}

.mobile-recorder-slot.syncing {
  border-color: color-mix(in srgb, var(--info), transparent 32%);
}

.mobile-recorder-slot.syncing strong,
.mobile-recorder-slot.connected strong {
  color: var(--info);
}

.mobile-recorder-slot.attention {
  border-color: color-mix(in srgb, var(--bad), transparent 28%);
}

.mobile-recorder-slot.attention strong {
  color: var(--bad);
}

.mobile-recorder-slot.waiting strong,
.mobile-recorder-slot.unavailable strong {
  color: var(--muted);
}

.mobile-recorder-boundary {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.recorder-console-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.recorder-console-heading h2 {
  margin-top: 3px;
  font-size: 22px;
}

.recorder-console-heading p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.recorder-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.action-button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #151c24;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.action-button:hover:not(:disabled),
.action-button:focus-visible:not(:disabled) {
  border-color: var(--info);
  background: #1d2936;
  outline: none;
}

.action-button.primary {
  border-color: color-mix(in srgb, var(--ok), transparent 30%);
  background: #153023;
}

.action-button.danger {
  border-color: color-mix(in srgb, var(--bad), transparent 35%);
  background: #321923;
}

.action-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.action-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: .48;
}

.recorder-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recorder-process li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11171e;
}

.recorder-process li > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 800;
}

.recorder-process li div {
  display: grid;
  gap: 3px;
}

.recorder-process li small,
.camera-result small,
.recorder-result time {
  color: var(--muted);
}

.recorder-process li.active {
  border-color: var(--info);
  background: #142333;
}

.recorder-process li.active > span {
  border-color: var(--info);
  color: var(--info);
}

.recorder-process li.complete {
  border-color: color-mix(in srgb, var(--ok), transparent 35%);
}

.recorder-process li.complete > span {
  border-color: var(--ok);
  color: var(--ok);
}

.recorder-process li.error {
  border-color: var(--bad);
}

.recorder-result {
  display: grid;
  grid-template-columns: minmax(170px, .35fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--info);
  border-radius: 8px;
  background: #0f151b;
}

.recorder-result > div {
  display: grid;
  gap: 4px;
}

.recorder-result-heading {
  position: relative;
  z-index: 20;
}

.recorder-result-help-trigger {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: help;
}

.recorder-result-help-trigger strong {
  border-bottom: 1px dashed color-mix(in srgb, currentColor, transparent 38%);
}

.recorder-result-help-trigger:hover strong,
.recorder-result-help-trigger:focus-visible strong {
  border-bottom-color: currentColor;
}

.recorder-result-help-trigger:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--info);
  outline-offset: 4px;
}

.recorder-result-help-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  opacity: .82;
}

.recorder-action-help {
  position: absolute;
  top: calc(100% + 10px);
  left: -4px;
  z-index: 30;
  width: min(520px, calc(100vw - 64px));
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--info), transparent 35%);
  border-radius: 8px;
  color: var(--text);
  background: #101821;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .48);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease;
}

.recorder-action-help::before {
  position: absolute;
  top: -6px;
  left: 24px;
  width: 10px;
  height: 10px;
  border-top: 1px solid color-mix(in srgb, var(--info), transparent 35%);
  border-left: 1px solid color-mix(in srgb, var(--info), transparent 35%);
  background: #101821;
  content: '';
  transform: rotate(45deg);
}

.recorder-result.warn .recorder-action-help {
  border-color: color-mix(in srgb, var(--warn), transparent 30%);
}

.recorder-result.bad .recorder-action-help {
  border-color: color-mix(in srgb, var(--bad), transparent 30%);
}

.recorder-result-heading:hover .recorder-action-help,
.recorder-result-help-trigger:focus-visible + .recorder-action-help,
.recorder-result-heading.is-open .recorder-action-help {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.recorder-action-help p {
  color: #cbd5de;
  font-size: 13px;
  line-height: 1.45;
}

.recorder-action-help ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.recorder-action-help li::marker {
  color: var(--info);
  font-weight: 800;
}

.recorder-result.ok { border-left-color: var(--ok); }
.recorder-result.warn { border-left-color: var(--warn); }
.recorder-result.bad { border-left-color: var(--bad); }

.recorder-result .control-status {
  min-height: auto;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.camera-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.camera-result {
  display: grid;
  grid-template-columns: 150px 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #11171e;
}

.camera-result.ok { border-color: color-mix(in srgb, var(--ok), transparent 45%); }
.camera-result.warn { border-color: color-mix(in srgb, var(--warn), transparent 40%); }
.camera-result.bad { border-color: color-mix(in srgb, var(--bad), transparent 40%); }

.map {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border: 1px solid #29323c;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    #11161c;
  background-size: 56px 56px;
}

.flow-layer {
  position: absolute;
  inset: 0;
  width: 1780px;
  height: 820px;
}

.flow-layer marker path {
  fill: #dce4eb;
}

.flow {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  marker-end: url(#arrow);
  opacity: 1;
  stroke-opacity: .45;
}

.flow.active {
  stroke-opacity: .95;
  stroke-dasharray: 12 18;
  animation: flow 1.2s linear infinite;
}

.command-flow {
  color: var(--voice);
  stroke: currentColor;
}

.video-flow {
  color: var(--info);
  stroke: currentColor;
}

.audio-flow {
  color: var(--audio);
  stroke: currentColor;
}

.table-flow {
  color: var(--table);
  stroke: currentColor;
}

.flow-camera-icon {
  color: var(--table);
  fill: #11161c;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}

.flow-camera-icon circle:last-child {
  fill: currentColor;
}

@keyframes flow {
  to {
    stroke-dashoffset: -60;
  }
}

.audio-meters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.audio-meter {
  position: absolute;
  top: 270px;
  width: 112px;
  height: 100px;
  display: grid;
  grid-template-rows: 74px auto;
  gap: 8px;
  opacity: 0;
  transform: translateY(7px) scale(.96);
  transition: opacity .3s ease, transform .3s ease;
}

.audio-meter-left {
  left: 712px;
}

.audio-meter-right {
  left: 1006px;
}

.audio-meters.is-active .audio-meter {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sound-bars {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(67, 215, 189, .24);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(42, 201, 157, .1), rgba(10, 14, 18, .72) 70%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .42), 0 0 18px rgba(42, 201, 157, .08);
}

.sound-bars i {
  width: 7px;
  height: 62px;
  display: block;
  border-radius: 2px;
  background: linear-gradient(to top, #23df73 0 48%, #dce83d 48% 72%, #ffad24 72% 86%, #ff424d 86% 100%);
  -webkit-mask: repeating-linear-gradient(to top, #000 0 4px, transparent 4px 6px);
  mask: repeating-linear-gradient(to top, #000 0 4px, transparent 4px 6px);
  filter: drop-shadow(0 0 3px rgba(66, 226, 116, .42));
  transform: scaleY(.12);
  transform-origin: center;
}

.audio-meters.is-active .sound-bars i {
  animation: sound-bar-pulse .72s steps(7, end) infinite alternate;
}

.audio-meters.is-active .sound-bars i:nth-child(2n) { animation-duration: .51s; animation-delay: -.31s; }
.audio-meters.is-active .sound-bars i:nth-child(3n) { animation-duration: .86s; animation-delay: -.58s; }
.audio-meters.is-active .sound-bars i:nth-child(4n) { animation-duration: .63s; animation-delay: -.17s; }
.audio-meters.is-active .audio-meter-right .sound-bars i { animation-direction: alternate-reverse; }

.audio-meter > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8ce8cf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(42, 201, 157, .35);
}

.audio-meter > span b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4a56;
  box-shadow: 0 0 9px rgba(255, 74, 86, .9);
  animation: recording-light 1s ease-in-out infinite alternate;
}

@keyframes sound-bar-pulse {
  0% { transform: scaleY(.12); }
  18% { transform: scaleY(.55); }
  38% { transform: scaleY(.28); }
  61% { transform: scaleY(.92); }
  78% { transform: scaleY(.46); }
  100% { transform: scaleY(.74); }
}

@keyframes recording-light {
  from { opacity: .42; }
  to { opacity: 1; }
}

.node {
  position: absolute;
  width: 150px;
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 28, 34, .94);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .26);
}

.node h2 {
  font-size: 19px;
}

.node p {
  min-height: 38px;
  font-size: 14px;
  line-height: 1.35;
}

.node .elapsed {
  min-height: 20px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.control-status {
  min-height: 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.control-status.ok {
  color: var(--ok);
}

.control-status.warn {
  color: var(--warn);
}

.control-status.bad {
  color: var(--bad);
}

.node a {
  color: #9dccff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.node a:hover,
.node a:focus-visible {
  color: var(--text);
}

.node-type {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.node.active {
  border-color: color-mix(in srgb, var(--info), transparent 25%);
}

.alexa {
  left: 40px;
  top: 72px;
}

.cloudflare {
  left: 305px;
  top: 72px;
}

.pc {
  left: 570px;
  top: 72px;
}

.vtt {
  left: 835px;
  top: 72px;
}

.top-camera {
  left: 590px;
  top: 420px;
}

.activity-card {
  left: 250px;
  top: 420px;
  width: 300px;
  min-height: 252px;
  border-color: color-mix(in srgb, var(--info), transparent 50%);
}

.activity-card h2 {
  font-size: 18px;
}

.activity-card ol {
  margin: 0;
  padding-left: 20px;
}

.activity-card li {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.3;
}

.side-camera {
  left: 1080px;
  top: 420px;
}

.command-card {
  left: 1270px;
  top: 420px;
  width: 300px;
  min-height: 252px;
  border-color: color-mix(in srgb, var(--voice), transparent 45%);
}

.command-card h2 {
  font-size: 18px;
}

.command-card .command-start {
  min-height: auto;
  margin-bottom: 0;
  font-size: 14px;
}

.command-card .commands {
  margin: 0;
  padding-left: 20px;
}

.command-card li {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.3;
}

.table {
  left: 840px;
  top: 625px;
  border-color: color-mix(in srgb, var(--table), transparent 45%);
}

.grandstream {
  left: 833px;
  top: 400px;
  width: 164px;
  min-height: 164px;
  height: 164px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  border-color: color-mix(in srgb, var(--audio), transparent 35%);
  border-radius: 50%;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .audio-meters.is-active .sound-bars i,
  .audio-meter > span b,
  .mobile-recorder-slot.recording .mobile-recorder-sound i {
    animation: none;
  }

  .audio-meters.is-active .sound-bars i:nth-child(3n + 1) { transform: scaleY(.42); }
  .audio-meters.is-active .sound-bars i:nth-child(3n + 2) { transform: scaleY(.72); }
  .audio-meters.is-active .sound-bars i:nth-child(3n) { transform: scaleY(.55); }
  .mobile-recorder-slot.recording .mobile-recorder-sound i:nth-child(3n + 1) { transform: scaleY(.42); }
  .mobile-recorder-slot.recording .mobile-recorder-sound i:nth-child(3n + 2) { transform: scaleY(.72); }
  .mobile-recorder-slot.recording .mobile-recorder-sound i:nth-child(3n) { transform: scaleY(.55); }
}

.grandstream p {
  min-height: auto;
  max-width: 132px;
  overflow: hidden;
  font-size: 12px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.grandstream strong {
  font-size: 12px;
}

.ffmpeg {
  left: 1100px;
  top: 72px;
  border-color: color-mix(in srgb, var(--audio), transparent 45%);
}

.scribe {
  left: 1365px;
  top: 72px;
}

.notes {
  left: 1630px;
  top: 72px;
}

.meters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.meters article,
.panel {
  border: 1px solid #29323c;
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.meters span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.meters strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 20px;
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #0f1318;
}

.meter i {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--info);
  transition: width .35s ease;
}

.lower {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
}

.panel h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.command-start {
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.4;
}

.command-start strong {
  color: var(--voice);
  font-weight: 700;
}

.panel ol,
.panel ul {
  margin: 0;
  padding-left: 22px;
}

.panel li {
  margin: 8px 0;
  line-height: 1.4;
}

/* Canonical NPC Forge suite footer. Content hydrates from npc-forge.com. */
.site-footer {
  width: 100%;
  margin-top: 28px;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #29323c;
  background: rgba(15, 21, 27, .96);
}

.site-footer-container {
  width: min(1780px, 100%);
  display: grid;
  gap: 12px;
  margin: 0 auto;
}

.site-footer-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.site-footer-nav {
  display: grid;
  gap: 7px;
  width: 100%;
}

.suite-footer-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 10px;
}

.suite-footer-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 999px;
  color: #aebbc6;
  background: rgba(255, 255, 255, .018);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.suite-footer-link:hover,
.suite-footer-link:focus-visible {
  border-color: rgba(88, 166, 255, .38);
  color: #fff;
  background: rgba(88, 166, 255, .1);
  outline: none;
  transform: translateY(-1px);
}

.suite-footer-link:focus-visible {
  box-shadow: 0 0 0 2px #0f151b, 0 0 0 4px var(--info);
}

.suite-footer-link.active {
  border-color: rgba(69, 214, 197, .42);
  color: #eafffb;
  background: rgba(69, 214, 197, .12);
}

.suite-footer-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #bcc8d1;
}

.suite-footer-icon[data-icon="users"],
.suite-footer-icon[data-icon="book-open"] { color: #4ade80; }
.suite-footer-icon[data-icon="mic"] { color: #60a5fa; }
.suite-footer-icon[data-icon="hammer"] { color: #fbbf24; }
.suite-footer-icon[data-icon="user-round"] { color: #22d3ee; }
.suite-footer-icon[data-icon="messages-square"] { color: #e879f9; }
.suite-footer-icon[data-icon="scroll"] { color: #f87171; }
.suite-footer-icon[data-icon="sparkles"] { color: #a78bfa; }
.suite-footer-icon[data-icon="gauge"] { color: #bef264; }
.suite-footer-icon[data-icon="book-copy"] { color: #fdba74; }
.suite-footer-icon[data-icon="panels-top-left"] { color: #c4b5fd; }
.suite-footer-icon[data-icon="monitor-play"] { color: #7dd3fc; }
.suite-footer-icon[data-icon="audio-lines"] { color: #5eead4; }
.suite-footer-icon[data-icon="youtube"] {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: #fb7185;
}

@media (prefers-reduced-motion: reduce) {
  .suite-footer-link {
    transition: none;
  }
}

@media (max-width: 1740px) {
  .shell {
    padding: 14px;
  }

  .topbar,
  .meters,
  .lower {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .topbar-actions,
  .clock {
    justify-items: end;
  }

  .quick-tabs {
    justify-content: flex-end;
  }

  .map {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .flow-layer {
    display: none;
  }

  .node {
    position: static;
    width: 100%;
  }

  .grandstream {
    height: auto;
    min-height: 126px;
    align-content: start;
    justify-items: start;
    border-radius: 8px;
    text-align: left;
  }

  .grandstream p {
    max-width: none;
    font-size: 14px;
    display: block;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .clock {
    justify-items: start;
  }

  .quick-tabs {
    justify-content: flex-start;
  }

  .mobile-recorder-body {
    display: grid;
  }

  .mobile-recorder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recorder-process,
  .camera-results {
    grid-template-columns: 1fr 1fr;
  }

  .recorder-result {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .camera-result {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .recorder-console-heading {
    display: grid;
  }

  .recorder-process,
  .camera-results {
    grid-template-columns: 1fr;
  }

  .recorder-action-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-recorder-grid {
    grid-template-columns: 1fr;
  }

  .recorder-action-help {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .recorder-action-help::before {
    display: none;
  }

  .site-footer {
    margin-top: 18px;
    padding-inline: 12px;
  }

  .site-footer-copy {
    font-size: 10px;
  }

  .suite-footer-link-row {
    align-items: stretch;
  }

  .suite-footer-link {
    min-height: 44px;
    flex: 1 1 calc(50% - 7px);
    border-radius: 8px;
    font-size: 9px;
    overflow-wrap: anywhere;
  }
}
