﻿:root {
  --bg: #07110F;
  --panel: #101C18;
  --panel2: #152620;
  --cream: #F4F1EA;
  --cream2: #E7E1D4;
  --muted: rgba(244,241,234,0.58);
  --soft: rgba(244,241,234,0.09);
  --teal: #1B8A7E;
  --teal2: #5EC4B8;
  --warn: #C5780C;
  --danger: #B02D24;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(ellipse 58% 48% at 47% -8%, rgba(94,196,184,0.16), transparent 62%),
    radial-gradient(ellipse 44% 46% at 100% 10%, rgba(197,120,12,0.08), transparent 58%),
    linear-gradient(120deg, #06100D 0%, #0A1714 48%, #0D110F 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244,241,234,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,241,234,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }

.dash-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid rgba(244,241,234,0.075);
  background: rgba(5,13,11,0.78);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}

.brand { display: flex; 
  align-items: center; 
  gap: 11px; 
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 28px rgba(94,196,184,0.18);
}
.brand-mark img { width: 34px; 
  height: 34px; 
  object-fit: contain; 
}
.brand strong { 
  display: block; 
  font-family: var(--serif); 
  font-size: 23px; 
  line-height: 1; 
}
.brand em { 
  display: block; 
  margin-top: 3px; 
  font-family: var(--mono); 
  font-style: normal; 
  font-size: 9px; 
  letter-spacing: 1.5px; 
  color: var(--teal2); 
  text-transform: uppercase; 
}

.side-nav { 
  display: grid; 
  gap: 7px;
 }
.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(244,241,234,0.55);
  border: 1px solid transparent;
  transition: .2s ease;
}
.side-nav a:hover, .side-nav a.active {
  color: var(--teal2);
  background: rgba(94,196,184,0.08);
  border-color: rgba(94,196,184,0.2);
}

.side-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(94,196,184,0.12), rgba(244,241,234,0.035));
  border: 1px solid rgba(94,196,184,0.16);
}
.side-kicker, .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal2);
}
.side-card strong { display: block; margin: 10px 0 6px; font-size: 18px; }
.side-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.back-link { color: var(--cream2); font-size: 13px; border-bottom: 1px solid rgba(244,241,234,0.28); width: fit-content; }

.dashboard-main {
  position: relative;
  z-index: 1;
  padding: 26px;
  overflow: hidden;
}

.topbar {
  min-height: 268px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(94,196,184,0.18);
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(244,241,234,0.09) 0%, rgba(244,241,234,0.025) 42%, rgba(94,196,184,0.08) 100%),
    radial-gradient(ellipse 40% 80% at 82% 15%, rgba(94,196,184,0.18), transparent 60%);
  box-shadow: 0 28px 90px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}
.topbar::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(94,196,184,0.16);
  box-shadow: inset 0 0 70px rgba(94,196,184,0.08);
}
.hero-copy { 
  max-width: 780px; 
  position: relative; 
  z-index: 1; 
}
.topbar h1 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.8vw, 74px);
  line-height: 0.98;
  max-width: 770px;
}
.hero-sub {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(244,241,234,0.62);
  font-size: 15px;
  line-height: 1.75;
}
.top-actions { 
  display: flex; 
  align-items: end; 
  gap: 12px; 
  flex-wrap: wrap; 
  justify-content: flex-end; 
  position: relative; 
  z-index: 1; 
}
.select-wrap { 
  display: grid; 
  gap: 7px; 
  color: var(--muted); 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
}
.select-wrap select, .search-wrap input {
  color: var(--cream);
  background: rgba(5,13,11,0.62);
  border: 1px solid rgba(244,241,234,0.14);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}
