:root{--bg:#0c1720;--panel:#12232b;--panel-alt:#182b31;--soft:#20343b;--line:#2e4447;--text:#f5efdc;--muted:#99a9a7;--teal:#4fd8bb;--ochre:#e7b05e;--red:#e17d77;--radius:13px;color-scheme:dark;font-family:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behaviour:smooth}body{margin:0;background:var(--bg);color:var(--text);min-width:320px}button,select,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--ochre);outline-offset:3px}a{color:inherit}.sr-only{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;white-space:nowrap}.grain{position:fixed;inset:0;pointer-events:none;z-index:50;opacity:.055;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 130 130' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E")}.shell{max-width:1900px;margin:auto;padding:0 30px}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:13px}.brand b{font-size:19px;letter-spacing:.19em;font-weight:800}.brand small{font-size:9px;letter-spacing:.17em;display:block;color:var(--muted);margin-top:4px}.mark{width:36px;height:36px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;transform:rotate(-9deg)}.mark span{display:block;border:3px solid var(--ochre);border-radius:2px}.mark span:nth-child(2),.mark span:nth-child(3){border-color:var(--teal)}.topright{display:flex;align-items:center;gap:26px;font-size:10px;letter-spacing:.13em;color:var(--muted);font-weight:800}.country-chip{display:flex;align-items:center;gap:9px;color:var(--text);padding:11px 15px;border:1px solid #3a514d;border-radius:50px;background:#1c3537}.signal,.live-light{height:7px;width:7px;border-radius:50%;background:var(--teal);display:inline-block;box-shadow:0 0 15px var(--teal)}.hero{padding:45px 0 34px;display:flex;justify-content:space-between;gap:30px;align-items:end}.eyebrow{font-size:10px;letter-spacing:.2em;font-weight:800;color:var(--ochre);display:flex;align-items:center;gap:10px;margin:0 0 19px}.line{width:27px;height:1px;background:var(--ochre)}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(36px,4.1vw,71px);font-weight:500;line-height:1.06;letter-spacing:-.038em;margin:0 0 16px}h1 em{font-weight:400;color:var(--ochre)}.hero-sub{font-size:13px;line-height:1.7;color:#b2c4bd;max-width:710px;margin:0}.hero-side{text-align:right;min-width:175px}.num-large{font-size:67px;font-family:Georgia,serif;color:var(--ochre);line-height:1}.num-large span{font-family:inherit;font-size:14px;color:#d9c8a9}.hero-side p{margin:9px 0 0;color:var(--muted);font-size:9px;letter-spacing:.16em;line-height:1.7}.kpi-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);background:#13232b;border-radius:var(--radius);margin-bottom:19px;overflow:hidden}.kpi{padding:20px 25px;min-height:98px;border-right:1px solid var(--line)}.kpi:last-child{border:0}.kpi>span{font-size:9px;letter-spacing:.14em;color:var(--muted);display:block;font-weight:800;margin-bottom:12px}.kpi strong{font-size:30px;font-weight:650;letter-spacing:-.03em}.kpi strong span{font-size:11px;letter-spacing:0;color:var(--muted);font-weight:600}.mono{font-variant-numeric:tabular-nums}.workspace{display:grid;grid-template-columns:minmax(267px,310px) minmax(0,1fr) minmax(255px,286px);gap:18px;align-items:start}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);padding:23px 21px 24px}.panel-header{display:flex;align-items:center;gap:9px;padding-bottom:22px;border-bottom:1px solid var(--line)}.panel-count{color:var(--ochre);font-size:10px;font-weight:900;letter-spacing:.13em}.panel-header h2{font-family:Georgia,serif;font-size:25px;font-weight:500;margin:0}.section-head{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px;gap:9px;font-size:10px;font-weight:800;letter-spacing:.11em;color:#e5e4d8}.section-head>span:nth-child(2){font-size:9px;color:var(--muted);white-space:nowrap}.tiny-tag{background:#25423f;color:var(--teal)!important;padding:5px 8px;border-radius:3px;font-size:8px!important}select{appearance:none;width:100%;padding:14px 35px 14px 13px;background:#20353a;color:var(--text);border:1px solid #365154;border-radius:6px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23e7b05e' stroke-width='2'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;font-size:12px}.field-note,.help-text{font-size:10px;line-height:1.55;color:var(--muted);margin:9px 0 0}.yarn-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.yarn{border:1px solid #2e4b4c;border-radius:5px;color:var(--muted);background:#1c3035;display:flex;flex-direction:column;gap:6px;align-items:center;padding:9px 2px;font-size:9px}.yarn.active{background:#29423e;border-color:var(--ochre);color:var(--text);box-shadow:inset 0 0 0 1px #a67c45}.yarn small{font-size:9px;font-variant-numeric:tabular-nums}.yarn-swatch{width:28px;height:28px;border-radius:50%;background:var(--yarn);box-shadow:0 4px 0 #0003, inset 0 -5px 7px #0003,inset 0 2px 2px #fff5}.heddles{display:grid;grid-template-columns:1fr 1fr;gap:8px}.heddle{background:#1c3035;color:var(--muted);border:1px solid #375154;border-radius:6px;padding:11px 5px;display:grid;grid-template-columns:30px 1fr;align-items:center;text-align:left;column-gap:5px}.heddle.selected{border-color:var(--teal);color:var(--text);background:#294640}.heddle-icon{grid-row:span 2;color:var(--ochre);font-size:20px}.heddle b{font-size:16px}.heddle small{font-size:8px;white-space:nowrap}.range-control{margin-top:14px}.range-control>div:first-child{display:flex;justify-content:space-between;font-size:11px;color:#d7e0d6}.range-control output{color:var(--ochre);font-weight:700;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:6px;margin:14px 0 3px;accent-color:var(--ochre);cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:8px;font-weight:800;letter-spacing:.12em;color:#78908e}.primary-button{margin-top:5px;width:100%;border:1px solid #fad493;border-radius:6px;background:linear-gradient(110deg,#f3bf73,#d99a43);color:#142126;min-height:68px;display:flex;align-items:center;padding:0 13px;gap:10px;text-align:left;font-size:12px;font-weight:900;letter-spacing:.045em}.primary-button:not(:disabled):hover{filter:brightness(1.08)}.button-glyph{font-size:29px;line-height:1}.primary-button span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:5px}.primary-button small{font-size:9px;letter-spacing:.11em;font-weight:700}.button-arrow{font-size:21px}.secondary-button{width:100%;min-height:44px;display:flex;justify-content:space-between;align-items:center;margin-top:7px;padding:0 12px;border:1px solid #66827a;border-radius:5px;color:var(--text);background:#30463e;font-size:11px;font-weight:800;letter-spacing:.05em}.secondary-button:not(:disabled):hover{background:#3c574f}.secondary-button kbd{background:#52675d;padding:4px 7px;border-radius:3px}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.thin-button{height:38px;border:1px solid #365153;border-radius:5px;color:#d9e2da;background:#1e3337;font-size:10px;letter-spacing:.035em;font-weight:800}.thin-button[aria-pressed=true]{color:var(--teal);border-color:var(--teal)}.thin-button:hover{background:#30494a}.scene-column{min-width:0}.scene-panel{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#18292d}.scene-bar{height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;background:#1b3035;gap:15px}.scene-bar>div{display:flex;align-items:center;gap:9px;min-width:0}.scene-bar h2{font-size:11px;letter-spacing:.1em;margin:0;white-space:nowrap}.scene-sub{font-size:9px;color:var(--muted);white-space:nowrap}.scene-switch{border:1px solid #4e696a;color:#d6e3dd;background:#243d40;border-radius:4px;font-size:10px;font-weight:800;min-width:90px;padding:8px}.scene-frame{height:clamp(440px,42vw,715px);position:relative;background:radial-gradient(ellipse at 53% 52%,#49635b 0%,#263f3e 34%,#17262b 70%);isolation:isolate;overflow:hidden}.scene-frame canvas{display:block;position:absolute;inset:0;width:100%;height:100%;touch-action:none}.scene-frame #scene-canvas{display:none}.scene-frame #fallback-canvas{display:block}.scene-vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#0b212a6b 0%,transparent 17%,transparent 67%,#0b1b23c7 100%)}.scene-toplabel{position:absolute;top:18px;left:17px;display:flex;align-items:flex-start;gap:9px;pointer-events:none}.accent-square{height:9px;width:9px;background:var(--ochre);margin-top:4px}.scene-toplabel strong{display:block;font-size:10px;letter-spacing:.13em}.scene-toplabel small{display:block;color:#d1dfd4;font-size:8px;letter-spacing:.1em;margin-top:7px}.scene-bottombar{position:absolute;bottom:16px;left:12px;right:12px;display:flex;align-items:end;justify-content:space-between;gap:12px}.camera-presets{display:flex;flex-wrap:wrap;gap:4px}.camera{background:#11252bdc;border:1px solid #43615c;color:#bad0c6;padding:9px 7px;font-size:8px;font-weight:800;letter-spacing:.03em;border-radius:3px}.camera.active{color:#202f2d;background:var(--ochre);border-color:var(--ochre)}#camera-hint{font-size:8px;color:#e1e6d7;text-align:right;max-width:110px;line-height:1.6;letter-spacing:.07em}.mode-notice{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;max-width:min(80%,400px);font-size:12px;line-height:1.6;text-align:center;padding:16px 20px;border:1px solid #9fc6b1;background:#142e33ec;color:#f9e8bc;border-radius:8px;pointer-events:none}.scene-footer{height:48px;border-top:1px solid #39514b;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:9px}.phase-stepper{display:flex;align-items:center;gap:7px;font-size:9px;font-weight:800;letter-spacing:.075em;color:#a8bab0}.phase-dot{width:7px;height:7px;border-radius:50%;background:#68726a}.phase-dot.on{background:var(--teal);box-shadow:0 0 0 3px #4fd8bb24}.dotted{width:20px;height:1px;border-top:1px dashed #677a70}.depth-readout{font-size:10px;color:var(--ochre);font-weight:800;white-space:nowrap}.depth-readout span{font-size:8px;color:var(--muted);margin-left:5px}.under-scene{background:linear-gradient(100deg,#203f3e,#1d3336);border:1px solid #395654;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:13px;padding:15px}.guide-line{display:flex;align-items:center;gap:14px}.guide-icon{height:37px;width:37px;border:1px solid #637e70;border-radius:50%;display:grid;place-items:center;color:var(--ochre);font-size:20px}.under-scene small{font-size:8px;font-weight:800;letter-spacing:.13em;color:#9fbbb2;display:block;margin-bottom:7px}.under-scene strong{font-size:12px}.current-dye{display:flex;align-items:center;gap:10px;border-left:1px solid #526963;padding-left:20px}.current-dye>span{display:block;background:var(--ochre);height:34px;width:10px;border-radius:3px}.keyboard-hint{font-size:10px;line-height:1.6;color:#829d99;margin:14px 0 0}.insights .panel-header{margin-bottom:18px}.commission{border:1px solid #526356;background:linear-gradient(130deg,#203c38,#1f3334);padding:15px;border-radius:7px}.commission-heading{display:flex;justify-content:space-between;color:var(--ochre);font-size:9px;font-weight:900;letter-spacing:.12em}.commission h3{font-family:Georgia,serif;font-weight:400;font-size:24px;margin:17px 0 8px}.commission p{font-size:11px;line-height:1.55;color:#b7c6b8;margin:0 0 19px}.progress-meter{height:6px;border-radius:12px;background:#0c2127;overflow:hidden}.progress-meter>div{height:100%;width:0;background:linear-gradient(90deg,var(--teal),var(--ochre));transition:width .25s}.progress-line{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:.04em;margin-top:9px}.progress-line b{color:#edc887}.targets{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}.targets>div{padding:14px 3px;text-align:center;border:1px solid var(--line);border-radius:5px;background:#182d30}.targets span{display:block;font-size:8px;letter-spacing:.09em;color:var(--muted);margin-bottom:8px}.targets strong{font-size:17px}.target-pass{color:var(--teal)}.target-fail{color:var(--red)}.target-idle{color:#f1d69e}.status-box{display:flex;gap:10px;margin-top:12px;align-items:flex-start;background:#20383a;border-radius:6px;padding:12px}.status-indicator{border:2px solid var(--ochre);height:14px;width:14px;flex:none;border-radius:50%;margin-top:2px}.status-box.complete{background:#22483d}.status-box.complete .status-indicator{background:var(--teal);border-color:var(--teal)}.status-box.fail{background:#49302f}.status-box.fail .status-indicator{background:var(--red);border-color:var(--red)}.status-box b{font-size:11px}.status-box p{font-size:10px;line-height:1.5;color:var(--muted);margin:6px 0 0}.inspector{background:#192d32;border-left:2px solid var(--ochre);padding:13px 14px;min-height:157px}.inspector>span{font-size:9px;color:var(--ochre);font-weight:800}.inspector h3{font-family:Georgia,serif;font-weight:400;margin:7px 0;font-size:18px}.inspector p{font-size:11px;line-height:1.55;color:#afc4ba;margin-bottom:0}.event-log{min-height:85px;max-height:210px;overflow-y:auto;scrollbar-width:thin}.event-entry{border-bottom:1px solid #2c4448;padding:10px 0;font-size:10px;color:#bfcac1;line-height:1.5}.event-entry:first-child{color:#e1c891}.lower-grid{display:grid;grid-template-columns:1.05fr 1.05fr .9fr;gap:18px;margin:20px 0 24px}.lower-panel{min-width:0;border:1px solid var(--line);background:#14262e;border-radius:12px;padding:21px}.lower-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.minor-index{font-size:9px;color:var(--ochre);letter-spacing:.15em;font-weight:800}.lower-head h2{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:6px 0 0}.export-btn{border:1px solid #43615f;background:#20383b;color:#d9e5db;border-radius:4px;font-size:9px;font-weight:900;letter-spacing:.035em;padding:10px;white-space:nowrap}.export-btn:hover{background:#365457}.swatch-zone{display:flex;gap:18px;align-items:center}.swatch-zone canvas{height:178px;width:100px;object-fit:cover;box-shadow:5px 6px 15px #0006;border:1px solid #667368;background:#182c2b}.swatch-copy{flex:1}.swatch-copy>span{font-size:9px;letter-spacing:.12em;color:#d5d1c0}.swatch-copy p{font-size:11px;line-height:1.6;color:#9fb3ad;margin:13px 0 20px}.swatch-stats{display:flex;gap:15px;flex-wrap:wrap}.swatch-stats span{font-size:9px;color:var(--muted)}.swatch-stats b{font-size:14px;color:var(--ochre);display:block;margin-bottom:4px}.chart-wrapper{height:182px}.chart-wrapper canvas{width:100%;height:100%;display:block}.chart-key{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.08em;color:var(--muted);gap:5px}.chart-key i{height:6px;width:18px;background:var(--ochre);display:inline-block;margin-right:5px;vertical-align:middle}.heritage-dot{font-size:27px;color:var(--ochre)}.context-panel p{font-size:11px;line-height:1.75;color:#b4c7bd}.context-panel a{display:block;font-size:10px;font-weight:800;text-decoration:none;color:var(--teal);letter-spacing:.06em;border-top:1px solid var(--line);padding-top:17px;margin-top:19px}.context-panel a span{float:right}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;flex-wrap:wrap;gap:15px;padding:23px 0 32px;color:#74928e;font-size:9px;letter-spacing:.12em;font-weight:700}.toast{position:fixed;bottom:22px;right:22px;background:#e9c384;color:#15292b;border-radius:8px;max-width:330px;box-shadow:0 15px 50px #0007;z-index:99;padding:13px 18px;font-size:12px;font-weight:700;opacity:0;transform:translateY(20px);transition:opacity .2s,transform .2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1380px){.shell{padding:0 20px}.workspace{grid-template-columns:minmax(236px,275px) minmax(0,1fr) minmax(225px,260px);gap:11px}.panel{padding:18px 14px}.kpi{padding:15px 17px}.lower-grid{gap:11px}.scene-frame{height:clamp(440px,43vw,660px)}}
@media(max-width:1090px){.workspace{grid-template-columns:minmax(245px,300px) minmax(0,1fr)}.insights{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:22px;align-items:start}.insights>.panel-header{grid-column:1/-1}.insights>.section-head:nth-of-type(1),.insights .inspector,.insights>.section-head:nth-of-type(2),.insights .event-log{grid-column:2}.insights>.section-head:nth-of-type(1){grid-row:2}.insights .inspector{grid-row:3 / span 2}.insights>.section-head:nth-of-type(2){grid-row:5}.insights .event-log{grid-row:6}.commission,.targets,.status-box{grid-column:1}.commission{grid-row:2 / span 2}.targets{grid-row:4}.status-box{grid-row:5 / span 2}.lower-grid{grid-template-columns:1fr 1fr}.context-panel{grid-column:1/-1}.scene-frame{height:560px}}
@media(max-width:760px){.shell{padding:0 13px}.topbar{height:69px}.topright .edition{display:none}.topright{gap:8px}.country-chip{padding:9px 11px;font-size:9px}.hero{padding:33px 0 26px}.hero-side{display:none}.hero-sub{font-size:12px}.kpi-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi{padding:14px 10px;min-height:80px}.kpi:nth-child(3){border-right:0}.kpi:nth-child(n+4){border-top:1px solid var(--line)}.kpi strong{font-size:24px}.kpi>span{font-size:8px}.workspace{display:flex;flex-direction:column}.controls,.scene-column,.insights{width:100%}.controls{display:block;order:2}.scene-column{order:1}.insights{order:3;display:block}.insights .inspector,.insights .event-log{grid-column:auto;grid-row:auto}.scene-frame{height:min(70vw,530px);min-height:350px}.camera{font-size:7px;padding:7px 5px}.scene-bottombar{bottom:10px}.scene-toplabel small{max-width:180px;line-height:1.4}.depth-readout span{display:none}.under-scene{padding:12px}.keyboard-hint{margin-bottom:3px}.yarn-palette{gap:8px}.panel{padding:17px}.lower-grid{grid-template-columns:1fr}.context-panel{grid-column:auto}.lower-panel{padding:18px}.footer{font-size:8px}}
@media(max-width:450px){.brand b{font-size:16px}.brand small{font-size:7px}.mark{width:29px;height:29px;gap:3px}.country-chip{font-size:8px}.hero h1{font-size:38px}.scene-bar{padding:0 10px}.scene-bar h2{font-size:10px}.scene-sub{display:none}.scene-toplabel{top:10px;left:10px}.scene-frame{min-height:330px}.camera-presets{max-width:245px}.camera{padding:7px 6px;font-size:7px}.camera-hint{display:none}#camera-hint{display:none}.scene-footer{padding:0 9px}.depth-readout{font-size:9px}.phase-stepper{font-size:8px;gap:5px}.dotted{width:9px}.current-dye{border:0;padding-left:4px}.guide-line{gap:8px}.guide-icon{height:30px;width:30px}.under-scene strong{font-size:10px}.under-scene small{font-size:7px}.kpi strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behaviour:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
