:root {
  color-scheme: dark;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-pad-inline: clamp(12px, 3vw, 28px);

  --bg: #06090f;
  --bg-elevated: #0e1522;
  --panel: #111a27;
  --panel-soft: #162033;
  --panel-strong: #1b2638;
  --panel-border: #253247;
  --line: #273446;
  --line-soft: #2c3f5c;
  --text: #e5edf7;
  --text-soft: #96a3b2;
  --text-muted: #7e8a9a;

  --accent: #22d3ee;
  --accent-2: #0ea5e9;
  --accent-dark: #0b3b4d;
  --ink: #d5e0ee;
  --ok: #34d399;
  --warn: #f59e0b;
  --danger: #fca5a5;
  --danger-solid: #e11d48;

  --card-radius: 10px;
  --shadow: 0 20px 48px rgba(2, 8, 20, 0.45);

  --radius-pill: 999px;
  --focus: 0 0 0 3px rgba(34, 211, 238, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

textarea {
  resize: vertical;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.55rem);
}

h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px var(--page-pad-inline);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 15, 0.8);
  backdrop-filter: blur(14px);
}

.brand,
.top-actions,
.card-meta,
.row-actions,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #06111c;
  background: var(--accent);
  font-weight: 900;
}

.global-search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111927;
}

.top-actions {
  gap: 10px;
}

main {
  width: calc(100% - calc(var(--page-pad-inline) * 2));
  margin: 0 auto;
  padding: 28px 0 64px;
}

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

.page-head.compact {
  align-items: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-soft);
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-link,
.card-link {
  color: #d9f8ff;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover,
.icon-button:hover,
.ui-sort-button:hover {
  filter: brightness(1.04);
}

.button:active,
.icon-button:active,
.ui-sort-button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #04111e;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
}

.button.secondary,
.icon-button,
.table-action {
  color: var(--text);
  background: var(--panel-strong);
  border-color: var(--line-soft);
}

.button.danger {
  color: #ffd6de;
  background: #3c111f;
  border-color: #662436;
}

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

.metrics div,
.project-card,
.project-form,
.import-panel,
.side-panel,
.attachment-row,
.login-panel,
.chart-panel,
.server-board {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--panel);
}

.metrics div,
.project-card,
.project-form,
.import-panel,
.side-panel,
.attachment-row,
.login-panel {
  box-shadow: var(--shadow);
}

.metrics div {
  min-width: 0;
  padding: 14px 16px;
}

.metrics span,
.project-form label,
.stack label {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  color: var(--text);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.toolbar a {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  background: var(--panel-soft);
  font-weight: 800;
}

.toolbar a.active {
  color: #04111e;
  border-color: var(--accent);
  background: var(--accent);
}

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

.project-card {
  min-height: 268px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: #06111e;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.status.queued {
  background: #38bdf8;
}

.status.active {
  background: var(--ok);
  color: #02180f;
}

.status.waiting {
  background: var(--warn);
  color: #221800;
}

.status.shipped {
  background: #38ef7d;
  color: #04130b;
}

.status.archived {
  background: #94a3b8;
}

.project-card p {
  color: var(--text-soft);
}

.project-card dl {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
}

.project-card dt {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card dd {
  margin: 2px 0 0;
  font-weight: 650;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tags span {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--text);
  background: var(--panel-strong);
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 700;
}

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

.project-form,
.side-panel,
.import-panel {
  padding: 18px;
}

.import-panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.import-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.import-form input,
.project-form input,
.project-form select,
.project-form textarea,
.stack input,
.stack textarea,
.global-search input,
.server-search input,
.server-filters button,
.server-table th button,
.server-filters button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: #101b2b;
}

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

.span-2 {
  grid-column: span 2;
}

.project-form,
.side-panel {
  border: 1px solid var(--line);
}

.form-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.side-panel h2,
.attachments h2 {
  margin-bottom: 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

.upload-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.starter-upload {
  display: grid;
  gap: 8px;
}

.drop-zone {
  position: relative;
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 148px;
  padding: 22px;
  border: 1px dashed #4a5a70;
  border-radius: 10px;
  color: var(--text-soft);
  background: #111927;
  text-align: center;
  cursor: pointer;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone:focus-within,
.drop-zone.is-dragging {
  border-color: var(--accent);
  background: #11263c;
}

.drop-title {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.drop-copy,
.selected-files {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.selected-files {
  min-height: 20px;
}

.attachments {
  margin-top: 22px;
}

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

.attachment-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.attachment-row span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 13px;
}

.row-actions {
  gap: 8px;
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
}

.notice.error {
  color: var(--danger);
  background: #2a1119;
  border: 1px solid #652a39;
}

.notice.success {
  color: #9ef2c7;
  background: #11281b;
  border: 1px solid #235e44;
}

.muted {
  color: var(--text-muted);
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-shell {
  width: min(440px, calc(100% - 32px));
  padding: 0;
}

.login-panel {
  padding: 30px;
}

.login-brand {
  margin-bottom: 20px;
}

.login-panel h1 {
  margin-bottom: 16px;
}

.server-head {
  align-items: center;
  margin-bottom: 10px;
}

.server-page {
  transition: opacity 0.16s ease;
}

.server-page.is-refreshing {
  opacity: 0.82;
}

.server-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #2e4d4f;
  border-radius: 10px;
  color: #d5f4f0;
  background: #10252a;
}

.server-alert.warning {
  color: #fce4a6;
  background: #2a2416;
  border-color: #6a4a16;
}

.server-alert.error {
  color: #ffd4db;
  background: #2a1119;
  border-color: #6a2737;
}

.server-alert span {
  color: inherit;
  opacity: 0.86;
  font-size: 13px;
  font-weight: 650;
}

.monitoring-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 8px;
  margin-bottom: 8px;
}

.monitoring-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101927;
  box-shadow: var(--shadow);
}

.monitoring-panel.ok {
  border-color: rgba(52, 211, 153, 0.28);
}

.monitoring-panel.warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.monitoring-panel.critical {
  border-color: rgba(225, 29, 72, 0.58);
}

.monitoring-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.monitoring-panel-head span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.monitoring-panel-head strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1;
}

.monitoring-list,
.monitoring-check-grid {
  display: grid;
  gap: 6px;
}

.monitoring-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitoring-item {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #0d1522;
}

.monitoring-item span,
.monitoring-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitoring-item span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.monitoring-item small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 650;
}

