/* Shared operations UI. Layout: 224px navigation + remaining canvas, with equal 24px gutters.
   Colour is reserved for state; all live figures use tabular digits. */
:root,:root[data-theme=light]{color-scheme:light;--bg:#f4f5f6;--panel:#fff;--raised:#f0f1f2;--line:#e1e3e5;--control:#c9cdd1;--text:#202326;--muted:#60676d;--accent:#245d91;--primary:#252b30;--primary-ink:#fff;--success:#167047;--danger:#b32c43;--warning:#866012;--ok-bg:#eaf5ef;--warn-bg:#fbf2df;--off-bg:#eff0f1;--focus:#24699e;--radius:10px;--radius-control:6px}
:root[data-theme=dark]{color-scheme:dark;--bg:#141516;--panel:#1c1d1e;--raised:#27292a;--line:#353739;--control:#575b5e;--text:#f0f1f2;--muted:#b0b4b8;--accent:#9ac8ef;--primary:#e5e8ea;--primary-ink:#1b1d1f;--success:#72d7a6;--danger:#ff9aad;--warning:#e8c177;--ok-bg:#20362c;--warn-bg:#3c321f;--off-bg:#2c2d2f;--focus:#9ac8ef}
body{letter-spacing:0;font-size:14px;line-height:1.5}
::selection{background:var(--accent);color:var(--panel)}
button,.button,input,select,textarea{border-radius:var(--radius-control);transition:background .15s,border-color .15s;color:var(--text)}
button,.button{border-color:var(--control);background:var(--panel);min-height:36px;box-shadow:none}
button:hover,.button:hover{border-color:var(--muted);background:var(--raised)}
button.primary,.button.primary{background:var(--primary);border-color:var(--primary);color:var(--primary-ink);box-shadow:none}
button.primary:hover,.button.primary:hover{background:color-mix(in srgb,var(--primary) 86%,var(--muted));border-color:var(--primary)}
button:disabled{opacity:1;cursor:not-allowed;color:var(--muted);background:var(--raised);border-color:var(--line)}
button.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 35%,var(--line))}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
input,select,textarea{background:var(--panel);border-color:var(--control);caret-color:var(--accent)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input:focus,select:focus,textarea:focus{outline-color:var(--focus)}
input[type=checkbox],input[type=radio]{accent-color:var(--primary)}
small{font-size:12px}.numeric,.endpoint,.stat strong,td,.machine-card{font-variant-numeric:tabular-nums}
h1{font-size:24px;letter-spacing:-.3px;font-weight:600}h2{font-size:17px}h3{font-weight:600}
summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}
/* Navigation preserves names, order, collapse and account context. */
.layout{--sidebar-width:224px;display:block;min-height:100vh}.layout.is-collapsed{--sidebar-width:72px}
.layout>.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--sidebar-width);max-width:none;margin:0;padding:26px 12px 18px;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;background:var(--bg);border:0;border-right:1px solid var(--line);overflow-y:auto;overflow-x:hidden}
.sidebar .brand{color:var(--text);font-size:20px;text-decoration:none;gap:10px;margin:0 8px 28px;letter-spacing:0}.sidebar .brand img{width:32px;height:32px;flex:none}.sidebar .brand small{color:var(--muted);font-size:11px;letter-spacing:.2px;margin-top:2px}
.sidebar-section-label{font-size:12px;color:var(--muted);margin:0 12px 10px}
.sidebar .nav{display:flex;flex-direction:column;gap:4px;align-items:stretch;flex:0;order:0;width:100%;flex-basis:auto}
.sidebar .nav button{display:flex;justify-content:flex-start;gap:11px;color:var(--muted);background:transparent;font-size:14px;font-weight:400;padding:10px 12px;min-height:42px;border:1px solid transparent;border-radius:6px;text-align:left;width:100%}
.sidebar .nav button:hover{color:var(--text);background:var(--raised)}.sidebar .nav button.active{color:var(--text);background:color-mix(in srgb,var(--text) 8%,var(--bg));font-weight:600;box-shadow:none}
.sidebar .nav .ui-icon{width:18px;height:18px}.nav-count{margin-left:auto;font-size:12px;color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}
.sidebar-bottom{margin-top:auto;padding-top:28px}.collapse-sidebar{color:var(--muted);background:transparent;border-color:transparent;width:100%;justify-content:flex-start;font-size:12px;gap:12px;padding:8px 12px}.sidebar .version-label{display:block;font-size:11px;color:var(--muted);margin:12px 13px 0}
.is-collapsed .sidebar-label{display:none}.is-collapsed .sidebar .brand{margin:0 7px 28px}.is-collapsed .sidebar .nav button,.is-collapsed .collapse-sidebar{justify-content:center;padding:10px}.is-collapsed .sidebar .version-label{margin:12px 0 0;text-align:center}
.layout>.main{max-width:none;width:calc(100% - var(--sidebar-width));margin:0 0 0 var(--sidebar-width);padding:24px}
.main>#page,.topbar,.workspace-footer{max-width:1800px;margin-left:auto;margin-right:auto}.topbar{min-height:54px;margin-bottom:24px;gap:16px}.page-heading{display:flex;gap:10px;align-items:center;min-width:0}.topbar h1{margin:0 0 4px}.topbar .muted{font-size:12px}.topbar-actions{flex-wrap:nowrap;gap:8px}
.topbar-actions>.icon-button{border:1px solid var(--control);border-radius:6px;width:36px;height:36px;background:var(--panel)}.mobile-menu-toggle,.navigation-backdrop{display:none}
.workspace-footer{display:flex;justify-content:space-between;align-items:center;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.theme-menu,.account-menu{position:relative;flex:none}.theme-menu>summary,.account-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid var(--control);background:var(--panel);border-radius:6px;padding:7px 10px;font-size:13px}.theme-menu[open]>summary,.account-menu[open]>summary{border-color:var(--focus)}
.theme-options,.account-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:50;background:var(--panel);border:0;border-radius:8px;padding:6px;box-shadow:0 8px 28px #0003;min-width:210px}
.theme-options button,.account-popover button{display:flex;width:100%;justify-content:space-between;background:transparent;border:0;padding:10px;font-size:13px;min-height:40px}.theme-options button:hover,.account-popover button:hover{background:var(--raised)}.theme-check{opacity:0}.theme-options [aria-checked=true]{background:var(--raised)}.theme-options [aria-checked=true] .theme-check{opacity:1}.theme-options small{padding:8px 10px;margin:0;border-top:1px solid var(--line)}
.account-name{max-width:130px;overflow:hidden;text-overflow:ellipsis}.account-menu>summary{padding:4px 10px 4px 5px}.account-monogram,.account-menu .avatar{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:5px;background:var(--raised);color:var(--text);font-size:13px;font-weight:600}.account-heading{padding:10px;border-bottom:1px solid var(--line);margin-bottom:4px}.account-heading strong{font-size:14px;overflow-wrap:anywhere}.account-heading small{margin-top:3px}.account-popover button{justify-content:flex-start;gap:10px}.account-popover button.danger{border-top:1px solid var(--line);border-radius:0;margin-top:4px}.chevron{color:var(--muted)}
/* A compact, divided overview keeps the actual work visible. */
.node-overview{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:18px 20px;margin-bottom:22px;color:var(--text)}
.overview-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.overview-heading h2{font-size:15px;margin:0}.overview-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}
.overview-expiry{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--muted)}.overview-expiry .ui-icon{width:14px;height:14px}.overview-expiry strong{font-size:12px;color:var(--text);font-weight:500}.overview-expiry.is-expired,.overview-expiry.is-expired strong{color:var(--danger)}
.node-overview .stats{grid-template-columns:minmax(0,.8fr) minmax(0,1.25fr) 1fr 1fr;gap:0;margin:0}.node-overview .stat{border:0;border-radius:0;box-shadow:none;padding:0 20px;min-height:0;background:transparent}.node-overview .stat:first-child{padding-left:0}.node-overview .stat:last-child{padding-right:0}.node-overview .stat+.stat{border-left:1px solid var(--line)}.node-overview .stat-icon{display:none}
.node-overview .stat-content{display:block}.node-overview .stat-content>.muted,.overview-stat-title{font-size:12px;color:var(--muted)}.overview-stat-title{display:block;margin-bottom:8px}.node-overview .stat strong{font-size:24px;font-weight:500;margin:2px 0 4px;min-height:0;color:var(--text);line-height:1.35}.node-overview .caption{font-size:12px;color:var(--muted);line-height:1.6}.stat-quota,.stat-unit{font-size:12px;color:var(--muted)}
.customer-stat-content{flex:1;min-width:0}.customer-online-total{display:grid;grid-template-columns:1fr 1fr;gap:12px}.customer-online-total>div{min-width:0}.customer-online-total>div>span{font-size:12px;color:var(--muted)}.customer-online-pending{color:var(--warning)}.node-overview .server-count-alert strong{color:var(--danger)}
.node-overview .node-fault-counts{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px}.node-overview .node-fault-counts button{font-size:12px;min-height:26px;color:var(--text)}.node-overview .node-fault-counts .fault-count{color:var(--danger)}
.compact-traffic-total{white-space:nowrap}.compact-traffic-split{display:flex;gap:14px;margin:6px 0}.compact-traffic-split>div{min-width:0}.compact-traffic-split span{display:block;color:var(--muted);font-size:11px}.compact-traffic-split b{display:block;font-size:12px;font-weight:500;white-space:nowrap}.compact-traffic-warning{color:var(--warning)!important}
.quota-progress,.quota-progress::-webkit-progress-bar{background:var(--raised)}.quota-progress::-webkit-progress-value{background:var(--accent)}
/* Shared lists: one type scale, tabular figures, visible actions. */
.toolbar{margin:0 0 16px;gap:12px}.section-title{font-size:16px}.table-wrap{border-radius:var(--radius);border-color:var(--line)}
th{background:var(--panel);color:var(--muted);font-weight:500;font-size:12px}.node-table thead th{height:42px;font-size:12px;font-weight:500;background:var(--panel);padding-top:10px;padding-bottom:10px;color:var(--muted)}td,th{border-bottom-color:var(--line)}tbody tr:hover{background:color-mix(in srgb,var(--text) 2%,var(--panel))}
.node-table{min-width:1180px}.node-table td{padding:14px 12px;line-height:21px}.node-table .node-name{width:260px;max-width:260px;grid-template-columns:minmax(0,1fr) 42px;gap:8px}.node-table .node-name b{font-size:14px;font-weight:600}.node-table .node-path{font-size:12px;max-width:260px}.node-table td small{font-size:12px;line-height:19px}.node-table .endpoint{font-size:13px;font-weight:500}.node-table .node-quota{align-items:flex-end}.node-table th:nth-child(4),.node-table td:nth-child(4){text-align:right}.node-table .node-quota>span:first-child{font-weight:500}.node-table .node-expiry{white-space:normal;min-width:150px;max-width:170px;font-size:12px}
.node-identity{display:flex;gap:10px;align-items:center}.node-identity-copy{min-width:0}.node-initial{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;position:relative;flex:none;color:var(--muted);background:var(--raised);border-radius:5px;font-size:16px;font-weight:500}.initial-status{position:absolute;right:-2px;bottom:-2px;width:7px;height:7px;border:2px solid var(--panel);border-radius:50%;background:var(--muted)}.initial-status.status-ok{background:var(--success)}.initial-status.status-error{background:var(--danger)}
.badge,.badge.ok{background:var(--raised);color:var(--muted);font-size:11px;border-radius:4px;flex:none;white-space:nowrap}.badge.online{background:var(--ok-bg);color:var(--success);border-radius:4px}.badge.warn{background:var(--warn-bg);color:var(--warning)}.badge.off{background:var(--off-bg);color:var(--muted)}
.protocol-badge{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted);background:transparent;border-color:var(--control)}
.node-health-button{flex-wrap:wrap;max-width:340px}.metric-chip{display:inline-flex;align-items:center;font-size:11px;line-height:20px;padding:0 6px;border-radius:4px;white-space:nowrap;color:var(--muted);background:var(--raised)}.metric-latency,.metric-ok{color:var(--success);background:var(--ok-bg)}.metric-warn{color:var(--warning);background:var(--warn-bg)}.metric-error{color:var(--danger);background:var(--raised)}.node-health-button .probe-refresh{opacity:0}.node-health-button:hover .probe-refresh,.node-health-button:focus-visible .probe-refresh{opacity:1}
.node-table .share-button{background:var(--panel);color:var(--text);border-color:var(--control);box-shadow:none}.node-table .share-button:hover{background:var(--raised)}.action-group{border-radius:6px;border-color:var(--control)}.icon-button{color:var(--muted)}
.node-toolbar{align-items:center;flex-wrap:wrap}.node-toolbar>.actions{flex-wrap:wrap;gap:8px}.node-toolbar .search{width:240px;max-width:280px}.node-toolbar .actions button{font-size:12px}.node-filters{gap:8px;margin-bottom:12px}.node-filters select{font-size:13px;min-width:120px;max-width:220px}.node-filters label{font-size:12px;margin:0}.node-filters small{font-size:12px}
.bulk-toolbar{background:transparent;padding:0 0 12px;border:0;gap:6px;margin:0}.bulk-toolbar .small{font-size:12px;min-height:32px}.bulk-toolbar>span,.bulk-toolbar small{font-size:12px}.bulk-toolbar small{margin-left:auto}.node-pagination{font-size:12px;padding:16px 0}.node-source-controls{flex-wrap:wrap;min-width:125px}.node-source-controls small{flex-basis:100%;margin:0}.node-source-limit,.presence{font-size:12px}
.accounts-table{min-width:850px}.accounts-table td,.accounts-table th{padding:16px}.accounts-table td:nth-child(2),.accounts-table th:nth-child(2),.accounts-table td:nth-child(3),.accounts-table th:nth-child(3){text-align:right}.accounts-table .actions{gap:5px}.usage-table{max-width:100%;font-variant-numeric:tabular-nums}.usage-table td:not(:first-child),.usage-table th:not(:first-child){text-align:right}.main[data-view=usage] .table-wrap{max-width:900px}
/* Horizontal server records. Five aligned areas, no independent column scrolling. */
.machine-toolbar{margin-bottom:12px}.machine-summary{font-size:14px}.machine-summary>span{font-size:12px}.machine-toolbar .search{width:260px;font-size:13px}
.machine-filters{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:12px;margin-bottom:20px;padding-bottom:0}.machine-filters button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 4px;margin-bottom:0;gap:7px;flex:none;font-size:13px;color:var(--muted);background:transparent}.machine-filters button.active{background:transparent;border-color:var(--text);color:var(--text);border-radius:0}.machine-filters button:hover{background:transparent;color:var(--text)}.machine-filters button>span{font-size:12px}
.machine-section+.machine-section{margin-top:24px}.machine-section-heading{margin-bottom:10px;gap:12px}.machine-section-heading h2{font-size:15px}.machine-section-tools{display:flex;align-items:center;gap:12px}.machine-section-tools small{font-size:12px;margin:0}.machine-section-tools button{font-size:12px;min-height:30px;padding:5px 9px}
.machine-grid{display:flex;flex-direction:column;align-items:stretch;gap:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.machine-row{display:grid;grid-template-columns:minmax(225px,1.5fr) minmax(170px,1fr) minmax(112px,.7fr) minmax(128px,.8fr) 164px;gap:20px;align-items:center;padding:18px 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}.machine-row:last-child{border-bottom:0}.machine-row>div{min-width:0}
.machine-heading{gap:10px;justify-content:flex-start}.machine-heading h3{font-size:14px;line-height:22px;font-weight:600;white-space:normal;overflow-wrap:anywhere}.machine-heading .badge{margin-left:auto;font-size:11px;padding:1px 6px}
.machine-address{display:block;min-height:0;margin:7px 0 0;font-size:12px;line-height:20px}.machine-address>div:first-child:not(.server-ip){display:flex;flex-wrap:wrap;justify-content:flex-start;gap:0 10px}.machine-endpoint{max-width:100%;overflow-wrap:anywhere;white-space:normal}.machine-location{max-width:none;font-size:12px;flex-shrink:1}.machine-address .server-ip{margin:2px 0 0;line-height:20px;overflow:visible}.machine-address .ip-values{flex-wrap:wrap;white-space:normal;overflow:visible}.machine-address>small{font-size:11px;line-height:18px;margin-top:3px;white-space:normal}
.machine-status{margin:5px 0 0;font-size:11px;line-height:18px;min-height:0}.machine-error{margin:5px 0 0;font-size:12px}.machine-traffic{border:0;padding:0}.machine-traffic-heading{display:block;font-size:12px;color:var(--muted)}.machine-traffic-heading small{font-size:11px;margin:2px 0 0}.machine-traffic-total{display:block;margin:4px 0 6px;font-size:21px;line-height:26px;font-weight:600;letter-spacing:-.3px;color:var(--text)}
.machine-traffic-breakdown{display:grid;grid-template-columns:1fr;gap:2px}.machine-traffic-breakdown>div{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:10px}.machine-traffic-breakdown span{font-size:11px;color:var(--muted)}.machine-traffic-breakdown b{font-size:12px;font-weight:400;white-space:nowrap}
.machine-live-speeds{display:grid;grid-template-columns:1fr;gap:10px;border:0;padding:0}.machine-live-speeds>div{gap:1px}.machine-live-speeds span{font-size:11px}.machine-live-speeds strong{font-size:14px;font-weight:500;line-height:22px;white-space:nowrap}
.machine-resources{display:grid;grid-template-columns:1fr;gap:7px;margin:0}.machine-resources>div{display:grid;grid-template-columns:1fr 50px;align-items:center;gap:8px}.machine-resources>div>div{font-size:12px}.machine-resources meter{height:4px;width:100%;margin:0;appearance:none;border:0}.machine-resources meter::-webkit-meter-bar,.resource-metrics meter::-webkit-meter-bar{background:var(--raised);border:0;border-radius:2px;height:4px}.machine-resources meter::-webkit-meter-optimum-value,.resource-metrics meter::-webkit-meter-optimum-value{background:var(--muted);border-radius:2px}.machine-resources meter::-moz-meter-bar{background:var(--muted)}.machine-sampled{font-size:11px;line-height:16px;margin-top:9px;color:var(--muted)}
.machine-accounting-warning{color:var(--danger);font-size:11px;line-height:16px}.machine-traffic>.machine-accounting-warning{display:block;margin-top:5px}
.machine-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;border:0;padding:0}.machine-actions .small,.machine-actions .icon-button{font-size:12px;padding:6px 7px;min-height:32px;width:100%;border-radius:6px;border:1px solid var(--control);color:var(--text);background:var(--panel);margin:0}.machine-actions .ui-icon{width:14px;height:14px}.machine-actions .small:hover{background:var(--raised);border-color:var(--muted)}
.machine-details{grid-column:1/-1;margin-top:0;padding:12px 0 0;border-top:1px solid var(--line)}.machine-details-grid{grid-template-columns:140px minmax(0,1fr) 140px minmax(0,1fr);font-size:12px;gap:8px 18px}.machine-details-grid dd{text-align:left}.machine-details p{font-size:12px;line-height:1.8;max-width:100ch}.machine-traffic-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.machine-traffic-actions>small{margin:0;font-size:12px}.machine-empty{border-radius:var(--radius);padding:40px 16px}
.server-order-list{list-style:none;margin:16px 0;padding:0;max-height:52vh;overflow:auto;border:1px solid var(--line);border-radius:8px}.server-order-list li{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line)}.server-order-list li:last-child{border:0}.server-order-rank{font-size:13px;min-width:20px;text-align:center;color:var(--muted)}.server-order-name{flex:1;min-width:0}.server-order-name strong,.server-order-name small{display:block;overflow-wrap:anywhere}.server-order-name strong{font-size:13px}.server-order-name small{font-size:12px;margin-top:3px}.server-order-controls{display:flex;gap:6px}.server-order-controls button{width:36px;min-height:36px;padding:4px;font-size:18px}
/* Groups, subscriptions and deployment guidance share flat surfaces. */
.server-card,.subscription-card,.about-list>div{border-radius:var(--radius);box-shadow:none;background:var(--panel);border-color:var(--line)}.server-card{padding:20px}.server-card h2{font-size:17px}.group-current{border-left-width:1px;background:var(--raised)}.group-current strong{font-size:17px}.group-member.current{border-color:var(--control)}.path-strip{border-left-width:1px}.path-strip b{color:var(--text)}
.subscription-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.subscription-card{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid var(--line)}.subscription-card h3{font-size:17px;margin:8px 0}.subscription-card p{font-size:13px;line-height:1.75;color:var(--muted)}.subscription-icon{display:none}.subscription-card .subscription-kind{font-size:12px;color:var(--muted);order:1;margin:0 0 8px}.subscription-card h3{order:0}.subscription-card p,.subscription-node-names{order:2}.subscription-footer{order:3;display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:14px;margin-top:auto}.subscription-footer>span{font-size:12px;color:var(--muted)}.subscription-footer>.primary{margin-left:auto;background:var(--panel);color:var(--text);border-color:var(--control)}.subscription-footer>.icon-button{border:1px solid var(--control);border-radius:6px}.subscription-node-names{display:grid;gap:5px;margin-bottom:16px}.subscription-node-names span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.selection-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.selection-heading>span{font-size:12px;color:var(--muted)}.selection-actions{display:flex;gap:8px;margin:10px 0}.subscription-picker{border:1px solid var(--line);border-radius:8px;max-height:320px;overflow:auto;margin-bottom:12px}.subscription-choice{display:flex;align-items:center;gap:10px;padding:12px;margin:0;border-bottom:1px solid var(--line);cursor:pointer}.subscription-choice:last-child{border:0}.subscription-choice:hover,.subscription-choice:has(input:checked){background:var(--raised)}.subscription-choice input{width:16px;height:16px;min-height:0;flex:none}.subscription-choice>span:not(.node-initial):not(.protocol-badge){min-width:0;flex:1}.subscription-choice b,.subscription-choice small{display:block;overflow-wrap:anywhere}.subscription-choice b{font-size:13px}.subscription-choice small{font-size:12px;margin-top:3px}.empty-hint{padding:20px;text-align:center;font-size:13px;color:var(--muted)}
.trash-notice{display:flex;gap:12px;background:var(--raised);padding:14px;border-radius:8px;margin-bottom:16px}.trash-notice p{font-size:12px;margin:4px 0 0;color:var(--muted)}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.trash-row strong{display:block;font-size:13px;overflow-wrap:anywhere}.trash-row>.actions{flex-wrap:nowrap;flex:none}.trash-row .icon-button{border:1px solid var(--control);border-radius:6px}.loading-state{text-align:center;padding:48px 20px;color:var(--muted)}
/* Forms, focus and feedback use the same controls in every section. */
dialog{border:0;border-radius:12px;box-shadow:0 18px 64px #0004;scrollbar-color:var(--control) transparent}dialog::backdrop{background:#15171988;backdrop-filter:none}.modal-head{padding:20px 24px}.modal-head h2{font-size:18px;overflow-wrap:anywhere;padding-right:12px}.modal-body{padding:22px 24px}.modal-footer{padding-top:16px;border-top:1px solid var(--line);margin-top:20px}.close{min-width:36px;min-height:36px}.field{margin-bottom:18px}.field small{line-height:1.65}.grid{gap:0 18px}pre,.host-metrics>div{background:var(--raised);border-color:var(--line)}
.share-tabs{display:flex;gap:5px;flex-wrap:wrap;width:100%;padding:4px;background:var(--raised);border:0;border-radius:8px;margin-bottom:20px}.share-tabs button{flex:1;min-height:36px;font-size:13px;white-space:nowrap;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted)}.share-tabs button[aria-selected=true]{background:var(--panel);color:var(--text);border-color:var(--control)}.share-tabs button:hover{color:var(--text)}.share-qr{border-radius:8px}.share-note{font-size:12px;line-height:1.8}
.login{box-shadow:none;padding:28px;border-radius:12px;margin-top:12vh}.login>.brand{font-size:22px}.login-theme{display:flex;justify-content:flex-end;margin-bottom:20px}.login .primary{width:100%;margin-top:6px}.login small{font-size:12px}.password-help{font-size:13px;color:var(--muted);margin-bottom:18px}.password-field input{font-size:14px}.password-field small{margin-bottom:0}
.source-table .source-copy-address{display:inline-flex;align-items:center;gap:8px;padding:5px 6px;min-height:32px}.source-copy-address::after{content:'复制';font-size:12px;color:var(--accent)}.source-copy-address.copy-done::after{content:'已复制';color:var(--success)}.source-copy-address.copy-failed::after{content:'重试';color:var(--danger)}.source-table .source-location{min-width:155px;max-width:270px;white-space:normal}.source-location-button{font-size:13px;padding:6px 10px;color:var(--accent);border:1px solid var(--control);background:var(--panel)}.source-location-result{font-size:14px;line-height:1.5}.source-location small{font-size:12px;margin-top:3px}
#toast{background:var(--text);color:var(--panel);border:0;border-radius:8px;box-shadow:0 6px 24px #0002;font-size:13px}.ip-values{color:var(--muted)}.account-password-note{background:var(--raised)}
/* Terminal shares colours; no terminal connection or server setting changes. */
.terminal-page{background:var(--bg);color:var(--text)}.terminal-page header,.terminal-page #setup{background:var(--panel);border-color:var(--line)}.terminal-page #terminal{background:var(--panel)}.terminal-page footer{border-color:var(--line)}.terminal-page button{background:var(--panel);color:var(--text);border-color:var(--control)}.terminal-page button.primary{background:var(--primary);color:var(--primary-ink)}.terminal-page .divider,.terminal-page #address,.terminal-page footer,.terminal-page small,.terminal-page #setup p,.terminal-page #status{color:var(--muted)}.terminal-page #status.live{color:var(--success)}.terminal-page #message{color:var(--danger)}
@media(min-width:1800px){.layout>.main{padding:28px 36px}}
@media(max-width:1380px) and (min-width:1101px){.machine-row{grid-template-columns:minmax(200px,1.4fr) minmax(154px,1fr) 105px 120px 144px;gap:14px;padding:16px}.machine-actions{gap:5px}.machine-actions .small{padding:5px;font-size:11px}.machine-resources>div{grid-template-columns:1fr 40px}.machine-location{display:none}.node-toolbar>.actions{width:100%;justify-content:flex-start}.node-toolbar .search{flex:1;max-width:none}}
@media(max-width:1100px){.layout,.layout.is-collapsed{--sidebar-width:0px}.layout>.main{width:100%;margin:0;padding:20px}.layout>.sidebar,.layout.is-collapsed>.sidebar{width:224px;transform:translateX(-100%);padding:26px 12px 18px}.layout.nav-open>.sidebar{transform:translateX(0)}.layout.nav-open>.navigation-backdrop{display:block;position:fixed;inset:0;z-index:39;width:100%;height:100%;border:0;border-radius:0;background:#0006}.layout.is-collapsed .sidebar-label{display:initial}.layout.is-collapsed .sidebar .brand{margin:0 8px 28px}.layout.is-collapsed .sidebar .nav button{justify-content:flex-start;padding:10px 12px}.sidebar .collapse-sidebar{display:none}.layout.is-collapsed .sidebar-section-label{display:block}.layout.is-collapsed .version-label{text-align:left;margin:12px 13px 0}.mobile-menu-toggle{display:inline-flex;width:36px;min-height:36px;padding:8px;flex:none}.topbar{gap:12px;margin-bottom:20px}.topbar h1{font-size:22px}.node-overview .stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}.node-overview .stat{padding:0 16px}.node-overview .stat:nth-child(odd){border-left:0;padding-left:0}.node-overview .stat:nth-child(even){padding-right:0}.node-overview .stat:nth-child(n+3){border-top:1px solid var(--line);padding-top:14px}.node-toolbar>.actions{width:100%;justify-content:flex-start}.node-toolbar .search{flex:1;max-width:none}.node-filters small{flex-basis:100%;margin:0}.machine-row{grid-template-columns:minmax(210px,1.4fr) minmax(150px,1fr) minmax(110px,.7fr);gap:14px 24px}.machine-health{grid-column:1/3;display:flex;align-items:center;gap:16px}.machine-resources{display:flex;flex:1;gap:20px}.machine-resources>div{display:block;flex:1}.machine-resources meter{margin-top:5px}.machine-sampled{max-width:135px;margin:0}.machine-actions{grid-column:3;grid-row:2;grid-template-columns:1fr 1fr}.machine-details-grid{grid-template-columns:140px 1fr}}
@media(max-width:700px){.layout>.main{padding:16px}.topbar{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:18px}.page-heading{width:100%}.topbar-actions{margin-left:auto;gap:6px}.topbar .muted{font-size:12px}.topbar-actions>.icon-button,.theme-menu>summary,.account-menu>summary{min-height:40px}.account-name{max-width:110px}.toolbar{flex-wrap:wrap}.workspace-footer{justify-content:center}.workspace-footer>span{display:none}.node-overview{padding:14px;margin-bottom:18px}.node-overview .stat{padding:0 12px}.node-overview .stat strong{font-size:22px}.node-overview .caption{font-size:11px}.overview-header{margin-bottom:12px}.customer-online-total{gap:8px}.compact-traffic-split{flex-wrap:wrap;gap:4px 10px}.compact-traffic-split b{font-size:11px}.node-overview .node-fault-counts{gap:3px 8px}.overview-expiry{font-size:11px}.overview-expiry strong{font-size:11px}.overview-expiry .ui-icon{display:none}
button,.button,button.small,.button.small{min-height:40px}.mobile-menu-toggle{min-height:40px;width:40px}.node-toolbar .search{width:100%;max-width:none;flex-basis:100%;min-height:40px}.node-toolbar .actions{gap:7px}.node-toolbar .actions>button{flex:1;min-width:max-content}.node-filters{gap:7px}.node-filters select{min-width:0;max-width:none;flex:1;min-height:40px}.bulk-toolbar .small{min-height:36px}.bulk-toolbar small{flex-basis:100%;margin:0}.node-pagination{justify-content:flex-start}.node-pagination form{margin:5px 0 0}
.machine-row{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:16px;padding:16px}.machine-identity{grid-column:1/-1}.machine-heading h3{font-size:15px}.machine-heading .badge{margin-left:auto}.machine-address>div:first-child:not(.server-ip){justify-content:space-between}.machine-traffic{grid-column:1}.machine-live-speeds{grid-column:2;align-self:center;padding-left:16px;border-left:1px solid var(--line)}.machine-health{grid-column:1/-1;display:block;border-top:1px solid var(--line);padding-top:12px}.machine-resources{gap:22px}.machine-sampled{max-width:none;margin-top:8px}.machine-actions{grid-column:1/-1;grid-row:auto;display:flex;gap:8px}.machine-actions .small,.machine-actions .icon-button{min-height:40px;font-size:12px;flex:1;padding:6px}.machine-actions .ui-icon{display:none}.machine-details-grid{grid-template-columns:110px 1fr;gap:8px 12px}.machine-toolbar>.actions{width:100%;flex-wrap:nowrap}.machine-toolbar .search{flex:1;min-width:0;width:auto;max-width:none;min-height:40px}.machine-toolbar .primary{flex:none}.machine-section-tools{gap:8px}.machine-section-tools button{min-height:36px}.machine-filters{gap:12px}.machine-filters button{min-height:42px;font-size:13px}.machine-location{display:inline}.machine-section-heading h2{font-size:15px}.machine-grid{border-radius:8px}
.grid,.server-grid,.group-options{grid-template-columns:1fr}.subscription-grid{grid-template-columns:1fr}.subscription-card{padding:18px}.subscription-choice{padding:11px;gap:8px}.subscription-choice .protocol-badge{display:none}.trash-row{align-items:flex-start}.trash-row strong{max-width:190px}.trash-row>.actions{gap:5px}.modal-head{padding:16px 18px}.modal-body{padding:18px}dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.modal-head h2{font-size:17px}.modal-footer{position:sticky;bottom:-18px;background:var(--panel);padding:14px 0;margin-top:18px}.login{margin:8vh 16px;padding:24px}.theme-options{min-width:195px}.server-order-controls button{min-height:40px;width:40px}
/* Dense comparison tables retain every field as labelled rows on a phone. */
.node-table,.accounts-table{min-width:0;white-space:normal}.node-table thead,.accounts-table thead{display:none}.node-table tbody,.accounts-table tbody{display:block}.node-table tr,.accounts-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.node-table tr:last-child,.accounts-table tr:last-child{border:0}.node-table td,.accounts-table td{display:block;padding:0!important;border:0;width:auto!important;min-width:0;text-align:left!important}.node-table .node-check{grid-column:2;grid-row:1;justify-self:end;align-self:start;z-index:1}.node-check input[type=checkbox]{width:20px;height:20px}.node-table td:nth-child(2){grid-column:1/-1;grid-row:1;padding-right:28px!important}.node-table .node-identity{align-items:flex-start}.node-table .node-name{display:flex;flex-wrap:wrap;height:auto;width:auto;max-width:100%;gap:4px 8px}.node-table .node-name b{white-space:normal;overflow-wrap:anywhere;font-size:14px}.node-table .node-path{max-width:100%;white-space:normal;overflow:visible}.node-table td:nth-child(3){grid-column:1/-1}.node-table td:nth-child(8){grid-column:1/-1;padding-top:12px!important;border-top:1px solid var(--line)}.node-table td[data-label]::before,.accounts-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;line-height:18px;margin-bottom:3px}.node-table .node-quota{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:8px}.node-table .node-source-controls{min-width:0;flex-wrap:wrap;gap:5px}.node-table .node-expiry{min-width:0;max-width:none}.node-table .landing-line{height:auto;flex-wrap:wrap}.node-table .endpoint{overflow-wrap:anywhere}.node-actions{justify-content:flex-end}.node-actions .icon-button{width:40px;min-height:40px}.node-health-button{max-width:100%;margin-top:7px}.node-table .share-button{min-height:40px}.node-table td small{margin-top:3px}.accounts-table td:first-child,.accounts-table td:last-child{grid-column:1/-1}.accounts-table .actions{flex-wrap:wrap}.accounts-table td:first-child strong{font-size:15px}.source-table{min-width:520px}.usage-table th,.usage-table td{padding:12px 9px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Compact mobile overview and readable filters; actions remain attached to each node. */
.overview-toggle,.overview-count{display:none}
@media(min-width:701px){.node-table td:last-child,.node-table th:last-child{position:sticky;right:0;background:var(--panel);z-index:1;border-left:1px solid var(--line)}}
@media(max-width:700px){
.overview-toggle{display:inline-flex;min-height:36px!important;padding:5px 8px!important;font-size:12px!important;margin-left:auto}.overview-count{display:inline;font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}.overview-header{margin-bottom:0;gap:8px}.node-overview:not(.overview-expanded) .stats,.node-overview:not(.overview-expanded) .overview-expiry{display:none}.node-overview.overview-expanded .overview-header{margin-bottom:14px}.node-overview.overview-expanded .overview-count{display:none}.node-overview.overview-expanded .overview-expiry{order:3;width:100%}.node-overview{padding:10px 12px}
.bulk-toolbar:not(.has-selection){display:none}.node-filters{display:grid;grid-template-columns:28px minmax(0,1fr) 28px minmax(0,1fr);gap:8px}.node-filters select{width:100%;font-size:12px}.node-filters button{grid-column:3/5}.node-filters small{display:none}.node-toolbar .actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.node-toolbar .search{grid-column:1/-1;width:100%}.node-toolbar .actions>button{min-width:0;padding:6px 4px;font-size:12px;gap:3px}.node-toolbar .actions>button .ui-icon{display:none}.node-toolbar .actions>.primary{grid-column:auto}.node-toolbar .section-title{font-size:15px}.node-toolbar{gap:10px}
}

/* Refresh state is separate from per-server sampling time. */
.refresh-status{font-size:12px;color:var(--muted);white-space:nowrap}.refresh-status.refresh-stale{color:var(--warning,#856024)}
@media(max-width:700px){.topbar-actions{flex-wrap:wrap}.refresh-status{order:5;flex-basis:100%;text-align:right}}
