:root {
  color-scheme: dark;
  --bg: #171a1f;
  --panel: #20242b;
  --panel-2: #282d36;
  --line: #3a414d;
  --text: #f3f6fa;
  --muted: #b5bfcc;
  --accent: #4ade80;
  --accent-2: #60a5fa;
  --warn: #facc15;
  --bad: #f87171;
  --neutral: #aab4c1;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(96, 165, 250, 0.08), transparent 32%),
    linear-gradient(180deg, #1e232b 0%, var(--bg) 48%, #14171c 100%);
  color: var(--text);
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

.shell {
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 22px 0 48px;
}

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

.brand {
  display: grid;
  gap: 4px;
}

.home-link {
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

.home-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.home-link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}

.brand-mark {
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 6px;
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(74, 222, 128, 0.08));
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.brand h1,
.panel h2,
.panel h3,
.agent-card h3,
.detail-grid h4,
.auth-card h1 {
  margin: 0;
}

.brand h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

.brand p,
.meta,
.hint,
.muted,
.empty,
small {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 14px;
}

.grid.main {
  align-items: start;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.7fr);
}

.dashboard-stack {
  display: grid;
  gap: 14px;
}

.settings-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
  gap: 14px;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.panel,
.auth-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel);
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 14px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.035), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.014) 0, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 9px);
  opacity: 0.55;
}

.panel {
  padding: 16px;
}

.panel > *,
.auth-card > * {
  position: relative;
  z-index: 1;
}

.panel-header,
.agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.command-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-header .toolbar,
.agent-head .toolbar {
  margin-left: auto;
}

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

.panel h2,
.panel h3 {
  letter-spacing: 0.02em;
}

.support-panel-header {
  justify-content: flex-start;
}

.support-panel-header > :last-child {
  margin-left: 0;
}

.stat {
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

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

.stat .value {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.summary-table-wrap,
.responsive-table-wrap {
  overflow-x: auto;
}

.responsive-table-wrap {
  overflow-x: auto;
}

.summary-table,
.computer-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td,
.computer-table th,
.computer-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.summary-table th,
.computer-table th {
  color: #d8e3f1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-table tr:last-child td,
.computer-table tr:last-child td {
  border-bottom: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(170, 180, 193, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 26px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  appearance: none;
}

.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 7px);
  opacity: 0.48;
}

.summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 30px rgba(0, 0, 0, 0.22);
  filter: brightness(1.03);
}

.summary-card:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}

.summary-card-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  right: -36px;
  top: -42px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  filter: blur(8px);
}

.summary-card.ok .summary-card-glow {
  background: rgba(74, 222, 128, 0.13);
}

.summary-card.warn .summary-card-glow {
  background: rgba(250, 204, 21, 0.14);
}

.summary-card.bad .summary-card-glow {
  background: rgba(248, 113, 113, 0.16);
}

.summary-card-top,
.summary-card-value,
.summary-card-hint,
.summary-card-meter {
  position: relative;
  z-index: 1;
}

.summary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-card-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--neutral);
  box-shadow: 0 0 14px rgba(170, 180, 193, 0.48);
}

.summary-card.ok .summary-card-dot {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.48);
}

.summary-card.warn .summary-card-dot {
  background: var(--warn);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.5);
}

.summary-card.bad .summary-card-dot {
  background: var(--bad);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.5);
}

.summary-card-value {
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.summary-card-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.summary-card-meter {
  height: 5px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 28, 34, 0.92);
}

.summary-card-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), #b7d3ff);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
}

.summary-card.ok .summary-card-meter span {
  background: linear-gradient(90deg, #22c55e, #bbf7d0);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.42);
}

.summary-card.warn .summary-card-meter span {
  background: linear-gradient(90deg, #eab308, #fde68a);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.42);
}

.summary-card.bad .summary-card-meter span {
  background: linear-gradient(90deg, #ef4444, #fecaca);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.44);
}

.computer-table {
  min-width: 1280px;
  table-layout: auto;
}

.computer-table td {
  font-size: 13px;
}

.computer-table thead {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.035));
}

.computer-table tbody tr {
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.computer-table tbody tr:hover {
  background: rgba(96, 165, 250, 0.045);
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.36);
}

.cell-main,
.row-subtext {
  display: block;
  overflow-wrap: anywhere;
}

.row-subtext {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.inline-input {
  min-width: 96px;
  max-width: 100%;
  padding: 8px 9px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(170, 180, 193, 0.13);
  color: var(--text);
  white-space: nowrap;
  border: 1px solid rgba(170, 180, 193, 0.2);
}

.metric-pill.ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.22);
}

