/* ================= 🛡️ STATUS PAGE (status.html + status.js) =================
   Built on the Profile page's look (profile.css: panels, big stat tiles, themed buttons) and the portal theme's colours. */
.st { max-width: 920px; margin: 0 auto; }
.st-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.st-hero .pf-who { flex: 1 1 340px; min-width: 0; }
/* the 3 group tiles with the buttons beside them (stacked), wrapping under them on narrow screens */
.st-row { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.st-btns { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.st-btns .btn { white-space: nowrap; }
@media (max-width: 960px) { .st-btns { flex-direction: row; flex-wrap: wrap; } }   /* under the tiles there: side by side */

/* the big round light: green tick, yellow !, red ✕, or a pulsing dot while checking */
.st-big { flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font: 900 58px/1 'Nunito', sans-serif; color: #fff;
  background: var(--t-soft, rgba(0,240,255,.07)); border: 3px solid var(--t-line, var(--cyan)); box-shadow: var(--t-on-glow, 0 0 18px rgba(0,240,255,.35)); }
.st-big[data-s="ok"] { background: var(--green); border-color: color-mix(in srgb, var(--green) 60%, #fff); box-shadow: 0 0 26px color-mix(in srgb, var(--green) 55%, transparent); }
.st-big[data-s="warn"] { background: var(--yellow, #f5c518); border-color: #fff6; color: #2b2000; }
.st-big[data-s="bad"] { background: var(--red); border-color: #fff6; }
.st-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--t-on, var(--cyan)); animation: st-pulse 1s ease-in-out infinite; }
@keyframes st-pulse { 50% { transform: scale(.55); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .st-dot { animation: none; } }

/* the three group tiles (Game, This device, Security) */
.st-tiles { margin-top: 2px; }
.st-tile[data-s="ok"] b { color: var(--green); }
.st-tile[data-s="warn"] b { color: color-mix(in srgb, var(--yellow, #f5c518) 70%, var(--text)); }
.st-tile[data-s="bad"] b { color: var(--red); }
.st-tile[data-s="run"] b { opacity: .55; }

/* a group: heading, one line about it, then its cards */
.st-group { margin-top: 26px; }
.st-group h2 { margin: 0; font-size: 24px; color: var(--t-title, #fff); font-family: var(--t-hfont, 'Orbitron'), 'Nunito', sans-serif; }
.st-group h2 small { margin-left: 8px; font: 800 14px 'Nunito', sans-serif; color: var(--muted); }
.st-group > .muted { margin: 4px 0 12px; }
.st-cards { display: grid; gap: 12px; }

/* one check: round light on the left, title + result, Details fold-out */
.st-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-left: 5px solid var(--t-line, var(--cyan)); }
.st-card[data-s="ok"] { border-left-color: var(--green); }
.st-card[data-s="warn"] { border-left-color: var(--yellow, #f5c518); }
.st-card[data-s="bad"] { border-left-color: var(--red); }
.st-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 900 22px/1 'Nunito', sans-serif; color: #fff;
  border: 2px solid rgba(0,0,0,.35); background: var(--t-soft, rgba(255,255,255,.08)); }
.st-card[data-s="ok"] .st-ico { background: var(--green); }
.st-card[data-s="warn"] .st-ico { background: var(--yellow, #f5c518); color: #2b2000; }
.st-card[data-s="bad"] .st-ico { background: var(--red); }
.st-card[data-s="run"] .st-ico::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--t-on, var(--cyan)); animation: st-pulse 1s ease-in-out infinite; }
.st-body { flex: 1; min-width: 0; }
.st-body h3 { margin: 0 0 4px; font-size: 18px; color: var(--t-title, #fff); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-tag { font: 800 11px 'Nunito', sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--t-line, rgba(0,240,255,.3)); }
.st-card[data-s="ok"] .st-tag { color: var(--green); border-color: var(--green); }
/* yellow alone is unreadable on the light themes, so its words are mixed with the text colour */
.st-card[data-s="warn"] .st-tag { color: color-mix(in srgb, var(--yellow, #f5c518) 60%, var(--text)); border-color: var(--yellow, #f5c518); }
.st-card[data-s="bad"] .st-tag { color: var(--red); border-color: var(--red); }
.st-text { margin: 0; color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.st code { font: 700 13px 'Share Tech Mono', ui-monospace, monospace; padding: 1px 6px; border-radius: 6px; background: var(--t-soft, rgba(255,255,255,.08)); border: 1px solid var(--t-line, rgba(255,255,255,.15)); }

.st-det { margin-top: 8px; }
.st-det summary { cursor: pointer; font-weight: 800; color: var(--text); font-family: var(--t-hfont, 'Nunito'), 'Nunito', sans-serif; font-size: 14px; }
.st-det summary:hover { color: var(--t-on, var(--yellow)); }
.st-tab { margin-top: 8px; border-collapse: collapse; font-size: 14px; width: 100%; }
.st-tab th { text-align: left; font-weight: 700; color: var(--muted); padding: 3px 16px 3px 0; vertical-align: top; white-space: nowrap; }
.st-tab td { color: var(--text); padding: 3px 0; overflow-wrap: anywhere; word-break: break-word; }
.st-when th, .st-when td { font-size: 13px; }
.st-when td { font-variant-numeric: tabular-nums; }
.st-tab:not(.st-only-when) tr:not(.st-when) + .st-when > * { border-top: 1px dashed var(--t-line, rgba(255,255,255,.18)); padding-top: 8px; }
.st-list + .st-only-when, .st-fix + .st-only-when { border-top: 1px dashed var(--t-line, rgba(255,255,255,.18)); margin-top: 10px; padding-top: 4px; }
.st-list { margin: 8px 0 0; padding-left: 0; list-style: none; font-size: 14px; color: var(--text); columns: 2 240px; }
.st-list li { margin: 2px 0; break-inside: avoid; overflow-wrap: anywhere; }
.st-fix { margin: 10px 0 4px; padding: 10px 12px; border-radius: var(--t-r, 10px); background: rgba(255,200,0,.1); border: 1px solid var(--yellow, #f5c518); font-size: 14px; color: var(--text); }
.st-fix ol { margin: 6px 0 0; padding-left: 20px; } .st-fix li { margin: 4px 0; line-height: 1.5; }
@media (max-width: 560px) {
  .st-hero { justify-content: center; text-align: center; } .st-row { justify-content: center; } .st-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .st-big { width: 88px; height: 88px; font-size: 46px; }
  .st-card { gap: 12px; padding: 14px; } .st-ico { width: 34px; height: 34px; font-size: 18px; }
  .st-tab th { white-space: normal; width: 42%; }
}
