@font-face {
  font-family: "Geist";
  src: url("Geist-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --turtle-wordmark-mask: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAuYAAABlCAYAAAABIiYMAAAMH0lEQVR42u3df6xXdR3H8ScJsTsQjUZkDCKTlFJTw8zllExRTMWI0PyJiJo/UgPNX8xsksKCTcXEHww1M1oqOpYRaYiIEkqMYQ4Z5BBkxCDEO9ztdhm3Pz7Hhj/A77187/fzOZ/v87F9d9Vddz/f9znn+32dc96fz+nU2tqKJEmSpLg+ZQkkSZKk+Drv9M9dgZuBoQb2UlsDjCt+Vuo0YCzQI9KYW4CZwFRgR+bbZyhwI9AtYq2nF69K9QYmAod6eHWIHcAW4N/AamADsBxYAjQT98LNZcB5QBc3U2ltBMYDS9vw/xwN/BzoFfGY+GsxhmY34R7rDUwADvFYTs424C/A5Pf39U47tbLcB1xqjbKwDhgIvFfB7x4FvJzIydhVRTjPVUq1HgU8UuHvvlx8Uau2tgPLgPnA08ArxYlVrVwB3ONmyEITcDDwZgW/2wdYBTQkMO6pxfeC9uwEe1kRypWuu4BrPtzKcqp1yUZf4JgKf3dEQndIRmS+XS5MqNajKvy9/oZyYt7RHARcCywE1gOTgANr9PdHugmy0QCcUOHvnpFIKAf4kZtujx1sKC+FYR/XY763dcm2TWl3Utrue2W+TXokNJYuJRxzvesF/Ax4A/gjcKzHozpge6Z0zH/azbbH9rEE5To+7SWXpPL5HvAC8BQwwHJIEq7KIkmK6gzgdcLk3K6WQ5IM5pIkorYlXQ/8A/i25ZAkg7kkKa4DCCu4jLUUkmQwlyQRfdL3FOBhbG2RJIO5JCm6C4DZpLPsnSTJYC5JdWsIYVlFr5xLksFckhTZ8cBDftZLksFckkQST0+83TJIksFckhTf9cAYyyBJBnNJUnx3AwMtgyQZzCVJcTUAvyEsqShJMphLkiIaBFxhGSTJYC5Jim8CsJ9lkCSDuSQpru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kJggg==");
  --accent: #7550ff;
  --accent-2: #825fff;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --soft: #eeeeF1;
  --text: #6f7175;
  --strong: #5f6165;
  --faint: #96989c;
  --line: #dedfe2;
  --green: #0bc862;
  --sidebar-width: 260px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #202424;
  --panel: #2b3131;
  --soft: #353b3b;
  --text: #8d9293;
  --strong: #a3a7a8;
  --faint: #6f7576;
  --line: #454b4c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

html {
  font-family: "Geist", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  font-weight: 300;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(117, 80, 255, .25);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

.icon {
  width: auto;
  height: 21px;
  flex: 0 0 auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-card {
  width: min(860px, 90vw);
  min-height: min(486px, 82vh);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  padding: 54px 24px;
  background: var(--panel);
  animation: card-in .5s cubic-bezier(.2, .8, .2, 1) both;
}

.login-logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 30px;
}

.turtle-wordmark {
  display: inline-block;
  flex: 0 0 auto;
  color: var(--strong);
  background: currentColor;
  -webkit-mask-image: var(--turtle-wordmark-mask);
  mask-image: var(--turtle-wordmark-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.login-wordmark {
  width: 198px;
  height: 28px;
}

.login-logo > span:not(.turtle-wordmark) {
  margin-top: 9px;
  color: var(--text);
  font-size: 21px;
  font-weight: 350;
  letter-spacing: -.4px;
}

.login-card input,
.login-card select,
.select-wrap {
  width: min(304px, 100%);
  height: 44px;
}

.login-card input,
.login-card select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel);
}

.login-card input::placeholder {
  color: var(--text);
}

.select-wrap {
  position: relative;
  margin-bottom: 7px;
}

.select-wrap select {
  appearance: none;
}

.select-arrow {
  position: absolute;
  top: 8px;
  right: 13px;
  pointer-events: none;
}

.login-button {
  width: min(304px, 100%);
  height: 43px;
  margin-top: 27px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-weight: 680;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-button:hover {
  background: var(--accent-2);
  box-shadow: 0 10px 24px rgba(117, 80, 255, .22);
  transform: translateY(-1px);
}

.forgot-button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.forgot-button .icon {
  height: 15px;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: 74px minmax(0, 1fr);
  gap: 28px;
  padding: 0 28px 28px;
  transition: grid-template-columns .3s cubic-bezier(.2, .8, .2, 1);
}

.app.collapsed {
  --sidebar-width: 82px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0;
  background: var(--bg);
}

.brand {
  min-width: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) auto;
  align-items: center;
  column-gap: 28px;
  border: 0;
  padding: 0;
  color: var(--strong);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.brand .brand-full {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: 202px;
  height: 28px;
}

.brand-short {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  display: none;
  width: 32px;
  height: 28px;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
}

.brand span {
  color: var(--text);
  font-size: 20px;
  font-weight: 350;
}

.brand > span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

.app.collapsed .brand-full {
  display: none;
}

.app.collapsed .brand-short {
  display: inline;
  letter-spacing: 0;
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.top-volume-step .icon {
  height: 18px;
}

.top-volume-step {
  width: 28px;
  height: 28px;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.icon-button:hover,
.icon-button.active {
  color: var(--accent);
  background: rgba(117, 80, 255, .08);
}

.icon-button:active {
  transform: scale(.94);
}

.icon-button .icon {
  height: 18px;
}

.control-divider {
  width: 1px;
  height: 30px;
  margin: 0 5px;
  background: var(--line);
}

.theme-glyph {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
}

html[data-theme="light"] .theme-glyph {
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  transform: rotate(-35deg) scale(.88);
}

html[data-theme="dark"] .theme-glyph {
  border: 1.5px solid currentColor;
  box-shadow:
    0 -6px 0 -5px currentColor,
    0 6px 0 -5px currentColor,
    6px 0 0 -5px currentColor,
    -6px 0 0 -5px currentColor,
    4.3px 4.3px 0 -5px currentColor,
    -4.3px 4.3px 0 -5px currentColor,
    4.3px -4.3px 0 -5px currentColor,
    -4.3px -4.3px 0 -5px currentColor;
  transform: scale(.7);
}

.top-controls input[type="range"] {
  width: clamp(120px, 17vw, 225px);
}

input[type="range"] {
  --fill: 50%;
  height: 18px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--text) var(--fill));
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 26px;
  margin-top: -12px;
  border: 2px solid var(--text);
  border-radius: 10px;
  background: var(--panel);
  appearance: none;
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--text);
}

input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--accent);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 24px;
  border: 2px solid var(--text);
  border-radius: 10px;
  background: var(--panel);
}

