:root {
  color-scheme: light;
  --ink: #111832;
  --muted: #65708c;
  --line: #dce3f1;
  --panel: #ffffff;
  --wash: #f4f7fb;
  --sidebar: #eef3fb;
  --blue: #315bdc;
  --green: #24996f;
  --amber: #c77817;
  --red: #d44949;
  --shadow: 0 12px 32px rgba(37, 51, 91, 0.08);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  overflow: hidden;
}

button, input {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 9px 13px;
  cursor: pointer;
}

button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

button.active-tool {
  border-color: #5a6df3;
  color: #3154ea;
  background: rgba(232, 237, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(90, 109, 243, 0.1);
}

.file-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 13px;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.hidden-file-input {
  display: none;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.app-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 20px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100%;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  overflow: visible;
  transition: width 180ms ease;
}

.sidebar-scroll {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  transition: opacity 180ms ease, padding 180ms ease;
}

.sidebar-toggle {
  position: absolute;
  top: 50%;
  right: -10px;
  z-index: 1000;
  width: 20px;
  min-width: 20px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 760;
  line-height: 1;
  transform: translateY(-50%);
}

.sidebar-toggle:hover {
  border-color: rgba(79, 103, 242, 0.55);
  background: #fff;
  box-shadow: 0 10px 24px rgba(79, 103, 242, 0.14);
}

.app-shell.sidebar-collapsed .sidebar-scroll {
  padding: 0;
  scrollbar-width: none;
}

.app-shell.sidebar-collapsed .sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-shell.sidebar-collapsed .sidebar-scroll {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.brand {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(36, 52, 92, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-mark:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(36, 52, 92, 0.16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-name {
  font-size: 24px;
  font-weight: 780;
}

.brand-caption {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
  color: #263453;
}

.nav-item.active {
  border-color: #e7edf8;
  background: var(--panel);
  color: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 51, 91, 0.08);
}

.nav-icon,
.search-icon,
.gear-icon,
.alert-icon,
.spectrum-icon,
.devices-icon,
.frequencies-icon,
.deployment-icon,
.summary-icon {
  display: inline-block;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  position: relative;
  flex: 0 0 18px;
  overflow: hidden;
}

.spectrum-icon,
.devices-icon,
.frequencies-icon,
.deployment-icon,
.summary-icon,
.alert-icon {
  border-radius: 5px;
  background: currentColor;
  opacity: 0.9;
}

.spectrum-icon::before,
.spectrum-icon::after,
.devices-icon::before,
.devices-icon::after,
.frequencies-icon::before,
.frequencies-icon::after,
.deployment-icon::before,
.deployment-icon::after,
.summary-icon::before,
.summary-icon::after,
.alert-icon::before,
.alert-icon::after {
  content: none;
}

.spectrum-icon {
  clip-path: polygon(0 60%, 18% 60%, 27% 26%, 42% 82%, 56% 43%, 70% 60%, 100% 60%, 100% 100%, 0 100%);
}

.devices-icon {
  clip-path: inset(8% 0 8% 0 round 4px);
}

.frequencies-icon {
  border-radius: 50%;
  background: currentColor;
  clip-path: circle(46% at 50% 50%);
}

.deployment-icon {
  clip-path: polygon(0 44%, 58% 44%, 58% 18%, 100% 50%, 58% 82%, 58% 56%, 0 56%);
}

.summary-icon {
  clip-path: polygon(0 0, 100% 0, 100% 24%, 0 24%, 0 38%, 72% 38%, 72% 62%, 0 62%, 0 76%, 88% 76%, 88% 100%, 0 100%);
}

.alert-icon {
  border-radius: 50%;
}

.sidebar-panel, .user-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  padding: 14px;
}

.panel-kicker {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 9px;
}

.project-actions {
  display: grid;
  gap: 8px;
}

.project-actions button {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border-color: rgba(79, 103, 242, 0.28);
  color: var(--ink);
  font-size: 12px;
  font-weight: 780;
  background: rgba(255, 255, 255, 0.82);
}

.project-actions button:hover {
  border-color: rgba(79, 103, 242, 0.52);
  color: var(--blue);
  background: #fff;
}

.project-actions .danger-lite {
  border-color: rgba(220, 63, 63, 0.28);
  color: #b33131;
}

.project-actions .danger-lite:hover {
  border-color: rgba(220, 63, 63, 0.48);
  color: #a42121;
  background: #fff8f8;
}

.project-status {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.saved-project-list {
  display: grid;
  gap: 6px;
  max-height: 132px;
  margin-top: 9px;
  overflow-y: auto;
}

.saved-project-empty,
.saved-project-button,
.saved-project-delete {
  width: 100%;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.25;
}

.saved-project-empty {
  color: var(--muted);
  font-weight: 650;
}

.saved-project-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: stretch;
}

.saved-project-button {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 0;
  padding: 7px 8px;
  border: 1px solid rgba(123, 134, 162, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  text-align: left;
}

.saved-project-button:hover {
  border-color: rgba(79, 103, 242, 0.45);
  background: #fff;
}

.saved-project-delete {
  width: 30px;
  min-width: 30px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(220, 63, 63, 0.24);
  color: #b33131;
  background: rgba(255, 248, 248, 0.76);
}

.saved-project-delete .control-icon {
  width: 14px;
  height: 14px;
}

.saved-project-delete:hover {
  border-color: rgba(220, 63, 63, 0.5);
  background: #fff4f4;
}

.saved-project-button strong,
.saved-project-button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-project-button span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.agent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.agent-detail {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agent-detail:empty {
  display: none;
}

.agent-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.agent-launch-button,
.agent-check-button,
.agent-local-app-button {
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-color: rgba(79, 103, 242, 0.28);
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.15;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.agent-launch-button:hover,
.agent-check-button:hover,
.agent-local-app-button:hover {
  border-color: rgba(79, 103, 242, 0.52);
  background: #fff;
}

.agent-local-app-button {
  margin-top: 7px;
}

.agent-launch-button:disabled,
.agent-launch-button.ready {
  cursor: default;
}

.agent-downloads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.agent-downloads a {
  min-width: 0;
  padding: 7px 6px;
  border: 1px solid rgba(79, 103, 242, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.agent-downloads a:hover {
  border-color: rgba(79, 103, 242, 0.46);
  color: var(--blue);
  background: #fff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.warning {
  background: var(--amber);
}

.status-dot.error {
  background: var(--red);
}

.meter {
  height: 8px;
  border-radius: 99px;
  margin-top: 12px;
  background: #e1e8f5;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.user-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.user-details {
  min-width: 0;
  width: 100%;
}

.user-name {
  color: #465474;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

.user-mail {
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.25;
  margin-top: 5px;
  text-decoration: none;
}

.user-mail:hover {
  text-decoration: underline;
}

.workspace {
  min-width: 0;
  min-height: 0;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrap {
  position: relative;
  min-width: 340px;
}

.search-wrap input {
  padding-left: 38px;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 10px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  width: 15px;
  height: 15px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: var(--muted);
  transform: rotate(45deg);
}

.icon-button {
  width: 42px;
  padding: 0;
}

.gear-icon {
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.gear-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

body.view-spectrum .metrics-grid {
  display: grid;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.metric p {
  color: #35415f;
  font-size: 12px;
  margin-bottom: 3px;
}

.metric strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.metric > div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.metric-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.metric-badge.green { color: #107455; background: #d9f4e9; }
.metric-badge.blue { color: var(--blue); background: #dce6ff; }
.metric-badge.amber { color: var(--amber); background: #ffe9c7; }
.metric-badge.red { color: var(--red); background: #ffdede; }

.dark-mode-card {
  text-align: left;
}

.dark-mode-card[aria-pressed="true"] {
  border-color: rgba(79, 103, 242, 0.42);
}

.dark-mode-switch {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 26px;
  border: 1px solid rgba(204, 216, 236, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, #eef3fb, #ffffff);
  box-shadow: inset 0 2px 5px rgba(33, 48, 87, 0.12);
}

.dark-mode-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #dfe8f5);
  box-shadow: 0 4px 10px rgba(33, 48, 87, 0.18);
  transition: transform 160ms ease, background 160ms ease;
}

.dark-mode-card[aria-pressed="true"] .dark-mode-switch {
  border-color: rgba(91, 213, 157, 0.42);
  background: linear-gradient(180deg, #243151, #11182b);
}

.dark-mode-card[aria-pressed="true"] .dark-mode-switch i {
  transform: translateX(18px);
  background: linear-gradient(180deg, #87f3bd, #32b67a);
}

.search-metric {
  padding: 8px;
}

.search-metric .search-wrap {
  width: 100%;
  min-width: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.content-grid {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.devices-layout {
  grid-template-columns: minmax(0, 1fr);
}

.deployment-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.spectrum-layout {
  grid-template-columns: minmax(0, 1fr) 16px 260px;
  grid-template-rows: minmax(0, 620px) auto auto;
  align-items: stretch;
  column-gap: 6px;
  row-gap: 8px;
  transition: grid-template-columns 420ms cubic-bezier(0.22, 1, 0.36, 1), grid-template-rows 420ms cubic-bezier(0.22, 1, 0.36, 1), gap 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spectrum-layout.scans-collapsed {
  grid-template-columns: minmax(0, 1fr) 16px 0;
  column-gap: 6px;
  row-gap: 8px;
}

.spectrum-layout.capture-collapsed {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 42px auto auto;
  row-gap: 8px;
}

.spectrum-layout.capture-collapsed .spectrum-scan-toggle-rail,
.spectrum-layout.capture-collapsed .spectrum-side-column {
  display: none;
}

.spectrum-scan-toggle-rail {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 16px;
  height: 100%;
  align-self: stretch;
}

.spectrum-scan-toggle-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.spectrum-scan-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 20px;
  min-width: 20px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 760;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.spectrum-capture-toggle-bar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  transform: translate(-50%, 0);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spectrum-capture-toggle {
  width: 48px;
  min-width: 48px;
  height: 20px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-color: rgba(205, 215, 235, 0.88);
  border-radius: 999px;
  padding: 0;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(36, 52, 92, 0.08);
  cursor: pointer;
  transform: translateY(0);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.spectrum-capture-toggle:hover {
  border-color: rgba(79, 103, 242, 0.55);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(79, 103, 242, 0.14);
  transform: translateY(-1px);
}

.spectrum-capture-toggle:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(36, 52, 92, 0.08);
}

.spectrum-capture-toggle .control-icon {
  width: 14px;
  height: 14px;
  background: transparent;
  box-shadow: none;
  transform: rotate(0deg);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spectrum-layout.capture-collapsed .spectrum-capture-toggle-bar {
  bottom: 50%;
  transform: translate(-50%, 50%);
}

.spectrum-layout.capture-collapsed .spectrum-capture-toggle .control-icon {
  transform: rotate(180deg);
}

.spectrum-scan-toggle:hover {
  border-color: rgba(79, 103, 242, 0.55);
  background: #fff;
  box-shadow: 0 10px 24px rgba(79, 103, 242, 0.14);
}

.spectrum-side-column {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-self: stretch;
  height: 100%;
  max-height: none;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    padding 180ms ease,
    border-color 180ms ease;
}

.spectrum-layout.scans-collapsed .spectrum-side-column {
  opacity: 0;
  transform: translateX(22px);
  pointer-events: none;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.spectrum-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding-bottom: 34px;
  overflow: hidden;
  transition:
    min-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spectrum-layout.capture-collapsed .spectrum-panel {
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.spectrum-layout.capture-collapsed .spectrum-panel > :not(.spectrum-capture-toggle-bar) {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

.spectrum-panel > :not(.spectrum-capture-toggle-bar) {
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h2 {
  font-size: 18px;
  line-height: 1.2;
}

.panel-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.button-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.button-group button,
.button-group .file-button {
  cursor: pointer;
  user-select: none;
}

.spectrum-tool-button {
  font-size: 12px;
  font-weight: 760;
}

#addSpectrumMarker.active-tool {
  border-color: rgba(50, 182, 122, 0.62);
  color: #0f7b59;
  background:
    linear-gradient(180deg, rgba(139, 245, 192, 0.98), rgba(91, 213, 157, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 0 0 4px rgba(91, 213, 157, 0.14),
    0 12px 24px rgba(45, 181, 119, 0.2);
}

#addSpectrumMarker.active-tool:hover {
  border-color: rgba(50, 182, 122, 0.76);
  color: #0b6247;
  background:
    linear-gradient(180deg, rgba(158, 250, 204, 0.98), rgba(99, 224, 165, 0.96));
}

#toggleIntermodProducts.active-tool {
  border-color: rgba(243, 163, 59, 0.58);
  color: #94580e;
  background:
    linear-gradient(180deg, rgba(255, 224, 171, 0.98), rgba(255, 196, 111, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 4px rgba(243, 163, 59, 0.13),
    0 12px 24px rgba(180, 105, 23, 0.16);
}

#toggleIntermodProducts.active-tool:hover {
  border-color: rgba(243, 163, 59, 0.72);
  color: #7f4808;
  background:
    linear-gradient(180deg, rgba(255, 233, 194, 0.98), rgba(255, 205, 130, 0.95));
}

#frequenciesView button,
#frequenciesView button *,
#frequenciesView .file-button,
#frequenciesView .file-button *,
#frequenciesView .file-button input,
#frequenciesView .sort-button,
#frequenciesView .sort-button * {
  cursor: pointer;
}

#frequenciesView .file-button input::file-selector-button {
  cursor: pointer;
}

#frequenciesView .plan-edit-input {
  cursor: text;
}

.icon-only {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.icon-only.danger-icon {
  color: #c33b3b;
  border-color: rgba(255, 132, 132, 0.42);
  background: rgba(255, 242, 242, 0.82);
}

.icon-only.danger-icon:hover {
  border-color: rgba(255, 107, 107, 0.72);
  background: #fff;
}

.icon-only.danger-icon:disabled {
  color: #98a3bb;
  border-color: rgba(214, 222, 238, 0.82);
  background: rgba(248, 251, 255, 0.82);
  cursor: not-allowed;
}

#frequenciesView .icon-only.danger-icon:disabled,
#frequenciesView .icon-only.danger-icon:disabled * {
  cursor: not-allowed;
}

.file-button.icon-only {
  overflow: hidden;
}

.control-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spectrum-canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfdff;
}

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

.spectrum-canvas canvas.marker-mode {
  cursor: crosshair;
}

.spectrum-canvas canvas.zoom-pan {
  cursor: grab;
}

.spectrum-canvas canvas.zoom-pan.panning {
  cursor: grabbing;
}

.spectrum-canvas canvas.threshold-hover,
.spectrum-canvas canvas.threshold-drag {
  cursor: ns-resize;
}

.spectrum-canvas canvas.marker-mode.zoom-pan,
.spectrum-canvas canvas.marker-mode.panning {
  cursor: crosshair;
}

.sdr-sweep-drawer {
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
}

.sdr-sweep-drawer summary {
  min-height: 38px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
  color: #253452;
  font-size: 13px;
  font-weight: 780;
  list-style: none;
}

.sdr-sweep-drawer summary::-webkit-details-marker {
  display: none;
}

.drawer-chevron {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: transform 160ms ease;
}

.drawer-chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.sdr-sweep-drawer[open] .drawer-chevron {
  transform: rotate(180deg);
}

.sdr-sweep-drawer em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.sdr-sweep-drawer em[data-tone="busy"] {
  color: var(--amber);
}

.sdr-sweep-drawer em[data-tone="ok"] {
  color: var(--green);
}

.sdr-sweep-drawer em[data-tone="error"] {
  color: var(--red);
}

.sdr-sweep-controls {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(120px, 160px) auto;
  align-items: end;
  gap: 10px;
  padding: 0 10px 14px;
}

.sdr-sweep-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.sdr-sweep-controls input {
  min-height: 34px;
  padding: 7px 9px;
}

.sdr-sweep-controls button {
  min-height: 34px;
  padding: 7px 14px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.spectrum-hover-line {
  position: absolute;
  width: 1px;
  background: rgba(79, 103, 242, 0.58);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(79, 103, 242, 0.1);
}

.spectrum-hover-line.marker-line {
  width: 2px;
  margin-left: -1px;
  background: rgba(91, 213, 157, 0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.44),
    0 0 14px rgba(91, 213, 157, 0.28);
}

.spectrum-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 92px;
  max-width: 120px;
  border: 1px solid rgba(205, 215, 235, 0.9);
  border-radius: 9px;
  padding: 5px 7px;
  color: #182342;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 18px rgba(28, 42, 79, 0.07);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.spectrum-tooltip.marker-tooltip {
  z-index: 6;
  border-color: rgba(91, 213, 157, 0.45);
  background: rgba(248, 255, 252, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 10px 24px rgba(29, 114, 80, 0.12);
}

.spectrum-tooltip strong,
.spectrum-tooltip span {
  display: block;
}

.spectrum-tooltip strong {
  margin-bottom: 0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.spectrum-tooltip span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f6b87;
  font-size: 12px;
  line-height: 1.35;
}

.spectrum-tooltip.marker-tooltip span {
  margin-top: 2px;
  color: #217b55;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.spectrum-tooltip i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.spectrum-marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spectrum-manual-marker {
  position: absolute;
  width: 1px;
  background: rgba(16, 23, 53, 0.42);
  pointer-events: none;
}

.spectrum-manual-marker::after {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(16, 23, 53, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.54);
}

.spectrum-plan-marker {
  position: absolute;
  width: 1px;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.54);
  pointer-events: none;
}

.spectrum-plan-marker.focused-marker {
  z-index: 3;
  width: 3px;
  margin-left: -1px;
  background: #f3a33b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.85),
    0 0 0 5px rgba(243, 163, 59, 0.18),
    0 12px 22px rgba(243, 163, 59, 0.24);
}

.spectrum-plan-marker::after {
  content: "";
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.72);
}

.spectrum-plan-marker.focused-marker::after {
  left: -6px;
  width: 13px;
  height: 13px;
  background: #f3a33b;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.86),
    0 0 0 9px rgba(243, 163, 59, 0.18);
}

.spectrum-plan-marker.focused-marker .spectrum-device-label {
  color: #a56212;
  font-size: 9px;
  opacity: 0.95;
}

.spectrum-device-label {
  position: absolute;
  top: 118px;
  left: -7px;
  display: block;
  max-width: 210px;
  color: #273351;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.62;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: left center;
  white-space: nowrap;
}

.spectrum-marker-label {
  position: absolute;
  top: 9px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  border: 1px solid rgba(205, 215, 235, 0.82);
  border-radius: 8px;
  padding: 4px 5px 4px 7px;
  color: #182342;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 18px rgba(28, 42, 79, 0.08);
  backdrop-filter: blur(9px);
  pointer-events: auto;
}

.spectrum-marker-label span {
  font-size: 11px;
  font-weight: 760;
}

.spectrum-marker-label button {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #7d879f;
  background: rgba(232, 237, 247, 0.82);
  box-shadow: none;
  font-size: 11px;
  line-height: 1;
}

.spectrum-marker-label button:hover {
  color: #c23c3c;
  background: rgba(255, 225, 225, 0.92);
}

.marker {
  position: absolute;
  top: 32px;
  width: 92px;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 7px 6px;
  background: rgba(255,255,255,0.92);
  color: var(--green);
  font-size: 11px;
  text-align: center;
}

.marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 310px;
  background: currentColor;
}

.marker strong, .marker span {
  display: block;
}

.marker-a { left: 26%; }
.marker-b { left: 43%; color: var(--blue); }
.marker-c { left: 69%; color: var(--amber); }

.toolbar-row {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(190px, 240px);
  gap: 12px;
  align-items: end;
  padding-top: 2px;
}

.toolbar-row label {
  color: var(--muted);
  font-size: 12px;
}

.toolbar-row input {
  margin-top: 6px;
}

.spectrum-frequency-strip {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 74px;
  max-height: none;
  max-width: 100%;
  overflow: visible;
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(36, 52, 92, 0.04);
  padding: 0;
}

.spectrum-layout.capture-collapsed .spectrum-frequency-strip {
  grid-row: 2;
  max-height: none;
}

.threshold-hit-strip {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 58px;
  max-height: 170px;
  overflow: auto;
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(36, 52, 92, 0.04);
  scrollbar-width: thin;
}

.spectrum-layout.capture-collapsed .threshold-hit-strip {
  grid-row: 3;
}

.threshold-hit-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 12px 12px 0 0;
  padding: 7px 12px;
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(8px);
}

.threshold-hit-header strong,
.threshold-hit-header span {
  display: block;
}

.threshold-hit-header strong {
  color: #24304e;
  font-size: 13px;
  font-weight: 840;
}

.threshold-hit-header span {
  margin-top: 1px;
  color: #7b86a2;
  font-size: 11px;
  font-weight: 700;
}

.threshold-hit-table {
  display: grid;
  min-width: 780px;
}

.threshold-hit-row {
  display: grid;
  grid-template-columns: 120px 100px minmax(210px, 1fr) 90px minmax(160px, 0.9fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(224, 231, 243, 0.62);
  border-radius: 0;
  padding: 6px 12px;
  color: #24304e;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.threshold-hit-row:hover {
  background: rgba(255, 246, 232, 0.72);
}

.threshold-hit-row.is-tv-exclusion {
  background: rgba(255, 241, 241, 0.68);
}

.threshold-hit-row.is-tv-exclusion:hover {
  background: rgba(255, 232, 232, 0.9);
}

.threshold-hit-head {
  position: sticky;
  top: 39px;
  z-index: 1;
  color: #687490;
  background: rgba(251, 253, 255, 0.95);
  cursor: default;
}

.threshold-hit-head strong {
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.threshold-hit-row span {
  overflow: hidden;
  color: #687490;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.threshold-hit-row span:first-child {
  color: #24304e;
  font-weight: 850;
}

.threshold-hit-row i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--hit-color);
}

.empty-threshold-hit {
  padding: 14px 16px;
  color: #7b86a2;
  font-size: 12px;
  font-weight: 650;
}

.spectrum-frequency-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 12px 12px 0 0;
  padding: 7px 12px;
  background: rgba(248, 251, 255, 0.94);
  backdrop-filter: blur(8px);
}

.spectrum-frequency-title strong,
.spectrum-frequency-title span {
  display: block;
}

.spectrum-frequency-title strong {
  color: #24304e;
  font-size: 13px;
  font-weight: 840;
}

.spectrum-frequency-title span {
  margin-top: 1px;
  color: #7b86a2;
  font-size: 11px;
  font-weight: 700;
}

.spectrum-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.spectrum-threshold-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(79, 103, 242, 0.22);
  border-radius: 9px;
  padding: 0 10px 0 8px;
  color: #40517a;
  background: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.spectrum-threshold-mode input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: inline-block;
  flex: 0 0 13px;
  align-self: center;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  border: 1px solid rgba(79, 103, 242, 0.44);
  border-radius: 4px;
  padding: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(31, 44, 84, 0.08);
  cursor: pointer;
}

.spectrum-threshold-mode input:checked {
  border-color: rgba(50, 182, 122, 0.72);
  background:
    linear-gradient(180deg, #79e8b1, #32b67a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px rgba(50, 182, 122, 0.2);
}

.spectrum-threshold-mode input:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 4px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

.spectrum-threshold-mode span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.spectrum-threshold-mode input:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.deploy-assignment-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(16, 24, 42, 0.34);
  backdrop-filter: blur(4px);
}

.deploy-assignment-popover {
  width: min(1180px, calc(100vw - 56px));
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  max-height: 760px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(205, 215, 235, 0.88);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 70px rgba(16, 24, 42, 0.28);
  overflow: hidden;
}

.deploy-popover-header,
.deploy-column-title,
.deploy-device-top,
.deploy-frequency-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deploy-popover-header {
  border-bottom: 1px solid rgba(224, 231, 243, 0.82);
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(239, 243, 255, 0.98), rgba(236, 250, 243, 0.96));
}

.deploy-popover-header strong,
.deploy-column-title strong,
.deploy-device-top strong,
.deploy-frequency-card strong {
  display: block;
  color: #24304e;
  font-size: 12px;
  font-weight: 860;
}

.deploy-popover-header span,
.deploy-column-title span,
.deploy-device-top span,
.deploy-frequency-card span,
.deploy-frequency-card em,
.deploy-empty-state span {
  display: block;
  margin-top: 2px;
  color: #7b86a2;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.deploy-popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deploy-popover-actions button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: #3154ea;
  border-color: rgba(79, 103, 242, 0.25);
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 820;
  cursor: pointer;
}

.deploy-popover-actions button:disabled {
  color: #98a3bb;
  cursor: not-allowed;
}

.deploy-popover-actions .deploy-confirm-button {
  border-color: rgba(50, 182, 122, 0.36);
  color: #127253;
  background: rgba(213, 246, 231, 0.95);
}

.deploy-popover-actions .deploy-confirm-button:hover {
  border-color: rgba(50, 182, 122, 0.62);
  background: #ffffff;
}

.deploy-popover-actions .deploy-confirm-button:disabled {
  border-color: rgba(214, 222, 238, 0.88);
  color: #98a3bb;
  background: rgba(248, 251, 255, 0.82);
}

.deploy-popover-actions .icon-only {
  width: 28px;
  min-width: 28px;
  padding: 0;
  color: #687490;
  font-size: 18px;
  line-height: 1;
}

.deploy-assignment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.deploy-devices-column,
.deploy-frequencies-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.deploy-devices-column {
  border-right: 1px solid rgba(224, 231, 243, 0.82);
}

.deploy-column-title {
  min-height: 42px;
  border-bottom: 1px solid rgba(224, 231, 243, 0.72);
  padding: 8px 12px;
  background: rgba(248, 251, 255, 0.86);
}

.deploy-device-list,
.deploy-frequency-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 12px 12px;
  -webkit-overflow-scrolling: touch;
}

.deploy-device-dropzone {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(205, 215, 235, 0.82);
  border-radius: 8px;
  padding: 9px;
  background: rgba(248, 251, 255, 0.76);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.deploy-device-dropzone.is-over {
  border-color: rgba(50, 182, 122, 0.74);
  background: rgba(229, 248, 238, 0.95);
  box-shadow: inset 0 0 0 1px rgba(50, 182, 122, 0.22);
}

.deploy-device-dropzone.is-compatible-target {
  border-color: rgba(50, 182, 122, 0.56);
}

.deploy-device-dropzone.is-incompatible-target {
  opacity: 0.48;
  cursor: not-allowed;
}

.deploy-device-dropzone.is-incompatible-target.is-over {
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 239, 239, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.16);
}

.deploy-device-dropzone.has-assignment {
  border-color: rgba(79, 103, 242, 0.30);
  background: rgba(245, 248, 255, 0.96);
}

.deploy-device-top em {
  flex: 0 0 auto;
  color: #3154ea;
  font-size: 11px;
  font-style: normal;
  font-weight: 840;
}

.deploy-device-assigned {
  display: grid;
  gap: 6px;
  min-height: 38px;
  border: 1px dashed rgba(139, 153, 181, 0.42);
  border-radius: 7px;
  padding: 6px;
}

.deploy-device-assigned > span {
  align-self: center;
  color: #8a96ad;
  font-size: 11px;
  font-weight: 760;
}

.deploy-frequency-card {
  min-width: 0;
  border: 1px solid rgba(205, 215, 235, 0.82);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.92);
  cursor: grab;
  transition: opacity 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.deploy-frequency-card:hover {
  border-color: rgba(79, 103, 242, 0.38);
}

.deploy-frequency-card.is-dragging {
  opacity: 0.48;
  transform: scale(0.99);
}

.deploy-frequency-card.is-assigned {
  border-color: rgba(50, 182, 122, 0.34);
  background: rgba(244, 253, 248, 0.96);
}

.deploy-frequency-card.is-compact {
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.78);
}

.deploy-frequency-card i {
  width: 9px;
  min-width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--frequency-color);
}

.deploy-frequency-card div {
  min-width: 0;
  flex: 1 1 auto;
}

.deploy-frequency-card strong,
.deploy-frequency-card span,
.deploy-frequency-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frequency-rating {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  color: #9a681b;
}

.frequency-rating strong {
  display: inline-block;
  color: #f3a33b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.frequency-rating em {
  color: #7b86a2;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.frequency-rating.is-empty strong,
.frequency-rating.is-empty em {
  color: #a9b4c9;
}

.frequency-rating.is-compact {
  margin-top: 3px;
}

.frequency-rating.is-compact strong {
  font-size: 11px;
}

.deploy-frequency-card button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-color: rgba(255, 132, 132, 0.36);
  border-radius: 7px;
  padding: 0;
  color: #c33b3b;
  background: rgba(255, 242, 242, 0.82);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.deploy-empty-state {
  display: grid;
  gap: 3px;
  border: 1px dashed rgba(139, 153, 181, 0.42);
  border-radius: 8px;
  padding: 16px;
  background: rgba(248, 251, 255, 0.72);
}

.deploy-empty-state strong {
  color: #51607d;
  font-size: 12px;
  font-weight: 840;
}

.spectrum-analyze-button,
.spectrum-calculate-button,
.spectrum-deploy-button,
.spectrum-lock-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 12px;
  border-color: rgba(79, 103, 242, 0.28);
  border-radius: 9px;
  color: #3154ea;
  background: rgba(239, 243, 255, 0.92);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.spectrum-analyze-button:hover,
.spectrum-calculate-button:hover,
.spectrum-deploy-button:hover,
.spectrum-lock-action:hover {
  border-color: rgba(79, 103, 242, 0.52);
  background: #ffffff;
}

.spectrum-analyze-button:disabled,
.spectrum-calculate-button:disabled,
.spectrum-deploy-button:disabled,
.spectrum-lock-action:disabled {
  color: #98a3bb;
  background: rgba(248, 251, 255, 0.82);
  cursor: not-allowed;
}

.spectrum-lock-icon-action {
  width: 32px;
  min-width: 32px;
  padding: 0;
}

.spectrum-lock-icon-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spectrum-calculate-button.is-loading {
  color: #3154ea;
  border-color: rgba(79, 103, 242, 0.38);
  background: rgba(239, 243, 255, 0.96);
}

.spectrum-calculate-button.is-loading i {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(79, 103, 242, 0.24);
  border-top-color: #4f67f2;
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spectrum-remove-button {
  min-height: 28px;
  padding: 0 12px;
  border-color: rgba(255, 132, 132, 0.42);
  border-radius: 9px;
  color: #c33b3b;
  background: rgba(255, 242, 242, 0.82);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.spectrum-remove-button:hover {
  border-color: rgba(255, 107, 107, 0.7);
  background: #ffffff;
}

.spectrum-remove-button:disabled {
  color: #98a3bb;
  border-color: rgba(214, 222, 238, 0.88);
  background: rgba(248, 251, 255, 0.82);
  cursor: not-allowed;
}

.threshold-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.threshold-highlight-toggle {
  min-height: 28px;
  padding: 0 10px;
  border-color: rgba(214, 222, 238, 0.9);
  border-radius: 9px;
  color: #51607d;
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
  cursor: pointer;
}

.threshold-highlight-toggle.is-active {
  border-color: rgba(255, 132, 132, 0.55);
  color: #c33b3b;
  background: rgba(255, 239, 239, 0.9);
}

.threshold-highlight-toggle:hover {
  border-color: rgba(79, 103, 242, 0.38);
  background: #ffffff;
}

.spectrum-frequency-strip::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.spectrum-frequency-strip::-webkit-scrollbar-track {
  background: transparent;
}

.spectrum-frequency-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 153, 181, 0.34);
}

.spectrum-frequency-header,
.spectrum-frequency-row {
  display: grid;
  grid-template-columns: 42px minmax(140px, 0.66fr) 100px 92px minmax(72px, 0.38fr) minmax(132px, 0.74fr) 68px 84px 32px;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.spectrum-frequency-header {
  border-bottom: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 10px 10px 0 0;
  padding: 8px 14px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(239, 244, 253, 0.96));
  backdrop-filter: blur(8px);
}

.spectrum-frequency-header strong,
.spectrum-frequency-header span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: #687490;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.spectrum-sort-button {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  color: #687490;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.spectrum-sort-button:hover {
  color: #3154ea;
  background: transparent;
}

.spectrum-sort-button.sorted-asc::after {
  content: " ↑";
}

.spectrum-sort-button.sorted-desc::after {
  content: " ↓";
}

.spectrum-frequency-row {
  position: relative;
  border-bottom: 1px solid rgba(224, 231, 243, 0.62);
  padding: 6px 12px;
  background: var(--spectrum-status-bg, transparent);
  cursor: pointer;
  transition: background 140ms ease;
}

.spectrum-frequency-row.has-zone::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 4px;
  width: 3px;
  border-radius: 999px;
  background: var(--zone-color);
}

.spectrum-name-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
}

.spectrum-zone-chip {
  max-width: 56px;
  overflow: hidden;
  border: 1px solid var(--zone-color);
  border-radius: 999px;
  padding: 3px 6px;
  color: #24304e;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 840;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-frequency-row.spectrum-status-ok {
  --spectrum-status-bg: rgba(50, 182, 122, 0.12);
}

.spectrum-frequency-row.spectrum-status-review {
  --spectrum-status-bg: rgba(243, 163, 59, 0.12);
}

.spectrum-frequency-row.spectrum-status-change {
  --spectrum-status-bg: rgba(255, 107, 107, 0.12);
}

.spectrum-frequency-row:hover {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), var(--spectrum-status-bg, rgba(245, 248, 255, 0.82));
}

.spectrum-frequency-row.selected-frequency {
  box-shadow: inset 0 0 0 1px rgba(79, 103, 242, 0.38);
}

.spectrum-frequency-row.selected-frequency:hover {
  background: linear-gradient(0deg, rgba(232, 237, 255, 0.44), rgba(232, 237, 255, 0.44)), var(--spectrum-status-bg, rgba(224, 231, 255, 0.86));
}

.spectrum-frequency-row.focused-frequency {
  background: linear-gradient(0deg, rgba(255, 244, 225, 0.58), rgba(255, 244, 225, 0.58)), var(--spectrum-status-bg, transparent);
  box-shadow: inset 3px 0 0 #f3a33b;
}

.spectrum-frequency-row.focused-frequency:hover {
  background: linear-gradient(0deg, rgba(255, 238, 207, 0.66), rgba(255, 238, 207, 0.66)), var(--spectrum-status-bg, transparent);
}

.spectrum-frequency-row.locked-frequency {
  box-shadow: inset 0 -1px 0 rgba(224, 231, 243, 0.62), inset 0 0 0 1px rgba(36, 48, 78, 0.08);
}

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

.spectrum-row-selector {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-color: rgba(205, 215, 235, 0.74);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.spectrum-row-selector:hover {
  border-color: rgba(79, 103, 242, 0.42);
  background: #fff;
}

.spectrum-row-selector[aria-pressed="true"] {
  border-color: rgba(79, 103, 242, 0.68);
  background: rgba(232, 237, 255, 0.94);
}

.spectrum-row-selector i {
  width: 8px;
  height: 8px;
  justify-self: center;
  border-radius: 50%;
  background: var(--frequency-color);
}

.spectrum-row-lock {
  width: 28px;
  min-width: 28px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-color: rgba(205, 215, 235, 0.74);
  border-radius: 8px;
  padding: 0;
  color: #8190ad;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.spectrum-row-lock svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spectrum-row-lock:hover {
  border-color: rgba(79, 103, 242, 0.42);
  color: #3154ea;
  background: #fff;
}

.spectrum-row-lock.is-locked {
  border-color: rgba(36, 48, 78, 0.18);
  color: #24304e;
  background: rgba(235, 240, 250, 0.94);
}

.spectrum-row-remove {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-color: rgba(255, 132, 132, 0.42);
  border-radius: 8px;
  padding: 0;
  color: #c33b3b;
  background: rgba(255, 242, 242, 0.82);
  font-size: 16px;
  font-weight: 840;
  line-height: 1;
  cursor: pointer;
}

.spectrum-row-remove:hover {
  border-color: rgba(255, 107, 107, 0.7);
  background: #fff;
}

.spectrum-frequency-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-frequency-row span {
  color: #687490;
  font-size: 12px;
  font-weight: 760;
}

.spectrum-frequency-row .spectrum-range-pill {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(49, 84, 234, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  background: linear-gradient(90deg, rgba(49, 84, 234, 0.16), rgba(50, 182, 122, 0.20));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  color: #1d376c;
}

.spectrum-range-pill strong,
.spectrum-range-pill em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-range-pill strong {
  flex: 0 0 auto;
  color: #1d376c;
  font-size: 11px;
  font-style: normal;
  font-weight: 880;
}

.spectrum-range-pill em {
  color: #24635a;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

.spectrum-frequency-input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  box-sizing: border-box;
  border-color: rgba(205, 215, 235, 0.72);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  color: #273351;
  font-size: 12px;
  font-weight: 760;
  padding: 6px 8px;
  cursor: text;
}

.spectrum-name-input {
  font-weight: 820;
  max-width: none;
}

.spectrum-frequency-row > .spectrum-frequency-input:not(.spectrum-name-input) {
  max-width: 104px;
}

.spectrum-frequency-input:hover {
  border-color: rgba(79, 103, 242, 0.42);
  background: #fff;
}

.spectrum-frequency-input:focus {
  outline: none;
  border-color: rgba(79, 103, 242, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.1);
}

.empty-spectrum-frequency,
.spectrum-frequency-empty {
  padding: 14px 16px;
  color: #7b86a2;
  font-size: 12px;
  font-weight: 650;
}

.threshold-control span,
.zoom-control span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.manual-marker-control {
  display: grid;
  align-content: center;
  gap: 3px;
  width: 112px;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid rgba(224, 231, 243, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.manual-marker-control span {
  color: #687490;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
}

.manual-marker-control input {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #24304e;
  background: transparent;
  font-size: 12px;
  font-weight: 820;
}

.manual-marker-control input:focus {
  outline: none;
}

.tv-channel-panel {
  position: absolute;
  top: 66px;
  right: 18px;
  z-index: 12;
  display: inline-grid;
  grid-template-columns: minmax(190px, 260px);
  align-items: center;
  gap: 8px;
  width: min(280px, calc(100% - 36px));
  max-width: min(280px, calc(100% - 36px));
  margin: 0;
  border: 1px solid rgba(205, 215, 235, 0.86);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 14px 32px rgba(36, 52, 92, 0.14);
}

.tv-channel-panel[hidden] {
  display: none;
}

.tv-channel-panel label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tv-channel-panel label span {
  color: #687490;
  font-size: 11px;
  font-weight: 800;
}

.tv-channel-panel select {
  min-width: 0;
  min-height: 31px;
  border: 1px solid rgba(205, 215, 235, 0.9);
  border-radius: 7px;
  padding: 0 9px;
  color: #24304e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 760;
}

.tv-channel-toggle {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 7px;
}

.tv-channel-toggle input {
  width: 15px;
  height: 15px;
  accent-color: #3154ea;
}

.threshold-control output,
.zoom-control output {
  color: #a56212;
  font-weight: 760;
}

.threshold-control input[type="range"],
.zoom-control input[type="range"] {
  min-height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.threshold-control input[type="range"]::-webkit-slider-runnable-track,
.zoom-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3a33b, #5a6df3);
}

.threshold-control input[type="range"]::-webkit-slider-thumb,
.zoom-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #f3a33b;
  box-shadow: 0 4px 10px rgba(36, 52, 92, 0.18);
}

.zoom-control output {
  color: #3154ea;
}

.zoom-control input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #c8d3ff, #3154ea);
}

.zoom-control input[type="range"]::-webkit-slider-thumb {
  background: #3154ea;
}

.marker-list, .assignment-stack, .deployment-list {
  display: grid;
  gap: 10px;
}

.marker-list div, .assignment-stack div, .deployment-list div {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.marker-list div:last-child, .assignment-stack div:last-child, .deployment-list div:last-child {
  border-bottom: 0;
}

.marker-list span, .assignment-stack span, .deployment-list span {
  color: var(--muted);
  font-size: 13px;
}

.spectrum-scans-panel,
.spectrum-zones-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
}

.spectrum-scans-panel .panel-header,
.spectrum-zones-panel .panel-header {
  display: block;
  flex: 0 0 auto;
  margin-bottom: 8px;
  width: 100%;
}

.spectrum-scans-panel .panel-header h2,
.spectrum-scans-panel .panel-header p,
.spectrum-zones-panel .panel-header h2,
.spectrum-zones-panel .panel-header p {
  text-align: left;
}

.spectrum-scans-panel .marker-list {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 2px 0 0;
}

.spectrum-scans-panel .marker-list::-webkit-scrollbar {
  width: 6px;
}

.spectrum-scans-panel .marker-list::-webkit-scrollbar-track {
  background: transparent;
}

.spectrum-scans-panel .marker-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(139, 153, 181, 0.34);
}

.spectrum-zones-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.spectrum-zone-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  margin-bottom: 8px;
}

.spectrum-zone-form input {
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgba(205, 215, 235, 0.86);
  border-radius: 7px;
  padding: 0 9px;
  color: #24304e;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 760;
}

.spectrum-zone-form input:focus {
  outline: none;
  border-color: rgba(79, 103, 242, 0.68);
  box-shadow: 0 0 0 3px rgba(79, 103, 242, 0.1);
}

.spectrum-zone-form button {
  min-width: 30px;
  min-height: 30px;
  border-radius: 7px;
  padding: 0;
  color: #3154ea;
  font-size: 17px;
  font-weight: 860;
}

.spectrum-zone-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow-y: auto;
  padding-right: 2px;
}

.spectrum-zone-item {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(224, 231, 243, 0.84);
  border-left: 4px solid var(--zone-color);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.spectrum-zone-item:hover,
.spectrum-zone-item:focus-visible {
  border-color: rgba(79, 103, 242, 0.34);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(36, 52, 92, 0.08);
  outline: none;
}

.spectrum-zone-item.is-filtered {
  border-color: rgba(79, 103, 242, 0.46);
  border-left-color: var(--zone-color);
  background: linear-gradient(180deg, rgba(236, 241, 255, 0.92), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 0 0 1px rgba(79, 103, 242, 0.18);
}

.spectrum-zone-item strong,
.spectrum-zone-item span,
.spectrum-zone-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-zone-item strong {
  color: #24304e;
  font-size: 12px;
  font-weight: 860;
}

.spectrum-zone-item span,
.spectrum-zone-item em {
  color: #7b86a2;
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.spectrum-zone-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 1px solid rgba(224, 231, 243, 0.74);
  padding-top: 6px;
}

.spectrum-zone-links span {
  flex: 0 0 auto;
  color: #8a96ad;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.spectrum-zone-links button {
  max-width: 86px;
  min-height: 22px;
  border: 1px solid rgba(205, 215, 235, 0.88);
  border-radius: 6px;
  padding: 0 6px;
  color: #6d7891;
  background: rgba(246, 248, 252, 0.9);
  font-size: 10px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spectrum-zone-links button:hover {
  border-color: rgba(79, 103, 242, 0.44);
  color: #3154ea;
}

.spectrum-zone-links button.is-linked {
  border-color: rgba(50, 182, 122, 0.42);
  color: #217b55;
  background: rgba(231, 248, 239, 0.92);
}

.spectrum-zone-links button:not(.is-linked) {
  border-color: rgba(255, 107, 107, 0.35);
  color: #a84e58;
  background: rgba(255, 241, 242, 0.88);
}

.spectrum-zones-empty {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px dashed rgba(139, 153, 181, 0.38);
  border-radius: 8px;
  padding: 14px;
  color: #7b86a2;
  text-align: center;
}

.spectrum-zones-empty strong {
  color: #51607d;
  font-size: 12px;
  font-weight: 840;
}

.spectrum-zones-empty span {
  color: #8a96ad;
  font-size: 11px;
  font-weight: 700;
}

.spectrum-zone-menu {
  position: fixed;
  z-index: 120;
  min-width: 180px;
  max-width: 240px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(205, 215, 235, 0.92);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 44px rgba(36, 52, 92, 0.18);
}

.spectrum-zone-menu strong {
  padding: 3px 6px 4px;
  color: #687490;
  font-size: 11px;
  font-weight: 850;
}

.spectrum-zone-menu > span {
  padding: 6px 5px;
  color: #8a96ad;
  font-size: 11px;
  font-weight: 720;
}

.spectrum-zone-menu button {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 8px;
  color: #24304e;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.spectrum-zone-menu button:hover,
.spectrum-zone-menu button.is-active {
  border-color: rgba(79, 103, 242, 0.18);
  background: rgba(232, 237, 255, 0.82);
}

.spectrum-zone-menu button i {
  width: 9px;
  min-width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zone-color, #b6bfd3);
}

.spectrum-zone-menu button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marker-list .scan-list-item {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 7px;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-height: 96px;
  min-width: 0;
  overflow: hidden;
  border-bottom: 0;
  padding: 7px 9px;
  box-sizing: border-box;
}

.scan-card-row {
  display: grid;
  align-items: center;
  min-height: 24px;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}

.scan-name-row,
.scan-frequency-row {
  grid-template-columns: minmax(0, 1fr);
}

.scan-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
}

.scan-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-title i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79, 103, 242, 0.08);
}

.scan-meta {
  line-height: 1.2;
  display: block;
}

.scan-error strong {
  color: var(--red);
}

.scan-layer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  box-sizing: border-box;
}

.scan-quick-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: 4px;
  width: 100%;
  min-height: 26px;
  padding: 0;
  border-bottom: 0;
  box-sizing: border-box;
}

.scan-icon-action {
  width: 100%;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  color: #40517a;
  background: rgba(255, 255, 255, 0.86);
}

.scan-icon-action:hover {
  border-color: rgba(79, 103, 242, 0.42);
  color: var(--blue);
  background: #fff;
}

.scan-icon-action .control-icon {
  width: 13px;
  height: 13px;
}

.scan-icon-action.danger {
  color: #c23c3c;
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 242, 242, 0.84);
}

.scan-icon-action.danger:hover {
  color: #b32626;
  border-color: rgba(255, 107, 107, 0.52);
  background: #fff2f2;
}

.scan-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 24px;
  min-height: 24px;
  border: 1px solid rgba(205, 215, 235, 0.9);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.scan-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.scan-toggle span {
  position: relative;
  width: 26px;
  height: 15px;
  border: 1px solid rgba(205, 215, 235, 0.9);
  border-radius: 999px;
  background: #e8edf7;
  box-shadow: inset 0 1px 3px rgba(36, 52, 92, 0.08);
  transition: background 140ms ease, border-color 140ms ease;
}

.scan-toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(36, 52, 92, 0.2);
  transition: transform 140ms ease;
}

.scan-toggle input:checked + span {
  border-color: rgba(79, 103, 242, 0.55);
  background: linear-gradient(180deg, #6d7df7, #4f67f2);
}

.scan-toggle input:checked + span::after {
  transform: translateX(11px);
}

.scan-color {
  position: relative;
  width: 100%;
  height: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(16, 23, 53, 0.08);
  border-radius: 6px;
  background: var(--scan-color);
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 6px 14px rgba(36, 52, 92, 0.06);
  overflow: hidden;
}

.scan-color input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.scan-action {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border-radius: 9px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 720;
  color: #435070;
  background: rgba(255, 255, 255, 0.86);
}

.scan-action.danger {
  color: #c23c3c;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 242, 242, 0.9);
}

.device-list {
  display: grid;
  gap: 10px;
}

.device-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 140px auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.rack-thumb {
  height: 36px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 12px 18px, #89a2c4 0 3px, transparent 4px),
    radial-gradient(circle at 62px 18px, #89a2c4 0 3px, transparent 4px),
    linear-gradient(180deg, #1e293b, #111827);
}

.device-row strong, .device-row span {
  display: block;
}

.device-row span, .ip-text {
  color: var(--muted);
  font-size: 13px;
}

.test-checklist {
  display: grid;
  gap: 10px;
}

.test-checklist div {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(224, 231, 243, 0.86);
  border-radius: 12px;
  padding: 12px;
  background: rgba(251, 253, 255, 0.78);
}

.test-checklist strong {
  color: #24304e;
  font-size: 13px;
}

.test-checklist span {
  color: #687490;
  font-size: 12px;
  line-height: 1.45;
}

.test-checklist code {
  border: 1px solid rgba(205, 215, 235, 0.82);
  border-radius: 6px;
  padding: 1px 5px;
  color: #3154ea;
  background: rgba(242, 246, 255, 0.92);
  font-size: 11px;
}

.shure-discovery-panel {
  display: grid;
  gap: 12px;
}

.audio-technica-panel {
  margin-top: 16px;
  border-top: 1px solid rgba(224, 231, 243, 0.74);
  padding-top: 16px;
}

.audio-technica-actions {
  justify-content: flex-start;
}

.audio-technica-device-card .shure-device-list-top em {
  color: #3154ea;
  background: rgba(232, 237, 255, 0.95);
}

.shure-discovery-controls {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(170px, 220px);
  gap: 10px;
  align-items: end;
}

.shure-discovery-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.shure-discovery-controls input {
  min-height: 34px;
  font-size: 12px;
}

.shure-discovery-controls button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 820;
}

.shure-discovery-note,
.shure-discovery-empty,
.shure-device-list-card {
  border: 1px solid rgba(224, 231, 243, 0.86);
  border-radius: 12px;
  background: rgba(251, 253, 255, 0.78);
}

.shure-discovery-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.shure-discovery-note strong,
.shure-discovery-note span,
.shure-discovery-item strong,
.shure-discovery-item span {
  display: block;
}

.shure-discovery-note strong,
.shure-discovery-item strong {
  color: #24304e;
  font-size: 13px;
  font-weight: 850;
}

.shure-discovery-note span,
.shure-discovery-item span {
  margin-top: 2px;
  color: #687490;
  font-size: 12px;
  font-weight: 700;
}

.shure-discovery-list {
  display: grid;
  gap: 10px;
}

.shure-discovery-empty {
  padding: 14px 12px;
  color: #7b86a2;
  font-size: 12px;
  font-weight: 700;
}

.shure-device-list-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(36, 52, 92, 0.035);
}

.device-wide-card {
  width: 100%;
}

.shure-device-list-card.selected {
  border-color: rgba(79, 103, 242, 0.48);
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.08);
}

.shure-device-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.device-wide-header {
  align-items: center;
  border-bottom: 1px solid rgba(224, 231, 243, 0.66);
  padding-bottom: 10px;
}

.shure-device-list-top strong,
.shure-device-list-top span {
  display: block;
}

.shure-device-list-top strong {
  color: #24304e;
  font-size: 14px;
  font-weight: 880;
}

.shure-device-list-top span {
  margin-top: 3px;
  color: #687490;
  font-size: 12px;
  font-weight: 720;
}

.shure-device-list-top em {
  border-radius: 999px;
  padding: 5px 8px;
  color: #127253;
  background: rgba(213, 246, 231, 0.95);
  font-size: 10px;
  font-style: normal;
  font-weight: 880;
}

.shure-device-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.shure-device-metrics div {
  border: 1px solid rgba(224, 231, 243, 0.72);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.shure-device-metrics span,
.shure-device-metrics strong {
  display: block;
}

.shure-device-metrics span {
  color: #7b86a2;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.shure-device-metrics strong {
  margin-top: 3px;
  color: #24304e;
  font-size: 12px;
  font-weight: 850;
}

.device-channel-list {
  overflow: auto;
  border: 1px solid rgba(224, 231, 243, 0.72);
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.6);
}

.device-channel-row {
  display: grid;
  grid-template-columns: 58px minmax(170px, 1.1fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 760px;
  border-bottom: 1px solid rgba(224, 231, 243, 0.62);
  padding: 9px 12px;
}

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

.device-channel-head {
  color: #687490;
  background: rgba(255, 255, 255, 0.72);
}

.device-channel-row span,
.device-channel-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-channel-head span {
  color: #687490;
  font-size: 10px;
  font-weight: 880;
  text-transform: uppercase;
}

.device-channel-row span {
  color: #34415f;
  font-size: 12px;
  font-weight: 720;
}

.device-channel-row strong {
  color: #24304e;
  font-size: 12px;
  font-weight: 850;
}

.audio-technica-channel-row {
  grid-template-columns: 70px minmax(170px, 1.1fr) minmax(120px, 0.8fr) minmax(150px, 0.9fr) minmax(170px, 1fr);
}

.device-control-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.device-control-input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(204, 215, 237, 0.92);
  border-radius: 8px;
  padding: 6px 8px;
  color: #24304e;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 820;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.device-control-input:hover {
  border-color: rgba(79, 103, 242, 0.45);
  background: #fff;
}

.device-control-input:focus {
  border-color: rgba(79, 103, 242, 0.78);
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.1);
}

.frequency-control-cell span {
  color: #7b86a2;
  font-size: 11px;
  font-weight: 850;
}

.device-inline-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.device-inline-status {
  margin-right: auto;
  border-radius: 999px;
  padding: 5px 9px;
  color: #127253;
  background: rgba(213, 246, 231, 0.95);
  font-size: 10px;
  font-style: normal;
  font-weight: 880;
}

.device-inline-status[data-tone="working"] {
  color: #3154ea;
  background: rgba(232, 237, 255, 0.95);
}

.device-inline-status[data-tone="warning"] {
  color: #98630c;
  background: rgba(255, 237, 203, 0.95);
}

.device-inline-status[data-tone="error"] {
  color: #b52929;
  background: rgba(255, 231, 231, 0.95);
}

.device-inline-footer button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 820;
}

.shure-device-channel-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.shure-device-channel-mini div,
.shure-mini-empty {
  border: 1px solid rgba(224, 231, 243, 0.62);
  border-radius: 9px;
  padding: 7px 8px;
  background: rgba(248, 251, 255, 0.74);
}

.shure-device-channel-mini span,
.shure-device-channel-mini strong,
.shure-device-channel-mini small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shure-device-channel-mini span {
  color: #7b86a2;
  font-size: 10px;
  font-weight: 850;
}

.shure-device-channel-mini strong {
  margin-top: 2px;
  color: #24304e;
  font-size: 12px;
  font-weight: 870;
}

.shure-device-channel-mini small,
.shure-mini-empty {
  margin-top: 2px;
  color: #687490;
  font-size: 11px;
  font-weight: 700;
}

.shure-discovery-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.shure-discovery-actions button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 820;
}

.device-spectrum-button {
  border-color: rgba(49, 84, 234, 0.28);
  color: #3154ea;
  background: rgba(232, 237, 255, 0.84);
}

.device-spectrum-button:hover {
  border-color: rgba(49, 84, 234, 0.52);
  background: #fff;
}

.device-spectrum-button.is-added {
  border-color: rgba(50, 182, 122, 0.44);
  color: #127253;
  background: rgba(213, 246, 231, 0.95);
}

.device-spectrum-button.is-added::before {
  content: "✓";
  margin-right: 5px;
  font-weight: 900;
}

.device-spectrum-button.is-partial {
  border-color: rgba(243, 163, 59, 0.42);
  color: #98630c;
  background: rgba(255, 237, 203, 0.95);
}

.shure-test-panel {
  display: grid;
  gap: 10px;
}

.shure-test-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.shure-test-panel input {
  min-height: 34px;
  font-size: 12px;
}

.shure-inline-controls {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
}

.shure-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.shure-command-grid button,
.shure-test-panel > button {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 760;
}

.shure-command-grid #readAd4qDevice {
  grid-column: 1 / -1;
}

.shure-command-grid button:last-child {
  grid-column: 1 / -1;
}

.shure-device-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(224, 231, 243, 0.86);
  border-radius: 12px;
  padding: 12px;
  background: rgba(251, 253, 255, 0.82);
}

.shure-device-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shure-device-summary strong,
.shure-device-summary span {
  display: block;
}

.shure-device-summary strong {
  color: #24304e;
  font-size: 13px;
  font-weight: 860;
}

.shure-device-summary span {
  margin-top: 2px;
  color: #687490;
  font-size: 11px;
  font-weight: 700;
}

.shure-device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.shure-device-actions button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 840;
}

