*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Courier New', Courier, monospace;
  background: #0a0a0a;
  color: #c8c8c0;
  min-height: 100vh;
  padding: 24px;
}

.dash {
  max-width: 860px;
  margin: 0 auto;
}

/* ── header ── */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 14px;
}
.hdr-left { display: flex; align-items: center; gap: 10px; }
.dot-red    { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dot-yellow { width: 12px; height: 12px; border-radius: 50%; background: #febc2e; }
.dot-green  { width: 12px; height: 12px; border-radius: 50%; background: #28c840; }
.hdr-title  { font-size: 13px; color: #555; letter-spacing: 0.06em; margin-left: 8px; }
.hdr-right  { display: flex; align-items: center; gap: 14px; }
#clock      { font-size: 12px; color: #555; }
.refresh-btn {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #777;
  font-family: inherit;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.refresh-btn:hover { border-color: #444; color: #aaa; }

/* ── section labels ── */
.section-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #444;
  text-transform: uppercase;
  margin: 20px 0 10px;
}

/* ── service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 14px;
  border-left-width: 3px;
  transition: border-color 0.3s;
}
.service-card.up      { border-left-color: #28c840; }
.service-card.down    { border-left-color: #e34948; }
.service-card.unknown { border-left-color: #333; }

.sc-top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sc-name  { font-size: 13px; color: #e0e0d8; }
.sc-badge { font-size: 10px; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.08em; }
.badge-up       { background: rgba(40,200,64,0.12);  color: #28c840; }
.badge-down     { background: rgba(227,73,72,0.12);  color: #e34948; }
.badge-checking { background: rgba(85,85,85,0.15);   color: #555; }

.sc-meta { display: flex; gap: 14px; font-size: 11px; color: #555; }
.sc-url  { font-size: 10px; color: #3a3a3a; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.history-dots { display: flex; gap: 3px; margin-top: 9px; }
.h-dot      { width: 6px; height: 6px; border-radius: 1px; background: #1c1c1c; }
.h-dot.ok   { background: rgba(40,200,64,0.55); }
.h-dot.fail { background: rgba(227,73,72,0.55); }

/* ── hardware panel ── */
.hw-card {
  background: #111;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 14px;
}
.hw-title {
  font-size: 13px;
  color: #e0e0d8;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hw-badge-ok   { font-size: 10px; padding: 2px 8px; border-radius: 3px; background: rgba(40,200,64,0.12); color: #28c840; }
.hw-badge-fail { font-size: 10px; padding: 2px 8px; border-radius: 3px; background: rgba(227,73,72,0.12); color: #e34948; }

.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .hw-grid { grid-template-columns: 1fr; } }

.hw-metric     { background: #0d0d0d; border-radius: 6px; padding: 10px 12px; }
.hw-m-label    { font-size: 10px; color: #444; letter-spacing: 0.1em; margin-bottom: 3px; }
.hw-m-value    { font-size: 22px; color: #e0e0d8; }
.hw-m-unit     { font-size: 12px; color: #444; }
.hw-bar-wrap   { margin-top: 7px; background: #1a1a1a; border-radius: 2px; height: 3px; overflow: hidden; }
.hw-bar        { height: 3px; border-radius: 2px; transition: width 0.6s ease, background-color 0.4s; }
.bar-cool { background: #3987e5; }
.bar-warm { background: #febc2e; }
.bar-hot  { background: #e34948; }

.fans-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fan-chip  { background: #0d0d0d; border-radius: 6px; padding: 8px 12px; flex: 1; min-width: 80px; text-align: center; }
.fan-label { font-size: 10px; color: #444; margin-bottom: 3px; letter-spacing: 0.08em; }
.fan-val   { font-size: 13px; color: #c0c0b8; }

/* ── weather card ── */
.weather-card { background: #111; border: 1px solid #1e1e1e; border-radius: 8px; padding: 14px; }
.weather-top  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.weather-temp { font-size: 30px; color: #e0e0d8; }
.weather-unit { font-size: 14px; color: #444; margin-left: 2px; }
.weather-cond { font-size: 12px; color: #777; text-transform: capitalize; }
.weather-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 480px) { .weather-grid { grid-template-columns: 1fr 1fr; } }
.weather-stat  { background: #0d0d0d; border-radius: 6px; padding: 10px 12px; }
.ws-label      { font-size: 10px; color: #444; letter-spacing: 0.08em; margin-bottom: 4px; }
.ws-val        { font-size: 15px; color: #e0e0d8; }
.weather-range { font-size: 11px; color: #444; margin-top: 10px; }

.weather-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 480px) { .weather-charts { grid-template-columns: 1fr; } }
.chart-block  { background: #0d0d0d; border-radius: 6px; padding: 8px 10px; }
.chart-label  { font-size: 10px; color: #444; letter-spacing: 0.08em; margin-bottom: 4px; }
.chart-block svg { width: 100%; height: 44px; display: block; }
.chart-range  { font-size: 10px; color: #444; margin-top: 4px; }

/* ── outage card ── */
.outage-card { background: #111; border: 1px solid #1e1e1e; border-radius: 8px; padding: 14px; }
.outage-row  { display: flex; gap: 10px; flex-wrap: wrap; }
.outage-stat { flex: 1; min-width: 100px; background: #0d0d0d; border-radius: 6px; padding: 10px 12px; }
.os-label    { font-size: 10px; color: #444; letter-spacing: 0.08em; margin-bottom: 4px; }
.os-val      { font-size: 18px; color: #e0e0d8; }
.last-outage { font-size: 11px; color: #444; margin-top: 10px; }

/* ── footer ── */
.footer {
  margin-top: 18px;
  border-top: 1px solid #1a1a1a;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #383838;
}

/* ── utilities ── */
.pulsedot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #28c840;
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.25; } }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

