:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --ink: #17201c;
  --muted: #617169;
  --line: #d8e0dc;
  --panel: #ffffff;
  --camera: #2563eb;
  --sound: #c026d3;
  --lighting: #d97706;
  --video: #0891b2;
  --network: #16a34a;
  --focus: #dc2626;
  --conflict: #b91c1c;
  --shadow: 0 12px 32px rgba(23, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  min-height: 42px;
  padding: 0 14px;
}

button.secondary {
  background: #eef3f0;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hidden {
  display: none !important;
}

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

.topbar,
.controls-bar,
.workspace,
.device-section {
  margin-bottom: 18px;
}

.section-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 18px;
}

.section-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef3f0;
  color: var(--ink);
  padding: 0 16px;
}

.section-tab.active {
  background: var(--ink);
  color: #fff;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.95;
  margin-bottom: 0;
}

h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-strip div {
  border-left: 1px solid var(--line);
  padding: 14px 16px;
}

.status-strip div:first-child {
  border-left: 0;
}

.status-strip span {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
}

.status-strip small {
  color: var(--muted);
}

.controls-bar,
.spectrum-panel,
.side-panel,
.device-section,
.catalog-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scope-location-field {
  min-width: 220px;
}

.display-name-field {
  min-width: 180px;
}

.active-view-save {
  align-self: end;
}

.workspace-gate {
  margin-bottom: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.workspace-gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.workspace-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 14px;
}

.workspace-card h3 {
  margin: 0;
  font-size: 1rem;
}

.workspace-card p {
  margin: 0;
}

.workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.workspace-required .controls-bar,
body.workspace-required .workspace,
body.workspace-required .device-section,
body.workspace-required .locations-section,
body.workspace-required .catalog-section,
body.workspace-required .admin-section.hidden {
  display: none;
}

.admin-section {
  margin-bottom: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: start;
}

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

.admin-workspace-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.admin-workspace-meta {
  display: grid;
  gap: 3px;
}

.admin-workspace-meta span,
.admin-workspace-meta small {
  color: var(--muted);
}

.admin-edit-fields {
  display: grid;
  gap: 8px;
}

.locations-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.config-panel {
  min-width: 0;
}

.config-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 12px;
  margin-bottom: 12px;
}

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

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.config-row-main {
  display: grid;
  gap: 2px;
}

.config-row-main strong {
  font-size: 0.95rem;
}

.config-row-main span {
  color: var(--muted);
  font-size: 0.8rem;
}

.config-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 28, 0.16);
}

.locations-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.location-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 10px;
}

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

.location-card {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
}

.location-card.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.location-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.location-card-actions button {
  min-height: 30px;
  padding: 0 10px;
}

.location-card span,
.location-card small {
  color: var(--muted);
}

.location-board-panel {
  min-width: 0;
}

.location-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-bottom: 16px;
}

.controls-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  min-height: 40px;
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

.toggle-row {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-top: 21px;
  text-transform: none;
}

.toggle-row input {
  width: auto;
  min-height: auto;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.spectrum-panel,
.side-panel,
.device-section,
.catalog-section {
  padding: 16px;
}

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

.panel-heading p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.spectrum-board {
  display: grid;
  gap: 16px;
}

.band-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
}

.band-title strong {
  display: block;
}

.band-title small {
  color: var(--muted);
}

.band-track {
  display: grid;
  gap: 8px;
  padding: 12px;
  background-image: linear-gradient(90deg, rgba(23, 32, 28, 0.08) 1px, transparent 1px);
  background-size: 10% 100%;
}

.spectrum-graph {
  position: relative;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 32, 28, 0.1) 1px, transparent 1px),
    #f4f7f5;
  background-size: 10% 100%, auto;
  overflow: hidden;
}

.dfs-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--left);
  width: var(--width);
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(220, 38, 38, 0.14) 0,
      rgba(220, 38, 38, 0.14) 12px,
      rgba(220, 38, 38, 0.08) 12px,
      rgba(220, 38, 38, 0.08) 24px
    ),
    rgba(220, 38, 38, 0.08);
  border-left: 1px solid rgba(220, 38, 38, 0.25);
  border-right: 1px solid rgba(220, 38, 38, 0.25);
}

.axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--muted);
  font-size: 0.7rem;
}

.axis span:nth-child(n + 2) {
  text-align: center;
}

.axis span:last-child {
  text-align: right;
}

.spectrum-device-bar {
  position: absolute;
  top: 18px;
  left: var(--left);
  width: max(var(--width), 16px);
  z-index: 2;
  min-height: 50px;
  border-radius: 6px;
  background: var(--dept-color);
  color: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(23, 32, 28, 0.16);
  cursor: pointer;
  opacity: 0.84;
  transition:
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.spectrum-device-bar.conflict {
  outline: 3px solid rgba(185, 28, 28, 0.35);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.18) 7px,
    transparent 7px,
    transparent 14px
  );
}

.spectrum-device-bar.highlighted,
.spectrum-device-bar:hover {
  z-index: 4;
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(23, 32, 28, 0.24);
}

.spectrum-device-bar.inactive {
  opacity: 0.38;
  filter: saturate(0.75);
  box-shadow: none;
}

.band-device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.band-device-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 9px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.band-device-row.conflict {
  border-color: rgba(185, 28, 28, 0.45);
  background: #fff7f7;
}

.band-device-row.highlighted,
.band-device-row:hover {
  border-color: var(--dept-color);
  box-shadow: 0 10px 22px rgba(23, 32, 28, 0.12);
  transform: translateY(-1px);
}

.band-device-row.inactive {
  opacity: 0.45;
}

.band-device-main,
.band-device-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.band-device-main strong {
  font-size: 0.95rem;
}

.band-device-main span:not(.pill),
.band-device-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.band-device-meta span {
  border-right: 1px solid var(--line);
  padding-right: 7px;
}

.band-device-meta span:last-child {
  border-right: 0;
  padding-right: 0;
}

.band-device-row p {
  color: var(--ink);
  font-size: 0.82rem;
  margin: 0;
}

.band-device-row em {
  color: var(--conflict);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.assignment-form {
  display: grid;
  gap: 12px;
}

.assignment-form button {
  margin-top: 2px;
}

.channel-preview {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 10px;
}

.channel-preview strong {
  font-size: 0.82rem;
}

.channel-preview span {
  color: var(--muted);
  font-size: 0.8rem;
}

.form-error {
  min-height: 1.25rem;
  color: var(--conflict);
  font-size: 0.92rem;
  font-weight: 700;
}

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-picker.compact {
  gap: 5px;
}

.color-swatch {
  width: 34px;
  min-height: 34px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 28, 0.12);
  padding: 0;
}

.color-picker.compact .color-swatch {
  width: 26px;
  min-height: 26px;
  border-radius: 5px;
}

.color-swatch.selected {
  border-color: var(--ink);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--swatch-color);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  justify-items: center;
  background: rgba(23, 32, 28, 0.42);
  padding: 22px;
}

.modal-window {
  width: min(840px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 26px 70px rgba(23, 32, 28, 0.24);
  padding: 16px;
}

.modal-heading,
.band-editor-heading,
.modal-actions {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.modal-heading {
  margin-bottom: 16px;
}

.modal-heading p,
.band-editor-heading p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.device-form {
  display: grid;
  gap: 14px;
}

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

.band-editor {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 12px;
}

.band-editor h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.device-band-rows {
  display: grid;
  gap: 8px;
}

.device-band-rows.needs-attention {
  outline: 3px solid rgba(185, 28, 28, 0.22);
  outline-offset: 4px;
  border-radius: 8px;
}

.device-band-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr auto;
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.device-band-row button {
  min-height: 40px;
}

.modal-actions {
  justify-content: end;
  padding-top: 2px;
}

.save-modal-window {
  width: min(620px, 100%);
}

.compact-modal-window {
  width: min(560px, 100%);
}

.popup-form,
.delete-modal-body {
  display: grid;
  gap: 14px;
}

.save-active-view-form {
  display: grid;
  gap: 14px;
}

.save-mode-options {
  display: grid;
  gap: 8px;
}

.save-mode-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-transform: none;
}

.save-mode-card.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #fff;
}