.shure-device-summary em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  color: #687490;
  background: rgba(238, 243, 251, 0.92);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.shure-device-summary em.online {
  color: #127253;
  background: rgba(213, 246, 231, 0.95);
}

.shure-device-summary em.reading {
  color: #3154ea;
  background: rgba(232, 237, 255, 0.95);
}

.shure-device-summary em.error {
  color: #c33b3b;
  background: rgba(255, 235, 235, 0.95);
}

.shure-channel-table {
  overflow: auto;
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 10px;
}

.shure-channel-row {
  display: grid;
  grid-template-columns: 34px minmax(90px, 0.8fr) 92px minmax(128px, 1fr) 92px 84px minmax(112px, 0.9fr) 118px;
  gap: 8px;
  align-items: center;
  min-width: 900px;
  border-bottom: 1px solid rgba(224, 231, 243, 0.62);
  padding: 8px 10px;
}

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

.shure-channel-head {
  color: #687490;
  background: rgba(248, 251, 255, 0.95);
}

.shure-channel-head strong {
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.shure-channel-row span {
  overflow: hidden;
  color: #24304e;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shure-target-frequency {
  min-height: 28px;
  border-color: rgba(205, 215, 235, 0.72);
  border-radius: 8px;
  padding: 5px 7px;
  color: #24304e;
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 780;
}

.shure-plan-select {
  min-height: 28px;
  border-color: rgba(205, 215, 235, 0.72);
  border-radius: 8px;
  padding: 5px 7px;
  color: #24304e;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 780;
}

.shure-channel-control {
  display: grid;
  gap: 4px;
}

.shure-deploy-preview {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 10px;
  padding: 10px 12px;
  color: #687490;
  background: rgba(248, 251, 255, 0.86);
  font-size: 12px;
  font-weight: 730;
}

.shure-deploy-preview.has-changes {
  border-color: rgba(243, 163, 59, 0.42);
  color: #a56212;
  background: rgba(255, 248, 236, 0.9);
}

.shure-deploy-preview strong,
.shure-deploy-preview span {
  display: block;
}

.shure-channel-control button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 840;
}

