:root {
  color-scheme: dark;
  --bg: #0a161a;
  --bg-deep: #071014;
  --panel: #0b1920;
  --panel-raised: #0e2028;
  --panel-soft: #0c1c22;
  --text: #e0eded;
  --muted: #83aaaa;
  --line: rgba(224, 237, 237, 0.12);
  --line-strong: rgba(29, 162, 126, 0.42);
  --accent: #1da27e;
  --accent-strong: #28bd93;
  --accent-soft: rgba(29, 162, 126, 0.14);
  --blue: #22d3ee;
  --danger: #e05252;
  --danger-strong: #f06464;
  --warn: #e4a541;
  --ok: #36c98f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.025);
  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.22);
  --focus: 0 0 0 3px rgba(29, 162, 126, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 14% -10%, rgba(29, 162, 126, 0.16), transparent 35%),
    radial-gradient(circle at 94% 8%, rgba(34, 211, 238, 0.07), transparent 30%),
    linear-gradient(rgba(224, 237, 237, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 237, 237, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(29, 162, 126, 0.36);
  color: #ffffff;
}

* {
  scrollbar-color: rgba(131, 170, 170, 0.5) var(--bg-deep);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

*::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg-deep);
  border-radius: 999px;
  background: rgba(131, 170, 170, 0.5);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1px solid rgba(224, 237, 237, 0.22);
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent-strong), #1c8585);
  box-shadow: 0 0 22px rgba(29, 162, 126, 0.48);
}

h2 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}

p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.topbar {
  min-height: 82px;
  padding: 16px clamp(16px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 20, 0.88);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar > div:first-child {
  min-width: 0;
}

#server-subtitle {
  max-width: min(1050px, 72vw);
  margin-top: 5px;
  overflow: hidden;
  color: rgba(224, 237, 237, 0.58);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions,
.toolbar,
.dialog-head,
.section-title,
.device-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions,
.toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-title {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  min-width: 0;
}

.section-title.compact {
  align-items: center;
  margin-bottom: 11px;
}

.server-pill {
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(29, 162, 126, 0.27);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--text);
  background: rgba(29, 162, 126, 0.08);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.server-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(29, 162, 126, 0.11), 0 0 12px rgba(29, 162, 126, 0.7);
}

.auth-layout {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: start center;
  padding: 54px 16px;
}

.auth-panel {
  width: min(460px, 100%);
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--blue), transparent);
  opacity: 0.8;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  padding: 18px clamp(16px, 3vw, 34px) 36px;
  max-width: 100%;
}

.panel {
  background: linear-gradient(180deg, rgba(14, 32, 40, 0.97), rgba(11, 25, 32, 0.98));
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
  padding: 17px;
  min-width: 0;
}

.devices-panel {
  min-height: calc(100vh - 124px);
  min-width: 0;
  box-shadow: var(--shadow);
}

.side {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
}

.console-panel {
  grid-column: 1 / -1;
}

.console-filter-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.console-filter-label select {
  width: auto;
  min-height: 36px;
}

.live-console {
  min-height: 230px;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid rgba(29, 162, 126, 0.24);
  border-radius: 9px;
  background: #050c0f;
  color: #ffd166;
  box-shadow: inset 0 1px 16px rgba(0, 0, 0, 0.42);
  font: 11px/1.55 "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  scrollbar-color: rgba(106, 158, 158, 0.5) #050c0f;
}

.console-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  padding: 1px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.console-time {
  color: #bd8b4a;
  user-select: none;
}