.metric-pill.warn {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.18);
  border-color: rgba(250, 204, 21, 0.22);
}

.metric-pill.bad {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.24);
}

.disk-health-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.disk-light {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 10px rgba(255, 255, 255, 0.08);
}

.disk-light.ok {
  background: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.32), 0 0 10px rgba(34, 197, 94, 0.45);
}

.disk-light.warn {
  background: #eab308;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.32), 0 0 10px rgba(234, 179, 8, 0.45);
}

.disk-light.bad {
  background: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.32), 0 0 10px rgba(239, 68, 68, 0.45);
}

.compact-button {
  padding: 8px 10px;
  min-height: 32px;
}

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

button.danger,
.compact-button.danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.agent-card {
  padding: 14px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.agent-card:last-child {
  margin-bottom: 0;
}

.agent-edit {
  display: grid;
  grid-template-columns: 52px minmax(160px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(170, 180, 193, 0.06);
}

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

.metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(170, 180, 193, 0.06);
}

.metric span,
.metric small {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.metric small {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.detail-grid section {
  min-width: 0;
}

.detail-grid h4 {
  margin-bottom: 8px;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #d8e3f1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid rgba(170, 180, 193, 0.2);
}

.badge.ok {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.badge.warn {
  background: rgba(234, 179, 8, 0.18);
  color: #fde68a;
}

.badge.bad,
.notice.bad {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.badge.neutral {
  background: rgba(170, 180, 193, 0.15);
  color: #e2e8f0;
}

.computer-table td {
  min-width: 0;
}

.computer-table td:nth-child(3) {
  min-width: 156px;
}

.computer-table td:nth-child(4) {
  min-width: 88px;
}

.computer-table td:nth-child(1),
.computer-table td:nth-child(2) {
  min-width: 110px;
}

.computer-table td:nth-child(5),
.computer-table td:nth-child(6),
.computer-table td:nth-child(8),
.computer-table td:nth-child(9),
.computer-table td:nth-child(11) {
  min-width: 92px;
}

.computer-table td:nth-child(7) {
  min-width: 92px;
}

.computer-table td:nth-child(10) {
  min-width: 126px;
}

.computer-table td:nth-child(12),
.computer-table td:nth-child(13) {
  min-width: 112px;
  white-space: normal;
}

.computer-table td:nth-child(14) {
  min-width: 112px;
}

.computer-table .cell-main,
.computer-table .row-subtext {
  overflow-wrap: break-word;
  word-break: break-word;
}

.computer-table .row-subtext {
  line-height: 1.4;
}

.computer-table .row-subtext .badge {
  max-width: 100%;
}

.computer-table td:nth-child(12),
.computer-table td:nth-child(13) {
  line-height: 1.45;
}

.computer-table .inline-input {
  min-width: 0;
  width: 100%;
}

.computer-table .compact-button {
  padding: 7px 8px;
}

.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}

.kv .k {
  color: var(--muted);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 28, 34, 0.98), rgba(31, 36, 43, 0.98));
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

select {
  color-scheme: dark;
}

option {
  background: #20242b;
  color: #f3f6fa;
}

option:checked,
option:hover {
  background: #2b313a;
  color: #ffffff;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

button {
  appearance: none;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.22), rgba(74, 222, 128, 0.14));
  color: #e8f8ee;
  font-weight: 700;
  padding: 10px 13px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

button.secondary {
  background: linear-gradient(180deg, rgba(66, 74, 88, 0.96), rgba(43, 49, 58, 0.96));
  color: var(--text);
  border: 1px solid var(--line);
}

button:hover,
button.secondary:hover {
  filter: brightness(1.06);
}

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

#notificationConfiguredEmails {
  min-height: 28px;
  padding: 6px 0;
}

.list-tools {
  justify-content: flex-start;
  width: auto;
  margin: 8px 0 0;
}

.filter-input {
  width: min(320px, 100%);
  min-width: 220px;
}

.company-filter-select {
  width: min(320px, 100%);
  min-width: 220px;
}

.filter-summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.release-fixed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(96, 165, 250, 0.08));
}

