/* Consistent web workflows, with compact desktop tables and mobile cards. */
.sync-status{display:block;font-size:11px;color:var(--muted);margin-top:5px}.sync-status.stale,.caps-warning{color:var(--amber)}
.password-wrap{position:relative;margin-bottom:22px}.password-wrap input{margin:0!important;min-height:46px;padding-left:14px!important;padding-right:54px!important}.password-wrap .password-reveal{position:absolute;inset-inline-start:auto;inset-inline-end:auto;left:auto;right:7px;top:50%;transform:translateY(-50%);width:40px;height:40px;min-height:0;margin:0;display:flex;align-items:center;justify-content:center;padding:10px;border:0;background:transparent;line-height:1}.password-reveal svg{width:20px;height:20px}.caps-warning{display:block;margin:-12px 0 18px}.login-jump{display:inline-block;margin-top:18px;color:var(--accent);font-size:13px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.detail-field{min-width:0}.detail-field dt{color:var(--muted);font-size:12px;font-weight:400}.detail-field dd{margin:4px 0 0;font-size:14px;font-weight:600;overflow-wrap:anywhere;unicode-bidi:plaintext}.detail-note{grid-column:1/-1;white-space:pre-wrap;margin:0;overflow-wrap:anywhere}
.workflow-sections,.record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}.workflow-section,.record-card{border:1px solid var(--border);background:var(--panel);padding:20px;border-radius:14px;min-width:0}.workflow-section h3,.record-card h3{font-size:16px;white-space:normal;margin:0 0 18px;display:flex;align-items:center;gap:10px}.workflow-section h3 svg{width:20px;height:20px;color:var(--accent);flex-shrink:0}.record-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.record-actions button{display:flex;align-items:center;gap:6px;font-size:12px}.record-actions svg{width:18px;height:18px}.panel-text{white-space:normal}.panel-text>.workflow-sections{white-space:normal}.panel-text:not(:has(.workflow-sections)){white-space:pre-wrap}
.buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.button-row{display:contents}.button-row>button,.button-row>a{flex:0 1 auto;min-width:150px;max-width:100%;display:inline-flex;align-items:center;gap:9px;margin:0!important;padding:11px 16px!important;line-height:1.7}.button-row svg{width:19px;height:19px;flex:0 0 19px}.button-row:empty{display:none}.account-tools{border:1px solid var(--border);border-radius:12px;margin-top:18px;background:var(--surface)}.account-tools summary{padding:15px 20px;color:var(--text);cursor:pointer;font-weight:600}.account-tools .panel{border:0;margin:0}.account-tools .panel-text{display:none}
.native-plan-form{max-width:700px;background:var(--surface);padding:24px;border:1px solid var(--border);border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.native-plan-form h2{grid-column:1/-1}.native-plan-form label{display:grid;gap:8px}.native-plan-form input{margin:0;min-height:46px}.native-plan-form>button{grid-column:1/-1;justify-content:center}
.activity-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.activity-feed .event-row{margin-inline:0;padding:18px}.activity-feed .event-row strong{font-size:14px}.activity-feed .event-detail{font-size:12px;line-height:1.9;overflow-wrap:anywhere}.activity-feed .event-row time{font-size:11px}.activity-feed .pagination{justify-content:center;margin-top:20px}.calendar-label{display:block;color:var(--muted);margin-bottom:10px}.panel>.buttons:first-of-type{margin-bottom:18px}
.page-size-label{display:flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap}.page-size-label select{min-width:64px}.table-controls{flex-wrap:wrap}#global-results h3{font-size:11px;color:var(--muted);margin:12px 10px 4px}.search-count{padding:6px 10px;color:var(--muted);font-size:11px}#global-results button.search-active{background:var(--cyan-soft);outline:2px solid var(--accent);outline-offset:-2px}#global-results button strong{white-space:normal;overflow-wrap:anywhere}.event-detail{unicode-bidi:plaintext}
@media(max-width:700px){
 .users-card .table-scroll{overflow:visible;padding:0 12px}.users-card table{display:block;width:100%;min-width:0!important;border-spacing:0}.users-card thead{display:block}.users-card thead tr{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.users-card thead th{display:block;padding:0!important;flex:1 1 28%;font-size:10px}.users-card thead th:last-child{display:none}.users-card .sort-button{min-height:38px;background:var(--panel);border-radius:7px;padding-inline:18px}.users-card tbody{display:grid;gap:12px}.users-card tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:14px;gap:12px}.users-card tbody td{display:block!important;border-radius:0!important;background:transparent!important;padding:0!important;min-width:0}.users-card tbody td:nth-child(1){grid-column:1;grid-row:1}.users-card tbody td:nth-child(2){grid-column:2;grid-row:1;align-self:center}.users-card tbody td:nth-child(3){grid-column:1/-1;grid-row:2}.users-card tbody td:nth-child(4){grid-column:1;grid-row:3;text-align:start!important;align-self:center}.users-card tbody td:nth-child(4)::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);font-weight:400}.users-card tbody td:nth-child(5){grid-column:2;grid-row:3;align-self:center}.users-card .traffic{min-width:0;width:100%}.users-card .meter{max-width:none!important;width:100%}.users-card .user-name{font-size:14px;overflow-wrap:anywhere;white-space:normal}.users-card .user-cell{min-width:0}.users-card .avatar{width:28px;height:28px}.users-card .badge{font-size:10px;white-space:normal}.pagination button{min-width:44px;min-height:44px}.row-action{min-width:44px;min-height:44px}.page-size-label{width:100%;justify-content:space-between}.workflow-section,.record-card{padding:16px}.buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.button-row>button,.button-row>a{min-width:0;font-size:12px!important}.native-plan-form{grid-template-columns:1fr;padding:18px}.detail-grid{gap:12px}.native-plan-form label{grid-column:1/-1}.sync-status{font-size:10px}.activity-filters button{flex:1;font-size:11px}.app-main:not(.is-overview) .page-heading{margin-bottom:14px}
}
.workflow-section.section-caption{grid-column:1/-1;border:0;background:transparent;padding:0}.section-caption h3{margin:0}.server-summary{border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:18px;margin-bottom:18px}.server-summary h2{font-size:18px;margin-top:0}.server-summary .node-row{margin-inline:0}.record-actions .danger{color:var(--danger)}
.request-detail .panel>.buttons{position:sticky;bottom:0;background:var(--surface);padding:12px 0;border-top:1px solid var(--border);z-index:2}.report-table-wrap{overflow:auto;max-width:100%;margin-top:16px}.report-table{width:100%;border-collapse:separate;border-spacing:0 8px}.report-table th{font-size:12px;text-align:start;color:var(--muted);padding:12px}.report-table td{padding:14px;background:var(--panel);font-size:13px;overflow-wrap:anywhere}.report-mobile-entry{display:none}@media(max-width:700px){.report-table-wrap{display:none}.report-mobile-entry{display:block}}

