:root {
  color-scheme: dark;
  --canvas: #050f20;
  --canvas-deep: #030a16;
  --sidebar: #07182b;
  --surface: #0b2038;
  --surface-strong: #102b47;
  --surface-soft: #0c253f;
  --surface-hover: #13334f;
  --line: rgba(205, 224, 246, .13);
  --line-strong: rgba(205, 224, 246, .22);
  --text: #edf3fb;
  --text-strong: #fbfcff;
  --muted: #bdcbe0;
  --dim: #a9b8ca;
  --green: #31d9a1;
  --green-strong: #1fc789;
  --green-soft: rgba(49, 217, 161, .11);
  --cyan: #64cce6;
  --amber: #f5c967;
  --red: #ff7385;
  --red-soft: rgba(255, 115, 133, .11);
  --shadow: 0 24px 70px rgba(0, 0, 0, .30);
  --radius: 16px;
  --radius-small: 11px;
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 72% -15%, rgba(25, 104, 112, .19), transparent 34rem), linear-gradient(150deg, #07182b 0%, var(--canvas) 55%, var(--canvas-deep) 100%); color: var(--text); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select, textarea { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; border-radius: 9px; background: var(--text-strong); color: var(--canvas); transform: translateY(-150%); transition: transform .16s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(100, 204, 230, .72); outline-offset: 2px; }

.login-view { min-height: 100vh; padding: 30px; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: 36px; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(145deg, rgba(16, 43, 71, .94), rgba(5, 18, 35, .97)); box-shadow: var(--shadow); }
.login-brand, .sidebar-brand { display: flex; align-items: center; gap: 12px; }
.login-brand strong, .sidebar-brand strong { display: block; color: #ffe08a; font-size: 19px; letter-spacing: -.3px; }
.login-brand small, .sidebar-brand small { display: block; margin-top: 1px; color: var(--dim); font-size: 11px; font-weight: 650; letter-spacing: .3px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255, 224, 138, .26); border-radius: 13px; background: rgba(21, 52, 85, .38); color: #ffe08a; }
.brand-mark.compact { width: 40px; height: 40px; border-radius: 11px; }
.brand-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; shape-rendering: geometricPrecision; }
.brand-mark.compact svg { width: 24px; height: 24px; }
.brand-mark svg * { vector-effect: non-scaling-stroke; }
.login-copy { margin-top: 34px; }
.eyebrow { display: block; color: #69e7bc; font-size: 11px; font-weight: 850; letter-spacing: .85px; }
.login-copy h1, .section-head h1 { margin: 7px 0 5px; color: var(--text-strong); font-size: 30px; line-height: 1.15; letter-spacing: -.85px; }
.login-copy p, .section-head p, .modal-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.login-form { margin-top: 26px; }
.recovery-copy { margin-top: 34px; }
.recovery-expiry { margin: 16px 0 0; padding: 10px 12px; border: 1px solid rgba(105, 231, 188, .28); border-radius: 10px; background: rgba(38, 124, 100, .12); color: #d9fff0; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.recovery-expiry + .mfa-enrollment-grid, .recovery-expiry + .login-form { margin-top: 14px; }
.recovery-methods { margin-top: 24px; }
.recovery-methods > p:first-child { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.recovery-method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recovery-method { min-height: 88px; padding: 14px; display: block; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(6, 22, 42, .66); color: var(--text); text-align: left; }
.recovery-method:hover { border-color: rgba(49, 217, 161, .48); background: rgba(18, 86, 73, .18); }
.recovery-method strong, .recovery-method small { display: block; }
.recovery-method strong { color: var(--text-strong); font-size: 12px; }
.recovery-method small { margin-top: 5px; color: var(--dim); font-size: 10px; line-height: 1.4; }
.login-recovery-link { width: fit-content; margin: 14px auto 0; padding: 5px 7px; display: block; border: 0; border-radius: 8px; background: transparent; color: #8de8c8; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.login-recovery-link:hover { color: #d9fff0; background: rgba(49, 217, 161, .08); }
.security-note { margin: 22px 0 0; padding-top: 18px; display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.security-note span { color: var(--green); }
.setup-card { width: min(760px, 100%); }
.setup-copy { margin-top: 30px; }
.mfa-enrollment-grid { margin-top: 24px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: center; }
.mfa-qr-shell { width: 236px; min-height: 236px; padding: 8px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 18px; background: #f8fbff; }
.mfa-qr-shell img { width: 220px; height: 220px; display: block; image-rendering: pixelated; }
.mfa-manual { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 19, 36, .58); }
.mfa-manual > strong { display: block; color: var(--text-strong); font-size: 14px; }
.mfa-manual > small { display: block; margin-top: 10px; color: var(--dim); font-size: 11px; line-height: 1.5; }
.secret-row { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.secret-row input { min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: #06162a; color: var(--text-strong); font: 700 12px/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .6px; }
.setup-confirm-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.setup-login-link { width: max-content; margin: 14px auto 0; display: block; color: #8fdcc5; font-size: 12px; font-weight: 700; text-decoration: none; }
.setup-login-link:hover { color: #b4f2de; text-decoration: underline; text-underline-offset: 3px; }

.field { display: block; margin-top: 16px; }
#nodesMonitoringMonthField[hidden] { display: none; }
.field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #d6e0ed; font-size: 12px; font-weight: 750; }
.field > span small { color: var(--dim); font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea, .search-field input, .select-field select { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: #06162a; color: var(--text-strong); }
.field input, .field select { min-height: 45px; padding: 9px 12px; }
.field textarea { min-height: 92px; padding: 11px 12px; resize: vertical; line-height: 1.45; }
.field-help { display: block; margin-top: 6px; color: var(--dim); font-size: 10px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder, .search-field input::placeholder { color: #7187a2; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus, .select-field select:focus { border-color: rgba(49, 217, 161, .72); outline: 0; box-shadow: 0 0 0 3px rgba(49, 217, 161, .11); }
.required-reason > span::after { content: "обязательно"; color: #a9b8ca; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.form-message { min-height: 20px; margin: 12px 0 0; color: #ff9daa; font-size: 12px; font-weight: 650; }
.success-message { color: #7ce5bd; }

.button { min-height: 40px; padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text); font-weight: 750; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease; }
.button:not(:disabled):active { transform: translateY(1px); }
.button.primary { border-color: rgba(97, 237, 188, .36); background: linear-gradient(135deg, #39e2aa, #1fc789); color: #042317; }
.button.primary:not(:disabled):hover { background: linear-gradient(135deg, #54edba, #2ed599); }
.button.secondary { border-color: var(--line-strong); background: rgba(16, 43, 71, .68); color: #dce6f3; }
.button.secondary:not(:disabled):hover, .button.subtle:not(:disabled):hover { border-color: rgba(100, 204, 230, .34); background: var(--surface-hover); }
.button.subtle { border-color: var(--line); background: rgba(9, 29, 50, .60); color: var(--muted); }
.button.danger { border-color: rgba(255, 115, 133, .36); background: rgba(255, 115, 133, .13); color: #ffc1c9; }
.button.warning { border-color: rgba(245, 201, 103, .34); background: rgba(245, 201, 103, .12); color: #f8d98c; }
.button.full { width: 100%; }
.text-button { padding: 4px; border: 0; background: transparent; color: #75e6c0; font-size: 12px; font-weight: 750; }
.text-button:hover { color: #a0f2d5; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 37, 63, .72); color: var(--muted); font-size: 20px; line-height: 1; }
.icon-button:hover { border-color: var(--line-strong); color: var(--text-strong); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; padding: 24px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(7, 24, 43, .98), rgba(4, 14, 27, .99)); }
.sidebar > * { flex-shrink: 0; }
.sidebar-brand { padding: 0 8px; }
.sidebar-nav { margin-top: 38px; display: grid; gap: 5px; }
.nav-item { min-height: 46px; padding: 9px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #aabbd0; text-align: left; font-weight: 700; }
.nav-item:hover { border-color: var(--line); background: rgba(16, 43, 71, .44); color: var(--text); }
.nav-item.active { border-color: rgba(49, 217, 161, .20); background: rgba(49, 217, 161, .10); color: #75e8c1; }
.nav-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: currentColor; font-size: 15px; }
.nav-badge { min-width: 22px; margin-left: auto; padding: 2px 6px; border-radius: 999px; background: rgba(245, 201, 103, .14); color: #f8d98f; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 2px; border-top: 1px solid var(--line); }
.sidebar-foot p { margin: 12px 0 0; color: #7389a2; font-size: 10px; line-height: 1.55; }
.sidebar-foot .admin-runtime-version { margin: 12px 0 0; color: #9fb1c6; font-variant-numeric: tabular-nums; }
.sidebar-foot .admin-runtime-version.mismatch { color: #ffb4a2; }
.system-state { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.system-state.online i { background: var(--green); }
.system-state.offline i { background: var(--red); }
.system-state b { grid-column: 2; color: var(--dim); font-size: 10px; font-weight: 650; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 74px; padding: 12px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(5, 17, 32, .94); }
.topbar-title { min-width: 0; margin-right: auto; }
.topbar-title span, .topbar-title strong { display: block; }
.topbar-title span { color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: .65px; }
.topbar-title strong { margin-top: 2px; color: var(--text-strong); font-size: 17px; }
.operator-menu { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-width: 0; gap: 10px; }
.operator-menu > button[hidden] { display: none; }
.topbar-key-mode { min-height: 36px; padding: 7px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.topbar-key-mode[hidden] { display: none; }
.topbar-key-mode input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.operator-menu > div { min-width: 115px; }
.operator-menu strong, .operator-menu small { display: block; }
.operator-menu strong { color: #e4ecf7; font-size: 12px; }
.operator-menu small { margin-top: 2px; color: var(--dim); font-size: 10px; }
.operator-avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(49, 217, 161, .28); border-radius: 11px; background: var(--green-soft); color: #74e7c0; font-weight: 850; }
.mobile-menu { display: none; }

.environment-banner { width: min(1480px, calc(100% - 68px)); min-height: 54px; margin: 18px auto -10px; padding: 11px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(9, 30, 52, .76); }
.environment-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; font-size: 14px; font-weight: 900; }
.environment-banner strong, .environment-banner span:not(.environment-mark) { display: block; }
.environment-banner strong { color: var(--text-strong); font-size: 11px; }
.environment-banner span:not(.environment-mark) { margin-top: 2px; color: var(--muted); font-size: 10px; }
.environment-banner.production { border-color: rgba(49, 217, 161, .27); background: rgba(21, 82, 72, .24); }
.environment-banner.production .environment-mark { background: rgba(49, 217, 161, .14); color: #75e8c1; }
.environment-banner.staging { border-color: rgba(245, 201, 103, .32); background: rgba(91, 67, 21, .25); }
.environment-banner.staging .environment-mark { background: rgba(245, 201, 103, .15); color: #f8d98f; }
.environment-banner.unknown { border-color: rgba(255, 115, 133, .29); background: rgba(99, 28, 45, .22); }
.environment-banner.unknown .environment-mark { background: var(--red-soft); color: #ff9cab; }
.license-operation-recovery { margin: 0 0 20px; padding: 14px; border: 1px solid rgba(245, 201, 103, .32); border-radius: 13px; background: rgba(91, 67, 21, .25); }
.license-recovery-heading { display: grid; gap: 4px; color: var(--text-strong); font-size: 11px; }
.license-recovery-heading span, .license-recovery-status { color: var(--muted); font-size: 10px; line-height: 1.5; }
.license-recovery-list { display: grid; gap: 9px; margin-top: 10px; }
.license-recovery-item { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(220px, 1fr) auto; align-items: center; gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.license-recovery-item > strong { color: var(--text-strong); font-size: 10px; }
.license-recovery-controls { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .license-recovery-item { grid-template-columns: 1fr; gap: 7px; } }
@media (max-width: 600px) { .license-recovery-controls { flex-wrap: wrap; } }

.main-content { width: min(1480px, 100%); margin: 0 auto; padding: 34px 34px 70px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 28px; }
.section-head > div { max-width: 720px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.section-head.compact-head h1 { font-size: 28px; }
.metric-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.promotions-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.billing-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric-card { min-height: 132px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 43, 71, .79), rgba(7, 26, 47, .88)); }
.metric-card.featured { border-color: rgba(49, 217, 161, .28); background: linear-gradient(145deg, rgba(23, 80, 78, .55), rgba(8, 32, 51, .94)); }
.metric-card.warning { border-color: rgba(245, 201, 103, .20); }
.metric-card > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { margin-top: auto; color: var(--text-strong); font-size: 37px; line-height: 1; letter-spacing: -1.5px; }
.metric-card.featured strong { color: #6ce6bd; }
.metric-card.warning strong { color: #f8d98f; }
.metric-card small { margin-top: 7px; color: var(--dim); font-size: 10px; }
.overview-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.panel, .table-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(12, 37, 63, .80), rgba(6, 22, 41, .91)); box-shadow: 0 14px 40px rgba(0, 0, 0, .10); }
.panel { min-height: 330px; padding: 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 0; color: var(--text-strong); font-size: 16px; }
.panel-heading p { margin: 4px 0 0; color: var(--dim); font-size: 10px; }
.updated-label { color: var(--dim); font-size: 10px; }
.distribution-list { margin-top: 25px; display: grid; gap: 21px; }
.distribution-row > div:first-child { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; }
.distribution-row b { color: #dfe8f4; }
.progress-track { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #061426; }
.progress-value { width: 0; height: 100%; display: block; border-radius: inherit; transition: width .35s ease; }
.progress-value.green { background: var(--green); }
.progress-value.cyan { background: var(--cyan); }
.progress-value.amber { background: var(--amber); }
.progress-value.muted { background: #748ca8; }
.activity-list { margin-top: 18px; display: grid; }
.activity-item { padding: 13px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; }
.activity-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(49, 217, 161, .07); color: var(--green); font-weight: 800; }
.activity-item strong, .activity-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item strong { color: #dce6f2; font-size: 11px; }
.activity-item small { margin-top: 4px; color: var(--dim); font-size: 10px; }
.activity-item time { color: #a9b8ca; font-size: 10px; white-space: nowrap; }
.skeleton-row { height: 50px; border-top: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(189, 203, 224, .04), transparent); background-size: 200% 100%; animation: skeleton 1.4s linear infinite; }
@keyframes skeleton { to { background-position: -200% 0; } }

.filter-bar { margin-top: 24px; padding: 12px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 30, 52, .68); }
.status-tabs { margin-top: 24px; padding: 5px; display: flex; gap: 5px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 22, 42, .60); scrollbar-width: thin; }
.license-view-mode { margin-top: 24px; display: flex; gap: 7px; align-items: center; }
.license-view-mode + .status-tabs { margin-top: 12px; }
.status-tab { min-height: 39px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #aabbd0; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-tab:hover { border-color: var(--line); color: var(--text); }
.status-tab.active { border-color: rgba(49, 217, 161, .24); background: rgba(49, 217, 161, .11); color: #75e8c1; }
.status-tab > span { min-width: 23px; padding: 2px 6px; border-radius: 999px; background: rgba(205, 224, 246, .08); color: currentColor; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.status-tabs + .filter-bar { margin-top: 12px; }
.search-field { position: relative; min-width: 240px; flex: 1; }
.search-field i { position: absolute; z-index: 1; left: 13px; top: 50%; color: var(--dim); font-size: 17px; font-style: normal; transform: translateY(-50%); }
.search-field input { min-height: 42px; padding: 9px 12px 9px 38px; }
.select-field select { min-width: 150px; min-height: 42px; padding: 8px 32px 8px 11px; }
.filter-check { min-height: 42px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-small); background: rgba(6, 22, 42, .64); color: var(--muted); font-size: 10px; white-space: nowrap; cursor: pointer; }
.filter-check input { margin: 0; accent-color: var(--green); }
.table-card { margin-top: 14px; overflow: hidden; }
.pricing-revision { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.pricing-editor { margin-top: 12px; padding: 20px; overflow: visible; }
.table-toolbar { min-height: 48px; padding: 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.table-toolbar span:first-child { color: #d7e2ef; font-weight: 750; }
.table-scroll { position: relative; width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 1020px; border-collapse: collapse; }
.data-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: #a9b8ca; font-size: 10px; font-weight: 800; letter-spacing: .45px; text-align: left; text-transform: uppercase; }
.data-table td { height: 63px; padding: 10px 14px; border-bottom: 1px solid rgba(205, 224, 246, .08); color: #cbd7e6; font-size: 11px; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: rgba(49, 217, 161, .045); }
.cell-primary, .cell-secondary { display: block; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-primary { color: #edf4fb; font-weight: 750; }
.cell-secondary { margin-top: 4px; color: var(--dim); font-size: 10px; }
.license-owner-history { margin-top: 5px; color: var(--dim); font-size: 10px; }
.license-owner-history summary { cursor: pointer; }
.license-owner-history ul { margin: 6px 0 0; padding-left: 16px; }
.license-owner-history li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cell-warning { display: block; margin-top: 4px; color: #f8d98f; font-size: 10px; font-weight: 800; }
.promotion-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.registry-warning { margin: 12px 0 0; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(245, 201, 103, .30); border-radius: 12px; background: rgba(91, 67, 21, .22); }
.registry-warning-mark { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: rgba(245, 201, 103, .14); color: #f8d98f; font-weight: 900; }
.registry-warning strong { color: #f8d98f; font-size: 11px; }
.registry-warning p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.expiry-stack { display: grid; gap: 4px; min-width: 150px; }
.expiry-countdown { color: #dce8f5; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.expiry-countdown.urgent { color: #f8d98f; }
.expiry-countdown.expired { color: #9aacbf; }
.expiry-date { color: var(--dim); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-arrow { color: var(--green); font-size: 17px; }
.row-action { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(6, 22, 42, .58); color: var(--green); font-size: 19px; line-height: 1; }
.row-action:hover { border-color: rgba(49, 217, 161, .42); background: rgba(49, 217, 161, .09); }
.status-pill { width: fit-content; padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(111, 137, 166, .08); color: #becddd; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.active, .status-pill.trialing { border-color: rgba(49, 217, 161, .23); background: rgba(49, 217, 161, .09); color: #6fe6be; }
.status-pill.trial_used { border-color: rgba(245, 201, 103, .24); background: rgba(245, 201, 103, .08); color: #f5d588; }
.status-pill.suspended { border-color: rgba(245, 201, 103, .24); background: rgba(245, 201, 103, .08); color: #f5d588; }
.status-pill.revoked, .status-pill.canceled { border-color: rgba(255, 115, 133, .22); background: var(--red-soft); color: #ff9cab; }
.status-pill.expired { color: #92a5bb; }
.status-pill.privacy-verified { border-color: rgba(100, 204, 230, .26); background: rgba(100, 204, 230, .09); color: #91dcee; }
.status-pill.privacy-in_review { border-color: rgba(245, 201, 103, .28); background: rgba(245, 201, 103, .09); color: #f5d588; }
.status-pill.privacy-fulfilled { border-color: rgba(49, 217, 161, .25); background: rgba(49, 217, 161, .09); color: #6fe6be; }
.status-pill.privacy-partially_fulfilled { border-color: rgba(245, 201, 103, .28); background: rgba(245, 201, 103, .09); color: #f5d588; }
.status-pill.privacy-rejected { border-color: rgba(255, 115, 133, .23); background: var(--red-soft); color: #ff9cab; }
.status-pill.privacy-canceled { color: #92a5bb; }
.status-pill.payment-succeeded { border-color: rgba(49, 217, 161, .25); background: rgba(49, 217, 161, .09); color: #6fe6be; }
.status-pill.payment-paid, .status-pill.payment-pending, .status-pill.payment-creating { border-color: rgba(100, 204, 230, .25); background: rgba(100, 204, 230, .08); color: #91dcee; }
.status-pill.payment-manual_review { border-color: rgba(245, 201, 103, .28); background: rgba(245, 201, 103, .09); color: #f5d588; }
.status-pill.payment-failed, .status-pill.payment-canceled, .status-pill.payment-refunded { border-color: rgba(255, 115, 133, .23); background: var(--red-soft); color: #ff9cab; }
.status-pill.payment-expired { color: #92a5bb; }
.status-pill.support-new { border-color: rgba(100, 204, 230, .26); background: rgba(100, 204, 230, .09); color: #91dcee; }
.status-pill.support-in_progress { border-color: rgba(245, 201, 103, .28); background: rgba(245, 201, 103, .09); color: #f5d588; }
.status-pill.support-waiting_user { border-color: rgba(141, 124, 255, .28); background: rgba(141, 124, 255, .10); color: #b9adff; }
.status-pill.support-resolved { border-color: rgba(49, 217, 161, .25); background: rgba(49, 217, 161, .09); color: #6fe6be; }
.status-pill.support-closed { color: #92a5bb; }
.billing-table { min-width: 1180px; }
.money-cell { color: #ecf5ff !important; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.billing-safety-note { margin-top: 16px; }
.payment-modal { width: min(1040px, calc(100vw - 28px)); }
.payment-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.payment-detail-grid > div:nth-child(2n) { border-right: 1px solid var(--line); }
.payment-detail-grid > div:nth-child(4n) { border-right: 0; }
.payment-detail-grid > div:nth-last-child(-n+4) { border-bottom: 0; }
.payment-lifecycle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-lifecycle-grid .drawer-section { min-width: 0; }
.privacy-metrics { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.privacy-metrics span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9, 29, 50, .55); color: var(--muted); font-size: 10px; }
.privacy-metrics b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.privacy-metrics .warning b { color: #f5d588; }
.privacy-table { min-width: 1060px; }
.privacy-due { font-variant-numeric: tabular-nums; }
.privacy-due.overdue { color: #f5d588; font-weight: 800; }
.support-table { min-width: 1050px; }
.support-due { font-variant-numeric: tabular-nums; }
.support-due.overdue { color: #f5d588; font-weight: 800; }
.support-severity { font-size: 10px; font-weight: 750; }
.support-severity.high { color: #f5d588; }
.support-severity.critical { color: #ff9cab; }
.data-table tbody tr.overdue-row { background: rgba(91, 67, 21, .10); }
.empty-state { padding: 48px 20px; text-align: center; }
.empty-state > span { width: 44px; height: 44px; margin: 0 auto 13px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--dim); font-size: 21px; }
.empty-state strong { display: block; color: #dbe5f1; }
.empty-state p { margin: 6px 0 0; color: var(--dim); font-size: 11px; }
.pagination { min-height: 55px; padding: 9px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); }
.pagination > span { min-width: 75px; color: var(--dim); font-size: 10px; text-align: center; }
.audit-table { min-width: 1050px; }
.audit-outcome { color: #6fe6be; font-weight: 700; }
.audit-outcome.failed { color: #ff9cab; }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(1, 6, 15, .76); }
.modal { width: min(610px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 20px; background: #091b31; box-shadow: var(--shadow); }
.modal-card { padding: 25px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h2 { margin: 6px 0 5px; color: var(--text-strong); font-size: 22px; }
.modal-head p { max-width: 490px; font-size: 12px; }
.access-repair-modal { width: min(760px, calc(100vw - 28px)); }
.conflict-guidance { margin: 18px 0; padding: 13px 14px; border: 1px solid rgba(245, 201, 103, .24); border-radius: 12px; background: rgba(91, 67, 21, .14); }
.conflict-guidance strong { color: #f8d98c; font-size: 12px; }
.conflict-guidance p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-repair-preview { display: grid; gap: 12px; margin: 14px 0; }
.access-repair-preview h3 { margin: 0 0 8px; color: var(--text-strong); font-size: 11px; }
.access-repair-preview p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.access-repair-result, .access-repair-group { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 22, 42, .68); }
.access-repair-list { display: grid; gap: 8px; }
.access-repair-period { display: grid; gap: 4px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9, 30, 52, .7); }
.access-repair-period strong { color: var(--text-strong); font-size: 11px; }
.access-repair-period small { color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.access-repair-consequences { padding: 11px; border: 1px solid rgba(57, 229, 171, .24); border-radius: 10px; background: rgba(18, 86, 73, .14); }
.form-grid { display: grid; gap: 12px; }
.form-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mutation-impact { margin-top: 13px; padding: 12px 13px; border: 1px solid rgba(49, 217, 161, .22); border-radius: 11px; background: rgba(49, 217, 161, .065); color: #cfe8de; font-size: 10px; line-height: 1.55; }
.mutation-impact strong { color: #7ce5bd; }
.confirm-check { margin-top: 18px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(6, 22, 42, .68); color: var(--muted); font-size: 11px; }
.confirm-check input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; accent-color: var(--green); }
.dialog-actions { margin-top: 21px; display: flex; justify-content: flex-end; gap: 9px; }
.key-output { margin-top: 20px; display: block; }
.key-output span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.key-output input { width: 100%; min-height: 58px; padding: 12px; border: 1px dashed rgba(49, 217, 161, .46); border-radius: 13px; background: #061426; color: #8af0cc; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 17px; font-weight: 750; letter-spacing: .7px; text-align: center; }
.mfa-rebind-modal { width: min(760px, calc(100vw - 28px)); }
.mfa-rebind-guidance { margin-top: 18px; padding: 13px 14px; border: 1px solid rgba(100, 204, 230, .22); border-radius: 12px; background: rgba(100, 204, 230, .07); }
.mfa-rebind-guidance strong { color: #dcecf7; font-size: 12px; }
.mfa-rebind-guidance p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.recovery-codes-modal { width: min(700px, calc(100vw - 28px)); }
.recovery-codes-warning { margin-top: 20px; padding: 13px 14px; border: 1px solid rgba(245, 201, 103, .28); border-radius: 12px; background: rgba(91, 67, 21, .14); }
.recovery-codes-warning strong { color: #f5d993; font-size: 12px; }
.recovery-codes-warning p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.recovery-codes-list { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-codes-list code { min-width: 0; padding: 11px 12px; overflow: hidden; border: 1px dashed rgba(49, 217, 161, .44); border-radius: 10px; background: #061426; color: #8af0cc; font: 750 11px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .25px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.mfa-rebind-modal .mfa-enrollment-grid { margin-top: 20px; }
.privacy-modal { width: min(780px, calc(100vw - 28px)); }
.privacy-guidance { margin-top: 14px; padding: 13px 14px; border: 1px solid rgba(245, 201, 103, .25); border-radius: 12px; background: rgba(91, 67, 21, .13); }
.privacy-guidance strong { color: #f5d588; font-size: 11px; }
.privacy-guidance p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.privacy-transition-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.privacy-retention { margin: 13px 0 0; padding: 12px 14px; display: grid; gap: 9px; border: 1px solid var(--line); border-radius: 12px; }
.privacy-retention legend { padding: 0 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.privacy-retention label { display: flex; align-items: flex-start; gap: 9px; color: #cbd7e6; font-size: 10px; }
.privacy-retention input { margin: 1px 0 0; accent-color: var(--green); }
.privacy-retention:disabled { opacity: .68; }
.analytics-chart { margin: 18px 0 4px; padding: 14px 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4, 18, 37, .42); }
.analytics-chart figcaption { color: var(--muted); font-size: 11px; font-weight: 750; }
.analytics-bars { height: 112px; margin-top: 12px; display: flex; align-items: end; gap: 3px; overflow: hidden; border-bottom: 1px solid var(--line); }
.analytics-bar { min-width: 3px; flex: 1 1 0; border-radius: 3px 3px 0 0; background: var(--green); opacity: .82; }
.analytics-error { border-color: rgba(255, 130, 145, .38); color: #ffd5da; }
.analytics-calendar { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.analytics-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.analytics-calendar-head h3 { margin: 0; font-size: 12px; }
.analytics-calendar-nav { display: flex; align-items: center; gap: 7px; min-width: 0; }
.analytics-calendar-nav strong { min-width: 116px; color: #dbe9f8; font-size: 11px; text-align: center; }
.analytics-calendar-nav button:disabled { opacity: .42; cursor: not-allowed; }
.analytics-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.analytics-weekdays { margin-top: 12px; color: var(--dim); font-size: 9px; font-weight: 750; text-align: center; }
.analytics-calendar-grid { margin-top: 5px; display: grid; gap: 4px; }
.analytics-calendar-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.analytics-calendar-cell { min-width: 0; }
.analytics-calendar-spacer { display: block; min-height: 46px; }
.analytics-calendar-day { inline-size: 100%; box-sizing: border-box; min-width: 0; min-height: 46px; padding: 3px; display: grid; place-content: center; gap: 2px; border: 1px solid transparent; border-radius: 8px; background: rgba(20, 43, 68, .34); color: var(--dim); font: 750 11px/1 system-ui, sans-serif; }
.analytics-calendar-date { font-size: 11px; }
.analytics-calendar-count { max-width: 100%; overflow: hidden; color: currentColor; font-size: 8px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.analytics-calendar-day[data-available="true"] { cursor: pointer; color: #dbe9f8; border-color: rgba(112, 166, 203, .28); }
.analytics-calendar-day[data-active="true"] { background: rgba(49, 217, 161, .20); border-color: rgba(49, 217, 161, .60); color: #bffff0; }
.analytics-calendar-cell[aria-selected="true"] .analytics-calendar-day { outline: 2px solid #f5d588; outline-offset: 1px; }
.analytics-calendar-legend { margin: 8px 0 0; color: var(--dim); font-size: 10px; }
.analytics-calendar-day:focus-visible, .analytics-calendar-nav button:focus-visible { outline: 2px solid #f5d588; outline-offset: 2px; }
.analytics-selected-day { min-height: 32px; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(4, 18, 37, .5); color: var(--muted); font-size: 10px; line-height: 1.45; }
@media (max-width: 480px) { .analytics-chart { margin-inline: -2px; } .analytics-bars { gap: 2px; } }
@media (max-width: 390px) { .analytics-calendar-head { align-items: flex-start; flex-direction: column; } .analytics-calendar-nav { width: 100%; justify-content: space-between; } .analytics-calendar-nav strong { flex: 1; } .analytics-calendar-day { min-height: 42px; } }
.support-modal { width: min(820px, calc(100vw - 28px)); }
.support-transition-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.support-thread { margin-top: 13px; display: grid; gap: 9px; }
.support-message { max-width: 88%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 30, 52, .62); }
.support-message.user { margin-left: auto; border-color: rgba(100, 204, 230, .20); background: rgba(100, 204, 230, .06); }
.support-message.operator { border-color: rgba(49, 217, 161, .20); background: rgba(49, 217, 161, .06); }
.support-message > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 15px; }
.support-message strong { color: #dfe8f4; font-size: 10px; }
.support-message time { color: var(--dim); font-size: 10px; }
.support-message p { margin: 7px 0 0; color: #c7d4e4; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message details { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.support-message summary { color: #8fdcc5; cursor: pointer; font-size: 10px; font-weight: 750; }
.support-message pre { max-height: 260px; margin: 9px 0 0; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #041225; color: #afc0d4; font: 9px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; }
.drawer-shell { height: 100%; overflow-y: auto; border-left: 1px solid var(--line-strong); background: linear-gradient(155deg, #0d2944, #06172b 65%); box-shadow: -25px 0 70px rgba(0, 0, 0, .34); }
.drawer-head { position: sticky; top: 0; z-index: 3; min-height: 86px; padding: 19px 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(7, 24, 43, .97); }
.drawer-head h2 { max-width: 390px; margin: 5px 0 0; overflow: hidden; color: var(--text-strong); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.drawer-loading { padding: 38px 22px; color: var(--muted); }
.drawer-content { padding: 18px 21px 28px; }
.license-summary { padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 20px; border: 1px solid rgba(49, 217, 161, .20); border-radius: 14px; background: rgba(49, 217, 161, .055); }
.license-summary p { margin: 11px 0 2px; color: var(--text-strong); font-size: 18px; font-weight: 800; }
.license-summary small { color: var(--muted); }
.license-summary-copy > small { display: block; margin-top: 2px; }
.license-summary-copy > .expiry-stack { margin-top: 12px; }
.license-summary-copy .expiry-countdown { color: #7ce5bd; font-size: 12px; }
.license-summary-copy .expiry-countdown.urgent { color: #f8d98f; }
.license-summary-copy .expiry-countdown.expired { color: #aab8c8; }
.license-summary-copy .expiry-date { font-size: 10px; }
.license-id { max-width: 200px; text-align: right; }
.license-id span, .license-id code { display: block; }
.license-id span { color: var(--dim); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.license-id code { margin: 7px 0 3px; overflow: hidden; color: #b9cadc; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.detail-grid { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.detail-grid > div { min-height: 69px; padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid > div:nth-child(2n) { border-right: 0; }
.detail-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-grid dt { color: var(--dim); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.detail-grid dd { margin: 7px 0 0; overflow: hidden; color: #dce6f2; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.drawer-section { margin-top: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 19, 36, .44); }
#drawerUsageObservation .detail-grid dd { overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.drawer-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.drawer-section-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.drawer-section h3 { margin: 0; color: #e5edf7; font-size: 14px; }
.drawer-section-head p { margin: 4px 0 0; color: var(--dim); font-size: 10px; }
.mini-count { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.action-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.action-button { min-height: 72px; padding: 11px; display: grid; grid-template-columns: 31px 1fr; grid-template-rows: auto auto; gap: 1px 9px; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(13, 40, 67, .72); color: #dce6f2; text-align: left; }
.action-button:hover { border-color: rgba(100, 204, 230, .31); background: var(--surface-hover); }
.action-button > span { grid-row: 1 / 3; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(100, 204, 230, .10); color: var(--cyan); font-size: 16px; }
.action-button b { font-size: 11px; }
.action-button small { color: var(--dim); font-size: 10px; }
.action-button.warning > span { background: rgba(245, 201, 103, .09); color: var(--amber); }
.action-button.positive > span { background: var(--green-soft); color: var(--green); }
.action-button.danger { border-color: rgba(255, 115, 133, .18); }
.action-button.danger > span { background: var(--red-soft); color: var(--red); }
.device-list, .timeline-list, .entitlement-list { margin-top: 13px; display: grid; gap: 8px; }
.entitlement-conflict { border-color: rgba(245, 201, 103, .30); background: rgba(91, 67, 21, .14); }
.entitlement-conflict-note { margin: 12px 0 0; color: #c9d5e3; font-size: 10px; line-height: 1.55; }
.entitlement-row { padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9, 30, 52, .70); }
.entitlement-row.current { border-color: rgba(245, 201, 103, .28); }
.entitlement-row-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.entitlement-row-heading strong { min-width: 0; overflow: hidden; color: #e7eef7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.entitlement-row .expiry-stack { margin-top: 7px; }
.entitlement-row .button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
.current-entitlement-label { color: #f5d588; font-size: 10px; font-weight: 800; white-space: nowrap; }
.conflict-resolution-button { width: 100%; margin-top: 12px; }
.device-row { padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9, 30, 52, .54); }
.device-row strong, .device-row small { display: block; }
.device-row strong { color: #dce6f2; font-size: 11px; }
.device-row small { margin-top: 4px; color: var(--dim); font-size: 10px; }
.device-row .button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
.linked-record-list { display: grid; gap: 8px; }
.linked-record-item { min-width: 0; padding: 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(9, 30, 52, .54); }
.linked-record-item > div:first-child { min-width: 0; }
.linked-record-item strong, .linked-record-item small, .linked-record-item code { display: block; }
.linked-record-item strong { color: var(--text-strong); font-size: 11px; }
.linked-record-item small { margin-top: 4px; color: var(--dim); font-size: 10px; line-height: 1.45; }
.linked-record-item code { margin-top: 4px; color: #b9cadc; font-size: 10px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.linked-record-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.linked-record-actions .button, .linked-record-actions .text-button { flex: 0 0 auto; }
.linked-record-key { grid-column: 1 / -1; min-width: 0; padding-top: 6px; }
.linked-record-key-value { display: block; overflow-wrap: anywhere; word-break: break-word; white-space: normal; user-select: text; }
.compact-pagination { margin-top: 10px; }
.timeline-item { position: relative; padding: 4px 0 12px 21px; border-left: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.timeline-item:last-child { padding-bottom: 3px; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item strong { color: #dce6f2; font-size: 10px; }
.timeline-item small { margin-top: 4px; color: var(--dim); font-size: 10px; }
.drawer > .drawer-shell > .form-message { padding: 0 21px 20px; }
.inline-empty { padding: 15px 0; color: var(--dim); font-size: 10px; text-align: center; }
.nodes-list { margin-top: 2px; display: grid; gap: 5px; }
.nodes-list.telemetry-stale .node-card { border-color: rgba(245, 201, 103, .42); }
.nodes-monitoring-controls { margin-top: 12px; padding: 10px 12px; display: grid; grid-template-columns: repeat(3, minmax(150px, 220px)); align-items: end; gap: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(9, 30, 52, .54); }
.nodes-monitoring-controls p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.node-reading-guide, .node-management-tools { margin-top: 9px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 19, 36, .34); }
.node-reading-guide > summary, .node-management-tools > summary { color: #b9cadc; font-size: 11px; font-weight: 750; cursor: pointer; }
.node-reading-guide p { max-width: 1000px; margin: 8px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.node-management-tools-content { margin-top: 10px; }
.node-management-dynamic-content { margin-top: 10px; display: grid; gap: 12px; }
.node-management-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nodes-last-updated { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.node-reserve-sort { margin-top: 10px; }
.node-attention-banner { margin-bottom: 4px; padding: 8px 11px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 11px; background: rgba(9, 30, 52, .58); }
.node-attention-banner.has-error { border-color: rgba(255, 115, 133, .45); border-left-color: #ff7385; background: rgba(74, 23, 39, .42); }
.node-attention-banner.has-warning { border-color: rgba(245, 201, 103, .45); border-left-color: #f5c967; background: rgba(73, 57, 24, .28); }
.node-attention-banner.is-clear { border-left-color: var(--green); }
.node-attention-banner.is-unknown { border-left-color: var(--muted); background: rgba(41, 56, 74, .28); }
.node-attention-banner h2 { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-strong); font-size: 13px; }
.node-attention-icon { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--green); font-size: 12px; font-weight: 900; }
.has-error .node-attention-icon { color: #ff9bab; }
.has-warning .node-attention-icon { color: #f5d588; }
.is-unknown .node-attention-icon { color: var(--muted); }
.node-summary-scope { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 600; }
.node-attention-banner p { margin: 4px 0 0; color: #d0dceb; font-size: 10px; line-height: 1.4; }
.node-attention-banner .node-attention-next { color: var(--text-strong); font-weight: 700; }
.node-monitoring-summary { padding: 0; }
.node-monitoring-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.node-monitoring-summary-grid > div { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9, 30, 52, .48); }
.node-monitoring-summary-grid > div > span, .node-monitoring-summary-grid > div > strong, .node-monitoring-summary-grid > div > small { display: block; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.node-monitoring-summary-grid > div > span { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.4; }
.node-monitoring-summary-grid > div > strong { margin-top: 4px; color: var(--text-strong); font-size: 15px; line-height: 1.25; letter-spacing: 0; }
.node-monitoring-summary-grid > div > small { margin-top: 3px; color: var(--dim); font-size: 9px; line-height: 1.3; }
.node-monitoring-table-card { min-width: 0; overflow: visible; }
.node-monitoring-table-card .table-toolbar { flex-wrap: wrap; }
.node-monitoring-table-card .table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: rgba(143, 166, 191, .65) rgba(9, 30, 52, .7); scrollbar-width: auto; }
.node-monitoring-table-card .table-scroll::-webkit-scrollbar { height: 11px; }
.node-monitoring-table-card .table-scroll::-webkit-scrollbar-track { background: rgba(9, 30, 52, .7); }
.node-monitoring-table-card .table-scroll::-webkit-scrollbar-thumb { border: 2px solid rgba(9, 30, 52, .7); border-radius: 999px; background: rgba(143, 166, 191, .65); }
.node-monitoring-table { width: 100%; min-width: 0; table-layout: fixed; }
.node-monitoring-table th:nth-child(1) { width: 14%; }
.node-monitoring-table th:nth-child(2) { width: 13%; }
.node-monitoring-table th:nth-child(3) { width: 15%; }
.node-monitoring-table th:nth-child(4) { width: 14%; }
.node-monitoring-table th:nth-child(5) { width: 20%; }
.node-monitoring-table th:nth-child(6) { width: 24%; }
.node-monitoring-table td, .node-monitoring-table th { vertical-align: top; overflow-wrap: anywhere; white-space: normal; }
.node-monitoring-table th[scope="row"] > strong, .node-monitoring-table th[scope="row"] > small, .node-monitoring-table td > strong, .node-monitoring-table td > small { display: block; }
.node-monitoring-table th[scope="row"] > small, .node-monitoring-table td > small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; }
.node-monitoring-toggle { display: inline-flex; min-height: 28px; align-items: center; color: #b8ceff; font-size: 10px; text-transform: none; }
.node-monitoring-table .node-status-cell.error > strong { color: #ff9bab; }
.node-monitoring-table .node-status-cell.warning > strong { color: #f5d588; }
.node-monitoring-table .node-status-cell.maintenance > strong { color: #b8ceff; }
.node-monitoring-table .node-status-cell.healthy > strong { color: #8af0cc; }
.node-monitoring-table progress { display: block; width: 100%; height: 10px; margin-bottom: 5px; accent-color: var(--green); }
.node-monitoring-table progress::-webkit-progress-bar { border-radius: 999px; background: rgba(143, 166, 191, .20); }
.node-monitoring-table progress::-webkit-progress-value { border-radius: 999px; background: var(--green); }
.node-monitoring-table progress::-moz-progress-bar { border-radius: 999px; background: var(--green); }
.node-monitoring-detail-row > td { width: 100%; padding: 0 !important; border-top: 0 !important; text-transform: none; }
.node-monitoring-detail { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 11px 14px; border-top: 1px solid var(--line); background: rgba(5, 19, 36, .32); }
.node-monitoring-detail > summary { color: #b9cadc; font-size: 11px; font-weight: 750; cursor: pointer; }
.node-monitoring-technical { grid-column: 1 / -1; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5, 19, 36, .38); }
.node-monitoring-technical > summary, .node-monitoring-history-details > summary { color: #b9cadc; font-size: 10px; font-weight: 750; cursor: pointer; }
.node-monitoring-metrics { margin-top: 10px; }
.node-monitoring-charts { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.node-monitoring-charts h3 { grid-column: 1 / -1; margin: 0; color: var(--text-strong); font-size: 12px; }
.node-monitoring-chart { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9, 30, 52, .60); }
.node-monitoring-chart strong, .node-monitoring-chart small { display: block; }
.node-monitoring-chart strong { color: #dce6f2; font-size: 10px; }
.node-monitoring-chart small { margin-top: 7px; color: var(--dim); font-size: 9px; line-height: 1.4; }
.node-monitoring-sparkline, .node-monitoring-daily-bars { height: 64px; margin-top: 8px; display: flex; align-items: end; gap: 2px; border-bottom: 1px solid rgba(143, 166, 191, .30); background: repeating-linear-gradient(to bottom, transparent 0, transparent 20px, rgba(143, 166, 191, .08) 21px); }
.node-monitoring-point, .node-monitoring-day { min-width: 3px; flex: 1 1 3px; border-radius: 2px 2px 0 0; background: var(--green); }
.node-monitoring-point.tx { background: #79a9ff; }
.node-monitoring-point.gap, .node-monitoring-day.gap { align-self: stretch; min-height: 0; border: 1px dashed rgba(245, 201, 103, .44); background: transparent; }
.node-monitoring-day.partial { background: repeating-linear-gradient(135deg, rgba(49, 217, 161, .85) 0 3px, rgba(245, 201, 103, .75) 3px 5px); }
.node-monitoring-day { max-width: 10px; }
.node-monitoring-history-details { grid-column: 1 / -1; min-width: 0; }
.node-monitoring-charts > .node-monitoring-history-details > .node-monitoring-accessible-table { width: 100%; min-width: 0; table-layout: fixed; margin-top: 8px; border-collapse: collapse; }
.node-monitoring-accessible-table th, .node-monitoring-accessible-table td { padding: 6px; vertical-align: top; border-bottom: 1px solid rgba(205, 224, 246, .08); font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.node-monitoring-accessible-table th { color: #a9b8ca; text-align: left; }
.node-monitoring-accessible-table caption { padding: 7px 0; color: var(--muted); text-align: left; }
.route-explain-controls { margin-top: 14px; padding: 12px; display: grid; grid-template-columns: minmax(180px, 240px) minmax(220px, 300px) minmax(0, 1fr); gap: 10px 14px; align-items: end; border: 1px solid var(--line); border-radius: 13px; background: rgba(9, 30, 52, .54); }
.route-explain-controls .select-field { display: grid; gap: 6px; }
.route-explain-controls .select-field > span { color: var(--dim); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.route-explain-controls p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.node-routing-advisory > strong, .node-routing-advisory-label, .node-monitoring-table .node-status-cell.advisory > strong { color: #ff9bab; }
.node-routing-advisory-label { display: block; margin-top: 4px; }
.node-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 19, 36, .44); }
.node-card.offline { border-color: rgba(255, 115, 133, .28); }
.node-card.draining { border-color: rgba(245, 201, 103, .30); }
.node-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.node-card-head h2 { margin: 0; color: var(--text-strong); font-size: 15px; }
.node-card-head p { margin: 5px 0 0; color: var(--muted); font: 10px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.node-statuses { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.node-routing-pill { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.node-routing-pill.ready { border-color: rgba(49, 217, 161, .34); color: #8af0cc; background: rgba(49, 217, 161, .08); }
.node-routing-pill.draining, .node-routing-pill.not_ready { border-color: rgba(245, 201, 103, .32); color: #f5d588; background: rgba(245, 201, 103, .08); }
.node-routing-pill.offline { border-color: rgba(255, 115, 133, .32); color: #ff9bab; background: rgba(255, 115, 133, .08); }
.node-telemetry-pill { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(111, 137, 166, .08); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.node-telemetry-pill.online, .node-telemetry-pill.eligible { border-color: rgba(49, 217, 161, .28); color: #8af0cc; background: rgba(49, 217, 161, .08); }
.node-telemetry-pill.offline, .node-telemetry-pill.ineligible { border-color: rgba(255, 115, 133, .28); color: #ff9bab; background: rgba(255, 115, 133, .08); }
.node-telemetry-pill.degraded { border-color: rgba(245, 201, 103, .32); color: #f5d588; background: rgba(245, 201, 103, .08); }
.riga-pool-pill { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(126, 168, 255, .42); border-radius: 999px; color: #b8ceff; background: rgba(86, 130, 235, .12); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.riga-pool-pill.production { border-color: rgba(49, 217, 161, .52); color: #8af0cc; background: rgba(49, 217, 161, .12); }
.riga-pool-note { margin: 12px 0 0; padding: 9px 11px; border-left: 3px solid rgba(126, 168, 255, .70); border-radius: 0 9px 9px 0; color: #c8d8f7; background: rgba(65, 99, 175, .10); font-size: 10px; line-height: 1.45; }
.riga-pool-note.production { border-left-color: var(--green); color: #bdf4dd; background: rgba(49, 217, 161, .08); }
.node-metrics { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.node-metrics > div { min-width: 0; padding: 11px 12px; border-right: 1px solid var(--line); }
.node-metrics > div:nth-child(4n) { border-right: 0; }
.node-metrics > div:nth-child(n+5) { border-top: 1px solid var(--line); }
.node-metrics span, .node-metrics strong, .node-metrics small { display: block; }
.node-metrics span, .node-metrics strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-metrics span { color: var(--dim); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.node-metrics strong { margin-top: 5px; color: #dce6f2; font-size: 12px; }
.node-metrics small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.node-actions, .node-credential-actions { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.node-actions .button, .node-credential-actions .button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
.riga-pool-action { box-shadow: inset 0 0 0 1px rgba(126, 168, 255, .35); }
.node-credentials { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.node-credentials-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.node-credentials h3 { margin: 0; color: #e5edf7; font-size: 12px; }
.node-credentials > p { margin: 5px 0 0; color: var(--dim); font-size: 10px; }
.node-credential-row { margin-top: 8px; padding: 10px 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9, 30, 52, .54); }
.node-credential-row strong, .node-credential-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-credential-row strong { color: #dce6f2; font: 700 10px/1.35 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.node-credential-row small { margin-top: 4px; color: var(--dim); font-size: 10px; }
.node-action-modal, .node-credential-result-modal { width: min(680px, calc(100vw - 28px)); }
.node-action-fields { margin-top: 16px; display: grid; gap: 12px; }
.node-action-fields fieldset { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.node-action-fields legend { padding: 0 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.node-scope-options { display: flex; flex-wrap: wrap; gap: 10px; }
.node-scope-options label { display: flex; align-items: center; gap: 7px; color: #d4deeb; font-size: 10px; }
.node-scope-options input { accent-color: var(--green); }
.node-credential-result-list { margin-top: 14px; display: grid; gap: 9px; }
.node-credential-result-list label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 750; }
.node-credential-result-list input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px dashed rgba(49, 217, 161, .46); border-radius: 10px; background: #061426; color: #8af0cc; font: 700 11px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; }

.sidebar-backdrop { position: fixed; z-index: 25; inset: 0; background: rgba(1, 6, 15, .66); }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(360px, calc(100vw - 28px)); display: grid; gap: 9px; pointer-events: none; }
.toast { padding: 13px 15px; border: 1px solid rgba(49, 217, 161, .27); border-radius: 12px; background: #0b2b3e; color: #dcf7ed; box-shadow: 0 12px 38px rgba(0, 0, 0, .30); font-size: 11px; font-weight: 700; animation: toast-in .2s ease-out; }
.toast.error { border-color: rgba(255, 115, 133, .31); background: #351827; color: #ffd3d9; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Keep intrinsic content inside its card; wide tables scroll in their own wrapper. */
.field, .field input, .field select, .field textarea, .form-grid, .form-grid > *,
.section-head > div, .modal-head > div, .drawer-head > div, .drawer-section-head > div,
.detail-grid > div, .license-summary > div, .node-card-head > div, .node-credentials-head > div,
.node-action-fields fieldset { min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; }
.modal-head > .icon-button, .drawer-head > .icon-button { flex-shrink: 0; }
.table-card, .table-scroll { min-width: 0; max-width: 100%; }
.license-view-mode, .pagination { flex-wrap: wrap; }
.modal-head h2, .drawer-section-head h3, .support-message strong,
.section-head h1, .node-card-head h2 { overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .payment-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payment-detail-grid > div:nth-child(2n) { border-right: 0; }
  .payment-detail-grid > div:nth-child(4n) { border-right: 0; }
  .payment-detail-grid > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .payment-detail-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .route-explain-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .route-explain-controls p { grid-column: 1 / -1; }
  .nodes-monitoring-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .node-monitoring-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-monitoring-charts { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-102%); width: 255px; transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .35); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .main-content { padding-inline: 22px; }
  .environment-banner { width: calc(100% - 44px); }
}

@media (max-width: 680px) {
  .nodes-monitoring-controls { grid-template-columns: 1fr; }
  .nodes-monitoring-controls .select-field { width: 100%; }
  .node-monitoring-summary-grid { grid-template-columns: 1fr; }
  .node-monitoring-table { min-width: 760px; }
  .node-monitoring-charts { grid-template-columns: 1fr; }
  .recovery-method-grid, .recovery-codes-list { grid-template-columns: 1fr; }
  .login-view { padding: 16px; }
  .login-card { padding: 24px; border-radius: 19px; }
  .setup-view { padding: 12px; }
  .setup-card { padding: 24px 20px; }
  .mfa-enrollment-grid { grid-template-columns: 1fr; }
  .mfa-qr-shell { margin: 0 auto; }
  .secret-row { grid-template-columns: 1fr; }
  .topbar { padding-inline: 14px; }
  .topbar-title span { display: none; }
  .operator-menu > div { display: none; }
  .operator-avatar { display: none; }
  #openMfaRebind { width: 40px; padding-inline: 0; font-size: 0; }
  #openMfaRebind::after { content: "◇"; font-size: 15px; }
  .main-content { padding: 25px 14px 55px; }
  .environment-banner { width: calc(100% - 28px); margin-top: 12px; margin-bottom: -4px; }
  .section-head { align-items: stretch; flex-direction: column; gap: 15px; }
  .section-head .button { align-self: flex-start; }
  .section-actions { width: 100%; flex-wrap: wrap; }
  .section-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 115px; padding: 15px; }
  .metric-card strong { font-size: 31px; }
  .panel { padding: 16px; }
  .filter-bar { align-items: stretch; }
  .status-tabs { margin-top: 18px; }
  .search-field, .select-field { width: 100%; min-width: 0; }
  .select-field select { width: 100%; }
  .filter-check { width: 100%; }
  .filter-bar .button { flex: 1; }
  .table-toolbar span:last-child { display: none; }
  .form-grid.two-columns, .detail-grid, .license-summary { grid-template-columns: 1fr; }
  .detail-grid > div { border-right: 0; }
  .detail-grid > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .license-id { max-width: none; text-align: left; }
  .action-grid { grid-template-columns: 1fr; }
  .payment-lifecycle-grid, .payment-detail-grid { grid-template-columns: 1fr; }
  .route-explain-controls { grid-template-columns: 1fr; }
  .route-explain-controls p { grid-column: auto; }
  .nodes-monitoring-controls { grid-template-columns: 1fr; }
  .nodes-monitoring-controls p { grid-column: auto; }
  .node-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-metrics > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .node-metrics > div:nth-child(2n) { border-right: 0; }
  .node-metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .payment-detail-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .payment-detail-grid > div:last-child { border-bottom: 0 !important; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .modal-card { padding: 20px; }
  .support-message { max-width: 96%; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .conflict-license-choices { grid-template-columns: 1fr; }
  .node-card-head, .node-credentials-head { align-items: stretch; flex-direction: column; }
  .node-statuses { justify-content: flex-start; }
  .node-routing-pill { align-self: flex-start; }
  .node-credential-row { grid-template-columns: 1fr; }
  .operator-menu .button { padding-inline: 10px; }
  .drawer-head, .drawer-content { padding-inline: 15px; }
  .drawer-section { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .environment-banner, .status-tabs, .filter-bar, .pagination, .button, dialog, .toast-region { display: none !important; }
  body { background: #fff; color: #111; }
  .app-shell { display: block; }
  .main-content { width: 100%; padding: 0; }
  .panel, .table-card, .metric-card { border-color: #bbb; background: #fff; box-shadow: none; }
}

@media (max-width: 680px) {
  .drawer-head h2, .detail-grid dd, .node-metrics span, .node-metrics strong,
  .entitlement-row-heading strong, .device-row strong, .device-row small {
    overflow-wrap: anywhere; white-space: normal;
  }
  .filter-check { white-space: normal; }
}
@media (max-width: 430px) {
  .entitlement-row, .device-row, .linked-record-item { grid-template-columns: minmax(0, 1fr); }
  .entitlement-row > .button, .device-row > .button, .linked-record-item > .button { justify-self: start; }
}
@media (pointer: coarse) {
  .button, .status-tab, .text-button, .node-monitoring-toggle,
  .node-actions .button, .node-credential-actions .button,
  .entitlement-row .button, .device-row .button { min-height: 44px; }
  .icon-button, .row-action { min-width: 44px; min-height: 44px; }
  #openMfaRebind { min-width: 44px; }
}