.mobile-menu {
  display: none;
}

.sidebar {
  position: sticky;
  top: 88px;
  min-width: 0;
  min-height: 0;
  height: calc(100vh - 116px);
  overflow: visible;
  border-radius: 19px;
  padding: 14px;
  background: var(--panel);
  transition: padding .3s ease, width .3s ease, transform .3s ease;
}

.sidebar nav {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 32%, transparent) transparent;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  width: 100%;
  height: 49px;
  flex: 0 0 49px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: 11px;
  padding: 0 16px;
  color: var(--text);
  background: transparent;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-item:hover {
  color: var(--strong);
  background: var(--bg);
  transform: none;
}

.nav-item.active {
  color: #fff;
  background: var(--accent);
  font-weight: 680;
}

.nav-item .icon {
  flex: 0 0 auto;
  height: 20px;
}

.nav-divider {
  height: 1px;
  flex: 0 0 1px;
  margin: 20px 0;
  background: var(--line);
}

.app.collapsed .sidebar {
  padding-inline: 10px;
}

.app.collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.app.collapsed .nav-item span {
  display: none;
}

.collapse-button {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 5;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, color .2s ease, transform .2s ease;
}

.sidebar:hover .collapse-button,
.collapse-button:focus-visible {
  opacity: 1;
}

.collapse-button:hover {
  color: var(--accent);
  transform: scale(1.06);
}

.collapse-button .icon {
  height: 15px;
}

.content {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  overflow: hidden;
}

.page {
  animation: page-in .35s cubic-bezier(.2, .8, .2, 1) both;
}

.page-title {
  height: 47px;
  display: flex;
  align-items: flex-start;
  margin: 0;
  color: var(--strong);
  font-size: 22px;
  font-weight: 750;
  line-height: 1;
}

.panel {
  border-radius: 19px;
  background: var(--panel);
}

.info-panel {
  width: min(855px, 100%);
  padding: 0 14px;
}

.info-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  color: var(--text);
  font-size: 16px;
}

.info-row:first-child {
  color: var(--strong);
  font-weight: 700;
}

.info-row:last-child {
  border-bottom: 0;
}

.system-stack {
  display: grid;
  gap: 33px;
}

.system-panel {
  padding: 20px 24px 28px;
}

.system-panel h2 {
  margin: 0 0 24px;
  color: var(--strong);
  font-size: 17px;
}

.utilities-grid {
  display: grid;
  grid-template-columns: 200px 220px 1fr;
  align-items: center;
  gap: 18px 24px;
}

.utility-label {
  color: var(--text);
  font-size: 16px;
}

.utility-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 25px;
  color: var(--text);
  background: var(--soft);
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.soft-button:hover {
  color: #fff;
  background: var(--accent);
  transform: translateY(-1px);
}

.switch {
  position: relative;
  width: 59px;
  height: 27px;
  display: inline-block;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--soft);
  cursor: pointer;
  transition: background .2s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: transform .22s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(32px);
}

.plain-select {
  width: 220px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: var(--panel);
}

.select-control {
  position: relative;
  display: inline-block;
  width: 220px;
}

.select-control .plain-select {
  width: 100%;
  padding-right: 38px;
  appearance: none;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  color: var(--text);
  pointer-events: none;
  transform: translateY(-50%) rotate(90deg);
}

.select-chevron .icon {
  height: 16px;
}

.firmware-row {
  display: grid;
  grid-template-columns: auto auto auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.file-input {
  display: none;
}

.file-name {
  color: var(--text);
}

.progress {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.progress span {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--accent);
}

.password-grid {
  display: grid;
  grid-template-columns: 200px repeat(3, minmax(160px, 1fr)) 130px;
  align-items: center;
  gap: 14px 10px;
}

.password-grid input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--text);
  background: var(--panel);
  text-align: center;
}

.channel-list {
  display: grid;
  gap: 33px;
}

.channel-card {
  min-height: 182px;
  display: grid;
  grid-template-columns: 210px minmax(380px, 660px) 1fr;
  align-items: start;
  gap: 18px;
  border-radius: 19px;
  padding: 17px 24px 14px;
  background: var(--panel);
}

.channel-name {
  color: var(--strong);
  font-size: 17px;
  font-weight: 700;
}

.channel-core {
  min-width: 0;
}

.channel-head {
  display: grid;
  grid-template-columns: auto 220px auto 60px;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.channel-head label,
.range-label {
  color: var(--text);
}

.channel-head select {
  height: 37px;
}

.range-row,
.meter-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.channel-range {
  width: 100%;
}

.range-marks,
.meter-marks {
  display: flex;
  justify-content: space-between;
  margin: 6px 0 14px 100px;
  color: var(--text);
  font-size: 12px;
}

.meter-marks {
  margin-top: 5px;
  margin-bottom: 0;
}

.meter {
  --meter-off: #e4e5e8;
  position: relative;
  height: 13px;
  overflow: hidden;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--meter-off) 0 5px, transparent 5px 7px);
}

