.lathe-tool-library{color:#171a1c;background:#f7f4ef;border:1px solid #c7c4be;min-width:0;margin-top:16px}.lathe-tool-library>summary{cursor:pointer;color:#fff;background:#202629;align-items:center;gap:12px;min-height:70px;padding:14px 18px;list-style:none;display:flex}.lathe-tool-library>summary::-webkit-details-marker{display:none}.lathe-tool-library>summary:before{content:"+";color:#ff9a4a;flex-shrink:0;width:20px;font-size:24px;line-height:1}.lathe-tool-library[open]>summary:before{content:"−"}.lathe-tool-library>summary>span{flex:1;min-width:0}.lathe-tool-library>summary strong{font-size:16px;font-weight:800;display:block}.lathe-tool-library>summary small{color:#c3ccd1;margin-top:4px;font-size:12px;line-height:1.45;display:block}.lathe-tool-library>summary>b{color:#c3ccd1;flex-shrink:0;font-size:12px;font-weight:600}.lathe-tool-library-content{padding:18px}.lathe-library-intro{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.lathe-library-intro p{color:#495158;max-width:720px;margin:0;font-size:13px;line-height:1.65}.lathe-tool-library button{color:#202629;cursor:pointer;background:#fff;border:1px solid #b8beba;border-radius:2px;min-height:46px;padding:10px 16px;font-size:13px;font-weight:700;line-height:1.3}.lathe-tool-library button:hover{background:#fff8f0;border-color:#b74b00}.lathe-tool-library button:disabled{opacity:.48;cursor:not-allowed}.lathe-library-intro>button{color:#fff;background:#202629;border-color:#202629;flex-shrink:0}.lathe-library-intro>button:hover{background:#353d42;border-color:#353d42}.lathe-tool-library :is(button,input,select,summary):focus-visible{outline-offset:3px;outline:3px solid #e96705}.lathe-tool-missing{background:#fff0d9;border-left:4px solid #dc690d;margin-bottom:18px;padding:16px}.lathe-tool-missing>strong{font-size:14px}.lathe-tool-missing p{color:#654718;margin:5px 0 12px;font-size:13px;line-height:1.6}.lathe-tool-missing>div{flex-wrap:wrap;gap:8px;display:flex}.lathe-tool-editor{background:#fffaf4;border:1px solid #b95b18;margin-bottom:20px;padding:18px}.lathe-tool-editor-heading{flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin-bottom:16px;display:flex}.lathe-tool-editor-heading h3{margin:0;font-size:17px;line-height:1.35}.lathe-tool-editor-heading>span{color:#5c6265;font-size:12px}.lathe-tool-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.lathe-tool-editor-fields label{min-width:0;display:block}.lathe-tool-editor-fields label>span{margin-bottom:6px;font-size:12px;font-weight:700;line-height:1.5;display:block}.lathe-tool-editor-fields :is(input,select){color:#171a1c;background:#fff;border:1px solid #b8beba;border-radius:2px;width:100%;min-width:0;min-height:46px;padding:10px 12px;font-size:16px}.lathe-tool-code-input{background:#fff;border:1px solid #b8beba;align-items:center;display:flex}.lathe-tool-code-input>b{color:#687076;padding-left:12px;font-size:15px}.lathe-tool-code-input input{border:0;padding-left:5px;font-family:monospace}.lathe-tool-editor-fields .lathe-tool-name-field{grid-column:1/-1}.lathe-tool-editor-fields input[type=color]{cursor:pointer;width:76px;padding:5px}.lathe-tool-code-help{color:#595f63;margin:13px 0;font-size:12px;line-height:1.6}.lathe-tool-editor-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.lathe-tool-editor-actions .lathe-tool-save{color:#fff;background:#c25106;border-color:#b34b05}.lathe-tool-editor-actions .lathe-tool-save:hover{background:#a84400;border-color:#933c00}.lathe-tool-errors{color:#8c2318;background:#fff0ed;border:1px solid #c88076;margin:14px 0;padding:12px 16px;font-size:13px;line-height:1.6}.lathe-tool-errors ul{margin:6px 0 0;padding-left:20px}.lathe-tool-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px;display:grid}.lathe-tool-card{background:#fff;border:1px solid #c6c9c6;min-width:0;padding:14px}.lathe-tool-card.is-active{border-color:#c6610b;box-shadow:inset 0 3px #df700f}.lathe-tool-card-heading{align-items:center;gap:10px;display:flex}.lathe-tool-card-heading>div:last-child{flex:1;min-width:0}.lathe-tool-silhouette{background:#1b2124;border-radius:3px;flex-shrink:0;width:72px}.lathe-tool-silhouette svg{width:100%;height:auto;display:block}.lathe-tool-code{flex-wrap:wrap;align-items:center;gap:5px 8px;font-family:monospace;font-size:13px;font-weight:700;display:flex}.lathe-tool-code b{color:#935011;background:#fff0dc;padding:2px 6px;font-family:inherit;font-size:11px;font-weight:700}.lathe-tool-card h3{overflow-wrap:anywhere;margin:5px 0 3px;font-size:14px;line-height:1.4}.lathe-tool-card-heading p{color:#666e74;margin:0;font-size:12px;line-height:1.5}.lathe-tool-dimensions{color:#525b62;margin:12px 0 8px;font-size:12px;line-height:1.6}.lathe-tool-default{cursor:pointer;align-items:center;gap:10px;min-height:46px;font-size:12px;line-height:1.45;display:flex}.lathe-tool-default input{accent-color:#bc5309;flex-shrink:0;width:18px;height:18px;margin:0}.lathe-tool-card-actions{gap:8px;padding-top:8px;display:flex}.lathe-tool-card-actions button{flex:1;padding:10px 8px}.lathe-tool-library-note{color:#626b70;margin:16px 0 0;font-size:12px;line-height:1.6}.lathe-tool-notice{color:#28663e;margin:12px 0 0;font-size:13px;line-height:1.5}.lathe-tool-notice:empty{display:none}@media (width<=560px){.lathe-tool-library>summary{gap:9px;padding:14px 12px}.lathe-tool-library-content{padding:12px}.lathe-library-intro{flex-direction:column;gap:12px}.lathe-library-intro>button{width:100%}.lathe-tool-editor{padding:14px 12px}.lathe-tool-editor-fields,.lathe-tool-cards{grid-template-columns:minmax(0,1fr)}}.lathe-quick-start{background:#e3dfd7;border-top:3px solid #ff6a00;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:20px 24px;display:flex}.lathe-quick-start>span{align-items:center;gap:10px;font-size:13px;font-weight:700;display:flex}.lathe-quick-start b{color:#ff9f57;background:#171d21;border-radius:50%;place-items:center;width:28px;height:28px;font:700 13px monospace;display:grid}.lathe-quick-start p{color:#4e595f;margin:0 0 0 auto;font-size:12px}.lathe-sim-page .lathe-sim-grid{grid-template-columns:minmax(330px,.65fr) minmax(0,1.35fr);align-items:start}.lathe-sim-page .lathe-editor-shell{height:370px}.lathe-sim-page .lathe-stock-fields label>span,.lathe-sim-page .lathe-stock-fields b{font-size:11px}.lathe-setup-help,.lathe-storage-status{color:#536169;margin:12px 0;font-size:12px;line-height:1.65}.lathe-line-numbers .is-current-line{color:#111;background:#ff6a00;font-weight:700}.lathe-active-tool{color:#fff;background:#202d35;justify-content:space-between;align-items:start;gap:20px;padding:16px;display:flex}.lathe-active-tool>div{min-width:0}.lathe-active-tool>div:last-child{text-align:right;flex-shrink:0}.lathe-active-tool span{color:#b2c4cf;letter-spacing:.08em;font:10px/1.5 monospace;display:block}.lathe-active-tool strong{overflow-wrap:anywhere;margin-top:5px;font-size:14px;line-height:1.5;display:block}.lathe-active-tool>div:last-child strong{color:#ffad70;font:700 22px/1.4 monospace}.lathe-sim-page .lathe-upgrade-scene{aspect-ratio:900/560;min-height:0}.lathe-sim-page .lathe-upgrade-scene svg{height:100%;min-height:0}.lathe-scene-caption{color:#bac9d1;pointer-events:none;background:#12181dcc;padding:4px 7px;font:10px/1.5 monospace;position:absolute;bottom:12px;left:14px}.lathe-display-toggles{color:#e3e9ed;background:#171f25;flex-wrap:wrap;align-items:center;gap:4px 18px;padding:6px 14px;display:flex}.lathe-display-toggles label{cursor:pointer;align-items:center;gap:8px;min-height:44px;font-size:12px;display:flex}.lathe-display-toggles input{accent-color:#ff7b1c;width:17px;height:17px}.lathe-display-toggles>span{color:#b2c0c9;flex:200px;font-size:11px;line-height:1.5}.lathe-sim-page .lathe-controls button,.lathe-sim-page .lathe-sim-examples button,.lathe-sim-page .lathe-controls label{font-size:11px}.lathe-sample-select{color:#e3e9ed;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;display:flex}.lathe-sample-select select{color:#fff;background:#202a31;border:1px solid #6c7880;min-width:180px;max-width:100%;min-height:46px;padding:8px 12px;font-size:13px}.lathe-sample-select select:focus-visible{outline-offset:2px;outline:3px solid #ff6a00}.lathe-sample-brief{background:#f7f4ef;border-bottom:1px solid #cdc7bf;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 28px;padding:18px 24px;display:grid}.lathe-sample-brief strong{font-size:17px}.lathe-sample-brief p{color:#46545d;margin:8px 0 0;font-size:12px;line-height:1.6}.lathe-sample-brief .lathe-sample-stock{color:#914000;font-weight:700}.lathe-sample-brief>p{border-top:1px solid #ddd5ca;grid-column:1/-1;padding-top:10px}.lathe-sample-brief ol{color:#334750;margin:0;padding-left:20px;font-size:12px;line-height:1.85}.lathe-sample-tool-notice{color:#603205;background:#fff0de;border-left:3px solid #bd5106;margin:14px 0;padding:14px;font-size:12px;line-height:1.6}.lathe-sample-tool-notice p{margin:5px 0 10px}.lathe-sample-tool-notice button{background:#fffdf9;border:1px solid #955020;min-height:46px;padding:8px 12px;font-size:12px;font-weight:700}.lathe-example-card details summary{color:#fff;cursor:pointer;background:#202a31;min-height:46px;padding:14px 22px;font-size:12px}.lathe-example-card details pre{max-height:420px}.lathe-timeline{background:#fefdfb;padding:15px 16px 5px;display:block}.lathe-timeline>span{color:#374b57;justify-content:space-between;gap:16px;font-size:12px;display:flex}.lathe-timeline input{accent-color:#c64d00;cursor:pointer;width:100%;height:44px;margin:0;display:block}.lathe-playback-help{color:#52646e;background:#fefdfb;margin:0;padding:0 16px 14px;font-size:11px;line-height:1.55}.lathe-sim-page .lathe-readout span{font-size:10px}.lathe-sim-page .lathe-current-line code{white-space:normal;overflow-wrap:anywhere;line-height:1.6}.lathe-sim-page .lathe-current-line span{font-size:10px}.lathe-view-settings{color:#e2e8ec;background:#202426;border-top:1px solid #46535c}.lathe-view-settings>summary{cursor:pointer;min-height:46px;padding:14px;font-size:12px}.lathe-edit-shortcut{display:none}.lathe-warning-shortcut{color:#694200;background:#fff0d6;border-left:4px solid #d97808;margin-top:10px;padding:14px;font-size:12px;line-height:1.6;display:block}.lathe-warning-shortcut strong,.lathe-warning-shortcut span{display:block}.lathe-warning-shortcut span{overflow-wrap:anywhere;margin-top:4px}.lathe-sim-page .lathe-diagnostics{grid-template-columns:190px minmax(0,1fr);gap:20px}.lathe-sim-page .diagnostic-list{max-height:280px;overflow-y:auto}.lathe-sim-page .diagnostic-list p{font-size:12px;line-height:1.65}.lathe-sim-page .lathe-viewport-panel.is-fullscreen .lathe-upgrade-scene{aspect-ratio:auto;flex:1 0 380px;min-height:380px}.lathe-sim-page .lathe-viewport-panel.is-fullscreen .lathe-upgrade-scene svg{min-height:380px}@media (width<=1100px){.lathe-sim-page .lathe-sim-grid{grid-template-columns:minmax(300px,.7fr) minmax(0,1.3fr)}.lathe-active-tool{flex-wrap:wrap;gap:10px}.lathe-active-tool>div:last-child{text-align:left}}@media (width<=920px){.lathe-sim-page .lathe-sim-grid{grid-template-columns:minmax(0,1fr)}.lathe-sim-page .lathe-viewport-panel{grid-row:1}.lathe-sim-page .lathe-code-panel{grid-row:2}.lathe-edit-shortcut{color:#a23c00;align-items:center;min-height:46px;margin-bottom:10px;font-size:12px;font-weight:700;display:flex}.lathe-sim-page .lathe-editor-shell{height:330px}.lathe-quick-start p{width:100%;margin-left:0}.lathe-sim-page .lathe-diagnostics{grid-template-columns:1fr}}@media (width<=620px){.lathe-sample-select{width:100%}.lathe-sample-select select{width:100%;font-size:16px}.lathe-sample-brief{grid-template-columns:1fr;padding:16px}.lathe-sample-brief>p{grid-column:auto}.lathe-quick-start{gap:10px;padding:16px}.lathe-quick-start>span{flex:100%}.lathe-active-tool{padding:12px}.lathe-active-tool strong{font-size:12px}.lathe-display-toggles{gap:0 16px}.lathe-display-toggles>span{flex-basis:100%;padding-bottom:10px}.lathe-sim-page .lathe-controls button{flex-basis:100px}.lathe-sim-page .lathe-stock-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.lathe-sim-page .lathe-stock-fields input{font-size:16px}.lathe-scene-caption{font-size:8px;bottom:3px;left:3px}}
