.status-hero { padding-bottom: 60px; }
.status-wrap { display: grid; gap: 18px; max-width: 1000px; padding: 40px 0 20px; }

/* Overall banner */
.overall { position: relative; isolation: isolate; display: flex; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--ov-border, rgba(52, 232, 165, .35)); overflow: hidden; }
.overall::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 0% 50%, var(--ov-glow, rgba(52, 232, 165, .22)), transparent 55%); }
.overall h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); margin: 0 0 4px; }
.overall p { margin: 0; color: var(--muted); }
.overall-icon { display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; font: 800 1.5rem var(--font); background: var(--ov-color, var(--accent)); color: var(--deep); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ov-color, #34e8a5) 16%, transparent), 0 0 40px -4px var(--ov-color, #34e8a5); }
.overall-refresh { margin-left: auto; }
.ov-ok { --ov-color: #34e8a5; --ov-glow: rgba(52, 232, 165, .22); --ov-border: rgba(52, 232, 165, .35); }
.ov-maint { --ov-color: #60a5fa; --ov-glow: rgba(96, 165, 250, .22); --ov-border: rgba(96, 165, 250, .4); }
.ov-warn { --ov-color: #facc15; --ov-glow: rgba(250, 204, 21, .2); --ov-border: rgba(250, 204, 21, .4); }
.ov-bad { --ov-color: #f87171; --ov-glow: rgba(248, 113, 113, .25); --ov-border: rgba(248, 113, 113, .45); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi span { display: block; font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kpi strong { font: 800 1.5rem var(--font-x); font-stretch: 112%; }

/* Cards */
.card-s { padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.card-s-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-s-head h2 { font-size: 1.1rem; margin: 0; }
#groups { display: grid; gap: 18px; }

.comp { padding: 18px 0; border-top: 1px solid var(--line); }
.group .card-s-head + .comp { border-top: 0; }
.comp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.comp-name strong { display: block; font-size: .98rem; }
.comp-name small { color: var(--muted); font-size: .82rem; }
.comp-status { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.comp-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.comp-status em { font-style: normal; font-weight: 500; font-size: .76rem; color: var(--muted); }
.st-operational { color: var(--accent); }
.st-maintenance { color: var(--blue); }
.st-degraded { color: var(--gold); }
.st-partial { color: #fb923c; }
.st-major { color: var(--red); }

.bars { display: flex; gap: 2px; height: 34px; }
.b { flex: 1; min-width: 2px; border-radius: 3px; background: var(--accent); opacity: .8; transition: opacity .15s, transform .15s; }
.b:hover { opacity: 1; transform: scaleY(1.12); }
.b-minor { background: var(--gold); }
.b-major { background: var(--red); }
.b-maintenance { background: var(--blue); }
.bars-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: .72rem; color: var(--muted); }
.bars-legend .up { color: var(--text); }

.bar-tip { position: fixed; z-index: 200; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: #0c1d16; border: 1px solid var(--line-2); font-size: .78rem; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* Maintenance */
#maintenance:empty { display: none; }
.maint { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: rgba(96, 165, 250, .07); border: 1px solid rgba(96, 165, 250, .3); }
.maint + .maint { margin-top: 12px; }
.maint-tag { flex-shrink: 0; font: 600 .7rem var(--mono); letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; background: rgba(96, 165, 250, .16); color: #bfdbfe; }
.maint strong { display: block; margin-bottom: 2px; }
.maint p { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.maint small { color: #bfdbfe; font-size: .78rem; }

/* Chart */
.chart { position: relative; margin-top: 12px; }
.chart svg { display: block; width: 100%; height: 180px; }
.chart .grid { stroke: rgba(255,255,255,.07); stroke-dasharray: 4 6; }
.chart .pulse { animation: cpulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes cpulse { 50% { transform: scale(1.5); opacity: .6; } }
.chart-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.chart-meta b { color: #fff; }

/* Incidents */
#incidents { display: grid; gap: 10px; margin-top: 10px; }
.incident { border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.incident[open] { background: rgba(255,255,255,.035); }
.incident summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.incident summary::-webkit-details-marker { display: none; }
.incident summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.incident[open] summary::after { transform: rotate(180deg); }
.incident summary strong { display: block; }
.incident summary small { color: var(--muted); font-size: .82rem; }
.inc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--gold); }
.imp-major .inc-dot { background: var(--red); }
.imp-maintenance .inc-dot { background: var(--blue); }
.timeline { list-style: none; margin: 0; padding: 0 18px 18px 44px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 4px; bottom: 22px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
.u-head { display: flex; gap: 10px; align-items: baseline; }
.u-head time { font-size: .76rem; color: var(--muted); }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 760px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .overall { padding: 22px 18px; gap: 16px; flex-wrap: wrap; }
  .overall-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .overall-refresh { margin-left: 0; }
  .card-s { padding: 20px 16px; }
  .bars .b:nth-child(-n+60) { display: none; }
  .bars-legend span:first-child { visibility: hidden; position: relative; }
  .bars-legend span:first-child::after { content: "acum 30 zile"; visibility: visible; position: absolute; left: 0; }
  .comp-top { flex-direction: column; align-items: flex-start; gap: 6px; }
}