.traffic-chart{margin:0 0 22px;padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--panel);min-width:0}.traffic-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.traffic-heading h2{margin:0 0 5px;font-size:17px}.traffic-heading small,.traffic-note,.traffic-hint{color:var(--muted);font-size:12px}.traffic-ranges{display:flex;gap:6px;flex-wrap:wrap}.traffic-ranges button{font:inherit;font-size:12px;padding:9px 15px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--text);cursor:pointer}.traffic-ranges button.active{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}.traffic-summary{display:flex;align-items:baseline;gap:12px;margin:22px 0 6px}.traffic-summary strong{font-size:24px;direction:ltr}.traffic-summary span{font-size:12px;color:var(--muted)}.traffic-svg{display:block;width:100%;height:auto;max-height:280px;overflow:visible;direction:ltr}.traffic-axis{fill:var(--muted);font-size:11px;font-family:inherit}.traffic-gridline{stroke:var(--border);stroke-dasharray:3 5;stroke-opacity:.5}.traffic-bar{fill:var(--accent);cursor:pointer}.traffic-bar.partial{opacity:.5}.traffic-bar:hover,.traffic-bar:focus{fill:var(--success);outline:none;stroke:var(--text);stroke-width:1}.traffic-missing{stroke:var(--muted);stroke-width:2}.traffic-empty{padding:35px 0;text-align:center;color:var(--muted);font-size:13px}.traffic-hint{min-height:20px;margin:6px 0}.traffic-note{display:block;line-height:1.8}@media(max-width:600px){.traffic-chart{padding:14px}.traffic-summary{flex-wrap:wrap}.traffic-svg{min-height:170px}.traffic-ranges button{padding:8px 13px}.traffic-note{font-size:11px}}
/* Compact status filter, including its longest translated option. */
:is(#status-filter,#status-filter-clear){font-size:12px!important;font-weight:500!important;line-height:1.5;min-width:155px;max-width:100%;padding-block:9px;padding-inline:12px 30px}:is(#status-filter,#status-filter-clear) option{font-size:12px;font-weight:400}

.traffic-legend{display:flex;gap:22px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:14px 0}.traffic-legend span:before{content:"";display:inline-block;width:18px;height:3px;vertical-align:middle;margin-inline-end:7px;background:var(--accent)}.traffic-legend .previous:before{background:#a78bfa}.traffic-area.current{fill:var(--accent);fill-opacity:.2}.traffic-area.previous{fill:#a78bfa;fill-opacity:.12}.traffic-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.traffic-line.current{stroke:var(--accent)}.traffic-line.previous{stroke:#a78bfa;stroke-dasharray:6 5}.traffic-dot{stroke:var(--panel);stroke-width:2;cursor:pointer}.traffic-dot.current{fill:var(--accent)}.traffic-dot.previous{fill:#a78bfa}.traffic-dot.partial{stroke:var(--amber);stroke-dasharray:2 2}.traffic-dot:hover,.traffic-dot:focus{r:6;stroke:var(--text);outline:none}.traffic-summary{flex-wrap:wrap}.traffic-comparison{margin-inline-start:auto}.traffic-legend .previous{color:var(--muted)}
/* v1.5.9 compact overview. */
@media(min-width:1001px){
:root{--sidebar:205px}.app-topbar{height:62px!important;min-height:62px;padding:0 22px;gap:18px}.app-main{padding:16px 24px 10px!important}.app-sidebar{padding:20px 12px 12px}.sidebar-brand{flex-direction:row;justify-content:center}.sidebar-brand .brand-mark{width:42px;height:42px}.sidebar-brand strong{font-size:18px}.nav-label{margin:20px 0 12px}#navigation button{padding:12px 14px;min-height:45px;font-size:12px}#navigation{gap:8px}.page-heading{margin-bottom:12px!important;min-height:46px}.page-heading h1{font-size:24px!important;margin:0}.page-heading p{display:none}.header-actions button{min-height:36px;padding:7px 12px!important;font-size:12px!important}#last-success{font-size:10px}.stats{gap:12px;margin-bottom:14px!important}.stat{min-height:70px!important;padding:10px 16px!important;border-radius:12px}.stat strong{font-size:24px!important;line-height:1.2}.stat small{font-size:11px}.stat>i{width:34px;height:34px;padding:8px}.dashboard-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 300px!important;grid-template-areas:'chart nodes' 'users events';gap:14px!important;align-items:stretch}.dashboard-grid[hidden]{display:none!important}.traffic-chart{grid-area:chart;margin:0!important;padding:14px 18px!important;border-radius:12px;background:var(--surface)}.side-cards{display:contents!important}.users-card{grid-area:users}.nodes-card{grid-area:nodes}.events-card{grid-area:events}.card-heading{padding:12px 16px!important;gap:10px}.card-heading h2{font-size:14px!important}.card-heading h2 i{width:17px;height:17px}.users-card .card-heading{flex-direction:row!important;align-items:center!important}.table-controls{width:auto!important;gap:7px}.table-search{max-width:200px!important;width:180px}.table-search input,:is(#status-filter,#status-filter-clear){height:32px;font-size:11px!important;padding-block:4px!important}:is(#status-filter,#status-filter-clear){min-width:125px!important;width:125px}.table-search i{top:8px!important;width:15px!important;height:15px!important}.table-scroll{padding:0 12px}.users-card table{border-spacing:0 3px!important}.users-card th{padding:6px 9px!important;font-size:10px!important}.users-card td{padding:5px 9px!important;font-size:11px!important;height:35px!important}.user-name{font-size:12px!important}.user-cell{gap:7px!important}.user-cell .avatar{width:26px;height:26px;font-size:11px}.status-badge,.status{font-size:10px!important;padding:3px 8px!important;white-space:nowrap}.traffic{font-size:10px!important}.usage-percent{font-size:10px;margin-bottom:0}.meter{height:4px!important;margin-top:3px!important}.table-footer{padding:7px 15px!important;font-size:10px}.pagination button{min-width:28px;height:28px!important;padding:3px 7px}.nodes-card .probe-caption{display:none}.node-row{margin:0 12px 8px!important;padding:8px 10px!important;min-height:43px!important;border-radius:8px}.node-name{font-size:11px}.latency{font-size:10px}.country-flag{width:24px;height:16px}.node-identity{gap:7px}#nodes-list{max-height:200px;overflow:auto}.event-row{padding:10px 12px!important;margin:0 12px 8px!important;gap:9px!important;border-radius:8px}.event-row strong{font-size:12px}.event-row small,.event-row time{font-size:10px}.event-icon{width:28px!important;height:28px!important}.event-icon svg{width:18px;height:18px}#events-list{max-height:230px;overflow:auto}.app-main footer{margin-top:10px!important;font-size:9px!important;padding:0!important}.text-button{font-size:10px!important}.traffic-heading h2{font-size:14px}.traffic-heading small{font-size:10px}.traffic-ranges button{padding:5px 10px;font-size:11px}.traffic-summary{margin:8px 0 0;gap:10px}.traffic-summary strong{font-size:20px}.traffic-summary span{font-size:10px}.traffic-legend{font-size:10px;gap:16px;margin:5px 0}.traffic-svg{max-height:145px!important;min-height:0!important}.traffic-hint{font-size:10px;min-height:13px;margin:0;line-height:1.3}.traffic-note{display:none}.traffic-empty{height:170px;margin:0;padding:45px 0}.traffic-comparison{font-size:10px!important}.traffic-axis{font-size:10px}
}
@media(min-width:1001px) and (max-width:1350px){.dashboard-grid{grid-template-columns:minmax(0,1fr) 255px!important}.app-main{padding-inline:16px!important}.table-search{max-width:140px!important;width:140px}.users-card .card-heading{flex-wrap:wrap}.traffic-comparison{margin-inline-start:0}}
@media(max-width:1000px){.traffic-chart{margin-bottom:0}.dashboard-grid{display:flex;flex-direction:column;align-items:stretch}.dashboard-grid>*{width:100%;max-width:100%;min-width:0}.traffic-svg{max-height:190px;min-height:140px}.traffic-note{display:none}.traffic-summary{margin-top:12px}.traffic-legend{margin:7px 0}.traffic-heading h2{font-size:15px}.traffic-chart{padding:15px}}
@media(min-width:1001px){.traffic-heading h2{margin:0 0 3px!important;line-height:1.4!important;font-size:14px!important}.traffic-heading small{line-height:1.5}.traffic-heading{min-height:32px}.traffic-summary{line-height:1.3}.traffic-summary strong{line-height:1.3}.traffic-svg{height:125px!important;max-height:125px!important}.traffic-legend{line-height:1.3}.traffic-hint{display:none}.traffic-chart{padding:12px 16px!important}.users-card .traffic{display:grid!important;grid-template-columns:auto 1fr;gap:2px 8px;line-height:1.3!important}.users-card .traffic>.usage-percent{margin:0;line-height:1.3}.users-card .traffic>.meter{grid-column:1/-1;margin:0!important}.users-card .row-action{height:26px!important;min-height:26px!important;padding:0 8px!important}.users-card td{line-height:1.4!important}.node-row{padding:7px 10px!important;line-height:1.5}.event-row{line-height:1.5!important;padding:9px 10px!important;min-height:0!important}.event-row .event-detail{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.event-row time{display:block}.page-heading{min-height:40px}.stat{height:70px!important}.stat strong{margin-top:3px!important}#nodes-list{max-height:185px}#events-list{max-height:265px}.traffic-heading small{display:none}.traffic-legend{margin-top:7px}.traffic-summary{margin-top:6px}.app-main footer{line-height:1.5}}
@media(min-width:1001px){#nodes-list{max-height:none;overflow:visible}.node-row{min-height:43px!important;padding:6px 10px!important}.node-health .latency{font-size:9px;line-height:1.3}.node-row:last-child{margin-bottom:10px!important}}

/* Bound the two feeds independently; pagination retains its normal flow. */
#nodes-list,#events-list{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
@media(min-width:1001px){#nodes-list{max-height:185px;overflow-y:auto}#events-list{max-height:265px;overflow-y:auto}.nodes-card,.events-card{min-height:0;align-self:start}.traffic-chart{min-height:240px;box-sizing:border-box}.traffic-empty{height:auto;min-height:150px;box-sizing:border-box}}
@media(max-width:1000px){#nodes-list,#events-list{max-height:280px}.traffic-chart{min-height:260px;box-sizing:border-box}}

/* Use additional desktop height for the chart, without fixing pagination. */
@media(min-width:1001px){
:root{--overview-chart-height:clamp(220px,calc(100dvh - 660px),800px)}
.traffic-chart{min-height:var(--overview-chart-height)}
.traffic-svg{height:calc(var(--overview-chart-height) - 110px)!important;max-height:none!important}
#nodes-list{max-height:calc(var(--overview-chart-height) - 51px)}
.users-card .card-heading{display:flex;flex-wrap:wrap;justify-content:space-between}
.users-card .table-controls{flex:1 1 360px;justify-content:flex-end;flex-wrap:nowrap;min-width:0}
.users-card .table-search{width:clamp(200px,19vw,300px)!important;max-width:300px!important;flex:0 1 280px}
.users-card :is(#status-filter,#status-filter-clear){width:155px;min-width:155px!important;flex:0 0 155px}
}

/* Center the requested data columns; retain mobile card layout. */
@media(min-width:701px){
.users-card td:nth-child(2),.users-card td:nth-child(5){text-align:center!important}
.users-card td:nth-child(3){text-align:start!important}
.users-card td:nth-child(3) .traffic{width:100%;max-width:none;text-align:start;justify-content:normal;grid-template-columns:auto 1fr}
.users-card td:nth-child(3) .meter{width:100%!important;max-width:none!important;margin-inline:0!important}
.users-card td:nth-child(5) .row-action{margin-inline:auto;display:inline-flex;align-items:center;justify-content:center}
}

/* Center pagination contents independently of inherited text line height. */
.pagination,.pagination #page-numbers{align-items:center}
.pagination button,.pagination .page-gap{display:inline-flex;align-items:center;justify-content:center;line-height:1!important;padding-block:0!important;box-sizing:border-box}

.users-card .traffic{font-variant-numeric:tabular-nums lining-nums}
@media(min-width:1001px){.users-card td:nth-child(3) .traffic{grid-template-columns:6ch minmax(0,1fr)}.users-card .traffic>.usage-percent{white-space:nowrap}}

.traffic-legend button{font:inherit;color:inherit;display:inline-flex;align-items:center;gap:7px;padding:3px 0;border:0;background:none;cursor:pointer;line-height:1.4}
.traffic-legend button::before{content:"";width:18px;height:3px;background:var(--accent);flex:none}
.traffic-legend button.previous::before{background:#a78bfa}
.traffic-legend button[aria-pressed=false]{opacity:.45;text-decoration:line-through}
.traffic-legend button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.sidebar-clock{margin-top:auto;padding:20px 8px 14px;display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0}
.sidebar-clock .local-clock{font-size:20px;line-height:1.5;letter-spacing:.3px}
.sidebar-clock .local-date{font-size:12px;line-height:1.7;color:var(--muted);text-align:center}
.app-sidebar .sidebar-bottom{margin-top:0;flex-shrink:0}

@media(min-width:1001px){.app-main.is-overview{padding-bottom:6px!important}.app-main.is-overview footer{margin-top:8px!important}}

.traffic-comparison{display:flex;flex-direction:column;gap:5px}.traffic-updated{display:block;font-size:10px;line-height:1.6;color:var(--muted);font-variant-numeric:tabular-nums}

@media(min-width:1001px){
.traffic-summary{position:relative;padding-inline-end:42%;min-height:26px}
.traffic-comparison{position:absolute;inset-inline-end:0;top:0;width:40%;margin:0;text-align:end}
.traffic-legend{max-width:58%}
.nodes-card,.events-card{align-self:stretch!important;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.nodes-card>.card-heading,.events-card>.card-heading{flex:none}
#nodes-list,#events-list{flex:1 1 0;height:0;min-height:0;max-height:none!important;overflow-y:auto}
}

/* Keep secondary-view footer visible, with measured clearance for content. */
.app-main:not(.is-overview){padding-bottom:calc(var(--footer-clearance,70px) + 16px)!important}
.app-main:not(.is-overview)>footer{position:fixed;inset-inline-start:calc(var(--sidebar) + 24px);inset-inline-end:24px;bottom:0;z-index:25;background:var(--bg);border-top:1px solid var(--border);margin:0!important;padding:12px 0!important;box-sizing:border-box}
@media(max-width:1000px){.app-main:not(.is-overview)>footer{inset-inline-start:16px;inset-inline-end:16px}}

.app-main>footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px}.app-main>footer span{padding:0}

/* Share the same four-column tracks across summary cards and overview content. */
@media(min-width:1001px){
 .app-main.is-overview .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
 .app-main.is-overview .dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-areas:'chart chart chart nodes' 'users users users events';gap:14px!important}
}

#request-sound{display:inline-flex;align-items:center;justify-content:center;padding:9px;min-width:40px}#request-sound svg{width:21px;height:21px}#request-sound[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}

#palette-toggle{display:inline-flex;align-items:center;justify-content:center;padding:9px;min-width:40px}#palette-toggle svg{width:21px;height:21px}
#palette-dialog{width:min(620px,calc(100vw - 32px));max-height:85dvh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:24px;box-sizing:border-box}#palette-dialog::backdrop{background:#0009}#palette-dialog h2{margin:0 0 8px;font-size:20px}#palette-dialog p{font-size:12px;color:var(--muted)}.palette-choices{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.palette-choices button{display:flex;align-items:center;gap:8px}.palette-choices button:before{content:'';width:14px;height:14px;border-radius:50%;background:var(--swatch)}.palette-choices button[aria-pressed=true]{border-color:var(--accent);outline:1px solid var(--accent)}.palette-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.palette-fields label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}.palette-fields input{width:48px;height:36px;padding:3px;cursor:pointer}.palette-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
html[data-palette]:not([data-palette=original]) body{background-image:none}
html[data-palette]:not([data-palette=original]) .primary,html[data-palette]:not([data-palette=original]) #new-account.has-requests{background:var(--accent)!important;color:var(--on-accent)!important}
html[data-palette]:not([data-palette=original]) .traffic-area.previous,html[data-palette]:not([data-palette=original]) .traffic-dot.previous{fill:var(--chart-previous)}
html[data-palette]:not([data-palette=original]) .traffic-line.previous{stroke:var(--chart-previous)}
html[data-palette]:not([data-palette=original]) .traffic-legend .previous:before{background:var(--chart-previous)}
@media(max-width:520px){.palette-fields{grid-template-columns:1fr}.preferences{gap:5px!important}.preferences button{padding-inline:8px!important}}

html[data-palette]:not([data-palette=original]) .avatar{background:var(--border);color:var(--text)}
html[data-palette]:not([data-palette=original]) .filter-selected,html[data-palette]:not([data-palette=original]) .pagination .page-number.current{background:var(--accent)!important;color:var(--on-accent)!important}
html[data-palette]:not([data-palette=original]) #navigation button.selected{border-color:var(--accent)}
html[data-palette]:not([data-palette=original]) .badge.active,html[data-palette]:not([data-palette=original]) .badge.connected{background:color-mix(in srgb,var(--success) 12%,transparent)}
html[data-palette]:not([data-palette=original]) .badge.expiring{background:color-mix(in srgb,var(--amber) 12%,transparent)}
html[data-palette]:not([data-palette=original]) .badge.error,html[data-palette]:not([data-palette=original]) .badge.expired,html[data-palette]:not([data-palette=original]) .badge.limited{background:color-mix(in srgb,var(--danger) 12%,transparent)}
html[data-palette]:not([data-palette=original]) #new-account.has-requests{background:var(--amber)!important;color:var(--bg)!important;border-color:var(--amber);box-shadow:0 0 0 3px color-mix(in srgb,var(--amber) 20%,transparent)}
html[data-palette]:not([data-palette=original]) .event-icon.blue{color:var(--accent-2)}html[data-palette]:not([data-palette=original]) .event-icon.purple{color:var(--chart-previous)}

/* Keep the idle request action consistent with the original brand palette. */
html:not([data-palette]) #new-account:not(.has-requests),html[data-palette=original] #new-account:not(.has-requests){background:var(--accent)!important;color:#071321!important;border-color:var(--accent)!important}
.sidebar-clock .local-date{unicode-bidi:isolate}

#refresh{display:inline-flex;align-items:center;justify-content:center;line-height:1;vertical-align:middle}#refresh>i{display:flex;align-items:center;justify-content:center;margin:0;line-height:1;flex-shrink:0}#refresh svg{display:block;width:100%;height:100%;vertical-align:initial}

/* Keep the three appearance/notification controls adjacent in both languages. */
.preferences #language-toggle{order:0}.preferences #palette-toggle{order:1}.preferences #request-sound{order:2}.preferences #theme-toggle{order:3}
/* Pending requests retain the same clearly visible highlight in every light palette. */
html[data-theme=light][data-palette] #new-account.has-requests,html[data-theme=light]:not([data-palette]) #new-account.has-requests{background:#986100!important;color:#ffffff!important;border-color:#f2c84b!important;box-shadow:0 0 0 3px #f2c84b40!important}

.preferences #push-toggle{order:2;display:inline-flex;align-items:center;justify-content:center;padding:9px;min-width:40px}#push-toggle svg{width:21px;height:21px}#push-toggle[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
#push-dialog{width:min(540px,calc(100vw - 32px));max-height:85dvh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;padding:24px;box-sizing:border-box}#push-dialog::backdrop{background:#0009}#push-dialog h2{font-size:20px;margin:0 0 12px}#push-dialog p{font-size:13px;line-height:1.9}#push-dialog .push-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}#push-dialog button:disabled{opacity:.55;cursor:default}
/* Column geometry depends on the table width, never the current page's content. */
@media(min-width:701px){
 .users-card table{table-layout:fixed;width:100%}
 .users-card thead th:nth-child(1){width:27%}
 .users-card thead th:nth-child(2){width:18%}
 .users-card thead th:nth-child(3){width:27%}
 .users-card thead th:nth-child(4){width:18%}
 .users-card thead th:nth-child(5){width:10%}
 .users-card .user-cell{min-width:0}
 .users-card .user-cell .avatar{flex-shrink:0}
 .users-card .user-name{min-width:0;overflow-wrap:anywhere;white-space:normal}
 .users-card .traffic{min-width:0}
}
/* Overlay the caption inside the existing node row; it never adds flow height. */
.node-identity.node-usage-trigger{position:relative;cursor:pointer;transform:translateY(-8px);outline-offset:4px}
.node-usage-today{position:absolute;inset-block-start:calc(100% + 2px);inset-inline:0;display:flex;align-items:baseline;gap:4px;line-height:14px!important;font-size:11px!important;color:var(--muted);white-space:nowrap;overflow:hidden}
.node-usage-today bdi{font-variant-numeric:tabular-nums;color:var(--text);font-weight:600;direction:ltr;unicode-bidi:isolate}
.node-usage-trigger:hover .node-name{color:var(--accent)}
:is(#node-traffic-dialog,.node-traffic-dialog){width:min(720px,calc(100vw - 24px));max-width:none;max-height:90dvh;overflow:auto;padding:22px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-sizing:border-box}
:is(#node-traffic-dialog,.node-traffic-dialog)::backdrop{background:#0009}
.node-traffic-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.node-traffic-header h2{font-size:19px;margin:0;overflow-wrap:anywhere;display:flex;align-items:center;gap:9px;min-width:0}
.node-traffic-header h2 .country-flag{width:27px;height:18px;flex-shrink:0;object-fit:cover}
.node-traffic-header>button{padding:7px;display:flex;align-items:center;justify-content:center;min-width:34px}
.node-traffic-header svg{width:19px;height:19px}
.node-traffic-controls,.node-traffic-controls>div{display:flex;gap:6px;flex-wrap:wrap}
.node-traffic-controls{justify-content:space-between;gap:12px}
.node-traffic-controls button{padding:7px 10px;font-size:12px}
.node-traffic-controls button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--cyan-soft)}
.node-traffic-summary{display:flex;justify-content:space-between;gap:16px;margin:18px 0;flex-wrap:wrap}
.node-traffic-summary small{display:block;color:var(--muted);font-size:11px}
.node-traffic-summary bdi{display:block;font-size:23px;margin-top:5px;font-variant-numeric:tabular-nums}
.node-traffic-plot>svg{display:block;width:100%;height:auto;direction:ltr}
.node-traffic-note{font-size:11px;color:var(--muted);line-height:1.8;margin:10px 0 0;overflow-wrap:anywhere}
.node-traffic-empty{padding:50px 15px;text-align:center;color:var(--muted);font-size:13px}
:is(#node-traffic-dialog,.node-traffic-dialog) .traffic-axis{font-size:11px}
@media(max-width:500px){:is(#node-traffic-dialog,.node-traffic-dialog){padding:14px}.node-traffic-controls button{min-height:40px}}

.login-card .remember-login{display:flex;align-items:center;gap:9px;cursor:pointer;margin-block:8px}.login-card .remember-login input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--accent);flex:none}

/* Paired upload/download bars keep the existing plot dimensions. */
.traffic-bar{cursor:pointer;stroke-width:1;stroke:transparent}.traffic-bar.current{fill:var(--accent)}.traffic-bar.previous{fill:var(--chart-previous,#a78bfa)}.traffic-bar.partial{stroke:var(--amber);stroke-dasharray:2 2}.traffic-bar:hover,.traffic-bar:focus{stroke:var(--text);stroke-width:2;outline:none}

/* The user search has no magnifier; retain space for its clear action. */
.table-controls .table-search input{padding-inline-start:12px!important;padding-inline-end:36px!important}

/* Authentication owns visibility even if another render extension fails. */
body.authenticated .preferences #push-toggle[hidden]{display:inline-flex!important}body:not(.authenticated) .preferences #push-toggle{display:none!important}
.search-highlight{outline:2px solid var(--accent)!important;outline-offset:3px}#global-results{max-height:min(65vh,540px);overflow:auto}#global-results button small{white-space:normal}

/* Comparison stays on its existing line; timestamp and chart geometry are unchanged. */
.traffic-change-value{font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.traffic-change-value.up{color:#34d399}.traffic-change-value.down{color:#fb7185}.traffic-change-value.neutral{color:var(--muted)}
:root[data-theme="light"] .traffic-change-value.up{color:#047857}:root[data-theme="light"] .traffic-change-value.down{color:#be123c}

.user-cell .avatar.user-presence-avatar.online{background:color-mix(in srgb,var(--success) 18%,var(--panel));color:var(--success);box-shadow:inset 0 0 0 1px var(--success)}
.user-cell .avatar.user-presence-avatar.offline{background:color-mix(in srgb,var(--danger) 18%,var(--panel));color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}
.user-cell .avatar.user-presence-avatar.inactive,.user-cell .avatar.user-presence-avatar.unknown{background:var(--border);color:var(--muted)}

.traffic-approximate{color:var(--amber);font-weight:600}
.traffic-legend:not(.traffic-legend-split) .previous:before{background:repeating-linear-gradient(to right,var(--chart-previous,#a78bfa) 0 5px,transparent 5px 8px)!important}
body.authenticated .preferences #request-sound[hidden]{display:inline-flex!important}
body:not(.authenticated) .preferences #request-sound{display:none!important}
html[dir=rtl] .event-detail{text-align:start;direction:rtl}
html[dir=rtl] .event-row>div{min-width:0;flex:1}
.user-empty-row{pointer-events:none}.user-empty-row td{background:transparent!important;box-shadow:none!important}
.user-traffic-trigger{cursor:pointer}.user-traffic-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(min-width:1001px){.users-card{box-sizing:border-box}.users-card td{height:calc(35px + var(--overview-users-extra,0px)/5)!important}.users-card .table-footer{margin-top:auto}.users-card{display:flex;flex-direction:column}.users-card .table-scroll{flex:1}}
@media(max-width:1000px){.users-card{padding-bottom:0}.user-empty-row{display:none!important}}

.node-health{position:relative;padding-inline-end:30px}
.server-traffic-switch{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);width:24px;min-width:24px;height:24px;padding:0!important;font-size:12px;line-height:1;color:var(--muted);background:var(--panel);border:1px solid var(--border);border-radius:6px}
.server-traffic-switch[aria-checked=true]{color:var(--success);border-color:var(--success)}
.server-traffic-switch[aria-checked=false]{color:var(--amber);border-color:var(--amber)}
.server-traffic-switch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[dir=rtl] .event-detail{unicode-bidi:isolate;text-align:right} .event-detail bdi{unicode-bidi:isolate}


/* Palette-aware iOS-style switches, with the existing server row height. */
.node-health{padding-inline-end:44px}
.server-traffic-switch{width:38px;min-width:38px;height:23px;border-radius:999px!important;border:0!important;background:var(--border);font-size:0;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 12%,transparent);transition:background .18s}
.server-traffic-switch::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0004;transition:transform .18s}
.server-traffic-switch[aria-checked=true]{background:var(--success)}
.server-traffic-switch[aria-checked=true]::after{transform:translateX(15px)}
.server-traffic-switch.unknown{background:var(--border)}
.server-traffic-switch.unknown::after{transform:translateX(7.5px)}
.server-traffic-switch:disabled{opacity:.55;cursor:wait}
.traffic-summary .traffic-approximate,.traffic-approximate{color:var(--amber)!important;font-weight:700}
/* Three equal six-pixel dashes with two three-pixel gaps: 6+3+6+3+6. */
.traffic-legend:not(.traffic-legend-split) .previous::before{width:24px;background:linear-gradient(to right,var(--chart-previous,#a78bfa) 0 25%,transparent 25% 37.5%,var(--chart-previous,#a78bfa) 37.5% 62.5%,transparent 62.5% 75%,var(--chart-previous,#a78bfa) 75% 100%)!important}
@media(prefers-reduced-motion:reduce){.server-traffic-switch,.server-traffic-switch::after{transition:none}}

.user-subscription-controls{margin-top:12px;justify-content:flex-start}

.users-card .validity-traffic{width:100%;min-width:0;max-width:100%;text-align:start}.users-card .validity-traffic .meter{width:100%;max-width:100%;margin-inline:0}.users-card .validity-traffic>span{white-space:nowrap}

/* Keep the two chart modes beside the existing range controls, not below the title. */
#traffic-chart .traffic-heading{flex-wrap:nowrap!important;gap:10px}
#traffic-chart .traffic-heading>div:first-child{min-width:0;flex:1}
#traffic-chart .traffic-heading h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#traffic-chart .traffic-ranges{flex-wrap:nowrap!important;gap:5px;flex-shrink:0}
#traffic-chart .traffic-ranges button{white-space:nowrap;padding-inline:8px;min-height:32px}
#traffic-chart .traffic-mode:first-of-type{margin-inline-start:5px}
#traffic-chart .traffic-server-legend{gap:5px 14px;flex-wrap:nowrap;overflow-x:auto;min-height:20px}
#traffic-chart .traffic-server-legend button{flex-shrink:0;white-space:nowrap}
#traffic-chart .traffic-server-legend .server-series::before{background:var(--server-color)}
@media(max-width:760px){#traffic-chart .traffic-heading{flex-wrap:wrap!important}#traffic-chart .traffic-ranges{flex-wrap:wrap!important}}

.server-chart-plot{position:relative;direction:ltr}
.server-chart-plot [data-server-key]{transition:opacity .15s ease,stroke-width .15s ease}
.server-chart-tooltip{position:absolute;top:0;z-index:20;pointer-events:none;direction:rtl;max-width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text);box-shadow:0 8px 24px #0004;font-size:11px;line-height:1.7}
.server-chart-tooltip[hidden]{display:none}
.server-tooltip-row{display:flex;justify-content:space-between;gap:18px;align-items:center}
.server-tooltip-name{display:flex;align-items:center;gap:7px;white-space:nowrap}
.server-tooltip-name i{width:14px;height:3px;display:inline-block;flex-shrink:0}
.server-tooltip-row bdi{white-space:nowrap}
@media(prefers-reduced-motion:reduce){.server-chart-plot [data-server-key]{transition:none}}
