:root{--navy:#122a44;--ink:#172f49;--muted:#63758a;--canvas:#f3f6fa;--line:#e2e9f0;--teal:#167f76;--danger:#b43e42;--amber:#9a581f;--white:#fff;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.56}input,select,textarea{min-width:0;border:1px solid #cbd7e2;border-radius:6px;background:white;color:var(--ink);padding:10px 12px}input:focus,select:focus,textarea:focus{outline:2px solid #2c9b9180;outline-offset:1px}button:focus-visible,a:focus-visible{outline:3px solid #5bb8b0;outline-offset:3px}input[type=checkbox]{accent-color:var(--teal)}textarea{resize:vertical;min-height:148px;font:13px/1.6 Consolas,monospace}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.3;letter-spacing:-.7px}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:16px}code{font-family:Consolas,"Cascadia Mono",monospace;font-size:13px;overflow-wrap:anywhere}[hidden]{display:none!important}.muted{color:var(--muted)}.skip{position:fixed;left:20px;top:-60px;z-index:50;background:white;padding:10px}.skip:focus{top:10px}.sidebar{position:fixed;inset:0 auto 0 0;width:222px;background:var(--navy);color:#dce7f2;padding:30px 19px;display:flex;flex-direction:column}.brand{color:white;text-decoration:none;display:flex;gap:11px;align-items:center;font-size:20px;letter-spacing:-.6px;padding:0 8px}.brand strong{font-weight:400;color:#a4c2d9}.brand small{display:block;font-size:11px;letter-spacing:1px;color:#9db6ca;margin-top:3px}.brand-mark{display:grid;place-items:center;width:33px;height:39px;background:#d9efeb;color:var(--navy);border-radius:6px;font-weight:800;font-size:26px;font-style:italic}.sidebar-label{font-size:11px;color:#94adc3;margin:49px 12px 12px}.nav-item{width:100%;border:0;background:none;color:#bed0df;border-radius:7px;padding:12px 13px;margin:3px 0;display:flex;align-items:center;gap:12px;text-align:left}.nav-item>span:first-child{font-size:20px;line-height:1;width:22px;text-align:center}.nav-item:hover{background:#ffffff0b;color:white}.nav-item.active{background:#24435d;color:white;box-shadow:inset 3px 0 #64c2b5}.nav-count{margin-left:auto;background:#ffffff16;border-radius:4px;min-width:22px;text-align:center;font-size:11px}.sidebar-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid #ffffff16;font-size:12px;color:#d4e3ee}.side-dot{display:inline-block;width:6px;height:6px;background:#64c2b5;border-radius:50%;margin-right:8px}.sidebar-bottom small{display:block;color:#8ca8bf;font-size:11px;margin-top:7px}.shell{margin-left:222px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:75px;border-bottom:1px solid var(--line);background:#ffffffed;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 13px;color:#a6b5c3}.breadcrumb strong{color:var(--ink);font-weight:500}.top-actions{display:flex;gap:18px;align-items:center}.health{font-size:12px;color:var(--muted);display:inline-flex;gap:7px;align-items:center}.health:before{content:"";width:6px;height:6px;border-radius:50%;background:#a3afba}.health.ready{color:var(--teal)}.health.ready:before{background:var(--teal)}.health.failed{color:var(--danger)}.health.failed:before{background:var(--danger)}main{flex:1;padding:36px;max-width:1720px;width:100%;margin:0 auto;outline:none}.button{border:1px solid transparent;border-radius:6px;padding:9px 16px;font-weight:600;font-size:13px;display:inline-flex;justify-content:center;align-items:center;gap:7px;white-space:nowrap;min-height:39px}.primary{background:var(--teal);color:white}.primary:hover{background:#116b64}.secondary{background:white;border-color:#cfd9e3;color:var(--ink)}.secondary:hover{background:#edf3f8}.quiet{background:none;color:var(--muted);padding:7px 8px;min-height:32px}.quiet:hover{background:#e8eef4;color:var(--ink)}.danger{background:var(--danger);color:white}.danger-text{color:var(--danger)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p{margin-top:8px;font-size:13px}.heading-actions{display:flex;gap:10px}.summary-strip{display:flex;gap:0;margin-bottom:25px;padding:19px 0;background:white;border:1px solid var(--line);border-radius:8px}.metric{flex:1;padding:0 24px;border-right:1px solid var(--line);min-width:0}.metric:last-child{border:0}.metric-label{font-size:12px;color:var(--muted)}.metric-value{font-size:25px;line-height:1.3;font-weight:600;letter-spacing:-.5px;margin-top:5px}.metric-note{font-size:11px;color:var(--muted);margin-top:4px}.data-panel{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.data-toolbar{padding:19px 22px;display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid var(--line)}.table-heading{display:flex;gap:10px;align-items:center}.count-pill{background:#edf2f7;color:#60778c;font-size:11px;border-radius:4px;padding:1px 7px}.filters{display:flex;gap:10px;align-items:center}.search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:5px;padding:0 10px;color:#7a8da0}.search input{border:0;padding:7px 0;width:220px;font-size:12px;background:transparent}.search>span{font-size:22px;line-height:1}.limit-label{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted)}.limit-label select{padding:6px 8px;font-size:12px}.table-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{background:#f8fafc;color:var(--muted);font-size:11px;font-weight:500;padding:12px 18px;border-bottom:1px solid var(--line)}td{padding:17px 18px;border-bottom:1px solid #edf1f5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfe}td:first-child,th:first-child{padding-left:22px}td strong{font-size:13px;font-weight:600;display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis}td small{display:block;color:var(--muted);font-size:11px;margin-top:3px;max-width:230px;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;gap:6px;align-items:center;padding:3px 8px;border-radius:4px;background:#eef2f6;color:#5c6d7c;font-size:11px}.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.badge.good{background:#e8f5ef;color:#237660}.badge.warning{background:#fff3e5;color:var(--amber)}.badge.bad{background:#fcecee;color:var(--danger)}.row-actions{display:flex;gap:3px;align-items:center}.row-actions .button{font-size:12px;padding:4px 7px;min-height:28px;font-weight:400}.data-footer{display:flex;gap:12px;justify-content:space-between;padding:13px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);background:#fcfdff}.page-help{padding:20px 2px;color:var(--muted);font-size:12px;display:flex;gap:10px;align-items:flex-start;max-width:920px}.page-help:before{content:"i";font-family:Georgia,serif;font-size:12px;border:1px solid #a8bbca;border-radius:50%;width:16px;height:16px;flex-shrink:0;text-align:center;line-height:14px}.empty{padding:58px 25px 61px;text-align:center}.empty-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:10px;background:#edf5f6;color:#508b91;margin:0 auto 18px;font-size:27px}.empty h3{margin-bottom:7px}.empty p{color:var(--muted);font-size:13px;max-width:460px;margin:0 auto 20px}.empty .button{margin-top:1px}.app-footer{font-size:11px;color:#8b9aa9;display:flex;justify-content:space-between;padding:15px 36px}.notice{border:1px solid #ead9bf;color:#855b25;background:#fff9ef;border-radius:6px;padding:12px 15px;margin-bottom:20px;font-size:13px}.notice.error{border-color:#edcbce;background:#fff3f4;color:var(--danger)}.login-layout{min-height:calc(100vh - 184px);display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:56px;max-width:1000px;margin:auto;padding:30px 0 65px}.login-intro h1{font-size:40px;line-height:1.4;letter-spacing:-1.4px;margin:17px 0}.section-kicker{font-size:12px;color:var(--teal)}.login-intro p{color:var(--muted);font-size:14px;line-height:1.9}.connection-path{display:flex;align-items:center;gap:8px;margin:35px 0;font-size:11px;white-space:nowrap}.connection-path span{padding:6px 0}.connection-path strong{padding:9px 11px;border:1px solid #bfd8db;border-radius:5px;font-weight:500;background:#e7f1f2}.connection-path i{height:1px;width:23px;background:#b8cad6;position:relative}.connection-path i:after{content:"";position:absolute;right:0;top:-2px;border-left:4px solid #b8cad6;border-top:2px solid transparent;border-bottom:2px solid transparent}.api-address{padding-top:21px;border-top:1px solid #dce4ed;max-width:350px}.api-address>span{display:block;font-size:11px;color:var(--muted);margin-bottom:6px}.login-panel{background:white;border:1px solid var(--line);border-radius:10px;padding:33px;box-shadow:0 10px 32px #17324d05}.panel-symbol{width:31px;height:34px;display:grid;place-items:center;background:var(--navy);color:white;font-size:23px;font-style:italic;font-weight:700;border-radius:5px;margin-bottom:22px}.login-panel>p.muted{font-size:12px;margin-top:6px;margin-bottom:26px}.login-panel>label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.login-panel>input{width:100%;font-size:13px}.field-help{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.7}.login-panel .primary{width:100%;margin-top:23px}.login-footnote{margin-top:19px;text-align:center;font-size:11px;color:#8092a4}.form-error{color:var(--danger);background:#fff1f2;border-radius:5px;padding:10px 12px;font-size:12px;margin-top:14px;overflow-wrap:anywhere}.icon-button{border:0;background:none;font-size:25px;color:#7a8fa1;line-height:1;padding:5px 8px}.icon-button:hover{color:var(--ink)}dialog{color:var(--ink);border:1px solid #d9e3ec;border-radius:10px;box-shadow:0 24px 90px #071a3740;padding:0;width:600px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:#10263e80;backdrop-filter:blur(2px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:21px 25px;position:sticky;top:0;background:white;z-index:1}.dialog-header h2{font-size:19px}#modal-body{padding:24px 25px}.dialog-form{display:flex;flex-direction:column;gap:18px}.form-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;min-width:0}.form-field .field-help{font-weight:400;margin:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:3px}.upload-label{cursor:pointer;display:flex;align-items:center;justify-content:center;padding:12px;background:#f7fafc;border:1px dashed #b6cad7;border-radius:6px;color:var(--teal);font-weight:500}.upload-label input{max-width:100%;font-size:11px;padding:0;border:0;margin-left:8px}.inline-note{padding:12px 14px;background:#eef6f7;border-radius:6px;font-size:12px;color:#43727a;font-weight:400}.secret-output{display:block;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;background:#f1f5f8;border:1px solid var(--line);border-radius:6px;padding:15px;margin:18px 0;user-select:all;font-size:13px;line-height:1.8}.recovery-note{max-width:230px;white-space:normal;font-size:12px}.toast{position:fixed;bottom:26px;left:calc(50% + 111px);transform:translateX(-50%);padding:12px 20px;background:var(--navy);color:white;border-radius:6px;box-shadow:0 5px 20px #122a4422;z-index:100;max-width:calc(100vw - 32px);font-size:13px;overflow-wrap:anywhere}.noscript{position:fixed;top:0;left:0;right:0;background:#fff1f2;padding:18px;z-index:200}.detail-grid{display:grid;grid-template-columns:130px 1fr;gap:10px;font-size:12px}.detail-grid dt{color:var(--muted)}.detail-grid dd{margin:0;overflow-wrap:anywhere}.form-check{display:flex;gap:8px;align-items:flex-start;font-size:12px}.form-check input{margin-top:5px}
@media(min-width:1550px){main{padding:42px 48px}.topbar{padding-inline:48px}.login-layout{max-width:1060px}}
@media(max-width:1100px){.sidebar{width:190px;padding:25px 13px}.shell{margin-left:190px}main{padding:26px}.topbar{padding:0 26px}.brand{font-size:18px;gap:9px}.login-layout{gap:26px}.login-intro h1{font-size:34px}.login-panel{padding:25px}.toast{left:calc(50% + 95px)}.metric{padding:0 17px}.metric-value{font-size:23px}.search input{width:170px}}
@media(max-width:850px){.sidebar{width:160px;padding-inline:10px}.brand{font-size:15px;padding:0 5px;gap:7px}.brand-mark{width:27px;height:32px;font-size:23px}.brand small{font-size:9px;letter-spacing:0}.shell{margin-left:160px}.nav-item{padding:11px 10px;gap:9px;font-size:13px}.login-layout{grid-template-columns:1fr;max-width:420px;padding:16px 0 25px;gap:28px}.login-intro h1{font-size:29px}.login-intro h1 br{display:none}.login-intro>p,.connection-path{display:none}.api-address{margin-top:20px;padding-top:15px}.login-panel{padding:27px}.page-heading{align-items:flex-start}.heading-actions{flex-direction:column-reverse;gap:6px}.metric{padding:0 12px}.metric-label{font-size:11px}.metric-note{font-size:10px}.data-toolbar{flex-wrap:wrap;padding:15px}.filters{flex-wrap:wrap;flex:1;justify-content:flex-end}.search input{width:160px}.summary-strip{padding:15px 0}.page-heading h1{font-size:25px}.page-heading p{max-width:260px}.toast{left:calc(50% + 80px)}}
@media(max-width:600px){.sidebar{position:static;width:100%;padding:15px 17px 0;display:block}.brand{font-size:19px;padding:0}.brand small{display:none}.brand-mark{width:26px;height:29px;font-size:22px}.sidebar-label,.sidebar-bottom,.nav-count{display:none}.sidebar nav{display:flex;gap:3px;margin-top:13px;overflow:auto}.nav-item{justify-content:center;white-space:nowrap;font-size:12px;border-radius:5px 5px 0 0;margin:0;padding:10px 8px;gap:6px}.nav-item>span:first-child{font-size:16px;width:16px}.nav-item.active{box-shadow:inset 0 -3px #64c2b5}.shell{margin-left:0;min-height:calc(100vh - 111px)}.topbar{height:57px;padding:0 18px}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 7px}.health{font-size:11px}.top-actions{gap:8px}.top-actions .button{font-size:11px;padding:5px}main{padding:24px 16px}.page-heading{gap:12px;margin-bottom:20px}.page-heading h1{font-size:23px}.page-heading p{font-size:12px;max-width:210px}.heading-actions .button{font-size:12px;padding:7px 10px;min-height:34px}.summary-strip{display:grid;grid-template-columns:1fr 1fr;padding:0;margin-bottom:20px}.metric{padding:13px 17px}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.metric-label{font-size:12px}.metric-value{font-size:23px}.metric-note{font-size:11px}.data-toolbar{align-items:flex-start}.filters{width:100%;justify-content:flex-start;flex:auto}.search{width:100%}.search input{width:100%}.limit-label{margin-top:2px}.data-footer{padding:12px 15px;flex-direction:column;gap:4px}.app-footer{padding:15px 18px;font-size:10px}.toast{left:50%;bottom:18px}.login-layout{min-height:0;padding:8px 0 15px;gap:25px}.login-intro h1{font-size:28px}.section-kicker{font-size:11px}.login-panel{padding:25px}.panel-symbol{display:none}.login-footnote{font-size:10px}.field-grid{grid-template-columns:1fr}.dialog-header{padding:18px 20px}#modal-body{padding:20px}.dialog-actions{flex-wrap:wrap}.detail-grid{grid-template-columns:90px 1fr}.page-help{font-size:11px}}
.oauth-content{display:flex;flex-direction:column;align-items:flex-start;gap:17px}.oauth-content>p{font-size:13px;line-height:1.8}.oauth-content .badge{font-size:12px}.device-code{font-family:Consolas,"Cascadia Mono",monospace;font-size:32px;font-weight:600;letter-spacing:5px;text-align:center;background:#edf5f6;border:1px solid #c8dfe0;border-radius:7px;padding:18px 20px;width:100%;color:var(--navy);user-select:all;overflow-wrap:anywhere}.oauth-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.oauth-actions a{text-decoration:none}.oauth-content .dialog-actions{width:100%;flex-wrap:wrap;margin-top:6px}.oauth-content .field-help{margin:0}.oauth-content .inline-note,.oauth-content .form-error{width:100%;margin:0}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.oauth-content .button{white-space:normal}
@media(max-width:600px){.device-code{font-size:27px;letter-spacing:3px;padding:16px 10px}.oauth-actions{width:100%}.oauth-actions .button{flex:1}.oauth-content .dialog-actions .button{padding:8px 11px;font-size:12px}}
.proxy-config{display:flex;flex-direction:column;gap:13px;padding-top:15px;border-top:1px solid var(--line)}.proxy-clash-fields{display:flex;flex-direction:column;gap:12px}.proxy-clash-fields .form-error{margin:0}.proxy-clash-fields .button{align-self:flex-start}.proxy-config .field-help{margin:0}.proxy-config select{max-width:100%;text-overflow:ellipsis}.subscription-nodes{border:1px solid var(--line);border-radius:6px;margin:17px 0;overflow:hidden;max-height:340px;overflow-y:auto}#modal-body>.field-help{margin-top:11px}
/* Mobile navigation keeps every destination visible without horizontal scrolling. */
@media(max-width:600px){.sidebar nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:4px;overflow:visible;padding-bottom:5px}.nav-item{width:auto;min-width:0;min-height:40px;flex:initial;font-size:12px;padding:9px 6px;border-radius:5px;white-space:normal;text-align:center}.nav-item>span:first-child{display:none}}
.runtime-panel{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:15px 18px;margin-bottom:20px;border:1px solid var(--line);border-left:3px solid #92adb9;border-radius:6px;background:#fff}.runtime-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.runtime-title strong{font-size:12px}.runtime-details p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.7}.runtime-details small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.runtime-panel .button{flex-shrink:0;font-size:12px}
@media(max-width:600px){.runtime-panel{padding:13px;gap:8px}.runtime-title{gap:7px}.runtime-details p{font-size:11px}.runtime-panel .button{font-size:11px;padding-inline:4px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
/* Import preview groups accounts and their shared proxy dependencies without exposing credentials. */
.import-dialog{width:880px}.import-content{display:flex;flex-direction:column;gap:14px}.import-title{font-size:18px;font-weight:600}.import-content>.field-help{font-size:12px;margin:0}.import-section-heading{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid var(--line);margin-top:6px}.import-row{padding:14px 16px;border:1px solid var(--line);border-radius:6px;min-width:0}.import-choice{display:flex;gap:10px;align-items:flex-start;cursor:pointer}.import-choice>input{margin-top:5px;flex-shrink:0}.import-choice>span:not(.badge){min-width:0;flex:1}.import-choice strong{display:block;font-size:13px;overflow-wrap:anywhere}.import-choice small{display:block;font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.import-choice .badge{flex-shrink:0}.import-row>.field-help{font-size:12px;overflow-wrap:anywhere}.import-row .form-field{margin-top:12px}.import-warning,.import-error{font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin-top:7px}.import-warning{color:var(--amber)}.import-error{color:var(--danger)}.import-ack{background:#fff8ec;border:1px solid #ecdaba;border-radius:6px;padding:12px 14px;line-height:1.7}.import-selection{font-size:13px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}.import-actions{flex-wrap:wrap;position:sticky;bottom:-24px;background:white;padding-block:16px;margin-bottom:-24px}.import-actions .button{white-space:normal}.import-content .form-error{margin:0}
@media(max-width:600px){.import-row{padding:12px}.import-choice{flex-wrap:wrap}.import-choice>span:not(.badge){flex-basis:calc(100% - 28px)}.import-choice>.badge{margin-left:25px}.import-actions{bottom:-20px;margin-bottom:-20px}.import-actions .button{flex:1;min-width:120px}.import-dialog .upload-label{flex-direction:column;gap:10px}.import-dialog input[type=file]{max-width:100%}}