.save-mode-card input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.save-mode-card strong,
.save-mode-card small {
  display: block;
}

.save-mode-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 3px;
}

.save-mode-fields {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.overwrite-warning {
  margin: 0;
  color: var(--conflict);
  font-size: 0.86rem;
  font-weight: 700;
}

.danger-button {
  background: var(--conflict);
}

.device-table {
  display: grid;
  gap: 8px;
}

.catalog-table {
  display: grid;
  gap: 10px;
}

.catalog-group {
  border: 1px solid var(--line);
  border-left: 6px solid var(--group-color);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.catalog-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--group-color) 8%, white);
  border-bottom: 1px solid var(--line);
}

.catalog-group-head strong {
  display: block;
  font-size: 0.95rem;
}

.catalog-group-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.catalog-group-body {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 140px minmax(300px, 2fr) minmax(220px, 1.2fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

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

.catalog-bands {
  display: grid;
  gap: 8px;
}

.catalog-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 8px;
}

.catalog-band strong {
  font-size: 0.86rem;
}

.catalog-band span,
.catalog-band small {
  color: var(--muted);
  font-size: 0.78rem;
}

.catalog-notes {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.device-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 0.5fr 0.68fr 0.8fr minmax(620px, 3fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}

.device-row.conflict {
  border-color: rgba(185, 28, 28, 0.5);
  background: #fff7f7;
}

.device-row.inactive {
  opacity: 0.55;
}

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

.device-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.device-identity {
  display: grid;
  gap: 2px;
}

.clash-badge {
  width: fit-content;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.1);
  color: var(--conflict);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  padding: 3px 7px;
}

.inline-editors {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) min-content minmax(180px, 1fr);
  gap: 8px;
  align-items: end;
}

.inline-editors label {
  min-width: 0;
}

.inline-editors select {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 0.78rem;
}

.note-editor input {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 0.82rem;
}

.note-editor {
  min-width: 0;
}

#locationDeviceTable .device-row {
  grid-template-columns: minmax(180px, 1fr) 0.48fr 0.62fr 0.78fr;
  align-items: start;
  gap: 12px 10px;
  padding: 12px 10px;
}

#locationDeviceTable .device-row > * {
  min-width: 0;
}

#locationDeviceTable .location-row-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

#locationDeviceTable .inline-editors {
  grid-template-columns: minmax(170px, 1.1fr) min-content minmax(240px, 1.3fr);
  min-width: 0;
}

#locationDeviceTable .row-actions {
  justify-self: end;
  align-self: end;
}

.row-color-field {
  position: relative;
  width: fit-content;
}

.color-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: fit-content;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  padding: 5px;
}

.selected-swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 28, 0.16);
}

.color-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 32, 28, 0.16);
  padding: 8px;
}

.pill {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dept-color) 14%, white);
  color: var(--dept-color);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 8px;
}

.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.row-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.inactive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.inactive-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

@media (max-width: 980px) {
  .topbar,
  .workspace,
  .controls-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .status-strip {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .inline-editors {
    grid-template-columns: 1fr;
  }

  .device-band-row {
    grid-template-columns: 1fr 1fr;
  }

  .locations-layout,
  .location-workspace,
  .config-grid,
  .admin-grid,
  .admin-workspace-row,
  .workspace-gate-grid {
    grid-template-columns: 1fr;
  }
}

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

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .status-strip div:first-child {
    border-top: 0;
  }

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

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

  .inline-editors {
    grid-template-columns: 1fr;
  }

  .modal-overlay {
    align-items: stretch;
    padding: 12px;
  }

  .modal-heading,
  .band-editor-heading,
  .modal-actions,
  .form-grid,
  .device-band-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions button,
  .band-editor-heading button {
    width: 100%;
  }
}