.select-wrap select { min-width: 190px; }
.search-wrap input { width: 230px; }
.select-wrap select:focus, .search-wrap input:focus { border-color: rgba(94,196,184,0.42); box-shadow: 0 0 0 3px rgba(94,196,184,0.08); }
.online-pill, .report-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(94,196,184,0.22);
  background: rgba(94,196,184,0.08);
  color: var(--teal2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4px;
}
.online-pill span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.report-btn { background: var(--cream); color: #10201B; border-color: var(--cream); font-weight: 700; }
.report-btn:hover { transform: translateY(-1px); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi-card, .panel {
  border: 1px solid rgba(244,241,234,0.09);
  background: rgba(244,241,234,0.04);
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}
.kpi-card {
  padding: 16px;
  min-height: 126px;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.055), transparent 55%);
  pointer-events: none;
}
.kpi-card::after { 
  content: ''; 
  position: absolute; 
  inset: auto 0 0 0; 
  height: 3px; 
  background: var(--teal2); 
  opacity: .9; 
}
.kpi-card.warn::after { 
  background: var(--warn); 
}
.kpi-card.danger::after { 
  background: var(--danger); 
}
.kpi-card.focus { 
  background: linear-gradient(160deg, rgba(94,196,184,0.16), rgba(244,241,234,0.04)); 
}
.kpi-card span { 
  font-family: var(--mono); 
  font-size: 10px; 
  letter-spacing: 1.4px; 
  text-transform: uppercase; 
  color: rgba(244,241,234,0.5); 
}
.kpi-card strong { 
  display: block; 
  margin-top: 14px; 
  font-family: var(--serif); 
  font-size: 42px; 
  font-weight: 400; 
  line-height: 1; 
}
.kpi-card p { 
  margin-top: 8px; 
  color: rgba(244,241,234,0.45); 
  font-size: 13px; 
  line-height: 1.45; 
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.panel { 
  padding: 20px; 
  backdrop-filter: blur(12px); 
}
.panel-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 18px; 
  margin-bottom: 18px; 
}
.panel-head h2, .detail-top h2 { 
  margin-top: 6px; 
  font-family: var(--serif); 
  font-weight: 400; 
  font-size: 30px; 
  line-height: 1.1; 
}
.panel-head.compact { 
  margin-bottom: 14px; 
}
.device-tools { 
  display: grid; 
  justify-items: end; 
  gap: 10px; 
}
.search-wrap { 
  display: grid; 
  gap: 6px; 
  color: var(--muted); 
  font-size: 10px; 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
}
.filters { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  justify-content: flex-end; 
}

.filters button {
  border: 1px solid rgba(244,241,234,0.12);
  background: rgba(244,241,234,0.045);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
}
.filters button.active, .filters button:hover { 
  color: var(--teal2); 
  border-color: rgba(94,196,184,0.32); 
  background: rgba(94,196,184,0.09); 
}

.device-list { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; 
}
.device-card {
  text-align: left;
  color: var(--cream);
  border: 1px solid rgba(244,241,234,0.08);
  background: rgba(5,13,11,0.48);
  border-radius: 10px;
  padding: 14px;
  transition: .2s;
}
.device-card:hover, .device-card.active { 
  transform: translateY(-2px); 
  border-color: rgba(94,196,184,0.38); 
  background: rgba(94,196,184,0.075); 
}
.device-card-top { 
  display: flex; 
  justify-content: space-between; 
  gap: 12px; 
  align-items: center; 
}
.device-card h3 { 
  font-size: 15px; 
  margin-bottom: 3px; 
}
.device-card small { 
  color: rgba(244,241,234,0.42); 
  font-family: var(--mono); 
  font-size: 10px; 
}
.device-score { 
  font-family: var(--mono); 
  color: var(--teal2); 
  font-size: 24px; 
}
.device-meta { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 8px; 
  margin-top: 14px; 
}
.device-meta span { 
  padding-top: 8px; 
  border-top: 1px solid rgba(244,241,234,0.07); 
  font-family: var(--mono); 
  font-size: 10px; 
  color: var(--muted); 
}
.device-meta strong { 
  display: block; 
  margin-top: 3px; 
  color: var(--cream); 
  font-size: 12px; 
}

.status-badge, .card-status {
  border-radius: 999px;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(94,196,184,0.24);
  color: var(--teal2);
  background: rgba(94,196,184,0.08);
}
.status-badge.warn, .card-status.warn { 
  color: var(--warn); 
  border-color: rgba(197,120,12,0.34); 
  background: rgba(197,120,12,0.1); 
}
.status-badge.crit, .card-status.crit { 
  color: #ff7d72; 
  border-color: rgba(176,45,36,0.38); 
  background: rgba(176,45,36,0.12); 
}