.console-device { color: #72c7e8; }
.console-command { color: #ffd166; }
.console-sync { color: #74d7ad; }
.console-error { color: #ff7a7a; }
.console-empty { color: #bd8b4a; }

.button,
.tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(224, 237, 237, 0.035);
  color: var(--text);
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button:hover,
.tab:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06110e;
  box-shadow: 0 6px 18px rgba(29, 162, 126, 0.17);
}

.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(29, 162, 126, 0.26);
}

.button.secondary:hover,
.tab:hover {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: #f2ffff;
}

.button.danger {
  color: #fff3f3;
  border-color: rgba(224, 82, 82, 0.56);
  background: rgba(224, 82, 82, 0.16);
}

.button.danger:hover {
  border-color: var(--danger-strong);
  background: rgba(224, 82, 82, 0.27);
}

.button:focus-visible,
.tab:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.device-list,
.stack {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.sync-layout {
  display: grid;
  gap: 17px;
}

.sync-section {
  display: grid;
  gap: 12px;
}

.sync-section + .sync-section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sync-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 16, 20, 0.34);
}

.sync-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.4fr) minmax(180px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
}

.sync-node-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: rgba(224, 237, 237, 0.68);
  overflow-wrap: anywhere;
}

.sync-node-title,
.version-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sync-node-title strong,
.version-line strong {
  display: inline;
  margin: 0;
}