.shure-channel-control em {
  color: #687490;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.shure-channel-control em.ok {
  color: #127253;
}

.shure-channel-control em.reading {
  color: #3154ea;
}

.shure-channel-control em.error {
  color: #c33b3b;
}

.shure-channel-empty {
  padding: 12px;
  color: #7b86a2;
  font-size: 12px;
  font-weight: 700;
}

.shure-log {
  min-height: 190px;
  max-height: 310px;
  overflow: auto;
  border: 1px solid rgba(224, 231, 243, 0.86);
  border-radius: 10px;
  margin: 0;
  padding: 10px;
  color: #233150;
  background: rgba(247, 250, 255, 0.88);
  font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.pill {
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.pill.offline {
  color: #7a5a14;
  background: #fff1ce;
}

.table-wrap {
  overflow: auto;
}

.import-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.import-strip strong,
.import-strip span {
  display: block;
}

.import-strip strong {
  font-size: 14px;
}

.import-strip span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.equipment-library {
  border: 1px solid rgba(205, 215, 235, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.92));
  box-shadow: 0 14px 34px rgba(37, 51, 91, 0.08);
  padding: 14px;
  margin-bottom: 14px;
}

.equipment-library[hidden] {
  display: none;
}

.equipment-library-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.equipment-library-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.equipment-library-header strong,
.equipment-library-header span {
  display: block;
}

.equipment-library-header strong {
  font-size: 15px;
  font-weight: 850;
}

.equipment-library-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 3px;
}

