/* Dashboard visual system. Login styles live in style.css. */
body.dashboard-active {
  background: #f5f7fb;
  color: #23314b;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.panel-app { --sidebar-width: 224px; }
.sidebar {
  width: var(--sidebar-width);
  background: #111e30;
  border-right: 1px solid #203048;
}
.panel-brand { height: 72px; padding: 0 22px; font-size: 17px; gap: 10px; letter-spacing: -.5px; flex-shrink: 0; }
.panel-brand img { width: 27px; height: 31px; }
.sidebar nav {
  padding: 12px 14px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #34445c transparent;
  overscroll-behavior: contain;
}
.sidebar nav::-webkit-scrollbar { width: 5px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sidebar nav::-webkit-scrollbar-thumb { background: #34445c; border-radius: 8px; }
.sidebar nav::-webkit-scrollbar-button { display: none; }
.nav-caption { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; color: #73849f; margin: 10px 12px 13px; }
.upcoming-caption { margin-top: 30px; }
.nav-item { height: 40px; margin: 3px 0; padding: 0 12px; gap: 12px; font-size: 12px; color: #b7c3d6; border-radius: 7px; }
.nav-item .ui-icon { width: 18px; height: 18px; stroke-width: 1.6; }
.nav-item.active { background: #2463eb; box-shadow: 0 3px 10px #040c1d20; }
.nav-item:hover:not(:disabled):not(.active) { background: #1c2c42; color: #fff; }
.nav-item:disabled { opacity: 1; color: #7687a2; }
.nav-soon { opacity: 1; font-size: 7px; color: #71839d; text-transform: none; letter-spacing: 0; background: #1e2d42; padding: 2px 4px; border-radius: 3px; }
.nav-group { margin: 3px 0; }
.nav-group summary { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; font-size: 12px; color: #96a7c0; cursor: pointer; list-style: none; border-radius: 7px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { background: #1b2a40; color: #e5edf8; }
.nav-group summary:focus-visible { outline: 2px solid #91b6ff; outline-offset: 2px; }
.nav-group summary .ui-icon { width: 12px; height: 12px; color: #758ba9; transition: transform .15s; }
.nav-group[open] summary .ui-icon { transform: rotate(90deg); }
.nav-group-items { margin: 2px 0 8px 11px; padding-left: 3px; border-left: 1px solid #2b3b52; }
.nav-group-items .nav-item { padding: 0 8px; font-size: 11px; gap: 9px; height: 34px; }
.nav-group-items .ui-icon { width: 15px; height: 15px; }
.sidebar-footer { margin: 0 19px; padding: 18px 4px; border-top: 1px solid #233148; color: #788ba6; font-size: 9px; flex-shrink: 0; gap: 7px; }
.workspace { margin-left: var(--sidebar-width); background: #f5f7fb; }
.topbar { height: 68px; padding: 0 28px; background: #fff; border-color: #e5eaf1; backdrop-filter: none; }
.global-search { width: min(490px, 56%); }
.global-search input { height: 36px; background: #f4f6fa; border: 1px solid #edf0f5; color: #31405b; border-radius: 7px; font-size: 11px; }
.global-search input::placeholder { color: #8b96a9; }
.global-search > .ui-icon { color: #8593aa; width: 16px; }
.global-search kbd { border-color: #dde3ed; color: #9aa4b5; font-size: 10px; }
.topbar-actions { gap: 17px; }
.icon-button { color: #6a7b96; border-radius: 8px; }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: #eff3fa; color: #2463eb; }
.topbar-divider { height: 25px; background: #edf0f5; }
.account-button { border: 1px solid transparent; border-radius: 8px; padding: 5px 8px 5px 5px; gap: 10px; }
.account-button:hover, .account-button[aria-expanded="true"] { background: #f5f7fb; border-color: #e8edf5; }
.avatar, .menu-avatar { display: grid; place-items: center; background: #edf2fe; color: #3564c6; border: 1px solid #dbe5fb; border-radius: 10px; font-size: 13px; font-weight: 650; width: 33px; height: 33px; }
.account-identity { text-align: left; display: grid; gap: 3px; }
.account-identity #admin-name { font-size: 11px; font-weight: 600; color: #35435a; }
.account-identity small { font-size: 9px; color: #94a0b1; }
.account-chevron { color: #8795aa; width: 11px; height: 11px; margin-left: 10px; transition: transform .15s; }
.account-button[aria-expanded="true"] .account-chevron { transform: rotate(-90deg); }
.top-popover { top: calc(100% + 13px); right: 0; padding: 20px; border: 1px solid #e2e8f1; border-radius: 12px; background: #fff; box-shadow: 0 16px 45px #2036571c, 0 3px 8px #20365708; color: #33415b; width: 290px; }
.top-popover::before { content: ""; position: absolute; right: 15px; top: -5px; width: 8px; height: 8px; background: white; border-left: 1px solid #e2e8f1; border-top: 1px solid #e2e8f1; transform: rotate(45deg); }
.top-popover strong { font-size: 12px; font-weight: 600; }
.top-popover p { font-size: 11px; color: #74829a; margin: 12px 0; }
.top-popover small { color: #8b97aa; font-size: 10px; }
.account-popover { width: 250px; padding: 18px 16px 9px; }
.popover-heading { display: flex; align-items: center; gap: 10px; }
.popover-heading > div { display: grid; gap: 4px; }
.menu-avatar { width: 38px; height: 38px; }
.session-pill { display: flex; align-items: center; gap: 6px; margin: 15px 0; color: #7d8da3; font-size: 10px; }
.session-pill > span { width: 5px; height: 5px; border-radius: 50%; background: #1cb88a; }
.logout-button { border: 0; border-top: 1px solid #edf0f5; color: #ad5260; font-size: 11px; padding: 12px 8px; gap: 9px; border-radius: 0 0 6px 6px; }
.logout-button:hover { background: #fff5f6; color: #be3b51; }
.connection-heading { display: flex; align-items: center; gap: 9px; }
.connection-heading .ui-icon { width: 18px; height: 18px; color: #5774a2; }
.dashboard-content { padding: 27px 28px 20px; max-width: 1480px; }
.page-heading { margin-bottom: 12px; gap: 15px; }
.page-heading h1 { font-size: 28px; letter-spacing: -.9px; line-height: 1.3; color: #17253e; font-weight: 700; margin-bottom: 5px; }
.page-heading p { color: #8390a5; font-size: 12px; }
.host-badge { background: #fff; border-color: #e5eaf2; padding: 10px 13px; border-radius: 8px; }
.host-badge strong { color: #4a5a72; font-size: 10px; }
.host-badge span:not(.host-dot) { color: #99a4b5; font-size: 9px; }
.host-dot { width: 7px; height: 7px; margin-top: 3px; }
.update-bar { font-size: 9px; color: #99a5b7; margin-bottom: 18px; }
.refresh-button { color: #788aa5; font-size: 10px; gap: 6px; }
.overview-grid { gap: 15px; margin-bottom: 18px; }
.resource-card { background: white; border-color: #e4e9f2; border-radius: 10px; padding: 20px 17px; gap: 14px; box-shadow: 0 2px 4px #25395502; align-items: center; min-height: 104px; }
.resource-icon { width: 42px; height: 42px; border-radius: 10px; }
.resource-icon .ui-icon { width: 23px; height: 23px; }
.resource-card h2 { color: #6d7b93; font-size: 11px; font-weight: 500; margin: 0 0 6px; }
.resource-card strong { color: #20304c; font-size: 24px; font-weight: 650; }
.resource-card p { color: #9aa5b6; font-size: 9px; margin-top: 6px; }
.planned-tag { color: #a0aabc; font-size: 8px; }
.surface { border-color: #e3e9f2; border-radius: 11px; box-shadow: 0 2px 5px #23354f02; }
.server-panel { padding: 18px 15px 11px; margin-bottom: 18px; }
.server-panel-header { padding: 0 3px 17px; gap: 15px; }
.section-title { gap: 10px; }
.section-title h2 { font-size: 14px; font-weight: 650; color: #293956; letter-spacing: -.2px; }
.section-title p { color: #96a2b5; font-size: 10px; }
.section-title > .ui-icon { width: 19px; height: 19px; }
.server-panel-header .section-title > .ui-icon { width: 21px; height: 21px; color: #7b8eac; }
.server-specs { color: #8998af; font-size: 9px; }
.server-specs .ui-icon { width: 14px; height: 14px; }
.metrics-grid { gap: 12px; }
.metric-card { background: #fcfdff; border-color: #edf1f7; border-radius: 8px; padding: 12px 10px 0; }
.metric-main { gap: 9px; min-height: 40px; margin-bottom: 12px; }
.metric-icon { width: 34px; height: 34px; border-radius: 8px; }
.metric-icon .ui-icon { width: 21px; height: 21px; }
.metric-main h3 { font-size: 10px; color: #78879f; }
.metric-main strong { font-size: 20px; font-weight: 650; color: #25354e; }
.metric-detail { font-size: 8px; color: #98a5b9; max-width: 80px; }
.sparkline-wrap { border-top-color: #f0f3f9; height: 49px; }
.sparkline { height: 40px; }
.metrics-caption { color: #a0aabd; font-size: 8px; margin-top: 10px; }
.dashboard-lower { gap: 18px; grid-template-columns: 1.2fr 1fr; }
.activity-panel, .quick-panel { padding: 18px 17px 12px; }
.activity-table th { background: #f7f9fc; color: #8a97aa; font-size: 9px; padding: 9px; border-bottom: 1px solid #edf1f7; }
.activity-table td { border-color: #f0f3f8; padding: 9px; font-size: 10px; }
.activity-table td:first-child { color: #8593a9; }
.activity-detail strong { color: #586c8a; font-size: 10px; }
.activity-detail small { color: #a3aec0; font-size: 9px; }
.panel-note { color: #a0acbd; font-size: 9px; }
.quick-grid { gap: 9px; }
.quick-action { min-height: 85px; border: 1px solid #eaf0f6; background: #fafcff; gap: 6px; border-radius: 8px; }
.quick-action > .ui-icon { width: 22px; height: 22px; }
.quick-action strong { font-size: 10px; color: #607492; }
.quick-action span { font-size: 8px; color: #a5afbf; }
.quick-action:disabled { opacity: .65; background: #fcfdff; }
.quick-action:enabled { background: var(--pale); border-color: var(--tint); }
.quick-action:enabled:hover { box-shadow: none; border-color: var(--accent); }
.quick-action:enabled strong { color: var(--accent); }
.dashboard-footer { color: #a1adbe; margin-top: 20px; font-size: 8px; }
@media (max-width: 1250px) {
  .panel-app { --sidebar-width: 208px; }
  .dashboard-content { padding: 23px 22px 18px; }
  .topbar { padding: 0 22px; }
  .resource-card { padding: 18px 13px; gap: 11px; }
  .resource-icon { width: 36px; height: 36px; }
  .metric-main { flex-wrap: wrap; }
  .metric-detail { font-size: 8px; }
}
@media (max-width: 1050px) {
  .dashboard-lower { grid-template-columns: 1fr; }
  .resource-card { min-height: 97px; }
  .metric-main { flex-wrap: nowrap; }
}
@media (max-width: 760px) {
  .panel-app { --sidebar-width: 224px; }
  .workspace { margin-left: 0; }
  .topbar { height: 60px; padding: 0 12px; gap: 6px; }
  .global-search { flex: 1; width: auto; }
  .topbar-actions { gap: 8px; }
  .account-button { padding: 3px; }
  .account-identity, .account-chevron { display: none; }
  .avatar { width: 30px; height: 30px; border-radius: 8px; }
  .top-popover { right: -47px; width: min(290px, calc(100vw - 28px)); }
  .top-popover::before { right: 57px; }
  .account-popover { right: 0; width: 245px; }
  .account-popover::before { right: 14px; }
  .dashboard-content { padding: 22px 15px 18px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 11px; }
  .host-badge { padding: 10px 12px; }
  .overview-grid { gap: 10px; margin-bottom: 14px; }
  .resource-card { min-height: 105px; padding: 16px 10px; gap: 10px; }
  .resource-icon { width: 33px; height: 36px; }
  .resource-card h2 { font-size: 10px; }
  .resource-card p { font-size: 8px; }
  .resource-card strong { font-size: 22px; }
  .server-panel { padding: 15px 10px 10px; }
  .metrics-grid { gap: 8px; }
  .metric-card { padding: 10px 8px 0; }
  .metric-main { flex-wrap: wrap; gap: 7px; min-height: 65px; margin-bottom: 4px; }
  .metric-main strong { font-size: 18px; }
  .metric-detail { max-width: 100%; }
  .server-panel-header { gap: 13px; }
  .server-specs { row-gap: 10px; }
  .activity-panel, .quick-panel { padding: 17px 12px 12px; }
  .activity-table td { padding: 10px 5px; }
  .activity-table th { padding: 9px 5px; }
  .dashboard-lower { gap: 14px; }
  .quick-action { min-height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-group summary .ui-icon, .account-chevron { transition: none; }
}
/* Keep supporting information readable at normal laptop/browser scaling. */
.global-search input { font-size: 12px; }
.account-identity #admin-name { font-size: 12px; }
.account-identity small { font-size: 10px; color: #77859a; }
.page-heading p { color: #718097; }
.update-bar { font-size: 10px; color: #7d8ba0; }
.resource-card h2 { font-size: 12px; color: #596a82; }
.resource-card p { font-size: 10px; color: #78869b; }
.section-title h2 { font-size: 15px; }
.section-title p { font-size: 11px; color: #78869b; }
.server-specs { font-size: 10px; color: #74839a; }
.metric-main h3 { font-size: 11px; color: #6b7a90; }
.metric-main strong { font-size: 22px; }
.metric-detail { font-size: 9px; color: #7b8aa1; }
.activity-table th { font-size: 10px; color: #738199; }
.activity-table td:first-child { font-size: 10px; color: #77869d; }
.activity-detail strong { font-size: 11px; }
.activity-detail small { font-size: 10px; color: #8391a6; }
.quick-action strong { font-size: 11px; }
.quick-action span { font-size: 9px; color: #8997aa; }
.top-popover p { font-size: 12px; color: #6c7c94; }
.top-popover small { font-size: 11px; color: #7e8ca1; }
.session-pill { font-size: 11px; }
.logout-button { font-size: 12px; }
@media(max-width:760px) {
  .global-search input { font-size: 10px; }
  .resource-card h2 { font-size: 11px; }
  .resource-card p { font-size: 9px; }
  .metric-main strong { font-size: 18px; }
  .server-specs { font-size: 9px; }
  .activity-table td:first-child { font-size: 9px; }
  .activity-detail strong, .activity-detail small { font-size: 9px; }
  .quick-action strong { font-size: 10px; }
}

/* Compact dashboard based on the supplied reference. */
.panel-app { --sidebar-width:233px; }
body.dashboard-active { color:#0b1733; background:#f5f7f9; }
.sidebar { width:var(--sidebar-width); background:linear-gradient(115deg,#14212d,#11202b); border-color:#243340; }
.panel-brand { height:61px; padding:0 17px; font-size:20px; gap:13px; border-bottom:1px solid #ffffff08; }
.panel-brand img { width:31px; height:35px; }
.sidebar nav { flex:0 1 auto; padding:14px 15px 0; }
.nav-item { height:46px; margin:0 0 3px; padding:0 8px; gap:19px; font-size:15px; color:#eef3fa; }
.nav-item .ui-icon { width:23px; height:23px; stroke-width:2; }
.nav-item.active { background:linear-gradient(110deg,#087dff,#0064ed); }
.nav-item:disabled { color:#d2dbe7; }
.nav-soon { font-size:8px; margin-left:auto; padding:0; background:none; color:#8397af; }
.sidebar-status { margin:76px 15px 25px; padding:0 14px 12px; border:1px solid #263847; border-radius:8px; background:#ffffff03; color:#edf4fc; flex-shrink:0; }
.sidebar-status-heading { display:flex; gap:11px; align-items:center; padding:14px 0; width:100%; border:0; border-bottom:1px solid #ffffff08; background:none; color:inherit; font:inherit; font-size:12px; }
.sidebar-status-heading .ui-icon { margin-left:auto; width:12px; height:12px; color:#aab8c8; }
.sidebar-status-heading .status-dot { width:10px; height:10px; background:#00bc83; border-radius:50%; }
.sidebar-status-heading .status-dot.unavailable { background:#f5a623; }
.sidebar-status dl { display:grid; grid-template-columns:1fr 1fr; row-gap:14px; font-size:12px; margin:12px 0 0; }
.sidebar-status dd { margin:0; text-align:right; }
.workspace { margin-left:var(--sidebar-width); background:radial-gradient(ellipse at top,#f9fafc,#f3f6f9); }
.topbar { height:61px; padding:0 23px; background:#ffffff80; border-color:#e2e8ef; }
.global-search { width:min(610px,65%); }
.global-search input { height:41px; background:#edf0f5; font-size:14px; border:0; color:#34465f; }
.global-search input::placeholder { color:#5b6d89; }
.global-search > .ui-icon { width:23px; color:#62738f; }
.global-search kbd { display:none; }
.topbar-actions { gap:20px; }
.avatar { width:39px; height:39px; border-radius:50%; background:linear-gradient(145deg,#071326 45%,#007aff); color:white; }
.account-identity #admin-name { font-size:14px; color:#0a1735; }
.account-identity small { display:none; }
.dashboard-content { max-width:1600px; padding:19px 21px 12px; position:relative; }
.page-heading { margin-bottom:20px; align-items:flex-start; }
.page-heading h1 { color:#07152f; font-size:32px; letter-spacing:-.7px; margin-bottom:5px; }
.page-heading p { color:#43536e; font-size:15px; }
.dashboard-clock { font-size:12px; color:#4a5e80; white-space:nowrap; padding-top:7px; }
.update-bar { margin-bottom:13px; }
[data-current-view="dashboard"] .update-bar { position:absolute; right:24px; top:55px; font-size:9px; margin:0; max-width:42%; }
[data-current-view="dashboard"] #update-state { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.overview-grid { gap:14px; margin-bottom:14px; }
.resource-card { text-align:left; min-height:128px; padding:15px 18px; gap:22px; align-items:flex-start; border-color:#e2e8f0; background:#ffffffdf; border-radius:7px; }
.resource-icon { width:64px; height:64px; border-radius:11px; flex-shrink:0; }
.resource-icon .ui-icon { width:35px; height:35px; }
.resource-card h2 { font-size:14px; font-weight:600; color:#0b1735; margin:5px 0 8px; }
.resource-card strong { font-size:31px; color:#0b1735; }
.resource-card p { color:#0675ff; font-size:13px; margin-top:9px; }
.planned-tag { top:8px; right:10px; font-size:8px; }
.resource-information-row { display:grid; grid-template-columns:minmax(0,2.07fr) minmax(300px,1fr); gap:14px; margin-bottom:14px; }
.surface { background:#ffffffdf; border:1px solid #e2e8f0; border-radius:7px; box-shadow:none; }
.server-panel { margin:0; padding:14px 19px 15px; min-width:0; }
.server-panel-header { padding:0 0 11px; border-bottom:1px solid #edf0f5; flex-wrap:nowrap; }
.section-title { gap:16px; }
.section-title h2 { font-size:17px; font-weight:650; color:#0a1631; }
.section-title > .ui-icon, .server-panel-header .section-title > .ui-icon { width:25px; height:25px; color:#007aff; }
#server-status-copy { display:none; }
.server-specs { display:none; }
.resource-controls { display:flex; align-items:center; gap:16px; margin-left:auto; }
.metrics-live { font-size:13px; color:#009e65; border:1px solid #d7f3e8; padding:6px 11px; border-radius:20px; white-space:nowrap; }
.metrics-live.unavailable { color:#aa6500; border-color:#f7e1bd; }
.history-ranges { display:flex; border:1px solid #e4eaf2; border-radius:5px; overflow:hidden; }
.history-ranges button { padding:8px 14px; color:#78879c; background:#fbfcfe; border:0; border-right:1px solid #e4eaf2; font:inherit; font-size:12px; cursor:not-allowed; }
.history-ranges button:last-child { border:0; }
.metrics-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding-top:14px; }
.metric-card { padding:0; background:transparent; border:0; }
.metric-main { display:flex; flex-direction:column; gap:8px; text-align:center; margin:0; min-height:0; }
.metric-icon { display:none; }
.metric-main > div { display:flex; flex-direction:column-reverse; align-items:center; gap:9px; position:relative; }
.metric-main h3 { font-size:15px; font-weight:600; margin:0; color:#0b1733; }
.metric-main strong { width:108px; height:108px; display:grid; place-items:center; font-size:22px; color:#0b1733; background:transparent; }
.metric-main strong::before { display:none; }
.resource-gauge { width:108px; height:108px; position:absolute; top:0; pointer-events:none; fill:none; stroke-width:9; transform:rotate(-90deg); }
.gauge-track { stroke:#e9edf4; }
.gauge-progress { stroke:#087aff; stroke-linecap:round; }
#gauge-memory { stroke:#00b477; }
#gauge-disk { stroke:#a758ed; }
#gauge-network { stroke:#ffa600; }
.metric-card:last-child .gauge-track { stroke:#ffeed7; }
#metric-network { font-size:15px; }
.metric-detail { width:auto; max-width:none; font-size:13px; color:#4a628c; text-align:center; margin:0; min-height:22px; }
#detail-network { white-space:normal; }
.metrics-caption { font-size:9px; color:#8290a4; margin-top:8px; }
[data-current-view="dashboard"] .sparkline-wrap { display:none; }
.host-information { padding:17px 20px 10px; min-width:0; }
.host-information .section-heading { padding-bottom:13px; border-bottom:1px solid #edf0f5; margin-bottom:0; }
.host-information .section-title > .ui-icon { color:#576982; }
.host-information dl { display:grid; grid-template-columns:minmax(95px,1fr) minmax(0,1.1fr); font-size:13px; margin:0; }
.host-information dt,.host-information dd { margin:0; padding:10px 0; border-bottom:1px solid #edf0f5; overflow-wrap:anywhere; }
.host-information dt { color:#40567b; }
.host-information dd { color:#132343; }
.dashboard-lower { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:14px; }
.activity-panel,.services-panel,.alerts-panel { padding:17px 19px 13px; min-width:0; }
.dashboard-lower .section-heading { padding-bottom:12px; margin-bottom:0; border-bottom:1px solid #edf0f5; }
[data-current-view="dashboard"] .activity-table { width:100%; min-width:0; table-layout:fixed; }
.activity-table thead { display:none; }
.activity-table td { padding:11px 5px; font-size:12px; }
.activity-table td:first-child { width:26%; font-size:10px; color:#587198; }
.activity-table td:nth-child(2) { width:7%; }
.activity-type { font-size:0; }
.activity-type .ui-icon { width:10px; height:10px; fill:#007aff; stroke:none; background:#007aff; border-radius:50%; }
.activity-detail strong { font-size:12px; color:#18345b; }
.activity-detail small { font-size:11px; color:#62738c; }
.panel-note { font-size:9px; color:#7e8da2; line-height:1.5; }
.service-row { min-height:38px; display:flex; align-items:center; gap:12px; font-size:12px; color:#173459; }
.service-row > .ui-icon { width:23px; height:23px; color:#007aff; }
.service-row > span:first-of-type { flex:1; min-width:0; overflow-wrap:anywhere; }
.service-badge { padding:5px 8px; font-size:11px; border-radius:6px; text-transform:capitalize; white-space:nowrap; }
.service-badge.healthy { background:#e3f9ef; color:#008853; }
.service-badge.attention { background:#fff0d7; color:#a96800; }
.service-list { padding-top:9px; }
.alerts-panel > .text-button { margin-top:10px; font-size:11px; }
.dashboard-quick-actions { margin-top:14px; padding:12px 18px 14px; }
.dashboard-quick-actions .section-heading { margin-bottom:12px; }
.dashboard-quick-actions .section-title { gap:10px; }
.dashboard-quick-actions h2 { font-size:14px; }
.dashboard-quick-actions .quick-grid { grid-template-columns:repeat(8,minmax(0,1fr)); gap:13px; }
.dashboard-quick-actions .quick-action { min-height:61px; padding:6px; gap:5px; background:#fff; border:1px solid #e2e8f1; border-radius:5px; }
.dashboard-quick-actions .quick-action:disabled { opacity:1; }
.dashboard-quick-actions .quick-action > .ui-icon { width:23px; height:23px; color:#007aff; }
.dashboard-quick-actions .quick-action strong { font-size:11px; font-weight:400; color:#102344; white-space:normal; }
.dashboard-quick-actions .quick-action span { font-size:8px; color:#8190a5; }
.dashboard-quick-actions .quick-action:enabled:hover { background:#f0f6ff; border-color:#007aff; }
.dashboard-footer { margin-top:10px; font-size:8px; }
[data-current-view="monitoring"] .resource-information-row,[data-current-view="system"] .resource-information-row { grid-template-columns:1fr; }
[data-current-view="monitoring"] .server-specs,[data-current-view="system"] .server-specs { display:flex; }
[data-current-view="monitoring"] .resource-controls,[data-current-view="system"] .resource-controls { display:none; }
@media(min-width:1260px) { .dashboard-lower > .surface { min-height:285px; } }
@media(max-width:1250px) {
 .panel-app { --sidebar-width:210px; }
 .panel-brand { font-size:18px; }
 .nav-item { gap:13px; font-size:13px; }
 .dashboard-content { padding:20px; }
 .resource-card { gap:12px; padding:15px 12px; }
 .resource-icon { width:48px; height:53px; }
 .resource-information-row { grid-template-columns:1fr; }
 .host-information dl { grid-template-columns:160px 1fr; }
 .dashboard-lower { grid-template-columns:1fr 1fr; }
 .activity-panel { grid-column:1 / -1; }
 .dashboard-quick-actions .quick-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .sidebar-status { margin-top:28px; }
}
@media(max-height:900px) { .sidebar-status { margin-top:20px; } .sidebar nav { flex:1; } }
@media(max-width:760px) {
 .workspace { margin-left:0; }
 .topbar { padding:0 12px; }
 .global-search { width:auto; flex:1; }
 .global-search input { font-size:11px; }
 .topbar-actions { gap:8px; }
 .dashboard-content { padding:20px 14px; }
 .page-heading { gap:8px; margin-bottom:16px; }
 .page-heading h1 { font-size:29px; }
 .page-heading p { font-size:13px; }
 .dashboard-clock { padding-top:0; font-size:11px; }
 [data-current-view="dashboard"] .update-bar { position:static; max-width:none; margin-bottom:12px; }
 [data-current-view="dashboard"] #update-state { max-width:230px; }
 .resource-card { min-height:125px; padding:14px 10px; gap:10px; }
 .resource-icon { width:34px; height:42px; }
 .resource-icon .ui-icon { width:25px; height:25px; }
 .resource-card h2 { font-size:11px; }
 .resource-card p { font-size:10px; }
 .resource-card strong { font-size:27px; }
 .server-panel { padding:15px 12px; }
 .server-panel-header { flex-wrap:wrap; gap:12px; }
 .section-title { gap:10px; }
 .section-title h2 { font-size:16px; }
 .resource-controls { margin-left:0; gap:10px; }
 .history-ranges button { padding:6px 10px; }
 .metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:18px; }
 .metric-detail { font-size:11px; }
 .host-information { padding:17px; }
 .host-information dl { grid-template-columns:120px 1fr; font-size:12px; }
 .dashboard-lower { grid-template-columns:1fr; }
 .activity-panel { grid-column:auto; }
 .dashboard-quick-actions .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .sidebar-status { margin-top:20px; }
}
/* Final spacing keeps the full overview visible on a desktop. */
.page-heading { margin-bottom:11px; }
.section-title h2 { font-size:18px; }
.host-information dt,.host-information dd { padding:9px 0; }
[data-current-view="dashboard"] .metrics-caption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#gauge-network { display:none; }
.service-row { font-size:13px; }
.service-badge { font-size:12px; }
.dashboard-quick-actions .quick-action strong { font-size:12px; }
.dashboard-quick-actions .section-title h2 { font-size:14px; }
@media(max-width:760px) { .page-heading { margin-bottom:16px; } .section-title h2 { font-size:16px; } }
.activity-table td:first-child { width:7%; }
.activity-table td:nth-child(2) { width:65%; }
.activity-table td:last-child { width:28%; text-align:right; white-space:nowrap; font-size:11px; color:#587198; }
.activity-detail strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.5; }
@media(min-width:1260px) { .dashboard-lower > .surface { min-height:307px; } }

/* Shared application shell: identical across every view and detail tab. */
.panel-app { --sidebar-width:240px; --header-height:68px; --page-padding:24px; }
.panel-brand { height:var(--header-height); }
.sidebar { width:var(--sidebar-width); }
.sidebar nav { flex:1; padding:14px 15px; }
.nav-item { height:44px; margin:0 0 2px; padding:0 8px; }
.nav-item.active:hover { background:linear-gradient(110deg,#087dff,#0064ed); }
.sidebar-status { display:block; margin:20px 15px 20px; }
.sidebar-status dl { row-gap:10px; }
.workspace { display:flex; flex-direction:column; margin-left:var(--sidebar-width); min-height:100dvh; background:radial-gradient(ellipse at top,#f9fafc,#f3f6f9); }
.topbar { height:var(--header-height); flex-shrink:0; padding:0 var(--page-padding); }
.dashboard-content { flex:1; width:100%; max-width:1600px; padding:var(--page-padding); }
.dashboard-footer { flex-shrink:0; margin:0; padding:14px var(--page-padding); min-height:45px; font-size:10px; color:#7789a3; border-top:1px solid #e5ecf5; }
@media(max-width:1250px) { .panel-app { --sidebar-width:210px; --page-padding:20px; } }
@media(max-width:760px) {
 .panel-app { --header-height:61px; --page-padding:14px; }
 .workspace { margin-left:0; }
 .topbar { padding:0 12px; }
 .dashboard-content { padding:20px var(--page-padding); }
 .dashboard-footer { gap:8px; font-size:9px; }
}