.monitoring-item.ok {
  border-color: rgba(52, 211, 153, 0.24);
}

.monitoring-item.ok span {
  color: #9ef2c7;
}

.monitoring-item.warning,
.monitoring-item.unknown {
  border-color: rgba(245, 158, 11, 0.32);
}

.monitoring-item.warning span,
.monitoring-item.unknown span {
  color: #f9d58a;
}

.monitoring-item.critical,
.monitoring-item.fail {
  border-color: rgba(225, 29, 72, 0.44);
}

.monitoring-item.critical span,
.monitoring-item.fail span {
  color: #fca5a5;
}

.server-facts {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 8px;
}

.server-fact {
  display: grid;
  gap: 2px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.server-fact span {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.server-fact strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-fact small {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-monitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 0.8fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 8px;
}

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

.server-summary article,
.chart-panel,
.server-kpi-card,
.server-fact {
  min-width: 0;
  box-shadow: var(--shadow);
}

.server-summary article,
.chart-panel {
  padding: 14px;
}

.server-summary span,
.server-kpi-card span,
.chart-panel span,
.panel-title span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.server-summary strong,
.server-kpi-card strong,
.chart-panel strong,
.panel-title strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.server-summary small,
.server-kpi-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.server-summary .server-kpi-card {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101927;
}

.server-kpi-copy {
  display: grid;
  gap: 4px;
}

.server-kpi-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.server-kpi-metrics span {
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--panel-soft);
  font-size: 11px;
}

.server-kpi-metrics .trend.up {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.4);
}

.server-kpi-metrics .trend.down {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.4);
}

.server-kpi-metrics .trend.flat {
  color: var(--text-soft);
}

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

.chart-panel {
  display: grid;
  align-content: space-between;
  min-height: 148px;
  border-radius: 8px;
}

.chart-panel.primary {
  min-height: 250px;
  padding: 10px 16px 12px;
}

.sparkline {
  width: 100%;
  height: 56px;
  margin-top: 0;
}

.chart-panel.primary .sparkline {
  height: 132px;
  margin-top: 0;
}

.server-kpi-sparkline {
  width: 100%;
  height: 44px;
  margin-top: 4px;
}