.equipment-library-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border: 1px solid rgba(205, 215, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 11px;
  margin-bottom: 10px;
  overflow: hidden;
}

.equipment-library-search input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #20304f;
  font-size: 13px;
  font-weight: 720;
}

.equipment-library-search input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.equipment-library-search input::placeholder {
  color: #8a96ad;
  font-weight: 680;
}

.equipment-library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.equipment-library-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.equipment-library-grid label:nth-child(2) {
  grid-column: span 2;
}

.custom-profile-form {
  border: 1px solid rgba(205, 215, 235, 0.86);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.8);
  padding: 12px;
  margin-top: 12px;
}

.custom-profile-form[hidden] {
  display: none;
}

.custom-profile-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.custom-profile-title strong,
.custom-profile-title span {
  display: block;
}

.custom-profile-title strong {
  color: #121b3f;
  font-size: 14px;
  font-weight: 880;
}

.custom-profile-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.custom-profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.custom-profile-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.custom-profile-grid label:nth-child(3) {
  grid-column: span 2;
}

.custom-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.equipment-library-grid label span {
  color: #46536f;
  font-size: 11px;
  font-weight: 840;
}

.custom-profile-grid label span,
.custom-profile-grid select,
.custom-profile-grid input,
.equipment-library-grid select,
.equipment-library-grid input {
  width: 100%;
}

