:root{--ink:#142029;--light:#f2f1e8;--green:#7ac7a5;--gold:#e7b451;--muted:#8b989a;--border:rgba(194,218,208,.13);--paper:#f2f1e9;--ui:Manrope,Inter,'Segoe UI',Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behaviour:smooth}body{margin:0;background:#101923;color:#f4f2e7;font-family:var(--ui);-webkit-font-smoothing:antialiased}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,.scene:focus-visible{outline:2px solid #e7b451;outline-offset:3px}button:disabled{opacity:.46;cursor:not-allowed}a{color:inherit}.site-shell{width:100%;min-height:100vh;background:#121c27}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3vw,54px);border-bottom:1px solid var(--border);background:#101923;gap:14px}.brand{display:flex;align-items:center;gap:12px}.brand-symbol{width:32px;height:35px;display:flex;align-items:center;gap:4px;transform:rotate(-13deg)}.brand-symbol i{width:7px;height:24px;border:2px solid #e4af4c;border-radius:10px}.brand-symbol i:nth-child(2){height:31px;border-color:#74bda4}.brand-symbol i:nth-child(3){height:20px;border-color:#e8e1ce}.brand-text{font-size:12px;letter-spacing:.14em;font-weight:800;white-space:nowrap}.brand-text span{color:#e7b451}.brand-text small{display:block;margin-top:5px;font-size:8px;letter-spacing:.19em;font-weight:600;color:#819399}.top-centre{font-size:10px;color:#8da7a6;letter-spacing:.15em;font-weight:700}.pulse-dot,.live-indicator>span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#89d6b0;box-shadow:0 0 0 5px #89d6b018;margin-right:12px}.top-divider{padding:0 12px;color:#506468}.top-right{display:flex;gap:9px;align-items:center}.engine-pill{border:1px solid #40665b;border-radius:30px;padding:9px 12px;color:#abd9c5;font-size:9px;letter-spacing:.1em;font-weight:800;white-space:nowrap}.icon-btn{border:1px solid #30404a;background:#192734;color:#c1d4cd;width:34px;height:34px;border-radius:50%;font-size:15px}.icon-btn:hover{border-color:#82c5a7}.layout{display:grid;grid-template-columns:390px minmax(0,1fr);min-height:calc(100vh - 120px)}.studio-sidebar{padding:37px 30px 22px clamp(24px,3.3vw,54px);border-right:1px solid var(--border);background:linear-gradient(170deg,#172431,#101a25);min-width:0}.eyebrow{font-size:10px;color:#9bb3aa;font-weight:800;letter-spacing:.19em}.small-line{display:inline-block;width:18px;height:1px;background:#e6b14a;vertical-align:middle;margin-right:9px}.studio-sidebar h1{font-size:clamp(56px,5vw,85px);line-height:.87;letter-spacing:-.11em;font-weight:800;margin:22px 0 22px;color:#f2f0e6}.studio-sidebar h1 em{font-style:normal;color:#e1af54;font-weight:400}.title-period{color:#7ec9a4}.deck{font-size:13px;color:#b3c2be;line-height:1.75;max-width:290px;margin:0 0 18px}.location-tag{display:inline-flex;align-items:center;gap:9px;border:1px solid #334b4c;border-radius:100px;padding:8px 12px;font-size:9px;font-weight:800;letter-spacing:.08em;color:#b5c9c4}.location-marker{font-size:15px;color:#e9ba64}.location-separator{opacity:.5}.sidebar-separator{height:1px;background:var(--border);margin:29px 0 24px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:800;color:#d6dfd8;letter-spacing:.08em}.section-caption{font-size:10px;letter-spacing:.13em}.phase-token{color:#8fceb7;font-size:9px}.mini-descriptor{color:#93aaa8;font-size:11px;line-height:1.6;margin:10px 0 15px}.shed-toggle{display:grid;grid-template-columns:1fr 1fr;gap:9px}.shed-btn{border:1px solid #364952;background:#182735;color:#e5eadd;text-align:left;border-radius:10px;padding:11px 13px;font-weight:800;font-size:12px;transition:.2s}.shed-btn b{font-size:9px;color:#98acae;margin-right:7px}.shed-btn small{display:block;font-size:9px;margin:8px 0 0 23px;color:#809397;letter-spacing:.03em}.shed-btn.is-selected{background:#244b46;border-color:#79c8a6;box-shadow:inset 0 0 0 1px #74bfa033}.shed-btn.is-selected small{color:#a1d7bd}.action-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:8px;margin:12px 0 24px}.action-primary,.action-secondary{border-radius:8px;padding:13px 8px;font-size:10px;font-weight:900;letter-spacing:.025em;white-space:nowrap}.action-primary{color:#142728;background:linear-gradient(135deg,#e9c474,#dcb05b);border:1px solid #f0d08a}.action-primary:hover{filter:brightness(1.09)}.action-secondary{color:#ddede6;background:#2b3d44;border:1px solid #4b6062}.action-secondary:hover{background:#365158}.action-icon{font-size:16px;vertical-align:-1px;margin-right:4px}.kbd-hint{font-size:8px;color:inherit;opacity:.65;margin-left:4px}.slider-group{margin-bottom:23px}.slider-group label{font-size:10px;font-weight:800;letter-spacing:.12em}output{color:#ebc97f;font-size:12px;font-weight:800}input[type=range]{width:100%;accent-color:#e6b760;margin:17px 0 7px;cursor:pointer}.range-labels{display:flex;justify-content:space-between;gap:2px;color:#7d949b;font-size:9px;letter-spacing:.04em;font-weight:700}.range-labels .sweet-zone{color:#9bd1b2}.palette-title{margin:5px 0 15px}.palette-title>span:last-child{color:#e1be70;font-size:9px}.yarn-palette{display:flex;justify-content:space-between;gap:11px;margin-bottom:23px}.yarn-swatch{appearance:none;position:relative;width:45px;height:40px;border:1px solid #42515c;border-radius:7px;background:repeating-linear-gradient(90deg,transparent 0,rgba(0,0,0,.10) 2px,transparent 4px),var(--swatch);box-shadow:inset 0 3px 7px #00000018;flex:1}.yarn-swatch.selected{outline:2px solid #e3bd78;outline-offset:3px}.pattern-selector{margin:0 0 24px}.small-info{font-size:8px;color:#8dada2}select{margin-top:12px;width:100%;color:#d5e4db;background:#1d2c38;border:1px solid #334b55;border-radius:8px;padding:12px;cursor:pointer;font-size:11px}.studio-controls{margin-bottom:12px}.tool-buttons{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px}.tool-btn{padding:12px 3px;background:#1c2b37;border:1px solid #32434b;border-radius:7px;color:#bbcfca;font-size:9px;font-weight:800;white-space:nowrap}.tool-btn span{color:#e7bf77;font-size:13px;margin-right:2px}.tool-btn:hover{background:#29404a}.tool-btn.destructive span{color:#dd9388}.tool-btn.running{border-color:#dcae69;background:#504332}.sidebar-footer{border-top:1px solid var(--border);margin-top:28px;padding-top:18px}.sidebar-footer span{font-size:9px;color:#c7ba96;letter-spacing:.16em;font-weight:800}.sidebar-footer p{font-size:10px;line-height:1.6;color:#7d969a;margin:7px 0 0}.workbench{min-width:0;background:#ecece4;color:#192930;display:flex;flex-direction:column}.scene-shell{min-height:505px;position:relative;isolation:isolate;overflow:hidden;background:#273e43}.scene{position:absolute;inset:0;touch-action:none;cursor:grab}.scene:active{cursor:grabbing}.scene canvas{display:block;width:100%;height:100%}.scene-grid-overlay{pointer-events:none;position:absolute;inset:0;z-index:1;background:radial-gradient(circle at 63% 47%,transparent 20%,#0c252a12 68%,#0c1e2999 125%),linear-gradient(180deg,#0c273385 0,transparent 20%,transparent 70%,#0d222e9c 100%)}.scene-topline{z-index:2;position:absolute;top:0;left:0;right:0;padding:29px clamp(18px,3.2vw,52px);display:flex;justify-content:space-between;align-items:start;pointer-events:none}.scene-topline>div:first-child{display:flex;flex-direction:column;gap:8px}.scene-overline{font-size:9px;letter-spacing:.17em;color:#c4e1d3;font-weight:800}.scene-title{font-size:17px;color:#fff9e8;font-weight:800;letter-spacing:.06em}.live-indicator{border:1px solid #ffffff60;background:#0c26227d;color:#e1f8e9;border-radius:18px;padding:10px 13px;font-size:9px;letter-spacing:.09em;font-weight:800;white-space:nowrap}.live-indicator>span{width:5px;height:5px;margin-right:9px}.scene-pointer-label{position:absolute;z-index:2;top:48%;left:clamp(18px,3.2vw,52px);pointer-events:none;display:flex;align-items:center;gap:13px;max-width:280px;background:#122832b0;border:1px solid #ffffff2c;border-radius:9px;padding:12px 15px;color:white;backdrop-filter:blur(12px)}.point-marker{color:#e9bf70;font-size:25px}.scene-pointer-label b{font-size:11px;display:block;letter-spacing:.06em}.scene-pointer-label small{display:block;font-size:10px;line-height:1.45;margin-top:5px;color:#b5c9cc}.scene-bottomline{position:absolute;z-index:2;left:0;bottom:0;right:0;padding:20px clamp(18px,3.2vw,52px) 25px;display:flex;justify-content:space-between;align-items:end;gap:12px}.camera-pills{display:flex;gap:5px;flex-wrap:wrap}.camera-btn{font-size:9px;font-weight:800;letter-spacing:.05em;border:1px solid #d3eee06e;border-radius:6px;background:#102a308e;color:#d8eee6;padding:11px 11px;backdrop-filter:blur(14px)}.camera-btn.active{border-color:#eacc7c;background:#e7bc69;color:#2f3029}.camera-hint{white-space:nowrap;font-size:9px;letter-spacing:.07em;color:#e2e8de;font-weight:800}.camera-hint span{margin:0 7px;color:#c5d5c9}.camera-hint .mouse-icon{font-size:20px;margin:0 7px 0 0}.dashboard{padding:28px clamp(20px,3.1vw,50px) 24px;background:#f2f1e9;border-bottom:1px solid #d3d6ce}.dashboard-top{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-bottom:22px}.dashboard .eyebrow{color:#607c77}.dashboard h2{font-size:23px;margin:10px 0 0;letter-spacing:-.06em;font-weight:800;color:#1b3035}.title-num{color:#a7aca3;font-weight:600}.progress-status{border:1px solid #c6d9cd;border-radius:25px;padding:10px 14px;color:#4b8677;letter-spacing:.09em;font-weight:800;font-size:9px;white-space:nowrap}.progress-status.complete{background:#d9eee0;color:#236d56;border-color:#7aba9e}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.metric{padding:0 23px;border-right:1px solid #d8dad3;min-width:0}.metric:first-child{padding-left:0}.metric:last-child{padding-right:0;border-right:0}.metric-label{color:#687c7a;font-size:9px;letter-spacing:.12em;font-weight:900;white-space:nowrap}.metric-label span{float:right;color:#6ca58e;font-size:14px}.metric-value{display:flex;align-items:baseline;gap:7px;margin:10px 0 8px}.metric-value strong{font-size:39px;letter-spacing:-.06em;line-height:1;font-weight:800;color:#18343d;font-variant-numeric:tabular-nums}.metric-value span{font-size:11px;color:#859d98;font-weight:800}.metric-footer{font-size:9px;color:#7d938f;line-height:1.4}.progress-track{height:5px;background:#dbe0d4;border-radius:12px;margin-top:21px;overflow:hidden}.progress-track>div{width:0;height:100%;background:#2f8f76;border-radius:12px;transition:width .4s}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px clamp(20px,3.1vw,50px) 30px;background:#ecece4;flex:1}.note-card{background:#f8f7f0;border:1px solid #d9dcd1;border-radius:10px;padding:21px 23px;min-height:190px}.card-title{font-size:10px;font-weight:900;letter-spacing:.14em;display:flex;justify-content:space-between;color:#315e5a}.card-title span{color:#789a91}.thread-register{display:flex;align-items:end;gap:3px;height:91px;overflow:hidden;padding:12px 0 4px;border-bottom:1px solid #dde1d8}.register-empty{font-size:11px;color:#9da7a0;align-self:center}.pick-column{flex:1;min-width:3px;max-width:15px;height:100%;border-radius:2px 2px 0 0;position:relative;box-shadow:inset 0 0 0 1px #00000010}.pick-column.bad{background-image:repeating-linear-gradient(135deg,#f5f2db55 0 2px,transparent 2px 4px)}.register-foot{display:flex;justify-content:space-between;gap:7px;align-items:center;font-size:10px;color:#7f9992;margin-top:17px}.text-button{background:none;border:0;color:#2b826f;padding:0;font-size:10px;letter-spacing:.06em;font-weight:900;white-space:nowrap}.text-button:hover{text-decoration:underline}.learning-card h3{font-size:20px;letter-spacing:-.04em;margin:17px 0 8px;color:#1e353b}.learning-card p{font-size:11px;line-height:1.75;color:#748580;max-width:410px;margin:0 0 14px}.footer{background:#101923;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:15px;padding:16px clamp(20px,3vw,54px);font-size:9px;color:#869b9e;letter-spacing:.09em;font-weight:700}.footer a{color:#c4a970;text-decoration:none}.toast-host{position:fixed;z-index:25;bottom:25px;right:25px;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#192e35;border:1px solid #54786e;box-shadow:0 12px 30px #0005;color:#e8eee6;border-radius:9px;padding:12px 17px;font-size:12px;line-height:1.45;max-width:310px;animation:appear .23s ease}.toast.warn{border-color:#bf865c}.toast.success{border-color:#b6da90}@keyframes appear{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}.modal-backdrop{position:fixed;inset:0;z-index:30;background:#031014d9;backdrop-filter:blur(8px);display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.modal{max-width:690px;max-height:calc(100vh - 40px);overflow:auto;background:#f2f1e9;color:#18343a;padding:35px;position:relative;border-radius:14px;box-shadow:0 25px 80px #0006}.modal-close{position:absolute;right:19px;top:13px;font-size:27px;border:0;background:none;color:#647c76}.modal h2{font-size:32px;letter-spacing:-.06em;margin:16px 0 10px}.modal>p{font-size:12px;line-height:1.7;color:#687d77}.help-steps{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:22px}.help-steps>div{border:1px solid #d2d9d2;border-radius:9px;padding:16px}.help-steps b{font-size:14px;color:#b38a4c;display:block}.help-steps strong{font-size:14px;display:block;margin-top:5px}.help-steps p{font-size:11px;line-height:1.5;color:#6e847b}.modal-start{padding:13px 20px;margin-top:10px}.modal-context{border-left:3px solid #d6a858;padding-left:15px}
@media(max-width:1280px){.layout{grid-template-columns:340px minmax(0,1fr)}.studio-sidebar{padding-left:22px;padding-right:22px}.scene-shell{min-height:465px}.metric{padding:0 14px}.metric-label{font-size:8px}.camera-hint{display:none}.scene-pointer-label{top:46%}.tool-btn{font-size:8px}}
@media(max-width:1040px){.top-centre{display:none}.layout{grid-template-columns:300px minmax(0,1fr)}.scene-shell{min-height:435px}.scene-bottomline{align-items:end}.scene-pointer-label{top:51%;max-width:230px}.metrics{grid-template-columns:1fr 1fr;row-gap:21px}.metric:nth-child(2){border-right:0}.metric:nth-child(3){padding-left:0}.lower-grid{grid-template-columns:1fr}.note-card{min-height:150px}}
@media(max-width:760px){.topbar{height:64px;padding:0 16px}.engine-pill{font-size:8px;padding:8px}.brand-text{font-size:10px}.layout{display:flex;flex-direction:column}.studio-sidebar{order:2;padding:25px 18px 23px}.studio-sidebar h1{font-size:55px;margin:14px 0}.deck{max-width:unset}.sidebar-separator{margin:20px 0}.studio-sidebar .section-row{max-width:650px}.studio-sidebar .action-grid,.shed-toggle{max-width:650px}.workbench{order:1}.scene-shell{min-height:430px}.scene-topline{padding:17px}.scene-title{font-size:13px}.scene-overline{font-size:7px}.live-indicator{font-size:7px;padding:8px}.scene-pointer-label{top:53%;left:16px;max-width:205px;padding:8px}.scene-pointer-label small{font-size:9px}.scene-bottomline{padding:15px}.camera-btn{font-size:8px;padding:9px}.dashboard{padding:21px 17px}.dashboard h2{font-size:22px}.metrics{grid-template-columns:repeat(4,1fr);gap:0}.metric{padding:0 8px}.metric:first-child{padding-left:0}.metric:nth-child(2){border-right:1px solid #d8dad3}.metric:nth-child(3){padding-left:8px}.metric-label{font-size:7px;letter-spacing:0;white-space:normal;min-height:24px}.metric-label span{display:none}.metric-value strong{font-size:29px}.metric-footer{font-size:8px}.lower-grid{padding:14px 16px}.footer{flex-wrap:wrap;padding:17px;line-height:1.5}.sidebar-footer{margin-top:17px}}
@media(max-width:430px){.brand-symbol{width:27px}.brand-text small{letter-spacing:.05em}.icon-btn.sound-btn{display:none}.top-right{gap:6px}.engine-pill{font-size:7px}.scene-shell{min-height:390px}.scene-pointer-label{top:45%;background:#122832b8;max-width:190px}.camera-pills{gap:3px}.camera-btn{padding:8px 5px;font-size:7px}.metrics{grid-template-columns:1fr 1fr;row-gap:19px}.metric{padding:0 10px}.metric:nth-child(2){border:0}.metric:nth-child(3){padding:0}.metric-label{min-height:unset;font-size:9px;letter-spacing:.05em}.metric-value strong{font-size:36px}.progress-status{font-size:7px;padding:7px}.dashboard h2{font-size:18px}.modal{padding:23px}.help-steps{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behaviour:auto!important;animation:none!important;transition:none!important}}
