.shell:has(.servers-panel:not([hidden])) { width: min(1800px, calc(100% - 48px)); }
@media (max-width: 600px) { .shell:has(.servers-panel:not([hidden])) { width: calc(100% - 24px); } }
.servers-panel { margin-top: 24px; padding: 24px; border: 1px solid #25425c; border-radius: 16px; background: #0a1724; }
.servers-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.server-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.server-view-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid #326079; border-radius: 9px; background: #07111c; }
.server-view-switch button { padding: 7px 11px; border: 0; border-radius: 6px; color: #b8c9d8; background: transparent; font: inherit; cursor: pointer; }
.server-view-switch button.active, .server-view-switch button[aria-pressed="true"] { color: #fff; background: #17465c; }
.server-view-switch button:focus-visible { outline: 2px solid #8ed8ff; outline-offset: 2px; }
.servers-heading h1 { margin: 5px 0 8px; }
.servers-heading p, #server-message, .server-time, .server-card small, .inwx-card small { color: #a9bdd0; }
#server-refresh { padding: 10px 16px; border: 1px solid #326ca5; border-radius: 9px; color: #eef5fc; background: #123d6b; font: inherit; cursor: pointer; }
#server-refresh:disabled { opacity: .6; cursor: wait; }
.server-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.server-card, .inwx-card { padding: 20px; border: 1px solid #25425c; border-radius: 12px; background: #07111c; }
.server-card { min-width: 0; }
.server-card-heading { min-height: 135px; overflow-wrap: anywhere; }
.server-card h2 { margin: 8px 0; font-size: 19px; line-height: 1.35; }
.server-metrics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.server-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 10px; margin: 0; box-sizing: border-box; border: 1px solid #20374b; border-radius: 8px; align-content: start; font-size: 12px; }
.server-metric > span { color: #a9bdd0; }
.server-metric strong { text-align: right; }
.server-metric small, .server-metric meter { grid-column: 1 / -1; width: 100%; }
.server-metric meter { height: 10px; accent-color: #65c4ad; }
.server-warning { color: #f0c878; }
.server-ok { color: #85d1b7; }
.server-time { margin-bottom: 5px; font-size: 13px; }
.inwx-card { margin-top: 16px; }
.inwx-card strong { font-size: 32px; }
.server-table-source { color: #a9bdd0; font-size: 13px; }
.server-table-scroll { overflow-x: auto; border: 1px solid #25425c; border-radius: 10px; background: #07111c; }
.server-table { width: 100%; min-width: 820px; border-collapse: collapse; color: #eef5fc; font-size: 13px; }
.server-table th, .server-table td { padding: 10px 12px; border-bottom: 1px solid #20374b; text-align: right; vertical-align: middle; }
.server-table th { color: #a9bdd0; font-weight: 600; white-space: nowrap; }
.server-table th:first-child, .server-table td:first-child { min-width: 220px; text-align: left; }
.server-table tr:last-child td { border-bottom: 0; }
.server-table td strong, .server-table td small { display: block; }
.server-table td small { margin-top: 3px; color: #91a5b8; font-size: 11px; }
.server-table td meter { display: block; width: 78px; height: 8px; margin: 4px 0 0 auto; accent-color: #65c4ad; }
.server-table-missing { color: #a9bdd0; }
.server-table .server-warning { color: #f0c878; }
@media (max-width: 700px) { .server-heading-actions { width: 100%; justify-content: space-between; } .server-table th, .server-table td { padding: 9px; } }
@media (max-width: 600px) { .servers-panel { padding: 16px; } .server-card { padding: 16px; } .server-card-heading { min-height: 0; } }
.server-card a { color: #8ed8ff; overflow-wrap: anywhere; }
.server-address { color: #a9bdd0; font-size: 14px; }
.server-services { display: grid; gap: 8px; padding: 0; margin: 12px 0; list-style: none; font-size: 14px; }
.server-details { margin-top: 18px; border-top: 1px solid #25425c; padding-top: 12px; overflow-wrap: anywhere; }
.server-details summary { cursor: pointer; color: #8ed8ff; font-weight: 600; }
.server-details p { font-size: 14px; }
.server-details ul { padding-left: 18px; }
.server-details li { margin-bottom: 16px; }
.server-details > a { display: block; margin-top: 12px; }

/* Kuma status visible without opening technical server details. */
.kuma-overview { grid-column: 1 / -1; border: 1px solid #326ca5; padding: 18px; border-radius: 12px; }
.kuma-overview h2 { margin: 0 0 12px; font-size: 24px; }
.kuma-panel { margin: 20px 0; border-top: 1px solid #25425c; padding-top: 12px; }
.kuma-panel h3 { font-size: 14px; margin: 4px 0 12px; color: #a9bdd0; font-weight: 600; }
.kuma-panel > summary { cursor: pointer; font-size: 14px; color: #a9bdd0; font-weight: 600; padding: 4px 0; }
.kuma-panel > summary:focus-visible { outline: 2px solid #8ed8ff; outline-offset: 4px; }
.kuma-monitor { padding: 10px 12px; margin: 8px 0; border: 1px solid #25425c; border-radius: 9px; overflow-wrap: anywhere; }
.kuma-monitor > summary { cursor: pointer; font-size: 13px; display: grid; grid-template-columns: 8px 9px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 24px; line-height: 1.5; list-style: none; }
.kuma-monitor > summary::-webkit-details-marker { display: none; }
.kuma-monitor > summary::before { content: '›'; color: #a9bdd0; transition: transform .15s; }
.kuma-monitor[open] > summary::before { transform: rotate(90deg); }
.kuma-status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; vertical-align: middle; background: #f0c878; }
.kuma-status-dot.is-up { background: #4ade80; }
.kuma-status-dot.is-down { background: #f87171; }
.kuma-monitor > summary:focus-visible { outline: 2px solid #8ed8ff; outline-offset: 4px; border-radius: 3px; }
.kuma-monitor > a { color: #8ed8ff; }
.kuma-monitor > :not(summary) { margin-top: 10px; }
.kuma-monitor > small, .kuma-monitor > a { display: block; }
.kuma-monitor p { margin-bottom: 0; font-size: 14px; }
.kuma-down { color: #ff8e97; }
.kuma-history { font-size: 13px; }
.kuma-history summary { cursor: pointer; padding: 6px 0; }
.kuma-history p { margin: 8px 0; }

/* Compact monitoring summary; full counts remain in expandable details. */
.kuma-overview { border-color: rgba(130, 155, 180, .22); padding: 12px 16px; border-radius: 8px; }
.kuma-overview h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.kuma-overview-summary { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.kuma-overview-item { margin: 0; font-size: 14px; line-height: 1.6; }
.kuma-overview-label { margin-right: 8px; color: #a8b8c8; }
.kuma-overview-details { margin-top: 8px; font-size: 13px; line-height: 1.5; }
.kuma-overview-details > summary { cursor: pointer; color: #a8b8c8; }
.kuma-overview-details p { margin: 6px 0; }
@media (max-width: 600px) { .kuma-overview-summary { display: grid; gap: 4px; } }

/* Quiet informational states; red is reserved for confirmed critical checks. */
.servers-panel .server-warning { color: #a9bdd0; }
.servers-panel .kuma-status-dot { background: #8294a6; }
.servers-panel .kuma-status-dot.is-up { background: #659d8c; }
.servers-panel .kuma-status-dot.is-down { background: #f87171; }
