@font-face {
  font-family: Inter;
  src: url("inter-ui.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #172a45;
  --muted: #52637a;
  --line: #d9e1eb;
  --canvas: #f2f5fa;
  --paper: #fff;
  --blue: #2357cb;
  --blue-dark: #16429f;
  --nav: #142640;
  --radius: 14px;
  --shadow: 0 2px 5px rgba(24,46,76,.045);
}
*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none }
a:hover { color: var(--blue-dark) }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer }
:focus-visible { outline: 3px solid #1273df; outline-offset: 3px }
h1, h2, h3, p, dl, dd, ul { margin: 0 }
h1 { font-size: clamp(27px, 3vw, 39px); line-height: 1.15; letter-spacing: -.052em; font-weight: 710; overflow-wrap: anywhere }
h2 { font-size: 18px; line-height: 1.35; letter-spacing: -.032em; font-weight: 680 }
h3 { font-size: 15px; line-height: 1.4 }
small { font-size: 12px }
.mono, .router-spec dd, .secret-mask, code, pre, .router-script textarea { font-family: ui-monospace, Consolas, monospace; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.skip-link:focus { position: fixed; z-index: 5; top: 8px; left: 10px; background: white; padding: 10px 14px; border-radius: 5px }
.icon-defs { width: 0; height: 0; position: absolute; overflow: hidden; pointer-events: none }
.icon { width: 19px; height: 19px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: middle }
.masthead { background: var(--nav); color: white; }
.mast-inner, .canvas { width: min(calc(100% - 88px), 1432px); margin-inline: auto }
.mast-inner { min-height: 70px; display: flex; align-items: stretch; gap: clamp(22px, 3.5vw, 66px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: white; font-size: 21px; font-weight: 700; letter-spacing: -.06em; white-space: nowrap }
.wordmark:hover { color: white }
.brand-second { margin-left: 4px; color: #c4d1e6; font-weight: 440 }
.brand-tile { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #477eec; color: #fff; box-shadow: inset 0 0 0 1px #ffffff28 }
.brand-tile .icon { width: 30px; height: 30px; }
.main-nav { display: flex; align-items: stretch; gap: 4px; }
.main-nav > a, .subscriptions-nav > summary { display: inline-flex; align-items: center; gap: 8px; position: relative; padding: 0 clamp(8px,1.1vw,18px); color: #b9c9db; font-size: 13px; white-space: nowrap; font-weight: 550 }
.main-nav > a:hover, .main-nav > a[aria-current], .subscriptions-nav > summary:hover, .subscriptions-nav[open] > summary, .subscriptions-nav[data-current] > summary { color: #fff; background: #213751 }
.main-nav > a[aria-current]::after, .subscriptions-nav[data-current] > summary::after { position: absolute; content: ""; height: 3px; background: #79aaff; bottom: 0; inset-inline: 12px; border-radius: 3px 3px 0 0 }
.nav-short { display: none }
.account { display: flex; align-items: center; gap: 9px; margin-left: auto; font-size: 12px; font-weight: 560; min-width: 0 }
.account-name { max-width: 138px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.account-name small { display: block; color: #b9c9db; font-size: 11px; line-height: 1.3; }
.avatar { width: 33px; height: 33px; border-radius: 10px; background: #e7edf8; color: #325183; display: inline-grid; place-items: center; font-weight: 640; flex-shrink: 0 }
.account-avatar { border-radius: 50%; width: 30px; height: 30px; background: #d9e6fc; color: #1d416b }
.icon-button { background: transparent; color: #cfdef0; border: 0; padding: 8px; border-radius: 7px; display: inline-flex; }
.icon-button:hover { background: #304862; color: #fff }
.masthead :focus-visible, .metric-primary:focus-visible { outline-color: #a9d2ff; outline-offset: -3px }
.canvas { padding: 33px 0 22px; }
.page-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-heading { margin-bottom: 24px; }
.page-heading p, .panel-heading p, .sync-description p, .login-card>p { margin-top: 5px; color: var(--muted); }
.page-heading p { font-size: 13px }
.heading-actions, .router-actions, .row-actions, .script-buttons, .router-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }
.button, .arrow-link, .text-link, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 610; }
.button { background: var(--blue); color: white; border: 1px solid var(--blue); padding: 10px 16px; line-height: 1.35; border-radius: 8px; font-size: 13px; min-height: 40px; text-align: center; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: white; }
.button .icon { width: 16px; height: 16px; }
.secondary-button, .arrow-link { background: #fff; color: #294968; border: 1px solid #cbd6e3; }
.secondary-button:hover, .arrow-link:hover { background: #edf3fe; border-color: #a9bddc; color: var(--blue-dark) }
.text-button, .text-link { background: transparent; border: 0; padding: 0; color: var(--blue); font-size: 13px }
.text-link:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.delete-link { color: #a33b42; }
.delete-button, .delete-button:hover { color: white; background: #ad363e; border-color: #ad363e; }
.arrow-link { height: 32px; width: 32px; border-radius: 50%; }
.panel, .metric { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel { margin-bottom: 20px; }
.panel-heading { min-height: 70px; padding: 17px 22px; }
.panel-heading p { font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: 1.12fr repeat(3,1fr); gap: 16px; margin-bottom: 21px }
.metric { display: flex; align-items: flex-start; flex-direction: column; padding: 18px 21px; color: var(--ink); gap: 9px; }
.metric:hover { border-color: #a1b5d5; color: var(--ink); box-shadow: 0 3px 11px #243b5d14 }
.metric-top { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #40516b; }
.metric-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9px; flex-shrink: 0; }
.metric-icon.sky { background: #e8eefc; color: #365baf; }.metric-icon.mint { background: #e2f3ed; color: #207462; }.metric-icon.sand { background: #fcf0d9; color: #86600a; }
.metric strong { font-size: clamp(30px,3.1vw,42px); line-height: 1.05; letter-spacing: -.06em; font-weight: 660; font-variant-numeric: tabular-nums; }
.metric-bottom { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.metric-bottom .icon { width: 16px; height: 16px; }
.metric-primary, .metric-primary:hover { background: #204a83; border-color: #204a83; color: white; }
.metric-primary .metric-top { color: #e7f1ff; }.metric-primary .metric-bottom { color: #dbeaff; }.metric-primary .metric-icon { background: #365f95; color: white; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.83fr) minmax(285px,1fr); align-items: stretch; gap: 20px; }
.recent-table { display: grid; }
.recent-row { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr) minmax(125px,.8fr); gap: 16px; align-items: center; min-height: 60px; padding: 10px 22px; border-top: 1px solid #e6ecf2; font-size: 13px; overflow-wrap: anywhere; }
.recent-row:hover:not(.recent-head), tbody tr:hover { background: #f8faff; }
.recent-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.recent-head { min-height: 33px; background: #f5f7fb; color: #53657a; font-size: 11px; letter-spacing: .02em; font-weight: 630; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0 }
.person a, .router-name { color: #1e3e69; font-weight: 650; }
.person a:hover, .router-name:hover { text-decoration: underline }
.person small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.recent-row:nth-child(3n) .avatar { background: #e2f1ed; color: #317563; }
.recent-row:nth-child(3n + 1) .avatar { background: #f7ebdc; color: #80582e; }
.mix-chart { display: grid; place-items: center; background: var(--ring); width: 135px; height: 135px; margin: 4px auto 16px; border-radius: 50%; }
.mix-chart>div { width: 106px; height: 106px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.mix-chart strong { font-size: 29px; letter-spacing: -.055em; line-height: 1.1; }.mix-chart small { color: var(--muted); margin-top: 2px; }
.mix-legend { list-style: none; padding: 0 22px 18px; }
.mix-legend li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; color: #394e65; font-size: 13px; }
.mix-legend li i { width: 9px; height: 9px; border-radius: 3px; background: var(--swatch); flex-shrink: 0; }
.mix-legend li span { overflow-wrap: anywhere; }.mix-legend li strong { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.sync-panel { display: flex; align-items: center; gap: 30px; padding: 19px 22px; }
.sync-description { display: flex; align-items: center; gap: 12px; margin-right: auto; }.sync-description h2 { font-size: 16px; }.sync-description p { font-size: 12px; margin-top: 2px; }
.sync-count { display: flex; flex-direction: column; padding-left: 20px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sync-count strong { font-size: 21px; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--ink); }
.footer { display: flex; justify-content: space-between; color: #66758a; border-top: 1px solid var(--line); padding: 15px 1px 2px; font-size: 11px; }.footer b { margin: 0 3px; font-weight: 400; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
th { background: #f3f6fb; color: #4c6079; font-weight: 630; font-size: 11px; letter-spacing: .025em; }
th, td { border-top: 1px solid #e0e7ef; padding: 13px 15px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 22px; }th:last-child, td:last-child { padding-right: 22px; }
td { overflow-wrap: anywhere; }td strong { font-weight: 620; }td small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
td .text-link { font-size: 12px; }
td.row-actions { display: table-cell; }.row-actions .text-link + .text-link, .customer-action .text-link + .text-link { margin-left: 8px; }
.mobile-field, .mobile-label { display: none; }.count-inline { display: inline-block; border-radius: 6px; padding: 1px 7px; margin-left: 4px; background: #eaf0fa; color: #3c5376; font-size: 12px; vertical-align: middle; }
.badge, .inet-status, .online-count { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: #eaf0f6; color: #445870; font-size: 11px; font-weight: 620; white-space: normal; line-height: 1.5; }
.inet-status::before { content: ""; background: currentColor; border-radius: 50%; width: 6px; height: 6px; flex-shrink: 0; }
.inet-status[data-state="Online"], .badge.synced, .online-count.has-sessions { color: #17654e; background: #dff3e9; }
.inet-status[data-state="Offline"], .badge.failed { color: #97383a; background: #fbe7e7; }
.inet-status[data-state="Stale"], .badge.pending { color: #805908; background: #fff1d5; }
.inet-refresh { padding: 0 clamp(14px, 2vw, 22px) 12px; color: var(--muted); font-size: 12px; }
.inet-refresh time { font-variant-numeric: tabular-nums; }
.inet-refresh .text-button, .inet-refresh .text-link { font-size: inherit; }
.inet-refresh [role="status"]:not(:empty) { margin-top: 4px; color: var(--ink); }
.secret-mask { color: #63748b; letter-spacing: 1.8px; }
.pagination:empty { display: none; }.pagination nav { border-top: 1px solid var(--line); padding: 14px 19px; }.pagination ul { display: flex; align-items: center; gap: 16px; list-style: none; padding: 0; color: var(--muted); font-size: 12px; }.pagination a { font-weight: 600; }.pagination .disabled { color: #64738a; }
.directory-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.search-field { display: flex; gap: 8px; align-items: center; min-width: 0; background: #f9fbfe; border: 1px solid #bdcada; border-radius: 7px; padding-left: 10px; }
.search-field .icon { width: 16px; color: #65788f; }.search-field input { border: 0; background: transparent; width: min(225px,34vw); padding: 8px 8px 8px 0; font-size: 12px; min-height: 36px; }.search-field:focus-within { outline: 2px solid #6494ec; outline-offset: 1px; }.search-field input:focus { outline: 0; box-shadow: none; }.directory-search .button { min-height: 36px; padding: 7px 12px; }
.section-search { padding: 0 22px 14px; }
.empty-state { display: grid; place-content: center; gap: 5px; text-align: center; min-height: 140px; padding: 22px; color: var(--muted); }
.empty-state h3 { color: var(--ink); }.empty-state>span[aria-hidden] { display: none; }
.notice, .generator-notice, .script-stale, .subnet-info { margin: 0 0 14px; padding: 12px 15px; background: #edf3fe; border: 1px solid #cadbf8; border-radius: 8px; color: #244c86; overflow-wrap: anywhere; }
.notice.success { background: #e7f6ee; color: #1d634e; border-color: #c0e4d3; }.notice.error { background: #fff0ef; color: #963a36; border-color: #f3ccc8; }.notice ul { padding-left: 20px; }
.form-panel>.notice { margin: 0 22px 18px; }
label { display: block; font-size: 12px; font-weight: 620; color: #354963; margin-bottom: 6px; }
input, textarea, select { display: block; width: 100%; min-width: 0; max-width: 100%; border: 1px solid #bccadb; border-radius: 7px; background: #fff; padding: 10px 12px; min-height: 41px; color: var(--ink); }
textarea { resize: vertical; } input[type=checkbox] { display: inline-block; width: auto; min-height: 0; accent-color: var(--blue); }
input[readonly], textarea[readonly] { background: #f3f6fa; }
input:focus, textarea:focus, select:focus { outline: 2px solid #6f9ef4; outline-offset: 1px; }
.optional, .field-help { color: var(--muted); font-weight: 400; font-size: 11px; }.optional { margin-left: 4px; }.field-help { display: block; margin-top: 5px; line-height: 1.55; }
.form-grid { padding: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 22px; }
.four-columns { grid-template-columns: repeat(4,minmax(0,1fr)); }
.span-all { grid-column: 1/-1; }.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 17px; font-size: 12px; color: var(--muted); }
.invoice-filters { display: inline-flex; gap: 3px; margin: 0 22px 16px; padding: 3px; background: #edf1f7; border-radius: 8px; flex-wrap: wrap; }.invoice-filters a { padding: 6px 12px; border-radius: 6px; color: #53647a; font-size: 12px; font-weight: 570; }.invoice-filters [aria-current] { background: #fff; color: #1a4eb4; box-shadow: var(--shadow); }
.invoice-data, .router-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px 24px; border-top: 1px solid var(--line); padding: 20px 22px; }
.invoice-data dt, .router-facts small, .router-spec dt { color: var(--muted); font-size: 12px; }.invoice-data dd, .router-facts strong { display: block; margin-top: 5px; font-weight: 610; overflow-wrap: anywhere; }.bill-total { color: var(--blue); font-size: 21px; letter-spacing: -.04em; }
.router-tools { margin-bottom: 16px; justify-content: space-between; }.router-back { margin-bottom: 16px; }
.router-history, .router-body { padding: 16px 22px; border-top: 1px solid var(--line); }.router-history h3 { margin-bottom: 8px; }.router-history ul { padding-left: 18px; }.router-history li { margin-top: 3px; }.router-body p { margin: 9px 0; }
.router-manage { padding: 16px 22px; }.router-manage summary, .manual-fields summary, .router-body summary { font-weight: 610; }.router-manage p { color: var(--muted); margin: 8px 0; }.router-manage form { margin-top: 12px; }.router-manage select { max-width: 440px; margin-bottom: 10px; }
.test-plan-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }.test-plan-picker select { max-width: 350px; }
.generator-grid { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.65fr); border-top: 1px solid var(--line); }.generator-fields, .generator-output { min-width: 0; padding: 22px; }
.generator-fields { display: flex; flex-direction: column; gap: 15px; border-right: 1px solid var(--line); }.generator-fields fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }.generator-fields legend { padding: 0 5px; font-weight: 600; }.network-options>div + div, .network-options details, .network-options[open]>div { margin-top: 12px; }
.identity-option { display: flex; align-items: flex-start; gap: 8px; }.identity-option input { margin-top: 3px; }.subnet-info, .script-instructions { font-size: 12px; }
.script-heading, .router-script>div { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.rsc-import { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.rsc-import label { margin: 0; font-size: 14px; }
.rsc-import p { margin: 0 0 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rsc-import textarea { field-sizing: content; resize: none; font: 13px/1.5 ui-monospace, Consolas, monospace; }
textarea.generated-code, .code-preview, .router-script textarea[readonly], .repair-command { width: 100%; min-width: 0; max-width: 100%; overflow: auto; background: #13253d; color: #dfeaff; border: 1px solid #2f435f; border-radius: 8px; padding: 13px; font: 12px/1.7 ui-monospace,Consolas,monospace; }
textarea.generated-code { min-height: 320px; }.code-preview { white-space: pre-wrap; overflow-wrap: anywhere; }.repair-command { white-space: pre-wrap; overflow-wrap: anywhere; }
.script-instructions, .manual-fields, .router-script, .router-spec { margin: 14px 0; }.router-spec { display: grid; grid-template-columns: minmax(95px,.8fr) minmax(0,1.5fr); gap: 6px 14px; }.router-spec dd { overflow-wrap: anywhere; }.generator-output details { margin-top: 12px; }
.login-page { min-height: 100vh; background: #edf2f8; }.login-header { background: var(--nav); color: #c5d3e7; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px max(24px,6vw); font-size: 13px; }.login-card { width: min(430px,calc(100% - 32px)); margin: clamp(40px,12vh,130px) auto 28px; padding: 34px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px #233f6410; background: #fff; }.login-card h1 { font-size: 29px; }.login-card form { margin-top: 23px; }.login-card label:not(:first-of-type) { margin-top: 16px; }.login-card .button { width: 100%; margin-top: 22px; }.login-symbol { color: #285ed0; background: #eaf1fd; display: inline-grid; place-content: center; width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px; }.login-foot { text-align: center; font-size: 12px; color: var(--muted); }.login-card .notice { margin: 15px 0; }
@media (min-width: 1081px) and (max-width: 1280px) {
  .mast-inner:has(.main-nav > :nth-child(7)) { gap: 16px; }
  .mast-inner:has(.main-nav > :nth-child(7)) .account-name { display: none; }
  .main-nav:has(> :nth-child(7)) > a, .main-nav:has(> :nth-child(7)) > details > summary { padding-inline: 8px; }
}
@media (max-width: 1070px) {
  .canvas,.mast-inner { width: calc(100% - 48px); }.mast-inner { gap: 20px; }.main-nav { gap: 0; }.main-nav > a, .subscriptions-nav > summary { gap: 6px; padding-inline: 9px; }.account-name { display: none; }
  .dashboard-grid { grid-template-columns: minmax(0,1.65fr) minmax(245px,1fr); gap: 14px; }.recent-row { padding-inline: 15px; gap: 8px; grid-template-columns: minmax(0,1.5fr) minmax(80px,1fr) minmax(95px,.8fr); }.metric-grid { gap: 10px; }.metric { padding: 15px; }.sync-panel { gap: 15px; }.four-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  .mast-inner { flex-wrap: wrap; align-items: center; gap: 0; }.masthead .wordmark { margin: 12px 0; }.main-nav { order: 3; width: 100%; border-top: 1px solid #30425a; }.main-nav > a, .subscriptions-nav > summary { justify-content: center; flex: 1; padding: 11px 6px; }.account-name { display: inline; }
}
@media (max-width: 820px) {
  .canvas,.mast-inner { width: calc(100% - 32px); }.metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }.mix-panel { display: grid; grid-template-columns: minmax(145px,.65fr) 1fr; align-items: center; }.mix-panel .panel-heading,.mix-panel .empty-state { grid-column: 1/-1; }.mix-chart { margin: 8px auto 22px; }.mix-legend { padding: 8px 24px 18px 0; }
  .sync-panel { flex-wrap: wrap; }.sync-description { flex: 1 1 100%; }.invoice-data,.router-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }.generator-grid { grid-template-columns: minmax(210px,.85fr) minmax(0,1.25fr); }.generator-fields,.generator-output { padding: 16px; }
}
@media (max-width: 620px) {
  .mast-inner,.canvas { width: calc(100% - 24px); }.masthead .wordmark { font-size: 19px; }.brand-tile { width: 32px; height: 32px; }.account-name { max-width: 106px; }.nav-wide { display: none; }.nav-short { display: inline; }.main-nav > a, .subscriptions-nav > summary { flex-direction: column; min-width: 0; gap: 3px; font-size: 10px; padding: 8px 1px; }.main-nav .icon { width: 17px; height: 17px; }.canvas { padding-top: 22px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 17px; gap: 10px; }.page-heading p { font-size: 12px; }.panel { margin-bottom: 13px; }.panel-heading { padding: 14px; min-height: 52px; flex-wrap: wrap; }.panel-heading h2 { font-size: 16px; }.heading-actions .button { min-height: 36px; padding: 8px 12px; }
  .metric-grid { margin-bottom: 13px; gap: 8px; }.metric { padding: 12px; gap: 8px; border-radius: 10px; }.metric-top { font-size: 11px; gap: 6px; }.metric-icon { width: 26px; height: 26px; border-radius: 7px; }.metric-icon .icon { width: 16px; height: 16px; }.metric-bottom { font-size: 10px; }.metric-bottom .icon { width: 13px; }
  .recent-head { display: none; }.recent-row:not(.recent-head) { grid-template-columns: minmax(0,1fr) minmax(80px,.6fr); row-gap: 4px; padding: 10px 14px; }.recent-row>.person { grid-row: span 2; }.recent-row>div:not(.person) { text-align: right; font-size: 12px; }.person { gap: 6px; }.person .avatar { width: 26px; height: 29px; }.recent-panel .text-link { font-size: 12px; }
  .mix-panel { grid-template-columns: minmax(125px,.7fr) 1fr; }.mix-chart { width: 102px; height: 102px; }.mix-chart>div { width: 78px; height: 78px; }.mix-chart strong { font-size: 23px; }.mix-legend { padding-right: 13px; }.mix-legend li { font-size: 11px; }
  .sync-panel { padding: 15px; gap: 14px; }.sync-count { padding-left: 9px; }.sync-panel>.text-link { margin-left: auto; }.section-search { padding: 0 14px 12px; }.directory-search { width: 100%; }.search-field { flex: 1; }.search-field input { width: 100%; }
  .form-grid,.four-columns,.generator-grid { grid-template-columns: 1fr; }.form-grid { gap: 13px; padding: 15px; }.form-actions { flex-wrap: wrap; }.form-actions .button { margin-left: auto; }.router-manage,.router-body,.router-history { padding: 14px; }.generator-fields { border-right: 0; border-bottom: 1px solid var(--line); }.invoice-data,.router-facts { padding: 15px; gap: 14px; }
  .customer-table,.plan-table,.monitor-table { display: block; }.customer-table thead,.plan-table thead,.monitor-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }.customer-table tbody,.plan-table tbody,.monitor-table tbody { display: block; }
  .customer-table tr,.plan-table tr,.monitor-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); padding: 12px 14px; gap: 10px 14px; }
  .customer-table td,.plan-table td,.monitor-table td { display: block; padding: 0; border: 0; font-size: 12px; }.customer-table td:first-child,.plan-table td:first-child,.monitor-table td:first-child { grid-column: 1/-1; }.mobile-field,.mobile-label,.plan-table td[data-label]::before { display: block; font-size: 10px; color: var(--muted); font-weight: 520; margin-bottom: 3px; }.plan-table td[data-label]::before { content: attr(data-label); }
  .customer-action, .plan-table .row-actions,.monitor-table td:last-child { grid-column: 1/-1; }.router-actions { gap: 8px; }.pagination ul { gap: 10px; flex-wrap: wrap; }.invoice-filters { margin-left: 14px; }.router-spec { grid-template-columns: minmax(80px,.7fr) minmax(0,1fr); }.footer { gap: 9px; font-size: 10px; }.login-card { padding: 24px; }.login-header { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
.detail-links>div { display: flex; flex-wrap: wrap; gap: 8px 19px; }
.activity-log { list-style: none; padding: 0 !important; margin: 8px 0; }.activity-log li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }.activity-log li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.invoice-sheet .bill-total { color: var(--blue); }.invoice-sheet .panel-heading { background: #f7faff; border-radius: var(--radius) var(--radius) 0 0; }

.inet-status[data-state="Online"][data-restricted="yes"] { color: #805908; background: #fff1d5; }

.subscriptions-nav { position: relative; }
.subscriptions-nav > summary { list-style: none; height: 100%; }
.subscriptions-nav > summary::-webkit-details-marker { display: none; }
.subscriptions-nav .menu-chevron { width: 12px; height: 12px; transform: rotate(90deg); }
.subscriptions-nav[open] .menu-chevron { transform: rotate(-90deg); }
.subscriptions-nav ul { position: absolute; top: 100%; left: 0; z-index: 10; width: 215px; list-style: none; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 8px 20px #172a4525; }
.main-nav > .subscriptions-nav:last-child ul { left: auto; right: 0; }
.router-body .notice code { overflow-wrap: anywhere; }
.subscriptions-nav li a { display: block; padding: 10px 14px; border-radius: 5px; color: var(--ink); font-size: 13px; }
.subscriptions-nav li a:hover, .subscriptions-nav li a:focus-visible { background: var(--canvas); }
.subscriptions-nav li a[aria-current] { color: var(--blue-dark); font-weight: 650; background: #ebf2ff; }
.session-unconfirmed { padding: 10px 22px; color: var(--muted); background: #f7f9fd; font-size: 13px; }
@media (max-width: 820px) {
    .subscriptions-nav { flex: 1; }
    .subscriptions-nav > summary { width: 100%; }
}
@media (max-width: 580px) {
    .subscriptions-nav .menu-chevron { position: absolute; left: calc(50% + 11px); top: 11px; width: 10px; height: 10px; }
    .subscriptions-nav ul { left: -12px; max-width: 60vw; }
    .subscriptions-nav li a { min-height: 42px; }
    .session-unconfirmed { padding: 10px 14px; }
}

.customer-toolbar { padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.toolbar-buttons, .selection-line, .filter-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar-buttons .button { min-height: 38px; }
.toolbar-buttons .danger-quiet { color: #a12c31; border-color: #e3b7b9; }
.toolbar-buttons .button:disabled { cursor: default; opacity: .65; background: #f7f8fb; box-shadow: none; }
.selection-line { gap: 15px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.select-page, .clear-group, .pick-customer { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; cursor: pointer; }
.select-page, .pick-customer { min-height: 30px; }
.pick-customer { min-width: 30px; justify-content: center; }
.customer-toolbar input[type=checkbox], .pick-customer input, .clear-group input { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); }
.customer-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px; padding: 15px 22px 19px; background: #f8faff; border-bottom: 1px solid var(--line); }
.customer-filters > div { min-width: 0; }
.customer-filters label { font-size: 12px; margin-bottom: 4px; }
.customer-filters :is(input, select) { width: 100%; min-width: 0; min-height: 39px; }
.filter-controls .button { min-height: 39px; }
.directory-filter-options { min-width: 0; }
.directory-filter-options summary {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
    list-style: none; color: #24496d; background: white; border: 1px solid #bdcddc; border-radius: 8px;
    font-size: 13px; font-weight: 600;
}
.directory-filter-options summary::-webkit-details-marker { display: none; }
.directory-filter-options summary .icon { width: 16px; height: 16px; }
.directory-filter-options summary .icon:last-child { width: 12px; transform: rotate(90deg); }
.directory-filter-options[open] summary .icon:last-child { transform: rotate(-90deg); }
.directory-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding-top: 12px; }
.directory-filter-grid > div { min-width: 0; }
.customer-filters:has(details[open]) .filter-search,
.customer-filters .directory-filter-options[open] { grid-column: 1/-1; }
.customer-filters .filter-controls { min-width: 0; }
.customer-filters .filter-controls .button, .customer-filters input[type=search] { min-height: 44px; }
.directory-name { display: flex; align-items: center; gap: 5px; }
.directory-name a { font-weight: 650; }
[data-customer-row] { cursor: pointer; }
[data-customer-row]:hover, [data-customer-row]:focus-within { background: #f4f8ff; }
[data-customer-row].is-picked { background: #edf3ff; }
.isolation-dialog {
    width: min(28rem, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto;
    padding: clamp(16px, 4vw, 24px); border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--paper); color: var(--ink); box-shadow: 0 18px 60px #10213836;
}
.isolation-dialog:not([open]) { display: none; }
.isolation-dialog::backdrop { background: #14264080; }
.isolation-dialog h2 { font-size: 20px; line-height: 1.3; }
.isolation-dialog p { margin: 8px 0 16px; color: var(--muted); }
.isolation-selection {
    list-style: none; padding: 0; max-height: min(32vh, 14rem); overflow-y: auto;
    border: 1px solid var(--line); border-radius: 8px; background: var(--canvas);
}
.isolation-selection li { padding: 8px 12px; overflow-wrap: anywhere; }
.isolation-selection li + li { border-top: 1px solid var(--line); }
.isolation-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.isolation-actions .button { min-height: 44px; }
.action-selection { list-style: none; padding: 0 22px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.action-selection li { background: #f5f7fa; padding: 5px 10px; border-radius: 5px; overflow-wrap: anywhere; }
.action-selection li span { color: var(--muted); font-size: 12px; }
.clear-group { margin-top: 10px; min-height: 32px; }
@media (max-width: 1150px) {
    .directory-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .customer-toolbar { padding: 14px; }
    .customer-filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px; gap: 10px; }
    .filter-search { grid-column: 1/-1; }
    .customer-filters .filter-controls { justify-content: flex-end; }
    .toolbar-buttons { gap: 6px; }
    .toolbar-buttons .button { min-height: 40px; padding: 8px 10px; }
    .action-selection { padding-inline: 14px; }
}

.customer-identity {border:1px solid var(--line,#d3deea);border-radius:.5rem;padding:.8rem 1rem}
.customer-identity summary {cursor:pointer;font-weight:600}.customer-identity .form-grid {padding:1rem 0 0}
.registration-details dt {color:#4d6078;font-size:.82rem}.registration-details dd {margin:.25rem 0;overflow-wrap:anywhere}
.registration-record {cursor:pointer}.registration-record:hover td,.registration-record:focus-within td {background:#f1f6ff}

.subscription-detail, .detail-stack { display:grid; gap:16px; min-width:0; }
.detail-columns { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:16px; align-items:start; }
.detail-identity { display:grid; grid-template-columns:1.25fr 1fr 1fr; padding:16px 20px; gap:16px; }
.detail-identity > div { display:grid; align-content:start; gap:6px; }
.detail-identity > div > span:first-child, .detail-fields dt { font-size:12px; color:var(--muted); }
.detail-identity strong { font-size:20px; overflow-wrap:anywhere; }
.detail-identity .inet-status { justify-self:start; }
.detail-identity small { color:var(--muted); }
.detail-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 20px; padding:18px 20px; margin:0; }
[data-customer-detail][data-mode="view"] [data-when="edit"],
[data-customer-detail][data-mode="edit"] [data-when="view"] { display:none !important; }
.detail-fields > div { min-width:0; }
.detail-body [data-installation-point] .form-grid { padding:0 0 10px; border:0; gap:10px; }
.detail-fields dt label { margin:0 0 4px; }
.detail-fields dd input, .detail-fields dd select, .detail-fields dd textarea { width:100%; min-width:0; }
.detail-field-error { color:var(--danger, #a31621); display:block; margin-top:4px; }
.detail-fields [aria-invalid="true"] { border-color:var(--danger, #a31621); }
.detail-fields dd { font-size:14px; margin:3px 0 0; overflow-wrap:anywhere; }
.detail-body { padding:14px 20px; }
.detail-body p { margin:0 0 7px; }
.detail-body p:last-child { margin-bottom:0; }
.detail-body details { margin-top:12px; }
.detail-body details form { display:grid; gap:7px; margin-top:12px; }
.detail-body details button { justify-self:start; }
.detail-photo { display:inline-block; margin:0 12px 5px 0; }
#detail-location { height:250px; width:100%; isolation:isolate; background:#e9edf0; }
.signal-value { font-size:22px; }
.import-guide .invoice-data { padding:0; }
@media(max-width:760px) {
    .detail-columns { grid-template-columns:1fr; }
    .detail-identity { grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); }
}
@media(max-width:420px) { .detail-fields { grid-template-columns:1fr; } }

.rupiah-input { position: relative; }
.rupiah-input > span { position: absolute; inset-inline-start: .8rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: inherit; }
.rupiah-input > input { padding-inline-start: 3.1rem; font-variant-numeric: tabular-nums; }

.template-workspace { display: grid; grid-template-columns: minmax(170px, 218px) minmax(0, 1fr); align-items: start; gap: 18px; }
.template-events { padding: 8px; }
.template-events a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); }
.template-events a:hover, .template-events a:focus-visible { background: var(--canvas); }
.template-events a[aria-current] { background: #eaf1fd; color: var(--blue-dark); font-weight: 650; }
.template-editor { min-width: 0; }
.template-editor textarea { width: 100%; min-height: 180px; resize: vertical; line-height: 1.55; }
.template-editor .template-grid { padding: 18px 22px; display: grid; gap: 16px; }
.template-tokens { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.template-token { font: inherit; font-size: 12px; padding: 4px 9px; background: #f5f8ff; color: var(--blue-dark); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.template-output { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink); }
.template-editor .template-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.template-controls form { margin: 0; }
.template-status { border-top: 1px solid var(--line); }
.template-status code { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .template-workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .template-events { display: flex; flex-wrap: wrap; gap: 3px; }
    .template-events a { padding: 8px; font-size: 12px; }
    .template-editor .template-grid { padding: 16px; }
}

.overview-finance, .overview-operations, .overview-distributions {
    display: grid;
    gap: 16px;
}
.overview-finance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-period {
    min-width: 0; padding: clamp(16px, 2.4vw, 30px);
    color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.finance-month {
    color: #fff; border-color: #173752;
    background: radial-gradient(ellipse at top right, #1e606b, transparent 64%), #15344f;
}
.finance-period-head, .finance-values dt { display: flex; align-items: center; gap: 8px; }
.finance-period-head { flex-wrap: wrap; justify-content: space-between; }
.finance-period-head h2 { font-size: 19px; letter-spacing: -.03em; }
.finance-period-head > span { font-size: 12px; font-weight: 550; color: var(--muted); }
.finance-month .finance-period-head > span { color: #c6dfe2; }
.finance-values {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
    margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
}
.finance-month .finance-values { border-color: #ffffff40; }
.finance-values dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.finance-month dt { color: #e2eff3; }
.flow-icon { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; }
.flow-icon .icon { width: 15px; height: 15px; stroke-width: 2; }
.flow-in { color: #146657; background: #e1f5ed; }
.flow-out { color: #894113; background: #fff0df; }
.flow-in .icon { transform: rotate(135deg); }
.flow-out .icon { transform: rotate(-45deg); }
.finance-month .flow-in { background: #b9edda; color: #13574d; }
.finance-month .flow-out { background: #f8d8b2; color: #67330c; }
.finance-values dd {
    margin-top: 7px; font-size: clamp(20px, 1.85vw, 30px); line-height: 1.2; font-weight: 650;
    letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.overview-heading { margin: 0 0 10px; font-size: 18px; }
.overview-operations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-service-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview .metric { gap: 12px; }
.overview article.metric:hover { border-color: var(--line); box-shadow: var(--shadow); }
.overview .metric-top { font-size: 14px; line-height: 1.35; letter-spacing: -.012em; }
.overview .metric strong { max-width: 100%; overflow-wrap: anywhere; }
.overview-source, .overview-refresh { margin: 8px 1px 20px; padding: 0; font-size: 12px; color: var(--muted); }
.overview-source { display: flex; align-items: center; gap: 6px; }
.overview-source .icon { width: 14px; height: 14px; }
.overview-refresh .text-button { margin-left: 5px; }
.overview-invoice .metric-bottom .icon { margin-left: auto; }
.overview-invoice .metric-bottom { width: 100%; }
.overview-distributions { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.overview-mix { --bar-color: #326bb5; padding-bottom: 16px; }
.overview-mix-model { --bar-color: #237e74; }
.overview-mix .panel-heading { min-height: 76px; }
.overview-ranks { margin: 0; padding: 0 22px; list-style: none; }
.overview-ranks li { padding: 7px 0; }
.overview-rank-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.overview-rank-label > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.overview-rank-amount { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.overview-rank-amount small { color: var(--muted); min-width: 43px; text-align: right; }
.overview-track { height: 7px; border-radius: 5px; overflow: hidden; margin-top: 6px; background: #edf1f6; }
.overview-track > span { display: block; height: 100%; border-radius: inherit; background: var(--bar-color); }
.overview-more summary { color: var(--blue); font-size: 13px; font-weight: 600; margin: 4px 22px 0; padding: 8px 0; }
.overview-more[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }
@media (max-width: 1100px) {
    .overview-finance, .overview-operations, .overview-distributions { gap: 12px; }
    .overview .metric { padding: 15px; }
    .overview .metric-top { font-size: 13px; }
}
@media (max-width: 880px) {
    .overview-finance { grid-template-columns: minmax(0, 1fr); }
    .finance-values dd { font-size: clamp(20px, 4.2vw, 27px); }
}
@media (max-width: 650px) {
    .overview-distributions { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .overview-operations {
        grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; background: var(--paper);
        border: 1px solid var(--line); border-radius: var(--radius);
    }
    .overview-operations .metric { border: 0; border-radius: 0; box-shadow: none; }
    .overview-operations .metric + .metric { border-top: 1px solid var(--line); }
    .overview-operations .metric-bottom { padding-left: 33px; }
    .overview-operations .metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
    .overview-operations .metric > strong { grid-column: 2; grid-row: 1 / 3; font-size: 27px; }
    .overview-operations .metric-bottom { grid-column: 1; font-size: 12px; }
    .overview-operations .metric-icon { width: 25px; height: 25px; }
    .overview-invoice .metric-bottom .icon { margin-left: 0; }
    .overview-finance { gap: 10px; }
    .finance-values { margin-top: 10px; padding-top: 12px; }
    .overview-source, .overview-refresh { margin-bottom: 16px; }
    .overview-ranks { padding-inline: 16px; }
    .overview-more summary { margin-inline: 16px; }
}

.role-editor { display: grid; gap: 1.2rem; padding: 1.25rem; }
.role-editor h3 { margin: 0; }
.role-editor #role-name { width: min(100%, 30rem); }
.permission-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1rem; align-items: start; }
.permission-groups fieldset { min-width: 0; margin: 0; padding: .6rem .9rem; border: 1px solid #cbd5e1; border-radius: .65rem; }
.permission-groups legend { padding: 0 .35rem; font-weight: 700; }
.role-editor .permission-choice { display: flex; align-items: baseline; gap: .65rem; margin: 0; padding: .45rem 0; font-weight: 400; cursor: pointer; }
.role-editor .permission-choice input { flex: none; width: 1rem; height: 1rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); }
.permission-choice small { display: block; color: #475569; }
.role-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: .8rem; }
.role-actions summary, .role-actions button { color: #9f2333; cursor: pointer; }
.role-actions button { margin-top: .45rem; padding: .4rem; background: white; border: 1px solid currentColor; border-radius: .35rem; }

@media (max-width: 420px) {
  .main-nav:has(> :nth-child(7)) { flex-wrap: wrap; }
  .main-nav:has(> :nth-child(7)) > * { flex: 1 1 24%; }
  .main-nav:has(> :nth-child(7)) .subscriptions-nav:first-of-type ul { left: 0; }
}

/* The mobile menu reuses the links and account controls from the full header. */
.compact-bar { min-height: 56px; flex-wrap: nowrap; align-items: center; gap: 10px; }
.compact-bar .menu-trigger, .billing-drawer .icon-button {
    min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.compact-bar h1 { min-width: 0; padding-block: 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; font-weight: 620; }
.page-heading > div:empty { display: none; }
.page-heading:has(> div:only-child:empty) { margin-bottom: 0; }
.billing-drawer:not([open]) { display: none; }
.billing-drawer {
    position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; width: min(320px, calc(100vw - 48px));
    max-width: none; height: 100%; height: 100dvh; max-height: none;
    color: var(--ink); background: var(--paper); border: 0; box-shadow: 6px 0 28px #10213835;
}
.billing-drawer[open] { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.billing-drawer::backdrop { background: #0b172b80; }
html:has(.billing-drawer[open]) { overflow: hidden; }
.drawer-heading, .billing-drawer .account {
    display: flex; align-items: center; flex: none; justify-content: space-between;
    gap: 8px; margin: 0; padding: 10px 14px;
}
.drawer-heading { background: #163750; color: #fff; border-bottom: 1px solid #24475e; padding-top: max(10px, env(safe-area-inset-top)); }
.billing-drawer .wordmark { margin: 0; min-height: 44px; }
.billing-drawer .main-nav {
    flex: 1 0 auto; order: 0; width: 100%; display: flex; flex-flow: column nowrap;
    gap: 3px; padding: 12px 10px; border: 0;
}
.billing-drawer .main-nav > *, .billing-drawer .main-nav > details { flex: none; }
.billing-drawer .main-nav > a, .billing-drawer .main-nav summary {
    flex: none; display: flex; flex-direction: row; justify-content: flex-start; align-items: center;
    width: 100%; min-height: 46px; height: auto; padding: 9px 13px; gap: 12px;
    color: #354e66; font-size: 14px; white-space: normal; border-radius: 8px;
}
.billing-drawer .main-nav > a:hover, .billing-drawer .main-nav summary:hover,
.billing-drawer .main-nav details[open] > summary { background: #f0f5f8; color: #173d56; }
.billing-drawer .main-nav > a[aria-current], .billing-drawer .main-nav details[data-current] > summary {
    background: #e4f2ef; color: #10574f; font-weight: 650;
}
.billing-drawer .main-nav :focus-visible, .billing-drawer .account :focus-visible { outline-color: #1f639b; }
.billing-drawer .main-nav > a[aria-current]::after, .billing-drawer details[data-current] > summary::after {
    inset: 10px auto 10px 0; height: auto; width: 3px; background: #238073; border-radius: 3px;
}
.billing-drawer .nav-wide { display: inline; }
.billing-drawer .nav-short { display: none; }
.billing-drawer .main-nav .menu-chevron { position: static; margin-left: auto; width: 14px; height: 14px; }
.billing-drawer .subscriptions-nav ul {
    position: static; width: auto; max-width: none; margin: 3px 0 5px 22px; padding: 0 0 0 10px;
    border: 0; border-left: 1px solid #cadbd9; border-radius: 0; box-shadow: none; background: transparent;
}
.billing-drawer .subscriptions-nav li a {
    display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #425b70;
}
.billing-drawer .subscriptions-nav li a:hover, .billing-drawer .subscriptions-nav li a:focus-visible,
.billing-drawer .subscriptions-nav li a[aria-current] { background: #ecf4f2; color: #19574f; }
.billing-drawer .account {
    justify-content: flex-start; background: #f3f7f9; border-top: 1px solid #d9e3eb;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.billing-drawer .account-name small { color: #526a7e; }
.billing-drawer .account .icon-button { color: #385570; }
.billing-drawer .account .icon-button:hover { background: #e0e9ef; }
.compact-bar .menu-trigger { color: #fff; background: #304963; border-radius: 10px; }
.billing-drawer .account-name { display: block; flex: 1; max-width: none; }
@media (prefers-reduced-motion: no-preference) {
    .billing-drawer[open] { animation: billing-menu-in .16s ease-out; }
    @keyframes billing-menu-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
}

@media (max-width: 620px) {
    .directory-panel .customer-table tbody {
        display: grid; gap: 10px; padding: 12px; background: #f1f5f8; border-block: 1px solid var(--line);
    }
    .directory-panel .customer-table tbody tr {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid #cfdce5;
        border-radius: 12px; background: white; padding: 12px; gap: 12px;
    }
    .directory-panel .customer-table tbody tr.is-picked { background: #f3f8ff; border-color: #4d79b3; }
    .directory-panel .customer-table tbody .customer-name { grid-column: 1; }
    .directory-panel .customer-inet { grid-column: 2; text-align: right; }
    .directory-panel .customer-inet > .mobile-label { display: none; }
    .directory-panel .customer-name .directory-name a { font-size: 14px; }
    .directory-panel .customer-name .pick-customer { min-width: 32px; min-height: 44px; }
    .directory-panel .customer-inet .inet-status { justify-content: center; text-align: center; }
    .directory-panel .customer-table .mobile-label { font-size: 11px; }
    .directory-panel .customer-toolbar:has([data-customer-action]:disabled) .toolbar-buttons { display: none; }
    .directory-panel .customer-toolbar .selection-line { margin-top: 4px; }
    .directory-panel .filter-search input { font-size: 16px; }
}
@media (max-width: 390px) {
    .finance-values { gap: 8px; }
    .finance-values dd { font-size: 19px; }
    .finance-values dt { gap: 5px; }
    .directory-filter-options summary { padding-inline: 8px; }
}
@media (max-width: 359px) {
    .finance-values { grid-template-columns: minmax(0, 1fr); }
    .finance-values > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; }
    .finance-values dd { margin-top: 0; }
}

.customer-section-nav {
    display: inline-grid;
    grid-template-columns: auto auto;
    justify-self: start;
    max-width: 100%;
    gap: 4px;
    padding: 4px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.customer-section-nav .button {
    min-width: 0;
    min-height: 46px;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #3b5266;
    line-height: 1.25;
}
.customer-section-nav .icon { width: 19px; height: 19px; }
.customer-section-nav .button[aria-current="page"] {
    background: #16584f;
    color: white;
    font-weight: 700;
    box-shadow: 0 1px 3px #153e3c33;
}
@media (hover: hover) {
    .customer-section-nav .button:not([aria-current]):hover {
        background: #eaf3f1;
        color: #154c45;
    }
}
.customer-section-nav .button:focus-visible {
    outline: 3px solid #2069b6;
    outline-offset: 1px;
}
@media (max-width: 600px) {
    .customer-section-nav {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
    .customer-section-nav .button { gap: 6px; padding-inline: 6px; }
}
@media (forced-colors: active) {
    .customer-section-nav .button[aria-current="page"] { border: 2px solid Highlight; }
}

.customer-table [data-net="expiry"].subscription-expired { color: #b42318; font-weight: 650; }
.customer-table .installation-address, .customer-inet .mono { overflow-wrap: anywhere; }
.remote-ip-link {
    display: inline-flex; align-items: center; justify-content: space-between; gap: .7em;
    padding: 3px 6px; border-radius: 4px; background: #e0e2fa; color: #0065d1;
    font: 600 14px/1.25 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums;
    white-space: nowrap; text-decoration: none; vertical-align: middle;
}
.remote-ip-link::after {
    content: ""; flex: none; width: 1em; height: 1em; border-radius: 2px;
    background: #007bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12l8-8M6.5 4H12v5.5' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.remote-ip-link:hover { background: #d4dcff; text-decoration: none; }
.remote-ip-link:focus-visible { outline: 2px solid #0056b3; outline-offset: 2px; }
@media (max-width: 390px) {
    .customer-inet .remote-ip-link { font-size: 12px; gap: .35em; padding-inline: 4px; }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .mast-inner:has(.main-nav > :nth-child(8)) { gap: 12px; }
  .mast-inner:has(.main-nav > :nth-child(8)) .account-name { display: none; }
  .main-nav:has(> :nth-child(8)) > a,
  .main-nav:has(> :nth-child(8)) > details > summary { padding-inline: 8px; }
}
@media (min-width: 1081px) and (max-width: 1250px) {
  .mast-inner:has(.main-nav > :nth-child(8)) { flex-wrap: wrap; align-items: center; gap: 0; }
  .mast-inner:has(.main-nav > :nth-child(8)) .wordmark { margin-block: 10px; }
  .main-nav:has(> :nth-child(8)) { order: 3; width: 100%; border-top: 1px solid #30425a; }
  .main-nav:has(> :nth-child(8)) > a,
  .main-nav:has(> :nth-child(8)) > details > summary { min-height: 44px; }
}