.detail-panel { 
  position: sticky; 
  top: 20px; 
  background: linear-gradient(160deg, rgba(244,241,234,0.07), rgba(94,196,184,0.045)); 
}
.detail-top { 
  display: flex; 
  justify-content: space-between; 
  gap: 14px; 
  align-items: flex-start; 
}
.detail-top span:not(.status-badge) { 
  color: rgba(244,241,234,0.42); 
  font-family: var(--mono); 
  font-size: 10px; 
}
.score-block {
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: center;
  gap: 18px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(5,13,11,0.72), rgba(8,26,22,0.58));
  border: 1px solid rgba(244,241,234,0.08);
}
.score-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: conic-gradient(var(--teal2) 0deg, var(--teal2) 320deg, rgba(244,241,234,0.09) 320deg);
  position: relative;
  box-shadow: 0 0 44px rgba(94,196,184,0.12);
}
.score-ring::after { 
  content: ''; 
  position: absolute; 
  inset: 12px; 
  border-radius: 50%; 
  background: #07110F; 
}
.score-ring strong, .score-ring span { 
  position: relative; 
  z-index: 1; 
}
.score-ring strong { 
  font-family: var(--mono); 
  font-size: 34px; 
  line-height: 1; 
}
.score-ring span { 
  font-family: var(--mono); 
  font-size: 9px; 
  letter-spacing: 2px; 
  color: var(--muted); 
}
.score-copy strong { 
  display: block; 
  font-size: 24px; 
  margin-bottom: 8px; 
}
.score-copy p { 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.6; 
}

.metric-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px; 
}
.metric-card, .device-facts div {
  padding: 13px;
  border-radius: 10px;
  background: rgba(244,241,234,0.045);
  border: 1px solid rgba(244,241,234,0.08);
}
.metric-card span, .device-facts span { 
  font-family: var(--mono); 
  font-size: 10px; 
  letter-spacing: 1.3px; 
  color: var(--muted); 
  text-transform: uppercase; 
}
.metric-card strong { 
  display: block; 
  margin: 8px 0; 
  font-family: var(--mono); 
  font-size: 22px; 
}
.meter { 
  height: 4px; 
  border-radius: 999px; 
  background: rgba(244,241,234,0.08); 
  overflow: hidden; 
}
.meter i { 
  display: block; 
  height: 100%; 
  width: var(--value); 
  background: var(--teal2); 
  border-radius: inherit; 
}
.device-facts { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px; 
  margin-top: 12px; 
}
.device-facts strong { 
  display: block; 
  margin-top: 6px; 
  font-size: 14px; 
}

.bottom-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr; 
  gap: 18px; 
  margin-top: 18px; 
}
.queue-list, .alert-list { 
  display: grid; 
  gap: 10px; }
.queue-item, .alert-item { 
  padding: 13px; 
  border-radius: 10px; 
  background: rgba(5,13,11,0.48); 
  border: 1px solid rgba(244,241,234,0.08); 
}
.queue-item { 
  display: flex; 
  justify-content: space-between; 
  gap: 12px; 
  align-items: center; 
}
.queue-item strong, .alert-item strong { 
  display: block; 
  font-size: 14px; 
  margin-bottom: 4px; 
}
.queue-item span, .alert-item span { 
  color: var(--muted); 
  font-size: 12px; 
}
.queue-tag { 
  font-family: var(--mono); 
  color: var(--teal2); 
  font-size: 10px; 
  white-space: nowrap; 
}
.alert-item { 
  position: relative; 
  padding-left: 28px; 
}
.alert-item::before { 
  content: ''; 
  position: absolute; 
  left: 12px; 
  top: 18px; 
  width: 7px; 
  height: 7px; 
  border-radius: 50%; 
  background: var(--teal2); 
}
.alert-item.warn::before { 
  background: var(--warn); 
}
.alert-item.crit::before { 
  background: var(--danger); 
}
.bar-chart { 
  height: 220px; 
  display: flex; 
  align-items: end; 
  gap: 10px; 
  padding-top: 14px; 
}
.bar { 
  flex: 1; 
  min-width: 16px; 
  border-radius: 8px 8px 0 0; 
  background: linear-gradient(180deg, var(--teal2), rgba(94,196,184,0.18)); 
  height: var(--height); 
  position: relative; 
}
.bar span { 
  position: absolute; 
  bottom: -24px; 
  left: 50%; 
  transform: translateX(-50%); 
  font-family: var(--mono); 
  font-size: 9px; 
  color: rgba(244,241,234,0.34); 
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 13px 16px;
  border-radius: 8px;
  color: #10201B;
  background: var(--cream);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .25s ease;
  z-index: 20;
}
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .dash-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .side-nav { grid-template-columns: repeat(3, auto); }
  .side-card { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .bottom-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
}

