@font-face{font-family:Inter;src:url('/admin/inter.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:light;--bg:#f5f6f8;--surface:#fff;--soft:#f1f3f6;--text:#18202d;--muted:#5e697a;--line:#d7dde5;--blue:#2055d4;--blue-soft:#eaf0ff;--green:#08734a;--green-bg:#e5f5ed;--amber:#875414;--amber-bg:#fff2d8;--red:#ae3037;--red-bg:#fdebed;--shadow:0 14px 50px #14203926;--radius:12px;font-family:Inter,system-ui,sans-serif;font-synthesis:none}
html[data-theme=dark]{color-scheme:dark;--bg:#11151b;--surface:#191e26;--soft:#222a35;--text:#edf1f7;--muted:#a6b0c1;--line:#394352;--blue:#92b2ff;--blue-soft:#243656;--green:#7bd8ac;--green-bg:#203b31;--amber:#efc273;--amber-bg:#403421;--red:#ffa3aa;--red-bg:#40282e;--shadow:0 14px 50px #0007}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}button{transition:background .15s,color .15s}button:hover{filter:brightness(.97)}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.25;letter-spacing:-.8px;font-weight:650}h2{font-size:18px;letter-spacing:-.3px;font-weight:600}h3{font-size:15px;font-weight:600}small{font-size:12px}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}button svg{pointer-events:none}button.primary{background:var(--blue);color:#fff;border:1px solid transparent;padding:10px 17px;border-radius:8px;min-height:44px;font-weight:550}html[data-theme=dark] button.primary{background:#2e61dc;color:#fff}button.secondary{background:var(--surface);color:var(--text);border:1px solid var(--line);padding:9px 15px;border-radius:8px;min-height:44px}button.danger{color:var(--red)}button.quiet{border:0;background:transparent;color:var(--muted);min-height:44px;padding:8px 0;text-align:left}button.icon-button{background:var(--surface);border:1px solid var(--line);color:var(--muted);width:44px;height:44px;border-radius:9px;display:inline-grid;place-items:center}.skip{position:fixed;left:12px;top:-100px;background:var(--surface);padding:10px;z-index:20}.skip:focus{top:12px}#app{display:flex;min-height:100dvh}.sidebar{width:232px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:var(--text);font-size:19px;font-weight:650;margin:0 10px 40px}.brand img{border-radius:10px;object-fit:contain}.brand small{display:block;color:var(--muted);font-weight:450;font-size:12px}.sidebar nav{display:grid;gap:7px}.nav-item{display:flex;align-items:center;gap:12px;min-height:48px;border-radius:8px;padding:11px 14px;color:var(--muted);font-weight:500}.nav-item[aria-current=page]{background:var(--blue-soft);color:var(--blue)}.nav-item:hover{background:var(--soft)}.sidebar-foot{margin-top:auto;padding:24px 12px 0;font-size:13px;color:var(--muted);display:grid}.workspace{margin-left:232px;width:calc(100% - 232px);min-width:0}.topbar{height:85px;padding:0 38px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:var(--surface)}.breadcrumb{font-size:13px;color:var(--muted);display:flex;gap:14px}.breadcrumb span:last-child{color:var(--text)}.top-actions{display:flex;gap:9px}.mobile-brand{display:none}main{padding:36px 38px 22px;max-width:1450px;margin:auto;min-height:calc(100dvh - 150px)}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:26px}.page-heading p{color:var(--muted);margin-top:7px;max-width:650px}.page-heading small{display:block;white-space:nowrap;color:var(--muted);margin-top:5px}.section{margin-bottom:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.section-head a{font-size:13px;font-weight:550}.attention{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:18px 22px;display:flex;gap:15px;align-items:center;margin-bottom:24px}.attention>svg{color:var(--amber);width:26px;height:26px}.attention p{color:var(--muted);font-size:13px;margin-top:3px}.attention>a{margin-left:auto;white-space:nowrap;font-size:13px}.stats{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:14px;margin-bottom:30px}.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-width:0}.stat>span{color:var(--muted);font-size:13px}.stat strong{display:block;font-size:27px;font-weight:620;letter-spacing:-.8px;margin:10px 0 2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat small{color:var(--muted)}.stat.emphasis{background:var(--blue-soft);border-color:var(--blue-soft)}.stat.emphasis strong{color:var(--blue)}.columns{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0}.panel-heading{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-body{padding:20px 22px}.row{display:flex;align-items:center;gap:13px;padding:16px 22px;border-bottom:1px solid var(--line);min-width:0}.row:last-child{border-bottom:0}.row-content{flex:1;min-width:0}.row-content strong{font-size:14px;display:block;font-weight:550;overflow-wrap:anywhere}.row-content small{color:var(--muted);display:block;margin-top:3px;overflow-wrap:anywhere}.row-end{text-align:right;flex:none}.row-end strong{font-size:14px;font-variant-numeric:tabular-nums;font-weight:600}.row-icon{display:grid;place-items:center;color:var(--muted);background:var(--soft);width:38px;height:38px;border-radius:9px;flex:none}.status{display:inline-flex;align-items:center;gap:5px;font-size:12px;padding:3px 8px;border-radius:5px;background:var(--soft);color:var(--muted);white-space:nowrap}.status.good{color:var(--green);background:var(--green-bg)}.status.wait{color:var(--amber);background:var(--amber-bg)}.status.bad{color:var(--red);background:var(--red-bg)}.status svg{width:13px;height:13px}.page-footer{max-width:1450px;padding:10px 38px 24px;margin:auto;font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.search{flex:1;min-width:160px;max-width:420px;position:relative}.search svg{position:absolute;top:12px;left:12px;width:20px;color:var(--muted)}.search input{padding-left:42px;width:100%}input,select,textarea{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:44px;max-width:100%;min-width:0}textarea{resize:vertical;min-height:95px}input::placeholder{color:var(--muted)}.toolbar select{max-width:220px}.tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:24px;padding-bottom:9px;scrollbar-width:thin}.tab{border:0;border-radius:7px;padding:10px 14px;min-height:44px;white-space:nowrap;color:var(--muted);background:transparent;font-weight:500}.tab[aria-selected=true]{background:var(--blue-soft);color:var(--blue)}.records{display:grid;gap:12px}.record{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 21px;display:grid;grid-template-columns:1fr auto;gap:12px}.record h3{overflow-wrap:anywhere}.record .meta{color:var(--muted);font-size:13px;margin-top:5px;overflow-wrap:anywhere}.record .record-value{font-weight:600;font-size:17px;font-variant-numeric:tabular-nums;text-align:right}.record .actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:12px}.record details{grid-column:1/-1;font-size:13px}.record summary{cursor:pointer;min-height:32px;color:var(--blue)}.record dl{display:grid;grid-template-columns:120px 1fr;gap:8px;color:var(--muted);margin-bottom:0}.record dd{margin:0;overflow-wrap:anywhere}.record dt{font-weight:500}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:10px;font-size:13px;color:var(--muted)}.pagination>div{display:flex;gap:8px}.form-section{margin-bottom:22px}.form-section .panel-body{display:grid;gap:22px}.field{display:grid;gap:7px}.field>label,.field>span{font-weight:550;font-size:14px}.field .help{font-size:12px;color:var(--muted)}.field-error{font-size:13px;color:var(--red)}.field:has(input[type=checkbox]){display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:44px}.field input[type=checkbox]{appearance:none;width:42px;height:26px;min-height:26px;flex:none;border-radius:20px;padding:0;background:var(--line);position:relative;cursor:pointer}.field input[type=checkbox]:before{content:'';position:absolute;background:var(--surface);width:20px;height:20px;top:2px;left:2px;border-radius:50%;transition:transform .15s}.field input[type=checkbox]:checked{background:#2055d4;border-color:#2055d4}.field input[type=checkbox]:checked:before{transform:translateX(16px);background:#fff}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid .full{grid-column:1/-1}.savebar{position:sticky;bottom:18px;display:flex;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px 18px;box-shadow:var(--shadow);gap:15px;z-index:3}.savebar p{color:var(--muted);font-size:13px}.savebar[hidden],*[hidden]{display:none!important}.empty{padding:38px 22px;text-align:center;color:var(--muted)}.empty svg{display:block;margin:0 auto 12px;width:30px;height:30px}.empty h2{color:var(--text);margin-bottom:6px}.gate{max-width:470px;margin:12vh auto;text-align:center;padding:24px}.gate h1{font-size:23px;margin:16px 0 10px}.gate p{color:var(--muted)}.gate button{margin-top:22px}.loader{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite;margin:auto}.busy-content{display:flex;align-items:center;gap:12px;min-height:180px;justify-content:center;color:var(--muted)}.busy-content .loader{margin:0;width:22px;height:22px}.package-editor{display:grid;gap:16px}.package-row{border:1px solid var(--line);border-radius:9px;padding:16px;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:15px}.package-row>h3{grid-column:1/-1}.field input[type=password]{font-family:system-ui,sans-serif}.subtle{color:var(--muted);font-size:13px}.alert-error{padding:14px;border:1px solid var(--red);color:var(--red);border-radius:8px;margin-bottom:18px}.form-result{border:1px solid var(--line);padding:16px;border-radius:8px;margin-top:20px;overflow-wrap:anywhere}.admin-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.admin-row:last-child{border-bottom:0}.admin-row small{display:block;color:var(--muted)}#notice{position:fixed;left:50%;transform:translateX(-50%);bottom:28px;max-width:min(500px,calc(100% - 32px));padding:13px 20px;border-radius:9px;color:var(--text);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);z-index:30;font-size:14px}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:25px;width:min(430px,calc(100% - 32px));box-shadow:var(--shadow)}dialog::backdrop{background:#0006}dialog p{margin-top:12px;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.tag{font-size:11px;color:var(--muted);margin-left:8px}code{font-size:12px;overflow-wrap:anywhere}.data-line{display:flex;justify-content:space-between;gap:12px;margin-bottom:15px;font-size:14px}.data-line:last-child{margin:0}.data-line span:first-child{color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}
.gateway-choice{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid var(--control-line);border-radius:8px;cursor:pointer;font-size:14px}.gateway-choice:has(:checked){background:var(--blue-soft);border-color:var(--blue)}.gateway-choice input{appearance:auto;accent-color:#2055d4;width:20px;height:20px;min-height:20px;padding:0;margin:0}.gateway-card .panel-heading{flex-wrap:wrap}.gateway-card:not(:has(input:checked)) .panel-heading{border-bottom:0}.gateway-routing{margin:0 0 20px}.gateway-note{margin:0 0 22px}#settings-error:not(:empty){margin-bottom:16px}
:root{--control-line:#8290a2}html[data-theme=dark]{--control-line:#69788e}
input,select,textarea,button.secondary,button.icon-button{border-color:var(--control-line)}
.top-actions .quiet{padding-inline:8px;min-width:44px;font-size:13px}.mode-icon{display:none}.top-actions .mode-switch{width:auto;min-height:44px;padding-inline:14px;font-size:13px;display:inline-flex;align-items:center;gap:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.export-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.export-bar input[type=month]{min-width:168px}.export-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}.export-btn svg{width:19px;height:19px}
@media(min-width:1600px){main{padding-top:45px}.topbar{padding-right:max(38px,calc((100% - 1374px)/2))}}
@media(max-width:1100px){.sidebar{width:200px;padding-inline:14px}.workspace{margin-left:200px;width:calc(100% - 200px)}main{padding:28px 24px}.topbar{padding:0 24px}.stats{grid-template-columns:1fr 1fr}.columns{grid-template-columns:1fr}.page-footer{padding-inline:24px}.stat strong{font-size:25px}}
@media(max-width:700px){body{font-size:15px}.sidebar{width:100%;height:auto;inset:auto 0 0;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-right:0;border-top:1px solid var(--line)}.sidebar>.brand,.sidebar-foot{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.nav-item{display:flex;flex-direction:column;gap:4px;justify-content:center;padding:7px 2px;font-size:10px;min-height:55px;border-radius:8px}.nav-item svg{width:23px;height:23px}.workspace{margin:0;width:100%;padding-bottom:85px}.topbar{height:70px;padding:calc(env(safe-area-inset-top,0px) + 10px) 18px 10px}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:650}.mobile-brand img{border-radius:8px}.breadcrumb{display:none}.top-actions{gap:7px}.top-actions button,.top-actions .mode-switch{width:40px;min-width:40px;height:40px;padding:0;display:inline-grid;place-items:center}.mode-label{display:none}.mode-icon{display:block}.top-actions button svg{width:20px;height:20px}main{padding:26px 17px 12px;min-height:calc(100dvh - 190px)}h1{font-size:25px}.page-heading{margin-bottom:22px;flex-direction:column;align-items:stretch}.export-bar{width:100%}.export-bar input[type=month]{flex:1;min-width:0}.export-btn{flex:none}.page-heading p{font-size:13px;line-height:1.6}.page-heading small{display:none}.stats{gap:10px;margin-bottom:25px}.stat{padding:16px 14px}.stat strong{font-size:24px;margin-top:8px}.stat>span{font-size:12px}.stat small{font-size:11px}.attention{padding:16px;gap:12px;align-items:flex-start}.attention>a{display:none}.attention h3{font-size:14px}.attention p{font-size:12px}.panel-heading{padding:17px 16px}.panel-body{padding:18px 16px}.row{padding:15px 16px;gap:10px}.row-end strong{font-size:13px}.row-content strong{font-size:13px}.row-content small{font-size:11px}.row-icon{width:34px;height:34px}.row-icon svg{width:19px;height:19px}.columns{gap:22px}.section-head h2{font-size:17px}.page-footer{padding:14px 18px 4px}.toolbar{gap:9px}.toolbar .search{max-width:none;flex-basis:100%}.toolbar select{flex:1}.record{padding:16px;gap:10px}.record .record-value{font-size:15px}.record .meta{font-size:12px}.record .actions{justify-content:flex-start;flex-wrap:wrap}.record .actions button{flex:1;white-space:nowrap}.record dl{grid-template-columns:90px 1fr}.form-grid{grid-template-columns:1fr;gap:18px}.package-row{grid-template-columns:1fr 1fr}.package-row .field:first-of-type{grid-column:1/-1}.savebar{bottom:calc(83px + env(safe-area-inset-bottom,0px));padding:12px 14px}.savebar p{font-size:12px}.savebar button{padding-inline:14px;white-space:nowrap}.tabs{margin-inline:-17px;padding-inline:17px}.admin-form{grid-template-columns:1fr}.admin-form button{justify-self:start}#notice{bottom:calc(91px + env(safe-area-inset-bottom,0px))}input,select,textarea{font-size:16px}.gate{margin-top:10vh;padding:20px 10px}.pagination{font-size:12px}.pagination button{padding:8px 11px}.gate button{width:100%}.data-line{font-size:13px}}
.worker-add{margin-bottom:20px}.worker-add>summary,.worker-materials>summary{padding:16px;cursor:pointer;min-height:48px;font-weight:550}.worker-add>summary{color:var(--blue)}.worker-add form{display:grid;gap:18px}.worker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.worker-record{margin:0;min-width:0}.worker-title{display:flex;align-items:center;gap:12px;min-width:0}.worker-title h3{overflow-wrap:anywhere}.worker-check{display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer}.worker-check input,.console-actions input{appearance:auto;accent-color:var(--blue);width:20px;height:20px;min-height:20px;padding:0;margin:0}.worker-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}.worker-preset-row{display:flex;align-items:end;gap:12px}.worker-preset-row>select,.worker-preset-row>.field{flex:1;min-width:0}.worker-preset-row>button{flex:none}.worker-materials{border:1px solid var(--line);border-radius:8px;margin:20px 0}.worker-materials>.subtle,.worker-materials>.form-grid,.worker-materials>.section{margin:0 16px 20px}.worker-materials .form-grid{gap:16px}.worker-materials summary{color:var(--blue)}#worker-install>.subtle{margin:16px 0}#worker-install-submit{display:inline-flex;align-items:center;gap:8px;max-width:100%;white-space:normal;text-align:left}.install-card{margin-bottom:18px;overflow:hidden}.install-card .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.install-card h3{overflow-wrap:anywhere}.install-card .panel-body{min-width:0}.install-step{font-weight:600;font-variant-numeric:tabular-nums}.install-card progress{display:block;accent-color:var(--blue);width:100%;height:10px;margin:12px 0}.install-phase{min-height:2em;overflow-wrap:anywhere}.install-error:not(:empty){margin:12px 0}.install-card summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--blue)}.console-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:8px 0 12px}.console-actions label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}.worker-console{margin:0;min-height:140px;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#11151b;color:#e4e9f0;border:1px solid var(--control-line);border-radius:8px;padding:16px;font:12px/1.65 Consolas,monospace;tab-size:4}.worker-console:focus-visible{outline:2px solid var(--blue);outline-offset:3px}#worker-live-state{max-width:100%;overflow-wrap:anywhere}#worker-install-jobs{min-width:0}
@media(max-width:850px){.worker-list{grid-template-columns:1fr}.worker-preset-row{align-items:stretch;flex-direction:column}.worker-preset-row>button{align-self:start}}
@media(max-width:700px){.worker-selection>*{width:100%}.install-card .panel-heading{align-items:start;flex-wrap:wrap}.worker-console{padding:12px;max-height:280px}.console-actions button{width:100%}.worker-record .actions button{white-space:normal}.worker-title{gap:5px}.worker-materials>.subtle,.worker-materials>.form-grid,.worker-materials>.section{margin-inline:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