html[data-theme="dark"] .meter {
  --meter-off: #43494a;
}

.meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 5px, var(--panel) 5px 7px),
    linear-gradient(90deg, #16d900 0 55%, #ffd400 55% 80%, #ff3b18 80% 100%);
  clip-path: inset(0 calc(100% - var(--level, 0%)) 0 0);
  transition: clip-path .16s linear;
}

.channel-control {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.channel-control .value {
  margin-top: 4px;
}

.step {
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.value {
  min-width: 57px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text);
  background: var(--soft);
}

.dsp-panel {
  padding: 18px 24px 24px;
}

.dsp-panel h2 {
  margin: 0 0 28px;
  color: var(--strong);
  font-size: 17px;
}

.dsp-top {
  display: grid;
  grid-template-columns: 210px 220px auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.dsp-eq-label {
  justify-self: end;
}

.eq-modes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.eq-modes button {
  min-width: 130px;
}

.eq-modes button.active {
  color: #fff;
  background: #b8babf;
  font-weight: 700;
}

html[data-theme="dark"] .eq-modes button.active {
  background: #1d2223;
}

.eq-chart {
  position: relative;
  height: min(395px, 43vh);
  min-height: 290px;
  border-radius: 13px;
  background: var(--bg);
}

.eq-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.eq-bands {
  display: grid;
  grid-template-columns: repeat(8, minmax(115px, 1fr));
  gap: 7px;
  overflow-x: auto;
  margin: 25px -1px -4px;
  padding: 2px 1px 4px;
}

.eq-band {
  min-width: 115px;
  border-right: 1px solid var(--line);
  padding: 0 10px;
}

.eq-band:last-child {
  border-right: 0;
}

.band-number {
  height: 37px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 9px;
  color: var(--text);
  background: var(--soft);
}

.eq-band.enabled .band-number {
  color: #fff;
  background: #b8babf;
  font-weight: 700;
}

html[data-theme="dark"] .eq-band.enabled .band-number {
  background: #1d2223;
}

.band-row {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin: 12px 0;
  color: var(--text);
  font-size: 12px;
}

.dsp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0 210px;
}

.tabs {
  height: 47px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
}

.tab {
  min-width: 108px;
  height: 37px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
}

.tab.active {
  color: #fff;
  background: #b8babf;
  font-weight: 700;
}

html[data-theme="dark"] .tab.active {
  background: #1d2223;
}

.dante-grid {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
}

.filters {
  min-height: 670px;
  padding: 13px;
}

.search {
  position: relative;
}

.search .icon {
  position: absolute;
  top: 12px;
  left: 13px;
  height: 17px;
}

.search input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px 0 44px;
  color: var(--text);
  background: var(--panel);
}

.clear-button {
  width: 100%;
  height: 43px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.filter {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.filter .icon {
  height: 15px;
}

.table-panel {
  min-width: 0;
  overflow: auto;
  padding: 4px 12px 20px;
}

.device-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 15px;
}

.device-table th,
.device-table td {
  height: 56px;
  border-bottom: 1px solid var(--line);
  padding: 0 13px;
  text-align: left;
  white-space: nowrap;
}

.device-table th {
  color: var(--strong);
  font-weight: 700;
}

.device-table tr {
  transition: background .18s ease;
}

.device-table tbody tr:hover {
  background: var(--bg);
}

.row-chevron {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.row-chevron .icon {
  height: 16px;
}

.sidebar-backdrop {
  display: none;
}

/* Professional visual layer and complete application views */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

.app,
.login-screen {
  position: relative;
  z-index: 1;
  background: transparent;
}

.panel,
.sidebar,
.login-card,
.channel-card {
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  background: var(--panel);
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .channel-card {
  box-shadow: none;
}

.view-enter {
  animation: view-enter .48s cubic-bezier(.2, .82, .2, 1) both;
}

.view-enter .panel,
.view-enter .channel-card {
  animation: panel-rise .52s cubic-bezier(.2, .82, .2, 1) both;
}

.view-enter .panel:nth-child(2),
.view-enter .channel-card:nth-child(2) { animation-delay: .045s; }
.view-enter .panel:nth-child(3),
.view-enter .channel-card:nth-child(3) { animation-delay: .09s; }
.view-enter .panel:nth-child(4),
.view-enter .channel-card:nth-child(4) { animation-delay: .135s; }

.section-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  color: var(--strong);
  font-size: 17px;
  font-weight: 730;
}

.live-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(117, 80, 255, .15);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent);
  background: rgba(117, 80, 255, .075);
  font-size: 12px;
  font-weight: 670;
}

.live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(11, 200, 98, .42);
  animation: live-pulse 2s ease-out infinite;
}

.feature-panel {
  min-height: 600px;
  padding: 22px 24px 26px;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  margin: -5px;
  padding: 5px;
}

.scene-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 83%, var(--bg));
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -25%;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(117, 80, 255, .15);
  filter: blur(8px);
  transition: transform .35s ease, opacity .35s ease;
}

.scene-card:hover,
.scene-card.active {
  border-color: rgba(117, 80, 255, .44);
  color: var(--accent);
  box-shadow: 0 16px 32px rgba(117, 80, 255, .1);
}

.scene-card:hover {
  transform: scale(1.008);
}

.scene-card.active {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #8f6eff);
}

.scene-card:hover::before { transform: translate(18px, 18px) scale(1.15); }
.scene-card strong { position: absolute; top: 15px; right: 17px; font-size: 28px; opacity: .14; }
.scene-card span { position: relative; z-index: 1; font-weight: 650; }
.scene-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(117, 80, 255, .1); }
.scene-card.active .scene-icon { background: rgba(255, 255, 255, .16); }

