/* Status page (#303): the server's gauge panel. The temporal green marks only what is live: the lamp, the players readout, the chart's latest step. */
.st-intro { padding: 1rem 0 1.75rem; }
.st-intro h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin-bottom: 0.9rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(255, 235, 200, 0.08); }
.st-intro .lead { margin: 0; }

/* The riveted plate (the same as home.css; a candidate for style.css) */
.plate { position: relative; background: linear-gradient(180deg, #29302e, var(--surface)); border: var(--border-subtle); border-radius: 2px;
  padding: 1.1rem 1.4rem; box-shadow: var(--shadow-warm); }
.plate::before, .plate::after { content: ""; position: absolute; top: 0.45rem; width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6b706c, #2b302e 70%); }
.plate::before { left: 0.45rem; } .plate::after { right: 0.45rem; }

.st-panel { padding: 1.6rem 1.8rem 0.6rem; }
.st-label, .st-gauges dt { font-family: var(--font-heading); font-size: 1.05rem; color: var(--accent); margin: 0; letter-spacing: 0.01em; }
.st-value { display: block; font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; line-height: 1.3; word-spacing: -0.12em; color: var(--text); }
.st .note { display: block; margin-top: 0.2rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }

/* The lamp and the one-word state */
.st-state { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--plate-edge);
  font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; }
.lamp { flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #4a524e;
  background: radial-gradient(circle at 35% 35%, #5a4038, #2a1d19 75%); }
.st-headline { color: var(--text-muted); }
.st.is-online .st-headline { color: var(--text); }
.st.is-online .lamp { border-color: #2d7d66; background: radial-gradient(circle at 35% 35%, #b9f7e4, var(--ok) 45%, #12866a);
  box-shadow: 0 0 10px rgba(52, 229, 179, 0.45); }

/* The big readout beside the performance dial */
.st-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 1.5rem 2.5rem; align-items: center; padding-bottom: 1.3rem;
  border-bottom: var(--border-subtle); }
.st-big { margin: 0.1rem 0 0.4rem; font-family: var(--font-heading); font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; color: var(--text);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.st.is-online .st-big { color: var(--ok); }

.st-dial { margin: 0; text-align: center; }
.st-dial svg { display: block; width: 100%; max-width: 15rem; height: auto; margin: 0 auto 0.3rem; overflow: visible; }
.dial-face { fill: #171c1b; stroke: #4a524e; stroke-width: 2; }
.dial-band { fill: none; stroke-width: 7; }
.dial-low { stroke: var(--rust); }
.dial-mid { stroke: var(--accent-dark); }
.dial-high { stroke: #5d6763; }
.dial-ticks line { stroke: #7d8681; stroke-width: 2; stroke-linecap: round; }
.dial-num { fill: var(--text-muted); font: 400 12px var(--font-body); }
.needle { transform-origin: 110px 114px; transform: rotate(var(--needle, -90deg)); transition: transform 0.9s cubic-bezier(0.3, 1.4, 0.5, 1); }
.needle path { fill: var(--accent-hover); stroke: #3a2b17; stroke-width: 0.8; }
.dial-hub { fill: #2b302e; stroke: var(--accent-dark); stroke-width: 2; }
.st-dial .st-value { font-size: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .needle { transition: none; } }

/* The small gauges: label over value, divided like the panel's sections */
.st-gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0; }
.st-gauges > div { padding: 1.1rem 1.2rem 1.1rem 0; border-bottom: 1px dashed var(--plate-edge); }
.st-gauges dd { margin: 0.2rem 0 0; }
.st-panel .st-gauges > div:nth-last-child(-n + 2) { border-bottom: 0; }

.updated { margin: 0.9rem 0 0; font-size: 0.88rem; }

/* History */
.st .history { margin-top: 3rem; padding-top: 2.5rem; border-top: var(--border-subtle); }
.history-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.history-head h2 { margin: 0; font-size: 1.9rem; }
.st .history-tabs { margin: 0; gap: 0; border: var(--border-subtle); border-radius: 2px; background: #171c1b; padding: 0.2rem; }
.st .history-tabs .btn { border: 1px solid transparent; border-radius: 2px; padding: 0.35rem 0.95rem; font-size: 0.92rem; color: var(--text-muted); }
.st .history-tabs .btn:hover { color: var(--accent-hover); }
.st .history-tabs .btn[aria-pressed="true"] { background: linear-gradient(180deg, #343c39, #29302e); border-color: var(--accent-dark); color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

.st-screen { padding: 1.4rem 1.2rem 0.5rem; background: #161b1a; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), var(--shadow-warm); }
.st .chart { margin: 0; border-radius: 2px; }
.st .chart:has(svg:focus-visible) { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
.st .chart svg:focus { outline: none; }
.st .chart-caption { margin: 0.4rem 0 0.4rem; font-size: 0.9rem; font-style: italic; }

.st .chart-grid { stroke: rgba(214, 219, 212, 0.07); }
.st .chart-label { fill: var(--text-muted); font: 400 11px var(--font-body); }
.st .chart-line { stroke: var(--accent); stroke-width: 2; }
.st .chart-area { fill: rgba(194, 148, 80, 0.13); }
.st .chart-dot { fill: var(--accent); }
.st .chart-off { fill: url(#rust-hatch); }
.st .chart-guide { stroke: var(--accent-hover); stroke-width: 1; stroke-dasharray: 3 3; }
.st .chart-mark { fill: var(--accent-hover); stroke: #161b1a; stroke-width: 2; }
.st .chart-now { fill: var(--ok); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--text-muted); }
.chart-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.chart-legend i { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 1px; }
.chart-legend .k-line { height: 2px; background: var(--accent); }
.chart-legend .k-off { background: repeating-linear-gradient(135deg, rgba(138, 74, 46, 0.75) 0 2px, rgba(138, 74, 46, 0.2) 2px 5px); }
.chart-legend .k-now { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); }

.st-stats { margin-top: 0.5rem; }
.st-stats > div { border-bottom: 0; }

@media (max-width: 720px) {
  .st-panel { padding: 1.4rem 1.1rem 0.4rem; }
  .st-main { grid-template-columns: 1fr; }
  .st-dial { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: center; text-align: left; }
  .st-dial svg { margin: 0; }
  .st-gauges { grid-template-columns: 1fr; }
  .st-gauges > div { padding-right: 0; }
  .st-panel .st-gauges > div:nth-last-child(2) { border-bottom: 1px dashed var(--plate-edge); }
  .st-screen { padding: 1.1rem 0.6rem 0.4rem; }
  .st .chart-caption, .chart-legend { padding-inline: 0.4rem; }
  .history-head h2 { font-size: 1.6rem; }
}