@media (max-width: 720px) {
  .dashboard-main { padding: 16px; }
  .topbar, .panel-head, .detail-top { flex-direction: column; }
  .topbar { min-height: auto; padding: 22px; }
  .topbar h1 { font-size: 40px; }
  .kpi-grid, .device-list, .metric-grid, .device-facts { grid-template-columns: 1fr; }
  .score-block { grid-template-columns: 1fr; }
  .sidebar { padding: 18px; }
  .device-tools { justify-items: stretch; width: 100%; }
  .search-wrap input { width: 100%; }
}

/* Positive cream command-center theme */
body {
  color: #171713;
  background:
    radial-gradient(ellipse 46% 52% at 78% 8%, rgba(94,196,184,0.16), transparent 62%),
    radial-gradient(ellipse 38% 44% at 18% 92%, rgba(27,138,126,0.08), transparent 64%),
    linear-gradient(115deg, #E6E1D5 0%, #F4F1EA 52%, #ECE7DC 100%);
}
body::before {
  background-image:
    linear-gradient(rgba(20,20,18,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,18,0.035) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.42), transparent 74%);
}

.sidebar {
  color: var(--cream);
  border-right-color: rgba(20,20,18,0.08);
  background:
    radial-gradient(ellipse 100% 52% at 0% 0%, rgba(94,196,184,0.1), transparent 58%),
    #07110F;
}
.side-nav a { color: rgba(244,241,234,0.56); }
.side-card {
  background: rgba(94,196,184,0.08);
  border-color: rgba(94,196,184,0.2);
}
.back-link { color: rgba(244,241,234,0.78); }

