:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233c3e;background:#f7f8f5;font-synthesis:none;--green:#244e47;--orange:#c28650;--line:#e1e6df;--muted:#7c8883}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #c89561;outline-offset:3px}button{border:1px solid var(--line);border-radius:7px;padding:10px 14px;color:inherit;background:#fff}button:hover:not(:disabled){background:#eef2ec}a{color:inherit;text-decoration:none}.dark{background:#243f3e;color:white;border-color:#243f3e}.dark:hover:not(:disabled){background:#39615a}.outline{background:transparent}.quiet{border:0;background:transparent}.topbar{height:88px;padding:0 32px;display:flex;align-items:center;gap:32px;border-bottom:1px solid var(--line);background:white}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800;letter-spacing:1px;white-space:nowrap}.brand-icon{width:39px;height:44px;background:#254742;color:#e9b17e;border-radius:11px;font-size:45px;font-weight:400;line-height:31px;text-align:center}.brand-light{font-weight:400;margin-left:4px}.brand small{display:block;font-size:8px;letter-spacing:2.5px;margin-top:6px;font-weight:500}.project-name{display:flex;align-items:center;gap:10px;font-size:12px;color:#7b8781;min-width:0}.project-name #fileName{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#699a7b;flex-shrink:0}.version{font-size:9px;border:1px solid #dce4dc;border-radius:4px;padding:4px 6px;white-space:nowrap}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px;white-space:nowrap}.privacy{color:#687d70;font-size:11px;margin-right:8px}.stepper{display:flex;align-items:center;justify-content:center;gap:20px;height:99px;border-bottom:1px solid var(--line);background:#fafbf8;padding:0 32px}.workflow-label{font-size:9px;letter-spacing:1.5px;color:#a3aba4;line-height:1.9;margin-right:24px}.workflow-label span{display:block}.stepper button{border:0;padding:0;background:transparent;display:flex;align-items:center;text-align:left;gap:10px}.stepper i{font-size:11px;letter-spacing:.5px;width:33px;height:33px;border:1px solid #d9dfd7;border-radius:50%;display:grid;place-items:center;font-style:normal;color:#8e9b91}.stepper button span{font-size:12px;font-weight:600}.stepper small{display:block;font-size:10px;font-weight:400;color:#94a096;margin-top:5px}.stepper button.active i{background:#284e46;color:#fff;border-color:#284e46;box-shadow:0 0 0 4px #e7ece2}.stepper button.active span{color:#234c43}.stepper button.done i{color:#2b6850;background:#e7eee4}.stepper b{font-weight:400;color:#d4dcd3}main{max-width:1800px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:calc(100vh - 230px)}.workspace{padding:26px 28px 0;min-width:0}.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.eyebrow{font-size:9px;letter-spacing:1.9px;font-weight:650;color:#8c998e}h1{font-size:22px;font-weight:550;letter-spacing:-.6px;margin:9px 0 0}h1>span{color:#c58b55}h2{font-weight:550}.pill{font-size:8px;letter-spacing:1px;border:1px solid #dfe4d9;padding:7px 8px;border-radius:4px;color:#859181;white-space:nowrap}.viewport{height:calc(100vh - 365px);min-height:485px;position:relative;overflow:hidden;border:1px solid #dce3d9;border-radius:12px;background:radial-gradient(ellipse at 50% 40%,#fcfcf7,#e9eee5);background-image:radial-gradient(#cbd4c7 .65px,transparent .65px),radial-gradient(ellipse at 50% 40%,#fcfcf7,#e9eee5);background-size:19px 19px,100% 100%}.viewport canvas{display:block;width:100%;height:100%;touch-action:none;position:absolute;inset:0}.view-tabs{position:absolute;top:18px;left:50%;transform:translateX(-50%);display:flex;z-index:4;background:#ffffffde;padding:4px;border:1px solid #e1e7dc;border-radius:8px;white-space:nowrap;box-shadow:0 2px 6px #263d3410}.view-tabs button{border:0;padding:7px 12px;font-size:10px;background:transparent;border-radius:5px;color:#88958b}.view-tabs .selected{background:#edf1e8;color:#304e43}.left-tools{position:absolute;left:16px;top:90px;z-index:4;display:flex;flex-direction:column;gap:5px;padding:5px;border-radius:8px;background:#ffffffdf;border:1px solid #dfe5da}.left-tools button{font-size:20px;line-height:25px;width:34px;height:34px;padding:0;border:0;background:transparent;color:#6a7e72}.left-tools button.active{background:#e3ebe0;color:#233f39}.left-tools>span{border-top:1px solid #e0e5da;margin:2px}.canvas-label{position:absolute;left:20px;bottom:49px;display:flex;align-items:center;gap:7px;z-index:3;font-size:8px;letter-spacing:1.4px;color:#788a7c}.viewer-bottom{position:absolute;bottom:0;left:0;right:0;padding:12px 20px;display:flex;justify-content:space-between;z-index:3;border-top:1px solid #dce3d7;background:#f2f5edbd;font-size:9px;color:#7c8e7e}.viewer-bottom span:last-child{font-size:8px;letter-spacing:1px}.empty-state{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);z-index:2;text-align:center;width:350px}.arch-art{width:156px;margin:auto;height:128px}.arch-art svg{width:100%;height:100%}.empty-state .eyebrow{font-size:8px;letter-spacing:2px}.empty-state h2{font-family:Georgia,serif;font-size:40px;font-weight:400;line-height:1.1;letter-spacing:-1.3px;margin:14px 0;color:#345247}.empty-state p{font-size:11px;line-height:1.9;color:#869284;margin:16px 0 21px}.empty-state button{font-size:11px;padding:13px 18px;min-width:210px}.empty-state button span{margin-left:22px}.empty-state>small{display:block;font-size:8px;color:#9da694;margin-top:12px}.axis{position:absolute;right:23px;bottom:54px;font-size:8px;color:#84917d;z-index:3;width:56px;height:56px;pointer-events:none}.axis-y{position:absolute;top:-8px;left:26px}.axis-x{position:absolute;bottom:0;right:-2px}.axis-z{position:absolute;bottom:0;left:-2px}.workspace-foot{display:flex;align-items:center;justify-content:space-between;font-size:9px;gap:10px;color:#889588;padding:17px 1px}.legend-dot{width:5px;height:5px;display:inline-block;border-radius:50%;vertical-align:middle;margin:0 5px 0 12px}.legend-dot:first-child{margin-left:0}.orange{background:#c78e4f}.green{background:#4b866c}.text-button{padding:0;border:0;background:transparent;font-size:10px;color:#647b6a}.text-button:hover:not(:disabled){background:transparent;color:#244e47;text-decoration:underline}aside{border-left:1px solid var(--line);background:white;padding:27px 24px 18px;display:flex;flex-direction:column}.panel-top h2{font-size:21px;letter-spacing:-.5px;margin:10px 0}.panel-top p{font-size:11px;color:#8c978e;line-height:1.8;margin:0 0 20px}.field-title{display:flex;gap:9px;font-size:9px;letter-spacing:1px;color:#b1b8ad;margin:17px 0 12px}.field-title span{color:#546c5b;font-size:11px;letter-spacing:0}.wire-types{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wire-types button{padding:12px 12px 10px;text-align:left;border-color:#e6e9e1}.wire-types svg{width:74px;height:25px;display:block;stroke:#a4b0a2;stroke-width:1.4;fill:none;margin-bottom:7px}.wire-types strong{display:block;font-size:11px;font-weight:550}.wire-types small{font-size:8px;display:block;color:#9aa393;margin-top:4px}.wire-types .chosen{border-color:#809f8a;background:#f2f5ee;box-shadow:inset 0 0 0 .3px #809f8a}.wire-types .chosen svg{stroke:#a97c50}.segmented{display:flex;background:#f5f7f1;border:1px solid #e8ebe2;border-radius:6px;padding:3px}.segmented button{flex:1;background:none;border:0;padding:7px;font-size:10px}.segmented .chosen{background:white;box-shadow:0 1px 4px #26492d12;border-radius:4px}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin-top:12px;border:1px dashed #cdd8c7;padding:18px 8px;background:#fcfdf9;border-radius:8px}.dropzone>span{font-size:24px;line-height:25px;color:#78947b;margin-bottom:9px}.dropzone strong{font-size:11px;font-weight:500}.dropzone small{font-size:9px;color:#9aa794;margin-top:6px}.dropzone em{font-size:8px;color:#b0b9a8;font-style:normal;margin-top:11px}.dropzone.dragover{background:#e3eee0;border-color:#436d4f}.unit-row{display:flex;justify-content:space-between;align-items:center;font-size:10px;gap:10px;margin:14px 0}.unit-row label{color:#879582}.unit-row select,.unit-row input{font-size:10px;border:1px solid #e0e5da;border-radius:5px;color:#65795f;padding:7px 8px;background:#fff;max-width:148px}.unit-row input{width:80px}.demo-link{padding:12px 0;font-size:10px;width:100%;background:transparent;border:0;border-top:1px solid #eff1e9;border-radius:0;text-align:left;color:#5d775e}.demo-link span{float:right}.note{display:flex;gap:9px;margin:15px 0 12px;padding:12px;background:#f5f7f1;border:1px solid #edf0e7;border-radius:6px}.note>span{font-size:15px;color:#83977b}.note p{font-size:9px;line-height:1.8;color:#8f9b86;margin:0}.note strong{display:block;font-weight:500;color:#60765c}.panel-bottom{margin-top:auto;padding-top:24px}.nav-buttons{display:flex;gap:10px}.nav-buttons button{font-size:11px;flex:1;padding:12px}.panel-bottom>small{font-size:6.5px;letter-spacing:.7px;display:block;text-align:center;margin-top:14px;color:#b0b8a9}footer{display:flex;align-items:center;justify-content:space-between;padding:14px 32px;font-size:8px;color:#a3ab9b;letter-spacing:.5px;border-top:1px solid var(--line)}footer b{font-weight:400;margin:0 9px;color:#d0d8c7}.wide{width:100%;margin:6px 0;font-size:11px;padding:12px}.instruction{padding:22px 0}.instruction>span{font-family:Georgia,serif;font-size:50px;color:#c6d5c2}.instruction h3{font-size:17px;font-weight:500}.instruction p,.muted{font-size:11px;line-height:1.8;color:#8a9884}.active-tooth{border:1px solid #e0e8d9;background:#f6f8f1;border-radius:8px;text-align:center;padding:20px 14px}.active-tooth>span{font-size:8px;letter-spacing:1.5px;color:#8fa083}.active-tooth strong{display:block;font-family:Georgia,serif;font-size:60px;font-weight:400;color:#3f6551;line-height:1.3}.active-tooth p{font-size:10px;color:#93a087;line-height:1.6}.progress-line{display:flex;justify-content:space-between;font-size:10px;color:#7b8d70;margin:22px 0 12px}.teeth-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.teeth-grid button{padding:10px 0;font-size:10px;border-radius:5px}.teeth-grid .marked{background:#e9f1e3;color:#3b7551;border-color:#c5d7bb}.teeth-grid .skipped{color:#bdc2b8;text-decoration:line-through}.teeth-grid .current{border:1px solid #bd8955;color:#ab7343;box-shadow:0 0 0 1px #bd8955}.two-buttons{display:flex;gap:5px;margin:12px 0}.two-buttons button{padding:8px 5px;font-size:9px;flex:1}.range-label{display:flex;justify-content:space-between;margin-top:22px;font-size:11px;color:#6c8062}.range-label output{color:#b0804d;font-size:10px}input[type=range]{width:100%;accent-color:#466a52;margin:14px 0 3px}.switch-row{display:flex;align-items:center;gap:8px;font-size:11px;color:#7c8d72;margin-top:18px}input[type=checkbox]{accent-color:#4e7454}.loop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.loop-grid button{font-size:9px;padding:9px 3px}.loop-grid .chosen{color:#976d3c;background:#fbf2e5;border-color:#d9b586}.export-card{text-align:center;padding:12px 0 18px}.export-card>span{font-size:48px;color:#b18b57}.export-card h3{font-size:18px;font-weight:500}.export-card p{font-size:11px;color:#8a987f;line-height:1.8}.summary{border-top:1px solid #e6ebe0;border-bottom:1px solid #e6ebe0;padding:10px 0;margin-bottom:20px}.summary>div{display:flex;justify-content:space-between;margin:13px 0;font-size:10px}.summary span{color:#93a087}.summary strong{font-weight:500;color:#556d48}#markers{position:absolute;inset:0;pointer-events:none;overflow:hidden}.marker-label{position:absolute;transform:translate(-50%,-150%);background:#fffef4e8;border:1px solid #c8d9b9;border-radius:4px;padding:3px 5px;font-size:8px;color:#456b3d}.marker-label.active{background:#bf8b55;color:white;border-color:#bf8b55}#loading{position:absolute;inset:0;z-index:7;background:#eff3e7de;place-items:center;color:#517044;font-size:15px}#loading:not([hidden]){display:grid}#measureResult{position:absolute;top:75px;left:50%;transform:translateX(-50%);z-index:5;background:#fff9e9;border:1px solid #d7b889;padding:10px 16px;border-radius:6px;font-size:12px;color:#9c6f3f}#toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);max-width:90vw;background:#294f42;color:white;padding:13px 22px;border-radius:8px;font-size:12px;z-index:20;box-shadow:0 10px 30px #183e3420}dialog{border:1px solid #dbe4d0;border-radius:14px;max-width:540px;padding:32px;color:#36563f;background:#fffffb}dialog::backdrop{background:#182e2580;backdrop-filter:blur(3px)}dialog h2{font-size:24px}dialog li{font-size:12px;line-height:1.8;margin:10px 0}dialog p{font-size:11px;line-height:1.8;color:#8a987c}#closeHelp{position:absolute;right:14px;top:12px;border:0;background:none;font-size:22px}[hidden]{display:none!important}@media(min-width:1550px){main{grid-template-columns:minmax(0,1fr) 370px}.workspace{padding:30px 40px 0}.viewport{min-height:590px}.topbar{padding:0 40px}.stepper{gap:35px}}@media(max-width:1150px){.project-name{display:none}.workflow-label{display:none}.stepper{gap:12px}.stepper b{display:none}.stepper button{gap:6px}.stepper small{font-size:8px}main{grid-template-columns:minmax(0,1fr) 310px}.workspace{padding:22px 18px 0}.workspace-head h1{font-size:18px}.pill{display:none}.workspace-foot>span:nth-child(2){display:none}aside{padding:24px 20px}.topbar{padding:0 22px}.view-tabs button{padding:7px 8px;font-size:9px}}@media(max-width:760px){.topbar{height:75px;padding:0 16px;gap:10px}.brand{font-size:17px}.brand-icon{width:32px;height:37px;font-size:37px;line-height:27px}.brand small{font-size:6px;letter-spacing:1.9px}.header-actions{gap:2px;font-size:10px}.header-actions button{padding:9px}.privacy{display:none}.stepper{height:72px;padding:0 10px;gap:0;justify-content:space-between}.stepper button{flex-direction:column;gap:6px;text-align:center}.stepper i{width:25px;height:25px;font-size:9px}.stepper button span{font-size:9px}.stepper small{display:none}main{display:flex;flex-direction:column}.workspace{padding:19px 12px 0}.workspace-head{margin-bottom:15px}.workspace-head h1{font-size:18px}.viewport{height:420px;min-height:0}.view-tabs{top:13px}.left-tools{left:10px;top:65px}.canvas-label{left:15px}.viewer-bottom{padding:12px;font-size:8px}.axis{right:16px}.workspace-foot{padding:13px 2px}aside{border-left:0;border-top:1px solid var(--line);padding:24px 22px}.wire-types{grid-template-columns:repeat(4,1fr);gap:5px}.wire-types button{padding:10px 6px}.wire-types svg{width:100%}.wire-types strong{font-size:9px}.wire-types small{font-size:6px}.field-title{margin-top:12px}.empty-state h2{font-size:35px}.empty-state p{margin:12px 0}.arch-art{width:130px;height:105px}footer{padding:15px;line-height:1.7;font-size:7px}footer span:last-child{display:none}.panel-bottom{padding-top:18px}.note p{font-size:10px}}

