/* Yappi Monitor: dark panels with title bars, lavender accent, ring gauges (owner's reference, 2026-11-20). */
:root {
  --bg: #07060b;
  --side: #0c0b12;
  --panel: #111018;
  --panel2: #18161f;
  --line: #24212e;
  --line2: #2e2a3a;
  --text: #f3f1f8;
  --muted: #9a95a8;
  --dim: #6e697c;
  --accent: #c4b2ff;
  --accent2: #9b7bff;
  --violet: #9b7bff;
  --gold: #ffb547;
  --teal: #2dd4bf;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f8576a;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--bad); min-height: 1.4em; margin: 0; }
svg { flex: none; }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(60% 60% at 50% 0%, rgba(124, 92, 255, 0.28), transparent 70%), var(--bg); }
.login-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; display: grid; gap: 14px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.login-card img { margin: 0 auto; }
.login-card h1 { margin: 4px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.login-card p { margin: 0; }
.login-card input { background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; color: var(--text); font: inherit; }
.login-card input:focus { outline: 2px solid var(--accent2); border-color: transparent; }
.login-card button { background: var(--accent); border: 0; color: #1a1033; border-radius: 12px; padding: 13px; font-weight: 700; }
.login-card button:hover { background: #d4c6ff; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 16px; background: var(--side); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.brand img { border-radius: 50%; }
.side-label { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding: 22px 12px 10px; }
.menu { display: grid; gap: 4px; }
.menu button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; color: var(--muted); font-weight: 500; font-size: 15px; padding: 11px 14px; border-radius: 12px; transition: background 0.15s, color 0.15s; }
.menu svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu button:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.menu button.on { color: #fff; background: linear-gradient(90deg, rgba(196, 178, 255, 0.16), rgba(196, 178, 255, 0.05) 70%, rgba(196, 178, 255, 0.2)); }
.menu button.on::after { content: ""; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 4px; background: var(--accent); }
.menu button i { margin-left: auto; margin-right: 10px; width: 8px; height: 8px; border-radius: 50%; display: none; flex: none; }
.menu button i.warn { display: block; background: var(--warn); }
.menu button i.bad { display: block; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #1a1824, #14121c); border: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #1a1033; background: linear-gradient(135deg, #e5dcff, var(--accent2)); flex: none; }
.who { display: grid; min-width: 0; }
.who b { font-size: 14px; font-weight: 600; }
.who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { margin-left: auto; background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.content { min-width: 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 22px 32px 18px; background: rgba(7, 6, 11, 0.88); backdrop-filter: blur(12px); }
.title { display: grid; gap: 4px; min-width: 0; }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.crumb { color: var(--muted); font-size: 14px; }
.overall { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; padding: 4px 11px; border-radius: 8px; border: 1px solid; }
.overall .dot { width: 7px; height: 7px; box-shadow: none; }
.overall.ok { color: var(--ok); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.25); }
.overall.warn { color: var(--warn); background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.25); }
.overall.bad { color: var(--bad); background: rgba(248, 87, 106, 0.1); border-color: rgba(248, 87, 106, 0.3); }
.controls { display: flex; align-items: center; gap: 12px; }
.seg { display: flex; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 7px 13px; border-radius: 9px; font-weight: 600; }
.seg button.on { background: var(--accent); color: #1a1033; }
.ghost { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 10px; }

main { max-width: 1440px; padding: 4px 32px 48px; }
main section[data-tab] { display: none; }
main section[data-tab].on { display: block; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--dim); font-weight: 600; margin: 28px 0 12px; }
main section[data-tab] > :first-child:not(h2) { margin-top: 8px; }
main section[data-tab] > h2:first-child { margin-top: 8px; }

/* ---------- panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel-head, .srv-head, .chart .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.srv-head h3, .panel-head h3 { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }

/* stat cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 4px; min-width: 0; }
.card .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.card .value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.ok .value { color: var(--ok); } .card.warn .value { color: var(--warn); } .card.bad .value { color: var(--bad); }
.card.warn { border-color: rgba(251, 191, 36, 0.3); }
.card.bad { border-color: rgba(248, 87, 106, 0.45); background: linear-gradient(180deg, rgba(248, 87, 106, 0.06), var(--panel) 60%); }
a.card.link { color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.card.link:hover { border-color: var(--accent2); transform: translateY(-1px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

/* ---------- servers ---------- */
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 600px), 1fr)); gap: 16px; }
.config { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.spec { display: flex; align-items: center; gap: 12px; min-width: 0; }
.spec .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--text); flex: none; }
.spec .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spec div { display: grid; min-width: 0; }
.spec span { color: var(--muted); font-size: 12.5px; }
.spec b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ring { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ring svg { width: 62px; height: 62px; }
.ring .track { stroke: #2a2734; }
.ring text { fill: var(--text); font-size: 13px; font-weight: 700; }
.ring div { display: grid; min-width: 0; }
.ring span { color: var(--muted); font-size: 12.5px; }
.ring b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 18px; }
.facts div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; min-width: 0; }
.facts dt { color: var(--muted); white-space: nowrap; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.minis .chart { background: var(--panel2); border-color: var(--line); }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; margin-top: 16px; }
.chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; min-width: 0; }
.chart .head { padding-bottom: 14px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.chart .head .t { color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.chart .head b { color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.chart .head .alert { color: var(--warn); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.chart .head .alert.bad { color: var(--bad); }
.chart .head .alert svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.yax { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; padding: 0 0 2px; white-space: nowrap; }
.chart svg { display: block; width: 100%; height: 130px; overflow: visible; }
.minis .chart svg { height: 100px; }
.chart .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.chart .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }
.chart .empty { height: 130px; display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.grid { stroke: var(--line); stroke-width: 1; }
.tip { position: fixed; pointer-events: none; z-index: 20; background: #0a0910; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font-size: 12px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* horizontal bars (memory by container) */
.hbars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; margin-bottom: 20px; }
.hbars .n { color: var(--text); font-size: 13px; white-space: nowrap; }
.hbars .b { justify-self: start; height: 18px; border-radius: 4px; background: var(--c); min-width: 3px; }
.hbars .v { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- containers ---------- */
.table-wrap { overflow-x: auto; }
table.ctr { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.ctr th { text-align: left; color: var(--dim); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.ctr td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.ctr td:first-child { width: 16px; padding-top: 16px; }
table.ctr tr:last-child td { border-bottom: 0; }
table.ctr tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
table.ctr .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ctr .warnc { color: var(--warn); font-weight: 700; }

/* breakdowns */
.breakdowns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.bh { margin: 0 0 10px; font-size: 15px; font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.breakdowns p { margin: 0 0 6px; }
table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
table.kv tr:last-child td { border-bottom: 0; }
table.kv .num { text-align: right; padding-left: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
details.all { margin-top: 20px; }
details.all summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.all table { margin-top: 12px; }
details.all code { font-size: 12.5px; color: var(--text); }

/* events */
.events { list-style: none; margin: 0; padding: 0; display: grid; max-height: 380px; overflow: auto; }
.events.tall { max-height: none; }
.events li { display: grid; grid-template-columns: 130px 14px 1fr; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.events li:last-child { border-bottom: 0; }
.events time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.events a { color: var(--accent); font-weight: 600; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .config, .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { display: block; }
  .side { position: sticky; top: 0; z-index: 6; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; border: 0; }
  .brand span, .side-label, .who { display: none; }
  .menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .menu::-webkit-scrollbar { display: none; }
  .menu button { width: auto; flex: none; padding: 8px 12px; gap: 7px; white-space: nowrap; font-size: 14px; }
  .menu button.on::after { right: 50%; top: auto; bottom: 0; transform: translateX(50%); width: 20px; height: 3px; }
  .menu button i { position: absolute; top: 6px; right: 4px; margin: 0; width: 7px; height: 7px; }
  .side-user { margin: 0; padding: 0; background: none; border: 0; }
  .avatar { display: none; }
  .top { position: static; padding: 16px; }
  main { padding: 4px 16px 32px; }
}
@media (max-width: 640px) {
  .top h1 { font-size: 21px; }
  .crumb { font-size: 12.5px; }
  table.ctr { min-width: 560px; }
  .facts, .minis { grid-template-columns: 1fr; }
  .config, .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring svg { width: 52px; height: 52px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .value { font-size: 21px; }
  .events li { grid-template-columns: 92px 12px 1fr; }
  .charts { grid-template-columns: 1fr; }
}

/* ---------- logos ---------- */
.lg { width: 18px; height: 18px; object-fit: contain; flex: none; }
.lg.big { width: 22px; height: 22px; }
.card .label .lg { width: 16px; height: 16px; }
.svc { display: flex; align-items: center; gap: 10px; }
.svc .lg-wrap { width: 30px; height: 30px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; flex: none; }

/* ---------- app page ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; margin-top: 16px; }
.app-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map { position: relative; width: 100%; aspect-ratio: 360 / 150; border-radius: 12px; overflow: hidden; background: radial-gradient(80% 90% at 60% 40%, #15132088, transparent), #0b0a10; }
.map img, .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map img { user-select: none; }
.map circle.d { fill: var(--accent); fill-opacity: 0.85; stroke: #fff; stroke-opacity: 0.6; stroke-width: 0.25; cursor: pointer; }
.map circle.halo { fill: var(--accent); fill-opacity: 0.18; animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map circle.halo { animation: none; } }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12px; font-weight: 600; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--panel2); }
.feed .tx { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.feed .tx small { display: block; color: var(--muted); font-size: 11.5px; }
.feed time { color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.feed .new { animation: pop 0.6s ease-out; }
@keyframes pop { from { background: rgba(196, 178, 255, 0.12); } to { background: transparent; } }
table.places { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.places td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.places tr:last-child td { border-bottom: 0; }
table.places .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
table.places .bar { height: 6px; border-radius: 4px; background: var(--accent); opacity: 0.7; }
table.places .flag { font-size: 16px; margin-right: 8px; }
.delta { font-size: 12px; font-weight: 600; margin-left: 6px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
@media (max-width: 1100px) { .app-grid, .app-grid.two { grid-template-columns: 1fr; } }

/* ---------- overview ---------- */
.ov-top { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 2fr); gap: 16px; }
.ov-right { display: grid; gap: 16px; }
.hero-num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-list { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); display: grid; }
.hero-list .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hero-list .row:last-child { border-bottom: 0; }
.hero-list .row .nm { flex: 1; min-width: 0; }
.hero-list .row .nm small { display: block; color: var(--muted); font-size: 12px; }
.hero-list .row .st { font-weight: 600; font-size: 13px; }
.hero-list .row .st.ok { color: var(--ok); } .hero-list .row .st.bad { color: var(--bad); } .hero-list .row .st.warn { color: var(--warn); }
.cfg-row { display: grid; grid-template-columns: 120px repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 6px 0; }
.cfg-row + .cfg-row { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.cfg-row .who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rings.flat { border: 0; padding: 0; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
.charts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-head.sub { margin-top: 14px; }
.feed.short { max-height: 220px; }
.panel-head a { text-decoration: none; }
.panel-head a:hover { color: var(--text); }
@media (max-width: 1200px) { .ov-top { grid-template-columns: 1fr; } .cfg-row { grid-template-columns: 1fr 1fr; } .cfg-row .who { grid-column: 1 / -1; } }
@media (max-width: 900px) { .charts.two, .rings.flat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .charts.two { grid-template-columns: 1fr; } .hero-num { font-size: 42px; } }

/* ---------- vitals ---------- */
.vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vital { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 10px; display: grid; gap: 2px; overflow: hidden; min-width: 0; }
.vital .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; }
.vital .label .lg { width: 15px; height: 15px; }
.vital .value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vital .sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vital .spark { width: calc(100% + 32px); height: 30px; margin: 6px -16px -10px; display: block; }
.vital.ok .value { color: var(--text); } .vital.warn .value { color: var(--warn); } .vital.bad .value { color: var(--bad); }
.vital.warn { border-color: rgba(251, 191, 36, 0.3); } .vital.bad { border-color: rgba(248, 87, 106, 0.45); }
.vital.ok::before, .vital.warn::before, .vital.bad::before { content: ""; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; }
.vital.ok::before { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.7); } .vital.warn::before { background: var(--warn); } .vital.bad::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.charts.one { grid-template-columns: 1fr; }
.charts.one .chart svg { height: 160px; }

/* overview: both servers in one card */
.srv-block + .srv-block { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.srv-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.srv-line .who { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; color: var(--muted); background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.rings.three { border: 0; padding: 0; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .rings.three { grid-template-columns: 1fr 1fr; } }

/* overview: map under the servers card fills the right column */
.ov-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-map { flex: 1; display: flex; flex-direction: column; }
.ov-map .map { margin: auto 0; }
.app-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
