/* Operations pages share the game hub’s typography, colors and chrome. */
.ops-page { min-height: 100vh; display: flex; flex-direction: column; }
.ops-page .container { max-width: 1080px; }
.ops-page .topbar { border-bottom: 1px solid #252525; position: static; }
.ops-page .nav-inner { min-height: 72px; height: auto; }
.ops-page .nav-inner nav { position: static; min-height: 0; border: 0; background: transparent; }
.ops-page .nav-inner nav > a, .ops-page .view-link { padding-inline: 12px; }
.ops-shell { padding-top: clamp(48px, 8vw, 100px); padding-bottom: 54px; flex: 1; }
.ops-page .footer-inner > p, .ops-page .footer-inner > a:last-child { color: #a1a1aa; }
.ops-intro { margin-bottom: 28px; animation: ops-enter .4s ease-out both; }
@keyframes ops-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ops-intro h1 { font-size: clamp(36px, 8vw, 72px); line-height: 1.06; font-weight: 900; letter-spacing: -.055em; }
.ops-copy { color: #b3b8c3; font-size: 14px; line-height: 1.6; }
.ops-banner, .ops-panel { border: 1px solid #26303c; border-radius: 8px; background: #0c121c; }
.ops-banner { --signal: #aeb6c4; margin-top: 28px; padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.ops-summary, .ops-panel h2 { font-size: clamp(18px, 3.2vw, 24px); font-weight: 700; line-height: 1.24; letter-spacing: -.02em; }
.ops-banner #checked { margin-top: 4px; color: #b3b8c3; font-size: 13px; }
.ops-banner .button { padding-inline: 14px; box-shadow: none; }
.ops-beacon { display: grid; place-items: center; width: 57px; height: 57px; border: 1px solid color-mix(in srgb, var(--signal) 28%, transparent); color: var(--signal); border-radius: 50%; background: radial-gradient(circle, currentColor 5%, transparent 62%); background: radial-gradient(circle, color-mix(in srgb, var(--signal) 15%, transparent), transparent 62%); }
.ops-beacon span { width: 13px; height: 13px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 13%, transparent); }
[data-state="operational"] { --signal: #72e6a1; }
[data-state="degraded"] { --signal: #ffd285; }
[data-state="outage"] { --signal: #ff9797; }
.ops-panel { margin-block: 18px; padding: clamp(16px, 3.5vw, 28px); }
.ops-panel > h2 { margin-bottom: 16px; }
.ops-gate { max-width: 640px; }
.ops-gate > .button, .ops-gate > .ops-form { margin-top: 18px; }
.service-list, .incident-updates { padding: 0; margin: 0; list-style: none; }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #25303c; }
.service-row strong { font-size: 14px; }
.service-description { display: block; color: #b3b8c3; font-size: 12px; line-height: 1.4; margin-top: 2px; }
.ops-pill { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-weight: 600; font-size: 12px; color: var(--signal, #b3b8c3); }
.ops-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.incident { border-top: 1px solid #25303c; padding: 14px 0; overflow-wrap: anywhere; }
.incident:last-child { padding-bottom: 0; }
.incident-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.incident-heading h3 { font-size: 16px; }
.incident-updates { margin: 12px 0 0; padding-left: 14px; border-left: 1px solid #394657; }
.incident-updates li { padding: 8px 0; color: #b3b8c3; font-size: 13px; }
.incident-updates strong { color: #fff; margin-right: 10px; }
.incident-updates p, .incident > .ops-copy { white-space: pre-line; margin-top: 5px; }
.ops-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin: 0; }
.ops-stats div { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 3px; background: #121b2a; border: 1px solid #25303c; border-radius: 7px; padding: 12px; }
.ops-stats dt { color: #bcc3cf; font-size: 12px; }
.ops-stats dd { font-size: 25px; font-weight: 700; margin: 0; }
.ops-form { display: grid; gap: 13px; margin-top: 12px; max-width: 650px; }
.ops-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.ops-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ops-form input, .ops-form select, .ops-form textarea { background: #141e2f; color: #fff; border: 1px solid #526077; border-radius: 6px; color-scheme: dark; min-height: 44px; min-width: 0; width: 100%; font: inherit; padding: 9px 11px; }
.ops-form textarea { resize: vertical; }
.ops-form .button { justify-self: start; padding-inline: 16px; }
.ops-form .button:disabled, .ops-banner .button:disabled, .ops-gate .button:disabled { opacity: .60; cursor: progress; transform: none; }
.ops-enrollment { margin-top: 15px; display: grid; justify-items: start; gap: 8px; color: #d5dae4; font-size: 13px; overflow-wrap: anywhere; }
.ops-enrollment img { display: block; background: #fff; border: 6px solid #fff; border-radius: 6px; }
.ops-enrollment code { border-radius: 5px; background: #141e2f; padding: 8px; }
.ops-message { margin-top: 16px; color: #fff; font-size: 14px; }
.ops-message[data-kind="error"] { color: #ffb1b1; }
.ops-message[data-kind="success"] { color: #72e6a1; }
@media (max-width: 640px) {
  .ops-page .nav-inner { gap: 6px; }
  .ops-page .nav-inner nav > a, .ops-page .view-link { padding-inline: 7px; }
  .ops-banner { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .ops-banner .button { grid-column: 1 / -1; justify-self: stretch; }
  .ops-beacon { width: 44px; height: 44px; }
  .ops-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-intro { animation: none; }
}

.ops-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ops-subnav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; font-size: 13px; font-weight: 600; border: 1px solid #394657; border-radius: 6px; }
.ops-subnav a:hover { border-color: #ef4444; color: #fca5a5; }
.ops-chart { border-top: 1px solid #25303c; margin-top: 22px; padding-top: 17px; }
.ops-chart-head, .ops-profile-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.ops-chart-head h3, .ops-profile-title h3 { font-size: 19px; line-height: 1.35; }
.ops-chart-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-chart-controls label { display: grid; gap: 3px; color: #bcc3cf; font-size: 12px; }
.ops-chart-controls select, .ops-search input { appearance: auto; padding: 8px 10px; min-height: 44px; min-width: 0; background: #141e2f; border: 1px solid #526077; border-radius: 6px; color: #fff; color-scheme: dark; font: inherit; }
.ops-chart-total { margin-top: 13px; font-weight: 700; font-size: 22px; }
.ops-plot { margin: 11px 0; }
.ops-bars { background: repeating-linear-gradient(to top,#25303c 0 1px, transparent 1px 25%); height: 120px; display: flex; gap: clamp(2px, .8vw, 8px); padding: 0 4px; }
.ops-column { position: relative; display: flex; align-items: end; justify-content: center; flex: 1 1 0; min-width: 0; }
.ops-column span { display: block; width: 100%; max-width: 38px; height: var(--bar-height); min-height: 1px; background: #f87171; border-radius: 3px 3px 0 0; }
.ops-column:hover span { background: #fecaca; }
.ops-chart-dates { display: flex; justify-content: space-between; gap: 4px; margin-top: 5px; color: #bcc3cf; font-size: 12px; }
.ops-chart-data summary { display: list-item; min-height: 44px; padding: 11px 0; cursor: pointer; color: #e7ebf1; font-size: 13px; }
.ops-breakdown { margin-top: 12px; display: grid; gap: 7px; }
.ops-breakdown h4 { margin: 0 0 2px; font-size: 14px; }
.ops-breakdown-row { display: grid; grid-template-columns: 92px minmax(0,1fr) 42px; align-items: center; gap: 9px; color: #dce1e9; font-size: 12px; }
.ops-breakdown-row strong { text-align: right; }
.ops-breakdown-track { height: 6px; border-radius: 4px; background: #25303c; }
.ops-breakdown-track i { display: block; height: 100%; width: var(--bar-width); border-radius: inherit; background: #f87171; }
.ops-search { display: flex; gap: 9px; }
.ops-search input { flex: 1; font-size: 14px; }
.ops-search button, .ops-paging .button, .ops-profile-title .button { padding-inline: 12px; box-shadow: none; }
.ops-count { margin: 11px 0 3px; }
.ops-player-list { display: grid; gap: 4px; padding: 0; margin: 0; list-style: none; }
.ops-player-button { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto; align-items: center; gap: 8px; text-align: left; width: 100%; min-height: 44px; color: #bcc3cf; background: #101926; border: 1px solid #26303c; border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13px; overflow-wrap: anywhere; }
.ops-player-button strong { color: #fff; }
.ops-player-button:hover { border-color: #ef4444; }
.ops-open { color: #fca5a5; }
.ops-paging { display: flex; gap: 8px; margin-top: 12px; }
.ops-paging button:disabled { opacity: .5; cursor: default; transform: none; }
.ops-profile { background: #101926; border: 1px solid #394657; border-radius: 8px; margin-top: 20px; padding: clamp(12px,3vw,22px); overflow-wrap: anywhere; }
.ops-profile-info { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: 14px; margin: 15px 0 0; }
.ops-profile-info dt, .ops-profile-stats dt { color: #bcc3cf; font-size: 12px; }
.ops-profile-info dd, .ops-profile-stats dd { margin: 2px 0 0; font-size: 14px; }
.ops-profile-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(85px,1fr)); gap: 8px; margin: 0; }
.ops-profile-stats div { padding: 8px; background: #141e2f; border-radius: 5px; }
.ops-profile-stats dd { font-weight: 700; font-size: 18px; }
.ops-profile-section { border-top: 1px solid #394657; margin-top: 17px; padding-top: 13px; }
.ops-profile-section h4 { margin: 0 0 8px; font-size: 15px; }
.ops-profile-section > .ops-copy { margin-bottom: 8px; }
.ops-table-scroll { overflow: auto; }
.ops-table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.ops-table th, .ops-table td { padding: 8px; border-bottom: 1px solid #283647; vertical-align: top; }
.ops-table th { color: #b8c2d1; white-space: nowrap; font-weight: 600; }
.ops-table td { color: #e2e8f0; min-width: 64px; }
.ops-table td:nth-child(3) { max-width: 295px; }
.ops-inline-button { background: none; border: 0; padding: 0; min-height: 36px; color: #fca5a5; text-decoration: underline; text-align: left; font: inherit; }
@media (max-width: 640px) {
  .ops-chart-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ops-chart-controls select { font-size: 13px; }
  .ops-player-button { grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; }
  .ops-player-button span:nth-child(2) { grid-column: 1; }
  .ops-player-button .ops-open { grid-row: 1 / 3; grid-column: 2; }
}