.dashboard-main { color: #171713; }
.eyebrow { color: var(--teal); }

.topbar {
  color: var(--cream);
  border-color: rgba(20,20,18,0.1);
  background:
    radial-gradient(ellipse 42% 70% at 30% 42%, rgba(94,196,184,0.15), transparent 62%),
    linear-gradient(112deg, #081511 0%, #0B201B 47%, #E6E1D5 47.2%, #F4F1EA 100%);
  box-shadow: 0 28px 80px rgba(20,20,18,0.12);
}
.topbar::after {
  right: 7%;
  bottom: -150px;
  border-color: rgba(27,138,126,0.16);
  box-shadow: inset 0 0 90px rgba(27,138,126,0.08);
}
.hero-copy { max-width: 610px; }
.hero-sub { color: rgba(244,241,234,0.68); }
.top-actions { color: #171713; }
.select-wrap { color: rgba(20,20,18,0.58); }
.select-wrap select,
.search-wrap input {
  color: #171713;
  background: rgba(255,255,255,0.54);
  border-color: rgba(20,20,18,0.14);
}
.select-wrap select:focus,
.search-wrap input:focus {
  border-color: rgba(27,138,126,0.42);
  box-shadow: 0 0 0 3px rgba(27,138,126,0.1);
}
.online-pill {
  color: #0C5E55;
  background: rgba(27,138,126,0.1);
  border-color: rgba(27,138,126,0.2);
}
.report-btn {
  color: var(--cream);
  background: #10201B;
  border-color: #10201B;
}

.kpi-card,
.panel {
  color: #171713;
  border-color: rgba(20,20,18,0.1);
  background: rgba(255,255,255,0.42);
  box-shadow: 0 18px 54px rgba(20,20,18,0.09);
}
.kpi-card.focus {
  background: linear-gradient(150deg, rgba(27,138,126,0.16), rgba(255,255,255,0.54));
}
.kpi-card span,
.metric-card span,
.device-facts span,
.device-card small,
.detail-top span:not(.status-badge),
.queue-item span,
.alert-item span,
.select-wrap,
.search-wrap {
  color: rgba(20,20,18,0.55);
}
.kpi-card p,
.score-copy p {
  color: rgba(20,20,18,0.58);
}
.panel-head h2,
.detail-top h2,
.device-card h3,
.queue-item strong,
.alert-item strong,
.score-copy strong {
  color: #171713;
}

.device-card,
.queue-item,
.alert-item,
.metric-card,
.device-facts div {
  color: #171713;
  background: rgba(255,255,255,0.52);
  border-color: rgba(20,20,18,0.1);
}
.device-card:hover,
.device-card.active {
  background: rgba(27,138,126,0.1);
  border-color: rgba(27,138,126,0.32);
}
.device-meta span { border-top-color: rgba(20,20,18,0.08); }
.device-meta strong { color: #171713; }
.device-score { color: var(--teal); }

.filters button {
  color: rgba(20,20,18,0.58);
  background: rgba(255,255,255,0.5);
  border-color: rgba(20,20,18,0.12);
}
.filters button.active,
.filters button:hover {
  color: #0C5E55;
  border-color: rgba(27,138,126,0.3);
  background: rgba(27,138,126,0.12);
}

.detail-panel {
  background: linear-gradient(150deg, rgba(255,255,255,0.58), rgba(27,138,126,0.08));
}
.score-block {
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(94,196,184,0.13), transparent 62%),
    #091512;
  border-color: rgba(27,138,126,0.18);
}
.score-block .score-copy strong { color: var(--cream); }
.score-block .score-copy p { color: rgba(244,241,234,0.58); }
.score-ring::after { background: #091512; }
.meter { background: rgba(20,20,18,0.1); }

.status-badge,
.card-status {
  color: #0C5E55;
  background: rgba(27,138,126,0.1);
  border-color: rgba(27,138,126,0.26);
}
.status-badge.warn,
.card-status.warn {
  color: #8A5307;
  border-color: rgba(197,120,12,0.3);
  background: rgba(197,120,12,0.12);
}
.status-badge.crit,
.card-status.crit {
  color: #8E211A;
  border-color: rgba(176,45,36,0.32);
  background: rgba(176,45,36,0.1);
}

.bar { background: linear-gradient(180deg, var(--teal), rgba(27,138,126,0.2)); }
.bar span { color: rgba(20,20,18,0.45); }
.toast { box-shadow: 0 18px 48px rgba(20,20,18,0.2); }

@media (max-width: 1180px) {
  .topbar {
    background:
      radial-gradient(ellipse 60% 80% at 20% 30%, rgba(94,196,184,0.14), transparent 64%),
      linear-gradient(180deg, #081511 0%, #0B201B 58%, #F4F1EA 58.2%, #F4F1EA 100%);
  }
  .top-actions { color: #171713; }
}

/* Softer positive card palette */
.kpi-card,
.panel {
  background:
    linear-gradient(145deg, rgba(27,138,126,0.13), rgba(244,241,234,0.34) 58%, rgba(231,225,212,0.42));
  border-color: rgba(27,138,126,0.16);
  box-shadow: 0 18px 54px rgba(20,20,18,0.08), inset 0 1px 0 rgba(255,255,255,0.32);
}

.kpi-card.focus {
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, rgba(94,196,184,0.18), transparent 62%),
    linear-gradient(145deg, rgba(27,138,126,0.2), rgba(231,225,212,0.38));
}

.kpi-card.warn {
  background:
    linear-gradient(145deg, rgba(197,120,12,0.12), rgba(244,241,234,0.34) 60%, rgba(231,225,212,0.42));
}

.kpi-card.danger {
  background:
    linear-gradient(145deg, rgba(176,45,36,0.1), rgba(244,241,234,0.34) 60%, rgba(231,225,212,0.42));
}

.device-card,
.queue-item,
.alert-item,
.metric-card,
.device-facts div {
  background:
    linear-gradient(145deg, rgba(27,138,126,0.095), rgba(244,241,234,0.3));
  border-color: rgba(27,138,126,0.14);
}

.device-card:hover,
.device-card.active {
  background:
    radial-gradient(ellipse 90% 100% at 0% 0%, rgba(94,196,184,0.18), transparent 62%),
    linear-gradient(145deg, rgba(27,138,126,0.16), rgba(244,241,234,0.34));
  border-color: rgba(27,138,126,0.34);
}

.detail-panel {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(94,196,184,0.16), transparent 64%),
    linear-gradient(150deg, rgba(27,138,126,0.12), rgba(231,225,212,0.44));
}

.filters button,
.select-wrap select,
.search-wrap input {
  background: rgba(231,225,212,0.62);
  border-color: rgba(27,138,126,0.16);
}

/* KPI status chips */
.kpi-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.kpi-value-row strong {
  margin-top: 0;
}

.kpi-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.kpi-chip.warn {
  color: #8A5307;
  border: 1px solid rgba(197,120,12,0.34);
  background: rgba(197,120,12,0.12);
}

.kpi-chip.crit {
  color: #8E211A;
  border: 1px solid rgba(176,45,36,0.34);
  background: rgba(176,45,36,0.12);
}
