:root{--ink:#10202e;--muted:#63727c;--line:#e1e7e8;--paper:#f5f6f2;--white:#fff;--blue:#0a8cba;--lime:#c9f06b;--amber:#f4b64f}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',sans-serif}.topbar{height:64px;background:#0f1e2a;color:#f4f6f3;display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100vw - 1220px)/2),24px)}.brand{text-decoration:none;display:flex;align-items:center}.brand-wordmark{display:block;color:#f3f7f9;font:700 18px/1.15 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.35px;white-space:nowrap}.product-mark{margin-left:18px;padding-left:17px;border-left:1px solid #44535d;color:#b8cbd0;font:700 8px 'DM Sans';letter-spacing:1.15px}.top-links{display:flex;align-items:center;gap:20px}.top-links a{color:#c8d2d3;text-decoration:none;font-size:11px}.top-links span{color:#829198;font-size:8px;letter-spacing:1px}main{max-width:1220px;margin:auto;padding:45px 24px 28px}.hero{display:grid;grid-template-columns:1.5fr .8fr;gap:44px;align-items:center;margin-bottom:32px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.3px;color:#6d858c;margin:0 0 10px}.hero h1{font:800 clamp(38px,5vw,59px)/1.02 Manrope;letter-spacing:-2.4px;margin:0 0 15px}.hero h1 em{font-style:normal;color:#0789b6}.lede{font-size:14px;line-height:1.7;color:#53636b;max-width:680px;margin:0}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.chips span{border:1px solid #d9e1de;border-radius:20px;padding:7px 10px;color:#4e636a;font-size:9px}.notice{background:#102432;color:#eaf1ed;border-radius:12px;padding:23px 24px;box-shadow:0 12px 34px #172d371c}.notice-tag{color:var(--lime);font-size:8px;letter-spacing:1.4px;font-weight:700}.notice h2{font:700 18px Manrope;margin:13px 0 8px}.notice p{color:#bdcbd0;font-size:11px;line-height:1.65;margin:0}.workspace{display:grid;grid-template-columns:.94fr 1.06fr;gap:15px}.panel{background:var(--white);border:1px solid var(--line);border-radius:11px;padding:21px 22px}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:15px}.panel-head h2,.product h2,.lessons h2{font:700 18px Manrope;letter-spacing:-.4px;margin:0}.quiet{color:#8b979a;font-size:9px;text-align:right}.character-list{display:grid;gap:7px}.character{width:100%;display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:10px;text-align:left;border:1px solid #e9edec;background:#fff;border-radius:8px;padding:12px;cursor:pointer;color:var(--ink)}.character.active{border-color:#6cb8cc;background:#f3fafb}.character b{font:700 11px Manrope;display:block}.character small{display:block;color:#748186;font-size:9px;line-height:1.5;margin-top:4px}.status-dot{width:7px;height:7px;background:var(--amber);border-radius:50%;align-self:start;margin-top:4px}.badge{border:1px solid #e0e7e5;background:#f7f9f6;color:#697873;border-radius:20px;padding:5px 8px;font-size:8px;white-space:nowrap}.badge.caution{background:#fff7e9;border-color:#f2dfbe;color:#8d692b}.character-detail{border-top:1px solid #e8edeb;margin-top:13px;padding-top:14px}.detail-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.detail-top h3{font:700 15px Manrope;margin:0}.detail-top .eyebrow{margin:0}.character-detail>p{font-size:9px;line-height:1.6;color:#6e7c80;overflow-wrap:anywhere}.next-action{border-left:2px solid var(--blue);padding:8px 10px;background:#f3f8f8;display:grid;gap:4px;font-size:9px;color:#5d6c70}.next-action b{color:#28505d}.review-note{border:1px solid #f0e2c8;border-radius:6px;background:#fffaf1;padding:9px;color:#76664b!important}.step-count{font-size:9px;color:#71858c;font-weight:700}.progress{height:3px;background:#edf0ec;margin:16px 0 18px}.progress span{display:block;background:var(--blue);height:100%;transition:width .2s}.routine-grid{display:grid;grid-template-columns:155px 1fr;gap:20px}.steps{display:grid;align-content:start;gap:4px}.step{display:grid;grid-template-columns:23px 1fr;align-items:center;gap:7px;text-align:left;border:0;background:transparent;padding:8px 6px;border-radius:6px;color:#6e7b7e;cursor:pointer}.step span{height:20px;width:20px;border:1px solid #dce4e2;border-radius:50%;display:grid;place-items:center;font-size:8px}.step b{font-size:9px;font-weight:600;line-height:1.35}.step.current{background:#eff8fa;color:#145165}.step.current span{background:var(--blue);border-color:var(--blue);color:#fff}.step.complete span{background:#e8f4ca;border-color:#c6dd8c;color:#52712d}.step-content{border-left:1px solid #edf0ed;padding-left:19px}.step-kicker{font-size:8px;font-weight:700;letter-spacing:1px;color:#1685a2;margin:3px 0 7px}.step-content h3{font:700 17px Manrope;margin:0 0 9px}.step-content>p:not(.step-kicker){font-size:10px;line-height:1.65;color:#66767a}.step-content ul{padding-left:16px;color:#495a60;font-size:9px;line-height:1.8}.step-warning{border:1px solid #f1e5ca;background:#fffbf2;border-radius:6px;color:#78663f;font-size:9px;line-height:1.55;padding:9px 10px;margin-top:11px}.step-actions{display:flex;justify-content:space-between;margin-top:17px}.step-actions button{border-radius:6px;padding:9px 11px;font:600 9px 'DM Sans';cursor:pointer}.primary{border:1px solid #102a39;background:#102a39;color:#fff}.secondary{border:1px solid #e0e7e5;background:#fff;color:#66777b}.secondary:disabled{opacity:.4}.product{margin-top:15px;display:grid;grid-template-columns:.75fr 1.25fr;gap:30px;background:#111f2b;color:#f0f3ee;border-radius:11px;padding:23px}.product .eyebrow{color:var(--lime)}.product p:not(.eyebrow){color:#b6c1c2;font-size:10px;line-height:1.65;max-width:370px}.product h2{font-size:19px}.layers{display:grid;grid-template-columns:1fr 1fr;gap:7px}.layer{display:grid;grid-template-columns:25px 1fr;gap:8px;border:1px solid #35444d;padding:9px;border-radius:7px}.layer-no{font:700 9px Manrope;color:var(--lime)}.layer h3,.lesson h3{font:700 10px Manrope;margin:0 0 4px}.layer p,.lesson p{font-size:8px;line-height:1.5;color:#b7c2c2;margin:0}.lessons{margin-top:28px}.lessons>.panel-head{margin:0 0 13px}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.lesson{display:grid;grid-template-columns:26px 1fr;gap:8px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px}.lesson-no{font:700 9px Manrope;color:#1689a9}.lesson h3{color:#30444c}.lesson p{color:#778489}footer{padding:25px 0 0;color:#8b9593;font-size:9px;letter-spacing:.2px}@media(max-width:900px){.workspace{grid-template-columns:1fr}.hero{grid-template-columns:1.1fr .9fr;gap:20px}.routine-grid{grid-template-columns:135px 1fr}}@media(max-width:600px){.topbar{padding:0 17px;height:56px}.brand-wordmark{font-size:14px}.product-mark{font-size:7px;margin-left:10px;padding-left:10px}.top-links span{display:none}main{padding:28px 14px}.hero{grid-template-columns:1fr;gap:18px}.hero h1{font-size:42px}.workspace{gap:10px}.panel{padding:16px}.panel-head{align-items:start;flex-direction:column}.quiet{text-align:left}.routine-grid{grid-template-columns:1fr;gap:12px}.steps{grid-template-columns:1fr 1fr}.step-content{border-left:0;border-top:1px solid #edf0ed;padding:13px 0 0}.product{grid-template-columns:1fr;padding:17px;gap:10px}.layers{grid-template-columns:1fr}.lesson-grid{grid-template-columns:1fr 1fr}.character{grid-template-columns:9px 1fr}.character .badge{grid-column:2;justify-self:start}.detail-top{align-items:start}.lessons>.panel-head{align-items:start}}

/* Source review recovery: explicit paths, dark contrast and compact touch controls. */
.scan-to-cad-module .topbar{min-height:64px;height:auto;gap:14px;padding:12px max(calc((100vw - 1220px)/2),20px);flex-wrap:wrap}
.scan-to-cad-module .product-mark{font-size:10px;line-height:1.4;letter-spacing:.08em;max-width:240px}
.scan-to-cad-module .top-links{margin-left:auto;gap:12px}
.scan-to-cad-module .top-links a{font-size:13px;padding:10px 0;min-height:44px;display:inline-flex;align-items:center}
.scan-to-cad-module .hero h1,.scan-to-cad-module .panel h2,.scan-to-cad-module .panel h3,.scan-to-cad-module .notice h2{color:#f0f6fa}
.scan-to-cad-module .lede,.scan-to-cad-module .quiet,.scan-to-cad-module .chips span,.scan-to-cad-module .step-content>p,.scan-to-cad-module .step-content ul,.scan-to-cad-module .lesson p{color:#b9cbd8}
.scan-to-cad-module .eyebrow{color:#8bdcf3;font-size:11px}
.scan-to-cad-module .notice{border:1px solid #314758}
.scan-to-cad-module .notice p{font-size:14px;line-height:1.6}
.scan-to-cad-module .notice-tag{color:#8bdcf3;font-size:10px}
.scan-to-cad-module .review-link{display:block;color:#8bdcf3;font-weight:700;margin-top:12px;min-height:44px;align-content:center;text-decoration:underline;text-underline-offset:3px}
.scan-to-cad-module .step{min-height:44px;color:#b9cbd8;gap:10px}
.scan-to-cad-module .step b{font-size:12px;line-height:1.45}
.scan-to-cad-module .step span{min-width:25px;height:25px;font-size:11px}
.scan-to-cad-module .step.current{color:#fff}
.scan-to-cad-module .step:hover{background:#20374a;color:#fff}
.scan-to-cad-module .step-content h3{font-size:21px}
.scan-to-cad-module .step-content>p:not(.step-kicker),.scan-to-cad-module .step-content ul{font-size:14px;line-height:1.7}
.scan-to-cad-module .step-actions{gap:12px;flex-wrap:wrap}
.scan-to-cad-module .step-actions button{min-height:44px;font-size:13px;border:1px solid #557386;line-height:1.4}
.scan-to-cad-module .secondary{background:#152a3a;color:#f0f6fa}
.scan-to-cad-module .primary{background:#087cff;border-color:#087cff;color:#fff}
.scan-to-cad-module .step-warning{background:#26271d;border-color:#6d6748;color:#eddfa7;font-size:12px}
.scan-to-cad-module .source-note{font-size:14px;line-height:1.7;color:#b9cbd8}
.scan-to-cad-module .source-note strong{color:#f0f6fa}
.scan-to-cad-module .source-status{padding:12px 14px;border:1px solid #314758;border-radius:8px;margin-bottom:14px}
.scan-to-cad-module .source-status p{margin:0;line-height:1.6;font-size:14px;color:#b9cbd8}
.scan-to-cad-module .layer h3,.scan-to-cad-module .lesson h3{font-size:13px;color:#f0f6fa}
.scan-to-cad-module .layer p,.scan-to-cad-module .lesson p{font-size:12px;line-height:1.6}
.scan-to-cad-module .step-count{font-size:12px;color:#b9cbd8}
.scan-to-cad-module .help-button{width:44px;height:44px;border:1px solid #557386;border-radius:50%;background:#152a3a;color:#f0f6fa;font:italic 700 22px Georgia,serif!important;cursor:pointer}
#scanHelpDialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #557386;background:#101f2d;color:#f0f6fa;border-radius:14px;padding:20px;font-size:15px;line-height:1.65}
#scanHelpDialog::backdrop{background:#0009}.help-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.help-top h2{margin:0;font-size:21px}.help-top button{min-height:44px;padding:8px 12px;border:1px solid #557386;background:#152a3a;color:#fff;border-radius:6px;cursor:pointer}
#scanTooltip{position:fixed;z-index:100000;max-width:min(300px,calc(100vw - 24px));background:#ecf7ff;color:#10202e;border:1px solid #b7d2df;box-shadow:0 5px 20px #0005;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.5;pointer-events:none}
#scanTooltip[hidden]{display:none}
@media(max-width:600px){.scan-to-cad-module .topbar{padding:10px 14px;gap:4px 14px}.scan-to-cad-module .topbar .brand-wordmark{font-size:16px;white-space:normal}.scan-to-cad-module .product-mark{order:3;margin:0;padding:0;border:0;flex-basis:100%;max-width:none;font-size:10px}.scan-to-cad-module .top-links{gap:12px}.scan-to-cad-module .hero h1{font-size:40px;line-height:1.08;letter-spacing:-1.6px}.scan-to-cad-module .hero{gap:18px}.scan-to-cad-module main{padding-top:25px}.scan-to-cad-module .routine-grid{gap:12px}.scan-to-cad-module .steps{grid-template-columns:1fr 1fr}.scan-to-cad-module .step-content{padding-top:18px}.scan-to-cad-module .lesson-grid{grid-template-columns:1fr}}
@media(max-width:360px){.scan-to-cad-module .topbar .brand-wordmark{font-size:14px}.scan-to-cad-module .top-links a{font-size:12px}.scan-to-cad-module .hero h1{font-size:36px}.scan-to-cad-module .steps{grid-template-columns:1fr}}

/* Keep the new step visible when keyboard navigation changes content. */
#stepName:focus-visible{outline:3px solid #8bdcf3;outline-offset:6px;border-radius:2px}