.visual-grid,
.network-layout,
.admin-layout,
.update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 24px;
}

.signal-panel,
.monitor-panel,
.network-map-panel,
.network-fields,
.account-panel,
.access-panel,
.update-drop,
.version-panel {
  min-height: 590px;
  padding: 22px 24px;
}

.signal-map {
  min-height: 465px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 160px minmax(120px, 1fr);
  align-items: center;
  gap: 28px;
}

.signal-column { display: grid; gap: 18px; }

.signal-port {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.signal-port i {
  width: 10px;
  height: 10px;
  border: 2px solid var(--faint);
  border-radius: 50%;
}

.signal-port:hover,
.signal-port.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(117, 80, 255, .1);
  transform: translateX(3px);
}

html[data-theme="dark"] .signal-port.active {
  color: #fff;
  font-weight: 700;
}

.output-port:hover,
.output-port.active { transform: translateX(-3px); }
.signal-port.active i { border-color: #fff; background: var(--accent); box-shadow: 0 0 0 5px rgba(117, 80, 255, .14), 0 0 18px var(--accent); }

.signal-core {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(117, 80, 255, .28);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #9578ff);
  box-shadow: 0 22px 50px rgba(117, 80, 255, .24);
}

.signal-core .icon { height: 38px; }
.signal-orbit { position: absolute; inset: -24px; border: 1px dashed rgba(117, 80, 255, .25); border-radius: 38px; animation: orbit-spin 12s linear infinite; }
.signal-orbit.second { inset: -45px; border-radius: 52px; opacity: .55; animation-direction: reverse; animation-duration: 18s; }

.monitor-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 3px solid color-mix(in srgb, var(--strong) 28%, var(--panel));
  border-radius: 15px;
  color: rgba(255, 255, 255, .8);
  background: #17191f;
  box-shadow: none;
}

.monitor-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 48%, transparent 64%); transform: translateX(-120%); animation: screen-scan 5s ease-in-out infinite; }
.monitor-grid { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(117,80,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(117,80,255,.28) 1px, transparent 1px); background-size: 28px 28px; }
.monitor-mark { position: relative; z-index: 1; font-size: 72px; font-weight: 900; color: #8b6bff; text-shadow: 0 0 36px rgba(117,80,255,.6); }
.monitor-frame > span { position: absolute; bottom: 18px; z-index: 1; font-size: 12px; letter-spacing: .28em; }
.monitor-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.monitor-data span { min-height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); font-size: 12px; }