.custom-profile-grid label span {
  color: #46536f;
  font-size: 11px;
  font-weight: 840;
}

.custom-profile-grid select,
.custom-profile-grid input,
.equipment-library-grid select,
.equipment-library-grid input {
  min-height: 36px;
  border: 1px solid rgba(205, 215, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #20304f;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.custom-profile-grid select:focus,
.custom-profile-grid input:focus,
.equipment-library-grid select:focus,
.equipment-library-grid input:focus {
  outline: none;
  border-color: rgba(79, 103, 242, 0.72);
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.1);
}

.equipment-profile-preview {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  border: 1px solid rgba(224, 231, 243, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
  margin-top: 12px;
  overflow: hidden;
}

.equipment-profile-preview strong,
.equipment-profile-preview span {
  display: block;
}

.equipment-profile-preview strong {
  font-size: 14px;
  font-weight: 880;
}

.equipment-profile-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-top: 2px;
}

.equipment-profile-preview dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  align-items: stretch;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.equipment-profile-preview dl div {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(224, 231, 243, 0.88);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.88);
  padding: 7px 9px;
}

.equipment-profile-preview dt,
.equipment-profile-preview dd {
  margin: 0;
}

.equipment-profile-preview dt {
  color: #7b86a2;
  font-size: 10px;
  font-weight: 840;
  text-transform: uppercase;
}

.equipment-profile-preview dd {
  color: #233150;
  font-size: 12px;
  font-weight: 850;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.equipment-library-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  font-size: 13px;
}

th {
  color: #35415f;
  font-weight: 700;
  background: #fbfdff;
}

.sort-button {
  width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0 6px;
  font-weight: 700;
  text-align: left;
}

.sort-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0;
}

.sort-button.sorted-asc::after {
  border-bottom: 6px solid currentColor;
  opacity: 0.72;
}

.sort-button.sorted-desc::after {
  border-top: 6px solid currentColor;
  opacity: 0.72;
}

td {
  color: #1f2b49;
}

.select-column {
  width: 34px;
  max-width: 34px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
  width: 42px;
  max-width: 42px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

th:nth-child(2) .sort-button {
  justify-content: center;
}

th:nth-child(4),
td:nth-child(4) {
  width: 118px;
  max-width: 118px;
}

th:nth-child(8),
td:nth-child(8) {
  width: 136px;
  max-width: 136px;
}

th.status-column,
td.status-column {
  width: 96px;
  max-width: 96px;
}

th.delete-column,
td.delete-column {
  width: 40px;
  max-width: 40px;
  padding-left: 4px;
  padding-right: 8px;
  text-align: center;
}

.plan-select {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.plan-select input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-select span {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(205, 215, 235, 0.94);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 2px #fff;
}

.plan-select input:checked + span {
  border-color: rgba(79, 103, 242, 0.86);
  background: var(--blue);
}

.plan-select input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.12);
}

.frequency-row-delete {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  border-color: rgba(255, 132, 132, 0.36);
  border-radius: 8px;
  padding: 0;
  color: #c33b3b;
  background: rgba(255, 244, 244, 0.72);
  cursor: pointer;
}

.frequency-row-delete .control-icon {
  width: 13px;
  height: 13px;
}

.frequency-row-delete:hover {
  border-color: rgba(255, 107, 107, 0.72);
  background: #fff;
}

.plan-edit-input {
  min-height: 34px;
  border-color: rgba(205, 215, 235, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #24304e;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.plan-edit-input:hover {
  border-color: rgba(79, 103, 242, 0.42);
  background: #fff;
}

.plan-edit-input:focus {
  outline: none;
  border-color: rgba(79, 103, 242, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.1);
}

#frequenciesView table {
  min-width: 1110px;
}

#frequenciesView .manufacturer-column {
  width: 124px;
  max-width: 124px;
}

#frequenciesView th:nth-child(4),
#frequenciesView td:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#frequenciesView .type-column {
  width: 58px;
  max-width: 58px;
}

#frequenciesView td.manufacturer-column,
#frequenciesView td.type-column {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#frequenciesView .manufacturer-column .sort-button,
#frequenciesView .type-column .sort-button {
  width: 100%;
  max-width: 100%;
}

.name-input {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
}

.frequency-input {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
}

.review-status-select {
  width: 84px;
  min-height: 32px;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 6px 20px 6px 8px;
  background-color: #fff;
  color: #687490;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.review-status-select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(79, 103, 242, 0.1);
}

.review-status-select.status-ok {
  color: #0f7b59;
  background-color: #e7f8ef;
}

.review-status-select.status-review {
  color: #b3660b;
  background-color: #fff1da;
}

.review-status-select.status-change {
  color: #c73636;
  background-color: #ffe9e9;
}

tbody tr:hover {
  background: #fbf6f0;
}

.empty-row td {
  color: var(--muted);
  text-align: center;
}

.empty-row:hover {
  background: transparent;
}

.deployment-list .deployment-row {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) 90px;
  align-items: center;
}

.deployment-list .deployment-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assign-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.deployment-list em {
  color: var(--amber);
  font-style: normal;
  font-size: 13px;
}

.deployment-list em.deployed {
  color: var(--green);
}

.summary-panel {
  display: grid;
  gap: 16px;
}

.summary-zone-groups {
  display: grid;
  gap: 16px;
}

.summary-zone-group {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(224, 231, 243, 0.88);
  border-left: 4px solid var(--zone-color);
  border-radius: 8px;
  padding: 12px;
  background: rgba(248, 251, 255, 0.64);
}

.summary-zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-zone-header h3,
.summary-zone-header p {
  margin: 0;
}

.summary-zone-header h3 {
  color: #24304e;
  font-size: 17px;
  font-weight: 880;
}

.summary-zone-header p {
  margin-top: 2px;
  color: #73809b;
  font-size: 12px;
  font-weight: 740;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.summary-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 231, 243, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(36, 52, 92, 0.04);
}

.summary-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(224, 231, 243, 0.72);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.94), rgba(247, 250, 255, 0.82));
}

.summary-pdf-button,
.summary-zone-pdf-button {
  margin-left: auto;
  min-height: 30px;
  padding: 6px 10px;
  border-color: rgba(205, 215, 235, 0.86);
  color: #3b4664;
  font-size: 12px;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.78);
}

.summary-pdf-button:hover,
.summary-zone-pdf-button:hover {
  border-color: rgba(79, 103, 242, 0.42);
  background: #fff;
}

.summary-zone-pdf-button {
  flex: 0 0 auto;
  color: #3154ea;
}

.summary-card-header h3,
.summary-card-header p {
  margin: 0;
}

.summary-card-header h3 {
  font-size: 16px;
  font-weight: 840;
}

.summary-card-header p {
  margin-top: 2px;
  color: #73809b;
  font-size: 12px;
  font-weight: 720;
}

.summary-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.78);
}

.summary-ok {
  color: #0f7b59;
}

.summary-review {
  color: #b3660b;
}

.summary-change {
  color: #c73636;
}

.summary-table-wrap {
  max-height: 430px;
  overflow: auto;
}

.summary-table {
  min-width: 680px;
  table-layout: fixed;
  color: #24304e;
}

.summary-table th:nth-child(1),
.summary-table td:nth-child(1) {
  width: 24%;
}

.summary-table th:nth-child(2),
.summary-table td:nth-child(2) {
  width: 24%;
  padding-right: 22px;
}

.summary-table th:nth-child(3),
.summary-table td:nth-child(3) {
  width: 34%;
  padding-left: 22px;
}

.summary-table th:nth-child(4),
.summary-table td:nth-child(4) {
  width: 18%;
}

.summary-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
}

.summary-table td {
  padding: 11px 12px;
  font-size: 12px;
}

.summary-table th,
.summary-table td {
  color: #24304e;
}

.assignment-summary {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.deploy-card {
  display: grid;
  position: sticky;
  top: 24px;
  align-self: start;
  align-content: start;
  gap: 12px;
  min-height: 320px;
}

.deploy-ring {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 16px solid #e6ebf5;
  border-radius: 50%;
  text-align: center;
}

.deploy-ring strong, .deploy-ring span {
  display: block;
}

.deploy-ring strong {
  font-size: 22px;
}

.deploy-ring span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spectrum-layout, .devices-layout, .deployment-layout { grid-template-columns: 1fr; }
  .spectrum-layout { grid-template-rows: auto; height: auto; }
  .spectrum-layout.scans-collapsed { grid-template-columns: 1fr; gap: 16px; }
  .spectrum-layout.capture-collapsed { grid-template-columns: 1fr; grid-template-rows: 42px auto auto; }
  .spectrum-panel { height: auto; }
  .spectrum-side-column {
    grid-column: 1;
    grid-row: auto;
    height: min(620px, calc(100vh - 180px));
    max-height: 620px;
    min-height: 360px;
  }
  .spectrum-scan-toggle-rail {
    grid-column: 1;
    grid-row: auto;
    height: 34px;
    min-width: 0;
  }
  .spectrum-scan-toggle-rail::before {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
  }
  .spectrum-scan-toggle {
    width: 54px;
    height: 28px;
    min-height: 28px;
  }
  .threshold-hit-strip,
  .spectrum-frequency-strip {
    grid-column: 1;
    grid-row: auto;
  }
  .sdr-sweep-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sdr-sweep-controls button {
    grid-column: 1 / -1;
  }
  .equipment-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .equipment-library-grid label:nth-child(2) {
    grid-column: span 1;
  }
  .equipment-profile-preview {
    grid-template-columns: 1fr;
  }
  .equipment-profile-preview dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spectrum-layout.scans-collapsed .spectrum-side-column {
    display: none;
  }
  .spectrum-scans-panel .marker-list { max-height: none; }
  .toolbar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  body {
    overflow: auto;
  }

  .app-shell { grid-template-columns: 1fr; }
  .app-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
  }
  .sidebar-scroll {
    height: auto;
    overflow: visible;
  }
  .sidebar-toggle {
    display: none;
  }
  .workspace {
    padding: 18px;
    overflow: visible;
  }
  .topbar, .topbar-actions { align-items: stretch; flex-direction: column; }
  .search-wrap { min-width: 0; }
  .metrics-grid, .toolbar-row { grid-template-columns: 1fr; }
  .equipment-library-grid { grid-template-columns: 1fr; }
  .equipment-profile-preview dl { display: grid; grid-template-columns: 1fr; }
  .sdr-sweep-controls { grid-template-columns: 1fr; }
  .sdr-sweep-controls button { grid-column: auto; }
  .device-row { grid-template-columns: 1fr; }
}

/* Visual refresh inspired by the product mockup */
:root {
  --ink: #101735;
  --muted: #66718e;
  --line: rgba(205, 215, 235, 0.72);
  --panel: rgba(255, 255, 255, 0.86);
  --wash: #f5f8fd;
  --sidebar: rgba(238, 243, 251, 0.82);
  --blue: #4f67f2;
  --green: #32b67a;
  --amber: #f3a33b;
  --red: #ff6b6b;
  --shadow: 0 18px 44px rgba(31, 44, 84, 0.08);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(78, 112, 242, 0.12), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(51, 185, 135, 0.08), transparent 28%),
    linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
}