.sparkline .chart-frame {
  fill: #0d141d;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

.sparkline .grid-line {
  stroke: rgba(148, 163, 184, 0.13);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}

.sparkline .chart-area {
  fill: rgba(34, 211, 238, 0.16);
}

.sparkline .chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.server-kpi-sparkline polyline {
  stroke: var(--accent-2);
}

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

.panel-title strong {
  margin-top: 0;
  font-size: 24px;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 6px 0 0;
}

.chart-stats div {
  min-width: 0;
}

.chart-stats dt {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 750;
}

.chart-stats dd {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-board {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.server-board-head {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  background: #0d141f;
  border-bottom: 1px solid var(--line);
}

.server-board-head div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: max-content;
}

.server-board-head h2 {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.server-board-head [data-visible-count] {
  display: inline-block;
  margin-top: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.server-search input {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--line-soft);
  border-radius: 7px;
}

.server-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
}

.server-filters button {
  width: auto;
  height: 32px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-soft);
  background: #0f1a2a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.server-filters button.active {
  color: #0b1928;
  background: var(--accent);
  border-color: var(--accent);
}

.server-filters span {
  margin-left: 5px;
  color: currentColor;
  opacity: 0.75;
}

.server-table-wrap {
  overflow-x: auto;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.server-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-size: 13px;
}

.server-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111a28;
}

.server-table th,
.server-table td {
  height: 46px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.server-table thead th {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.ui-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.ui-sort-button .sort-indicator {
  width: 1rem;
  height: 1rem;
  line-height: 1;
  text-align: center;
  color: var(--text-muted);
  opacity: 0.9;
  font-size: 12px;
}

.ui-sort-button.is-active .sort-indicator {
  color: var(--accent);
}

.server-table thead .ui-sort-button {
  width: 100%;
  justify-content: space-between;
}

.server-table tbody tr {
  background: var(--panel);
  transition: background 0.12s ease;
}

.server-table tbody tr:nth-child(odd) {
  background: #0f1724;
}

.server-table tbody tr:hover {
  background: #1a2538;
}

.server-table tbody tr.hidden,
.server-table tbody tr[hidden] {
  display: none;
}

.container-name {
  display: grid;
  gap: 3px;
}

.container-name strong,
.image-name {
  color: #7de8ff;
  font-weight: 800;
}

.container-name small,
.memory-cell small {
  color: var(--text-muted);
  font-size: 12px;
}

.memory-cell {
  display: grid;
  gap: 3px;
}

.server-col-num {
  text-align: right;
}

.server-col-stack,
.server-col-ports,
.server-col-networks,
.server-col-image {
  max-width: 200px;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #f3f9ff;
  background: #495f79;
  font-size: 12px;
  font-weight: 800;
}

.server-badge.running,
.server-badge.healthy,
.server-badge.fresh {
  background: var(--ok);
  color: #09170f;
}

.server-badge.exited,
.server-badge.dead,
.server-badge.missing,
.server-badge.unhealthy {
  background: #ef4444;
  color: #300;
}

.server-badge.starting,
.server-badge.warning,
.server-badge.paused,
.server-badge.unknown {
  background: var(--warn);
  color: #331f00;
}

.mini-chips,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.mini-chips span {
  max-width: 160px;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--panel-soft);
  text-overflow: ellipsis;
}

.table-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: #a7f3ff;
  background: #0e1a2a;
  font-size: 12px;
  font-weight: 800;
}

.table-action.disabled {
  color: var(--text-muted);
  border-color: #33415a;
  background: #1a2232;
  cursor: not-allowed;
}

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

.hide-mobile {
  display: table-cell;
}

@media (max-width: 1120px) {
  .project-list,
  .detail-grid,
  .import-panel {
    grid-template-columns: 1fr;
  }

  .project-form .span-2,
  .starter-upload {
    grid-column: span 1;
  }
}

@media (max-width: 980px) {
  main {
    width: calc(100% - 24px);
  }

  .metrics,
  .server-summary,
  .server-charts,
  .server-facts,
  .monitoring-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .server-kpi-card {
    gap: 7px;
  }

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

  .server-board-head {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 1.5fr);
    gap: 10px;
  }

  .server-filters {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .global-search {
    grid-column: 1 / -1;
  }

  .page-head,
  .attachment-row,
  .detail-links,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .server-head .page-head {
    align-items: flex-start;
  }

  .row-actions {
    gap: 8px;
  }

  .import-form {
    grid-template-columns: 1fr;
  }

  .server-table {
    min-width: 740px;
    font-size: 12px;
  }

  .server-summary,
  .server-charts,
  .server-monitor-layout,
  .server-facts,
  .monitoring-strip,
  .monitoring-check-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel.primary {
    min-height: 190px;
  }

  .chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-board-head {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .server-filters {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .server-table th,
  .server-table td {
    padding: 9px 10px;
  }

  .h1,
  h1 {
    font-size: 30px;
  }
}
