:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1c2031;
  background: #f6f7fb;
  --ink: #1c2031;
  --muted: #616a7e;
  --line: #e3e6ef;
  --line-strong: #d6dbe8;
  --accent: #5c42c9;
  --accent-ink: #4a32a8;
  --accent-soft: #f0ecfe;
  --surface: #fff;
  --rail: #161a2d;
  --positive: #17694c;
  --positive-bg: #e8f6ef;
  --warning: #8d500c;
  --warning-bg: #fff2dd;
  --danger: #a43142;
  --danger-bg: #fcecef;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1,h2,h3,p,dl,dd,figure { margin: 0; }
h1 { font-size: clamp(1.75rem, 2.5vw, 2.18rem); letter-spacing: -.045em; line-height: 1.1; font-weight: 690; }
h2 { font-size: 1rem; letter-spacing: -.022em; font-weight: 690; }
h3 { font-size: .88rem; font-weight: 680; }
p { line-height: 1.5; }
small,.muted { color: var(--muted); }
button,input,select,.button { font: inherit; }
button,.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 36px; padding: .46rem .76rem;
  border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer;
  text-decoration: none; font-size: .81rem; font-weight: 620; white-space: nowrap;
}
button:hover,.button:hover { background: var(--accent-ink); }
button:disabled { cursor: default; opacity: .52; }
.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.secondary:hover { background: #f6f5fc; border-color: #c8bdeb; }
.icon-button { min-width: 36px; padding: .42rem; }
.icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:is(button,a,input,select,[tabindex="0"]):focus-visible { outline: 2px solid #7655e7; outline-offset: 3px; }
input,select { width: 100%; min-width: 0; min-height: 36px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: .43rem .57rem; font-size: .81rem; }
label { display: grid; gap: .29rem; font-size: .73rem; font-weight: 640; color: #465067; text-align: left; }
.login { max-width: 30rem; margin: clamp(2rem, 13vh, 8rem) auto; padding: 1.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.login .brand { margin-bottom: 1.65rem; }
.login h1 { margin-bottom: .45rem; }
.login form { margin-block: 1.25rem .65rem; display: grid; gap: .72rem; }
.brand { display: flex; align-items: center; gap: .56rem; font-size: .91rem; white-space: nowrap; letter-spacing: -.025em; }
.brand img { width: 29px; height: auto; object-fit: contain; }
.brand strong { font-weight: 710; }
.skip-link { position: fixed; z-index: 4; inset: .65rem auto auto .65rem; transform: translateY(-180%); background: white; padding: .6rem .85rem; color: var(--ink); }
.skip-link:focus { transform: none; }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.workspace[data-collapsed="true"] { grid-template-columns: 66px minmax(0, 1fr); }
#sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.18rem .83rem .84rem; background: var(--rail); color: white; scrollbar-width: thin; }
.rail-top { display: flex; align-items: center; justify-content: space-between; padding-inline: .25rem; gap: .15rem; }
.rail-toggle { min-height: 32px; min-width: 31px; padding: .3rem; background: transparent; border-color: transparent; color: #c9d0e4; }
.rail-toggle:hover { background: #31354f; color: white; }
#navigation { display: grid; gap: .85rem; }
.nav-group { display: grid; gap: .14rem; }
.nav-title { color: #9da7c0; font-size: .62rem; text-transform: uppercase; letter-spacing: .105em; font-weight: 670; padding: 0 .58rem .21rem; }
.nav-group button { min-width: 0; width: 100%; min-height: 33px; justify-content: flex-start; text-align: left; padding: .38rem .52rem; background: none; border-color: transparent; color: #cdd4e6; font-size: .76rem; gap: .57rem; font-weight: 530; }
.nav-group button:hover { background: #292f48; color: white; }
.nav-group button[aria-current="page"] { color: #fff; background: #3b3168; border-color: #6a5492; font-weight: 660; }
.nav-group button[aria-current="page"] .icon { color: #cfbdfb; }
.identity { margin-top: auto; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: .48rem; padding: .62rem .24rem 0; border-top: 1px solid #363c55; }
.identity-copy { display: grid; gap: .13rem; min-width: 0; }
.identity strong { font-size: .74rem; }
.identity small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .65rem; color: #b6bed4; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 31px; aspect-ratio: 1; border-radius: 9px; background: #463973; color: #f6f0ff; font-size: .74rem; font-weight: 700; }
[data-collapsed="true"] .rail-top { justify-content: center; flex-direction: column; gap: .62rem; }
[data-collapsed="true"] .brand span,[data-collapsed="true"] .nav-label,[data-collapsed="true"] .nav-title,[data-collapsed="true"] .identity-copy { display: none; }
[data-collapsed="true"] .nav-group button { justify-content: center; }
[data-collapsed="true"] .identity { grid-template-columns: 1fr; justify-items: center; }
.main { min-width: 0; width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 clamp(1.1rem, 2.7vw, 2.65rem) 2rem; }
.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: .55rem; border-bottom: 1px solid var(--line); font-size: .73rem; color: var(--muted); }
#breadcrumb { font-weight: 650; }
.projection-status { display: flex; gap: .43rem; align-items: center; text-align: right; }
.projection-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #288767; flex: 0 0 6px; }
.projection-status[data-tone="warning"]::before { background: #bc751e; }
.projection-status[data-tone="muted"]::before { background: #8b93a6; }
.page-header { margin: 1.45rem 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.page-header p { font-size: .83rem; margin-top: .36rem; }
.page-actions { display: flex; align-items: center; gap: .45rem; }
.filters,.commands { display: flex; flex-wrap: wrap; align-items: end; gap: .45rem .56rem; }
.filters { padding: .68rem .75rem; margin-bottom: .9rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.filters label { flex: 1 1 115px; max-width: 230px; }
.filters label[data-field="search"],.filters label[data-field="actor"] { flex-basis: 160px; }
.filter-actions { display: flex; gap: .38rem; }
.filters .filter-actions button { font-size: .76rem; min-height: 35px; }
.period-options { display: inline-flex; align-items: center; gap: .15rem; padding: .18rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.period-options button { min-height: 28px; padding: .2rem .52rem; background: transparent; color: var(--muted); border-color: transparent; font-size: .74rem; }
.period-options button:hover,.period-options button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .64rem; margin-bottom: .88rem; }
.metric { min-width: 0; display: grid; align-content: start; gap: .43rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .72rem .8rem .76rem; }
.metric-label { display: flex; align-items: center; gap: .37rem; color: var(--muted); font-size: .7rem; line-height: 1.3; font-weight: 620; min-height: 1.18rem; }
.metric-label .icon { width: 14px; height: 14px; flex-basis: 14px; color: var(--accent); }
.metric strong { font-size: clamp(1.3rem, 2vw, 1.78rem); letter-spacing: -.048em; line-height: 1.05; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric small { font-size: .64rem; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); gap: .8rem; margin-bottom: .85rem; align-items: stretch; }
.dashboard-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; padding: .83rem .95rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
#results > .panel { margin-bottom: .8rem; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem; margin-bottom: .65rem; }
.panel-head p { font-size: .72rem; margin-top: .22rem; }
.chart { display: block; width: 100%; height: auto; overflow: visible; min-height: 124px; }
.chart-grid { stroke: #e8eaf2; stroke-width: 1; }
.chart-axis { fill: #606981; font-size: 10px; }
.series-0 { fill: #7355dd; }
.series-1 { fill: #a696ee; }
.series-2 { fill: #319143; }
.series-line-0,.series-line-1 { fill: none; stroke: #7355dd; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.series-line-1 { stroke: #319143; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem .75rem; color: var(--muted); font-size: .66rem; padding-bottom: .18rem; }
.legend span { display: flex; align-items: center; gap: .31rem; }
.swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: #7355dd; }
.swatch-1 { background: #a696ee; }
.swatch-2 { background: #319143; }
.series-empty { color: var(--muted); font-size: .77rem; padding: .85rem 0; }
.chart-summary,.fine-print { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.chart-summary { margin-top: .35rem; }
.breakdown { display: grid; gap: .55rem; margin-top: .25rem; }
.break-row { display: grid; grid-template-columns: minmax(5rem, 1.2fr) minmax(3.5rem, 1.5fr) auto; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 560; }
.break-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
meter { width: 100%; height: .45rem; border: 0; }
meter::-webkit-meter-bar { background: #efedf7; border: 0; border-radius: 8px; }
meter::-webkit-meter-optimum-value { background: #7659db; border-radius: 8px; }
meter::-moz-meter-bar { background: #7659db; border-radius: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: .34rem; margin-top: .65rem; }
.badge { display: inline-flex; align-items: center; gap: .31rem; width: max-content; max-width: 100%; padding: .18rem .47rem; border-radius: 20px; background: #eef0f6; color: #4c566d; font-size: .68rem; font-weight: 630; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.badge[data-tone="positive"] { background: var(--positive-bg); color: var(--positive); }
.badge[data-tone="warning"] { background: var(--warning-bg); color: var(--warning); }
.badge[data-tone="danger"] { background: var(--danger-bg); color: var(--danger); }
.badge[data-tone="accent"] { background: var(--accent-soft); color: var(--accent-ink); }
.signal-list { display: grid; gap: .12rem; margin-top: .1rem; }
.signal-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .42rem; padding: .37rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.signal-row:last-child { border-bottom: 0; }
.signal-row button { min-height: 27px; padding: .24rem .42rem; font-size: .69rem; }
.signal-row strong { font-variant-numeric: tabular-nums; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-head { margin: 0; padding: .78rem .9rem; }
.table-region { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .75rem; text-align: left; white-space: nowrap; }
thead { border-block: 1px solid var(--line); }
th,td { padding: .51rem .75rem; border-bottom: 1px solid var(--line); }
th { background: #f6f7fb; color: #586177; font-size: .69rem; font-weight: 650; }
td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; height: 42px; }
th[data-align="numeric"],td[data-align="numeric"] { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9fe; }
td button { min-height: 28px; padding: .26rem .54rem; font-size: .72rem; }
.primary-cell { font-weight: 640; color: var(--ink); }
.pager,.actions { display: flex; flex-wrap: wrap; gap: .42rem; align-items: center; }
.pager { border-top: 1px solid var(--line); padding: .55rem .75rem; justify-content: flex-end; color: var(--muted); font-size: .73rem; }
.pager button { min-height: 30px; padding: .31rem .49rem; }
.context { display: flex; gap: .45rem; align-items: center; margin-bottom: .6rem; color: var(--accent-ink); font-size: .76rem; }
.context button { min-height: 30px; }
.commands label { flex: 1 1 9rem; max-width: 18rem; }
.operations-note { margin: .55rem 0; font-size: .74rem; }
#status:not(:empty),#login-status:not(:empty) { margin: .45rem 0; color: var(--warning); font-size: .76rem; }
#status[data-tone="error"] { color: var(--danger); }
.state-panel { display: grid; justify-items: start; align-content: center; gap: .45rem; min-height: 126px; }
.state-panel p { font-size: .8rem; color: var(--muted); }
.skeleton { display: grid; gap: .68rem; }
.skeleton div { max-width: 100%; width: 76%; height: 13px; border-radius: 7px; background: #f0edf8; }
.skeleton div:nth-child(2n) { width: 61%; }
.skeleton div:last-child { width: 47%; }
.drawer { width: min(460px, calc(100% - 24px)); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.drawer::backdrop { background: #181a2d55; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; padding: 1.16rem; border-bottom: 1px solid var(--line); }
.drawer-head p { font-size: .72rem; }
.drawer-head h2 { margin-top: .22rem; font-size: 1.2rem; overflow-wrap: anywhere; }
.drawer-body { display: grid; gap: .9rem; padding: 1.04rem 1.16rem; }
.detail-list { display: grid; gap: 0; margin: .36rem 0 0; }
.detail-list div { display: grid; grid-template-columns: minmax(96px, .9fr) minmax(0, 1.3fr); gap: .5rem; padding: .46rem 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { overflow-wrap: anywhere; }
.drawer-body .actions button { font-size: .72rem; min-height: 32px; }
.drawer-body > p { font-size: .75rem; }
@media (max-width: 1150px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 781px) and (max-width: 1370px) {
  .overview-metrics:has(.metric:nth-child(7)) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .overview-metrics:has(.metric:nth-child(7)) .metric { grid-column: span 3; }
  .overview-metrics:has(.metric:nth-child(7)) .metric:nth-child(n+5) { grid-column: span 4; }
}
@media (max-width: 780px) {
  .workspace,.workspace[data-collapsed="true"] { display: block; }
  #sidebar { position: relative; height: auto; padding: .66rem .74rem; gap: .55rem; }
  .rail-top { padding-inline: 0; }
  .workspace[data-collapsed="true"] .rail-top { flex-direction: row; justify-content: space-between; }
  .workspace[data-collapsed="true"] .rail-top .brand span { display: inline; }
  .workspace[data-collapsed="true"] :is(#navigation,.identity) { display: none; }
  #navigation { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .43rem .65rem; }
  .identity { grid-template-columns: 31px minmax(0, 1fr) auto; }
  .main { padding-inline: .8rem; }
  .dashboard-grid,.dashboard-grid.equal { grid-template-columns: minmax(0, 1fr); }
  .topbar { min-height: 39px; }
  .page-header { margin-top: .9rem; align-items: start; }
  .login { margin: 1rem; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-metrics:has(.metric:nth-child(7)) .metric:last-child { grid-column: 1 / -1; }
  .page-header { flex-direction: column; }
  .filters label { flex-basis: 100px; }
  .filter-actions { width: 100%; }
  .metric { padding: .55rem .57rem; }
}
.overview-filters { background: transparent; border: 0; padding: 0; justify-content: flex-end; margin: -.15rem 0 .7rem; }
.analytics-filters {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(135px,1fr)); align-items: end;
  gap: .6rem .7rem; padding: .85rem; background: var(--surface);
}
.analytics-filters[hidden] { display: none; }
.analytics-filters label { max-width: none; min-width: 0; }
.analytics-tabs {
  display: flex; gap: .22rem; overflow-x: auto; padding: .16rem .1rem .45rem;
  border-bottom: 1px solid var(--line); margin-bottom: .85rem;
}
.analytics-tabs button {
  flex: 0 0 auto; white-space: nowrap; min-height: 35px; padding: .4rem .65rem;
  background: transparent; border-color: transparent; color: var(--ink); font-size: .77rem;
}
.analytics-tabs button[aria-pressed="true"],.analytics-tabs button:hover {
  background: var(--accent-soft); color: var(--accent-ink);
}
.analytics-report { display: grid; gap: .8rem; min-width: 0; }
.analytics-series .chart { width: 100%; max-height: 320px; }
.analytics-series .period-options { flex-shrink: 0; }
.drawer-body > label,.panel > label { max-width: 15rem; }
@media (max-width: 420px) {
  .overview-filters { justify-content: flex-start; }
}

.workflow-list { display: grid; gap: .58rem; list-style: none; margin: 0; padding: 0; }
.workflow-task { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .75rem; }
.workflow-task-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .5rem; }
.workflow-task-title h3 { margin: 0; font-size: .86rem; }
.workflow-task p { margin: .38rem 0 0; }
.workflow-evidence { margin-top: .45rem; font-size: .75rem; }
.workflow-evidence summary { color: var(--accent-ink); cursor: pointer; }
.workflow-controls:empty { display: none; }
.workflow-controls { display: grid; gap: .35rem; justify-items: start; margin-top: .6rem; }
.workflow-form { display: grid; gap: .4rem; width: 100%; }
.workflow-form label, .workflow-controls label { display: grid; gap: .2rem; font-size: .74rem; }
.workflow-form button { justify-self: start; }
#record-body .period-options { justify-self: start; }

/* Systems and individual server workspaces */
.sys-grid, .sys-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(255px,100%),1fr)); gap:.9rem; margin:1rem 0 }
.sys-server-grid { grid-template-columns:repeat(auto-fit,minmax(min(295px,100%),1fr)) }
.sys-kpis { grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); }
.sys-box,.sys-kpi { background:#fff; border:1px solid #e8e8f0; border-radius:14px; padding:1rem 1.15rem; min-width:0; }
.sys-box h2 { font-size:1rem; margin:0 0 .28rem; letter-spacing:-.015em; }
.sys-box p { margin:.4rem 0 .65rem; }
.sys-kpi { display:flex; flex-direction:column; gap:.4rem; }
.sys-kpi span,.sys-pair dt,.sys-chart-axis { color:#606477; font-size:.79rem; }
.sys-kpi strong { color:#25213a; font-size:1.28rem; line-height:1.22; }
#results > .sys-box { margin:1rem 0; }
.sys-tags,.sys-actions,.sys-controls,.sys-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; margin:.65rem 0; }
.sys-pill { background:#f0edf9; color:#51476e; display:inline-flex; padding:.2rem .55rem; border-radius:999px; font-size:.74rem; width:max-content; text-transform:capitalize; }
.sys-ok { background:#e8f5ee; color:#176449; }
.sys-bad { background:#fff0ee; color:#90332b; }
.sys-pairs { display:grid; gap:.52rem 1.15rem; grid-template-columns:repeat(auto-fit,minmax(min(118px,100%),1fr)); margin:.85rem 0; }
.sys-pair dt { margin:0 0 .2rem; }
.sys-pair dd { margin:0; color:#292439; font-weight:600; overflow-wrap:anywhere; font-size:.87rem; }
.sys-note,.sys-preview { padding:.68rem .8rem; background:#f3efff; color:#583e8d; border-radius:9px; font-size:.82rem; }
.sys-alert,.sys-activity { display:flex; align-items:baseline; gap:.65rem; flex-wrap:wrap; padding:.6rem 0; border-top:1px solid #eeedf4; }
.sys-alert p { font-size:.81rem; margin:0; }
.sys-detail-head h2 { margin:.7rem 0 .1rem; overflow-wrap:anywhere; }
.sys-detail-head p { overflow-wrap:anywhere; }
.sys-tabs { border-bottom:1px solid #e8e8f0; padding-bottom:.4rem; }
.sys-tab { border:0; background:transparent; border-radius:8px; color:#656476; padding:.55rem .75rem; }
.sys-tab[aria-current] { background:#eee8fb; color:#592e9e; font-weight:700; }
.sys-box svg { width:100%; height:5.25rem; margin-top:.3rem; overflow:visible; }
.sys-box svg circle { fill:#7853c2; }
.sys-line { stroke:#7853c2; stroke-width:2; vector-effect:non-scaling-stroke; fill:none; }
.sys-chart-value { font-size:1.1rem; }
.sys-chart-axis { display:flex; justify-content:space-between; }
.sys-muted-empty { color:#777387; font-size:.85rem; letter-spacing:.035em; padding:.6rem 0; }
.sys-cost-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); gap:.75rem; margin:.75rem 0; }
.sys-field { display:flex; flex-direction:column; gap:.3rem; color:#504b62; font-size:.81rem; min-width:0; }
.sys-field input,.sys-field select { width:100%; min-width:0; }
.sys-slider { display:flex; gap:.35rem; align-items:center; }
.sys-slider output { white-space:nowrap; }
.sys-slider input { accent-color:#7853c2; }
.sys-scenario { border:1px solid #e8e8f0; border-radius:9px; padding:.75rem; }
.sys-scenario summary { cursor:pointer; color:#504273; font-weight:600; }
.sys-box a { color:#5b3694; }
.sys-range-result > select { margin-top:.4rem; }
@media (max-width:600px) {
  .sys-box,.sys-kpi { padding:.85rem; }
  .sys-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sys-kpi strong { font-size:1.03rem; }
  .sys-tabs { gap:.2rem; }
  .sys-tab { padding:.4rem .45rem; }
}
.sys-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sys-controls > select, .sys-range-result > select { width:auto; max-width:100%; }
.sys-grid.sys-charts { grid-template-columns:repeat(auto-fit,minmax(min(192px,100%),1fr)); }
.sys-server { border-top:2px solid #dcd0fa; }
@media (max-width:790px) { .sys-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:780px) { .nav-group { align-content:start; } }

.owner-commands { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.owner-commands label { flex: 0 1 16rem; min-width: 0; }
.owner-commands :is(input,select,textarea) { box-sizing: border-box; max-width: 100%; }
.owner-record { border-top: 1px solid var(--line, #dfe3ee); padding: .75rem 0; overflow-wrap: anywhere; }
.owner-record summary { cursor: pointer; font-weight: 650; }
.owner-record :is(input,textarea) { width: min(100%,34rem); box-sizing: border-box; }
.owner-record :is(button,a) { margin: .35rem .65rem .15rem 0; }

.credential-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; padding:.65rem .2rem; border-bottom:1px solid var(--line); }
.credential-actions { display:flex; flex-wrap:wrap; gap:.35rem; }
.credential-copy { min-width:0; overflow-wrap:anywhere; }
.credential-row:last-child { border:0; }
.credential-row p { margin:.18rem 0 0; color:var(--muted); font-size:.75rem; }
.credential-dialog { width:min(32rem,calc(100vw - 2rem)); max-height:85dvh; overflow:auto; border:1px solid var(--line); border-radius:var(--radius); color:var(--ink); background:var(--surface); padding:1.2rem; }
.credential-dialog::backdrop { background:rgb(15 20 36 / 55%); }
.credential-dialog form,.credential-dialog section { display:grid; gap:.5rem; margin:.9rem 0; }
.credential-dialog label { display:grid; gap:.3rem; }
.credential-tabs { display:flex; gap:.35rem; flex-wrap:wrap; margin:.6rem 0; }
.credential-tabs [aria-pressed=true] { color:var(--accent); border-color:currentColor; }
.credential-tabs { margin-block: .8rem 1rem; }
.credential-tabs [aria-pressed=true] { background: #edf3ff; color: #235ca3; border-color: #b7cceb; }
.credential-dialog h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.credential-dialog > p { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.credential-dialog form { padding-block: .9rem; border-block: 1px solid var(--line); }
.credential-dialog > button { margin: .6rem .4rem 0 0; }
.credential-rates { display: flex; flex: 1 1 100%; gap: .6rem; min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.credential-rates legend { font-size: .8rem; color: var(--muted); }
.credential-rates label { flex: 1; }

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(19rem,100%),1fr));
  gap: .8rem;
  margin-bottom: .85rem;
}
.provider-grid .detail-list { margin-top: .75rem; }