.mixer-grid { display: grid; grid-template-columns: repeat(8, minmax(90px, 1fr)); gap: 12px; overflow-x: auto; margin: -4px -2px -6px; padding: 4px 2px 6px; }
.mixer-strip { min-width: 90px; min-height: 505px; display: flex; align-items: center; flex-direction: column; gap: 17px; border: 1px solid var(--line); border-radius: 14px; padding: 15px 10px; background: color-mix(in srgb, var(--panel) 82%, var(--bg)); transition: transform .22s ease, border-color .22s ease; }
.mixer-strip:hover { border-color: rgba(117,80,255,.35); }
.strip-head { min-height: 55px; display: flex; align-items: center; flex-direction: column; gap: 8px; color: var(--strong); font-size: 11px; }
.strip-head .icon { color: var(--accent); }
.vertical-meter { --meter-off: #e4e5e8; position: relative; width: 16px; height: 185px; overflow: hidden; border-radius: 4px; background: repeating-linear-gradient(0deg, var(--meter-off) 0 4px, transparent 4px 6px); }
html[data-theme="dark"] .vertical-meter { --meter-off: #43494a; }
.vertical-meter span { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 4px, var(--panel) 4px 6px), linear-gradient(0deg, #16d900 0 55%, #ffd400 55% 80%, #ff3b18 80% 100%); clip-path: inset(calc(100% - var(--meter)) 0 0 0); transition: clip-path .16s linear; }
.mixer-strip input { width: 72px; transform: rotate(-90deg); margin: 36px 0 28px; }
.mixer-strip output { min-width: 48px; padding: 7px; border-radius: 8px; background: var(--soft); text-align: center; font-size: 11px; }
.strip-mute.active,
.mute-channel.active { color: #fff; background: var(--accent); }

.speaker-zones { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 18px; margin: -5px; padding: 5px; }
.speaker-zone { position: relative; min-height: 475px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; padding: 22px; background: color-mix(in srgb, var(--panel) 82%, var(--bg)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.speaker-zone:hover { border-color: var(--accent); box-shadow: none; transform: scale(1.012); }
.speaker-graphic { position: relative; height: 210px; display: grid; place-items: center; }
.speaker-graphic .icon { position: relative; z-index: 2; height: 74px; color: var(--accent); }
.speaker-graphic > span { position: absolute; width: 130px; height: 130px; border: 1px solid rgba(117,80,255,.22); border-radius: 50%; animation: speaker-wave 2.8s ease-out infinite; }
.speaker-graphic > span:nth-child(2) { animation-delay: 1.35s; }
.speaker-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 32px; }
.speaker-title strong { color: var(--strong); }
.speaker-title span { font-size: 12px; }
.speaker-volume { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; }
.speaker-zone input { width: 100%; }
.speaker-zone .meter { margin-top: 34px; }

.network-map { position: relative; min-height: 470px; display: grid; place-items: center; overflow: hidden; }
.network-hub { position: relative; z-index: 3; width: 150px; height: 150px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 8px; border-radius: 38px; color: #fff; background: linear-gradient(145deg, var(--accent), #9478ff); box-shadow: 0 24px 55px rgba(117,80,255,.25); }
.network-hub .icon { height: 35px; }
.network-hub span { font-size: 10px; opacity: .8; }
.network-ring { position: absolute; width: 320px; height: 320px; border: 1px dashed rgba(117,80,255,.22); border-radius: 50%; animation: orbit-spin 24s linear infinite; }
.network-ring.ring-two { width: 440px; height: 440px; animation-direction: reverse; animation-duration: 33s; }
.network-node { position: absolute; z-index: 4; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(117,80,255,.26); border-radius: 16px; color: var(--accent); background: var(--panel); box-shadow: 0 12px 30px rgba(117,80,255,.12); font-weight: 750; animation: node-float 3.6s ease-in-out infinite alternate; }
.node-a { top: 13%; left: 20%; }.node-b { top: 19%; right: 15%; animation-delay: -.8s; }.node-c { bottom: 13%; left: 17%; animation-delay: -1.5s; }.node-d { right: 20%; bottom: 10%; animation-delay: -2.3s; }
.network-field { min-height: 74px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 7px; border-bottom: 1px solid var(--line); }
.network-field:last-child { border-bottom: 0; }
.network-field span { font-size: 12px; }
.network-field strong { color: var(--strong); font-size: 14px; }

.output-card { grid-template-columns: 210px minmax(380px, 660px) 1fr; }

.matrix-panel { min-height: 650px; padding: 22px 24px; }
.matrix-scroll { overflow: auto; padding: 15px; border-radius: 15px; background: color-mix(in srgb, var(--bg) 74%, transparent); }
.matrix-grid { min-width: 720px; display: grid; grid-template-columns: 75px repeat(8, minmax(58px, 1fr)); gap: 10px; align-items: center; }
.matrix-grid > strong { color: var(--text); font-size: 10px; text-align: center; }
.matrix-cell { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.matrix-cell span { width: 9px; height: 9px; border: 2px solid var(--faint); border-radius: 50%; }
.matrix-cell:hover { border-color: rgba(117,80,255,.55); transform: scale(1.06); }
.matrix-cell.active { border-color: var(--accent); background: var(--accent); box-shadow: 0 9px 22px rgba(117,80,255,.23); }
.matrix-cell.active span { border-color: #fff; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }

.wall-layout { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; }
.wall-panel { min-height: 650px; padding: 22px 24px; }
.wall-stage { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #17191f; }
.video-wall-grid { position: relative; z-index: 2; width: min(750px, 86%); display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; perspective: 900px; }
.wall-tile { position: relative; aspect-ratio: 16 / 8.6; overflow: hidden; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 8px; border: 1px solid #46425a; border-radius: 7px; color: #aaa6b8; background: linear-gradient(145deg, #22242b, #15171d); cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.wall-tile::before { content:""; position:absolute; inset:0; opacity:.18; background-image: linear-gradient(rgba(117,80,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(117,80,255,.35) 1px, transparent 1px); background-size: 22px 22px; }
.wall-tile > * { position: relative; z-index: 1; }
.wall-tile span { position: absolute; top: 10px; left: 12px; font-size: 10px; }
.wall-tile.active { border-color: #8d70ff; color: #fff; box-shadow: 0 0 34px rgba(117,80,255,.28); transform: translateZ(14px); }
.wall-glow { position: absolute; width: 55%; height: 35%; border-radius: 50%; background: rgba(117,80,255,.24); filter: blur(75px); animation: glow-breathe 4s ease-in-out infinite alternate; }
.wall-tools { min-height: 650px; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.wall-mode { min-height: 72px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--panel); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.wall-mode:hover { transform: translateX(-3px); }
.wall-mode.active { border-color: var(--accent); color: #fff; background: var(--accent); }

.account-row { min-height: 92px; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.account-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: rgba(117,80,255,.1); font-weight: 750; }
.account-row strong { color: var(--strong); }
.access-panel { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 24px; }
.access-emblem { position: relative; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 34px; color: #fff; background: linear-gradient(145deg, var(--accent), #9478ff); box-shadow: 0 24px 55px rgba(117,80,255,.24); }
.access-emblem .icon { height: 48px; }
.access-emblem span { position: absolute; inset: -16px; border: 1px dashed rgba(117,80,255,.28); border-radius: 43px; animation: orbit-spin 13s linear infinite; }
.access-panel > strong { color: var(--strong); font-size: 20px; }
.access-lines { display: flex; gap: 7px; }.access-lines i { width: 38px; height: 4px; border-radius: 4px; background: var(--accent); opacity: .22; }.access-lines i:first-child { opacity: 1; }

.control-panel { min-height: 630px; padding: 22px 24px; }
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: 18px; margin: -5px; padding: 5px; }
.control-tile { min-height: 220px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; border: 1px solid var(--line); border-radius: 17px; padding: 22px; background: color-mix(in srgb, var(--panel) 82%, var(--bg)); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.control-tile:hover { border-color: var(--accent); box-shadow: none; transform: scale(1.008); }
.control-icon { grid-column: 1 / -1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--accent); background: rgba(117,80,255,.1); }
.control-icon .icon { height: 28px; }
.control-tile strong { color: var(--strong); }
.control-tile .plain-select { width: 150px; }
.control-tile input[type="range"] { width: 150px; }

.update-drop { display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.upload-orbit { position: relative; width: 130px; height: 130px; display: grid; place-items: center; margin-bottom: 26px; border-radius: 38px; color: #fff; background: linear-gradient(145deg, var(--accent), #9478ff); box-shadow: 0 24px 55px rgba(117,80,255,.22); }
.upload-orbit .icon { height: 44px; }
.upload-orbit span { position:absolute; inset:-17px; border:1px dashed rgba(117,80,255,.28); border-radius:46px; animation:orbit-spin 12s linear infinite; }.upload-orbit span:nth-child(2){ inset:-35px; border-radius:55px; animation-direction:reverse; animation-duration:18s; }
.update-drop h2 { margin: 0 0 22px; color: var(--strong); }
.upload-button { min-width: 170px; min-height: 42px; display:grid; place-items:center; border-radius:10px; color:#fff; background:var(--accent); cursor:pointer; transition:transform .2s ease, box-shadow .2s ease; }
.upload-button:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(117,80,255,.2); }
.update-drop .file-name { margin: 14px 0 26px; font-size: 12px; }
.update-progress { width:min(420px,90%); height:5px; overflow:hidden; margin-bottom:10px; border-radius:5px; background:var(--soft); }.update-progress span { display:block; width:62%; height:100%; background:linear-gradient(90deg,var(--accent),#ad96ff); animation:progress-glow 2.4s ease-in-out infinite alternate; }
.version-panel .info-row { padding-inline:0; }

.password-panel { min-height: 620px; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); overflow: hidden; }
.password-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, rgba(117,80,255,.12), rgba(117,80,255,.025)); }
.password-visual > div { position:relative; z-index:2; width:130px; height:130px; display:grid; place-items:center; border-radius:38px; color:#fff; background:linear-gradient(145deg,var(--accent),#9478ff); box-shadow:0 25px 60px rgba(117,80,255,.27); }
.password-visual .icon { height:50px; }
.lock-ring { position:absolute; width:280px; height:280px; border:1px dashed rgba(117,80,255,.27); border-radius:50%; animation:orbit-spin 20s linear infinite; }
.password-form { display:flex; align-items:stretch; flex-direction:column; justify-content:center; gap:14px; padding:45px min(7vw,80px); }
.password-form h2 { margin:0 0 12px; color:var(--strong); }
.password-form input,.password-form select { width:100%; height:44px; border:1px solid var(--line); border-radius:10px; padding:0 14px; color:var(--text); background:var(--panel); }
.password-strength { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin:4px 0 8px; }.password-strength i { height:4px; border-radius:3px; background:var(--soft); }.password-strength i:first-child { background:var(--accent); }

.eq-chart canvas {
  cursor: crosshair;
  touch-action: none;
}

.eq-chart canvas.dragging {
  cursor: grabbing;
}

.eq-drag-hint {
  position: absolute;
  top: 13px;
  right: 15px;
  border: 1px solid rgba(117, 80, 255, .15);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  font-size: 10px;
  font-weight: 650;
  pointer-events: none;
}

.band-number {
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.band-number:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: none;
}

.eq-band.enabled .band-number {
  box-shadow: none;
}

.band-row input,
.band-row select {
  width: 78px;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  color: var(--strong);
  background: transparent;
  font-size: 11px;
  text-align: right;
  transition: border-color .2s ease, color .2s ease;
}

.band-row select {
  width: 88px;
  appearance: none;
}

.band-row input:hover,
.band-row input:focus,
.band-row select:hover,
.band-row select:focus {
  border-bottom-color: var(--accent);
  color: var(--accent);
  outline: 0;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.prototype-toast {
  min-width: 230px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 45px rgba(33, 27, 58, .18);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .24s ease, transform .24s ease;
}

.prototype-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.prototype-toast > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
}

.prototype-toast .icon { height: 18px; }
.prototype-toast div { display: flex; flex-direction: column; gap: 2px; }
.prototype-toast strong { color: var(--strong); font-size: 13px; }
.prototype-toast div span { font-size: 11px; }

.dante-demo-panel {
  min-height: 670px;
  padding: 22px 24px;
}

.dante-routes {
  display: grid;
  gap: 14px;
}

.dante-route {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(80px, 1fr) minmax(150px, 220px);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.dante-route > span:first-child { color: var(--strong); font-weight: 620; }
.route-line { position: relative; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.route-line i { position: absolute; width: 34%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: route-flow 2.2s linear infinite; }
.route-state { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--panel); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.route-state.active { border-color: var(--accent); color: #fff; background: var(--accent); }

.clock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 18px;
}

.clock-card {
  min-height: 175px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--panel) 82%, var(--bg));
  text-align: center;
}

.clock-card strong { color: var(--strong); }
.clock-card small { color: var(--accent); }
.clock-pulse { width: 12px; height: 12px; margin-bottom: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(11,200,98,.35); animation: live-pulse 2s ease-out infinite; }

.event-list { display: grid; }
.event-row { min-height: 74px; display: grid; grid-template-columns: 18px minmax(170px, 1fr) minmax(100px, .5fr) 90px; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.event-row strong { color: var(--strong); }
.event-row time { text-align: right; font-variant-numeric: tabular-nums; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(117,80,255,.1); }

.filter.active {
  color: var(--accent);
  background: rgba(117, 80, 255, .065);
}

.video-wall-grid.layout-1x4 { grid-template-columns: repeat(4, 1fr); }
.video-wall-grid.layout-4x1 { grid-template-columns: 1fr; width: min(420px, 72%); }
.video-wall-grid.layout-1x1 { grid-template-columns: 1fr; width: min(620px, 86%); }
.video-wall-grid.layout-1x1 .wall-tile:not(:first-child) { display: none; }
.video-wall-grid.layout-1x4 .wall-tile { aspect-ratio: 9 / 14; }
.video-wall-grid.layout-4x1 .wall-tile { aspect-ratio: 16 / 3.4; }

.password-strength i {
  transition: background .2s ease, box-shadow .2s ease;
}

.password-strength i.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(117, 80, 255, .22);
}

.progress span,
.update-progress span {
  transition: width .12s linear;
}

@keyframes view-enter { from { opacity: 0; transform: translateY(12px) scale(.995); } }
@keyframes panel-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ambient-drift { 0% { transform: translate3d(-2%, -1%, 0) rotate(-2deg); } 100% { transform: translate3d(3%, 2%, 0) rotate(3deg); } }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(11,200,98,0); } 100% { box-shadow: 0 0 0 0 rgba(11,200,98,0); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes screen-scan { 0%, 18% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes meter-breathe { from { transform: scaleY(.93); transform-origin: bottom; } to { transform: scaleY(1.03); transform-origin: bottom; } }
@keyframes speaker-wave { 0% { opacity:.65; transform:scale(.6); } 100% { opacity:0; transform:scale(1.35); } }
@keyframes node-float { to { transform: translateY(-9px); } }
@keyframes glow-breathe { to { opacity:.55; transform:scale(1.2); } }
@keyframes progress-glow { to { filter:brightness(1.24); box-shadow:0 0 15px rgba(117,80,255,.55); } }
@keyframes route-flow { from { transform: translateX(-110%); } to { transform: translateX(330%); } }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}

@media (max-width: 1250px) {
  .channel-card {
    grid-template-columns: 150px minmax(340px, 1fr);
  }

  .channel-control {
    grid-column: 2;
    justify-content: flex-start;
  }

  .password-grid {
    grid-template-columns: 120px repeat(3, minmax(130px, 1fr)) 120px;
  }
}

@media (max-width: 1040px) and (min-width: 721px) {
  .app {
    --sidebar-width: 82px;
    gap: 20px;
    padding-inline: 18px;
  }

  .app .brand-full {
    display: none;
  }

  .app .brand-short {
    display: inline;
    letter-spacing: 0;
  }

  .app .sidebar {
    padding-inline: 10px;
  }

  .app .nav-item {
    justify-content: center;
    padding: 0;
  }

  .app .nav-item span {
    display: none;
  }

  .top-controls {
    gap: 5px;
  }

  .utilities-grid {
    grid-template-columns: 180px 180px 1fr;
  }

  .dante-grid {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .app,
  .app.collapsed {
    display: block;
    padding: 0 14px 24px;
  }

  .topbar {
    height: 66px;
  }

  .mobile-menu {
    display: grid;
  }

  .brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-right: auto;
    margin-left: 10px;
  }

  .brand .brand-full {
    width: 110px;
    height: 16px;
  }

  .brand span {
    font-size: 14px;
  }

  .app .brand-full,
  .app.collapsed .brand-full {
    display: inline;
  }

  .app .brand-short,
  .app.collapsed .brand-short {
    display: none;
  }

  .top-controls > .top-volume-step,
  .top-controls > input,
  .top-controls > .control-divider {
    display: none;
  }

  .top-controls {
    gap: 0;
  }

  .sidebar,
  .app.collapsed .sidebar {
    position: fixed;
    inset: 76px auto 14px 14px;
    z-index: 50;
    width: min(280px, calc(100vw - 28px));
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    transform: translateX(calc(-100% - 30px));
  }

  .app .sidebar.open,
  .app.collapsed .sidebar.open {
    transform: translateX(0);
  }

  .app .nav-item,
  .app.collapsed .nav-item {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .app .nav-item span,
  .app.collapsed .nav-item span {
    display: inline;
  }

  .collapse-button {
    display: none;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    border: 0;
    background: rgba(12, 14, 15, .44);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .content {
    padding-top: 20px;
  }

  .page-title {
    height: 42px;
  }

  .info-row {
    min-height: 58px;
    font-size: 14px;
  }

  .utilities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .utility-actions {
    grid-column: 1 / -1;
  }

  .firmware-row {
    grid-template-columns: 1fr auto;
  }

  .firmware-row .progress {
    grid-column: 1 / -1;
  }

  .password-grid {
    grid-template-columns: 1fr;
  }

  .channel-card {
    grid-template-columns: 1fr;
  }

  .channel-control {
    grid-column: 1;
  }

  .channel-head {
    grid-template-columns: 1fr 1fr;
  }

  .dsp-top {
    grid-template-columns: 1fr 1fr;
  }

  .dsp-eq-label,
  .eq-modes {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .eq-modes {
    width: 100%;
    overflow-x: auto;
  }

  .dsp-actions {
    margin-left: 0;
  }

  .dante-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .login-card {
    min-height: 440px;
    padding-inline: 20px;
  }

  .system-panel {
    padding: 18px;
  }

  .utilities-grid {
    grid-template-columns: 1fr auto;
  }

  .utility-actions button {
    flex: 1 1 auto;
  }

  .channel-card {
    padding: 18px;
  }

  .channel-head {
    grid-template-columns: 1fr;
  }

  .range-row,
  .meter-row {
    grid-template-columns: 1fr;
  }

  .range-marks,
  .meter-marks {
    margin-left: 0;
  }

  .dsp-top {
    grid-template-columns: 1fr;
  }

  .dsp-eq-label,
  .eq-modes {
    grid-column: 1;
  }

  .top-controls [aria-label="Admin"],
  .top-controls [aria-label="Power"] {
    display: none;
  }

  .eq-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .eq-modes .dsp-eq-label {
    display: none;
  }

  .eq-modes button {
    min-width: 0;
    padding-inline: 7px;
  }
}

@media (max-width: 1250px) {
  .scene-grid,
  .speaker-zones {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .visual-grid,
  .network-layout,
  .admin-layout,
  .update-layout {
    grid-template-columns: 1fr;
  }

  .signal-panel,
  .monitor-panel,
  .network-map-panel,
  .network-fields,
  .account-panel,
  .access-panel,
  .update-drop,
  .version-panel {
    min-height: auto;
  }

  .network-map,
  .signal-map {
    min-height: 430px;
  }

  .access-panel {
    min-height: 400px;
  }

  .mixer-grid {
    grid-template-columns: repeat(8, minmax(105px, 1fr));
  }

  .wall-layout {
    grid-template-columns: 1fr;
  }

  .wall-tools {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1450px) and (min-width: 721px) {
  .dsp-top {
    grid-template-columns: auto minmax(170px, 230px) auto;
  }

  .eq-modes {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 4px;
  }

  .dsp-eq-label {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .signal-map {
    grid-template-columns: 1fr 96px 1fr;
    gap: 14px;
  }

  .signal-core {
    width: 82px;
    height: 82px;
    border-radius: 24px;
  }

  .signal-core .icon {
    height: 28px;
  }

  .signal-orbit { inset: -12px; }
  .signal-orbit.second { inset: -25px; }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .password-panel {
    grid-template-columns: 1fr;
  }

  .password-visual {
    min-height: 280px;
  }

  .clock-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .dante-route {
    grid-template-columns: minmax(130px, 1fr) minmax(70px, .7fr) minmax(120px, 1fr);
  }
}

@media (max-width: 600px) {
  .scene-grid,
  .speaker-zones {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .signal-panel,
  .monitor-panel,
  .network-map-panel,
  .network-fields,
  .account-panel,
  .access-panel,
  .update-drop,
  .version-panel,
  .matrix-panel,
  .wall-panel,
  .control-panel {
    padding: 17px;
  }

  .signal-map {
    min-height: 560px;
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .signal-core {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 20px;
  }

  .signal-column {
    grid-row: 2;
  }

  .signal-port {
    height: 48px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .monitor-data {
    grid-template-columns: 1fr;
  }

  .network-map {
    min-height: 380px;
  }

  .network-ring { width: 255px; height: 255px; }
  .network-ring.ring-two { width: 350px; height: 350px; }
  .network-hub { width: 118px; height: 118px; border-radius: 30px; }
  .network-node { width: 44px; height: 44px; }

  .wall-stage {
    min-height: 360px;
  }

  .video-wall-grid {
    width: 92%;
    gap: 4px;
  }

  .wall-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .password-form {
    padding: 30px 20px;
  }

  .clock-grid {
    grid-template-columns: 1fr;
  }

  .dante-route {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 0;
  }

  .event-row {
    grid-template-columns: 14px 1fr auto;
  }

  .event-row > span:nth-of-type(2) {
    display: none;
  }

  .event-row time {
    grid-column: 3;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .prototype-toast {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* Application state, persistent controls and accessibility. */
.runtime-bar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 25px; font-size:12px; color:var(--faint); }
.runtime-mode { color:var(--accent); border:1px solid var(--line); border-radius:20px; padding:7px 11px; font-size:10px; letter-spacing:.08em; font-weight:650; }
.runtime-connected { color:#199a6b; }
.runtime-error,.form-error { color:#cf4355; }
.runtime-account { margin-left:auto; }
.section-note { color:var(--faint); font-size:13px; line-height:1.7; margin:14px 0 20px; }
.settings-form { display:grid; gap:18px; max-width:540px; }
.setting-field { display:flex; align-items:center; justify-content:space-between; gap:18px; font-size:13px; }
.setting-field input:not([type="checkbox"]), .setting-field select { width:58%; }
.setting-field input:not([type="checkbox"]), .preset-card input { min-width:0; padding:11px 13px; border:1px solid var(--line); border-radius:9px; background:var(--panel); color:var(--text); font:inherit; }
.settings-form .login-button { width:fit-content; min-width:180px; margin-top:8px; padding:13px 22px; }
.button-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:18px; }
.preset-card { display:flex; flex-direction:column; align-items:flex-start; gap:12px; height:auto; min-height:230px; padding:22px; }
.preset-card input { width:100%; }
.preset-card .button-row { margin-top:auto; }
.preset-card small { font-size:12px; color:var(--faint); }
.preset-card .soft-button { padding:8px 12px; min-width:0; }
.eq-band .setting-field { display:block; }
.eq-band .setting-field select { width:100%; margin:8px 0; }
.wall-tile select { max-width:100%; background:var(--panel); color:var(--text); padding:6px; border-radius:5px; }
.audit-list { max-height:420px; overflow:auto; }
.audit-row { display:grid; grid-template-columns:170px 1fr 100px; gap:10px; padding:14px 0; border-bottom:1px solid var(--line); font-size:12px; }
.audit-row code { grid-column:1/-1; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; color:var(--faint); }
.account-row { gap:16px; flex-wrap:wrap; }
.account-row small { display:block; margin-top:6px; font-size:12px; color:var(--faint); }
.account-row .button-row { margin:0 0 0 auto; }
.table-scroll { overflow:auto; }
.toast-error { border:1px solid #cf4355; }
.form-error:empty { display:none; }
button:disabled,input:disabled,select:disabled { opacity:.45; cursor:not-allowed; }
button:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.feature-panel + .feature-panel { margin-top:22px; }
.feature-panel p { line-height:1.7; }
.login-card > input[name="username"] { margin-bottom:7px; }
.login-card .form-error { width:min(304px, 100%); margin:10px 0 0; font-size:12px; line-height:1.5; }
.mixer-strip .soft-button { margin:auto; }
.channel-control { flex-wrap:wrap; }
.dante-route .plain-select { max-width:50%; }
@media(max-width:720px){.runtime-account{width:100%;margin-left:0}.setting-field{align-items:flex-start;flex-direction:column;gap:8px}.setting-field input:not([type="checkbox"]),.setting-field select{width:100%}.audit-row{grid-template-columns:1fr}.audit-row code{grid-column:1}.account-row .button-row{margin-left:0}.runtime-bar{gap:8px}.preset-card{min-height:220px}.dante-route{flex-wrap:wrap;gap:12px}.dante-route .plain-select{max-width:100%}.channel-control{flex-direction:row}}
.switch input { position:absolute; inset:0; z-index:2; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.switch input:focus-visible + span { outline:2px solid var(--accent); outline-offset:3px; }
.switch { flex-shrink:0; display:inline-block; }
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Role-aware controls and account deletion. */
[hidden] { display:none!important; }
.runtime-readonly { border:1px solid var(--line); border-radius:5px; padding:3px 7px; }
.danger-button { color:#c9384c; }
.danger-button:hover { background:#c9384c; color:#fff; }
.preset-card input[readonly] { border-color:transparent; padding-left:0; }