.sync-node-title strong {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.node-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 21px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.node-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.node-status.online,
.node-dot.online {
  color: var(--ok);
}

.node-status.online {
  background: rgba(54, 201, 143, 0.08);
}

.node-status.offline,
.node-dot.offline {
  color: var(--danger-strong);
}

.node-status.offline {
  background: rgba(224, 82, 82, 0.08);
}

.version-line {
  margin-top: 5px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}

.version-ok { color: var(--ok); }
.version-bad { color: #ff7474; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 7px 12px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.43);
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}

.resource-metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.resource-metric strong {
  display: inline;
  margin: 0;
  font-size: 12px;
}

.resource-metric small {
  flex-basis: 100%;
  color: rgba(131, 170, 170, 0.76);
  font-size: 9px;
}

.metric-cool { color: #4dc5ef; }
.metric-good { color: var(--ok); }
.metric-warn { color: #efae49; }
.metric-hot { color: #ff7474; }
.metric-na { color: var(--muted); }

.node-inventory {
  display: grid;
  gap: 5px;
  margin-top: 5px;
}

.node-inventory details {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.node-inventory summary {
  width: fit-content;
  border-radius: 5px;
  cursor: pointer;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}

.node-inventory summary:hover {
  color: var(--text);
}

.node-inventory summary strong {
  display: inline;
  margin: 0 0 0 4px;
  color: var(--text);
}

.inventory-list {
  display: grid;
  gap: 5px;
  padding: 8px 2px 2px;
}

.inventory-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}

.inventory-row strong,
.inventory-row small {
  display: block;
  margin: 0;
}

.inventory-row small,
.inventory-empty {
  color: var(--muted);
  font-size: 10px;
}

.user-presence-meta {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.node-dot {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.local-sync-row {
  border-color: rgba(29, 162, 126, 0.26);
  background: linear-gradient(90deg, rgba(29, 162, 126, 0.09), rgba(12, 28, 34, 0.72) 32%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.status-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
}

.status-mark.ok {
  color: var(--ok);
  border-color: rgba(54, 201, 143, 0.36);
  background: rgba(54, 201, 143, 0.1);
  box-shadow: 0 0 16px rgba(54, 201, 143, 0.12);
}

.status-mark.danger {
  color: var(--danger-strong);
  border-color: rgba(224, 82, 82, 0.4);
  background: rgba(224, 82, 82, 0.1);
}

.sync-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.device-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(14, 32, 40, 0.78), rgba(9, 22, 27, 0.84));
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.14);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.device-card:hover {
  border-color: rgba(29, 162, 126, 0.28);
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.device-head {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.device-name {
  font-weight: 720;
  font-size: 17px;
  letter-spacing: -0.012em;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(224, 237, 237, 0.035);
}

.badge.ok {
  color: var(--ok);
  border-color: rgba(54, 201, 143, 0.3);
  background: rgba(54, 201, 143, 0.09);
}

.badge.warn {
  color: var(--warn);
  border-color: rgba(228, 165, 65, 0.3);
  background: rgba(228, 165, 65, 0.09);
}

.badge.danger {
  color: var(--danger-strong);
  border-color: rgba(224, 82, 82, 0.32);
  background: rgba(224, 82, 82, 0.09);
}

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

.meta {
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid rgba(224, 237, 237, 0.09);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.36);
}

.meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.035em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.meta strong {
  display: block;
  font-size: 12px;
  font-weight: 630;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.device-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 136px;
}

.form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 620;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  border-radius: 8px;
  border: 1px solid rgba(224, 237, 237, 0.14);
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: rgba(5, 13, 16, 0.7);
  caret-color: var(--accent-strong);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(224, 237, 237, 0.23);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(5, 13, 16, 0.92);
}

input::placeholder,
textarea::placeholder {
  color: rgba(131, 170, 170, 0.52);
}

select option {
  color: var(--text);
  background: var(--panel-raised);
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(7, 16, 20, 0.38);
  min-width: 0;
  overflow-wrap: anywhere;
}

.item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.empty {
  border: 1px dashed rgba(131, 170, 170, 0.34);
  border-radius: 10px;
  padding: 34px 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(7, 16, 20, 0.3);
}

dialog {
  color: var(--text);
  border: 1px solid rgba(224, 237, 237, 0.14);
  border-radius: 13px;
  padding: 0;
  background: linear-gradient(180deg, #0e2028, #0a171c);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

dialog::backdrop {
  background: rgba(2, 7, 9, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

dialog[open] {
  animation: dialog-in 150ms ease-out;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-form {
  min-width: min(440px, calc(100vw - 32px));
  padding: 19px;
  display: grid;
  gap: 15px;
}

.large-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.pairing-qr-dialog {
  width: min(460px, calc(100vw - 32px));
}

.pairing-qr-preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.pairing-qr-preview img {
  width: min(360px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 8px solid #ffffff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.dialog-head {
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3px;
}

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

.admin-view-tabs {
  margin-bottom: 15px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(224, 237, 237, 0.08);
  border-radius: 10px;
  background: rgba(5, 13, 16, 0.42);
}

.tab.active {
  border-color: rgba(29, 162, 126, 0.5);
  color: #eefffa;
  background: rgba(29, 162, 126, 0.2);
  box-shadow: inset 0 0 0 1px rgba(29, 162, 126, 0.07), 0 5px 18px rgba(0, 0, 0, 0.16);
}

.user-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 16, 20, 0.38);
}

.user-head,
.mini-device,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-head,
.mini-device {
  justify-content: space-between;
}

.mini-device {
  flex-wrap: wrap;
}

.inline-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px;
}

.two-col > .form {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 16, 20, 0.34);
  align-content: start;
}

.pre {
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #061015;
  color: rgba(224, 237, 237, 0.88);
  font: 12px/1.5 "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(29, 162, 126, 0.42);
  border-radius: 9px;
  background: rgba(11, 25, 32, 0.96);
  color: #f2fffb;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 5;
  font-size: 13px;
}

.toast.error {
  border-color: rgba(224, 82, 82, 0.55);
  background: rgba(94, 28, 31, 0.97);
}

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

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

  .device-actions {
    flex-direction: row;
    width: auto;
    flex-wrap: wrap;
  }

  .user-head,
  .mini-device {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .topbar,
  .section-title,
  .dialog-head {
    align-items: stretch;
    flex-direction: column;
  }

  #server-subtitle {
    max-width: calc(100vw - 32px);
  }

  .top-actions,
  .toolbar {
    justify-content: flex-start;
  }

  .server-pill {
    width: fit-content;
  }

  .meta-grid,
  .two-col,
  .sync-form,
  .sync-row,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .status-mark {
    justify-self: start;
  }

  .console-line {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .admin-view-tabs {
    width: 100%;
  }

  .admin-view-tabs .tab {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .tab:hover,
  .device-card:hover {
    transform: none;
  }
}
