* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; font: 16px/1.5 system-ui, sans-serif; color: #edf4fb; background: #0d1421; }
body { margin: 0; }
main { max-width: 1220px; margin: auto; padding: 42px 22px; }
header span, a { color: #74e1c7; }
header span { font: 700 .75rem ui-monospace, monospace; letter-spacing: .12em; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; margin: 12px 0; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
header p, section p { color: #a7b8cc; }
section { background: #162131; border: 1px solid #31435a; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; border-bottom: 1px solid #31435a; }
.tabs button { border-radius: 7px 7px 0 0; background: transparent; color: #a7b8cc; }
.tabs button[aria-selected="true"] { color: #74e1c7; background: #162131; border-color: #74e1c7; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 4px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.summary-grid article { display: grid; gap: 4px; padding: 15px 18px; background: #101a29; border: 1px solid #31435a; border-radius: 10px; }
.summary-grid span { color: #a7b8cc; font-size: .85rem; }
.summary-grid strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.server { display: grid; gap: 11px; width: 100%; padding: 16px; border: 1px solid #31435a; border-radius: 12px; background: #101a29; color: inherit; text-align: left; }
.server:hover, .server[aria-pressed="true"] { border-color: #74e1c7; background: #142630; }
.card-head { display: flex; align-items: center; gap: 9px; min-width: 0; }
.server-icon { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #1b413f; color: #74e1c7; }
.ip { overflow-wrap: anywhere; }
.server-ip { margin-left: auto; color: #a7b8cc; font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.arrow { color: #74e1c7; font-size: 1.3rem; }
.os-line { color: #a7b8cc; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resource { display: grid; gap: 3px; min-width: 0; }
.disk-head { display: flex; justify-content: space-between; gap: 8px; color: #a7b8cc; font-size: .85rem; }
.disk-head strong { color: #edf4fb; }
.resource small, .disk-size { color: #a7b8cc; font-size: .78rem; }
.load-line { color: #a7b8cc; font-size: .82rem; }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: #2a394c; accent-color: #74e1c7; }
progress::-webkit-progress-bar { background: #2a394c; }
progress::-webkit-progress-value { background: #74e1c7; }
progress::-moz-progress-bar { background: #74e1c7; }
progress.hot::-webkit-progress-value { background: #ffc981; }
progress.hot::-moz-progress-bar { background: #ffc981; }
.statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; white-space: nowrap; border-radius: 6px; padding: 3px 7px; font-size: .77rem; }
.good { background: #1b403a; color: #9af3d7; }
.warn { background: #473526; color: #ffd4a2; }
.muted { background: #263349; color: #d1dbef; }
.live-detail { margin-top: 18px; }
.live-detail .section-title { align-items: center; margin-bottom: 14px; }
.system-updates { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #31435a; }
.system-updates h4 { margin: 0 0 6px; }
.system-updates p { margin: 5px 0 10px; }
.system-updates .table-wrap { max-height: 320px; }
.eyebrow { color: #74e1c7; font: 700 .72rem ui-monospace, monospace; letter-spacing: .1em; margin: 0 0 3px; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.switcher { display: flex; gap: 6px; flex-wrap: wrap; }
.switcher button[aria-pressed="true"] { border-color: #74e1c7; color: #74e1c7; }
.empty { color: #a7b8cc; }
.danger { background: #492b37; color: #ffdce5; border-color: #744155; }
.danger:hover { background: #623447; }
.warning-text { color: #ffd09d; }
.dashboard-nav { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.socket-status { display: inline-block; color: #a7b8cc; font-size: .82rem; }
.socket-status.connected { color: #74e1c7; }
.enroll-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; margin: 12px 0 18px; }
.result-card { margin: 18px 0; border-color: #74e1c7; background: #122b32; }
.result-card code { overflow-wrap: anywhere; }
h3 { margin: 8px 0 0; font-size: 1rem; }
input, button, select { border: 1px solid #385068; border-radius: 7px; padding: 8px 12px; font: inherit; color: inherit; background: #101a29; }
button { width: fit-content; cursor: pointer; background: #74e1c7; color: #0b2526; font-weight: 650; }
button.secondary { background: #223248; color: #edf4fb; }
button:disabled { opacity: .6; cursor: wait; }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.steps, .commands { color: #c4d1df; padding-left: 24px; }
.steps li, .commands li { margin: 8px 0; }
summary { cursor: pointer; color: #74e1c7; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #0c1726; padding: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 10px; border-bottom: 1px solid #30445e; white-space: nowrap; }
#message { min-height: 1.5rem; color: #ffd09d; }
:focus-visible { outline: 2px solid #74e1c7; outline-offset: 3px; }
@media (max-width: 620px) {
  main { padding: 28px 14px; }
  .form-row, .enroll-form, .fleet, .resource-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-nav { align-items: stretch; flex-direction: column-reverse; }
  .dashboard-nav > button { align-self: flex-end; }
  .controls, .live-detail .section-title { align-items: flex-start; flex-direction: column; }
}

/* Dashboard: hierarchy, responsive spacing and accessible focus states. */
main { max-width: 1440px; padding: 32px clamp(16px, 3vw, 40px); }
body > main > header { margin-bottom: 22px; }
body > main > header h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; }
body > main > header p { max-width: 680px; margin-top: 8px; }
.dashboard-nav { align-items: center; margin: 0 0 14px; }
.tabs { gap: 4px; margin: 0; border-bottom: 1px solid #31435a; }
.tabs button { min-height: 44px; padding: 8px 13px; border-radius: 7px 7px 0 0; }
.tabs button[aria-selected="true"] { background: #162131; box-shadow: inset 0 -2px #74e1c7; }
.dashboard-nav > #logout { margin-left: auto; }
#panel-dashboard { padding: clamp(16px, 2vw, 24px); }
#panel-dashboard > .section-title { align-items: center; margin-bottom: 8px; }
#panel-dashboard > .section-title h2 { font-size: 1.3rem; }
#panel-dashboard > p { margin: 8px 0 16px; }
.socket-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 3px; }
.socket-status::before { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #a7b8cc; content: ""; }
.socket-status.connected { color: #9af3d7; }
.socket-status.connected::before { background: #74e1c7; }
.summary-grid { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 10px; }
.summary-grid article { min-height: 88px; align-content: space-between; padding: 13px 15px; background: #101a29; }
.summary-grid span { font-size: .82rem; }
.summary-grid strong { font-size: 1.75rem; line-height: 1.15; }
.fleet { gap: 12px; margin-top: 14px; }
.server { min-height: 0; gap: 10px; padding: 16px; border-radius: 10px; transition: border-color .15s ease, background-color .15s ease; }
.server:hover { border-color: #68819e; }
.server[aria-pressed="true"] { border-color: #74e1c7; background: #142630; }
.server:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #8cebd5; outline-offset: 3px; }
.server-icon { width: 30px; height: 30px; }
.card-head { gap: 9px; }
.server .ip { font-size: 1rem; }
.server-ip { font-size: .78rem; }
.os-line { font-weight: 600; }
.load-line { font-size: .82rem; }
.resource-grid { gap: 12px; }
.resource { gap: 4px; }
.disk-head { font-size: .84rem; }
progress { height: 8px; }
.statuses { gap: 8px; }
.badge { border-radius: 5px; padding: 3px 7px; font-size: .78rem; font-weight: 650; }
.good { background: #1b403a; color: #b4f4df; }
.warn { background: #473526; color: #ffe0b8; }
.muted { background: #263349; color: #e0e8f4; }
.inventory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid #2c3e55; }
.inventory-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; min-width: 0; }
.inventory-metric strong { color: #edf4fb; font-size: .92rem; font-variant-numeric: tabular-nums; }
.inventory-metric > span { color: #a7b8cc; font-size: .76rem; overflow-wrap: anywhere; }
.disk-size { padding-top: 1px; }
#dashboard-empty { margin: 18px 0 2px; padding: 18px; border: 1px dashed #52667f; border-radius: 8px; text-align: center; }
.live-detail { padding: 0; border: 1px solid #344b65; border-radius: 10px; background: #162131; }
.vps-accordion-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: #edf4fb; cursor: pointer; }
.vps-accordion-summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.vps-accordion-summary #live-title { overflow-wrap: anywhere; font-size: 1.05rem; }
.vps-accordion-summary #live-meta { color: #b7c6d8; font-size: .88rem; text-align: right; }
.vps-accordion-summary:focus-visible { outline: 3px solid #8cebd5; outline-offset: -3px; border-radius: 10px; }
.live-vps-accordion[open] > .vps-accordion-summary { border-bottom: 1px solid #344b65; }
.vps-accordion-body { padding: clamp(14px, 2vw, 20px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.service-controls { justify-content: flex-end; }
.service-controls input[type="search"] { width: min(100%, 420px); }
.system-updates { padding: 14px; border: 1px solid #344b65; border-radius: 8px; background: #101a29; }
.updates-accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; color: #edf4fb; font-weight: 700; }
.updates-accordion > summary::marker { color: #74e1c7; }
.updates-accordion > summary:focus-visible { outline: 3px solid #8cebd5; outline-offset: 4px; border-radius: 3px; }
.updates-count { color: #bdcada; font-size: .85rem; font-weight: 500; text-align: right; }
.updates-accordion[open] > summary { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #344b65; }
.updates-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.updates-filters .update-filter { min-height: 40px; }
.updates-filters .update-filter[aria-pressed="true"] { border-color: #74e1c7; color: #a4f1dc; background: #14302f; }
.system-update-table { max-height: 320px; overflow: auto; }
.system-update-table table { min-width: 680px; }
.system-updates p { color: #bdcada; font-size: .88rem; }
.controls { margin-top: 14px; }
.switcher button { min-height: 42px; border-radius: 6px; background: #121e2e; color: #d0dbea; }
.switcher button[aria-pressed="true"] { border-color: #74e1c7; color: #a4f1dc; }
.table-wrap { border: 1px solid #344b65; border-radius: 8px; }
.service-table-region { container: service-list / inline-size; min-width: 0; }
.service-table-scroll { max-height: min(62vh, 560px); overflow: auto; overscroll-behavior: contain; }
.service-table { width: 100%; min-width: 0; table-layout: fixed; }
.service-table th, .service-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.service-table th:nth-child(1) { width: 8%; }
.service-table th:nth-child(2) { width: 19%; }
.service-table th:nth-child(3) { width: 9%; }
.service-table th:nth-child(4) { width: 17%; }
.service-table th:nth-child(5) { width: 10%; }
.service-table th:nth-child(6) { width: 11%; }
.service-table th:nth-child(7) { width: 14%; }
.service-table th:nth-child(8) { width: 12%; }
.service-table-scroll th { position: sticky; top: 0; z-index: 1; }
.service-cards { display: none; }
.service-card { min-width: 0; margin-bottom: 10px; padding: 14px; border: 1px solid #344b65; border-radius: 8px; background: #101a29; }
.service-card h4 { margin: 0 0 10px; font-size: 1rem; overflow-wrap: anywhere; }
.service-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 0; }
.service-fields > div { min-width: 0; }
.service-fields dt { color: #a7b8cc; font-size: .78rem; }
.service-fields dd { margin: 2px 0 0; color: #edf4fb; overflow-wrap: anywhere; }
@container service-list (max-width: 1200px) {
  .service-table-scroll { display: none; }
  .service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 10px; }
}
.service-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 2px; }
.service-pagination button { min-width: 100px; min-height: 42px; }
.pagination-summary { color: #bdcada; font-size: .88rem; text-align: center; }
th { position: sticky; top: 0; background: #17263a; color: #e7eef7; font-size: .84rem; }
td { color: #d0dbea; font-size: .86rem; }
tbody tr:hover { background: #19283b; }
@media (max-width: 900px) {
  main { padding-inline: 20px; }
  .fleet { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  main { padding: 22px 14px; }
  body > main > header { margin-bottom: 18px; }
  #panel-dashboard, .vps-accordion-body { padding: 14px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .summary-grid article { min-height: 78px; padding: 11px; }
  .server { padding: 14px; }
  .dashboard-nav { align-items: stretch; flex-direction: column-reverse; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 6px; }
  .tabs button { flex: 0 0 auto; }
  .dashboard-nav > #logout { align-self: flex-end; }
  .server-ip { display: none; }
  .section-title { align-items: flex-start; }
  #panel-dashboard > .section-title { align-items: center; }
  .disk-head { font-size: .8rem; }
  .inventory-summary { gap: 6px; }
  .inventory-metric { display: grid; gap: 1px; }
  .inventory-metric > span { font-size: .72rem; }
  .service-pagination { gap: 8px; }
  .service-pagination button { min-width: 84px; padding-inline: 8px; }
  .pagination-summary { font-size: .78rem; }
  .service-fields { grid-template-columns: 1fr; gap: 7px; }
  .updates-filters { gap: 6px; }
  .updates-filters .update-filter { flex: 1 1 auto; }
  .vps-accordion-summary { align-items: flex-start; padding: 14px; }
  .vps-accordion-summary #live-meta { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Dashboard shell and overview inspired by the supplied reference. */
body.dashboard-authenticated > main { max-width: none; min-height: 100vh; margin: 0; padding: 0; }
body.dashboard-authenticated > main > header { display: none; }
body.dashboard-authenticated > main > #message { position: fixed; z-index: 20; top: 66px; right: 20px; min-height: 0; max-width: min(520px, calc(100vw - 32px)); padding: 0; }
.app-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 28px; height: 100vh; padding: 17px 10px; border-right: 1px solid #1e2d42; background: #0b1422; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #edf4fb; font-size: 1.05rem; font-weight: 750; white-space: nowrap; }
.brand strong { color: #45dec3; }
.brand svg { width: 30px; height: 24px; overflow: visible; }
.brand svg path { fill: none; stroke: #45dec3; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.side-nav { display: grid; gap: 4px; }
.side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-left: 3px solid transparent; border-radius: 7px; background: transparent; color: #d0dbea; text-align: left; font-size: .9rem; font-weight: 500; }
.side-nav button:hover { background: #142337; }
.side-nav button[aria-selected="true"] { border-left-color: #45dec3; background: #12383b; color: #eafffb; }
.nav-icon { display: inline-grid; place-items: center; width: 20px; flex: none; color: #afc2d7; font-size: 1.2rem; }
.side-nav button[aria-selected="true"] .nav-icon { color: #45dec3; }
.app-workspace { min-width: 0; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 54px; padding: 8px 24px; border-bottom: 1px solid #1e2d42; background: rgba(11, 20, 34, .96); backdrop-filter: blur(12px); }
.global-search { display: flex; align-items: center; gap: 10px; width: min(680px, 65vw); min-height: 38px; padding: 0 10px 0 13px; border: 1px solid #344b65; border-radius: 8px; background: #101b2b; color: #aebed0; }
.global-search > span { font-size: 1.3rem; line-height: 1; }
.global-search input { width: 100%; min-width: 0; padding: 5px 0; border: 0; outline: 0; background: transparent; font-size: .86rem; }
.global-search input:focus-visible { outline: none; }
.global-search:focus-within { border-color: #45dec3; box-shadow: 0 0 0 2px rgba(69, 222, 195, .18); }
.global-search kbd { flex: none; padding: 2px 6px; border: 1px solid #344b65; border-radius: 4px; color: #9eafc3; font: .68rem ui-monospace, monospace; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar .socket-status { white-space: nowrap; }
.user-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid #40556f; border-radius: 50%; background: #283a52; color: #edf4fb; font-size: .72rem; font-weight: 700; }
.topbar #logout { min-height: 36px; padding: 5px 11px; }
.workspace-content { width: 100%; max-width: 1620px; margin: 0 auto; padding: 18px 24px 36px; }
#panel-dashboard { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.overview-heading h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.overview-heading p { margin: 2px 0 0; color: #b7c6d8; }
.overview-heading button { min-height: 40px; padding: 7px 14px; white-space: nowrap; }
.overview-heading button span { margin-right: 4px; font-size: 1.1rem; }
.summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.summary-grid article { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 12px 16px; border-color: #344b65; border-radius: 9px; background: #101b2b; }
.summary-grid article > div { display: grid; gap: 1px; }
.summary-grid article > div > span { color: #b7c6d8; font-size: .8rem; }
.summary-grid article strong { font-size: 1.6rem; line-height: 1.1; }
.kpi-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 10px; font-size: 1.35rem; }
.online-icon { background: #103b37; color: #48e1c1; }
.offline-icon { background: #202d40; color: #bac7d8; }
.update-icon { background: #3b3122; color: #ffbd62; }
.service-icon { background: #202d40; color: #c9d5e5; }
.fleet-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.fleet-heading h2 { margin: 0; font-size: 1.25rem; }
.fleet-heading > span { color: #b7c6d8; font-size: .82rem; }
.fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 16px; }
.server { gap: 9px; min-height: 0; padding: 15px 16px; border-color: #344b65; border-radius: 10px; background: #101b2b; }
.server[aria-pressed="true"] { border-color: #45dec3; background: #10262e; box-shadow: 0 0 0 1px rgba(69, 222, 195, .14); }
.server:hover { border-color: #57718e; }
.server .ip { font-size: 1rem; }
.server .os-line { font-size: .82rem; }
.server .load-line { font-size: .78rem; }
.inventory-summary { padding-top: 8px; }
.inventory-metric strong { font-size: .86rem; }
.inventory-metric > span { font-size: .72rem; }
.server .statuses { margin-top: 1px; }
.live-detail { margin-top: 12px; }
.live-tabs { margin-top: 12px; }
.service-controls { justify-content: flex-start; }
.service-controls .switcher { gap: 8px; }
.service-controls .switcher button { min-height: 38px; padding: 6px 12px; }
.service-controls .switcher button[aria-pressed="true"] { background: #143434; }
.topbar .socket-status::before { background: #a2b1c3; }
.topbar .socket-status.connected::before { background: #45dec3; }
.workspace-content > section:not(#panel-dashboard) { margin: 0; }
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .app-sidebar { align-items: center; padding-inline: 7px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span, .side-nav button > span:last-child { display: none; }
  .side-nav { width: 100%; }
  .side-nav button { justify-content: center; padding-inline: 4px; border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav button[aria-selected="true"] { border-bottom-color: #45dec3; }
  .nav-icon { width: auto; }
  .workspace-content { padding-inline: 18px; }
  .summary-grid { gap: 9px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .app-sidebar { position: sticky; z-index: 11; top: 54px; width: 100%; height: auto; padding: 5px 8px; border-right: 0; border-bottom: 1px solid #1e2d42; }
  .brand { display: none; }
  .side-nav { display: flex; overflow-x: auto; }
  .side-nav button { width: auto; min-width: 44px; flex: 1 0 44px; }
  .topbar { padding-inline: 12px; }
  .global-search { width: 100%; }
  .topbar-actions { gap: 8px; }
  .topbar .socket-status { max-width: 120px; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; }
  .user-avatar { display: none; }
  .workspace-content { padding: 16px 12px 28px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .overview-heading button { align-self: flex-end; }
  .summary-grid article { gap: 9px; padding: 10px; }
  .kpi-icon { width: 38px; height: 38px; font-size: 1.05rem; }
  .summary-grid article > div > span { font-size: .72rem; }
  .summary-grid article strong { font-size: 1.35rem; }
}

/* High-density monitoring dashboard */
:root { --page: #081322; --surface: #0e1c2d; --surface-2: #122238; --line: #304760; --text: #f4f7fb; --muted: #b5c0d0; --mint: #47e0c1; --amber: #ffc36b; }
body.dashboard-authenticated { background: radial-gradient(circle at 58% 24%, #10233a 0, var(--page) 42%, #07111e 100%); }
.app-shell { grid-template-columns: 200px minmax(0, 1fr); }
.app-sidebar { gap: 25px; padding: 18px 9px; background: rgba(7, 17, 30, .94); }
.side-nav button { min-height: 39px; border-left-width: 2px; border-radius: 7px; font-size: .86rem; }
.side-nav button[aria-selected="true"] { background: linear-gradient(90deg, rgba(25, 94, 91, .76), rgba(28, 76, 86, .72)); }
.topbar { min-height: 53px; padding-inline: 28px; background: rgba(7, 17, 30, .86); }
.workspace-content { max-width: none; padding: 17px 24px 28px; }
.overview-heading { margin-bottom: 17px; }
.overview-heading h1 { font-size: 1.9rem; }
.overview-heading p { font-size: .8rem; }
.overview-heading button { border: 0; border-radius: 7px; background: linear-gradient(135deg, #52e5cf, #3bd8cb); box-shadow: 0 8px 26px rgba(42, 218, 195, .12); }
.summary-grid { gap: 14px; margin-bottom: 18px; }
.summary-grid article { min-height: 81px; background: linear-gradient(135deg, rgba(18, 36, 56, .94), rgba(10, 25, 42, .94)); }
.summary-grid article > div { display: flex; flex-direction: column-reverse; }
.summary-grid article strong { font-size: 1.75rem; }
.kpi-icon { width: 56px; height: 54px; border-radius: 11px; }
.fleet-heading { margin-bottom: 9px; }
.fleet-heading h2 { font-size: 1.25rem; }
.fleet { gap: 15px; margin-bottom: 16px; }
.server { position: relative; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 20px; overflow: hidden; background: linear-gradient(135deg, rgba(15, 35, 52, .97), rgba(10, 25, 42, .97)); }
.server[aria-pressed="true"] { background: linear-gradient(135deg, rgba(12, 43, 48, .94), rgba(10, 28, 42, .97)); }
.server .card-head { padding-bottom: 0; }
.server .server-icon { width: 40px; height: 40px; }
.server .ip { font-size: 1.05rem; }
.server .server-ip { order: 3; margin-left: 0; color: var(--muted); }
.server .arrow { order: 4; }
.server .os-line { margin-left: 49px; margin-top: -17px; }
.server .load-line:first-of-type { padding-top: 9px; border-top: 1px solid var(--line); }
.server .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 36%; }
.server .inventory-summary { position: absolute; right: 20px; bottom: 38px; width: 32%; grid-template-columns: 1fr; padding: 8px 0 0 16px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.server .statuses { position: absolute; top: 20px; right: 20px; }
.server .disk-size { display: none; }
.server .load-line:last-of-type { display: none; }
.badge.good { border-radius: 999px; background: #164c43; color: #c3f8e9; }
.dashboard-detail-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(290px, .85fr); gap: 15px; align-items: start; }
.live-detail { margin: 0; background: linear-gradient(145deg, rgba(18, 36, 56, .96), rgba(10, 25, 42, .96)); }
.vps-accordion-summary { display: none; }
.live-vps-accordion[open] > .vps-accordion-summary { border: 0; }
.vps-accordion-body { padding: 14px 16px 16px; }
.vps-accordion-body::before { display: block; margin-bottom: 1px; color: var(--text); font-size: 1.15rem; font-weight: 750; content: "Serviços e containers"; }
.vps-accordion-body::after { display: block; position: absolute; }
.system-updates { display: none; }
.service-controls { margin: -28px 0 12px 45%; justify-content: flex-end; }
.service-controls .switcher { flex-wrap: nowrap; overflow-x: auto; }
.service-controls .switcher button { min-height: 32px; padding: 4px 10px; white-space: nowrap; font-size: .75rem; }
.service-table-scroll { max-height: 260px; }
.service-table { min-width: 620px; }
.service-table th:nth-child(1) { width: 14%; }
.service-table th:nth-child(2) { width: 31%; }
.service-table th:nth-child(3) { width: 18%; }
.service-table th:nth-child(4) { display: none; }
.service-table th:nth-child(5), .service-table th:nth-child(6), .service-table th:nth-child(7) { width: 12%; }
.service-table th:nth-child(8) { display: none; }
.service-table td:nth-child(4), .service-table td:nth-child(8) { display: none; }
.service-table th, .service-table td { padding: 7px 9px; font-size: .76rem; }
.attention-panel { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(18, 36, 56, .96), rgba(10, 25, 42, .96)); }
.panel-heading h2, .projects-heading h2 { margin: 0; font-size: 1.15rem; }
.panel-heading p, .projects-heading p { margin: 0; color: var(--muted); font-size: .76rem; }
.attention-list { display: grid; gap: 8px; margin-top: 10px; }
.attention-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 61px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9, 23, 39, .7); color: var(--text); text-align: left; cursor: pointer; }
.attention-item:hover:not(:disabled) { border-color: var(--mint); background: rgba(17, 48, 58, .9); }
.attention-item:disabled { opacity: 1; cursor: default; }
.attention-icon, .project-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(32, 107, 102, .38); color: var(--mint); font-size: 1.2rem; }
.attention-item > div { display: grid; min-width: 0; }
.attention-item strong { font-size: .86rem; }
.attention-item small { color: var(--muted); font-size: .7rem; }
.attention-item progress { margin-top: 6px; }
.attention-arrow { color: #e1e9f3; font-size: 1.4rem; }
.projects-panel { margin: 18px 0 0; padding: 0; border: 0; background: transparent; }
.projects-panel.is-empty { display: none; }
.projects-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 10px; }
.projects-heading > span { color: var(--muted); font-size: .75rem; }
.projects-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.project-card { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 80px; padding: 12px 16px; border-color: var(--line); background: linear-gradient(145deg, rgba(18, 36, 56, .96), rgba(10, 25, 42, .96)); color: var(--text); text-align: left; }
.project-card:hover { border-color: var(--mint); background: #102b36; }
.project-card > span:last-child { display: grid; min-width: 0; }
.project-card strong { overflow: hidden; text-overflow: ellipsis; }
.project-card small { color: var(--muted); font-size: .75rem; }
.project-icon { flex: none; border-radius: 8px; }
@media (max-width: 1180px) {
  .dashboard-detail-grid { grid-template-columns: 1fr; }
  .attention-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .server .resource-grid { padding-right: 0; }
  .server .inventory-summary { position: static; width: auto; grid-template-columns: repeat(3, 1fr); padding-left: 0; border-left: 0; }
  .server .statuses { position: static; }
  .service-controls { margin: 10px 0 12px; justify-content: flex-start; }
  .attention-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dashboard-detail-grid { display: block; }
  .attention-panel { margin-top: 12px; }
  .projects-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-card { min-height: 68px; padding: 9px; }
}