#developmentPanel{border:1px solid #dce3d9;background:#fcfdf9;border-radius:9px;margin-top:14px;padding:15px 18px}.development-head{display:flex;justify-content:space-between;gap:10px}#featureCount{font-size:9px;color:#9c8b68}#developmentView svg{display:block;width:100%;max-height:280px}#wireWarnings{font-size:10px;color:#b26e40;line-height:1.7;margin:0}.loop-grid button{font-size:8px;line-height:1.4}#typeDescription{font-size:10px;padding:8px;background:#f8f8f0;border-radius:5px}.range-label>span{display:inline}body:has(#developmentPanel:not([hidden])) .viewport{height:calc(100vh - 530px);min-height:400px}@media(max-width:760px){body:has(#developmentPanel:not([hidden])) .viewport{height:400px;min-height:0}#developmentView svg{min-height:150px}}

.loop-editor{margin-top:14px;padding:14px;border:1px solid #dce4da;border-radius:12px;background:#f4f7f1}.loop-row{display:flex;gap:8px}.loop-row .loop-select{flex:1;text-align:left}.loop-row .loop-toggle{min-width:78px}.loop-row .selected{border-color:#557465;background:#eaf1e9;color:#244b3c}.loop-editor .range-label{margin-top:12px}
/* Compact quick-angle pad beneath the scan, matching the reference viewer's direction grid. */
.view-control-card{margin:0 0 16px;padding:13px 16px 11px;border:1px solid #d7c08c;border-radius:10px;background:#fffdf8;display:grid;grid-template-columns:minmax(130px,1fr) auto minmax(130px,1fr);align-items:center;gap:14px}.view-control-head{display:flex;flex-direction:column;gap:5px}.view-control-head>.eyebrow{color:#a17d40}.view-control-head>span:last-child{font-size:10px;color:#899187}.direction-pad{display:grid;grid-template-columns:repeat(3,38px);grid-template-rows:repeat(3,34px);gap:3px}.direction-pad button{padding:0;border:0;border-radius:6px;background:transparent;color:#818983;font-size:23px;line-height:1}.direction-pad button:hover,.direction-pad button.selected{background:#f3ead6;color:#a67c35}.direction-pad button[data-angle=iso]{font-size:25px;color:#687872}.direction-pad button[data-angle=iso].selected{color:#a67c35}.view-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.view-shortcuts button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 4px;border:0;background:transparent;color:#8a806a;font-size:18px}.view-shortcuts button span{font-size:8px;color:#68776e}.view-shortcuts button:hover{background:#f3ead6;color:#a67c35}
@media(max-width:760px){.view-control-card{grid-template-columns:1fr auto;gap:7px 12px;padding:12px}.view-control-head{grid-column:1}.view-control-head>span:last-child{display:none}.direction-pad{grid-column:2;grid-row:1 / span 2;grid-template-columns:repeat(3,39px);grid-template-rows:repeat(3,35px)}.view-shortcuts{grid-column:1;grid-row:2;max-width:220px}.view-shortcuts button{font-size:16px;padding:5px 2px}.view-shortcuts button span{font-size:7px}}
.view-control-card{position:absolute;right:18px;bottom:108px;z-index:6;width:238px;margin:0;padding:12px 14px 9px;border:1px solid #bd984f;border-radius:14px;background:#2c3336;color:#e8d4a7;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:0 8px 24px #10201b35}.view-control-head{width:100%;align-items:center}.view-control-head>.eyebrow{color:#f0d397;font-size:13px;letter-spacing:0;text-transform:none}.direction-pad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,37px);gap:2px}.direction-pad button{color:#a5aaad;font-size:26px}.direction-pad button:hover,.direction-pad button.selected,.direction-pad button[data-angle=iso],.direction-pad button[data-angle=iso].selected{background:#3b4244;color:#e5c77f}.view-shortcuts{width:100%;border-top:1px solid #515757;padding-top:5px}.view-shortcuts button{color:#e0d1aa;font-size:18px}.view-shortcuts button span{color:#d5d2c8}.view-shortcuts button:hover{background:#41484a;color:#f6d878}.view-toggle{position:absolute;right:18px;bottom:16px;z-index:7;width:58px;height:58px;padding:14px;border:2px solid #d29a28;border-radius:50%;background:#f6ad2b;color:#263a39;box-shadow:0 4px 14px #18272236}.view-toggle:hover,.view-toggle[aria-expanded=true]{background:#ffc047;color:#1d3535}.view-toggle svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}.view-toggle[aria-expanded=true] svg circle{fill:currentColor}.view-control-card[hidden]{display:none}
@media(max-width:760px){.view-control-card{right:12px;bottom:105px;width:222px;padding:10px 12px 8px}.view-control-head>.eyebrow{font-size:12px}.direction-pad{grid-template-columns:repeat(3,40px);grid-template-rows:repeat(3,34px)}.direction-pad button{font-size:23px}.view-toggle{right:12px;bottom:13px;width:54px;height:54px;padding:13px}.view-shortcuts button{font-size:16px}}
.viewport canvas{cursor:grab}.viewport canvas:active{cursor:grabbing}
.view-orientation-actions{width:100%;display:grid;grid-template-columns:1.35fr 1fr 1fr;align-items:stretch;border-top:1px solid #515757;padding-top:5px}.view-orientation-actions button{min-height:42px;display:flex;align-items:center;justify-content:center;gap:5px;padding:4px;border:0;border-radius:6px;background:transparent;color:#e0d1aa;font-size:23px}.view-orientation-actions button:first-child{flex-direction:column;gap:0;font-size:22px}.view-orientation-actions button:hover{background:#41484a;color:#f6d878}.view-orientation-actions button span{font-size:8px}.view-orientation-actions button small{font-size:9px;line-height:1;color:#d5d2c8}
#autoFront{border-color:#c9ae76;background:#fcf8ee;color:#765d30}#autoFront:hover:not(:disabled){background:#f5ecd6}

/* Dark, high-contrast workspace theme */
:root{color:#e7edf0;background:#171d22;--line:#3b454b;--muted:#aebbc2;color-scheme:dark}
body{background:#171d22;color:#e7edf0}
.topbar,.stepper,aside{background:#222a30;color:#e7edf0;border-color:#3a454c}
.project-name,.privacy,.workflow-label,.stepper small,.workspace-foot,.panel-top p,.muted,.instruction p,.dropzone small,.dropzone em,.note p,.range-label,.unit-row label,.panel-bottom>small,footer{color:#b0bdc4}
.version,.pill{border-color:#4b575e;color:#c3cdd2;background:#283138}
.stepper{border-color:#3a454c}.stepper button span{color:#dce4e8}.stepper button.active span{color:#ffd27a}.stepper i{border-color:#58656c;color:#c0cbd0}.stepper button.active i{background:#d79a32;color:#172027;border-color:#f0b94f;box-shadow:0 0 0 4px #544321}.stepper button.done i{background:#30483d;color:#b9edcc;border-color:#537662}.stepper b{color:#647178}
.workspace-head h1,.panel-top h2,h2,h3,strong{color:#edf2f4}
.eyebrow{color:#c0cbd0}.workspace-head h1>span{color:#f0b34b}
button{background:#303a41;color:#e7edf0;border-color:#59666d}button:hover:not(:disabled){background:#3a464d}.dark{background:#d99c32;color:#172027;border-color:#eab54d;font-weight:650}.dark:hover:not(:disabled){background:#f0b94f;color:#172027}.outline{background:#293238;color:#e2e9ec}.quiet{background:transparent;color:#e2e9ec}.text-button{color:#f0c66d}.text-button:hover:not(:disabled){color:#ffe09a}
.viewport{border-color:#465158;background-color:#20282e;background-image:radial-gradient(#58636a .65px,transparent .65px),radial-gradient(ellipse at 50% 40%,#303a41,#1d2429)}
.view-tabs{background:#262f35ed;border-color:#515e64;box-shadow:0 2px 8px #0006}.view-tabs button{color:#bdc7cc}.view-tabs .selected{background:#4a5358;color:#ffe09a}.left-tools{background:#252e34e8;border-color:#4b575d}.left-tools button{color:#d1d9dc}.left-tools button.active{background:#4a5358;color:#ffe09a}.canvas-label{color:#d3dce0}.viewer-bottom{background:#20282edb;border-color:#424d53;color:#c3cdd2}.axis{color:#c4cdd1}.axis svg path{stroke:#c4cdd1}
.empty-state h2{color:#f1d49b}.empty-state p,.empty-state>small{color:#c0cbd0}.empty-state .eyebrow{color:#d0dadf}.arch-art svg path:first-child{stroke:#59676d}.arch-art svg path:nth-child(2){stroke:#a9b8b1}
aside{border-left-color:#3b464d}.field-title{color:#b9c5ca}.field-title span{color:#f0cf87}.wire-types button{background:#293238;border-color:#46535a}.wire-types svg{stroke:#b8c4c8}.wire-types small{color:#b5c0c5}.wire-types .chosen{background:#35433d;border-color:#76a287;box-shadow:inset 0 0 0 .3px #76a287}.wire-types .chosen svg{stroke:#f0bd72}
.segmented{background:#293238;border-color:#465158}.segmented button{color:#d5dfe3}.segmented .chosen{background:#465158;color:#fff0c4;box-shadow:0 1px 4px #0005}
.dropzone{background:#252e34;border-color:#647279;color:#eef2f4}.dropzone>span{color:#f0bd72}.dropzone.dragover{background:#35433d;border-color:#90c9a6}
.unit-row select,.unit-row input,input[type=number]{background:#20282e;border-color:#59666d;color:#edf2f4}.demo-link{color:#f0cd80;border-color:#414c52}.note{background:#293238;border-color:#465158}.note strong{color:#e8d59e}.note>span{color:#f0bd72}
.instruction>span{color:#687b73}.active-tooth{border-color:#55645d;background:#28332f}.active-tooth>span,.active-tooth p,.progress-line{color:#bac9bf}.active-tooth strong{color:#d7efdc}.teeth-grid .marked{background:#30483d;color:#c9f1d4;border-color:#5a8069}.teeth-grid .skipped{color:#7f8b90}.teeth-grid .current{color:#ffe09a;border-color:#e9b55e;box-shadow:0 0 0 1px #e9b55e}
.range-label{color:#cad4d8}.range-label output{color:#ffd27a}input[type=range]{accent-color:#edb84c}.switch-row{color:#d1dbdf}input[type=checkbox]{accent-color:#edb84c}.loop-grid .chosen{color:#ffe09a;background:#454034;border-color:#d3a94e}.loop-editor{background:#252e34;border-color:#465158}.loop-editor .selected{border-color:#9ac2a7;background:#35433d;color:#e1f2e6}
.summary{border-color:#465158}.summary span{color:#b5c1c6}.summary strong{color:#f0d18b}.export-card>span{color:#f0bd72}.export-card p{color:#bdc8cc}footer{border-color:#3a454c}footer b{color:#647178}
#developmentPanel{border-color:#465158;background:#242d33}#featureCount{color:#f0d18b}#wireWarnings{color:#ffbd83}#typeDescription{background:#303a40;color:#d9e2e5}.loop-row .selected{border-color:#9ac2a7;background:#35433d;color:#e1f2e6}
.view-control-card{background:#2c3336;color:#f0d397;border-color:#bd984f}.view-control-head>.eyebrow{color:#f0d397}.direction-pad button{color:#aeb8bd}.direction-pad button:hover,.direction-pad button.selected,.direction-pad button[data-angle=iso],.direction-pad button[data-angle=iso].selected{background:#3b4244;color:#f4d17f}.view-shortcuts button{color:#e0d1aa}.view-shortcuts button span{color:#d5d2c8}
#loading{background:#172027e8;color:#f0d397}#measureResult{background:#303a40;border-color:#bd984f;color:#ffe09a}#toast{background:#39473f;color:#f4f4e9}dialog{background:#252e34;color:#e7edf0;border-color:#657177}dialog p{color:#c0cbd0}#closeHelp{background:transparent;color:#e7edf0}

.loop-grid{grid-template-columns:1fr 1fr}.loop-row .loop-select{font-size:11px;min-width:0}.loop-row .loop-toggle{min-width:65px;font-size:10px}

.viewport canvas{cursor:grab;user-select:none;-webkit-user-select:none}.viewport canvas.is-grabbing{cursor:grabbing!important}.viewport:has(#measure.active) canvas:not(.is-grabbing){cursor:crosshair!important}

#developmentView svg{max-height:none;min-height:260px}

#modeParameters{border:1px solid var(--line,#40505c);border-radius:12px;margin:18px 0;padding:14px}#modeParameters legend{color:#f5d796;padding:0 7px}#modeParameters .unit-row input,#modeParameters .unit-row select{max-width:155px}

#viewport canvas.is-panning{cursor:move!important}

#meawAdjustments input[type=number]{width:100%;box-sizing:border-box;margin:6px 0 12px}

#meawAdjustments input[type=number]{width:100%;min-height:44px;padding:10px 12px;border:1px solid #52616c;border-radius:8px;background:#171f26;color:#f1f5f8;font-size:16px}#meawAdjustments input[type=number]:focus{outline:2px solid #e1bb66;outline-offset:2px}#planeStatus,#scanDimensions{line-height:1.6}

.workflow-coach{position:absolute;right:12px;top:65px;z-index:8;width:160px;padding:12px;border:1px solid #71818c;border-radius:10px;background:#17222bed;color:#ecf2f7;box-shadow:0 6px 20px #0003}.workflow-coach strong{display:block;padding-right:14px;font-size:12px}.workflow-coach button{position:absolute;right:4px;top:4px;padding:0 5px;border:0;background:transparent;color:#e8edf1;font-size:19px}.workflow-coach p{margin:3px 0 0;font-size:10px;line-height:1.5;color:#cdd8df}.workflow-coach svg{width:100%;display:block}.workflow-coach text{fill:#d8e4ef;stroke:none;text-anchor:middle;font:10px Arial,sans-serif}@media(max-width:600px){.workflow-coach{width:128px;right:8px;top:58px;padding:8px}.workflow-coach p{font-size:9px}}

#toothCursor{position:absolute;z-index:12;pointer-events:none;padding:4px 7px;border:1px solid #ffe1a0;border-radius:8px;background:#604d22ee;color:#fff3d8;font-size:14px;font-weight:700;box-shadow:0 2px 6px #0004}#measureResult{pointer-events:none;white-space:nowrap}

#restoreDraftBox{display:block}#restoreDraftBox[hidden]{display:none}#restoreDraftSelect{display:block;width:100%;max-width:100%;min-height:42px;margin:8px 0 12px}#restoreDraftBox .two-buttons{grid-template-columns:1fr}#restoreDraftBox p{margin:0 0 8px}

#bootStatus{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:30;padding:12px 18px;border:1px solid #caa557;border-radius:9px;background:#28353ded;color:#ffe2a3;font-size:13px}html[data-wire-ready="true"] #bootStatus{display:none}

.teeth-grid button.suspect{border:2px solid #f3a752;color:#ffd3a0;background:#443326}.teeth-grid button.suspect::after{content:' !';font-weight:bold}

#occlusalGuide{position:absolute;inset:8% 20% 12%;width:60%;height:80%;z-index:2;pointer-events:none;fill:none;stroke:#e0c27e;stroke-width:1;stroke-dasharray:4 4;opacity:.65}#occlusalGuide[hidden]{display:none}#alignmentStatus{position:absolute;left:50%;bottom:52px;transform:translateX(-50%);z-index:8;pointer-events:none;background:#203039e8;border:1px solid #a38d55;color:#ffe2a0;padding:7px 10px;border-radius:6px;max-width:80%;text-align:center;font-size:12px}#lock.aligned{box-shadow:0 0 0 3px #f5cf6d80}

.geaw-method{width:100%;border-collapse:collapse;font-size:12px}.geaw-method td,.geaw-method th{padding:7px 4px;border-bottom:1px solid #45515a;text-align:left;vertical-align:top}#foldDrawing svg{display:block;width:100%;min-height:180px;max-height:300px}

.wire-types svg{height:32px}.wire-types .meaw-symbol{width:100%;max-width:124px;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}

.welcome-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.empty-state .welcome-actions button{min-width:198px;max-width:245px;margin:0;justify-content:center}.empty-state .welcome-actions .outline{border-color:#70818a;color:#e6e9eb;background:transparent}.empty-state .welcome-actions .outline:hover{background:#34424a}@media(max-width:650px){.welcome-actions{flex-direction:column;align-items:center;gap:8px}.empty-state .welcome-actions button{padding:10px 14px}}

/* Separate upper/lower cases and explicit scan assignment. */
.viewer-jaws{position:absolute;top:56px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:7;background:#18242be8;border:1px solid #64747c;border-radius:10px;padding:4px;white-space:nowrap}.viewer-jaws button{padding:6px 12px;background:transparent;color:#e9f0f3;border:0;border-radius:6px}.viewer-jaws button.chosen{background:#d3ab65;color:#111b20}.jaw-files{font-size:13px;color:#c5d0d7;overflow-wrap:anywhere}.jaw-files p{margin:6px 0}#scanDialog{color:#eff4f7;background:#1b2932;border:1px solid #687c88;border-radius:18px;padding:26px;width:min(520px,calc(100vw - 32px));max-height:90vh;overflow:auto;box-shadow:0 20px 80px #0008}#scanDialog::backdrop{background:#0009}#scanDialog h2{margin:0 0 20px}#scanDialog label{display:block;margin:14px 0 7px;font-size:15px}#scanDialog select{display:block;width:100%;padding:11px;background:#111c24;color:#eef4f8;border:1px solid #647581;border-radius:9px;font-size:16px}#scanDialog button{padding:12px 16px;border-radius:9px;font-size:15px}#scanImportHint{color:#c7d3dc;font-size:15px}#scanImportError{color:#ffafa8;font-size:15px}.scan-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}#scanDialog button:disabled{opacity:.45;cursor:not-allowed}

.fold-tool-detail{margin:12px 0;padding:16px;background:#121e28;border:1px solid #506574;border-radius:12px;color:#e8f2f7}.fold-tool-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px}.fold-tool-heading strong{color:#ff8eb1}.fold-tool-heading span{font-size:14px;color:#cbd9e2}.fold-tool-detail svg{display:block;width:100%;height:200px}.fold-tool-detail p{font-size:15px;color:#d2dee7;line-height:1.6;margin:10px 0}.fold-tool-detail small{color:#b9c9d4;font-size:13px}.fold-tool-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;margin:12px 0}.fold-tool-legend span:before{content:'';display:inline-block;width:12px;height:8px;border-radius:3px;background:#b8c6d0;margin-right:6px}.fold-tool-legend span:nth-child(2):before{background:#ff6798}.fold-tool-legend span:nth-child(3):before{background:#f6be68}#foldDrawing svg{display:block;width:100%;min-height:170px}
