*{box-sizing:border-box} :root{--ink:#172c40;--muted:#64768a;--teal:#087f80;--line:#e3eaf0;--light:#f5f8fb}body{margin:0;background:#f5f7fa;color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}main{max-width:1120px;margin:auto;padding:0 28px}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #49b7c6;outline-offset:3px}[hidden]{display:none!important}header{height:90px;display:flex;align-items:center;gap:20px}.logo{font-size:25px;font-weight:800;letter-spacing:-1px;color:var(--ink);text-decoration:none}.logo>span:last-child{font-weight:400;color:var(--teal)}.logo-mark{color:var(--teal);margin-right:8px}.header-note{margin-left:auto;color:var(--muted);font-size:13px}.icon-button,.close{background:white;border:1px solid var(--line);border-radius:12px;width:42px;height:42px;font-size:24px;color:var(--ink)}.hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#122e43,#102238 70%,#174955);color:white;border-radius:24px;min-height:254px;padding:34px 40px;margin-bottom:28px}.hero-copy{position:relative;z-index:1}.hero .eyebrow{color:#81d2d1}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--muted)}h1{font-size:42px;line-height:1.06;letter-spacing:-1.6px;margin:14px 0}h2{font-size:21px;letter-spacing:-.5px;margin:4px 0 12px}h3{font-size:18px}.hero p{font-size:14px;color:#b7ccd9;line-height:1.6;margin-bottom:0}.fiber-art{position:absolute;right:-12px;bottom:-30px;width:58%;height:105%;opacity:.95}.workspace{display:grid;grid-template-columns:340px 1fr;gap:24px;align-items:start}section{background:white;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 6px 24px #172c4004}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.section-head h2{margin:0}.mini-tag{font-size:10px;color:var(--teal);background:#eaf7f4;padding:5px 9px;border-radius:20px;font-weight:700;white-space:nowrap}.chosen-title{display:block;font-size:25px;font-weight:750;letter-spacing:-.8px;margin:16px 0 4px}.chosen-description{color:var(--muted);font-size:14px}.cable-stats{display:flex;gap:16px;margin:20px 0}.cable-stats b{font-size:23px;display:block;line-height:1.2}.cable-stats span{color:var(--muted);font-size:11px}.cable-stats>div+div{border-left:1px solid var(--line);padding-left:16px}.palette{display:flex;flex-wrap:wrap;gap:5px;margin:18px 0 22px}.palette i{width:15px;height:15px;border-radius:50%;border:1px solid #0002}.full{width:100%}.secondary,.primary{border-radius:11px;padding:12px 16px;font-weight:650}.secondary{background:#f5f8fa;border:1px solid #dce6ee;color:var(--ink);display:flex;justify-content:space-between;align-items:center}.primary{background:var(--teal);color:white;border:1px solid var(--teal)}.primary:hover{background:#076b6c}.secondary:hover{background:#eaf1f5}.adjust{margin-top:15px;font-size:12px;color:var(--muted)}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.adjust summary:after{content:' +';float:right}.adjust[open] summary:after{content:' −'}.divider{height:1px;background:var(--line);margin:22px 0 16px}.add-button{width:100%;background:transparent;border:0;padding:5px 0;display:flex;align-items:center;gap:12px;text-align:left;color:var(--teal);font-weight:650}.plus{display:grid;place-items:center;border:1px dashed #91c6c6;border-radius:12px;width:38px;height:38px;flex-shrink:0;background:#f1f9f7}.plus svg{display:block;width:16px;height:16px}.add-button small{display:block;font-weight:400;color:var(--muted);font-size:11px;margin-top:3px}.tip{margin-top:16px;background:transparent;box-shadow:none;display:flex;gap:12px;border:0;padding:10px 4px;color:var(--muted);font-size:12px}.tip>span{font-size:26px;color:var(--teal)}.tip b{color:#40566c}.tip p{margin:5px 0}.lookup{padding:30px;min-height:450px}label{display:block;font-size:12px;color:var(--muted);font-weight:550}input,textarea,select{background:#fafcfd;border:1px solid #d8e3ec;border-radius:10px;padding:11px 12px;color:var(--ink);width:100%;margin:6px 0 16px}textarea{font-size:13px;resize:vertical}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.number-control{display:flex;align-items:center;gap:12px;background:#f7f9fc;border:1px solid var(--line);border-radius:16px;padding:12px;margin:8px 0 22px}.number-control input{text-align:center;border:0;background:none;font-size:46px;font-weight:750;line-height:1;min-width:0;width:100%;margin:0;padding:0;color:#142f46;appearance:textfield}.number-control input::-webkit-inner-spin-button{appearance:none}.number-control button{display:grid;place-items:center;padding:0;width:44px;height:44px;flex-shrink:0;border:1px solid #dde6ef;background:white;border-radius:11px;color:var(--muted)}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.result-card{margin:0;background:#fbfcfd;border:1px solid var(--line);border-radius:15px;padding:20px;min-height:130px;position:relative;overflow:hidden}.result-card:before{content:'';height:4px;position:absolute;top:0;left:0;right:0;background:var(--color)}.result-label{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);display:block;margin-bottom:18px}.result-color{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:750;line-height:1.2}.result-mark{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:10px}.swatch{display:inline-block;width:27px;height:27px;border:1px solid #0002;border-radius:50%;flex-shrink:0}.note{font-size:12px;color:var(--muted);line-height:1.7}.warning{margin:16px 0}.reverse-panel{border-top:1px solid var(--line);margin-top:20px;padding-top:18px;font-size:12px}.reverse-panel summary{display:flex;justify-content:space-between;gap:14px}.reverse-panel summary span{color:var(--teal);white-space:nowrap}.table-panel{margin:24px 0}.table-panel h2{margin-top:5px}.table-panel .section-head{margin-bottom:0}#tubes select{margin:0;width:auto;max-width:280px;font-size:12px}.scroll{overflow:auto;max-height:420px;margin-top:16px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);background:#f7f9fb}td,th{text-align:left;border-bottom:1px solid #edf1f5;padding:12px 14px}td:first-child{font-weight:700}td .secondary{background:transparent;border:0;padding:0;gap:8px;justify-content:flex-start;font-weight:500;font-size:13px}td .swatch{width:17px;height:17px}.sources{padding:20px 4px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.sources summary{display:flex;justify-content:space-between;color:var(--ink);font-size:13px;font-weight:650}.sources p{max-width:800px;line-height:1.8}a{color:var(--teal)}footer{padding:25px 0 35px;font-weight:700;color:var(--muted);font-size:12px;display:flex;justify-content:space-between}footer span{font-weight:400}.error{color:#a7362d}.error:empty,#status:empty{display:none}dialog{width:min(600px,calc(100% - 28px));max-height:88dvh;border:1px solid #dce5ed;padding:28px;border-radius:24px;color:var(--ink);box-shadow:0 24px 80px #0b233b33;background:white}dialog::backdrop{background:#0b233b77;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.dialog-head h2{margin-top:5px;margin-bottom:0}.close{flex-shrink:0;border:0;background:#f1f5f8}.catalogue{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.category-title{grid-column:1/-1;font-size:10px;font-weight:750;letter-spacing:1.2px;color:var(--muted);margin-top:10px}.catalogue-card,.variant{background:white;border:1px solid #dce6ed;border-radius:14px;padding:18px;text-align:left;display:flex;gap:12px;color:var(--ink)}.catalogue-card{display:block;min-height:112px}.catalogue-card:hover,.variant:hover{background:#f1f8f7;border-color:#70b8b8}.catalogue-card strong{display:block;font-size:18px;letter-spacing:-.3px;margin-bottom:6px}.catalogue-card small{font-size:11px;color:var(--muted);display:block}.catalogue-card .palette{margin:12px 0 0}.catalogue-card .palette i{width:11px;height:11px}.text-button{border:0;background:none;color:var(--teal);padding:12px 0;font-size:13px}.variants{display:grid;gap:10px}.variant{align-items:center;width:100%}.variant[aria-pressed=true]{background:#edf8f5;border:2px solid #087f80;padding:17px}.variant strong{display:block;font-size:18px}.description,.badge{display:block;font-size:12px;color:var(--muted);margin-top:3px}.badge{font-size:10px}.cable-symbol{width:42px;height:42px;border:3px solid #7894a6;border-radius:50%;display:grid;grid-template-columns:repeat(3,6px);justify-content:center;align-content:center;gap:3px;background:#f0f5f8;flex-shrink:0}.cable-symbol i{width:6px;height:6px;border-radius:50%}.sequence-editor{margin:8px 0 20px;font-size:12px}.sequence-editor summary{color:var(--teal);padding:10px 0}.saved-card{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:12px 0}.saved-card .load-saved{background:none;border:0;text-align:left;color:var(--ink);flex:1;padding:0;font-weight:650;word-break:break-word}.saved-card small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:4px}.delete-saved{color:#a9443b;border:1px solid #eddcd8;background:#fff7f5;border-radius:9px;padding:8px;font-size:12px}.saved-summary{border:0;background:none;color:var(--teal);font-size:12px;padding:14px 0 0;width:100%;text-align:left}.empty-saved{padding:30px 10px;text-align:center;color:var(--muted);font-size:13px;line-height:1.8}@media(max-width:800px){main{padding:0 18px}.workspace{grid-template-columns:280px 1fr;gap:16px}.lookup{padding:22px}.result-card{padding:16px}.result-color{font-size:20px}.hero{padding:30px}.header-note{font-size:11px}}@media(max-width:640px){main{padding:0 14px}header{height:72px}.header-note{display:none}.icon-button{margin-left:auto}.hero{padding:26px;min-height:224px;border-radius:20px;margin-bottom:18px}h1{font-size:35px}.hero .eyebrow{font-size:9px;letter-spacing:1px}.fiber-art{right:-110px;width:80%;opacity:.5}.hero-copy{max-width:80%}.workspace{display:flex;flex-direction:column;gap:16px}.workspace aside{width:100%}.cable-panel{padding:20px}.cable-panel .section-head{margin-bottom:8px}.chosen-title{margin:10px 0 4px;font-size:23px}.cable-stats{margin:12px 0}.palette{margin:12px 0 16px}.tip{display:none}.lookup{width:100%;padding:22px}.lookup h2{font-size:19px}.result-grid{gap:10px}.result-card{padding:16px 13px}.result-color{font-size:19px;gap:8px}.result-mark{font-size:10px}.table-panel{padding:20px}.table-panel .section-head{align-items:flex-start;flex-direction:column}#tubes{width:100%}#tubes select{max-width:none;width:100%}.reverse-panel summary{font-size:11px}footer{gap:20px;font-size:10px}dialog{padding:22px;max-height:90dvh}.catalogue-card{padding:14px}.dialog-head h2{font-size:20px}}

button:disabled{cursor:default;opacity:.45}.update-notice{background:#e2f5ee;border:1px solid #b8dace;border-radius:12px;padding:12px 18px;margin:14px 0;font-size:13px}.update-notice button{border:0;background:transparent;color:var(--teal);font-weight:700;margin-left:10px}.chosen-title{overflow-wrap:anywhere}.dialog-head .close{min-width:42px}.catalogue-card:focus-visible{outline-offset:1px}@media(prefers-reduced-motion:reduce){button{transition:none}}

.color-name{min-width:0;overflow-wrap:anywhere}.result-color{flex-wrap:wrap}.number-control button{min-width:44px;min-height:44px}.close{min-height:44px;min-width:44px}.text-button{min-height:44px}.delete-saved{min-height:44px}@media(max-width:360px){.result-color{font-size:18px}.hero-copy{max-width:100%}.reverse-panel summary{flex-wrap:wrap}.catalogue{gap:8px}.catalogue-card strong{font-size:16px}.lookup{padding:18px}}

.sequence-check{margin-top:14px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;color:var(--teal)}.sequence-list{display:grid;gap:6px;color:var(--ink)}.sequence-item{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.5;padding:5px;border-radius:6px;background:#f7f9fb}.sequence-item .swatch{width:14px;height:14px}.sequence-check h3{font-size:13px;color:var(--ink)}

.cable-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 40px;gap:8px;align-items:start}.cable-stats>div+div{padding-left:8px}.stats-adjust{width:40px;height:40px;min-width:40px;margin-top:0;align-self:center;padding:0;font-size:24px;cursor:pointer}.stats-adjust:hover{background:#e0f1ed}.cable-stats span{display:block;line-height:1.4;margin-top:5px}.cable-stats>div{min-width:0}#countDialog{max-width:480px}

.logo{display:flex;align-items:center;gap:0;font-size:25px;letter-spacing:-.8px;line-height:1}.brand-symbol{width:36px;height:36px;flex-shrink:0;margin-right:10px}.hero{min-height:170px;padding:30px 36px}.hero h1{font-size:38px;line-height:1.12;margin:10px 0}.hero p{margin:0;font-size:14px}.fiber-art{width:50%;right:0;bottom:-65px;opacity:.8}.hero-copy{max-width:65%}@media(max-width:640px){.logo{font-size:24px}.brand-symbol{width:34px;height:34px;margin-right:8px}.hero{min-height:145px;padding:25px}.hero h1{font-size:29px;margin:8px 0 9px;letter-spacing:-.9px}.hero .eyebrow{font-size:9px;letter-spacing:1.5px}.hero p{font-size:12px}.hero-copy{max-width:100%}.fiber-art{width:65%;right:-65px;bottom:-58px;opacity:.32}}

.workspace>*{min-width:0}.table-panel{min-width:0}.table-panel .section-head{gap:16px;flex-wrap:wrap}.tube-toolbar{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:8px;align-items:center;min-width:0}.tube-arrow{width:42px;height:42px;border:1px solid #dce6ee;border-radius:11px;background:#f7f9fb;color:#25445a;font-size:20px}.tube-arrow:hover:not(:disabled){background:#e7f4f2}#tubes{min-width:0}#tubes select{width:100%;min-width:0;max-width:none;height:42px;margin:0;background:white;font-weight:650}.tube-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f2f7fa;border:1px solid #e1eaf0;border-radius:13px;padding:14px 16px;margin-top:20px;min-width:0}.tube-color{display:flex;align-items:center;gap:10px;min-width:0}.tube-color>span{min-width:0;overflow-wrap:anywhere}.tube-color strong{display:block;font-size:14px}.tube-color small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.tube-range{background:white;border:1px solid #dce6ee;border-radius:8px;color:#466277;padding:6px 10px;font-size:11px;white-space:nowrap}.tile-hint{margin:14px 0}.fiber-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;min-width:0}.fiber-tile{position:relative;min-width:0;background:white;border:1px solid #dce6ee;border-radius:14px;padding:14px 12px;text-align:left;color:var(--ink);box-shadow:0 2px 5px #132e4203;overflow:hidden}.fiber-tile:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--fiber-color)}.fiber-tile:hover{background:#f4f9fb;border-color:#99b6c7}.fiber-tile[aria-pressed="true"]{border:2px solid #07898d;padding:13px 11px;background:#eef9f6;box-shadow:0 3px 14px #07898d12}.tile-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.tile-top strong{font-size:23px;letter-spacing:-.5px;line-height:1.2}.tile-state{color:#07898d;font-size:14px;font-weight:750}.tile-position{display:block;font-size:10px;color:var(--muted);margin-top:4px}.tile-color{display:flex;align-items:center;gap:7px;margin-top:14px;min-width:0;font-size:12px;font-weight:650;flex-wrap:wrap}.tile-color>span:last-child{min-width:0;overflow-wrap:anywhere}.tile-color .swatch{width:18px;height:18px}.tile-mark{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:8px;overflow-wrap:anywhere}.sources,.sequence-item,.saved-card{overflow-wrap:anywhere}footer{flex-wrap:wrap}.hero{isolation:isolate}.fiber-art{pointer-events:none}@media(max-width:900px){.fiber-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:640px){.fiber-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.table-panel .section-head{flex-direction:row;width:100%}.table-panel #tubes{width:100%;max-width:none}.tube-toolbar{grid-template-columns:44px minmax(0,1fr) 44px}.tube-arrow{width:44px;height:44px}#tubes select{height:44px}.tube-summary{padding:12px;align-items:flex-start}.tube-range{font-size:10px;padding:5px 8px}.fiber-tile{padding:14px 12px}.tile-color{font-size:12px}.table-panel{padding:20px}}@media(max-width:430px){.fiber-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tile-color{flex-wrap:nowrap}.tube-summary{flex-wrap:wrap}.tube-range{margin-left:0}.catalogue-card{min-width:0}.catalogue-card strong{overflow-wrap:anywhere}}

.fields>*{min-width:0}input,textarea{min-width:0}.fiber-tile:focus-visible{outline:3px solid #49b7c6;outline-offset:2px}

.reverse-access{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.reverse-access .add-button{font-size:13px}.reverse-access .add-button small{font-size:11px}.reverse-access .plus{flex-shrink:0}#reverseDialog{max-width:480px}

.marking-panel{background:#f0f6f9;border:1px solid #d4e3eb;border-radius:14px;padding:16px;margin-top:16px}.marking-panel>strong{font-size:12px;color:#3b6178}.marking-panel p{font-size:14px;font-weight:650;margin:8px 0}.marking-panel small{font-size:10px;line-height:1.6;color:var(--muted);display:block}.marking-source{margin-top:9px}.fiber-sample{height:30px;position:relative;margin:12px 0;overflow:hidden;border-radius:6px;background:#e3edf2}.sample-strand{position:absolute;left:0;right:0;top:12px;height:6px;background:var(--strand);border:1px solid #0002}.sample-marks{position:absolute;top:9px;display:flex;gap:4px;transform:translateX(-50%)}.sample-marks i{display:block;width:3px;height:12px;border-radius:1px;background:#101010}input:read-only{background:#eff3f6;color:#64768a}

#tubes .opgw-groups{margin-top:10px;font-size:11px;font-weight:500}.marking-panel{overflow-wrap:anywhere}.sample-marks:empty{display:none}

.hero-tool{display:inline-flex;align-items:center;gap:10px;border:1px solid #6d9daa;color:#f1fbfc;background:#214b5d;border-radius:10px;padding:9px 14px;margin-top:15px;font-size:12px;font-weight:650}.hero-tool:hover{background:#316474}.hero-tool span:first-child{font-size:18px}#splitterDialog{width:min(840px,calc(100% - 28px))}.splitter-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.splitter-layout>*{min-width:0}.splitter-layout h3{font-size:15px}.splitter-stage{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) 34px;gap:9px;align-items:center;border:1px solid #dce6ee;border-radius:12px;padding:10px;margin-bottom:10px;background:#f8fafc}.splitter-stage label{min-width:0;font-size:10px}.splitter-stage input,.splitter-stage select{margin:4px 0 0;padding:9px 8px;width:100%}.stage-number{font-size:13px;color:#4a7588;font-weight:750}.splitter-stage .delete-saved{padding:0;min-height:34px;height:34px;font-size:20px;align-self:end}.splitter-details{border-top:1px solid var(--line);padding-top:14px;margin-top:18px;font-size:12px}.splitter-details summary{color:var(--teal);padding-bottom:8px}.splitter-result{border:1px solid #cce7db;border-radius:16px;padding:18px;background:#f0faf5;font-size:12px}.splitter-result h3{margin:0 0 16px;font-size:17px}.budget-over{background:#fff5f2;border-color:#efcbc0}.budget-low{background:#fff9e9;border-color:#e8dba9}.splitter-stats{display:grid;gap:12px;grid-template-columns:1fr 1fr}.splitter-stats small{display:block;color:var(--muted);font-size:10px}.splitter-stats strong{display:block;font-size:20px;letter-spacing:-.5px;margin-top:4px}.budget-bar{height:8px;background:#d9e4e9;border-radius:10px;overflow:hidden;display:flex;margin:18px 0 14px}.part-splitter{background:#378799}.part-fiber{background:#97bbc3}.part-joins{background:#dfa36f}.part-reserve{background:#b5c0d0}.repeat-result{line-height:1.6;font-weight:600}.splitter-suggestion{border:1px solid var(--line);border-radius:12px;padding:14px;margin-top:10px;background:white;font-size:12px}.splitter-suggestion p{font-size:11px;color:var(--muted)}.splitter-suggestion .secondary{font-size:12px;padding:8px 12px}.splitter-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.splitter-reference{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:3px;min-width:0}.splitter-reference strong{font-size:17px}.splitter-reference span{font-size:12px;font-weight:650;color:#3b7281}.splitter-reference small{font-size:10px;color:var(--muted)}@media(max-width:700px){.splitter-layout{grid-template-columns:1fr;gap:18px}.splitter-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.splitter-stage{gap:7px;padding:10px 8px;grid-template-columns:18px minmax(0,1fr) minmax(0,1fr) 30px}.hero{min-height:190px}.hero-tool{margin-top:12px}}

.splitter-stats strong{overflow-wrap:anywhere}.splitter-suggestion{overflow-wrap:anywhere}

.sample-marks i.sample-dot{width:7px;height:7px;border-radius:50%;align-self:center;background:#050505;box-shadow:0 0 0 1px #fff5}#draftMarkFields{padding:12px;border:1px solid #dce7eb;border-radius:14px;background:#f7fafb;margin:12px 0}#draftMarkFields[hidden]{display:none}
.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.header-actions .icon-button{margin-left:0;min-width:44px;min-height:44px;display:grid;place-items:center}.settings-button:hover{background:#eaf3f5}#settingsDialog{max-width:420px}.setting-group{margin-top:24px}.setting-group h3{font-size:13px;color:var(--muted);margin:0 0 10px}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-option{border:1px solid var(--line);background:white;color:var(--ink);border-radius:14px;padding:12px;text-align:left;font-size:13px;font-weight:650}.theme-option[aria-pressed=true]{border:2px solid var(--teal);padding:11px;box-shadow:0 0 0 3px #087f8010}.theme-preview{height:70px;border:1px solid #c9d6df;border-radius:9px;display:flex;gap:5px;padding:8px;margin-bottom:9px;position:relative;padding-top:26px}.theme-preview:before{content:'';height:12px;position:absolute;top:7px;left:8px;right:8px;background:#1e465c;border-radius:4px}.theme-preview i{width:40%;height:100%;border-radius:4px}.theme-preview i+i{width:60%}.preview-light{background:#edf2f6}.preview-light i{background:white;border:1px solid #d5e1e7}.preview-dark{background:#101923;border-color:#344a60}.preview-dark i{background:#1b2c3c;border:1px solid #354f65}#languageChoice{font-size:14px}header{gap:14px}@media(max-width:640px){.header-actions{margin-left:auto;gap:8px}.header-actions .icon-button{width:44px;height:44px}.logo{font-size:23px}.brand-symbol{width:30px;height:30px}.header-note{display:none}}
:root[data-theme=dark]{color-scheme:dark;--ink:#e9f1f8;--muted:#a8b9c9;--teal:#70d5d0;--line:#324454;--light:#1b2a38;--surface:#172432;--surface-raised:#1e3040;--field:#12202d}
[data-theme=dark] body{background:#101923;color:var(--ink)}[data-theme=dark] section,[data-theme=dark] dialog,[data-theme=dark] .catalogue-card,[data-theme=dark] .variant,[data-theme=dark] .fiber-tile,[data-theme=dark] .splitter-suggestion,[data-theme=dark] .theme-option{background:var(--surface);border-color:var(--line);color:var(--ink)}[data-theme=dark] .icon-button,[data-theme=dark] .close,[data-theme=dark] .number-control button,[data-theme=dark] .tube-arrow{background:var(--surface-raised);border-color:var(--line);color:var(--ink)}[data-theme=dark] input,[data-theme=dark] textarea,[data-theme=dark] select,[data-theme=dark] #tubes select{background:var(--field);border-color:var(--line);color:var(--ink)}[data-theme=dark] input:read-only{background:#25313e;color:var(--muted)}[data-theme=dark] .number-control{background:var(--field);border-color:var(--line)}[data-theme=dark] .number-control input{background:transparent;color:var(--ink)}[data-theme=dark] .result-card,[data-theme=dark] .sequence-item,[data-theme=dark] .tube-summary,[data-theme=dark] .splitter-stage,[data-theme=dark] #draftMarkFields,[data-theme=dark] .marking-panel{background:var(--surface-raised);border-color:var(--line)}[data-theme=dark] .marking-panel>strong,[data-theme=dark] .tip b,[data-theme=dark] .stage-number,[data-theme=dark] .splitter-reference span{color:#b9d9e8}[data-theme=dark] .secondary,[data-theme=dark] .tube-range{background:var(--surface-raised);border-color:var(--line);color:var(--ink)}[data-theme=dark] .secondary:hover,[data-theme=dark] .catalogue-card:hover,[data-theme=dark] .variant:hover,[data-theme=dark] .fiber-tile:hover,[data-theme=dark] .settings-button:hover,[data-theme=dark] .tube-arrow:hover:not(:disabled){background:#273e50;border-color:#618699}[data-theme=dark] .primary{background:#087f80;border-color:#329e9e;color:white}[data-theme=dark] .primary:hover{background:#0a9293}[data-theme=dark] .plus,[data-theme=dark] .mini-tag,[data-theme=dark] .update-notice{background:#173b40;color:#85e4db;border-color:#428a8b}[data-theme=dark] .stats-adjust:hover{background:#205058}[data-theme=dark] .variant[aria-pressed=true],[data-theme=dark] .fiber-tile[aria-pressed=true]{background:#17393e;border-color:#70d5d0}[data-theme=dark] .tile-state{color:#8be9df}[data-theme=dark] .theme-option[aria-pressed=true]{border-color:var(--teal)}[data-theme=dark] .delete-saved{background:#3f282b;border-color:#795154;color:#ffc0b9}[data-theme=dark] .error{color:#ffb7a9}[data-theme=dark] .splitter-result{background:#18382f;border-color:#397360}[data-theme=dark] .budget-over{background:#3c2527;border-color:#865454}[data-theme=dark] .budget-low{background:#3c3420;border-color:#897343}[data-theme=dark] .budget-bar{background:#3a4c5b}[data-theme=dark] .cable-symbol{background:#203749;border-color:#83a4bc}[data-theme=dark] .tip{background:transparent}[data-theme=dark] .brand-symbol{filter:brightness(1.8)}[data-theme=dark] dialog::backdrop{background:#02080fc4}[data-theme=dark] .swatch,[data-theme=dark] .palette i{border-color:#bdcddd70}dialog,main,.header-actions{min-width:0}.setting-group label{font-size:13px}

select:focus-visible{outline:3px solid #49b7c6;outline-offset:3px}

.fiber-tile.opgw-visual,.result-card.opgw-visual{padding-top:22px}.fiber-tile.opgw-visual[aria-pressed="true"]{padding-top:21px}.opgw-visual:before{height:10px}.stripe-marks{position:absolute;top:0;left:50%;transform:translateX(-50%);height:10px;display:flex;align-items:center;justify-content:center;gap:5px;pointer-events:none}.stripe-marks i{display:block;flex-shrink:0;background:#080808;box-shadow:0 0 0 1px #fff9}.stripe-dots i{width:7px;height:7px;border-radius:50%}.stripe-rings{gap:4px}.stripe-rings i{width:3px;height:12px;border-radius:1px}
header{height:108px;gap:18px;flex-wrap:wrap}.logo{font-size:32px;letter-spacing:-1.1px}.brand-symbol{width:54px;height:54px;margin-right:12px}.top-nav{margin-left:auto}.nav-tool{display:inline-flex;align-items:center;gap:9px;min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px 16px;background:white;text-decoration:none;font-size:12px;font-weight:650;color:var(--ink)}.nav-tool:hover{background:#eaf7f4;border-color:#79babb}.nav-tool>span:first-child{font-size:20px;color:var(--teal)}.brand-strand{stroke-width:4;stroke-linecap:round}.strand-one{stroke:#183349}.strand-two{stroke:#7a9aab}.strand-main{stroke:#078b91}.splice-core{fill:#078b91;stroke:#f5f7fa;stroke-width:2}.splice-pulse{stroke:#078b91;stroke-width:1.4;opacity:0;transform-origin:32px 32px}.logo:hover .splice-pulse,.logo:focus-visible .splice-pulse{animation:splice-pulse 1.7s ease-out infinite}.logo:hover .strand-main,.logo:focus-visible .strand-main{stroke-dasharray:8 5;animation:signal-flow .8s linear infinite}@keyframes splice-pulse{0%{opacity:.75;transform:scale(.65)}100%{opacity:0;transform:scale(1.55)}}@keyframes signal-flow{to{stroke-dashoffset:-26}}.back-to-fibers{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:13px;margin:0 0 12px}.calculator-page{padding:30px;margin-bottom:24px}.calculator-page h1{font-size:31px;margin:8px 0 0}.calculator-page .splitter-layout{margin-top:24px}.calculator-page .dialog-head{margin-bottom:18px}[data-theme=dark] .nav-tool{background:var(--surface-raised);color:var(--ink);border-color:var(--line)}[data-theme=dark] .nav-tool:hover{background:#25434a}[data-theme=dark] .strand-one{stroke:#d9eef6}[data-theme=dark] .strand-two{stroke:#7193a6}[data-theme=dark] .strand-main{stroke:#70d5d0}[data-theme=dark] .splice-core{fill:#70d5d0;stroke:#101923}[data-theme=dark] .splice-pulse{stroke:#70d5d0}[data-theme=dark] .brand-symbol{filter:none}@media(max-width:640px){header{height:auto;min-height:110px;padding:15px 0;gap:12px}.logo{font-size:28px}.brand-symbol{width:46px;height:46px;margin-right:9px}.header-actions{margin-left:auto}.top-nav{order:3;flex:0 0 100%;margin-left:0}.nav-tool{width:100%;justify-content:center;padding:9px 12px}.hero{min-height:150px}.calculator-page{padding:20px}.calculator-page h1{font-size:25px}.back-to-fibers{font-size:12px}}@media(prefers-reduced-motion:reduce){.logo .splice-pulse,.logo .strand-main{animation:none!important}.logo:hover .splice-pulse{opacity:.5}}
/* Larger type and controls for field use. */
.calculator-page{font-size:16px;line-height:1.65}.calculator-page label{font-size:15px;color:var(--ink);font-weight:600}.calculator-page input{font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;min-height:52px;padding:12px}.calculator-page select{font-size:17px;min-height:52px;padding:12px}.calculator-page .note{font-size:15px;line-height:1.75}.calculator-page .eyebrow{font-size:12px}.calculator-page .splitter-layout h3{font-size:21px}.calculator-page .splitter-stage{grid-template-columns:30px minmax(0,1fr) minmax(0,1fr) 44px;gap:12px;padding:14px}.calculator-page .splitter-stage label{font-size:14px}.calculator-page .splitter-stage input,.calculator-page .splitter-stage select{font-size:21px;min-height:48px;padding:10px}.calculator-page .stage-number{font-size:20px}.calculator-page .splitter-stage .delete-saved{width:44px;min-height:48px;height:48px;font-size:25px}.calculator-page .add-button{font-size:16px;min-height:48px}.calculator-page .splitter-result{font-size:16px;padding:22px}.calculator-page .splitter-result h3{font-size:22px}.calculator-page .splitter-stats{gap:18px;grid-template-columns:repeat(2,minmax(0,1fr))}.calculator-page .splitter-stats small{font-size:14px;line-height:1.5}.calculator-page .splitter-stats strong{font-size:32px;line-height:1.25;font-variant-numeric:tabular-nums}.calculator-page .splitter-suggestion{font-size:16px;padding:18px}.calculator-page .splitter-suggestion p{font-size:15px}.calculator-page .splitter-suggestion .secondary{font-size:15px;min-height:44px;padding:10px 14px}.calculator-page .splitter-details{font-size:16px}.calculator-page .splitter-reference strong{font-size:24px}.calculator-page .splitter-reference span{font-size:18px}.calculator-page .splitter-reference small{font-size:14px}.calculator-page .repeat-result{line-height:1.75}.calculator-page .splitter-details .fields{row-gap:6px}@media(max-width:800px){.calculator-page .splitter-layout{grid-template-columns:1fr;gap:24px}}@media(max-width:480px){.calculator-page .fields{grid-template-columns:1fr;gap:6px}.calculator-page .splitter-stage{grid-template-columns:24px minmax(0,1fr) 44px;gap:9px;padding:12px}.calculator-page .splitter-stage>.stage-number{grid-column:1;grid-row:1/3;align-self:center}.calculator-page .splitter-stage>label:first-of-type{grid-column:2;grid-row:1}.calculator-page .splitter-stage>label:last-of-type{grid-column:2;grid-row:2}.calculator-page .splitter-stage>.delete-saved{grid-column:3;grid-row:1/3;align-self:center}.calculator-page .splitter-result{padding:18px}.calculator-page .splitter-stats strong{font-size:30px}.calculator-page .splitter-stats small{font-size:14px}}

/* Splitter tool entry: a tactile card with a branching optical signal. */
.nav-tool.splitter-tool{position:relative;gap:12px;min-height:66px;padding:10px 14px 10px 10px;border-radius:17px;border-color:#cce2e5;background:linear-gradient(120deg,#fff,#eff9f8);box-shadow:0 3px 12px #17394a08;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;background-clip:padding-box}
.splitter-tool .splitter-tool-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:#dff2ef;color:#087f80;transition:background .2s ease,transform .2s ease}
.splitter-tool-icon svg{display:block;width:34px;height:34px;overflow:visible}.splitter-tool-icon path{stroke:currentColor;stroke-width:2;stroke-linecap:round}.splitter-tool-icon circle{fill:currentColor}
.splitter-tool-copy{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:left}.splitter-tool-copy strong{font-size:14px;font-weight:750;line-height:1.3}.splitter-tool-copy small{color:var(--muted);font-size:11px;font-weight:450;line-height:1.3}
.splitter-tool-arrow{display:grid;place-items:center;width:28px;height:28px;margin-left:8px;border-radius:50%;background:#fff;color:#087f80;font-size:19px;transition:transform .2s ease,background .2s ease}
@media(hover:hover){.nav-tool.splitter-tool:hover{transform:translateY(-2px);border-color:#69b9b5;box-shadow:0 8px 22px #087f8018;background:linear-gradient(120deg,#fff,#e3f5f1)}.splitter-tool:hover .splitter-tool-icon{background:#ccece6;transform:rotate(-4deg)}.splitter-tool:hover .splitter-tool-arrow{transform:translateX(3px);background:#dff2ef}}
.splitter-tool:focus-visible .splitter-path,.splitter-tool:hover .splitter-path{stroke-dasharray:5 4;animation:splitter-signal .9s linear infinite}.nav-tool.splitter-tool:active{transform:scale(.98);box-shadow:0 1px 4px #087f8018}
@keyframes splitter-signal{to{stroke-dashoffset:-18}}
[data-theme=dark] .nav-tool.splitter-tool{background:linear-gradient(120deg,#1b2d3c,#173b3d);border-color:#376065}[data-theme=dark] .splitter-tool .splitter-tool-icon,[data-theme=dark] .splitter-tool-arrow{background:#244f50;color:#88e1d6}[data-theme=dark] .nav-tool.splitter-tool:hover{background:linear-gradient(120deg,#233c49,#205051);border-color:#70bdb6}[data-theme=dark] .splitter-tool:hover .splitter-tool-icon,[data-theme=dark] .splitter-tool:hover .splitter-tool-arrow{background:#306464}
@media(max-width:640px){.nav-tool.splitter-tool{justify-content:flex-start;min-height:66px;padding:10px 12px;gap:12px}.splitter-tool-copy strong{font-size:15px}.splitter-tool-copy small{font-size:12px}.splitter-tool-arrow{margin-left:auto;flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.nav-tool.splitter-tool,.splitter-tool .splitter-tool-icon,.splitter-tool-arrow{transition:none}.splitter-tool:hover .splitter-path,.splitter-tool:focus-visible .splitter-path{animation:none}.nav-tool.splitter-tool:hover,.nav-tool.splitter-tool:active,.splitter-tool:hover .splitter-tool-icon,.splitter-tool:hover .splitter-tool-arrow{transform:none}}

.fiber-tool .fiber-blue{stroke:#3184e9}.fiber-tool .fiber-orange{stroke:#ec9a38}.fiber-tool .fiber-green{stroke:#29a974}.fiber-tool .fiber-lens{fill:none;stroke:currentColor;stroke-width:2}.fiber-tool .fiber-handle{stroke:currentColor;stroke-width:2.5}
[data-theme=dark] .fiber-tool .fiber-blue{stroke:#72adff}[data-theme=dark] .fiber-tool .fiber-orange{stroke:#ffc36f}[data-theme=dark] .fiber-tool .fiber-green{stroke:#74dbad}

/* Settings matches the height, corners and feedback of the tool links. */
.header-actions :is(.settings-button,.cables-button){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:66px;height:66px;min-width:66px;min-height:66px;padding:8px;border-radius:17px;border-color:#cce2e5;background:linear-gradient(140deg,#fff,#eff9f8);color:#087f80;box-shadow:0 3px 12px #17394a08;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease}
.settings-gear{display:block;flex-shrink:0;transform-origin:center;transition:transform .35s ease}.settings-label{font-size:11px;line-height:1.2;font-weight:650;color:var(--ink)}
@media(hover:hover){.header-actions :is(.settings-button,.cables-button):hover{background:linear-gradient(140deg,#fff,#e3f5f1);border-color:#69b9b5;box-shadow:0 8px 22px #087f8018;transform:translateY(-2px)}.settings-button:hover .settings-gear{transform:rotate(45deg)}}
.settings-button:focus-visible .settings-gear{transform:rotate(45deg)}.header-actions :is(.settings-button,.cables-button):active{transform:scale(.95);box-shadow:0 1px 4px #087f8018}.settings-button:active .settings-gear{transform:rotate(75deg)}
[data-theme=dark] .header-actions :is(.settings-button,.cables-button){background:linear-gradient(140deg,#1b2d3c,#173b3d);border-color:#376065;color:#88e1d6}[data-theme=dark] .header-actions :is(.settings-button,.cables-button):hover{background:linear-gradient(140deg,#233c49,#205051);border-color:#70bdb6}
@media(max-width:640px){.header-actions :is(.settings-button,.cables-button){width:52px;height:56px;min-width:52px;min-height:56px;border-radius:14px;gap:3px;padding:6px}.settings-gear{width:24px;height:24px}.settings-label{font-size:10px}}
@media(prefers-reduced-motion:reduce){.header-actions :is(.settings-button,.cables-button),.settings-gear{transition:none}.header-actions :is(.settings-button,.cables-button):hover,.header-actions :is(.settings-button,.cables-button):active,.settings-button:hover .settings-gear,.settings-button:focus-visible .settings-gear,.settings-button:active .settings-gear{transform:none}}

.cables-icon{display:block;flex-shrink:0;transition:transform .25s ease}.cable-end{fill:currentColor;stroke:none}.cable-line-one{stroke:#3184e9}.cable-line-two{stroke:#ec9a38}.cable-line-three{stroke:#29a974}
@media(hover:hover){.cables-button:hover .cables-icon{transform:translateY(-1px)}.cables-button:hover .cable-line{stroke-dasharray:3 3;animation:splitter-signal 1.2s linear infinite}}
.cables-button:focus-visible .cable-line{stroke-dasharray:3 3;animation:splitter-signal 1.2s linear infinite}.cables-button:active .cables-icon{transform:scale(.92)}
[data-theme=dark] .cable-line-one{stroke:#72adff}[data-theme=dark] .cable-line-two{stroke:#ffc36f}[data-theme=dark] .cable-line-three{stroke:#74dbad}
@media(max-width:640px){.cables-icon{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.cables-icon{transition:none}.cables-button:hover .cables-icon,.cables-button:active .cables-icon{transform:none}.cables-button:hover .cable-line,.cables-button:focus-visible .cable-line{animation:none}}

.mark-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:0;padding:0;margin:18px 0 16px;min-width:0}.mark-choices legend{color:var(--muted);font-size:13px;margin-bottom:9px}.mark-choice{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--light);cursor:pointer;transition:border-color .2s,background .2s,transform .2s;min-width:0}.mark-choice input{width:17px;height:17px;margin:0;accent-color:var(--teal);flex-shrink:0}.mark-choice strong{display:block;color:var(--ink);font-size:14px}.mark-choice small{display:block;font-size:11px;font-weight:400;line-height:1.4;margin-top:3px}.mark-choice-symbol{color:var(--teal);font-size:17px;letter-spacing:2px}.mark-choice:has(input:checked){background:#eaf8f4;border-color:#59aaa6;box-shadow:0 0 0 2px #087f8010}.mark-choice:active{transform:scale(.98)}
.pitch-known{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--ink);margin:8px 0 14px;cursor:pointer}.pitch-known input{width:18px;height:18px;margin:0;accent-color:var(--teal)}.pitch-controls{display:grid;grid-template-columns:140px minmax(0,1fr);gap:20px;align-items:center}.pitch-slider-label input[type=range]{width:100%;padding:0;height:26px;margin:14px 0 3px;border:0;background:none;accent-color:var(--teal);cursor:pointer}.pitch-scale{display:flex;justify-content:space-between;font-size:10px;font-weight:400}.pitch-controls input:disabled{opacity:.45;cursor:default}.mark-preview-heading{display:flex;justify-content:space-between;gap:12px;margin:12px 0}.mark-preview-heading strong{font-size:14px}.mark-preview{border:1px solid var(--line);border-radius:14px;background:white;padding:14px;overflow:hidden}.mark-preview-row{display:grid;grid-template-columns:50px minmax(0,1fr);gap:6px 12px;align-items:center;padding:10px 0}.mark-preview-row+.mark-preview-row{border-top:1px solid var(--line)}.mark-preview-row strong{font-size:12px;color:var(--ink)}.mark-preview-row small{grid-column:2;color:var(--muted);font-size:11px}.mark-preview-track{height:16px;border-radius:8px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #172c4020}.preview-mark-layer{position:absolute;inset:0;background-repeat:repeat-x}.preview-mark-layer.rings{background-image:linear-gradient(90deg,#101010 0 2px,transparent 2px)}.preview-mark-layer.dots{background-image:radial-gradient(circle at 3px 50%,#101010 0 2px,transparent 2.5px)}
[data-theme=dark] .mark-choice{background:var(--field);border-color:var(--line)}[data-theme=dark] .mark-choice:has(input:checked){background:#17393e;border-color:#70d5d0}[data-theme=dark] .mark-preview{background:var(--field)}
@media(hover:hover){.mark-choice:hover{border-color:#69b9b5;transform:translateY(-1px)}}@media(max-width:480px){.mark-choices{grid-template-columns:1fr}.mark-choice{flex-wrap:nowrap}.mark-choice small{margin-top:1px}.pitch-controls{grid-template-columns:1fr;gap:0}.mark-preview{padding:10px}}@media(prefers-reduced-motion:reduce){.mark-choice{transition:none}.mark-choice:hover,.mark-choice:active{transform:none}}

.opgw-layout{border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--light);margin-bottom:16px}.opgw-layout .fields{margin-top:0}.tube-presets{display:flex;gap:10px}.tube-presets button{flex:1;justify-content:center}.tube-presets button:disabled{opacity:.45;cursor:default}[data-theme=dark] .opgw-layout{background:var(--field)}

.tube-range-card:before{background:var(--teal)}.tube-range-card .result-color{font-size:30px;letter-spacing:-.6px;line-height:1.2}.tube-range-card .result-mark{margin-top:8px;font-size:12px}

.calculator-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px}.calculator-actions .note{margin:0}.clear-calculator{flex-shrink:0;color:#9d3f3f;background:#fff8f7;border-color:#eed7d3}.clear-calculator:hover{background:#fcece9;border-color:#cc928a}[data-theme=dark] .clear-calculator{color:#ffbeb5;background:#3a282b;border-color:#765354}[data-theme=dark] .clear-calculator:hover{background:#513338}@media(max-width:640px){.calculator-actions{align-items:stretch;flex-direction:column}.clear-calculator{justify-content:center}}

.calculator-action-buttons{display:flex;align-items:stretch;gap:10px;flex-shrink:0}.undo-calculator{justify-content:center;gap:8px}.undo-calculator:before{content:'↶';font-size:20px;line-height:1}.undo-calculator:disabled{opacity:.45;cursor:default}.undo-calculator:disabled:hover{background:var(--light);border-color:var(--line)}@media(max-width:800px){.calculator-actions{flex-direction:column;align-items:stretch}.calculator-action-buttons{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.calculator-action-buttons button{min-width:0;padding:10px;font-size:13px;white-space:normal;text-align:center}.calculator-actions .note{font-size:12px}}

[data-theme=dark] .undo-calculator:disabled:hover{background:var(--surface-raised);border-color:var(--line)}

/* Mobile controls stay inside the viewport, including with the keyboard open. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.fiber-art{pointer-events:none}
.fiber-signals path{stroke-dasharray:4 96;stroke-dashoffset:100;opacity:.85;animation:fiber-signal-flow 11s linear infinite}
.fiber-signals path:nth-child(2){animation-duration:13s;animation-delay:-4s}
.fiber-signals path:nth-child(3){animation-duration:12s;animation-delay:-8s}
.fiber-signals path:nth-child(4){animation-duration:14s;animation-delay:-2s}
.fiber-signals path:nth-child(5){animation-duration:12s;animation-delay:-6s}
.fiber-signals path:nth-child(6){animation-duration:15s;animation-delay:-10s}
@keyframes fiber-signal-flow{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.fiber-signals path{animation:none;stroke-dashoffset:25;opacity:.4}}
.update-badge{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:1000;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 24px);padding:10px 14px;border:1px solid #f0a13b;border-radius:14px;background:#fff6e6;color:#743b08;box-shadow:0 5px 20px #713e1426;font-size:13px;font-weight:650;text-align:left}.update-badge svg{flex-shrink:0}.update-badge:hover{background:#ffebc7}.updated-date{display:block;flex-basis:100%;font-size:12px;font-weight:400}footer{flex-wrap:wrap;gap:8px}
button,a,summary{touch-action:manipulation}
.workspace>*,.splitter-layout>*,.fields>*,.result-grid>*{min-width:0}
dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:640px){input,select,textarea{font-size:16px}button,select{min-height:44px}.chosen-title,.tile-color,.tile-mark,.result-color{overflow-wrap:anywhere}main{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}
/* OPGW: separate physical structure from the identification rule. */
.opgw-intro{background:var(--bg);border-left:3px solid var(--teal);padding:14px 16px;border-radius:10px;margin:16px 0}.opgw-intro p,.opgw-detail p,.opgw-references p{font-size:13px;line-height:1.65}.opgw-step{border-top:1px solid var(--line);padding:16px 0}.opgw-step h3{font-size:16px;margin:0 0 12px}.opgw-step small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:8px}.opgw-methods{display:flex;flex-wrap:wrap;gap:8px}.opgw-methods button{padding:9px 12px;font-size:12px}.opgw-methods button[aria-pressed=true],.opgw-candidate[aria-pressed=true]{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}.opgw-candidates{display:grid;grid-template-columns:1fr 1fr;gap:10px}.opgw-candidate{background:var(--card,#fff);color:var(--ink);border:1px solid var(--line);padding:15px;border-radius:12px;text-align:left;min-width:0}.opgw-candidate strong{display:block;font-size:15px;margin:6px 0}.opgw-status{font-size:9px;letter-spacing:.6px;color:var(--teal);font-weight:700}.opgw-detail{margin-top:16px;padding:16px;border:1px solid var(--teal);border-radius:12px}.opgw-detail h4{margin:8px 0 12px}.opgw-color-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px}.opgw-color-key>span{display:flex;align-items:center;gap:5px;min-width:0}.opgw-color-key i{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid #8996a5;flex-shrink:0}.opgw-table-wrap{overflow:auto;margin:16px 0}.opgw-table-wrap table{border-collapse:collapse;font-size:12px;width:100%}.opgw-table-wrap th,.opgw-table-wrap td{text-align:left;padding:8px;border-bottom:1px solid var(--line);vertical-align:top}.opgw-references{font-size:12px;line-height:1.6;padding-top:12px}.opgw-detail a,.opgw-references a{overflow-wrap:anywhere}.binder-preview{border-left:7px solid var(--binder);padding:10px 14px;margin:10px 0;font-size:13px;background:var(--bg)}[data-theme=dark] .opgw-candidate{background:#172330}@media(max-width:440px){.opgw-candidates{grid-template-columns:1fr}.opgw-color-key{grid-template-columns:1fr 1fr}.opgw-detail{padding:12px}}

/* Each lookup keeps its number beside its own color and marking results. */
.fiber-lookup-heading{font-size:14px;font-weight:750;margin:0 0 12px;color:var(--ink)}
.fiber-lookup-row{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;min-width:0}
.fiber-lookup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.fiber-lookup-head .fiber-lookup-heading{margin:0}
.remove-fiber-lookup{flex-shrink:0;padding:8px 0 8px 12px}
.add-fiber-lookup{margin-top:20px}
.lookup-multiple .number-control{margin-bottom:14px;padding:9px 12px}
.lookup-multiple .number-control input{font-size:36px}
.lookup-multiple .result-card{min-height:110px;padding:16px}
.lookup-multiple .result-label{margin-bottom:12px}
.lookup-multiple .marking-panel{margin-bottom:0}
.fiber-lookup-row input[aria-invalid=true]{color:#a7362d}
[data-theme=dark] .fiber-lookup-row input[aria-invalid=true]{color:#ffb7a9}
@media(max-width:400px){.lookup-multiple .result-card{padding:14px 11px}.lookup-multiple .result-color{font-size:18px}}

.result-placeholder{--color:var(--line)}
.result-placeholder .result-color{color:var(--muted)}
.result-placeholder .swatch{border:1px dashed var(--muted);background:transparent}

.number-control button svg{display:block;width:16px;height:16px;pointer-events:none}

/* Color-coded tube picker, shared by ordinary cable tubes and OPGW steel tubes. */
#tubes{width:min(100%,360px)}
.tube-toolbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:stretch}
.tube-toolbar .tube-arrow{width:44px;height:auto;min-height:52px;display:grid;place-items:center;padding:0}
.tube-choice{position:relative;min-width:0}
.tube-choice-trigger,.tube-choice-option{display:flex;align-items:center;gap:10px;width:100%;min-width:0;text-align:left;color:var(--ink);font:inherit}
.tube-choice-trigger{min-height:52px;border:1px solid #cddfe7;border-radius:13px;padding:9px 12px;background:var(--surface,#fff);box-shadow:0 2px 5px #172c4005}
.tube-choice-trigger:hover,.tube-choice-trigger[aria-expanded=true]{border-color:#60b7b4;background:#f2faf8}
.tube-choice .swatch{width:23px;height:23px}
.tube-choice-copy{display:block;flex:1;min-width:0}
.tube-choice-copy strong{display:block;font-size:13px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.tube-choice-copy small{display:block;font-size:11px;font-weight:400;line-height:1.4;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.tube-choice-chevron,.tube-choice-check{display:grid;place-items:center;width:16px;height:16px;flex-shrink:0;color:var(--teal)}
.tube-choice svg{display:block;width:16px;height:16px}
.tube-choice-trigger[aria-expanded=true] .tube-choice-chevron{transform:rotate(180deg)}
.tube-choice-list{position:absolute;top:calc(100% + 8px);right:0;width:320px;max-width:calc(100vw - 68px);max-height:min(360px,55dvh);overflow-y:auto;overscroll-behavior:contain;scroll-padding:6px;padding:6px;border:1px solid var(--line);border-radius:16px;background:var(--surface,#fff);box-shadow:0 16px 42px #172c4026;z-index:30}
.tube-choice-option{min-height:58px;border:1px solid transparent;border-radius:10px;padding:10px;background:transparent}
.tube-choice-option:hover,.tube-choice-option:focus-visible{background:#f0f7f7;border-color:#b9dcd9;outline-offset:-2px}
.tube-choice-option[aria-selected=true]{background:#e5f5ef;border-color:#acd9cc}
.tube-choice-option[aria-selected=false] .tube-choice-check{visibility:hidden}
.tube-choice .tube-choice-neutral{background:transparent!important;border:1px dashed var(--muted)}
[data-theme=dark] .tube-choice-trigger{border-color:var(--line)}
[data-theme=dark] .tube-choice-trigger:hover,[data-theme=dark] .tube-choice-trigger[aria-expanded=true],[data-theme=dark] .tube-choice-option:hover,[data-theme=dark] .tube-choice-option:focus-visible{background:#253e46;border-color:#508f8d}
[data-theme=dark] .tube-choice-option[aria-selected=true]{background:#17393e;border-color:#70bdb6}
@media(max-width:640px){#tubes{width:100%}.tube-choice-list{width:100%;max-width:none}.tube-choice-trigger{padding:9px;gap:8px}.tube-choice-option{padding:9px;gap:8px}}

.consent-banner{position:fixed;left:0;right:0;bottom:0;max-height:70dvh;overflow:auto;z-index:70;display:flex;align-items:center;gap:20px;padding:8px max(20px,calc((100vw - 1064px)/2));padding-bottom:max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface,#fff);box-shadow:0 -3px 16px #102c400a;color:var(--ink)}
.consent-message{min-width:0;flex:1;font-size:12px;line-height:1.5}.consent-message h2{display:inline;font-size:12px;margin:0 7px 0 0}.consent-message p{display:inline;font-size:12px;line-height:1.5;margin:0;color:var(--muted)}
.consent-actions{display:flex;gap:10px;flex-shrink:0}.consent-button{min-height:44px;padding:10px 15px;border:1px solid var(--teal);border-radius:11px;color:var(--teal);background:var(--surface,#fff);font-weight:600;font-size:13px;line-height:1.4}
.consent-button:hover{background:var(--light)}.consent-link{border:0;background:none;color:var(--teal);font-size:12px;line-height:1.5;padding:4px 0;text-align:left;text-decoration:underline;text-underline-offset:3px}
.consent-banner .consent-actions{align-items:center;gap:8px}.consent-banner .consent-button{min-width:72px;padding:8px 12px;border-radius:8px;font-size:12px}.consent-banner .consent-link{min-height:44px;padding:8px;white-space:nowrap}
.consent-dialog{width:min(640px,calc(100% - 28px))}.consent-dialog .dialog-head h2{font-size:22px}.consent-dialog .dialog-head button{flex-shrink:0}.consent-dialog h3{font-size:15px;margin:22px 0 6px}.consent-dialog p{font-size:14px;line-height:1.7;color:var(--muted)}.consent-dialog .consent-actions{margin-top:16px}.consent-dialog .consent-actions button{flex:1}.consent-policy-link{color:var(--teal);font-size:13px}
.consent-storage{position:fixed;bottom:16px;left:16px;right:16px;margin:0;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--ink);box-shadow:0 8px 30px #102c4026;z-index:71;font-size:13px}
@media(max-width:760px){.consent-banner{align-items:stretch;flex-direction:column;gap:5px;padding:9px 14px max(8px,env(safe-area-inset-bottom))}.consent-banner .consent-actions{justify-content:flex-end}.consent-dialog .dialog-head h2{font-size:19px}}
@media(max-width:360px){.consent-actions{gap:7px}.consent-button{padding:10px;font-size:12px}}
