:root{--nav:#101c31;--ink:#1a2d48;--muted:#697a91;--line:#e2e9f1;--blue:#2366df;--green:#14896b;--amber:#aa7415;--paper:#fff;--bg:#f4f7fb}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #76a3fa;outline-offset:3px}input,select,textarea{width:100%;border:1px solid #d7e1ed;border-radius:10px;min-height:46px;background:white;color:var(--ink);padding:11px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#2366df;box-shadow:0 0 0 3px #2366df12}input::placeholder,textarea::placeholder{color:#98a3b3}h1,h2,h3,p{margin:0}h1{font-size:clamp(24px,4vw,32px);letter-spacing:-1.2px;line-height:1.2;font-weight:750}h2{font-size:18px;letter-spacing:-.5px}h3{font-size:15px}small{font-size:12px;color:var(--muted)}[hidden]{display:none!important}.top{height:83px;display:flex;align-items:center;justify-content:space-between;background:var(--nav);color:white;padding:13px max(20px,calc((100vw - 1040px)/2));position:sticky;top:0;z-index:20;box-shadow:0 3px 14px #10244015}.brand{display:flex;align-items:center;gap:11px}.brand img{object-fit:cover;border-radius:11px}.brand b{font-size:21px;letter-spacing:-.6px;display:block}.brand strong{font-weight:450;color:#cad9ee}.brand small{font-size:9px;letter-spacing:1.7px;color:#9eafc9;display:block;margin-top:1px}.avatar{width:37px;height:37px;min-height:37px;border:1px solid #536581;background:#1f314e;border-radius:50%;font-size:11px;color:#d9e4f6}main{max-width:1080px;padding:27px 20px 105px;margin:0 auto}.eyebrow{font-size:10px;letter-spacing:1.7px;color:#5e799e;font-weight:700;display:block;margin-bottom:9px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.page-head p{font-size:13px;color:var(--muted);margin-top:9px}.primary,.secondary{min-height:46px;border-radius:10px;padding:11px 17px;font-weight:650;font-size:13px;display:inline-flex;gap:7px;align-items:center;justify-content:center}.primary{background:var(--blue);color:white;box-shadow:0 3px 8px #2366df18}.primary:hover{background:#1956c2}.secondary{border:1px solid #d6e0ed;background:#fff;color:#42658f}.full{width:100%;margin-top:13px}.new{flex-shrink:0;font-size:23px;min-width:46px;padding:5px 12px}.new span{font-size:13px}.statusbar{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin:22px 0 18px}.statusbar>span{display:flex;align-items:center;gap:7px}.statusbar i{width:6px;height:6px;border-radius:50%;background:#28a57c}.statusbar.offline i{background:#d5a037}.statusbar>button{min-height:30px;color:#41658f;font-size:18px}.statusbar>button span{font-size:11px}.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:14px 15px;min-width:0}.stat small{display:block;font-size:10px;color:#74849b}.stat b{display:block;font-size:25px;letter-spacing:-1px;margin:4px 0 0;line-height:1.3}.stat.available b{color:#178468}.stat.used b{color:#d08830}.stat .sub{color:#8492a5;font-size:9px;display:block;margin-top:2px}.search-row{display:flex;gap:9px}.search{position:relative;flex:1}.search>span{font-size:28px;position:absolute;top:1px;left:12px;color:#7c90ad;pointer-events:none}.search input{padding-left:38px;font-size:13px;border-color:#e0e6ef}.square{height:46px;min-width:46px;border-radius:10px;background:#fff;border:1px solid var(--line);font-size:27px;color:var(--blue)}.filters{display:flex;align-items:center;gap:9px;margin:12px 0 16px;flex-wrap:wrap}.filters label{display:flex;align-items:center;border:1px solid var(--line);background:white;border-radius:8px;padding:0 10px;gap:9px}.filters label>span{font-size:9px;color:#99a5b5;letter-spacing:.6px}.filters select{border:0;box-shadow:none;min-height:36px;font-size:11px;padding:7px 15px 7px 0;width:auto;max-width:170px}.chip{font-size:10px;border:1px solid var(--line);background:#fff;border-radius:8px;min-height:37px;padding:7px 11px;color:#6a81a1}.chip.active{background:#e9f1ff;border-color:#b9d2ff;color:#2366df}.map-card{background:white;border:1px solid #dfe6ef;border-radius:14px;overflow:hidden;box-shadow:0 5px 15px #1e365506}.map-layers{display:flex;gap:5px;padding:10px;border-bottom:1px solid var(--line);background:#fff;flex-wrap:wrap}.map-layers button{min-height:35px;padding:7px 12px;font-size:11px;border-radius:7px;color:#697e9c}.map-layers button.active{background:#ecf3ff;color:var(--blue);font-weight:650}#network-map{height:440px;background:#eaf0f7}.map-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 13px;font-size:10px;color:#7186a4;min-height:40px}.map-caption>span{display:flex;align-items:center;gap:6px}.map-caption small{font-size:9px}.pin-dot{width:7px;height:7px;background:#8c9bae;border:1px solid white;border-radius:50%}.map-empty{padding:40px 20px;color:#6e829f;text-align:center;font-size:13px}.heat-legend{display:flex;align-items:center;gap:7px}.heat-legend i{display:block;height:6px;width:80px;border-radius:5px;background:linear-gradient(90deg,#277eea,#44e0b9,#e8d14a,#e14632)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:23px 0 12px}.section-heading h2{font-size:14px}.section-heading>span{font-size:10px;color:#8797ad}.cto-list{display:grid;gap:10px}.cto-card{display:flex;gap:12px;align-items:center;background:white;border:1px solid var(--line);border-radius:12px;padding:15px;width:100%;text-align:left;min-width:0}.cto-card:hover{border-color:#a3c0ed;box-shadow:0 4px 15px #185fc20a}.cto-icon{width:40px;height:40px;background:#edf3ff;color:#3672c6;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:22px}.cto-icon.complete{background:#e9f5f0;color:#19876b}.cto-icon.draft{background:#fff5e5;color:#a77529}.cto-info{min-width:0;flex:1}.cto-info b{display:block;font-size:12px;font-weight:650;overflow-wrap:anywhere;line-height:1.5}.cto-info small{display:block;font-size:10px;line-height:1.6;margin-top:3px}.cto-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:7px;font-size:10px;color:#7087a6}.cto-meta .free{color:#16816a}.cto-meta .occupied{color:#ba7929}.card-arrow{color:#8b9eb8;font-size:20px}.badge{display:inline-block;font-size:9px;padding:3px 7px;border-radius:5px;background:#eff3f8;color:#7c8da5}.badge.green{background:#e8f5ef;color:#137e60}.badge.amber{background:#fff3dd;color:#a77520}.badge.red{background:#ffeded;color:#bc5555}.empty{padding:42px 25px;background:#fff;border:1px dashed #d9e4f2;border-radius:13px;text-align:center}.empty-symbol{font-size:32px;margin-bottom:10px;color:#7c9fc9}.empty h2{font-size:17px}.empty p{font-size:12px;color:#8192aa;max-width:350px;margin:9px auto 20px;line-height:1.8}.notice{padding:13px 15px;background:#edf4ff;border:1px solid #d6e5fd;border-radius:10px;font-size:12px;line-height:1.7;color:#5a789e;margin-bottom:17px}.notice.warn{background:#fffaee;border-color:#f0dfb8;color:#99743b}.notice a{font-weight:650;display:inline-block;text-decoration:underline}.app-footer{font-size:9px;letter-spacing:1px;color:#99a8bc;text-align:center;margin:30px 0 0}.app-footer span{color:#cbd4e1;margin:0 8px}.bottom-nav{position:fixed;inset:auto 0 0;background:#fff;z-index:30;display:flex;align-items:center;justify-content:space-evenly;border-top:1px solid #e2e9f2;box-shadow:0 -4px 20px #172c4707;padding:8px 6px max(10px,env(safe-area-inset-bottom));min-height:72px}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;font-weight:550;min-width:68px;min-height:49px;position:relative;color:#8e9bb0}.bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.bottom-nav .active{color:#2366df}.bottom-nav .active:before{content:'';position:absolute;width:36px;height:3px;background:#2366df;top:-8px;border-radius:0 0 5px 5px}.bottom-nav em{font-size:8px;background:#ecaa35;color:white;font-style:normal;min-width:14px;border-radius:6px;position:absolute;top:1px;right:12px}dialog{border:0;border-radius:18px 18px 0 0;padding:0;color:var(--ink);background:#fff;width:650px;max-width:100%;max-height:94dvh;margin:auto auto 0;box-shadow:0 -20px 90px #10223d35;position:fixed;overflow-y:auto}dialog::backdrop{background:#091b3370;backdrop-filter:blur(3px)}.sheet-head{position:sticky;top:0;z-index:3;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:21px 22px 17px;border-bottom:1px solid var(--line);gap:15px}.sheet-head .eyebrow{font-size:8px;margin-bottom:6px}.sheet-head h2{font-size:19px}.close{font-size:27px;color:#8192a9;width:39px;height:39px;min-height:39px;border-radius:9px;background:#f5f7fa}.sheet-body{padding:20px 22px}.sheet-body label{display:block;font-size:12px;font-weight:550;color:#69809d}.sheet-body label input,.sheet-body label select{display:block;margin-top:6px;font-size:14px;font-weight:400}.source-reference{padding:11px 12px;background:#f5f8fc;border:1px solid #e3eaf4;font-size:10px;color:#7b90ad;border-radius:8px;line-height:1.7;overflow-wrap:anywhere;margin-bottom:19px}.form-section{display:flex;gap:8px;align-items:center;margin:26px 0 13px}.form-section>span{font-size:10px;color:#91a9c8}.form-section h3{font-size:13px;flex:1}.form-section>small{font-size:9px}.form-section>button{font-size:11px;color:#2366df;min-height:34px;font-weight:650}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.help{font-size:11px;line-height:1.8;color:#8a9ab0;margin-top:10px}.hierarchy{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-top:15px}.capacity-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border:0;padding:0;margin:0}.capacity-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.capacity-picker label{position:relative;border:1px solid #dae3ef;border-radius:11px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:14px;cursor:pointer;gap:1px}.capacity-picker label:has(input:checked){background:#edf4ff;border:2px solid #397be4;padding:13px;color:#2366df}.capacity-picker input{position:absolute;width:1px;height:1px;min-height:1px;padding:0;opacity:0}.capacity-picker label:focus-within{outline:3px solid #abc9fc;outline-offset:2px}.capacity-picker b{font-size:28px;color:#52729b;line-height:1.2;letter-spacing:-1px}.capacity-picker span{font-size:10px;font-weight:450;color:#8398b3}.text-btn{font-size:10px;color:#7c92af;min-height:40px;text-decoration:underline}.splitter-label{margin-top:9px;display:flex!important;align-items:center;gap:5px;flex-wrap:wrap}.splitter-label select{margin-left:auto;max-width:180px}.splitter-label small{font-size:9px}.port-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:22px 0 12px}.port-heading b{font-size:12px}.port-heading small{font-size:9px}.port-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.port{display:flex;flex-direction:column;align-items:center;padding:11px 4px;border:1px solid #e0e6ef;background:#f7f9fc;border-radius:9px;min-height:66px}.port b{font-size:19px;font-weight:600;color:#8595aa}.port small{font-size:8px;line-height:1.5}.port.available{background:#eaf7f0;border-color:#bfe2d2}.port.available b,.port.available small{color:#208869}.port.used{background:#edf3ff;border-color:#c3d7f6}.port.used b,.port.used small{color:#3473c7}.port.reserved{background:#fff6e3;border-color:#eedaad}.port.reserved b,.port.reserved small{color:#b98c34}.port.faulty{background:#fff0ef;border-color:#edceca}.port.faulty b,.port.faulty small{color:#c26e68}.port-legend{display:flex;gap:8px;flex-wrap:wrap;font-size:8px;color:#8398b5;margin-top:12px}.port-legend>span{display:flex;align-items:center;gap:4px}.port-legend i{width:6px;height:6px;border-radius:50%;background:#a4b0c2}.port-legend .available{background:#2b9c79}.port-legend .used{background:#4380d5}.port-legend .reserved{background:#d1a044}.port-legend .faulty{background:#cf7a71}.sheet-actions{position:sticky;bottom:0;border-top:1px solid var(--line);background:#fff;padding:15px 22px max(15px,env(safe-area-inset-bottom));display:flex;gap:10px;z-index:3;justify-content:flex-end}.sheet-actions>button{flex:1}.form-error{margin-top:16px;padding:12px;background:#fff1ef;border:1px solid #f4d5ce;color:#b96b5a;border-radius:9px;font-size:11px;line-height:1.7}.small-dialog{border-radius:15px;width:430px;max-width:calc(100% - 30px);max-height:85dvh;margin:auto}.port-options{padding:12px 20px 20px;display:grid;gap:7px}.port-options button{text-align:left;min-height:48px;padding:11px 14px;border:1px solid var(--line);border-radius:9px;font-size:13px}.port-options button.selected{background:#edf4ff;border-color:#92b9f3}.confirm-body{padding:18px 22px;font-size:13px;color:#6a819f;line-height:1.8}.confirm-body pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;background:#f5f8fc;border:1px solid var(--line);font-size:10px;padding:12px}.transfer-intro{background:linear-gradient(135deg,#10213d,#224d7c);color:white;padding:23px;border-radius:14px;margin-bottom:20px}.transfer-intro h2{font-size:20px;color:white}.transfer-intro p{font-size:12px;line-height:1.8;color:#bbcee5;margin-top:9px}.transfer-card{background:#fff;border:1px solid var(--line);padding:20px;border-radius:12px;margin-bottom:12px}.transfer-card h3{font-size:14px;margin-bottom:7px}.transfer-card p{font-size:12px;line-height:1.8;color:#8a9bb3;margin-bottom:15px}.transfer-card .primary,.transfer-card .secondary{width:100%}.transfer-card .badge{margin-bottom:12px}.transfer-path{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:18px;font-size:10px;font-weight:600;color:#cfdeee}.transfer-path>b{background:#ffffff14;border:1px solid #ffffff20;border-radius:6px;padding:8px}.pending-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:17px;margin-bottom:12px}.pending-card h3{font-size:13px;margin:10px 0 7px}.pending-card p{font-size:11px;color:#7e94b1;line-height:1.7}.pending-card .actions{display:flex;gap:8px;margin-top:13px}.pending-card .actions button{font-size:11px;flex:1}.pending-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:18px}.pending-toolbar h2{font-size:15px}.pending-toolbar button{font-size:11px;min-height:40px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:80;background:#173d33;color:#e2f4eb;box-shadow:0 6px 30px #11233e24;border-radius:11px;max-width:calc(100% - 32px);width:430px;padding:15px 18px;font-size:12px;line-height:1.7}#toast.error{background:#79403d;color:#fff0eb}.picking{outline:4px solid #2366df;outline-offset:-4px}.maplibregl-ctrl-attrib{font-size:9px!important}.maplibregl-canvas{outline:none}.overview-note{font-size:10px;color:#869ab7;line-height:1.7;margin-top:10px}.return-preview{font-size:11px;border:1px solid var(--line);border-radius:10px;padding:12px;max-height:260px;overflow:auto;margin-top:15px}.return-preview>div{padding:8px 0;border-bottom:1px solid var(--line)}@media(min-width:760px){main{padding-top:35px}.summary{gap:15px}.stat{padding:18px 22px}.stat small{font-size:11px}.stat b{font-size:31px}.stat .sub{font-size:10px}.cto-list{grid-template-columns:1fr 1fr}#network-map{height:485px}.bottom-nav{left:50%;transform:translateX(-50%);max-width:650px;border:1px solid var(--line);border-bottom:0;border-radius:18px 18px 0 0}.filters select{font-size:12px}.cto-info b{font-size:13px}dialog{border-radius:18px;margin:auto;max-height:90dvh}.transfer-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px}.transfer-card{margin:0}.transfer-card.wide{grid-column:1/-1}}@media(max-width:380px){main{padding-left:15px;padding-right:15px}.top{padding-left:15px;padding-right:15px}.new span{display:none}.summary{gap:6px}.stat{padding:13px 10px}.stat small{font-size:9px}.stat .sub{font-size:8px}.sheet-body{padding:17px}.sheet-head{padding:17px}.sheet-actions{padding-left:17px;padding-right:17px}.sheet-actions button{padding:10px;font-size:11px}.hierarchy{grid-template-columns:1fr}.page-head h1{font-size:24px}.filters{gap:6px}}

.cto-icon{min-width:44px;width:44px;height:44px;font-size:26px;color:#94a3b8;background:#edf0f4}.cto-icon.complete{color:#00ac39;background:#dcffe6}.map-caption{flex-wrap:wrap;gap:6px}.map-layers button{min-height:38px}

.capacity-picker{grid-template-columns:repeat(4,minmax(0,1fr))}
