body.resource-view .summary, body.resource-view #dataSource, body.resource-view #snmpCommunity, body.resource-view #snmpPort { display: none !important; }
body.resource-view #refreshInterval, body.resource-view #flowRefreshInterval, body.resource-view .custom-select:has(#interfaceFilter), body.resource-view .custom-select:has(#statusFilter), body.resource-view #refreshBtn { display: none !important; }
.router-resource { grid-column: 1 / -1; min-width: 0; width: 100%; }
.resource-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 10px 0 16px; }
.resource-heading h2 { margin: 0 0 6px; font-size: 23px; }
.resource-heading p { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.resource-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.resource-actions label { display: flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.router-resource .resource-actions input { width: 18px; min-width: 18px; max-width: 18px; flex: 0 0 18px; height: 18px; margin: 0; padding: 0; }
.resource-status-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
[data-resource-status] { color: #13734e; font-weight: 600; }
[data-resource-status].resource-warning { color: #ad6416; }
[data-resource-note] { font-size: 13px; color: var(--warn); }
[data-resource-note]:empty { display: none; }
.resource-overview { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-block: 1px solid var(--line); gap: 24px; margin: 20px 0; padding: 18px 0; }
.resource-overview span, .resource-overview small { display: block; color: var(--muted); font-size: 12px; }
.resource-overview strong { display: block; margin-top: 8px; font-size: 18px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.resource-overview small { margin-top: 6px; }
.resource-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.resource-metric { --resource-color: #2878d7; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.resource-cpu { grid-column: 1 / -1; }
.resource-cores { grid-column: 1 / -1; min-width: 0; }
.resource-cores .resource-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.resource-cores h3 { margin: 0; font-size: 15px; font-weight: 600; }
[data-core-count], [data-core-note] { color: var(--muted); font-size: 12px; }
.resource-core-grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 20px 12px; padding-top: 18px; }
.resource-core-grid:empty { display: none; }
.resource-core { display: flex; align-items: center; flex-direction: column; gap: 8px; min-width: 0; }
.resource-core-donut { position: relative; width: 112px; height: 112px; }
.resource-core canvas { display: block; width: 112px; height: 112px; }
.resource-core .resource-center { gap: 4px; }
.resource-core .resource-center strong { font-size: 18px; }
.resource-core > small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.resource-memory { --resource-color: #009f89; }
.resource-disk { --resource-color: #e6a024; }
.resource-group-heading { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.resource-metric h3 { margin: 0; font-size: 15px; font-weight: 600; }
.resource-breakdown { display: grid; grid-template-columns: 176px minmax(0,1fr); align-items: center; gap: 24px; padding-top: 16px; }
.resource-donut { position: relative; width: 176px; height: 176px; }
.resource-donut canvas { display: block; width: 176px; height: 176px; }
.resource-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; text-align: center; }
.resource-center span, .resource-center small { color: var(--muted); font-size: 11px; max-width: 112px; overflow-wrap: anywhere; }
.resource-center strong { color: var(--text); font-size: 20px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.resource-details { min-width: 0; }
.router-resource table { width: 100%; table-layout: fixed; border-collapse: collapse; background: none; margin: 0; border-radius: 0; font-size: 12px; }
.router-resource thead th { background: none; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; text-align: left; padding: 0 4px 12px; }
.router-resource thead th:first-child { width: 43%; }
.router-resource thead th:nth-child(2) { width: 29%; }
.router-resource thead th:last-child { width: 28%; text-align: right; }
.router-resource tbody th, .router-resource tbody td { background: none; padding: 16px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; text-align: left; }
.router-resource tbody th { font-weight: 500; }
.router-resource td { font-variant-numeric: tabular-nums; }
.resource-swatch { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: middle; background: var(--resource-color); }
.resource-swatch-free { background: var(--line); box-shadow: inset 0 0 0 1px var(--muted); }
.router-resource td.resource-share { text-align: right; font-size: 11px; }
.resource-metric meter { display: block; width: 100%; height: 5px; margin-top: 6px; accent-color: var(--resource-color); }
.resource-metric meter[hidden] { display: block; visibility: hidden; }
.resource-metric meter::-webkit-meter-bar { height: 5px; background: var(--line); border: 0; border-radius: 0; }
.resource-metric meter::-webkit-meter-optimum-value { background: var(--resource-color); }
.resource-metric meter::-moz-meter-bar { background: var(--resource-color); }
.resource-metric [data-part="free"] meter { --resource-color: #85939e; }
.router-resource dl { margin: 0; }
.resource-detail-meta > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 4px 0; font-size: 12px; }
.resource-cpu-meta { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.router-resource dt { color: var(--muted); }
.router-resource dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-variant-numeric: tabular-nums; }
.resource-system { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.resource-system h3 { margin: 0 0 16px; font-size: 16px; }
.resource-system dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 36px; }
.resource-system dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
body.theme-dark [data-resource-status] { color: #7ed7b0; }
body.theme-dark [data-resource-status].resource-warning { color: #edb967; }
@media(min-width:641px) and (max-width:1100px) {
  .resource-core-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .resource-memory .resource-breakdown, .resource-disk .resource-breakdown { grid-template-columns: 1fr; }
  .resource-memory .resource-donut, .resource-disk .resource-donut { margin-inline: auto; }
}
@media(max-width:640px) {
  .resource-core-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resource-metrics { grid-template-columns: 1fr; }
  .resource-breakdown { grid-template-columns: 1fr; gap: 16px; }
  .resource-donut { margin-inline: auto; }
  .resource-cpu-meta { grid-template-columns: 1fr; gap: 0; }
  .resource-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
  .resource-overview > div:first-child { grid-column: 1 / -1; }
  .resource-overview strong { font-size: 19px; }
  .resource-system dl { grid-template-columns: 1fr; }
  .resource-heading h2 { font-size: 21px; }
}