.app-shell {
  height: calc(100vh - 22px);
  min-height: 0;
  margin: 11px;
  border: 1px solid rgba(195, 206, 228, 0.75);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 24px 80px rgba(33, 48, 87, 0.14);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.88), rgba(231, 238, 249, 0.82));
  backdrop-filter: blur(18px);
}

.sidebar-scroll {
  padding: 22px 8px 16px;
}

.brand {
  gap: 7px;
  padding: 8px 7px 7px;
}

.brand-mark {
  width: 82px;
  height: 82px;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(79, 103, 242, 0.12);
}

.brand-name {
  font-size: 19px;
  letter-spacing: 0;
}

.brand-caption {
  font-size: 11px;
  color: #7b86a2;
}

.nav-list {
  gap: 9px;
}

.nav-item {
  min-height: 42px;
  border-radius: 11px;
  padding: 9px 8px;
  color: #1e2b4d;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.86);
  color: #3154ea;
  box-shadow: 0 12px 28px rgba(44, 63, 110, 0.08);
}

.sidebar-panel,
.user-card {
  border-color: rgba(218, 226, 241, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(36, 52, 92, 0.06);
}

.sidebar-panel {
  padding: 12px 10px;
}

.user-card {
  padding: 11px 10px;
}

.user-mail {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter {
  background: #e7edf8;
}

.meter span {
  background: linear-gradient(90deg, #5d70f5, #32b67a);
}

.workspace {
  padding: 24px 28px 20px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.topbar {
  margin-bottom: 18px;
}

.eyebrow {
  color: #66718e;
  text-transform: none;
  font-size: 15px;
  font-weight: 500;
}

h1 {
  font-size: 28px;
  font-weight: 760;
}

.search-wrap input,
input,
.assign-select {
  border-color: rgba(214, 222, 238, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 18px rgba(38, 54, 94, 0.035);
}

.search-wrap {
  min-width: 380px;
}

.icon-button,
button,
.file-button {
  border-color: rgba(214, 222, 238, 0.88);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(39, 54, 94, 0.04);
}

button.primary {
  border-color: #5a6df3;
  background: linear-gradient(180deg, #6d7df7, #4f67f2);
  box-shadow: 0 12px 24px rgba(79, 103, 242, 0.24);
}

button.active-tool {
  border-color: rgba(90, 109, 243, 0.75);
  color: #3154ea;
  background: rgba(232, 237, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(90, 109, 243, 0.12);
}

.metrics-grid {
  gap: 12px;
  margin-bottom: 12px;
}

.metric,
.panel {
  border-color: rgba(214, 222, 238, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metric {
  min-height: 54px;
  padding: 8px 12px;
}

.metric p {
  color: #34415f;
  font-size: 12px;
  margin-bottom: 3px;
}

.metric strong {
  font-size: 20px;
  font-weight: 760;
}

.metric > div > span {
  font-size: 11px;
  margin-top: 4px;
}

.metric-badge {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.metric-badge.green { color: #107455; background: linear-gradient(135deg, #dff8ee, #c5efd9); }
.metric-badge.blue { color: #3154ea; background: linear-gradient(135deg, #e7edff, #cbd8ff); }
.metric-badge.amber { color: #d87908; background: linear-gradient(135deg, #fff1da, #ffd9a7); }
.metric-badge.red { color: #dc3f3f; background: linear-gradient(135deg, #ffe8e8, #ffc9c9); }

.search-metric {
  padding: 8px;
}

.search-metric .search-wrap {
  width: 100%;
  min-width: 0;
}

.panel {
  padding: 20px;
}

.panel-header {
  margin-bottom: 16px;
}

.panel-header h2 {
  font-size: 18px;
  font-weight: 760;
}

.panel-header p {
  color: #7b86a2;
}

.spectrum-canvas {
  flex: 1 1 auto;
  min-height: 245px;
  border-color: rgba(224, 231, 243, 0.78);
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
}

.marker {
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(38, 54, 94, 0.08);
}

.toolbar-row {
  gap: 12px;
}

.device-row {
  border-color: rgba(222, 229, 242, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(36, 52, 92, 0.04);
}

.rack-thumb {
  border-radius: 7px;
}

.pill {
  border-radius: 8px;
}

.pill.online {
  color: #0f6f4f;
  background: #dff6ea;
}

.pill.offline {
  color: #7a5a14;
  background: #fff0c7;
}

.import-strip {
  border-color: rgba(222, 229, 242, 0.88);
  border-radius: 14px;
  background: rgba(251, 253, 255, 0.78);
}

.table-wrap {
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 15px;
  overflow: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead tr {
  background: linear-gradient(180deg, #fbfdff, #eef4fd);
}

th {
  background: transparent;
  color: #3b4664;
  padding: 12px 14px;
  line-height: 1.15;
}

td {
  color: #24304e;
}

th,
td {
  border-bottom-color: rgba(224, 231, 243, 0.72);
}

tbody tr:hover {
  background: #fff5eb;
}

.marker-list .scan-list-item,
.marker-list .empty-spectrum-scan,
.marker-list .scan-error {
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 13px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(36, 52, 92, 0.04);
}

.spectrum-scans-panel .scan-list-item {
  align-items: stretch;
}

.spectrum-scans-panel .scan-card-row,
.spectrum-scans-panel .scan-quick-controls {
  padding: 0;
  border-bottom: 0;
}

.spectrum-scans-panel .scan-meta {
  color: #73809b;
  font-size: 12px;
}

.spectrum-scans-panel,
.spectrum-zones-panel {
  padding: 10px;
  align-self: stretch;
  height: 100%;
  max-height: none;
}

.spectrum-scans-panel .panel-header,
.spectrum-zones-panel .panel-header {
  margin-bottom: 8px;
}

.spectrum-scans-panel .panel-header h2,
.spectrum-zones-panel .panel-header h2 {
  font-size: 16px;
}

.spectrum-scans-panel .panel-header p,
.spectrum-zones-panel .panel-header p {
  margin-top: 1px;
  font-size: 11px;
}

.spectrum-scans-panel .marker-list {
  gap: 7px;
  padding-right: 2px;
  overflow-y: auto;
}

.spectrum-scans-panel .marker-list .scan-list-item,
.spectrum-scans-panel .marker-list .empty-spectrum-scan,
.spectrum-scans-panel .marker-list .scan-error {
  border-radius: 10px;
  padding: 8px;
}

.spectrum-scans-panel .scan-list-item {
  gap: 6px;
  min-height: 96px;
}

.spectrum-scans-panel .scan-card-row {
  gap: 5px;
}

.spectrum-scans-panel .scan-title {
  gap: 6px;
  font-size: 13px;
}

.deployment-list .deployment-row {
  border-color: rgba(224, 231, 243, 0.78);
}

.deployment-list {
  gap: 12px;
}

.deployment-list .deployment-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px) minmax(78px, auto);
  gap: 16px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(224, 231, 243, 0.78);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 252, 255, 0.82));
  box-shadow: 0 10px 26px rgba(36, 52, 92, 0.045);
}

.deployment-list .deployment-row:hover {
  border-color: rgba(155, 174, 240, 0.62);
  box-shadow: 0 14px 32px rgba(36, 52, 92, 0.07);
}

.deployment-list .deployment-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}

.deployment-list .deployment-row strong {
  font-size: 14px;
  font-weight: 760;
  color: #182342;
}

.deployment-list .deployment-row span {
  color: #73809b;
  font-size: 12px;
  line-height: 1.35;
}

.assign-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 10px 42px 10px 14px;
  border: 1px solid rgba(204, 214, 236, 0.9);
  border-radius: 13px;
  color: #182342;
  font-size: 13px;
  font-weight: 650;
  background:
    linear-gradient(45deg, transparent 50%, #607094 50%) right 17px center / 7px 7px no-repeat,
    linear-gradient(135deg, #607094 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(38, 54, 94, 0.05);
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  max-width: 100%;
}

.assign-select:hover {
  border-color: rgba(124, 147, 238, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(38, 54, 94, 0.075);
}

.assign-select:focus {
  outline: 0;
  border-color: #5a6df3;
  box-shadow:
    0 0 0 4px rgba(90, 109, 243, 0.14),
    0 12px 28px rgba(79, 103, 242, 0.12);
}

.assign-select option {
  color: #182342;
  background: #ffffff;
}

.deployment-list em {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-width: 78px;
  min-height: 30px;
  border-radius: 9px;
  padding: 6px 10px;
  color: #9a681b;
  background: #fff3d7;
  font-weight: 740;
}

.deployment-list em.deployed {
  color: #0f6f4f;
  background: #dff6ea;
}

@media (max-width: 1320px) {
  .deployment-list .deployment-row {
    grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
  }

  .assign-select {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .deployment-list em {
    align-self: start;
  }
}

.deploy-ring {
  border-color: #e8edf7;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.95) 0 55%, transparent 56%),
    conic-gradient(#5a6df3 0deg, #e8edf7 0deg);
}

/* Soft depth refresh */
:root {
  --panel: rgba(255, 255, 255, 0.82);
  --wash: #f3f7fb;
  --line: rgba(201, 212, 232, 0.68);
  --soft-surface: rgba(255, 255, 255, 0.76);
  --soft-surface-strong: rgba(255, 255, 255, 0.94);
  --button-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 9px 16px rgba(33, 48, 87, 0.075), 0 1px 2px rgba(33, 48, 87, 0.08);
  --button-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 13px 24px rgba(33, 48, 87, 0.11), 0 2px 4px rgba(33, 48, 87, 0.08);
  --button-shadow-pressed: inset 0 2px 5px rgba(33, 48, 87, 0.13), 0 3px 8px rgba(33, 48, 87, 0.06);
  --panel-shadow: 0 18px 44px rgba(31, 44, 84, 0.095), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body {
  background:
    linear-gradient(135deg, #f7fbff 0%, #eef7f4 46%, #fbf1e8 100%);
}

.app-shell {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(239, 246, 252, 0.54));
  box-shadow:
    0 28px 86px rgba(27, 43, 80, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sidebar {
  border-right-color: rgba(201, 212, 232, 0.58);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.86), rgba(232, 241, 247, 0.76));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.panel,
.metric,
.sidebar-panel,
.user-card,
.device-row,
.import-strip,
.summary-zone-group,
.marker-list .scan-list-item,
.marker-list .empty-spectrum-scan,
.marker-list .scan-error,
.deployment-list .deployment-row,
.deploy-assignment-popover,
.tv-channel-panel,
.spectrum-zone-item {
  border-color: rgba(214, 224, 239, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 252, 255, 0.72));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--panel-shadow);
}

.spectrum-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 255, 0.76));
}

button,
.file-button,
.icon-button,
.assign-select {
  border-color: rgba(204, 216, 236, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 252, 0.92));
  box-shadow: var(--button-shadow);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

button:hover,
.file-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 147, 238, 0.54);
  background:
    linear-gradient(180deg, #ffffff, rgba(246, 250, 255, 0.96));
  box-shadow: var(--button-shadow-hover);
}

button:active,
.file-button:active,
.icon-button:active {
  transform: translateY(1px);
  box-shadow: var(--button-shadow-pressed);
}

button:disabled,
button:disabled:hover,
.icon-button:disabled {
  transform: none;
  border-color: rgba(214, 222, 238, 0.82);
  background: rgba(248, 251, 255, 0.78);
  box-shadow: none;
}

.sidebar-toggle:hover,
.sidebar-toggle:active {
  transform: translateY(-50%);
}

.spectrum-scan-toggle:hover,
.spectrum-scan-toggle:active {
  transform: translate(-50%, -50%);
}

button.primary,
.deploy-popover-actions .deploy-confirm-button {
  border-color: rgba(89, 110, 240, 0.78);
  background:
    linear-gradient(180deg, #8290ff 0%, #5269f2 52%, #445ce0 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 16px 28px rgba(79, 103, 242, 0.28),
    0 4px 8px rgba(38, 54, 132, 0.12);
}

button.primary:hover,
.deploy-popover-actions .deploy-confirm-button:hover {
  border-color: rgba(89, 110, 240, 0.92);
  background:
    linear-gradient(180deg, #8c99ff 0%, #5e74f4 52%, #4d64e7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 20px 34px rgba(79, 103, 242, 0.34),
    0 5px 10px rgba(38, 54, 132, 0.13);
}

button.active-tool,
.nav-item.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(233, 239, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(79, 103, 242, 0.13);
}

.spectrum-analyze-button,
.spectrum-calculate-button,
.spectrum-deploy-button,
.spectrum-lock-action,
.spectrum-tool-button,
.summary-pdf-button,
.summary-zone-pdf-button,
.shure-discovery-controls button,
.shure-discovery-actions button,
.device-inline-footer button,
.project-actions button {
  box-shadow: var(--button-shadow);
}

.spectrum-analyze-button:hover,
.spectrum-calculate-button:hover,
.spectrum-deploy-button:hover,
.spectrum-lock-action:hover,
.spectrum-tool-button:hover,
.summary-pdf-button:hover,
.summary-zone-pdf-button:hover,
.shure-discovery-controls button:hover,
.shure-discovery-actions button:hover,
.device-inline-footer button:hover,
.project-actions button:hover {
  transform: translateY(-1px);
  box-shadow: var(--button-shadow-hover);
}

.spectrum-canvas,
.table-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 30px rgba(31, 44, 84, 0.055);
}

.spectrum-frequency-row,
.threshold-hit-row,
.deploy-frequency-card,
.deploy-device-card,
.spectrum-zone-item {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 7px 16px rgba(31, 44, 84, 0.045);
}

.spectrum-frequency-row:hover,
.threshold-hit-row:hover,
.deploy-frequency-card:hover,
.deploy-device-card:hover,
.spectrum-zone-item:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 11px 22px rgba(31, 44, 84, 0.075);
}

input:focus,
.assign-select:focus {
  border-color: rgba(90, 109, 243, 0.74);
  box-shadow:
    0 0 0 4px rgba(90, 109, 243, 0.12),
    0 10px 22px rgba(38, 54, 94, 0.07);
}

@media (max-width: 780px) {
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
  }
  .sidebar-scroll {
    height: auto;
    overflow: visible;
  }

  .workspace {
    padding: 18px;
    overflow: visible;
  }

  .deployment-list .deployment-row {
    grid-template-columns: 1fr;
  }

  .deployment-list em {
    justify-self: start;
  }

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

  .deploy-assignment-overlay {
    align-items: stretch;
    padding: 14px;
  }

  .deploy-assignment-popover {
    width: 100%;
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }

  .deploy-popover-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .deploy-popover-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .deploy-assignment-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
    overflow: hidden;
  }

  .deploy-devices-column {
    border-right: 0;
    border-bottom: 1px solid rgba(224, 231, 243, 0.82);
  }

  .deploy-device-list,
  .deploy-frequency-list {
    max-height: none;
  }
}

body.dark-mode {
  color-scheme: dark;
  --ink: #edf3ff;
  --muted: #9eadc8;
  --line: rgba(104, 123, 158, 0.34);
  --panel: rgba(20, 28, 47, 0.84);
  --wash: #101727;
  --sidebar: rgba(15, 23, 39, 0.88);
  --blue: #8ea0ff;
  --green: #5bd59d;
  --amber: #ffc46f;
  --red: #ff8585;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
  --soft-surface: rgba(24, 34, 56, 0.78);
  --soft-surface-strong: rgba(31, 43, 70, 0.94);
  --button-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 22px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(255, 255, 255, 0.05);
  --button-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 30px rgba(0, 0, 0, 0.34), 0 2px 5px rgba(255, 255, 255, 0.05);
  --button-shadow-pressed: inset 0 2px 8px rgba(0, 0, 0, 0.42), 0 4px 10px rgba(0, 0, 0, 0.18);
  --panel-shadow: 0 24px 66px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 213, 157, 0.13), transparent 28%),
    linear-gradient(135deg, #0d1322 0%, #111a2d 48%, #1f1a24 100%);
}

body.dark-mode .app-shell {
  border-color: rgba(142, 160, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(23, 32, 53, 0.88), rgba(12, 18, 31, 0.86));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .sidebar {
  border-right-color: rgba(113, 132, 168, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 29, 49, 0.95), rgba(12, 19, 33, 0.93));
}

body.dark-mode .panel,
body.dark-mode .metric,
body.dark-mode .sidebar-panel,
body.dark-mode .user-card,
body.dark-mode .device-row,
body.dark-mode .import-strip,
body.dark-mode .summary-zone-group,
body.dark-mode .marker-list .scan-list-item,
body.dark-mode .marker-list .empty-spectrum-scan,
body.dark-mode .marker-list .scan-error,
body.dark-mode .deployment-list .deployment-row,
body.dark-mode .deploy-assignment-popover,
body.dark-mode .tv-channel-panel,
body.dark-mode .spectrum-zone-item,
body.dark-mode .spectrum-frequency-row,
body.dark-mode .threshold-hit-row,
body.dark-mode .deploy-frequency-card,
body.dark-mode .deploy-device-card,
body.dark-mode .table-wrap {
  border-color: rgba(108, 128, 164, 0.26);
  background:
    linear-gradient(180deg, rgba(31, 42, 68, 0.88), rgba(17, 25, 43, 0.82));
  box-shadow: var(--panel-shadow);
}

body.dark-mode .agent-downloads a {
  border-color: rgba(127, 146, 185, 0.36);
  color: rgba(232, 238, 249, 0.9);
  background: linear-gradient(180deg, rgba(46, 62, 98, 0.92), rgba(32, 43, 71, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 16px rgba(0, 0, 0, 0.18);
}

body.dark-mode .agent-downloads a:hover {
  border-color: rgba(83, 110, 244, 0.62);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(54, 73, 116, 0.96), rgba(36, 49, 82, 0.96));
}

body.dark-mode .spectrum-panel,
body.dark-mode .spectrum-zones-panel {
  background:
    linear-gradient(180deg, rgba(26, 37, 61, 0.9), rgba(13, 20, 35, 0.86));
}

body.dark-mode .brand-name,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode strong,
body.dark-mode td,
body.dark-mode .nav-item,
body.dark-mode .deployment-list .deployment-row strong,
body.dark-mode .summary-zone-header h3,
body.dark-mode .spectrum-zone-item strong,
body.dark-mode .spectrum-frequency-input,
body.dark-mode .assign-select {
  color: #edf3ff;
}

body.dark-mode .brand-caption,
body.dark-mode .eyebrow,
body.dark-mode .panel-header p,
body.dark-mode .metric p,
body.dark-mode .metric > div > span,
body.dark-mode .marker-list span,
body.dark-mode .assignment-stack span,
body.dark-mode .deployment-list span,
body.dark-mode .summary-zone-header p,
body.dark-mode .spectrum-zone-item span,
body.dark-mode .spectrum-zone-item em,
body.dark-mode .scan-meta,
body.dark-mode .frequency-rating em {
  color: #9eadc8;
}

body.dark-mode button,
body.dark-mode .file-button,
body.dark-mode .icon-button,
body.dark-mode .assign-select,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  border-color: rgba(117, 138, 176, 0.34);
  color: #edf3ff;
  background:
    linear-gradient(180deg, rgba(45, 59, 92, 0.94), rgba(25, 35, 58, 0.94));
  box-shadow: var(--button-shadow);
}

body.dark-mode button:hover,
body.dark-mode .file-button:hover,
body.dark-mode .icon-button:hover {
  border-color: rgba(142, 160, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(59, 76, 116, 0.98), rgba(31, 43, 70, 0.96));
  box-shadow: var(--button-shadow-hover);
}

body.dark-mode button:disabled,
body.dark-mode button:disabled:hover,
body.dark-mode .icon-button:disabled {
  color: rgba(158, 173, 200, 0.55);
  border-color: rgba(117, 138, 176, 0.18);
  background: rgba(24, 34, 56, 0.54);
  box-shadow: none;
}

body.dark-mode button.primary,
body.dark-mode .deploy-popover-actions .deploy-confirm-button {
  border-color: rgba(91, 213, 157, 0.42);
  color: #071319;
  background:
    linear-gradient(180deg, #8bf5c0 0%, #5bd59d 52%, #2fb577 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 34px rgba(45, 181, 119, 0.22),
    0 5px 10px rgba(0, 0, 0, 0.28);
}

body.dark-mode button.active-tool,
body.dark-mode .nav-item.active,
body.dark-mode .dark-mode-card[aria-pressed="true"] {
  border-color: rgba(142, 160, 255, 0.34);
  color: #bfcaff;
  background:
    linear-gradient(180deg, rgba(47, 61, 98, 0.96), rgba(28, 39, 65, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 13px 28px rgba(0, 0, 0, 0.24);
}

body.dark-mode .metric-badge.green {
  color: #a7ffd0;
  background: linear-gradient(135deg, rgba(91, 213, 157, 0.26), rgba(28, 113, 80, 0.32));
}

body.dark-mode .metric-badge.blue {
  color: #c4ceff;
  background: linear-gradient(135deg, rgba(142, 160, 255, 0.26), rgba(77, 97, 187, 0.3));
}

body.dark-mode .metric-badge.amber {
  color: #ffd99b;
  background: linear-gradient(135deg, rgba(255, 196, 111, 0.28), rgba(126, 83, 26, 0.32));
}

body.dark-mode .metric-badge.red {
  color: #ffc4c4;
  background: linear-gradient(135deg, rgba(255, 133, 133, 0.26), rgba(141, 51, 65, 0.32));
}

body.dark-mode .dark-mode-switch {
  border-color: rgba(91, 213, 157, 0.42);
  background: linear-gradient(180deg, #243151, #11182b);
}

body.dark-mode .spectrum-canvas,
body.dark-mode .table-wrap {
  border-color: rgba(108, 128, 164, 0.24);
  background: #11182b;
}

body.dark-mode th {
  color: #dce6fb;
  background: linear-gradient(180deg, rgba(41, 54, 85, 0.96), rgba(25, 35, 58, 0.96));
}

body.dark-mode th,
body.dark-mode td {
  border-bottom-color: rgba(108, 128, 164, 0.2);
}

body.dark-mode tbody tr:hover {
  background: rgba(255, 196, 111, 0.08);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: rgba(158, 173, 200, 0.62);
}

body.dark-mode .spectrum-range-pill {
  border-color: rgba(91, 213, 157, 0.22);
  color: #dfffee;
  background: linear-gradient(90deg, rgba(142, 160, 255, 0.2), rgba(91, 213, 157, 0.18));
}

body.dark-mode .spectrum-range-pill strong {
  color: #dfe6ff;
}

body.dark-mode .spectrum-range-pill em {
  color: #b8f5d5;
}

body.dark-mode .spectrum-zone-chip,
body.dark-mode .pill,
body.dark-mode .deployment-list em,
body.dark-mode .deploy-empty-state {
  color: #dce6fb;
  background: rgba(45, 59, 92, 0.74);
}

body.dark-mode .spectrum-remove-button,
body.dark-mode .icon-only.danger-icon,
body.dark-mode .deploy-frequency-card button {
  color: #ffb3b3;
  border-color: rgba(255, 133, 133, 0.34);
  background: rgba(87, 37, 48, 0.72);
}

body.dark-mode .tv-channel-panel select,
body.dark-mode .assign-select option {
  color: #edf3ff;
  background: #1a253d;
}

body.dark-mode .frequency-rating strong {
  color: #ffc46f;
}

body.dark-mode .spectrum-zone-links button.is-linked {
  border-color: rgba(91, 213, 157, 0.42);
  color: #b8f5d5;
  background: rgba(37, 83, 64, 0.68);
}

body.dark-mode .spectrum-zone-links button:not(.is-linked) {
  border-color: rgba(255, 133, 133, 0.28);
  color: #ffc4c4;
  background: rgba(87, 37, 48, 0.56);
}

body.dark-mode .user-card {
  background:
    linear-gradient(180deg, rgba(28, 39, 65, 0.94), rgba(17, 25, 43, 0.9));
}

body.dark-mode .user-name {
  color: #aebdd8;
}

body.dark-mode .user-mail {
  color: #c8d2ff;
}

body.dark-mode .spectrum-device-label {
  color: rgba(226, 235, 255, 0.92);
  opacity: 0.9;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.88),
    0 0 8px rgba(142, 160, 255, 0.28);
}

body.dark-mode .spectrum-plan-marker.focused-marker .spectrum-device-label {
  color: #ffd59a;
  opacity: 1;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 0 9px rgba(255, 196, 111, 0.28);
}

body.dark-mode #addSpectrumMarker.active-tool {
  border-color: rgba(91, 213, 157, 0.72);
  color: #06150f;
  background:
    linear-gradient(180deg, #9df9ca 0%, #5bd59d 58%, #32b67a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 4px rgba(91, 213, 157, 0.18),
    0 16px 32px rgba(45, 181, 119, 0.26);
}

body.dark-mode #addSpectrumMarker.active-tool:hover {
  border-color: rgba(139, 245, 192, 0.78);
  color: #06150f;
  background:
    linear-gradient(180deg, #b5ffd8 0%, #72e6ad 58%, #45c98a 100%);
}

body.dark-mode #toggleIntermodProducts.active-tool {
  border-color: rgba(255, 196, 111, 0.78);
  color: #180f04;
  background:
    linear-gradient(180deg, #ffe2aa 0%, #ffc46f 58%, #f3a33b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 4px rgba(255, 196, 111, 0.2),
    0 16px 32px rgba(243, 163, 59, 0.24);
}

body.dark-mode #toggleIntermodProducts.active-tool:hover {
  border-color: rgba(255, 213, 154, 0.84);
  color: #180f04;
  background:
    linear-gradient(180deg, #ffedc9 0%, #ffd08b 58%, #ffb75a 100%);
}

body.dark-mode .spectrum-manual-marker {
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 196, 111, 0.9);
  box-shadow:
    0 0 0 1px rgba(10, 18, 32, 0.86),
    0 0 14px rgba(255, 196, 111, 0.32);
}

body.dark-mode .spectrum-manual-marker::after {
  left: -4px;
  width: 10px;
  height: 10px;
  background: #ffc46f;
  box-shadow:
    0 0 0 3px rgba(10, 18, 32, 0.88),
    0 0 0 6px rgba(255, 196, 111, 0.18);
}

body.dark-mode .spectrum-marker-label {
  border-color: rgba(255, 196, 111, 0.38);
  color: #fff5dd;
  background: rgba(40, 31, 21, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

body.dark-mode .spectrum-marker-label button {
  color: #ffd59a;
  background: rgba(93, 64, 32, 0.72);
}

body.dark-mode .spectrum-marker-label button:hover {
  color: #ffffff;
  background: rgba(255, 133, 133, 0.58);
}

body.dark-mode .spectrum-hover-line.marker-line {
  background: rgba(91, 213, 157, 0.88);
  box-shadow:
    0 0 0 1px rgba(10, 18, 32, 0.82),
    0 0 16px rgba(91, 213, 157, 0.34);
}

body.dark-mode .spectrum-tooltip.marker-tooltip {
  border-color: rgba(91, 213, 157, 0.42);
  color: #edf3ff;
  background: rgba(18, 34, 45, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

body.dark-mode .spectrum-tooltip.marker-tooltip span {
  color: #8bf5c0;
}

body.dark-mode .manual-marker-control {
  border-color: rgba(117, 138, 176, 0.42);
  background:
    linear-gradient(180deg, rgba(45, 59, 92, 0.9), rgba(24, 34, 56, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 9px 18px rgba(0, 0, 0, 0.22);
}

body.dark-mode .manual-marker-control span {
  color: #aebdd8;
}

body.dark-mode .manual-marker-control input {
  min-height: 0;
  border: 0;
  padding: 0;
  color: #edf3ff;
  background: transparent;
  box-shadow: none;
}

body.dark-mode .sdr-sweep-drawer,
body.dark-mode .spectrum-frequency-strip,
body.dark-mode .threshold-hit-strip,
body.dark-mode .equipment-library,
body.dark-mode .equipment-profile-preview,
body.dark-mode .custom-profile-form,
body.dark-mode .summary-card,
body.dark-mode .deploy-device-dropzone,
body.dark-mode .deploy-device-assigned {
  border-color: rgba(108, 128, 164, 0.28);
  background:
    linear-gradient(180deg, rgba(29, 40, 66, 0.94), rgba(16, 24, 42, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

body.dark-mode .sdr-sweep-drawer summary,
body.dark-mode .spectrum-frequency-title strong,
body.dark-mode .equipment-library-header strong,
body.dark-mode .custom-profile-title strong,
body.dark-mode .equipment-profile-preview strong,
body.dark-mode .summary-card-header h3,
body.dark-mode .deploy-popover-header strong,
body.dark-mode .deploy-column-title strong,
body.dark-mode .deploy-device-top strong,
body.dark-mode .deploy-frequency-card strong,
body.dark-mode .threshold-hit-row span:first-child,
body.dark-mode .plan-edit-input,
body.dark-mode .review-status-select {
  color: #edf3ff;
}

body.dark-mode .spectrum-frequency-title span,
body.dark-mode .equipment-library-header span,
body.dark-mode .custom-profile-title span,
body.dark-mode .equipment-profile-preview span,
body.dark-mode .equipment-profile-preview dt,
body.dark-mode .summary-card-header p,
body.dark-mode .deploy-popover-header span,
body.dark-mode .deploy-column-title span,
body.dark-mode .deploy-device-top em,
body.dark-mode .deploy-frequency-card span,
body.dark-mode .deploy-frequency-card em,
body.dark-mode .deploy-empty-state span,
body.dark-mode .threshold-hit-row span,
body.dark-mode .empty-threshold-hit,
body.dark-mode .empty-spectrum-frequency,
body.dark-mode .spectrum-frequency-empty {
  color: #9eadc8;
}

body.dark-mode .spectrum-frequency-title,
body.dark-mode .threshold-hit-header,
body.dark-mode .summary-card-header,
body.dark-mode .deploy-popover-header,
body.dark-mode .deploy-column-title,
body.dark-mode .threshold-hit-head {
  border-color: rgba(108, 128, 164, 0.24);
  background:
    linear-gradient(180deg, rgba(35, 48, 78, 0.96), rgba(22, 32, 54, 0.94));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.dark-mode .threshold-hit-header strong {
  color: #edf3ff;
}

body.dark-mode .threshold-hit-header span {
  color: #aebdd8;
}

body.dark-mode .threshold-hit-head,
body.dark-mode .threshold-hit-head strong {
  color: #dce6fb;
}

body.dark-mode .threshold-hit-row {
  color: #dce6fb;
  border-bottom-color: rgba(108, 128, 164, 0.22);
  background: rgba(20, 29, 49, 0.46);
}

body.dark-mode .threshold-hit-row:hover {
  background: rgba(255, 196, 111, 0.08);
}

body.dark-mode .threshold-hit-row.is-tv-exclusion {
  background: rgba(87, 37, 48, 0.48);
}

body.dark-mode .threshold-hit-row.is-tv-exclusion:hover {
  background: rgba(109, 43, 56, 0.58);
}

body.dark-mode .summary-table {
  color: #dce6fb;
}

body.dark-mode .summary-table-wrap,
body.dark-mode .summary-table tbody,
body.dark-mode .summary-card table,
body.dark-mode .summary-card td,
body.dark-mode .summary-card .empty-row td {
  background: rgba(16, 24, 42, 0.34);
}

body.dark-mode .summary-dot {
  box-shadow: 0 0 0 5px rgba(17, 25, 43, 0.96);
}

body.dark-mode .summary-ok {
  color: #5bd59d;
}

body.dark-mode .summary-review {
  color: #ffc46f;
}

body.dark-mode .summary-change {
  color: #ff8585;
}

body.dark-mode .equipment-library-search {
  border-color: rgba(108, 128, 164, 0.34);
  background: rgba(13, 20, 35, 0.58);
}

body.dark-mode .equipment-library-grid label span,
body.dark-mode .custom-profile-grid label span {
  color: #aebdd8;
}

body.dark-mode .equipment-profile-preview dl div {
  border-color: rgba(108, 128, 164, 0.24);
  background: rgba(13, 20, 35, 0.34);
}

body.dark-mode .equipment-profile-preview dd {
  color: #edf3ff;
}

body.dark-mode .spectrum-frequency-header {
  color: #dce6fb;
  background:
    linear-gradient(180deg, rgba(43, 57, 91, 0.98), rgba(26, 37, 61, 0.98));
}

body.dark-mode .spectrum-frequency-header span,
body.dark-mode .spectrum-frequency-header strong {
  color: #dce6fb;
}

body.dark-mode .spectrum-frequency-row {
  color: #dce6fb;
  background:
    linear-gradient(180deg, rgba(43, 55, 86, 0.78), rgba(28, 39, 64, 0.78));
}

body.dark-mode .spectrum-frequency-row span {
  color: #aebdd8;
}

body.dark-mode .spectrum-frequency-row:hover {
  background:
    linear-gradient(180deg, rgba(52, 66, 101, 0.86), rgba(33, 46, 75, 0.86));
}

body.dark-mode .spectrum-frequency-input,
body.dark-mode .plan-edit-input,
body.dark-mode .review-status-select,
body.dark-mode .equipment-library-grid select,
body.dark-mode .equipment-library-grid input,
body.dark-mode .custom-profile-grid select,
body.dark-mode .custom-profile-grid input,
body.dark-mode .sdr-sweep-controls input {
  border-color: rgba(117, 138, 176, 0.34);
  color: #edf3ff;
  background:
    linear-gradient(180deg, rgba(45, 59, 92, 0.94), rgba(24, 34, 56, 0.94));
}

body.dark-mode .spectrum-threshold-mode {
  border-color: rgba(117, 138, 176, 0.32);
  color: #dce6fb;
  background:
    linear-gradient(180deg, rgba(45, 59, 92, 0.72), rgba(24, 34, 56, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

body.dark-mode .spectrum-threshold-mode input {
  border-color: rgba(142, 160, 255, 0.42);
  background: rgba(13, 20, 35, 0.74);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

body.dark-mode .spectrum-threshold-mode input:checked {
  border-color: rgba(91, 213, 157, 0.66);
  background:
    linear-gradient(180deg, #7ae8b2, #32b67a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 7px 14px rgba(45, 181, 119, 0.18);
}

body.dark-mode .spectrum-analyze-button,
body.dark-mode .spectrum-calculate-button,
body.dark-mode .spectrum-deploy-button,
body.dark-mode .spectrum-lock-action,
body.dark-mode .spectrum-sort-button,
body.dark-mode .summary-pdf-button,
body.dark-mode .summary-zone-pdf-button,
body.dark-mode .deploy-popover-actions button {
  color: #dce6fb;
  border-color: rgba(117, 138, 176, 0.38);
  background:
    linear-gradient(180deg, rgba(50, 64, 98, 0.94), rgba(29, 40, 66, 0.94));
}

body.dark-mode .spectrum-analyze-button:disabled,
body.dark-mode .spectrum-calculate-button:disabled,
body.dark-mode .spectrum-deploy-button:disabled,
body.dark-mode .spectrum-lock-action:disabled,
body.dark-mode .spectrum-remove-button:disabled {
  color: rgba(174, 189, 216, 0.5);
  border-color: rgba(117, 138, 176, 0.2);
  background: rgba(58, 69, 91, 0.38);
}

body.dark-mode .deploy-device-dropzone.has-assignment {
  border-color: rgba(142, 160, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(39, 52, 83, 0.96), rgba(23, 34, 56, 0.94));
}

body.dark-mode .deploy-device-dropzone.is-over,
body.dark-mode .deploy-device-dropzone.is-compatible-target {
  border-color: rgba(91, 213, 157, 0.46);
}

body.dark-mode .deploy-device-assigned > span {
  color: #9eadc8;
}

.spectrum-frequency-header .spectrum-sort-button,
th .sort-button {
  -webkit-appearance: none;
  appearance: none;
  min-height: 22px;
  border: 0;
  border-radius: 0;
  padding: 0 6px;
  background: transparent;
  box-shadow: none;
  line-height: 1.1;
  transform: none;
}

.spectrum-frequency-header .spectrum-sort-button:hover,
th .sort-button:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.dark-mode .spectrum-frequency-header .spectrum-sort-button,
body.dark-mode th .sort-button {
  border: 0;
  color: #dce6fb;
  background: transparent;
  box-shadow: none;
}

body.dark-mode .spectrum-frequency-header .spectrum-sort-button:hover,
body.dark-mode th .sort-button:hover {
  color: #c8d2ff;
  background: transparent;
  box-shadow: none;
}

body.dark-mode .spectrum-frequency-header,
body.dark-mode th {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

body.dark-mode thead tr {
  background:
    linear-gradient(180deg, rgba(43, 57, 91, 0.98), rgba(24, 35, 58, 0.98));
}

body.dark-mode th {
  background: transparent;
}

body.dark-mode .equipment-library-search {
  border-color: rgba(108, 128, 164, 0.34);
  background: rgba(13, 20, 35, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

body.dark-mode .equipment-library-search input,
body.dark-mode .equipment-library-search input:hover,
body.dark-mode .equipment-library-search input:focus {
  -webkit-appearance: none;
  appearance: none;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #edf3ff;
  background: transparent;
  box-shadow: none;
}

body.dark-mode .equipment-library-search input::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.72);
}

body.dark-mode .spectrum-zone-menu {
  border-color: rgba(108, 128, 164, 0.38);
  background:
    linear-gradient(180deg, rgba(32, 44, 72, 0.98), rgba(18, 27, 47, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 46px rgba(0, 0, 0, 0.34);
}

body.dark-mode .spectrum-zone-menu strong {
  color: #edf3ff;
}

body.dark-mode .spectrum-zone-menu > span {
  color: #9eadc8;
}

body.dark-mode .spectrum-zone-menu button {
  border-color: transparent;
  color: #dce6fb;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.dark-mode .spectrum-zone-menu button:hover,
body.dark-mode .spectrum-zone-menu button.is-active {
  border-color: rgba(142, 160, 255, 0.28);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(70, 87, 132, 0.92), rgba(42, 55, 88, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

body.dark-mode #devicesView .panel {
  border-color: rgba(108, 128, 164, 0.28);
  background:
    linear-gradient(180deg, rgba(29, 40, 66, 0.94), rgba(15, 23, 40, 0.9));
}

body.dark-mode #devicesView .panel-header h2 {
  color: #edf3ff;
}

body.dark-mode #devicesView .panel-header p {
  color: #aebdd8;
}

body.dark-mode .audio-technica-panel {
  border-top-color: rgba(108, 128, 164, 0.28);
}

body.dark-mode .shure-discovery-empty,
body.dark-mode .shure-discovery-note,
body.dark-mode .shure-device-list-card {
  border-color: rgba(108, 128, 164, 0.3);
  color: #aebdd8;
  background:
    linear-gradient(180deg, rgba(37, 49, 76, 0.88), rgba(22, 31, 51, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

body.dark-mode .shure-device-list-card.selected {
  border-color: rgba(142, 160, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 4px rgba(142, 160, 255, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.22);
}

body.dark-mode .device-wide-header {
  border-bottom-color: rgba(108, 128, 164, 0.24);
}

body.dark-mode .shure-discovery-note strong,
body.dark-mode .shure-discovery-item strong,
body.dark-mode .shure-device-list-top strong,
body.dark-mode .shure-device-metrics strong,
body.dark-mode .device-channel-row strong,
body.dark-mode .shure-device-channel-mini strong {
  color: #edf3ff;
}

body.dark-mode .shure-discovery-note span,
body.dark-mode .shure-discovery-item span,
body.dark-mode .shure-device-list-top span,
body.dark-mode .shure-device-metrics span,
body.dark-mode .device-channel-row span,
body.dark-mode .frequency-control-cell span,
body.dark-mode .shure-device-channel-mini span,
body.dark-mode .shure-device-channel-mini small,
body.dark-mode .shure-mini-empty {
  color: #9eadc8;
}

body.dark-mode .shure-device-list-top em,
body.dark-mode .audio-technica-device-card .shure-device-list-top em,
body.dark-mode .device-inline-status {
  color: #072018;
  background:
    linear-gradient(180deg, rgba(184, 255, 218, 0.98), rgba(91, 213, 157, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 14px rgba(45, 181, 119, 0.18);
}

body.dark-mode .device-inline-status[data-tone="working"] {
  color: #10163c;
  background:
    linear-gradient(180deg, rgba(207, 216, 255, 0.98), rgba(142, 160, 255, 0.92));
}

body.dark-mode .device-inline-status[data-tone="warning"] {
  color: #231706;
  background:
    linear-gradient(180deg, rgba(255, 226, 172, 0.98), rgba(255, 196, 111, 0.92));
}

body.dark-mode .device-inline-status[data-tone="error"] {
  color: #2b0507;
  background:
    linear-gradient(180deg, rgba(255, 198, 198, 0.98), rgba(255, 133, 133, 0.92));
}

body.dark-mode .shure-device-metrics div,
body.dark-mode .shure-device-channel-mini div,
body.dark-mode .shure-mini-empty {
  border-color: rgba(108, 128, 164, 0.24);
  background: rgba(13, 20, 35, 0.42);
}

body.dark-mode .device-channel-list {
  border-color: rgba(108, 128, 164, 0.28);
  background: rgba(11, 18, 32, 0.4);
}

body.dark-mode .device-channel-head {
  color: #dce6fb;
  background:
    linear-gradient(180deg, rgba(43, 57, 91, 0.96), rgba(26, 37, 61, 0.96));
}

body.dark-mode .device-channel-head span {
  color: #dce6fb;
}

body.dark-mode .device-channel-row {
  border-bottom-color: rgba(108, 128, 164, 0.22);
}

body.dark-mode .device-channel-row:not(.device-channel-head) {
  background: rgba(18, 27, 47, 0.34);
}

body.dark-mode .device-control-input {
  border-color: rgba(117, 138, 176, 0.34);
  color: #edf3ff;
  background:
    linear-gradient(180deg, rgba(45, 59, 92, 0.92), rgba(24, 34, 56, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.14);
}

body.dark-mode .device-control-input:hover,
body.dark-mode .device-control-input:focus {
  border-color: rgba(142, 160, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(54, 70, 108, 0.96), rgba(31, 43, 70, 0.94));
}

body.dark-mode .device-control-input:focus {
  box-shadow:
    0 0 0 4px rgba(142, 160, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

body.dark-mode .device-spectrum-button {
  border-color: rgba(142, 160, 255, 0.34);
  color: #dce6fb;
  background:
    linear-gradient(180deg, rgba(50, 64, 98, 0.94), rgba(29, 40, 66, 0.94));
}

body.dark-mode .device-spectrum-button:hover {
  border-color: rgba(142, 160, 255, 0.5);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(59, 76, 116, 0.98), rgba(38, 51, 82, 0.96));
}

body.dark-mode .device-spectrum-button.is-added {
  border-color: rgba(91, 213, 157, 0.5);
  color: #b8ffd9;
  background: rgba(37, 83, 64, 0.72);
}

body.dark-mode .device-spectrum-button.is-partial {
  border-color: rgba(255, 196, 111, 0.48);
  color: #ffd59a;
  background: rgba(93, 64, 32, 0.72);
}