.installer-downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(74, 222, 128, 0.08));
  color: #dbeafe;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.download-button:hover {
  border-color: rgba(96, 165, 250, 0.58);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(74, 222, 128, 0.12));
  transform: translateY(-1px);
}

.detail-row {
  background: rgba(96, 165, 250, 0.035);
}

.computer-table td.detail-cell {
  padding-top: 0;
}

.agent-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1b2027;
}

.detail-section {
  min-width: 0;
}

.detail-section.wide {
  grid-column: 1 / -1;
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.kv.compact {
  grid-template-columns: 96px minmax(0, 1fr);
}

.kv.compact div:not(.k) {
  overflow-wrap: anywhere;
}

.mini-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.mini-table th,
.mini-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.mini-table th {
  color: var(--muted);
  font-weight: 600;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.remote-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.remote-script-field {
  margin-top: 12px;
  margin-bottom: 10px;
}

.remote-action-button,
.send-remote-script {
  min-height: 36px;
}

.mesh-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.mesh-open-link {
  text-decoration: none;
}

.meter {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #181c22;
}

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

.meter.warn span {
  background: var(--warn);
}

.meter.bad span {
  background: var(--bad);
}

.notice {
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.form-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.form-status.ok {
  color: #a8dec0;
}

.form-status.warn {
  color: #efd596;
}

.form-status.bad {
  color: #efb5bc;
}

.user-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

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

.command-panel {
  margin-top: 18px;
}

.panel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.panel-toggle-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  font-size: 18px;
  line-height: 1;
}

#commandsWrap {
  margin-top: 14px;
}

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

.command-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #181c22;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--line);
}

[hidden] {
  display: none !important;
}

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

  .computer-table {
    min-width: 1080px;
  }
}

@media (max-width: 1100px) {
  .grid.stats,
  .grid.main,
  .metrics,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-header,
  .agent-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .shell {
    width: calc(100% - 24px);
  }

  .agent-edit {
    grid-template-columns: 1fr;
  }

  .agent-detail-grid {
    grid-template-columns: 1fr;
  }

  .mesh-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 20px);
    padding-top: 16px;
  }

  .brand h1 {
    font-size: 24px;
  }

  .brand p {
    margin: 0;
    font-size: 13px;
  }

  .panel {
    padding: 12px;
  }

  .release-fixed-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .installer-downloads {
    justify-content: stretch;
  }

  .download-button {
    flex: 1 1 100%;
  }

  .responsive-table-wrap {
    overflow: visible;
  }

  .computer-table {
    min-width: 0;
  }

  .computer-table thead {
    display: none;
  }

  .computer-table,
  .computer-table tbody,
  .computer-table tr,
  .computer-table td {
    display: block;
    width: 100%;
  }

  .computer-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .computer-table tr:last-child {
    border-bottom: 0;
  }

  .computer-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 0;
  }

  .computer-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .inline-input {
    min-width: 0;
  }

  .compact-button {
    width: 100%;
  }

  .row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .list-tools,
  .filter-input,
  .company-filter-select {
    width: 100%;
    min-width: 0;
  }

  .computer-table td.detail-cell {
    display: block;
    padding: 8px 0 12px;
  }

  .computer-table td.detail-cell::before {
    content: none;
  }

  .agent-detail-grid {
    padding: 10px;
  }
}


.support-code-toolbar {
  flex-wrap: wrap;
}

.hint-block {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
}

.hint-block code {
  color: var(--text);
}

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

  .brand h1 {
    font-size: 24px;
  }
}
