:root {
  color-scheme: light;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #202733;
  background: #fff;
  --ink: #202733;
  --muted: #707987;
  --line: #e7e9ee;
  --border: #dce0e6;
  --surface: #f8f9fb;
  --blue: #315de7;
  --blue-soft: #eef3ff;
  --green: #20805c;
  --red: #bc3c45;
  --amber: #996519;
  --radius: 8px;
  --space: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-size: .875rem; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 500; line-height: 20px; cursor: pointer; transition: background .12s, border-color .12s; }
button:hover { background: var(--surface); border-color: #bdc5d0; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #87a3ff; outline-offset: 3px; }
button.primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 1px 2px #17358514; }
button.primary:hover { background: #244ed0; border-color: #244ed0; }
button.danger { color: var(--red); }
button.danger-solid { border-color: var(--red); background: var(--red); color: #fff; }
.icon-button, .copy-inline { flex-shrink: 0; width: 32px; min-height: 32px; padding: 6px; color: var(--muted); }
.icon-button { background: transparent; border-color: transparent; }
.ui-icon { display: block; flex: 0 0 auto; width: 18px; height: 18px; }
[data-icon] { display: inline-flex; }
.text-button { min-height: 32px; border-color: transparent; padding: 4px 6px; background: transparent; color: var(--blue); font-size: .8125rem; white-space: nowrap; }
.text-button:hover { border-color: transparent; background: var(--blue-soft); }
.name-link { display: block; overflow: hidden; max-width: 100%; min-height: 0; border: 0; border-radius: 3px; padding: 0; background: transparent; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.name-link:hover { background: transparent; color: var(--blue); }
.copy-inline { width: 26px; min-height: 26px; padding: 4px; border-color: transparent; border-radius: 4px; }
.copy-inline .ui-icon { width: 14px; height: 14px; }
.copy-inline:hover { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
[hidden] { display: none !important; }
a { color: var(--blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 1.5rem; font-weight: 650; line-height: 1.35; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: .9375rem; font-weight: 600; line-height: 24px; }
.muted { color: var(--muted); }
.mono, code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
.tabular, .metric-value, progress { font-variant-numeric: tabular-nums; }
.truncate { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.align-right { text-align: right; }
.wordmark { color: #1e2636; text-decoration: none; font-size: 1.5rem; font-weight: 750; letter-spacing: -.065em; line-height: 32px; }

/* One shell and one spacing rhythm across every working view. */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 600px; border-right: 1px solid var(--line); padding: 20px 12px 0; background: #fff; }
.sidebar-head { padding: 0 12px; }
nav { display: grid; gap: 3px; padding-top: 20px; }
.nav-group { margin: 14px 12px 7px; color: #89909c; font-size: .75rem; }
.nav-group:first-child { margin-top: 0; }
nav button { justify-content: flex-start; gap: 11px; min-height: 39px; padding: 8px 12px; border: 0; background: transparent; color: #5a6473; font-size: .875rem; font-weight: 400; text-align: left; }
nav button .ui-icon { color: #818b9a; }
nav button:hover { background: var(--surface); }
nav button.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
nav button.active .ui-icon { color: var(--blue); }
.sidebar-foot { margin-top: auto; padding: 16px 0 12px; }
.account-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.quota-block { margin-top: 12px; }
.quota-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); }
.quota-line strong { color: var(--ink); font-weight: 600; }
.quota-track { overflow: hidden; height: 3px; margin-top: 7px; border-radius: 4px; background: #eaf0fe; }
.quota-track span { display: block; width: 100%; height: 100%; background: #6485e9; }
.capacity-progress.quota-track { height: 3px; margin-top: 7px; }
.account { display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 9px; align-items: center; }
.avatar { display: inline-grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border: 1px solid #dfe6f6; border-radius: 8px; background: #f2f5fd; color: #5574bd; font-size: .8125rem; font-weight: 600; }
.account strong { display: block; overflow: hidden; font-size: .8125rem; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.account small { display: block; margin-top: 1px; color: var(--muted); font-size: .6875rem; }
.account .icon-button { width: 28px; min-height: 28px; }
main { min-width: 0; background: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: .8125rem; white-space: nowrap; }
.breadcrumb > span { color: #9299a4; }
.breadcrumb strong { color: #596474; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.workspace { width: 100%; max-width: 1408px; padding: 28px 32px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-subtitle { margin-bottom: 0; color: var(--muted); font-size: .8125rem; line-height: 22px; }
#primary-action { flex-shrink: 0; }
#content { display: grid; gap: var(--space); }
#notice { margin-bottom: 20px; border: 1px solid #d7e1fe; border-radius: 6px; padding: 10px 14px; background: #f5f8ff; color: #3b5caf; font-size: .8125rem; }
#notice.error { border-color: #f1d9dc; background: #fff6f6; color: var(--red); }

/* Statistics are a single quiet strip, followed by a full-width table. */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.metric { display: grid; gap: 6px; padding: 20px 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { color: #626d7b; font-size: .8125rem; }
.metric-value { font-size: 1.75rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.metric-unit { margin-left: 6px; color: #969daa; font-size: 1rem; font-weight: 400; }
.metric-detail { color: #89929e; font-size: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); align-items: stretch; }
.dashboard-grid > .section:only-child { grid-column: 1 / -1; }
.section { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.section-title h2 { display: flex; align-items: center; gap: 8px; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.section-title > span { color: var(--muted); font-size: .75rem; }
.count { display: inline-flex; align-items: center; min-height: 20px; border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; background: #fbfcfd; color: #697382; font-size: .6875rem; font-weight: 500; line-height: 18px; }
.scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
table { width: 100%; min-width: 740px; border-collapse: collapse; font-size: .8125rem; }
th { height: 42px; background: #f9fafc; color: #7a8492; font-size: .75rem; font-weight: 500; text-align: left; white-space: nowrap; }
td, th { padding: 12px 16px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfe; }
td { height: 72px; line-height: 20px; }
td strong { display: block; font-weight: 500; }
td small { display: block; margin-top: 3px; color: #9098a4; font-size: .75rem; line-height: 18px; }
.service-table { min-width: 900px; table-layout: fixed; }
.col-name { width: 19%; }
.col-address { width: 37%; }
.col-port { width: 9%; }
.col-pool { width: 11%; }
.col-status { width: 12%; }
.col-actions { width: 12%; }
.service-table th:last-child, .service-table td:last-child { position: sticky; right: 0; background: #fff; }
.service-table th:last-child { background: #f9fafc; }
.service-table tbody tr:hover td:last-child { background: #fafbfe; }
.address-cell { display: flex; align-items: center; gap: 5px; min-width: 0; }
.address-cell .mono { font-size: .75rem; color: #596b84; }
.address { color: #596b84; font-family: Consolas, monospace; font-size: .75rem; overflow-wrap: anywhere; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; white-space: nowrap; }
.table-foot { min-height: 42px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 12px 16px; color: #969eaa; font-size: .75rem; line-height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 7px; background: #f4f5f7; color: #707987; font-size: .75rem; font-weight: 400; line-height: 18px; white-space: nowrap; }
.pill.good { background: #eff8f3; color: var(--green); }
.pill.warn { background: #fff7e9; color: var(--amber); }
.pill.bad { background: #fff0f1; color: var(--red); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar-fields { display: flex; gap: 12px; min-width: 0; }
.toolbar input, .toolbar select { margin: 0; min-height: 36px; font-size: .8125rem; }
.search-field { display: flex; align-items: center; gap: 8px; width: 300px; padding: 0 10px; border: 1px solid var(--border); border-radius: 6px; }
.search-field:focus-within { border-color: #91aafa; box-shadow: 0 0 0 3px #edf2ff; }
.search-field .ui-icon { width: 16px; height: 16px; color: #9aa3b0; }
.search-field input { min-width: 0; padding: 7px 0; border: 0; background: transparent; box-shadow: none; outline: none; }
.search-field input:focus { border: 0; box-shadow: none; }
.toolbar select { width: 148px; }
.toolbar > small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; color: #8b94a1; text-align: center; font-size: .8125rem; }
.empty .ui-icon { width: 28px; height: 28px; margin-bottom: 4px; color: #abb7cb; }
.empty strong { color: #5e697a; font-weight: 500; }
.empty p { margin-bottom: 0; }
.service-empty { padding-bottom: 32px; text-align: center; }
.service-empty .empty { padding-bottom: 16px; }
.alert-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid #f0f2f5; }
.alert-item:last-child { border-bottom: 0; }
.alert-symbol { display: flex; flex-shrink: 0; padding-top: 2px; color: var(--amber); }
.alert-symbol .ui-icon { width: 16px; height: 16px; }
.alert-item.good .alert-symbol { color: var(--green); }
.alert-item.bad .alert-symbol { color: var(--red); }
.alert-item strong { display: block; font-size: .8125rem; font-weight: 500; }
.alert-item p { margin: 4px 0 0; color: #8a939f; font-size: .75rem; line-height: 20px; }
.region-row { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--line); }
.region-row:last-child { border-bottom: 0; }
.region-row strong { font-weight: 500; }
.region-row small { display: block; color: #8a939f; font-size: .75rem; margin-top: 4px; }
.region-capacity { width: 120px; margin-left: auto; text-align: right; }
.region-capacity > span { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.region-capacity small { display: inline; }
.region-capacity progress { margin-top: 10px; }
.resource-icon { display: inline-grid; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 7px; place-items: center; color: #8291a8; background: #fafbfd; }
.resource-cell { display: flex; align-items: center; gap: 12px; }
.nodes-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.summary-chip { padding: 18px 24px; border-right: 1px solid var(--line); }
.summary-chip:last-child { border-right: 0; }
.summary-chip span { display: block; color: var(--muted); font-size: .8125rem; }
.summary-chip strong { display: block; margin-top: 8px; font-size: 1.25rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.node-table { min-width: 880px; }
.node-table td { padding-top: 18px; padding-bottom: 18px; }
.capacity { min-width: 110px; max-width: 180px; }
.capacity-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .75rem; }
.capacity-label span { color: #97a0ad; }
.capacity-progress { display: block; width: 100%; height: 4px; overflow: hidden; border: 0; border-radius: 4px; background: #edf0f6; appearance: none; }
.capacity-progress::-webkit-progress-bar { border-radius: 4px; background: #edf0f6; }
.capacity-progress::-webkit-progress-value { border-radius: 4px; background: #7590e5; }
.capacity-progress::-moz-progress-bar { border-radius: 4px; background: #7590e5; }
.dns-banner { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #efe4c9; border-radius: 6px; padding: 14px 16px; background: #fffdf7; color: var(--amber); }
.dns-banner > .ui-icon { margin-top: 2px; width: 16px; height: 16px; }
.dns-banner strong { font-weight: 500; font-size: .8125rem; }
.dns-banner p { margin: 3px 0 0; color: #9b8969; font-size: .75rem; }
.dns-record-table { min-width: 960px; }
.dns-record-table td strong { font-size: .75rem; overflow-wrap: anywhere; }
.dns-error { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--red); }
.dns-explanation { color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.dns-help { margin: 6px 0 0; font-size: .75rem; line-height: 1.6; }
.plan-table { min-width: 960px; }
.plan-direction { margin: 16px 0 0; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 6px; }
.plan-direction legend { padding: 0 5px; font-size: .875rem; font-weight: 500; }
.plan-rate-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.check-label { display: flex; align-items: center; gap: 7px; margin: 8px 0; font-weight: 400; }
.check-label input { display: inline-block; width: 15px; height: 15px; min-height: 15px; margin: 0; padding: 0; }
.plan-help { margin: 10px 0 0; font-size: .75rem; line-height: 1.6; }
.info { padding: 20px; }
input:disabled, select:disabled { background: var(--surface); color: var(--muted); }
.disclosure summary { min-height: 54px; padding: 16px 20px; font-size: .8125rem; color: #616e80; cursor: pointer; }
.disclosure[open] summary { border-bottom: 1px solid var(--line); }
.disclosure summary .count { margin-left: 6px; }
.user-table { min-width: 760px; }
.access-grid { display: grid; gap: var(--space); }
.credential-list > button { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; width: 100%; min-height: 84px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 20px; text-align: left; }
.credential-list > button:last-child { border-bottom: 0; }
.credential-list strong { display: block; font-size: .875rem; font-weight: 500; }
.credential-list small { display: block; margin-top: 5px; color: #8591a3; font-family: Consolas, monospace; font-size: .75rem; overflow-wrap: anywhere; }
.credential-list b { margin-left: 12px; color: var(--blue); font-size: .8125rem; font-weight: 500; }
.connection-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 12px 20px; color: var(--muted); font-size: .75rem; }
.connection-info code { color: #61728c; overflow-wrap: anywhere; }
.access-steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.access-step { padding: 20px; border-right: 1px solid var(--line); }
.access-step:last-child { border-right: 0; }
.access-step > span { display: inline-grid; width: 24px; height: 24px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 50%; place-items: center; color: #7d8a9f; font-size: .6875rem; }
.access-step strong { display: block; font-size: .8125rem; font-weight: 500; }
.access-step p { margin: 6px 0 0; color: #8a939f; font-size: .75rem; line-height: 20px; overflow-wrap: anywhere; }

/* Forms use the same controls and compact, accessible native dialogs. */
label { display: block; margin: 16px 0 8px; font-size: .8125rem; font-weight: 500; color: #4b5667; }
input, select { display: block; width: 100%; min-height: 38px; margin-top: 8px; border: 1px solid var(--border); border-radius: 6px; padding: 8px 11px; background: #fff; color: #283447; font-size: .875rem; line-height: 20px; }
input:focus, select:focus { border-color: #91aafa; outline: 0; box-shadow: 0 0 0 3px #edf2ff; }
input::placeholder { color: #a4abb6; }
input[readonly] { background: #f9fafc; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.form-note span { padding: 3px 6px; border-radius: 4px; background: var(--surface); color: #8a94a3; font-size: .75rem; }
.form-error { margin: 12px 0 0; color: var(--red); font-size: .8125rem; }
.form-error:empty { display: none; }
dialog { width: 520px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; box-shadow: 0 16px 60px #1c2a4226; }
dialog::backdrop { background: #111c303b; }
.wide-dialog { width: 660px; }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dialog-title h2 { font-size: 1.0625rem; font-weight: 600; }
.dialog-title .eyebrow { display: none; }
.dialog-close { width: 28px; min-height: 28px; border: 0; padding: 0; color: #929aa7; font-size: 1.375rem; font-weight: 300; }
.dialog-intro { margin-bottom: 18px; color: var(--muted); font-size: .8125rem; line-height: 22px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-position { margin-right: auto; }
.secret-line { display: flex; align-items: center; gap: 6px; }
.secret-line input { margin: 0; min-width: 0; font-family: Consolas, monospace; font-size: .8125rem; }
.secret-line button { flex-shrink: 0; padding: 6px 9px; font-size: .8125rem; }
.security-note { margin-top: 20px; border-radius: 6px; padding: 12px 14px; background: var(--surface); color: #687588; font-size: .75rem; }
.security-note strong { font-weight: 500; }
.security-note p { margin: 5px 0 0; line-height: 20px; }
pre { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: #fafbfc; font-size: .75rem; line-height: 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.clipboard-helper { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.detail-item { min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.detail-item.full { grid-column: 1 / -1; }
.detail-item span { display: block; margin-bottom: 4px; color: #8a94a3; font-size: .75rem; }
.detail-item strong { font-size: .8125rem; font-weight: 500; overflow-wrap: anywhere; }
.detail-item .pill { display: inline-flex; margin: 0; }
.error-detail { margin-top: 16px; border-radius: 6px; padding: 12px; background: #fff2f3; color: var(--red); font-size: .8125rem; overflow-wrap: anywhere; }
.confirm-dialog { width: 400px; }
.confirm-mark { display: inline-grid; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; place-items: center; background: #fff0f1; color: var(--red); font-weight: 600; }
.confirm-dialog h2 { margin-bottom: 8px; }
.login-shell { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 96px 24px; }
.login-brand { position: absolute; top: 24px; left: 32px; }
.login-card { width: 360px; max-width: 100%; }
.login-heading { margin-bottom: 28px; }
.login-heading h1 { font-size: 1.625rem; margin-bottom: 8px; }
.login-heading p { margin: 0; font-size: .875rem; }
.login-submit { width: 100%; margin-top: 20px; min-height: 40px; }

@media (min-width: 1680px) {
  .workspace { padding: 32px 40px 56px; }
  .topbar { padding: 0 40px; }
}
@media (max-width: 1100px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .topbar { padding: 0 24px; }
  .workspace { padding: 24px; }
  .metric { padding: 18px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .access-steps { grid-template-columns: 1fr 1fr; }
  .access-step:nth-child(2) { border-right: 0; }
  .access-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --space: 16px; }
  .shell { display: block; padding-bottom: 82px; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 14px 16px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0; }
  .wordmark { font-size: 1.375rem; }
  nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; padding: 0 0 3px; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav button { flex-shrink: 0; gap: 6px; min-height: 36px; padding: 7px 9px; font-size: .8125rem; }
  nav .ui-icon { width: 15px; height: 15px; }
  .nav-group { display: none; }
  .sidebar-foot { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 16px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
  .account-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 10px 12px; }
  .quota-block { margin: 0; }
  .quota-track { margin-top: 6px; }
  .account { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 7px; }
  .account .avatar { width: 28px; height: 28px; }
  .topbar { height: 48px; padding: 0 16px; gap: 8px; }
  .breadcrumb { gap: 8px; font-size: .75rem; }
  .header-actions { gap: 4px; }
  .workspace { padding: 20px 16px 24px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  h1 { font-size: 1.25rem; }
  .page-subtitle { max-width: 230px; font-size: .75rem; }
  #primary-action { min-height: 34px; gap: 4px; padding: 6px 10px; font-size: .8125rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 16px; gap: 5px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metric-value { font-size: 1.5rem; }
  .section-title { min-height: 52px; padding: 12px 16px; }
  .toolbar { display: block; padding: 12px; }
  .toolbar-fields { gap: 8px; }
  .toolbar > small { display: none; }
  .search-field { width: auto; min-width: 0; flex: 1; }
  .toolbar select { width: 112px; }
  .region-row, .alert-item { padding: 16px; }
  .region-capacity { width: 104px; }
  .nodes-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-chip { padding: 14px 12px; }
  .summary-chip span { font-size: .75rem; }
  .summary-chip strong { font-size: 1.125rem; }
  .credential-list > button { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .credential-list .resource-icon { width: 28px; height: 28px; }
  .credential-list .pill { grid-column: 2; justify-self: start; }
  .credential-list b { grid-column: 3; grid-row: 1 / 3; margin: 0; font-size: .75rem; }
  .connection-info { padding: 12px 14px; }
  .access-steps { grid-template-columns: 1fr; }
  .access-step { display: flex; gap: 12px; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .access-step > span { flex-shrink: 0; margin: 0; }
  .access-step:last-child { border-bottom: 0; }
  dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .plan-rate-fields { grid-template-columns: 1fr; gap: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .login-brand { left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
