:root{color-scheme:dark;--bg:#090909;--surface:#111112;--surface-hover:#18181a;--line:#252527;--text:#ededed;--muted:#a0a0a6;--faint:#74747c;--cpu:#f1b96b;--memory:#b3a4f3;--download:#7baaf7;--upload:#71ccb0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #a5a5ad;outline-offset:4px}[hidden]{display:none!important}.topbar{border-bottom:1px solid #1d1d1f}.topbar-inner{max-width:1160px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:11px;font-weight:600;letter-spacing:-.025em;font-size:1.12rem}.brand svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.top-meta{display:flex;align-items:center;gap:18px}.admin-badge{border:1px solid #313134;border-radius:999px;padding:4px 9px;font-size:.8rem;color:#ccc}.freshness{color:var(--muted);font-size:.8rem}.freshness.stale{color:var(--cpu)}main{max-width:1160px;margin:0 auto;padding:28px 32px 24px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:34px}.tabs button{position:relative;border:0;background:none;padding:0 0 17px;color:var(--muted);font-size:.94rem;font-weight:500}.tabs button[aria-selected=true]{color:var(--text)}.tabs button[aria-selected=true]:after{content:"";position:absolute;height:2px;background:var(--text);left:0;right:0;bottom:-1px;border-radius:2px}.section-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{color:var(--muted);font-size:.84rem;margin:0 0 7px;font-variant-numeric:tabular-nums}h1{font-size:2rem;letter-spacing:-.045em;font-weight:600;line-height:1.12;margin:0}h2{font-size:.94rem;font-weight:500;letter-spacing:-.015em;margin:0}.segmented{display:flex;border:1px solid var(--line);background:#101011;border-radius:24px;padding:4px;gap:3px;align-items:center}.segmented button{background:none;border:0;padding:7px 13px;border-radius:999px;white-space:nowrap;color:var(--muted);font-size:.85rem;line-height:1.35}.segmented button[aria-pressed=true]{color:#f3f3f3;background:#2a2a2d;box-shadow:0 1px 2px #0003}.segmented button:hover:not([aria-pressed=true]){color:var(--text);background:#1b1b1d}.stat-grid{display:grid;gap:14px;margin-bottom:20px}.server-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:22px 22px 23px;min-width:0}.stat-label{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:.85rem;margin-bottom:15px}.stat-value{font-size:2rem;font-weight:500;letter-spacing:-.045em;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}.stat-value .value-unit{font-size:.95rem;letter-spacing:0;color:var(--muted);margin-left:5px;font-weight:400}.stat-meta{font-size:.8rem;color:var(--muted);margin-top:10px;line-height:1.45;font-variant-numeric:tabular-nums}.meter{height:3px;border-radius:3px;background:#29292c;overflow:hidden;margin-top:13px}.meter span{height:100%;display:block;background:#87878e;width:0;border-radius:inherit}#memory-meter{background:var(--memory)}.dot{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:#929299}.dot.cpu{background:var(--cpu)}.dot.memory{background:var(--memory)}.dot.download{background:var(--download)}.dot.upload{background:var(--upload)}.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:22px}.panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.unit{color:var(--faint);font-size:.8rem;white-space:nowrap}.chart{position:relative;min-height:218px}.chart svg{display:block;width:100%;height:218px;overflow:visible}.chart svg text{fill:var(--faint);font-size:12px;font-family:inherit;font-variant-numeric:tabular-nums}.chart-grid{stroke:#252527;stroke-width:1;stroke-dasharray:3 5}.chart-empty{height:218px;display:grid;place-items:center;color:var(--muted);font-size:.875rem;text-align:center;line-height:1.7}.chart-tip{position:absolute;pointer-events:none;z-index:2;top:12px;left:54px;background:#252527eb;border:1px solid #3b3b40;padding:9px 12px;border-radius:16px;font-size:.78rem;line-height:1.8;box-shadow:0 8px 24px #0005;white-space:nowrap}.legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:6px;font-size:.75rem;color:var(--muted);white-space:nowrap}.panel-note{font-size:.78rem;line-height:1.5;color:var(--faint);margin:13px 0 0}.details{margin:0;font-size:.86rem}.details>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #222225}.details>div:first-child{padding-top:0}.details dt{color:var(--muted)}.details dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.services{display:flex;flex-wrap:wrap;gap:13px 20px;margin-top:23px}.service{display:flex;align-items:center;gap:7px;color:#bcbcc2;font-size:.8rem}.service .dot{background:#86ad98}.service.failed .dot{background:#dc9a86}.service.failed{color:#dc9a86}.traffic-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.traffic-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:22px}.traffic-history{margin-bottom:18px}.traffic-history .chart,.traffic-history .chart svg{height:240px;min-height:240px}.users-panel{padding-bottom:18px}select,input[type=date]{background:#171719;color:var(--text);border:1px solid #343438;padding:9px 13px;border-radius:999px;font-size:.875rem;min-width:0}select{max-width:220px}.custom-dates{display:flex;align-items:center;gap:10px}.custom-dates label{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:.85rem}.custom-dates input{padding:7px 9px;max-width:150px}.quiet-button{border:1px solid #39393d;border-radius:999px;background:#252528;color:var(--text);padding:9px 12px;font-size:.85rem}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left;font-variant-numeric:tabular-nums}th{font-size:.8rem;font-weight:400;color:var(--muted);padding:0 16px 15px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 16px;border-bottom:1px solid #222225;white-space:nowrap}th:first-child,td:first-child{padding-left:0;width:43%}th:last-child,td:last-child{padding-right:0}th:not(:first-child),td:not(:first-child){text-align:right}td:last-child{font-weight:500}tbody tr:last-child td{border-bottom:0}.profile-name{display:flex;gap:9px;align-items:center}.profile-color{width:6px;height:6px;border-radius:50%;flex:none}.usage-meter{height:3px;background:#252528;border-radius:2px;max-width:210px;margin-top:10px;overflow:hidden}.usage-meter span{height:100%;display:block;border-radius:inherit;min-width:0}.zero{color:var(--faint)}footer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 24px;font-size:.75rem;color:var(--faint);padding:30px 0 0;line-height:1.5}.notice{padding:12px 16px;background:#242017;border:1px solid #49402b;color:#e5c58e;border-radius:20px;margin-bottom:22px;font-size:.875rem;line-height:1.5}
@media(min-width:1000px){.network-panel{grid-column:1}.system-panel{grid-column:2}}
@media(max-width:900px){.server-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:20px}.stat-value{font-size:1.8rem}.charts-grid{grid-template-columns:1fr}.chart,.chart svg{height:220px;min-height:220px}.network-panel,.system-panel{grid-column:auto}}
@media(max-width:600px){.topbar-inner{padding:20px}.top-meta{gap:10px}.freshness{font-size:.75rem}.admin-badge{font-size:.75rem}main{padding:24px 18px}.tabs{gap:22px;margin-bottom:28px}.tabs button{font-size:.875rem}.section-top{margin-bottom:22px;gap:12px}.section-top .segmented button{padding:7px 10px}h1{font-size:1.7rem}.eyebrow{font-size:.78rem}.stat-grid{gap:10px;margin-bottom:14px}.stat-card{border-radius:24px;padding:17px 15px}.stat-label{font-size:.8rem;margin-bottom:12px}.stat-value{font-size:1.7rem}.stat-value .value-unit{font-size:.8rem}.stat-meta{font-size:.75rem;margin-top:9px}.panel{padding:19px 16px;border-radius:24px}.charts-grid{gap:14px}.panel-top{margin-bottom:17px}h2{font-size:.875rem}.legend{gap:10px}.legend span{font-size:.72rem}.traffic-stats{grid-template-columns:1fr 1fr}.traffic-stats .stat-card:last-child{grid-column:1/-1}.traffic-stats .stat-card:last-child{display:grid;grid-template-columns:1fr auto;gap:5px 15px}.traffic-stats .stat-card:last-child .stat-label{margin:0;align-self:center}.traffic-stats .stat-card:last-child .stat-value{grid-row:1/3;grid-column:2;align-self:center}.traffic-stats .stat-card:last-child .stat-meta{margin:0}.traffic-controls .segmented{width:100%;justify-content:space-between}.traffic-controls .segmented button{padding:7px 8px;font-size:.78rem}.custom-dates{width:100%;flex-wrap:wrap;gap:10px}.custom-dates label{flex:1}.custom-dates input{width:100%;max-width:none;padding:7px;font-size:.8rem;min-width:0}.custom-dates .quiet-button{width:100%}#user-filter{font-size:.8rem;padding:8px 10px;max-width:170px}.traffic-history .panel-top{align-items:flex-start;flex-direction:column;gap:10px}th,td{padding-left:10px;padding-right:10px;font-size:.8rem}th:first-child,td:first-child{width:40%}.usage-meter{max-width:125px}.upload-col{display:none}footer{font-size:.72rem;gap:6px 16px;padding-top:24px}.details{font-size:.82rem}.details>div{gap:10px}.panel-note{font-size:.75rem}}
@media(prefers-reduced-motion:no-preference){button,.stat-value{transition:background .15s ease,color .15s ease}.meter span,.usage-meter span{transition:width .4s ease}}
@media(max-width:380px){.section-top{flex-wrap:wrap}.section-top>.segmented{margin-left:auto}.traffic-controls .segmented{flex-wrap:wrap;justify-content:flex-start}}

/* Quiet transitions: no bouncing, scaling or continuous motion. */
.tabs{position:relative}.tabs button[aria-selected=true]:after{display:none}.tab-indicator{position:absolute;left:0;bottom:-1px;height:2px;border-radius:999px;background:var(--text);pointer-events:none}
.chart svg.chart-previous{position:absolute;inset:0;pointer-events:none}
.freshness{display:inline-flex;align-items:center;gap:7px}.freshness.live:before{content:"";width:5px;height:5px;flex:none;border-radius:50%;background:#86ad98}
@media(prefers-reduced-motion:no-preference){button,select,input{transition:background-color .24s ease,color .24s ease,border-color .24s ease}.tab-indicator{transition:transform .28s cubic-bezier(.2,.65,.3,1),width .28s cubic-bezier(.2,.65,.3,1)}.meter span,.usage-meter span{transition:width .55s cubic-bezier(.2,.65,.3,1)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:600px){.top-meta{flex-wrap:wrap;justify-content:flex-end;row-gap:6px}.freshness{white-space:nowrap}}

.tabs{overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{flex:none;white-space:nowrap}.tab-indicator{bottom:0}
.primary-button{border:1px solid #e8e8eb;border-radius:999px;background:#e8e8eb;color:#111;padding:10px 17px;font-size:.85rem;font-weight:500;white-space:nowrap}.primary-button:hover{background:#fff}.primary-button:disabled,.icon-button:disabled,.quiet-button:disabled{opacity:.45;cursor:wait}.danger-button{background:#372224;border-color:#654045;color:#f0b8ba}.danger-button:hover{background:#4a2a2e}
.profiles-panel{padding:2px 24px}.profile-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}.profile-item:last-child{border:0}.profile-info{display:flex;align-items:center;gap:8px;min-width:0}.profile-title{font-size:.94rem;overflow-wrap:anywhere}.profile-admin{color:#ff453a}.admin-icon{display:inline-flex;flex:none}.admin-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.profile-actions{display:flex;gap:8px;align-items:center;flex:none}.icon-button{width:36px;height:36px;border:1px solid transparent;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:transparent;font-size:1rem}.icon-button:hover{color:var(--text);background:#252528}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
dialog{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:26px;border:1px solid #333336;border-radius:28px;background:#151516;color:var(--text);box-shadow:0 24px 100px #0008}dialog::backdrop{background:#0009;backdrop-filter:blur(7px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.dialog-heading h2{font-size:1.18rem;font-weight:550;overflow-wrap:anywhere}.dialog-note{color:var(--muted);font-size:.86rem;line-height:1.65;margin:16px 0 22px}dialog label{display:block;color:var(--muted);font-size:.8rem;margin-bottom:9px}dialog input[type=text],dialog textarea{width:100%;padding:12px 14px;background:#202022;border:1px solid #3b3b40;border-radius:16px;color:var(--text);font:inherit;font-size:1rem;min-width:0}dialog textarea{font-family:ui-monospace,monospace;font-size:.75rem;line-height:1.6;resize:vertical;word-break:break-all}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-error{font-size:.84rem;line-height:1.6;color:#e1a4a6;margin:16px 0 0}#profile-result{text-align:center}#profile-result label{text-align:left}#profile-qr{display:block;width:min(240px,100%);height:auto;margin:0 auto 24px;border-radius:18px;background:#fff}#copy-profile-link{width:100%;margin-top:14px}#copy-status{min-height:1.5em}
@media(max-width:600px){.tabs{gap:22px}.profiles-panel{padding:4px 16px}.profile-item{gap:8px;padding:9px 0}.profile-title{font-size:.84rem}.profile-actions{gap:2px}.profile-actions .quiet-button{padding:8px 10px;font-size:.75rem}.profile-actions .icon-button{width:32px;height:36px}.profile-actions .icon-button svg{width:17px;height:17px}#profiles-view .section-top{align-items:flex-start;flex-wrap:wrap;gap:16px}dialog{padding:22px;border-radius:24px}}

.tab-label-short{display:none}@media(max-width:600px){.tab-label-full{display:none}.tab-label-short{display:inline}.tabs{gap:24px}}

.section-subtitle{margin:9px 0 0;color:var(--muted);font-size:.82rem;font-variant-numeric:tabular-nums}
#profile-dialog:focus{outline:none}#profile-close{width:44px;height:44px;flex:none;border:0;border-radius:12px;color:#bebec4;background:transparent;padding:10px}#profile-close svg{width:24px;height:24px;stroke-width:1.8}#profile-close:hover{background:transparent;color:#fff}
dialog label.access-toggle{display:flex;align-items:center;gap:16px;position:relative;margin:22px 0 0;min-height:44px;color:var(--text);font-size:.86rem;cursor:pointer}.access-toggle>span:first-child{flex:1}.access-toggle input{position:absolute;right:0;width:44px;height:28px;margin:0;opacity:0;cursor:pointer}.switch-track{width:44px;height:28px;flex:none;display:block;background:#39393e;border-radius:999px;pointer-events:none}.switch-track:after{content:"";display:block;width:22px;height:22px;margin:3px;border-radius:50%;background:#f5f5f7;box-shadow:0 1px 3px #0004}.access-toggle input:checked+.switch-track{background:#ff453a}.access-toggle input:checked+.switch-track:after{transform:translateX(16px)}.access-toggle input:focus-visible+.switch-track{outline:2px solid #a5a5ad;outline-offset:4px}.access-toggle input:disabled+.switch-track{opacity:.45}
@media(prefers-reduced-motion:no-preference){.switch-track{transition:background-color .24s ease}.switch-track:after{transition:transform .24s cubic-bezier(.2,.65,.3,1)}}
@media(max-width:380px){.profile-item{flex-wrap:wrap}.profile-info{flex:1 1 100%}.profile-actions{margin-left:auto}.profile-item{row-gap:3px}}

/* Two deliberate actions per row; destructive actions live inside Edit. */
.profile-actions{gap:10px}.profile-actions .quiet-button{min-height:44px;padding:10px 14px}.profile-item{padding:8px 0}.profile-management{display:grid;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.profile-management .quiet-button{min-height:46px;text-align:left;padding:12px 16px}.dialog-actions button{min-height:44px}
footer{align-items:center}.language-picker{display:inline-flex;align-items:center}.language-picker select{font:inherit;color:var(--faint);background:transparent;border:0;border-radius:8px;padding:10px 22px 10px 8px;min-height:40px;max-width:none}.language-picker select:hover{color:var(--text)}.language-picker option{color:var(--text);background:#151516}
@media(max-width:600px){.profile-actions{gap:8px}.profile-actions .quiet-button{padding:9px 10px;font-size:.75rem;min-height:44px}.profile-item{gap:10px}footer{column-gap:16px;row-gap:0}}

.profile-actions .quiet-button{min-width:120px}@media(max-width:600px){.profile-actions .quiet-button{min-width:104px}}

/* Compact capsules retain the same text size and spacing between actions. */
.profile-actions .quiet-button{min-height:32px;padding-top:5px;padding-bottom:5px}
.profile-identity{display:inline-flex;align-items:center;gap:8px;max-width:100%;vertical-align:middle}.profile-identity>span:last-child{overflow-wrap:anywhere}.admin-badge .admin-icon svg{width:14px;height:14px}.admin-badge .profile-identity{gap:5px}.admin-badge{color:#ff453a}.profile-admin{color:#ff453a!important}
.editing-profile #profile-name-field{margin-top:20px}.editing-profile .dialog-actions{display:grid;justify-content:stretch;margin-top:24px}.editing-profile #profile-submit{width:100%;min-height:46px;padding:12px 16px;text-align:left;font-size:.85rem;line-height:normal}.editing-profile .profile-management{margin-top:12px;padding-top:0;border-top:0}
.profile-input-wrap{position:relative}.profile-input-icon{position:absolute;left:14px;top:0;bottom:0;display:flex;align-items:center;color:#ff453a;pointer-events:none}#profile-name.profile-admin{padding-left:44px}
.profile-filter{position:relative;min-width:0;max-width:220px}.profile-filter-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:9px 13px;background:#171719;color:var(--text);border:1px solid #343438;border-radius:999px;font-size:.875rem;min-height:38px}.profile-filter-toggle>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filter-chevron{width:16px;height:16px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.profile-filter-options{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:max-content;min-width:100%;max-width:calc(100vw - 40px);max-height:300px;overflow:auto;background:#1b1b1e;border:1px solid #343438;border-radius:18px;padding:6px;box-shadow:0 12px 40px #0008}.profile-filter-options button{display:block;text-align:left;min-height:38px;width:100%;border:0;background:transparent;border-radius:12px;color:var(--text);padding:9px 12px;font-size:.84rem}.profile-filter-options button:hover,.profile-filter-options button:focus,.profile-filter-options button[aria-selected=true]{background:#2c2c30}.profile-filter-options button:focus-visible{outline:1px solid #a5a5ad;outline-offset:-2px}
@media(max-width:600px){.profile-actions .quiet-button{min-height:30px;padding-top:5px;padding-bottom:5px}.profile-filter{max-width:170px}.profile-filter-toggle{font-size:.8rem;padding:8px 10px}.profile-identity{gap:6px}}

/* Share and edit use quiet icons; management stays in the edit dialog. */
.profile-actions{gap:12px}.profile-actions .profile-action-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;padding:9px;border:0;border-radius:12px;background:transparent;color:var(--muted)}.profile-actions .profile-action-icon:hover{background:transparent;color:var(--text)}.profile-action-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:380px){.profile-info{flex:1 1 auto}.profile-item{flex-wrap:nowrap}.profile-actions{margin-left:0}}

/* Profile appearance, manual groups and individual traffic histories. */
.profile-identity.profile-custom{color:var(--profile-color)!important}.identity-dot{display:inline-block;width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}.identity-icon svg{width:17px;height:17px}.profile-custom-input{color:var(--profile-color)!important;padding-left:44px!important}
.profiles-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profiles-toolbar button{min-height:38px}.profile-group+.profile-group{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}.profile-group-heading{display:flex;align-items:center;gap:9px;min-height:44px}.profile-group-heading h2{font-size:.86rem;overflow-wrap:anywhere}.profile-group-heading .icon-button{margin-left:auto;width:40px;height:40px}.group-count{font-size:.75rem;color:var(--faint);font-variant-numeric:tabular-nums}.group-empty{font-size:.8rem;color:var(--faint);margin:6px 0 18px}.profile-appearance{margin-top:22px}.profile-appearance fieldset{border:0;padding:0;margin:0 0 20px;min-width:0}.profile-appearance legend{padding:0;margin-bottom:10px;color:var(--muted);font-size:.8rem}.icon-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.appearance-icon{display:grid;place-items:center;min-height:40px;border:1px solid transparent;border-radius:13px;background:#202022;color:#a0a0a6}.appearance-icon[aria-pressed=true]{color:var(--text);border-color:#777780;background:#303034}.appearance-icon:hover{color:var(--text)}.color-options{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}.appearance-color{display:grid;place-items:center;min-width:0;height:32px;border:1px solid transparent;background:transparent;border-radius:50%;padding:4px}.appearance-color:after{content:"";width:100%;max-width:22px;aspect-ratio:1;border-radius:50%;background:var(--swatch)}.appearance-color[aria-pressed=true]{border-color:#a0a0a6}.custom-color-label{display:flex!important;align-items:center;justify-content:space-between;margin:12px 0 0!important;min-height:32px}.custom-color-label input{width:42px;height:30px;padding:2px;background:#202022;border:1px solid #3b3b40;border-radius:9px;cursor:pointer}.profile-group-label{margin-top:0!important}#profile-group{width:100%;max-width:none;border-radius:16px;min-height:44px;background:#202022}#group-name-field{margin-top:22px}.group-actions{display:grid;gap:12px;margin-top:24px}.group-actions button{min-height:46px;text-align:left;padding:12px 16px}.group-actions #group-delete{margin-top:0}#group-close{width:44px;height:44px;border:0;background:transparent}#group-close svg{width:24px;height:24px}#group-dialog:focus{outline:none}
.traffic-profile-cell{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:230px}.traffic-profile-cell .profile-name{min-width:0;white-space:normal;max-width:200px}.profile-sparkline{position:relative;flex:0 0 144px;width:144px;height:34px}.profile-sparkline svg{display:block;width:100%;height:34px}.profile-sparkline .chart-previous{position:absolute;inset:0;pointer-events:none}.sparkline-baseline{fill:none;stroke:#29292c;stroke-width:1}.users-panel th:first-child,.users-panel td:first-child{width:50%}
@media(max-width:600px){.profiles-toolbar{width:100%}.profiles-toolbar button{font-size:.8rem}.traffic-profile-cell{min-width:200px;gap:10px}.profile-sparkline{flex-basis:92px;width:92px}.traffic-profile-cell .profile-name{max-width:140px}.users-panel td{padding-top:13px;padding-bottom:13px}.profile-appearance{margin-top:20px}.color-options{gap:3px}.appearance-color{height:29px;padding:4px}.icon-options{gap:6px}}
@media(prefers-reduced-motion:no-preference){.appearance-icon,.appearance-color{transition:background-color .24s ease,border-color .24s ease,color .24s ease}}

/* Sharing keeps the code central and the connection link compact. */
#profile-dialog.sharing-profile{width:min(420px,calc(100% - 32px));padding:22px 24px 18px;border-radius:30px;background:linear-gradient(155deg,#19191b,#121213 70%);border-color:#353538}.sharing-profile .dialog-heading h2{font-size:1.05rem;font-weight:550;letter-spacing:-.025em}.sharing-profile #profile-close{margin-right:-8px}.share-profile{display:flex;justify-content:center;margin:8px 0 20px;min-width:0}.share-profile .profile-identity{max-width:100%;padding:7px 12px;background:#202022;border:1px solid #2c2c30;border-radius:999px;font-size:.88rem;line-height:1.3}.share-profile .identity-icon svg{width:16px;height:16px}.share-qr{margin:0}.share-qr-card{width:min(248px,100%);padding:6px;margin:auto;border-radius:24px;background:#fff;box-shadow:0 2px 16px #0002}.sharing-profile #profile-qr{display:block;width:100%;height:auto;margin:0;border-radius:19px;background:#fff}.share-qr figcaption{color:var(--muted);font-size:.76rem;line-height:1.4;margin:15px 0 23px}.share-link-card{padding:12px 14px;background:#1e1e21;border:1px solid #303034;border-radius:18px;text-align:left}.sharing-profile .share-link-card label{font-size:.72rem;color:var(--muted);margin:0 0 7px}.sharing-profile #profile-link{display:block;height:40px;min-height:40px;resize:none;border:0;border-radius:0;background:transparent;padding:0;color:#bdbdc4;font-size:.72rem;line-height:1.6;scrollbar-width:thin;scrollbar-color:#47474e transparent;word-break:break-all}.sharing-profile #profile-link:focus-visible{outline:1px solid #777780;outline-offset:4px;border-radius:3px}.share-actions{display:grid;gap:8px;margin-top:16px}.share-actions button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;font-size:.83rem;line-height:1.3}.sharing-profile #copy-profile-link{margin-top:0;background:#ececef;border-color:#ececef;color:#171719}.sharing-profile #copy-profile-link:hover{background:#fff}.share-actions svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.copied-symbol{display:none}#copy-profile-link[data-copied=true] .copy-symbol{display:none}#copy-profile-link[data-copied=true] .copied-symbol{display:block}.sharing-profile #save-profile-qr{background:transparent;border-color:transparent;color:#b3b3ba;min-height:38px}.sharing-profile #save-profile-qr:hover{color:var(--text);background:#202023}.sharing-profile #copy-status{font-size:.72rem;line-height:1.45;color:var(--muted);min-height:1.45em;margin:8px 0 0;text-align:center}.sharing-profile #profile-error{font-size:.8rem}
@media(max-width:360px){#profile-dialog.sharing-profile{padding:18px 20px 14px;border-radius:26px}.share-qr-card{width:220px;max-width:100%}.share-profile{margin-bottom:16px}.share-qr figcaption{margin:12px 0 18px}.share-link-card{padding:11px 12px}}
@media(prefers-reduced-motion:no-preference){.share-profile .profile-identity{transition:color .24s ease}.share-actions button{transition:background-color .24s ease,color .24s ease}}

/* Fit the complete traffic table in a phone viewport. */
.config-downloads{margin-top:18px}.config-download-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.config-download-actions a{display:inline-flex;align-items:center;justify-content:center}
.users-panel th:first-child,.users-panel td:first-child{padding-right:6px}
.users-panel th:nth-child(2),.users-panel td:nth-child(2){padding-left:6px;text-align:left}
@media(max-width:600px){
 .users-panel table{width:100%;table-layout:auto}
 .users-panel th,.users-panel td{padding-left:3px;padding-right:3px}
 .users-panel th{font-size:.75rem}
 .users-panel th:first-child,.users-panel td:first-child{width:auto;padding-left:0}
 .users-panel th:not(:first-child),.users-panel td:not(:first-child){width:1%}
 .users-panel th:last-child,.users-panel td:last-child{padding-right:0}
 .users-panel td:not(:first-child){white-space:normal}
 .traffic-profile-cell{min-width:0;gap:6px}
 .traffic-profile-cell .profile-name{flex:1;min-width:0;max-width:none}
 .traffic-profile-cell .profile-identity{min-width:0}
 .traffic-profile-cell .profile-identity>span:last-child{min-width:0;overflow-wrap:anywhere}
 .profile-sparkline{flex-basis:92px;width:92px}
}
@media(max-width:360px){
 .traffic-profile-cell{flex-wrap:wrap}
 .traffic-profile-cell .profile-name{flex-basis:100%}
}

/* Lifetime controls stay quiet and compact alongside appearance settings. */
.profile-info{flex-direction:column;align-items:flex-start;gap:3px}.profile-expiry{font-size:.7rem;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}.profile-duration{margin-top:20px}.profile-duration .access-toggle{margin:0}.duration-inputs{display:grid;grid-template-columns:minmax(72px,1fr) minmax(0,2fr);gap:10px;margin-top:12px}.duration-inputs input,.duration-inputs select{width:100%;min-width:0;max-width:none;min-height:44px;padding:10px 14px;border:1px solid #3b3b40;border-radius:16px;background:#202022;color:var(--text);font:inherit;font-size:.9rem}.expiry-preview,.expiry-note{font-size:.73rem;line-height:1.5;color:var(--muted);margin:9px 0 0}.expiry-note{color:var(--faint);margin-top:3px}

/* Traffic breakdown is expanded only when requested. */
.users-summary{cursor:pointer;list-style:none;border-radius:6px}
.users-summary::-webkit-details-marker{display:none}
.users-summary::marker{content:""}
.users-summary:focus-visible{outline:2px solid #a5a5ad;outline-offset:6px}
.users-panel:not([open]){padding-bottom:22px}
.users-panel:not([open])>.users-summary{margin-bottom:0}
.users-summary-meta{display:flex;align-items:center;gap:12px}
.users-chevron{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.users-panel[open] .users-chevron{transform:rotate(180deg)}
@media(max-width:600px){.users-panel:not([open]){padding-bottom:19px}}
@media(prefers-reduced-motion:reduce){.users-chevron{transition:none}}

.config-download-actions a[href="/downloads/shadowrocket-ru-direct-monitor.conf"]{background:#c9362d;border-color:#c9362d;color:#fff}
.config-download-actions a[href="/downloads/shadowrocket-ru-direct-monitor.conf"]:hover{background:#dd3d33;border-color:#dd3d33}

/* Keep saving primary; secondary profile actions use compact text buttons. */
.editing-profile .profile-management {
  justify-items: start;
  gap: 0;
  margin-top: 12px;
}
.editing-profile .profile-management .quiet-button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  white-space: normal;
  transition: color .15s ease;
}
.editing-profile .profile-management .quiet-button:hover {
  background: transparent;
  color: var(--text);
}
.editing-profile .profile-management #profile-delete {
  margin-top: 8px;
  color: #ff6961;
}
.editing-profile .profile-management #profile-delete:hover {
  color: #ff938d;
}
@media (prefers-reduced-motion: reduce) {
  .editing-profile .profile-management .quiet-button { transition: none; }
}

/* Each profile group is a separate card. */
.profiles-panel {
  padding: 0;
  min-width: 0;
}
.profiles-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.profile-group {
  min-width: 0;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}
.profile-group + .profile-group {
  margin-top: 0;
  padding-top: 12px;
}
@media (max-width: 600px) {
  .profiles-list { gap: 14px; }
  .profile-group,
  .profile-group + .profile-group {
    padding: 8px 16px;
    border-radius: 24px;
  }
}

.webproxy-services { display: grid; gap: 18px; }
.webproxy-services > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#webproxy-view > .panel-note { margin-top: 20px; }
@media (max-width: 600px) {
  .webproxy-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { gap: 18px; }
  .tabs button { font-size: .8rem; }
}

.history-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.history-modes button { padding: 6px 12px; font-size: .8rem; }
.history-total { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.dot.total { background: #bdbdc5; }
@media (max-width: 600px) {
  .history-controls { align-items: flex-start; gap: 10px; }
  .history-modes { width: 100%; justify-content: space-between; }
  .history-modes button { padding: 6px 9px; font-size: .76rem; }
  .history-total { font-size: .76rem; }
}

/* Rolling digits preserve the actual text value and reserve stable digit widths. */
.value-digit {
 display: inline-block;
 position: relative;
 vertical-align: bottom;
 width: .62em;
 line-height: inherit;
 overflow: hidden;
 font-variant-numeric: tabular-nums;
}
.digit-current { display: inline-block; }
.digit-outgoing { position: absolute; inset: 0; pointer-events: none; }
.digit-outgoing::before { content: attr(data-glyph); }
.history-total, .stat-value, .stat-meta { font-variant-numeric: tabular-nums; }

/* A quiet, progressively revealed sign-in form. */
.login-main {
 min-height:100svh; max-width:none; display:flex; align-items:center;
 justify-content:center; padding:32px 20px;
}
.login-panel {
 width:min(100%,384px); padding:32px; border-radius:28px;
 background:linear-gradient(150deg,#171719,#111112 75%);
 border-color:#2b2b2e; box-shadow:0 24px 80px #0004;
}
.login-brand {font-size:13px;line-height:20px;font-weight:500;letter-spacing:.02em;color:var(--muted);margin-bottom:12px}
.login-panel h1 {font-size:26px;line-height:32px;letter-spacing:-.04em;margin:0 0 28px}
.login-panel form {display:block}
.login-field {display:grid;gap:9px;min-width:0}
.login-panel label {font-size:13px;line-height:18px;color:#bdbdc4;margin:0}
.login-panel input,.account-form input:not([type=checkbox]) {
 width:100%;min-width:0;border:1px solid #303034;background:#1c1c1e;
 color:inherit;border-radius:12px;padding:12px 14px;font:inherit;
}
.login-panel input {height:52px;border-radius:14px;line-height:24px;caret-color:#ededed}
.login-panel input:hover {border-color:#44444a}
.login-panel input:focus-visible {outline:2px solid #9999a3;outline-offset:3px;border-color:#6c6c76;background:#202023}
.login-panel input[aria-invalid=true] {border-color:#d7847e}
.login-reveal {display:grid;grid-template-rows:1fr;opacity:1;visibility:visible}
.login-reveal-inner {min-height:0;padding:20px 0 0}
.login-panel.is-staged:not(.is-expanded) .login-reveal {grid-template-rows:0fr;opacity:0;visibility:hidden}
.login-panel.is-staged:not(.is-expanded) .login-reveal-inner {padding-top:0;overflow:hidden}
.login-panel #login-submit {
 display:block;width:100%;height:50px;margin:24px 0 0;padding:12px 16px;
 border:1px solid #ededf0;border-radius:14px;background:#ededf0;color:#161618;
 font-size:15px;font-weight:600;line-height:24px;box-shadow:0 2px 8px #0002;
}
.login-panel #login-submit:hover {background:#fff;border-color:#fff}
.login-panel #login-submit:active {transform:translateY(1px)}
.login-panel #login-submit:disabled {cursor:wait;opacity:.65;transform:none}
.login-panel #login-error {margin:14px 0 -8px;font-size:13px;line-height:20px;color:#f1a09a;overflow-wrap:anywhere}
@keyframes login-autofill {from{opacity:1}to{opacity:1}}
.login-panel input:-webkit-autofill {animation-name:login-autofill;animation-duration:1ms;-webkit-text-fill-color:#ededed;box-shadow:0 0 0 100px #1c1c1e inset}
@media (max-width:380px) {.login-main{padding:24px 16px}.login-panel{padding:28px 24px;border-radius:24px}}
@media (prefers-reduced-motion:no-preference) {
 .login-panel{animation:login-enter .45s cubic-bezier(.2,.7,.3,1) both}
 .login-reveal{transition:grid-template-rows .36s cubic-bezier(.2,.7,.3,1),opacity .28s ease,visibility .36s}
 .login-reveal-inner{transition:padding-top .36s cubic-bezier(.2,.7,.3,1)}
 .login-panel input{transition:border-color .18s ease,background-color .18s ease}
 .login-panel #login-submit{transition:background-color .18s ease,opacity .18s ease,transform .18s ease}
 @keyframes login-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
}
.panel-account-tools{display:flex;align-items:center;gap:8px}
.panel-account-tools .quiet-button{padding:7px 12px;font-size:12px}
.account-form{display:grid;gap:12px}
.account-form .dialog-heading{margin-bottom:8px}
.account-form label:not(.access-toggle){font-size:13px}
#account-current-field{display:grid;gap:12px}
.account-form .access-toggle{margin:8px 0}
@media(max-width:480px){.top-meta{gap:8px}.panel-account-tools .quiet-button{padding:7px 9px}.top-meta .admin-badge{display:none}}

/* Compact panel foundations aligned with the shadcn controls. */
:root {
 font-size:14px;
 --surface:#141416;--surface-hover:#1c1c1f;--line:#2a2a2e;
 --panel-radius:14px;--control-radius:8px;
}
.topbar-inner {padding:18px 28px}
main {padding:24px 28px 20px}
.brand {font-size:1.1rem;gap:9px}
.brand svg {width:23px;height:23px}
.tabs {gap:24px;margin-bottom:26px}
.tabs button {font-size:.94rem;padding-bottom:14px}
.section-top {gap:16px;margin-bottom:20px}
h1 {font-size:1.85rem;letter-spacing:-.035em}
h2 {font-size:1rem}
.stat-grid {gap:12px;margin-bottom:16px}
.stat-card {border-radius:var(--panel-radius);padding:18px}
.stat-label {margin-bottom:12px;font-size:.9rem}
.stat-value {font-size:1.9rem}
.stat-meta {font-size:.85rem;margin-top:8px}
.meter {margin-top:11px}
.charts-grid {gap:14px}
.panel {border-radius:var(--panel-radius);padding:18px}
.panel-top {margin-bottom:16px}
.chart,.chart-empty {min-height:200px}
.chart svg,.chart-empty {height:200px}
.traffic-history .chart,.traffic-history .chart svg {height:210px;min-height:210px}
.chart-tip {border-radius:8px;padding:8px 10px}
.segmented {border-radius:10px;padding:3px;gap:3px}
.segmented button {border-radius:7px;padding:6px 11px;font-size:.87rem}
.history-modes button {padding:6px 10px;font-size:.82rem}
.traffic-controls {gap:12px;margin-bottom:18px}
.traffic-history {margin-bottom:14px}
.details>div {padding:10px 0}
.services {gap:12px 18px;margin-top:18px}
button.primary-button,button.quiet-button,a.primary-button,a.quiet-button {
 border-radius:var(--control-radius);font-size:.9rem;min-height:36px;padding:8px 12px;
}
.icon-button {border-radius:var(--control-radius)}
.profiles-panel {padding:0}
.profiles-list {gap:12px}
.profile-group,.profile-group+.profile-group {border-radius:var(--panel-radius);padding:8px 18px}
.profile-group-heading {min-height:40px}
.profile-item {padding:7px 0;gap:12px}
.profile-actions {gap:7px}
.profile-actions .quiet-button {min-height:34px;min-width:100px;padding:6px 10px;font-size:.82rem}
.profile-actions .icon-button {width:34px;height:34px}
.profile-identity {gap:7px}
.users-panel:not([open]) {padding-bottom:18px}
.users-summary-meta {gap:10px}
.config-downloads {margin-top:14px}
.config-download-actions {gap:8px;margin-top:12px}
input[type=date],select {border-radius:var(--control-radius)}
#profile-name,.account-form input:not([type=checkbox]),#group-name,.duration-inputs input {
 border-radius:var(--control-radius);padding:10px 12px;min-height:40px;
}
#profile-close,#group-close {border-radius:8px;width:36px;height:36px;padding:7px}
.appearance-icon {border-radius:8px;min-height:36px}
.profile-input-icon {left:12px}
#profile-name.profile-admin {padding-left:40px}
.duration-inputs {gap:8px;margin-top:10px}
.editing-profile #profile-submit {border-radius:8px;min-height:40px;padding:10px 12px}
.share-link-card {border-radius:10px;padding:10px 12px}
.share-qr-card {border-radius:14px}
.sharing-profile #profile-qr {border-radius:10px}
.share-actions {gap:6px;margin-top:14px}
.share-actions button {border-radius:8px;min-height:40px;font-size:.9rem}
.share-profile .profile-identity {border-radius:8px;padding:6px 10px}
.share-qr figcaption {margin:12px 0 18px}
.login-panel {width:min(100%,360px);padding:28px;border-radius:14px}
.login-brand {margin-bottom:10px;font-size:12px}
.login-panel h1 {font-size:24px;line-height:30px;margin-bottom:24px}
.login-panel input {height:46px;border-radius:8px;font-size:16px}
.login-panel #login-submit {height:44px;border-radius:8px;font-size:14px;margin-top:20px}
.login-reveal-inner {padding-top:18px}
.login-main {padding:28px 20px}
footer {gap:12px;padding-top:20px}
@media(max-width:600px) {
 .topbar-inner {padding:16px 18px}
 main {padding:22px 18px 18px}
 .tabs {gap:18px;margin-bottom:24px}
 .tabs button {font-size:.9rem}
 .stat-card {padding:16px;border-radius:12px}
 .panel {padding:16px;border-radius:12px}
 .profiles-panel {padding:0}
 .profile-group,.profile-group+.profile-group {padding:7px 14px;border-radius:12px}
 .profiles-list {gap:10px}
 .section-top {margin-bottom:18px}
 .charts-grid {gap:12px}
 .users-panel:not([open]) {padding-bottom:16px}
 .profile-actions .quiet-button {min-height:40px;min-width:96px}
 .profile-actions .icon-button {width:40px;height:40px}
 .segmented button {min-height:34px;padding:6px 9px}
 .history-modes button {font-size:.84rem}
 .login-panel {padding:26px 24px}
}
@media(max-width:360px) {
 .topbar-inner {padding:14px 16px}
 main {padding:20px 16px 16px}
 .tabs {gap:14px}
 .tabs button {font-size:.86rem}
 .stat-card,.panel {padding:14px}
 .profiles-panel {padding:0}
 .login-main {padding:24px 16px}
 .login-panel {padding:24px 22px}
}

/* Current profile owns the account actions. */
.account-menu {position:relative;min-width:0}
.top-meta .account-menu .admin-badge {
 display:inline-flex;align-items:center;max-width:180px;min-height:36px;padding:7px 10px;
 border:1px solid #343438;border-radius:8px;background:#171719;color:var(--text);font:inherit;font-size:13px;cursor:pointer;
}
.account-menu .admin-badge .profile-identity {min-width:0}
.account-menu .admin-badge .profile-identity>span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.account-menu .admin-badge:hover {background:#242427}
.account-menu .admin-badge:disabled {opacity:.5;cursor:default}
.account-menu-popup {
 position:absolute;top:calc(100% + 7px);right:0;z-index:70;min-width:168px;padding:5px;
 border:1px solid #343438;border-radius:10px;background:#1b1b1e;box-shadow:0 10px 30px #0005;
}
.account-menu-popup button {
 display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:8px 10px;
 border:0;border-radius:6px;background:transparent;color:var(--text);font-size:14px;text-align:left;
}
.account-menu-popup button:hover,.account-menu-popup button:focus-visible {background:#303034;outline:none}
.account-menu-popup svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;color:#a0a0a6}
.monitor-dialog-content:has(#account-dialog) {max-width:380px;padding:22px}
#account-form {display:grid;gap:18px}
#account-form .dialog-heading {margin:0 0 2px;min-height:28px;gap:16px}
#account-close {width:28px;height:28px;padding:5px;border:0;border-radius:6px;background:transparent;color:#a0a0a6}
#account-close:hover {background:#303034;color:var(--text)}
#account-close svg {width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
#account-form .account-field,#account-current-field {display:grid;gap:7px}
#account-form .account-field label {margin:0;font-size:13px;line-height:18px}
#account-form .account-field input {height:42px;min-height:42px;padding:10px 12px;border:1px solid #343438;border-radius:8px;background:#222225;color:var(--text);font-size:14px;line-height:20px}
#account-form .account-context {margin:0;padding:8px 10px;border:1px solid #303034;border-radius:8px;color:var(--muted);font-size:13px;line-height:20px}
#account-form .account-access {margin:0;padding-top:2px;min-height:34px;font-size:13px}
#account-form .dialog-actions {gap:8px;margin:0;padding-top:16px;border-top:1px solid #303034}
#account-form .dialog-actions button {min-height:36px;padding:8px 14px;font-size:13px}
#account-form .form-error {margin:0;font-size:13px;line-height:20px}
@media(max-width:600px) {
 .top-meta .account-menu .admin-badge {min-height:40px;max-width:150px}
 .account-menu-popup button {min-height:44px}
 .monitor-dialog-content:has(#account-dialog) {padding:20px}
 #account-form .account-field input {font-size:16px;height:44px}
 #account-form .dialog-actions button {min-height:40px}
}
#account-dialog:focus {outline:none}

/* Fields use a quiet border change instead of an outer focus frame. */
input:focus,input:focus-visible,textarea:focus,textarea:focus-visible,select:focus,select:focus-visible {
 outline:none!important;outline-offset:0!important;box-shadow:none!important;
 border-color:#62626b;
}
.monitor-control [data-slot=input-group]:focus-within,
.monitor-control [data-slot=input-group]:has([data-slot=input-group-control]:focus-visible),
.monitor-control [data-slot=input-group-control]:focus,
.monitor-control [data-slot=input-group-control]:focus-visible {
 outline:none!important;box-shadow:none!important;border-color:#62626b;
}

/* One type scale for the panel, independent of legacy rem sizing. */
:root {--type-body:14px;--type-caption:12px;--type-heading:24px;--type-value:28px}
body {font-size:var(--type-body);line-height:1.45}
h1,.login-panel h1 {font-size:var(--type-heading);line-height:1.25}
h2,.panel-top h2,.profile-group-heading h2 {font-size:14px;line-height:20px}
.brand {font-size:16px}
.tabs button,.tabs .tab-label-full,.tabs .tab-label-short {font-size:14px;line-height:20px}
.stat-value {font-size:var(--type-value);line-height:1.15}
.stat-value .value-unit {font-size:13px}
.stat-label,.stat-meta,.eyebrow,.section-subtitle,.freshness,.unit,.panel-note,
.legend span,.service,.history-total,.profile-expiry,.expiry-preview,.expiry-note,
.duration-inputs+.panel-note,.share-qr figcaption,.sharing-profile #copy-status,
footer,.users-panel th {font-size:var(--type-caption);line-height:18px}
.details,.profile-title,.profile-actions .quiet-button,.traffic-profile-cell,
.users-panel td,.segmented button,.history-modes button,.config-download-actions a {font-size:var(--type-body);line-height:20px}
button.primary-button,button.quiet-button,a.primary-button,a.quiet-button {font-size:14px;line-height:20px}
.profile-duration label,.profile-appearance legend,dialog label,.login-panel label,
.account-form label:not(.access-toggle),#account-form .account-field label {font-size:12px;line-height:18px}
.dialog-heading h2,.monitor-dialog-content [data-monitor-dialog] .dialog-heading h2 {font-size:18px;line-height:24px}
.dialog-note,.form-error,#account-form .form-error {font-size:13px;line-height:20px}
.profile-item .profile-identity,.share-profile .profile-identity {font-size:14px;line-height:20px}
.profile-input-wrap input,.account-form input:not([type=checkbox]),.duration-inputs input,
#group-name,.login-panel input {font-size:14px;line-height:20px}
#account-form .account-access,#account-form .dialog-actions button {font-size:14px;line-height:20px}
.language-picker select {font-size:12px;line-height:18px}
.top-meta .account-menu .admin-badge {font-size:14px;line-height:20px}
.admin-badge .profile-identity {font-size:13px;line-height:18px}
.chart svg text,.chart-tip {font-size:12px}
@media(max-width:600px) {
 .tabs button,.tabs .tab-label-full,.tabs .tab-label-short {font-size:13px}
 .profile-input-wrap input,.account-form input:not([type=checkbox]),.duration-inputs input,
 #group-name,.login-panel input {font-size:16px}
}
@media(max-width:380px) {
 .tabs {gap:8px}
 .tabs button,.tabs .tab-label-full,.tabs .tab-label-short {font-size:12px}
 .history-modes {flex-wrap:wrap}
 .history-modes button {font-size:12px;padding:6px 8px}
}
/* Align the profile filter with the period selector. */
#traffic-view .traffic-controls>.profile-filter {margin-left:auto;flex-shrink:0}
@media(max-width:600px) {
 #traffic-view .traffic-controls>.profile-filter {margin-left:0;flex:1 1 100%;max-width:none}
 #traffic-view .traffic-controls>.profile-filter .monitor-control {width:100%}
}

/* Dense, readable chart axes without SVG letterboxing. */
.traffic-history .chart,.traffic-history .chart svg {height:180px;min-height:180px}
.traffic-history .panel-top {margin-bottom:12px}
.traffic-history .history-controls {margin-bottom:12px}
.chart-axis-tick {stroke:#45454d;stroke-width:1}
.chart-grid-vertical {opacity:.45}
.chart svg .chart-x-label,.chart svg .chart-y-label {fill:#92929c;font-size:11px}

/* Unified compact profile directory. */
#profiles-view .profiles-toolbar button{min-height:32px;padding:6px 10px;font-size:14px;border-radius:6px}
.directory-tools{display:flex;align-items:center;gap:16px;margin:0 0 14px;min-width:0}
.profile-group-filters{display:flex;gap:6px;overflow-x:auto;min-width:0;padding:2px 0;scrollbar-width:thin}
.directory-filter{display:flex;align-items:center;flex:none;border-radius:6px;background:transparent}
.directory-filter:has([aria-pressed=true]){background:#242427}
.directory-filter-button{display:flex;align-items:center;gap:8px;min-height:30px;padding:5px 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:14px;white-space:nowrap}
.directory-filter-button[aria-pressed=true]{color:var(--text)}
.directory-group-edit{width:24px;height:28px;padding:0;border:0;background:transparent;color:var(--muted);font-size:18px;border-radius:4px;margin-right:3px}
.directory-group-edit:hover,.directory-filter-button:hover{color:var(--text);background:#242427}
#profile-search{margin-left:auto;width:190px;flex:none;min-height:32px;height:32px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:#141416;color:var(--text);font:inherit;font-size:14px}
#profiles-view .profiles-panel{padding:0;background:transparent;border:0;border-radius:0}
.directory-heading,#profiles-list .profile-item{display:grid;grid-template-columns:minmax(120px,1.7fr) minmax(90px,1fr) minmax(100px,1fr) 92px;align-items:center;gap:16px}
.directory-heading{height:32px;padding:0 10px;border-bottom:1px solid var(--line);color:var(--faint);font-size:12px}
#profiles-list{display:block}
#profiles-list .profile-item{min-height:40px;margin:0;padding:0 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
#profiles-list .profile-info{min-width:0;gap:0;font-size:14px;line-height:20px}
#profiles-list .profile-identity{min-width:0;max-width:100%}
#profiles-list .profile-identity>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.directory-group,.directory-lifetime{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--muted)}
#profiles-list .profile-actions{gap:4px;margin:0;justify-content:flex-end}
#profiles-list .profile-action-icon{width:28px;height:28px;padding:6px;border-radius:5px}
#profiles-list .profile-action-icon:hover{background:#242427}
#profiles-list .profile-action-icon svg{width:16px;height:16px}
.directory-empty{padding:22px 10px;color:var(--muted);font-size:14px}
#profiles-view .config-downloads{display:flex;align-items:center;gap:16px;padding:14px 16px;border-radius:8px}
#profiles-view .config-downloads .panel-note{margin:0;flex:1}
#profiles-view .config-download-actions{margin:0;gap:6px}
#profiles-view .config-download-actions a{min-height:32px;padding:6px 10px;font-size:14px;border-radius:6px}
@media(max-width:700px){.directory-tools{flex-wrap:wrap;gap:8px}.profile-group-filters{width:100%}#profile-search{margin:0;width:100%}.directory-heading{display:none}#profiles-list .profile-item{grid-template-columns:minmax(0,1fr) auto;gap:0 10px;min-height:58px;padding:6px 4px}.directory-group,.directory-lifetime{font-size:12px;grid-row:2}.directory-lifetime{grid-column:1;margin-left:0;justify-self:end;max-width:50%}.directory-group{max-width:48%;grid-column:1}#profiles-list .profile-actions{grid-row:1 / 3;grid-column:2}#profiles-list .profile-action-icon{width:32px;height:36px}#profiles-view .config-downloads{flex-wrap:wrap;gap:8px}#profiles-view .config-downloads .panel-note{flex-basis:70%}#profiles-view .config-download-actions{width:100%}}

/* Dragged items leave an animated slot in the directory. */
#profiles-list .profile-info{display:flex;flex-direction:row;align-items:center;gap:7px}
.directory-drag-handle{flex:none;display:grid;place-items:center;width:18px;height:28px;padding:0;border:0;background:transparent;color:var(--faint);font-size:18px;line-height:1;cursor:grab;touch-action:none;border-radius:3px}
.directory-drag-handle:hover{color:var(--text)}
[data-reorder-group] .directory-filter-button{cursor:grab;touch-action:none}
.directory-dragging{user-select:none;cursor:grabbing}
.directory-drag-placeholder{opacity:.22;background:#222226!important;border-radius:5px!important}
.directory-drag-ghost{position:fixed!important;z-index:1000;pointer-events:none!important;box-sizing:border-box;background:#202023!important;box-shadow:0 8px 24px #0006;border:1px solid #44444a!important;border-radius:6px!important;opacity:.96;display:flex;align-items:center;gap:8px;padding:0 10px}
.directory-drag-ghost.profile-item{display:grid;grid-template-columns:minmax(120px,1.7fr) minmax(90px,1fr) minmax(100px,1fr) 92px;gap:16px}
.directory-drag-ghost .profile-info{display:flex;flex-direction:row;align-items:center;gap:7px;min-width:0}
.directory-drag-ghost .profile-actions{display:flex;gap:4px}
.directory-drag-ghost .profile-action-icon{width:28px;height:28px;padding:6px}
#profiles-view .config-downloads{margin:0 0 14px;padding:8px 10px;gap:12px;background:transparent;border-radius:6px}
#profiles-view .config-downloads h2{font-size:14px;line-height:20px;flex:none}
#profiles-view .config-downloads .panel-note{font-size:12px}
#profiles-view .config-download-actions a{min-height:28px;padding:4px 8px;border-radius:5px}
.config-download-actions [aria-busy=true]{opacity:.55;cursor:wait}
@media(max-width:700px){.directory-drag-ghost.profile-item{grid-template-columns:minmax(0,1fr) auto;gap:0 10px;padding:6px 4px}.directory-drag-ghost .profile-actions{grid-row:1 / 3;grid-column:2}#profiles-view .config-downloads{gap:6px 10px}#profiles-view .config-downloads .panel-note{display:none}#profiles-view .config-download-actions{width:auto;margin-left:auto}#profiles-view .config-download-actions a{font-size:12px}}

/* Phone traffic tables reserve space for complete numbers and their units. */
@media(max-width:600px){
 .users-panel table{table-layout:fixed;width:100%}
 .users-panel th:first-child,.users-panel td:first-child{width:40%;padding-right:8px}
 .users-panel th:nth-child(2),.users-panel td:nth-child(2),.users-panel th:last-child,.users-panel td:last-child{width:30%;padding-left:4px;padding-right:4px;text-align:right;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .users-panel th:last-child,.users-panel td:last-child{padding-right:0}
 .users-panel th{font-size:12px;line-height:18px}
 .users-panel td{vertical-align:middle;padding-top:10px;padding-bottom:10px;font-size:14px;line-height:20px}
 .traffic-profile-cell{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;width:100%;gap:3px}
 .traffic-profile-cell .profile-name{flex:none;flex-basis:auto;min-width:0;max-width:100%;width:100%}
 .traffic-profile-cell .profile-identity{width:100%;min-width:0}
 .traffic-profile-cell .profile-identity>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
 .traffic-profile-cell .profile-sparkline{flex:none;width:100%;max-width:112px;height:22px}
 .traffic-profile-cell .profile-sparkline svg{height:22px}
}

/* Compact connection sharing panel, with QR and instructions side by side. */
#profile-dialog.sharing-profile{width:min(440px,calc(100% - 32px));padding:16px 18px 12px;border-radius:14px;background:#101011;border:1px solid #303034;box-shadow:0 24px 80px #0008}
.sharing-profile .dialog-heading{padding-bottom:10px;margin-bottom:0;border-bottom:1px solid #29292c;gap:10px}
.sharing-profile .dialog-heading h2{font-size:14px;line-height:20px;font-weight:550;letter-spacing:0}
.sharing-profile #profile-close{width:28px;height:28px;min-height:28px;padding:5px;margin:0;border-radius:5px}
.sharing-profile #profile-close svg{width:16px;height:16px}
.sharing-profile .share-profile{justify-content:flex-start;margin:12px 0}
.sharing-profile .share-profile .profile-identity{padding:0;background:transparent;border:0;border-radius:0;font-size:14px;line-height:20px}
.share-connect{display:grid;grid-template-columns:152px minmax(0,1fr);gap:18px;align-items:center;margin-bottom:14px}
.sharing-profile .share-qr{margin:0}
.sharing-profile .share-qr-card{display:block;width:152px;max-width:100%;padding:6px;margin:0;border:1px solid #4b4b50;border-radius:6px;background:#fff;box-shadow:none;cursor:pointer}
.sharing-profile #profile-qr{width:100%;height:auto;display:block;border-radius:0;margin:0}
.share-instructions{min-width:0;color:var(--muted);font-size:12px;line-height:1.6}
.share-instructions p{position:relative;margin:0;padding-left:12px}
.share-instructions p+p{margin-top:16px}
.share-instructions p:before{content:'·';position:absolute;left:0;color:#ddd;font-size:18px}
.sharing-profile .share-link-card{padding:0;background:transparent;border:0;border-radius:0}
.sharing-profile .share-link-card label{display:flex;align-items:center;gap:8px;text-align:center;justify-content:center;margin:0 0 8px;font-size:11px;line-height:16px;color:var(--faint)}
.sharing-profile .share-link-card label:before,.sharing-profile .share-link-card label:after{content:'';height:1px;background:#29292c;flex:1}
.sharing-profile #profile-link{height:42px;min-height:42px;padding:5px 10px;border:1px solid #39393e;border-radius:6px;background:#090909;color:#c7c7ce;font-size:11px;line-height:16px;word-break:break-all;overflow-wrap:anywhere;resize:none}
.sharing-profile #profile-link:focus-visible{outline:0;border-color:#73737a}
.sharing-profile .share-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.sharing-profile .share-actions button,.sharing-profile #copy-profile-link,.sharing-profile #save-profile-qr{width:100%;min-height:32px;padding:6px 8px;border:1px solid #39393e;border-radius:999px;background:transparent;color:#ddd;font-size:12px;line-height:18px;gap:6px}
.sharing-profile .share-actions button:hover,.sharing-profile #copy-profile-link:hover,.sharing-profile #save-profile-qr:hover{background:#222225;border-color:#66666c}
.sharing-profile .share-actions svg{width:15px;height:15px}
.sharing-profile #copy-status{min-height:16px;margin:8px 0 0;font-size:11px;line-height:16px}
@media(max-width:400px){#profile-dialog.sharing-profile{padding:14px 14px 10px}.share-connect{grid-template-columns:140px minmax(0,1fr);gap:12px}.sharing-profile .share-qr-card{width:140px}.share-instructions{font-size:11px;line-height:1.5}.share-instructions p+p{margin-top:12px}.sharing-profile .share-actions{gap:8px}.sharing-profile .share-actions button,.sharing-profile #copy-profile-link,.sharing-profile #save-profile-qr{font-size:11px;padding:6px}}
@media(max-width:340px){.share-connect{grid-template-columns:132px minmax(0,1fr);gap:10px}.sharing-profile .share-qr-card{width:132px}}
/* Apply the same frame to the shadcn dialog portal. */
.monitor-dialog-content:has(.sharing-profile){max-width:440px;padding:16px 18px 12px;border:1px solid #303034;border-radius:14px;background:#101011;box-shadow:0 24px 80px #0008}
.monitor-dialog-content [data-monitor-dialog].sharing-profile .dialog-heading h2{font-size:14px;line-height:20px;font-weight:550}
.monitor-dialog-content .sharing-profile .share-profile{margin:10px 0}
@media(max-width:400px){.monitor-dialog-content:has(.sharing-profile){padding:14px 14px 10px}}
/* Sharing hints align with their markers, independent of inherited dialog alignment. */
.sharing-profile .share-instructions{text-align:left}
.sharing-profile .share-instructions p{display:grid;grid-template-columns:4px minmax(0,1fr);column-gap:9px;align-items:start;padding-left:0;text-align:left}
.sharing-profile .share-instructions p:before{position:static;font-size:12px;line-height:inherit;text-align:left}

/* Veyl wordmark: compact, monochrome, with tightly drawn typography. */
.brand{flex:none;line-height:1}
.brand .brand-wordmark{display:inline-block;font-size:26px;font-weight:750;letter-spacing:-.065em;line-height:1.15;background:linear-gradient(165deg,#fff 15%,#dedee3 58%,#93939d 100%);background-clip:text;-webkit-background-clip:text;color:transparent;padding-right:2px}
.brand:hover .brand-wordmark{background-image:linear-gradient(165deg,#fff 30%,#e7e7eb 75%,#b0b0ba)}
@media(max-width:600px){.brand .brand-wordmark{font-size:25px}}
@media(forced-colors:active){.brand .brand-wordmark{background:none;color:LinkText}}

/* Veyl mark shares the wordmark's white and silver tones. */
.brand{gap:9px}
.brand svg.brand-mark{display:block;flex:none;width:23px;height:23px;fill:none;stroke-width:2.8;stroke-linecap:square;stroke-linejoin:miter}
.brand-mark-left{stroke:#ededf0}
.brand-mark-right{stroke:#a8a8b2}
@media(forced-colors:active){.brand-mark-left,.brand-mark-right{stroke:LinkText}}

/* Interlaced angular ribbons form the Veyl emblem. */
.brand svg.brand-mark-woven{width:28px;height:28px;stroke:none;overflow:visible}
.brand-ribbon-back{fill:#777782}
.brand-ribbon-front{fill:#e8e8ed}
.brand-ribbon-cut{fill:none;stroke:var(--bg);stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter}
@media(forced-colors:active){.brand-ribbon-back,.brand-ribbon-front{fill:LinkText}.brand-ribbon-cut{stroke:Canvas}}
