:root{color-scheme:light;--ink:#132635;--muted:#5d6e7a;--line:#dce3e8;--yellow:#f6c54b;--bg:#f1f4f6;--white:#fff;--error:#bb2934;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}
.bar-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.bar-layout>*{min-width:0}.bar-result{display:grid;gap:16px}.bar-result h2{line-height:1.8}.bar-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.bar-values>div{padding:12px;background:#edf4f8;border-radius:6px;min-width:0}.bar-values dt{font-size:.8125rem;line-height:1.7;color:#415e70}.bar-values dd{margin:5px 0 0;font-size:1.125rem;font-weight:700;color:#163e54;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.bar-explanation{font-size:.875rem;line-height:1.9;color:#354f60;overflow-wrap:anywhere}.bar-explanation li+li{margin-top:8px}.bar-layout figure{margin:10px 0 0}.bar-layout svg{width:100%;height:auto;display:block}.bar-layout .mct-fields input{font-size:1rem;border:1px solid #a9bdc9;border-radius:6px;padding:10px 12px}.bar-layout input[aria-invalid=true]{border-color:#bb2934;background:#fff7f6}.bar-layout input[readonly]{background:#f0f4f7;color:#4b6374}.bar-sources{display:grid;gap:8px;font-size:.8125rem;line-height:1.8;color:#17567b}.bar-sources a{min-height:32px;overflow-wrap:anywhere}.bar-layout textarea{width:100%;min-height:180px;font-size:.875rem;line-height:1.8}#panel-bar-grip>.shop-actions{margin-bottom:18px}@media(max-width:1100px){.bar-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:520px){.bar-values{grid-template-columns:minmax(0,1fr)}.bar-layout .input-card{padding:20px 16px}.bar-layout .mct-fields{grid-template-columns:minmax(0,1fr)}}
.mct-hole-menu{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.mct-hole-menu button{flex:1 1 90px;min-height:44px;padding:10px 12px;border:1px solid #a9bdc9;border-radius:7px;background:#f3f7fa;color:#21485e;font-size:.875rem;font-weight:650}.mct-hole-menu button[aria-pressed=true]{background:#21485e;border-color:#21485e;color:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit}button,input,select,summary,a{-webkit-tap-highlight-color:transparent}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #177baf;outline-offset:4px}[hidden]{display:none!important}
.topbar{height:88px;padding:0 42px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-size:1.25rem;font-weight:750;letter-spacing:-.035em}.brand-mark{display:flex;align-items:center;justify-content:center;height:39px;width:59px;border-radius:7px;background:var(--ink);color:var(--yellow);font-size:.93rem;font-weight:850;letter-spacing:.02em}.private{font-size:.875rem;color:var(--muted);display:flex;align-items:center;gap:6px;white-space:nowrap}.private svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
.workspace{max-width:1450px;margin:auto;display:grid;grid-template-columns:244px minmax(0,1fr);min-height:calc(100vh - 88px)}.navigation{padding:40px 22px;border-right:1px solid var(--line)}.nav-caption{font-size:.875rem;font-weight:700;letter-spacing:.07em;color:var(--muted);margin:0 12px 22px}.tabs{display:flex;flex-direction:column;gap:10px}.tab{border:1px solid transparent;display:flex;align-items:center;gap:14px;padding:17px 14px;border-radius:9px;background:transparent;text-align:left;color:var(--muted);font-weight:650;min-height:77px}.tab:hover{background:#e6ebef}.tab.active{background:var(--ink);color:#fff}.tab small{font-size:.8125rem;display:block;margin-top:6px;font-weight:450;line-height:1.3}.tab.active small{color:#bac9d4}.tab-symbol{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.32rem;font-weight:600;width:31px;height:35px;display:flex;align-items:center;justify-content:center;border:1px solid #c9d3da;border-radius:5px;flex-shrink:0}.active .tab-symbol{color:var(--yellow);border-color:#617583}.nav-note{font-size:.8125rem;color:var(--muted);margin:28px 12px;line-height:1.7}
.content{padding:42px 46px 28px;min-width:0}.section-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:28px}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.13em;margin:0 0 12px;color:var(--muted)}h1{font-size:1.9rem;letter-spacing:-.045em;margin:0 0 10px;line-height:1.3}h2{font-size:1rem;margin:0;line-height:1.5;font-weight:700}.description{font-size:.9375rem;color:var(--muted);line-height:1.6;margin:0}.section-number{font-family:ui-monospace,Consolas,monospace;font-size:3rem;line-height:1;color:#9baab5;font-weight:400;letter-spacing:-.05em;padding-top:20px}.calculator-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:stretch}.input-card,.result-card{border-radius:12px;padding:28px}.input-card{background:#fff;border:1px solid var(--line)}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:27px}.clear{border:0;background:transparent;color:var(--muted);font-size:.8125rem;min-height:36px;padding:5px 0}.clear:hover{color:var(--ink);text-decoration:underline}.fields{display:flex;flex-direction:column;gap:24px}.field{display:flex;flex-direction:column;min-width:0}.field-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:650;font-size:.9375rem;margin-bottom:10px}.variable{color:var(--muted);font-family:ui-monospace,Consolas,monospace;font-size:.875rem;font-weight:450}.input-wrap{display:flex;align-items:center;border:1.5px solid #b7c5ce;border-radius:7px;background:#fff;min-height:67px;overflow:hidden}.input-wrap:focus-within{border-color:#147dab;box-shadow:0 0 0 3px #d6edf9}.input-wrap:has(input[aria-invalid=true]){border-color:var(--error);box-shadow:none;background:#fff8f8}input{padding:13px 0 13px 17px;color:var(--ink);font-size:1.75rem;font-weight:600;font-variant-numeric:tabular-nums;width:100%;min-width:0;border:0;outline:0;background:transparent;border-radius:0}input::placeholder{color:#87949d;font-weight:400}.input-unit{font-size:.9375rem;color:var(--muted);padding:0 15px 0 10px;white-space:nowrap}.field-error{color:var(--error);font-size:.8125rem;line-height:1.55}.field-error:not(:empty){margin-top:7px}.field-help{color:var(--muted);font-size:.8125rem;line-height:1.7;margin-top:9px}.input-note{font-size:.8125rem;color:var(--muted);line-height:1.7;padding-top:21px;border-top:1px solid var(--line);margin:26px 0 0}
.result-card{background:var(--ink);color:#fff;border-top:4px solid var(--yellow);padding-top:25px;display:flex;flex-direction:column;min-width:0}.result-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.result-top h2{font-weight:500;color:#e6edf1}.result-code{font-family:ui-monospace,Consolas,monospace;color:#a6bbc9;font-size:.875rem}.result-line{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:30px;min-width:0}.result-number{font-size:clamp(2.5rem,4.6vw,3.6rem);color:var(--yellow);font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.035em;overflow-wrap:anywhere;min-width:0;max-width:100%}.result-unit{font-size:1rem;color:#d0dee7;white-space:nowrap}.result-detail{font-size:.8125rem;color:#a9bfcc;line-height:1.6;margin:12px 0 27px;min-height:1.3em}.formula{border-top:1px solid #405461;padding-top:22px;margin-top:auto;font-size:.9375rem;line-height:1.75;overflow-wrap:anywhere}.formula p{margin:0 0 8px}.formula-label{color:#a9bfcc;font-size:.8125rem!important;margin-bottom:12px!important}.substitution{color:var(--yellow);font-variant-numeric:tabular-nums;font-size:.875rem}.result-note{color:#b7c9d4;font-size:.8125rem;line-height:1.8;margin:16px 0 0}.result-card.invalid .result-number{color:#bac9d4}.result-card.invalid .result-detail{color:#ffd0d4}
select{width:100%;min-height:67px;font-size:1.65rem;font-weight:600;padding:13px 17px;background:white;color:var(--ink);border:1.5px solid #b7c5ce;border-radius:7px}.small-label{font-size:.8125rem;color:var(--muted)}.quick-label{font-size:.875rem;font-weight:600;margin:26px 0 12px}.quick-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.quick-sizes button{min-height:50px;border:1px solid #b7c5ce;border-radius:6px;background:white;font-weight:650;color:var(--ink)}.quick-sizes button:hover{background:#f1f4f6}.quick-sizes button[aria-pressed=true]{background:#fff7db;border:1.5px solid #b5810d;color:#755108}.thread-result-label{font-size:.875rem;color:#a9bfcc;margin:25px 0 0}.thread-result-label+.result-line{margin-top:8px}.diameter-symbol{font-size:2rem;color:var(--yellow);align-self:center}.pitch-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.9375rem;border-top:1px solid #405461;margin:25px 0 23px;padding-top:17px}.pitch-line strong{font-size:1.2rem;color:#fff;font-weight:600}.thread-rounding{font-size:.8125rem;color:#b7c9d4;line-height:1.7}.reference-table{border:1px solid var(--line);background:#fff;border-radius:9px;margin-top:24px}.reference-table summary{padding:18px 22px;cursor:pointer;font-size:.875rem;font-weight:650}.reference-table table{border-collapse:collapse;width:100%;font-size:.875rem;font-variant-numeric:tabular-nums}.reference-table th,.reference-table td{text-align:right;padding:14px 22px;border-top:1px solid var(--line)}.reference-table th{font-weight:600;background:#f6f8fa;color:var(--muted)}.reference-table th:first-child,.reference-table td:first-child{text-align:left}.reference-table tbody tr:last-child td{padding-bottom:20px}.footer{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;font-size:.75rem;color:var(--muted);line-height:1.75;margin-top:25px}.sources{max-width:520px}.sources summary{cursor:pointer;text-align:right}.sources p{margin:14px 0}.sources a{display:block;color:#255d81;padding:3px 0;text-align:right;font-size:.8125rem}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.noscript{padding:16px;background:#fff1d0;font-size:1rem}
@media(min-width:1500px){.content{padding-top:55px}.section-heading{margin-bottom:36px}.navigation{padding-top:55px}}
@media(max-width:1100px){.workspace{grid-template-columns:208px minmax(0,1fr)}.content{padding:32px 28px}.navigation{padding:32px 16px}.calculator-grid{gap:16px}.input-card,.result-card{padding-left:22px;padding-right:22px}.brand{font-size:1.125rem}.topbar{padding:0 28px}.result-number{font-size:2.65rem}.tab{gap:10px;padding:15px 10px}}
@media(max-width:850px){.workspace{display:block}.navigation{border-right:0;border-bottom:1px solid var(--line);padding:18px 24px}.nav-caption,.nav-note{display:none}.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tab{padding:14px 10px;gap:8px;min-height:69px;font-size:.875rem;justify-content:center}.tab-symbol{display:none}.tab small{font-size:.75rem;margin-top:5px}.content{padding:30px 24px}.topbar{height:76px;padding:0 24px}.calculator-grid{gap:18px}.result-number{font-size:3rem}}
@media(max-width:600px){.topbar{height:68px;padding:0 16px}.brand{font-size:1rem;gap:9px}.brand-mark{width:47px;height:34px;font-size:.8125rem}.private{font-size:.75rem;gap:4px}.navigation{padding:14px 16px}.tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tab{min-height:56px;padding:10px 13px;justify-content:flex-start}.tab small{display:inline;margin-left:5px;font-size:.75rem;line-height:1.6}.tab span:last-child{line-height:1.5}.tab[data-mode=thread] small{display:block;margin:2px 0 0}.content{padding:24px 16px}.section-heading{margin-bottom:20px}.eyebrow{font-size:.75rem;letter-spacing:.1em;margin-bottom:8px}h1{font-size:1.55rem;margin-bottom:8px}.description{font-size:.875rem}.section-number{font-size:2.2rem;padding-top:17px}.calculator-grid{grid-template-columns:minmax(0,1fr);gap:16px}.input-card,.result-card{padding:22px}.result-card{padding-top:19px}.card-heading{margin-bottom:21px}.fields{gap:20px}.input-wrap{min-height:67px}input{font-size:1.7rem;padding-left:15px}.input-unit{padding-right:15px}.input-note{margin-top:20px;padding-top:16px}.result-line{margin-top:22px}.result-number{font-size:3.1rem}.result-detail{margin-bottom:20px}.formula{padding-top:18px}.result-note{margin-top:13px}.footer{flex-direction:column;gap:8px}.sources{max-width:100%}.sources summary,.sources a{text-align:left}.reference-table th,.reference-table td{padding:12px 14px}.reference-table summary{padding:16px}.pitch-line{margin:22px 0}.quick-sizes button{min-height:52px}}
@media(prefers-reduced-motion:no-preference){.tab,.quick-sizes button{transition:background-color .12s,color .12s}} 
.trig-switch{display:flex;gap:8px;margin:0 0 20px}.trig-switch button{flex:1;max-width:210px;min-height:50px;padding:12px;border:1px solid #b7c5ce;border-radius:7px;background:white;color:var(--ink);font-weight:600}.trig-switch button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--yellow)}.triangle-diagram{margin:0 0 23px;padding:12px 0;background:#f6f8fa;border-radius:7px}.triangle-diagram svg{display:block;width:100%;max-width:320px;height:auto;margin:auto}.triangle-diagram text{fill:var(--ink);font-size:16px;text-anchor:middle}.triangle-diagram figcaption{font-size:.8125rem;color:var(--muted);text-align:center;line-height:1.6;padding:0 10px}.compact-select{font-size:1.05rem}.triangle-results{margin:8px 0 24px}.triangle-results div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid #405461;font-size:.9375rem}.triangle-results dd{margin:0;font-variant-numeric:tabular-nums;font-weight:650;overflow-wrap:anywhere;text-align:right}.triangle-results dt{color:#b7c9d4;flex-shrink:0}.reference-table tbody tr.selected{background:#fff7db}.table-thread-button{border:0;background:transparent;color:#255d81;font-weight:650;min-height:36px;padding:3px 0;text-decoration:underline;text-underline-offset:3px}.thread-table-note{padding:0 20px;font-size:.8125rem;line-height:1.7;color:var(--muted)}
@media(min-width:601px) and (max-width:850px){.tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.tab{padding:12px 7px}}
@media(max-width:600px){.tab[data-mode=trig]{grid-column:1/-1}.tab[data-mode=trig] small{display:inline}.trig-switch button{max-width:none}.triangle-results div{padding:12px 0}}
.triangle-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px;align-items:start}.triangle-column-heading{font-size:.875rem;font-weight:700;color:var(--muted)}.triangle-field .field-label{font-family:ui-monospace,Consolas,monospace;font-size:1.2rem;gap:6px}.triangle-status{font-family:ui-sans-serif,system-ui,sans-serif;font-size:.75rem;color:var(--muted);font-weight:500}.triangle-field input{font-size:1.45rem;padding-left:12px}.triangle-field .input-unit{font-size:.8125rem;padding:0 10px 0 5px}.triangle-field.is-known .input-wrap{border-color:#b5810d;background:#fffbea}.triangle-field.is-known .triangle-status{color:#755108;font-weight:700}.triangle-fixed .input-wrap{background:#eef2f5;border-color:var(--line)}.triangle-fixed input{color:var(--muted)}.triangle-help{font-size:.875rem;line-height:1.75;color:var(--muted);margin:0 0 22px}.triangle-known{font-size:.875rem;font-weight:650;margin:20px 0 0;color:#755108}.triangle-diagram text.triangle-vertex{font-size:22px;font-weight:750}.triangle-area-formula{color:#b7c9d4;font-size:.8125rem}.triangle-field .input-wrap:has(input[aria-invalid=true]){border-color:var(--error);background:#fff8f8}
@media(max-width:1100px){#trig-triangle{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){#trig-triangle .input-card{padding:18px}.triangle-entry-grid{gap:18px 10px}.triangle-field input{font-size:1.35rem}.triangle-field .input-unit{padding-right:7px}}
.roughness-results{margin:0 0 26px}.roughness-results div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:17px 0;border-top:1px solid #405461}.roughness-results dt{color:#b7c9d4;font-size:1rem}.roughness-results dd{margin:0;font-size:1.7rem;color:var(--yellow);font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right}.roughness-results dd span{font-size:1rem;color:#d0dee7;font-weight:400}.roughness-explanation p{margin:0;padding:0 22px 18px;color:var(--muted);font-size:.875rem;line-height:1.8}.result-card.invalid .roughness-results dd{color:#bac9d4}
@media(min-width:601px) and (max-width:850px){.tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.tab[data-mode=trig]{grid-column:auto}.tab[data-mode=trig] small,.tab[data-mode=roughness] small{display:block;margin:2px 0 0}.roughness-explanation p{padding:0 16px 16px}}
.tool-sections{display:flex;gap:10px;max-width:1450px;margin:auto;padding:20px 34px 0}.tool-sections button{min-height:52px;padding:12px 22px;border:1px solid #b7c5ce;background:#fff;border-radius:8px;color:var(--ink);font-weight:700}.tool-sections button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--yellow)}
.nc-scope{font-size:.875rem;line-height:1.7;color:#755108;background:#fff7db;border:1px solid #e8d295;border-radius:7px;padding:12px 16px;margin:0 0 22px}.nc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:22px;align-items:start}.nc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.nc-span{grid-column:1/-1}.nc-fields input{font-size:1.5rem;padding-left:12px}.nc-fields .input-unit{font-size:.875rem;padding-right:12px}.nc-fields .variable{font-size:.875rem}.nc-fields .field-label{flex-wrap:wrap;font-size:.9375rem}.nc-fields .field-help,.nc-fields .field-error{font-size:.875rem}.nc-fields .compact-select{font-size:1rem;padding:12px}.nc-settings{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}.nc-settings summary{cursor:pointer;font-weight:650;font-size:.9375rem;min-height:44px;line-height:1.6}.nc-settings[open] summary{margin-bottom:16px}.nc-summary{font-size:1rem;line-height:1.7;color:var(--yellow);font-weight:650;margin:22px 0 6px}.nc-position{font-size:.875rem;line-height:1.7;color:#d0dee7;margin:0}.nc-output .result-detail{font-size:.875rem;margin:12px 0 18px}.nc-output textarea{width:100%;resize:vertical;min-height:320px;border:1px solid #506674;border-radius:7px;background:#0c1c27;color:#f3f7fa;padding:16px 13px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.875rem;line-height:1.8;tab-size:2;white-space:pre}.nc-output textarea:focus-visible{outline:3px solid #f6c54b;outline-offset:3px}.nc-actions{display:flex;gap:10px;margin-top:16px}.nc-actions button{flex:1;min-height:52px;padding:12px 8px;border:1px solid #879da9;border-radius:7px;background:transparent;color:#fff;font-size:.9375rem;font-weight:650}.nc-actions button:first-child{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}.nc-actions button:disabled{opacity:.45;cursor:default}.nc-copy-status{min-height:1.5em;font-size:.875rem;line-height:1.7;color:#c3d7e4;margin:12px 0 18px}.nc-multiline{white-space:pre-line}.nc-output .formula-label,.nc-output .substitution,.nc-output .result-note{font-size:.875rem!important}.nc-table-scroll{overflow:auto;max-height:450px}.nc-guide p{padding:0 22px;font-size:.875rem;line-height:1.8;color:var(--muted)}#nc-first{font-size:1.2rem}
@media(max-width:1200px){.nc-grid{grid-template-columns:minmax(0,1fr)}.nc-output textarea{min-height:300px}.nc-fields input{font-size:1.7rem}}
@media(max-width:850px){.tool-sections{padding:16px 24px 0}.tool-sections button{flex:1}#gcode-nav .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tool-sections{padding:14px 16px 0;gap:8px}.tool-sections button{padding:12px 8px;font-size:.9375rem;min-height:52px}.nc-grid{gap:18px}.nc-fields{grid-template-columns:minmax(0,1fr);gap:20px}.nc-span{grid-column:auto}.nc-output textarea{font-size:.875rem}.nc-guide p{padding:0 16px}.nc-scope{padding:12px}.nc-output .result-card{padding:20px}}
.nc-block{min-width:0;margin:0 0 26px;padding:18px 16px 20px;border:1px solid #c6d2da;border-radius:8px}.nc-block legend{font-size:1rem;font-weight:700;padding:0 7px;max-width:100%;line-height:1.6}.nc-block-format{font-family:ui-monospace,Consolas,monospace;font-size:.875rem;line-height:1.7;overflow-wrap:anywhere;color:var(--muted);margin:0 0 20px}.nc-parameter-value{font-size:.875rem;line-height:1.7;padding:10px 12px;margin-top:9px;background:#fff7db;border-radius:5px;color:#755108;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.nc-calculate{width:100%;min-height:54px;border:1px solid #b7c5ce;border-radius:7px;padding:12px;background:#eef3f7;color:var(--ink);font-size:.9375rem;font-weight:650}.nc-calculate:hover{background:#e0e9ef}
@media(max-width:600px){.nc-block{padding:16px 12px 20px}.nc-block .field-label{font-size:1rem}}
.helper-menu{margin-bottom:22px}.helper-menu .tab{line-height:1.6}.tap-presets{margin:0 0 24px;gap:8px}.tap-presets button{min-width:0;font-size:.9375rem}.tap-method-note{font-size:.9375rem;line-height:1.8;color:var(--ink);padding:0 0 10px}#tap-g84-settings h3{font-size:1rem;margin:0 0 22px}.nc-guide th,.nc-guide td{font-size:.875rem;line-height:1.7;vertical-align:top;white-space:normal}.nc-guide th[scope=row]{min-width:130px}.nc-guide a{text-underline-offset:3px}
@media(max-width:850px){#gcode-nav .helper-menu{grid-template-columns:repeat(3,minmax(0,1fr))}.helper-menu .tab{padding:12px 9px;justify-content:center;text-align:center;min-height:82px}.helper-menu .tab small{font-size:.75rem}}
@media(max-width:600px){#gcode-nav .helper-menu{gap:6px}.helper-menu .tab{font-size:.8125rem;padding:12px 6px}.tap-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-sections button[data-section=gcode]{flex:1.65}}

.tap-generate-status{min-height:1.5em;margin:12px 0 0}#tap-result{scroll-margin-top:20px}#tap-result:focus-visible{outline:3px solid #177baf;outline-offset:4px}

.tap-show-code{max-width:300px;margin:0 0 18px}
.nc-settings>h3{font-size:1rem;margin:0 0 22px}
#nc-result{scroll-margin-top:20px}#nc-result:focus-visible{outline:3px solid #177baf;outline-offset:4px}
.nc-motion{margin-top:24px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:9px}
.nc-motion-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:22px}.nc-motion-heading span{color:var(--muted);font-size:.875rem;line-height:1.7}
.nc-motion h3{font-size:1.125rem;line-height:1.6;margin:0 0 10px}.nc-motion-intro{margin:0 0 20px;font-size:1rem;line-height:1.8;color:var(--muted)}.nc-motion code{font-size:.9375rem;color:var(--ink);overflow-wrap:anywhere}
.nc-motion-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.nc-motion figure{margin:0;min-width:0}.nc-motion img{display:block;width:100%;height:auto}.nc-motion figcaption{display:flex;gap:10px 18px;flex-wrap:wrap;margin-top:12px;font-size:.875rem;line-height:1.7;color:var(--muted)}.motion-key{display:inline-flex;align-items:center;gap:7px}.motion-key:before{content:"";display:block;width:22px;flex-shrink:0;border-top:3px solid #a66000}.motion-rapid:before{border-top:3px dashed #255d81}.motion-finish:before{border-color:#156b58}
.nc-motion-steps{list-style:none;counter-reset:motion-step;padding:0;margin:0;display:grid;gap:18px}.nc-motion-steps li{counter-increment:motion-step;display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 12px;align-items:start;font-size:1rem;line-height:1.7}.nc-motion-steps li:before{content:counter(motion-step);grid-row:1/3;display:flex;align-items:center;justify-content:center;height:30px;border:1px solid #b7c5ce;border-radius:50%;background:#eef3f7;color:var(--ink);font-size:.875rem;font-weight:750}.nc-motion-steps strong{font-weight:650}.nc-motion-steps span{color:var(--muted);font-size:.9375rem}
.nc-motion-note,.nc-motion-source{font-size:.875rem;line-height:1.8;color:var(--muted);margin:20px 0 0}.nc-motion-source{padding-top:18px;border-top:1px solid var(--line)}.nc-motion-source a{color:#255d81;text-underline-offset:3px}
.profile-key{display:inline-flex;align-items:center;gap:7px}.profile-key:before{content:"";width:18px;height:9px;background:#f6c54b;border:1px solid #8c690e;flex-shrink:0}.profile-removal:before{background:#d78320;border-color:#a66000}.profile-contact:before{background:#b7363e;border-color:#b7363e}.profile-previous:before{height:0;border:0;border-top:3px dashed #255d81;background:transparent}
.nc-profile-explanation{display:grid;gap:18px}.nc-profile-explanation p{margin:0;font-size:1rem;line-height:1.8}.nc-profile-explanation strong{display:block;font-weight:650;color:var(--ink);margin-bottom:5px}.nc-profile-explanation span{display:block;font-size:.9375rem;color:var(--muted)}
.nc-thread-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:center;border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.nc-thread-form p{font-size:.9375rem;line-height:1.8;color:var(--muted);margin:0 0 10px}.nc-thread-form img{max-width:520px;width:100%;height:auto;margin:auto}.nc-thread-form h3{font-size:1rem}
@media(max-width:1100px){.nc-thread-form{grid-template-columns:minmax(0,1fr);gap:16px}}
@media(max-width:1100px){.nc-motion-grid{grid-template-columns:minmax(0,1fr)}.nc-motion figure{max-width:520px;width:100%;margin:auto}}
@media(max-width:600px){.nc-motion{padding:20px 16px}.nc-motion-heading{margin-bottom:18px}.nc-motion-grid{gap:22px}.nc-motion-steps{gap:16px}.nc-motion img{border-radius:7px}}

.corner-diagram{padding:22px}.corner-diagram h2{font-size:1rem;margin:0 0 16px}.corner-diagram svg{display:block;width:100%;max-width:650px;height:auto;margin:auto}.corner-diagram p{font-size:.875rem;line-height:1.8;color:var(--muted)}.corner-legend{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:.875rem;font-weight:600;margin:16px 0}.corner-green{color:#276647}.corner-orange{color:#8a4a00}.corner-blue{color:#1b70a2}@media(max-width:600px){.corner-diagram{padding:16px}#gcode-nav .helper-menu{grid-template-columns:repeat(2,minmax(0,1fr))}}

.input-sign{flex:0 0 48px;min-width:48px;min-height:48px;border:0;border-left:1px solid #b7c5ce;background:#e9f2f7;color:#132635;font-size:1.6rem;font-weight:700;cursor:pointer}.input-sign:hover{background:#d6edf9}.input-sign:focus-visible{outline:3px solid #147dab;outline-offset:-3px}

.code-diagram{margin:18px 0 22px;padding:18px;background:#fff;border:1px solid #ccd8df;border-radius:9px;color:var(--ink);min-width:0}
.code-diagram h3{font-size:1rem;line-height:1.6;margin:0 0 12px;color:var(--ink)}.code-diagram svg{display:block;width:100%;height:auto;margin:auto;max-width:650px}.code-diagram p{font-size:.875rem;line-height:1.8;color:var(--muted);margin:12px 0 0}.code-diagram .corner-legend{margin:16px 0 8px;line-height:1.7}.diagram-stock{color:#526773}
.diagram-coordinates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 0;font-size:.875rem;line-height:1.7}.diagram-coordinates>div{background:#f1f5f7;border:1px solid #dce3e8;border-radius:6px;padding:9px 12px;min-width:0}.diagram-coordinates dt{color:#5d6e7a;font-size:.875rem}.diagram-coordinates dd{margin:3px 0 0;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.diagram-wide{grid-column:1/-1}
@media(max-width:600px){.code-diagram{padding:12px}.diagram-coordinates{grid-template-columns:minmax(0,1fr)}.diagram-wide{grid-column:auto}}

/* Numeric settings must look and behave like a visible disclosure control. */
.nc-settings:has(>summary){padding-top:0;border:1.5px solid #8da7b7;border-radius:8px;overflow:hidden;background:#fff}.nc-settings>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:14px 16px;background:#e8f1f7;color:#132635;border-bottom:1px solid transparent;font-size:1rem}.nc-settings>summary::-webkit-details-marker{display:none}.nc-settings>summary:hover{background:#d6e8f3}.nc-settings>summary:focus-visible{outline:3px solid #147dab;outline-offset:-3px}.nc-settings[open]>summary{margin-bottom:0;border-bottom-color:#8da7b7}.settings-state{font-size:.875rem;font-weight:700;white-space:nowrap;color:#17567b}.nc-settings:not([open]) .settings-open,.nc-settings[open] .settings-closed{display:none}.nc-settings[open]>.nc-fields{padding:18px}.settings-content{padding:18px}.path-fields{margin-top:20px}.angle-guide{font-size:.875rem;line-height:1.8;color:#425b6c;margin:18px 0}.motion-stage{border:1px solid #bbcbd5;border-radius:7px;padding:14px;margin:20px 0;min-width:0}.motion-stage legend{font-weight:700;padding:0 7px;color:#17567b}.motion-stage>p{margin:0 0 16px}.path-default-button{width:100%;min-height:48px;padding:10px 12px;border:1px solid #789aae;border-radius:7px;background:#edf5fa;color:#17567b;font-size:.875rem;font-weight:650}.motion-entry{color:#526879}.motion-extension{color:#794eaf}.motion-retract{color:#127c73}
@media(max-width:600px){.nc-settings>summary{flex-wrap:wrap;padding:14px 12px}.settings-content{padding:14px}.motion-stage{padding:12px}}

.nc-source-switch{margin:10px 0 22px}.nc-source-switch button{max-width:none;min-height:56px;font-size:1rem}.nc-standard-options{margin:22px 0;padding:18px;border:1.5px solid #8da7b7;border-radius:8px;background:#f3f8fc}.nc-standard-reference{margin-top:20px;padding-top:16px;border-top:1px solid #b7cbd8}.nc-standard-reference h3{font-size:1.05rem;margin:0 0 6px}.nc-standard-dimensions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:16px 0}.nc-standard-dimensions div{padding-bottom:10px;border-bottom:1px solid #d1dfe7;min-width:0}.nc-standard-dimensions dt{font-size:.875rem;color:#425b6c;line-height:1.7}.nc-standard-dimensions dd{font-size:1.15rem;font-weight:700;font-variant-numeric:tabular-nums;margin:3px 0 0;color:#132635;overflow-wrap:anywhere}.nc-standard-applied{font-size:.9375rem;font-weight:650;line-height:1.8;white-space:pre-line;color:#17567b}.nc-standard-fit{font-size:.875rem;line-height:1.8;margin:16px 0 0;color:#755108}.nc-fields input[readonly]{background:#e7eef3;color:#425b6c}.coordinate-sign{min-width:44px;min-height:44px;flex-shrink:0}.nc-standard-options .field:last-child{margin-bottom:0}
@media(max-width:600px){.nc-standard-options{padding:14px}.nc-source-switch button{padding:10px 8px;font-size:.9375rem}.nc-standard-dimensions{gap:12px}.nc-standard-dimensions dd{font-size:1.05rem}}

.nc-pipe-settings{margin-top:18px;padding-top:18px;border-top:1px solid #b7cbd8}.nc-pipe-settings .nc-calculate{margin-top:14px}#nc-standard-profile figure{margin:0}#nc-standard-profile img{width:100%;height:auto;display:block}#nc-standard-profile h3{margin:0 0 12px;font-size:1rem}#nc-standard-profile p{font-size:.9375rem;line-height:1.8}

/* The reference table shares the same standards and dimensions as the helper. */
.turn-profile-settings textarea{width:100%;min-height:130px;resize:vertical;padding:14px;border:1.5px solid #b7c5ce;border-radius:7px;background:#fff;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1rem;line-height:1.8}.turn-profile-settings textarea:focus{outline:3px solid #d6edf9;border-color:#147dab}.turn-profile-settings textarea[aria-invalid=true]{border-color:var(--error);background:#fff8f8}.turn-profile-settings .field-help,.turn-profile-settings .field-error{font-size:.875rem}.turn-profile-settings .card-heading{margin-bottom:14px;align-items:start}.turn-profile-settings h3{font-size:1rem;margin:0;line-height:1.7}.turn-profile-settings .clear{white-space:nowrap}
.thread-ref-filter-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px}.thread-ref-filters .card-heading{margin-bottom:20px}.thread-ref-filter-grid input{font-size:1rem;padding:16px}.thread-ref-filter-grid select{font-size:1rem}.thread-ref-filter-grid .input-wrap{min-height:67px}.thread-ref-count{font-size:.9375rem;font-weight:650;color:#17567b;margin:18px 0 0}.thread-ref-table{overflow:hidden}.thread-ref-table .thread-table-note{font-size:.875rem;line-height:1.8;margin:14px 0}.thread-ref-scroll{overflow:auto;max-height:520px;overscroll-behavior:contain}.thread-ref-scroll:focus-visible,.thread-ref-selection:focus-visible{outline:3px solid #147dab;outline-offset:3px}.thread-ref-table table{min-width:1020px}.thread-ref-table th{position:sticky;top:0;z-index:1;line-height:1.6;white-space:nowrap;box-shadow:0 1px 0 var(--line)}.thread-ref-table th,.thread-ref-table td{padding:12px 16px}.thread-ref-table td{white-space:nowrap}.thread-ref-table th:first-child,.thread-ref-table td:first-child{min-width:210px}.thread-ref-select{min-height:44px;font-size:.9375rem;text-align:left}.thread-ref-family{display:block;font-size:.875rem;color:var(--muted);line-height:1.6}.thread-ref-empty{padding:18px 20px;color:var(--muted);font-size:1rem;line-height:1.7}.thread-ref-selection{margin-top:22px}.thread-ref-selection .card-heading{margin-bottom:8px}.thread-ref-selection h2{font-size:1.25rem;overflow-wrap:anywhere}.thread-ref-description{font-size:.9375rem;line-height:1.8;color:#425b6c;margin:12px 0}.thread-ref-dimensions{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;margin:20px 0}.thread-ref-actions{display:flex;gap:10px;margin-top:20px}.thread-ref-actions button{flex:1;min-height:54px;border:1px solid #789aae;border-radius:7px;background:#edf5fa;color:#17567b;font-size:.9375rem;font-weight:650;padding:12px}.thread-ref-actions button:hover{background:#d6e8f3}.thread-ref-actions button:first-child{background:var(--ink);border-color:var(--ink);color:#fff}.thread-ref-actions button:first-child:hover{background:#294858}
@media(max-width:850px){.thread-ref-filter-grid{grid-template-columns:minmax(0,1fr)}.thread-ref-dimensions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tab[data-mode=thread-standards] small{display:block;margin:2px 0 0}.thread-ref-actions{flex-direction:column}.thread-ref-scroll{max-height:420px}.thread-ref-table .thread-table-note{padding:0 16px}.thread-ref-table th,.thread-ref-table td{padding:12px}.thread-ref-selection .small-label{white-space:nowrap}.thread-ref-dimensions{gap:14px}}

.topbar{height:auto;min-height:88px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}.shortcut-button{margin-left:auto;min-height:44px;padding:10px 16px;border:1px solid var(--ink);border-radius:7px;background:var(--ink);color:#fff;font-size:.9375rem;font-weight:650;white-space:nowrap}.shortcut-button:hover{background:#294858}.shortcut-button:focus-visible,.shortcut-close:focus-visible,.shortcut-address button:focus-visible{outline:3px solid #147dab;outline-offset:3px}
.shortcut-dialog{width:calc(100% - 32px);max-width:620px;max-height:88vh;max-height:88dvh;padding:0;border:1px solid #b7c5ce;border-radius:10px;background:#fff;color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 70px #13263540}.shortcut-dialog::backdrop{background:#132635a6}.shortcut-card{padding:28px}.shortcut-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.shortcut-heading h2{font-size:1.375rem;line-height:1.5;margin:0 0 5px}.shortcut-heading p{font-size:1rem;line-height:1.6;color:var(--muted);margin:0}.shortcut-close{min-height:44px;min-width:60px;padding:10px 12px;border:1px solid #b7c5ce;border-radius:6px;background:#f1f4f6;color:var(--ink);font-size:.9375rem;flex-shrink:0}.shortcut-close:hover{background:#e0e8ed}#shortcut-intro{font-size:1rem;line-height:1.8;margin:0 0 22px}.shortcut-label{display:block;font-size:.9375rem;font-weight:650;margin-bottom:8px}.shortcut-address{display:flex;align-items:stretch;gap:8px}.shortcut-address input{width:100%;min-width:0;padding:12px;font-size:.875rem;border:1px solid #b7c5ce;border-radius:6px;background:#f1f4f6;color:var(--ink);font-variant-numeric:normal}.shortcut-address input:focus{outline:3px solid #d6edf9;border-color:#147dab}.shortcut-address button{min-height:44px;flex-shrink:0;padding:10px 12px;border:1px solid var(--ink);border-radius:6px;background:var(--yellow);color:var(--ink);font-size:.9375rem;font-weight:650}.shortcut-address button:hover{background:#ffda6b}.shortcut-status{font-size:.875rem;line-height:1.7;color:#17567b;margin:8px 0 18px;min-height:24px}.shortcut-methods details{border-top:1px solid var(--line);padding:0 0 4px}.shortcut-methods summary{min-height:48px;padding:14px 0;font-size:1rem;font-weight:650;cursor:pointer;line-height:1.6}.shortcut-methods summary:focus-visible{outline:3px solid #147dab;outline-offset:2px}.shortcut-methods ol{padding-left:24px;margin:0 0 12px;font-size:1rem;line-height:1.8}.shortcut-methods li+li{margin-top:8px}.shortcut-methods a{display:inline-block;font-size:.875rem;color:#17567b;line-height:1.8;margin-bottom:14px;text-underline-offset:3px}.shortcut-tip{font-size:.875rem;line-height:1.8;color:var(--muted);margin:16px 0 0;border-top:1px solid var(--line);padding-top:16px}
@media(max-width:850px){.topbar{min-height:76px}}@media(max-width:600px){.topbar{min-height:68px;padding-top:10px;padding-bottom:10px}.shortcut-card{padding:20px}.shortcut-heading{gap:10px}.shortcut-heading h2{font-size:1.25rem}.shortcut-button{font-size:.875rem;padding:10px 12px}}@media(max-width:420px){.topbar{padding-left:12px;padding-right:12px;gap:8px}.brand{font-size:.875rem;gap:7px}.brand-mark{width:36px;height:32px;font-size:.75rem}.shortcut-button{padding:10px 8px}.shortcut-card{padding:18px}.shortcut-address{flex-wrap:wrap}.shortcut-address input{flex:1 1 100%}.shortcut-address button{margin-left:auto}}

.release-info{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-left:18px;font-size:.875rem;line-height:1.6;color:#425b6c}.release-badge{display:inline-block;background:var(--yellow);color:var(--ink);border:1px solid #b88c22;border-radius:6px;padding:4px 10px;font-weight:750;font-size:1.0625rem}.release-info time{font-variant-numeric:tabular-nums}.visitor-counter{margin-top:28px;border:1px solid #c2d1db;border-radius:8px;background:#fff;padding:16px 20px;color:var(--ink)}.visitor-counts{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px 24px;font-size:.9375rem}.visitor-counts strong{font-size:1.4rem;color:#17567b;margin-left:6px;font-variant-numeric:tabular-nums}.visitor-unit{font-size:.8125rem;color:var(--muted)}.visitor-counter p{font-size:.8125rem;line-height:1.7;color:var(--muted);margin:8px 0 0}.visitor-counter .visitor-note{font-size:.75rem}.visitor-counter button{min-height:44px;margin-top:10px;padding:8px 12px;border:1px solid #b7c5ce;border-radius:6px;background:#edf5fa;color:#17567b;font-size:.875rem}
@media(max-width:850px){.release-info{order:3;width:100%;margin:4px 0 0}.topbar{gap:8px}}@media(max-width:600px){.release-info{font-size:.8125rem;gap:8px}.release-badge{font-size:1rem;padding:3px 9px}.visitor-counter{padding:14px 16px}.visitor-counts{gap:8px 18px}}

/* Macro workbench follows the existing workshop palette. */
#panel-macro .page-heading h1{font-size:1.75rem;margin:0 0 10px;letter-spacing:-.035em}#panel-macro .page-heading p{font-size:1rem;line-height:1.75;color:var(--muted);margin:0 0 22px}.macro-tabs{display:flex;gap:10px;margin:0 0 24px}.macro-tabs button{min-height:52px;border:1px solid #8da7b7;border-radius:7px;background:#fff;padding:12px 16px;color:var(--ink);font-size:1rem;font-weight:650;flex:1}.macro-tabs button[aria-pressed=true]{background:var(--ink);color:var(--yellow);border-color:var(--ink)}.macro-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.macro-layout>*{min-width:0}.macro-card{border:1px solid #c7d5de;background:#fff;border-radius:10px;padding:24px;min-width:0}.macro-card h2{font-size:1.2rem;line-height:1.5;margin:0 0 16px;letter-spacing:-.025em}.macro-card h3{font-size:1rem;margin:24px 0 12px}.macro-card button{min-height:44px;border:1px solid #8da7b7;border-radius:6px;background:#edf5fa;color:#17567b;padding:10px 14px;font-size:.9375rem;font-weight:650}.macro-card button:hover{background:#d6e8f3}.macro-card button:disabled{opacity:.45;cursor:not-allowed}.macro-card button.macro-primary{width:100%;margin-top:12px;background:var(--yellow);border-color:#a97b11;color:var(--ink);min-height:52px}.macro-card label{display:block;font-size:.9375rem;font-weight:650;line-height:1.65;margin-bottom:7px}.macro-card input,.macro-card select{width:100%;min-width:0;min-height:46px;border:1px solid #aabdc9;border-radius:6px;padding:10px 12px;background:#fff;color:var(--ink);font-size:1rem}.macro-card input:focus,.macro-card select:focus,.macro-code:focus{outline:3px solid #d6edf9;border-color:#147dab}.macro-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.macro-field{min-width:0}.macro-number{display:flex;align-items:center;border:1px solid #aabdc9;border-radius:6px;background:#f8fbfd;overflow:hidden}.macro-card .macro-number input{border:0;background:transparent;font-size:1.3rem;min-height:50px;font-variant-numeric:tabular-nums}.macro-number span{font-size:.875rem;color:var(--muted);padding:0 10px 0 2px;white-space:nowrap}.macro-help,.macro-note{font-size:.875rem;line-height:1.8;color:var(--muted);margin:8px 0 14px;overflow-wrap:anywhere}.macro-help{margin:7px 0 0}.macro-field .field-error{font-size:.875rem;line-height:1.7;min-height:0;margin:4px 0 0}.macro-card [aria-invalid=true]{border-color:var(--error)}.macro-message{font-size:.9375rem;line-height:1.7;margin:10px 0;min-height:0;color:#17567b;overflow-wrap:anywhere}.macro-message.is-error{color:var(--error)}.macro-output{border-top:5px solid #17567b}.macro-code-label{margin-top:18px}.macro-code{display:block;resize:vertical;width:100%;height:390px;min-height:220px;padding:16px;background:#0b202e;color:#e2edf4;border:1px solid #214b64;border-radius:7px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.875rem;line-height:1.8;tab-size:2;overflow:auto;white-space:pre;margin-bottom:12px}.macro-call{height:190px;min-height:140px}.macro-editor{height:480px}.macro-actions{display:flex;gap:10px;flex-wrap:wrap}.macro-actions button{flex:1}.macro-notes{padding:0;margin:16px 0}.macro-notes p{font-size:.9375rem;line-height:1.8;padding:12px 14px;background:#f1f6fa;border-left:3px solid #8da7b7;margin:8px 0;overflow-wrap:anywhere}.macro-details{border-top:1px solid var(--line);margin-top:18px}.macro-details summary{cursor:pointer;min-height:48px;padding:14px 0;font-size:.9375rem;font-weight:650;line-height:1.7}.macro-var-map{margin:6px 0}.macro-var-map div{padding:9px 0;border-bottom:1px solid #e5edf2}.macro-var-map dt{font-family:ui-monospace,Consolas,monospace;font-size:.9375rem;font-weight:650;color:#17567b}.macro-var-map dd{font-size:.9375rem;line-height:1.7;margin:4px 0 0}.macro-table-scroll{overflow:auto;max-height:320px}.macro-table{width:100%;border-collapse:collapse;font-size:.875rem;font-variant-numeric:tabular-nums}.macro-table th,.macro-table td{padding:10px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}.macro-table th{background:#eaf2f7;position:sticky;top:0}.macro-builder-top{margin-bottom:22px}.macro-builder-top select{max-width:620px;font-size:1.125rem}.macro-reference{margin-top:22px}.macro-reference>select{margin-bottom:4px}.macro-reference-results{max-height:650px;overflow:auto;padding-right:4px;overscroll-behavior:contain}.macro-ref-card{border-top:1px solid #c7d5de;padding:0 0 10px}.macro-ref-card summary{padding:14px 0;cursor:pointer;font-size:.9375rem;line-height:1.7}.macro-ref-card summary strong{font-family:ui-monospace,Consolas,monospace;color:#17567b;margin-right:8px}.macro-ref-card p{font-size:.9375rem;line-height:1.8;margin:6px 0 12px}.macro-ref-card pre{font-size:.875rem;line-height:1.8;background:#edf4f9;border-radius:6px;padding:12px;overflow:auto;white-space:pre}.macro-ref-links{display:flex;gap:12px;flex-wrap:wrap;font-size:.875rem;line-height:1.8;margin:10px 0}.macro-ref-links a{color:#17567b;text-underline-offset:3px}.macro-ref-card .macro-ref-actions{display:flex;flex-wrap:wrap;gap:8px}.macro-ref-card button{font-size:.875rem}.macro-access{display:inline-block;font-size:.875rem;border:1px solid #aabdc9;border-radius:4px;padding:1px 6px;color:var(--muted);margin-left:6px}.macro-lint{border:1px solid #c7d5de;border-radius:7px;padding:14px;margin:18px 0;font-size:.9375rem;line-height:1.8}.macro-lint p{white-space:pre-line;margin:8px 0}.macro-lint .macro-note{margin:8px 0 0}.macro-lint .is-error{color:var(--error)}.macro-manual{margin-top:24px}.macro-manual-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.macro-manual a{color:#17567b;text-underline-offset:3px;font-size:.9375rem;line-height:1.8}.macro-manual-index{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.macro-manual-index a{display:block;border:1px solid #c7d5de;background:#f6f9fb;border-radius:6px;padding:12px;min-height:48px;text-decoration:none}.macro-manual-index a:hover{background:#e2eff7}.macro-manual-index small{display:block;margin-top:4px;color:var(--muted);font-size:.875rem}.macro-reference input[type=search]{font-size:1rem;margin-bottom:14px}
@media(max-width:1150px){.macro-layout{grid-template-columns:minmax(0,1fr)}.macro-reference-results{max-height:430px}.macro-editor{height:420px}}
@media(max-width:600px){.macro-card{padding:20px 16px}.macro-tabs{gap:8px}.macro-tabs button{font-size:.9375rem;padding:10px 8px}.macro-fields{gap:16px 12px}.macro-number span{font-size:.8125rem;padding-right:7px}.macro-card .macro-number input{font-size:1.2rem;padding-left:10px}.macro-manual-index{grid-template-columns:minmax(0,1fr)}.macro-code{padding:12px}.macro-actions button{min-width:125px}.macro-field[data-mu-field=memory],.macro-field[data-mu-field=polarity],.macro-field[data-mu-field=apply]{grid-column:1/-1}}
@media(max-width:380px){.macro-fields{grid-template-columns:minmax(0,1fr)}.macro-tabs{flex-direction:column}.macro-card .macro-number input{font-size:1.3rem}}

/* Searchable FANUC reference shares the workshop controls and card palette. */
.lathe-guide-search{background:#fff;border:1px solid #c7d5de;border-radius:10px;padding:22px}.lathe-guide-types{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.lathe-guide-search button,.lathe-guide-related button{min-height:44px;border:1px solid #8da7b7;border-radius:6px;background:#edf5fa;color:#17567b;padding:10px 14px;font-size:.9375rem;font-weight:650}.lathe-guide-search button:hover,.lathe-guide-related button:hover{background:#d6e8f3}.lathe-guide-types button[aria-pressed=true]{background:var(--ink);color:var(--yellow);border-color:var(--ink)}.lathe-guide-filters{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) auto;gap:14px;align-items:end}.lathe-guide-filters>div{min-width:0}.lathe-guide-filters label{display:block;font-size:.9375rem;font-weight:650;line-height:1.6;margin-bottom:7px}.lathe-guide-filters input,.lathe-guide-filters select{width:100%;min-width:0;min-height:48px;font-size:1rem;border:1px solid #aabdc9;border-radius:6px;padding:10px 12px;background:#fff;color:var(--ink)}.lathe-guide-filters input:focus,.lathe-guide-filters select:focus{outline:3px solid #d6edf9;border-color:#147dab}.lathe-guide-search button:focus-visible,.lathe-guide-related button:focus-visible,.lathe-guide-card summary:focus-visible,.lathe-guide-originals summary:focus-visible{outline:3px solid #147dab;outline-offset:3px}.lathe-guide-help{font-size:.875rem;line-height:1.8;color:var(--muted);margin:10px 0 18px}.lathe-guide-quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.lathe-guide-quick>span{font-size:.875rem;font-weight:650;margin-right:4px}.lathe-guide-quick button{font-size:.875rem;padding:8px 12px}.lathe-guide-scope{font-size:.9375rem;line-height:1.85;background:#eaf2f7;border-left:3px solid #789aae;padding:16px 18px;margin:18px 0;color:#425b6c}.lathe-guide-count{font-size:.9375rem;line-height:1.7;color:var(--muted);margin:20px 0 12px}.lathe-guide-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.lathe-guide-card{background:#fff;border:1px solid #c7d5de;border-radius:9px;min-width:0;overflow:hidden}.lathe-guide-card summary{padding:18px 20px;cursor:pointer;list-style:none}.lathe-guide-card summary::-webkit-details-marker{display:none}.lathe-guide-card-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:9px}.lathe-guide-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.15rem;color:#17567b;overflow-wrap:anywhere}.lathe-guide-badge{font-size:.8125rem;background:#eaf2f7;border:1px solid #c7d5de;border-radius:4px;padding:2px 7px}.lathe-guide-card-title{display:block;font-size:1.0625rem;font-weight:700;line-height:1.65;margin-bottom:5px}.lathe-guide-card-summary{display:block;font-size:.9375rem;line-height:1.8;color:#425b6c}.lathe-guide-expand{display:block;font-size:.875rem;color:#17567b;margin-top:12px;text-decoration:underline;text-underline-offset:3px}.lathe-guide-card[open] .lathe-guide-expand{font-size:0}.lathe-guide-card[open] .lathe-guide-expand::after{content:'설명 접기';font-size:.875rem}.lathe-guide-card-body{padding:0 20px 20px;border-top:1px solid var(--line)}.lathe-guide-card-body h2{font-size:1rem;margin:18px 0 8px;line-height:1.6}.lathe-guide-card-body p,.lathe-guide-card-body li{font-size:.9375rem;line-height:1.85;overflow-wrap:anywhere}.lathe-guide-card-body p{margin:12px 0}.lathe-guide-card-body .lathe-guide-model{font-size:.875rem;color:var(--muted);margin:14px 0}.lathe-guide-card-body ol{padding-left:23px;margin:8px 0 16px}.lathe-guide-card-body li+li{margin-top:9px}.lathe-guide-note{background:#fff7df;border-left:3px solid #c79b35;padding:12px 14px}.lathe-guide-related{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.875rem;margin-top:16px}.lathe-guide-related button{font-family:ui-monospace,Consolas,monospace;font-size:.875rem;padding:8px 10px}.lathe-guide-links{display:flex;flex-direction:column;gap:6px;margin-top:18px}.lathe-guide-links a,.lathe-guide-originals a{color:#17567b;font-size:.875rem;line-height:1.8;text-underline-offset:3px;overflow-wrap:anywhere}.lathe-guide-links p{color:var(--muted);font-size:.875rem}.lathe-guide-empty{grid-column:1/-1;background:#fff;border:1px solid #c7d5de;border-radius:8px;padding:22px;font-size:1rem;line-height:1.8;margin:0}.lathe-guide-originals{margin-top:24px;border-top:1px solid #c7d5de}.lathe-guide-originals summary{min-height:48px;padding:16px 0;font-size:1rem;font-weight:650;cursor:pointer}.lathe-guide-originals p,.lathe-guide-originals li{font-size:.9375rem;line-height:1.85;color:var(--muted)}
@media(max-width:1100px){.lathe-guide-filters{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.lathe-guide-filters>button{justify-self:start}.lathe-guide-results{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.tab[data-mode=lathe-guide] small{display:block;margin:2px 0 0}.lathe-guide-search{padding:20px 16px}.lathe-guide-types{gap:7px}.lathe-guide-types button{flex:1;padding:10px 8px;white-space:nowrap}.lathe-guide-filters{grid-template-columns:minmax(0,1fr)}.lathe-guide-filters>button{justify-self:end}.lathe-guide-quick>span{width:100%}.lathe-guide-card summary{padding:16px}.lathe-guide-card-body{padding:0 16px 16px}.lathe-guide-scope{padding:14px 16px}}

/* G/M reference reuses the established reference controls. */
.code-reference-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.code-reference-types button{min-width:0}.code-reference-basis{font-size:.9375rem;font-weight:650;line-height:1.7;color:#17567b;margin:0 0 18px}.code-reference-variant{background:#fff7df;color:#775618;border-color:#ddc689}.code-reference-comparison{border:1px solid #c7d5de;border-radius:8px;background:#fff;min-width:0}.code-reference-comparison>summary{padding:16px 18px;font-weight:650;line-height:1.7;cursor:pointer;min-height:48px}.code-reference-comparison>summary:focus-visible{outline:3px solid #147dab;outline-offset:3px}.code-reference-table-scroll{overflow-x:auto;padding:0 16px 16px}.code-reference-table-scroll table{width:100%;border-collapse:collapse;font-size:.9375rem}.code-reference-table-scroll caption{text-align:left;color:var(--muted);font-size:.875rem;line-height:1.7;padding:0 0 12px}.code-reference-table-scroll th,.code-reference-table-scroll td{text-align:left;border-bottom:1px solid #d5dfe6;padding:12px 10px;line-height:1.7;vertical-align:top}.code-reference-table-scroll th{background:#edf4f8}.code-reference-table-scroll td:first-child{font-family:ui-monospace,Consolas,monospace;font-weight:700;color:#17567b;white-space:nowrap}
@media(max-width:600px){.code-reference-types{grid-template-columns:repeat(2,minmax(0,1fr))}.tab[data-mode=code-reference] small{display:block;margin:2px 0 0}.code-reference-table-scroll{padding:0 10px 12px}.code-reference-table-scroll th,.code-reference-table-scroll td{padding:10px 7px;font-size:.875rem}.code-reference-comparison>summary{padding:14px}}

/* Toolpath preview and public release history */
.release-notes-open{min-height:34px;padding:5px 9px;border:1px solid #879ca9;border-radius:5px;background:#fff;color:#17567b;font-size:.8125rem;font-weight:650}.release-notes-open:hover{background:#edf5fa}.toolpath-layout{display:grid;grid-template-columns:minmax(320px,.78fr) minmax(420px,1.22fr);gap:20px;align-items:start}.toolpath-input{min-width:0}.toolpath-result{min-width:0;padding:22px}.toolpath-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.toolpath-result-head h2{margin:0 0 6px}.toolpath-result-head p{margin:0;color:#c4d6e2;font-size:.875rem;line-height:1.6}.toolpath-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:.8125rem;white-space:nowrap}.toolpath-legend span::before{content:"";display:inline-block;width:24px;border-top:3px solid;margin-right:6px;vertical-align:middle}.toolpath-legend .rapid::before{border-color:#ffb454;border-top-style:dashed}.toolpath-legend .cut::before{border-color:#58d4c0}.toolpath-canvas-wrap{width:100%;overflow:hidden;border:1px solid #4b6b7d;border-radius:8px;background:#0b202e}.toolpath-canvas-wrap canvas{display:block;width:100%;height:clamp(320px,46vw,520px);touch-action:none}.toolpath-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0}.toolpath-controls button,.toolpath-controls select{width:auto;min-height:44px;border:1px solid #8da7b7;border-radius:6px;background:#edf5fa;color:#173349;padding:8px 12px;font-size:.875rem;font-weight:650}.toolpath-controls label{display:flex;align-items:center;gap:6px;color:#d7e4ed;font-size:.875rem}.toolpath-controls select{min-width:72px;background:#fff}.toolpath-controls button:disabled{opacity:.45}.toolpath-readout{display:flex;gap:12px;align-items:baseline;padding:12px 14px;border-radius:6px;background:#294855;font-size:.9375rem;line-height:1.7}.toolpath-readout strong{color:#ffce70;white-space:nowrap}.toolpath-bounds{font-size:.8125rem;line-height:1.7;color:#c3d7e4}.toolpath-warnings{margin-top:14px;border:1px solid #7b6a3a;border-radius:7px;background:#493f2a}.toolpath-warnings summary{padding:12px 14px;cursor:pointer;font-weight:650;color:#ffe0a3}.toolpath-warnings ul{margin:0;padding:0 34px 14px;font-size:.875rem;line-height:1.75;color:#ffe9bd}.release-notes-basis{padding:14px 16px;border-left:4px solid #d6a72e;background:#fff8df;font-size:.9375rem;line-height:1.8}.release-timeline{list-style:none;margin:26px 0;padding:0;position:relative}.release-timeline::before{content:"";position:absolute;left:132px;top:8px;bottom:8px;width:2px;background:#c7d5de}.release-timeline li{display:grid;grid-template-columns:112px minmax(0,1fr);gap:40px;position:relative;padding:0 0 28px}.release-timeline li::before{content:"";position:absolute;left:126px;top:7px;width:12px;height:12px;border:3px solid #fff;border-radius:50%;background:#4d788f;box-shadow:0 0 0 2px #4d788f}.release-timeline li.current::before{background:#e2aa22;box-shadow:0 0 0 2px #e2aa22}.release-timeline time{font-size:.8125rem;font-weight:700;line-height:1.65;color:#476476;text-align:right;font-variant-numeric:tabular-nums}.release-timeline h2{font-size:1.12rem;line-height:1.5;margin:0 0 5px}.release-timeline p{font-size:.9375rem;line-height:1.8;color:#425b6c;margin:0}.release-timeline .current>div{padding:15px 17px;border:1px solid #e1c267;border-radius:8px;background:#fff8df;margin-top:-10px}
@media(max-width:1000px){.toolpath-layout{grid-template-columns:minmax(0,1fr)}.toolpath-canvas-wrap canvas{height:440px}}
@media(max-width:600px){.release-notes-open{min-height:32px}.toolpath-result{padding:14px}.toolpath-result-head{display:block}.toolpath-legend{margin-top:10px}.toolpath-canvas-wrap canvas{height:330px}.toolpath-controls button{flex:1;min-width:64px}.toolpath-controls label{width:100%;justify-content:flex-end}.toolpath-readout{align-items:flex-start;flex-direction:column;gap:3px}.release-timeline::before{left:7px}.release-timeline li{display:block;padding:0 0 25px 30px}.release-timeline li::before{left:1px}.release-timeline time{text-align:left;display:block;margin-bottom:4px}.release-timeline .current>div{margin-top:6px}.tab[data-mode=toolpath-sim] small,.tab[data-mode=release-notes] small{display:block;margin:2px 0 0}}

/* Measured taper, straight parting and spherical finishing. */
.extra-full-width{grid-column:1/-1;min-width:0}.lathe-extra-result{min-width:0}.lathe-extra-diagram{margin:22px 0}.lathe-extra-chart{overflow-x:auto;border:1px solid #b8cbd7;border-radius:8px;background:#f8fbfd}.lathe-extra-chart svg{display:block;width:100%;height:auto;min-width:340px}.lathe-extra-chart text{fill:#355367;font-size:17px}.lathe-extra-diagram figcaption{font-size:.875rem;line-height:1.8;margin-top:12px;color:#d7e4ed}.extra-axis{stroke:#94a8b5;stroke-width:1.2;stroke-dasharray:5 5}.extra-profile{fill:none;stroke:#167ac2;stroke-width:3}.extra-program{fill:none;stroke:#dd8914;stroke-width:3}.extra-nominal{fill:none;stroke:#dd8914;stroke-width:2;stroke-dasharray:7 5}.extra-centres{fill:none;stroke:#788b98;stroke-width:1.6;stroke-dasharray:6 4}.extra-local{fill:none;stroke:#cb8430;stroke-width:2;stroke-dasharray:5 4}.extra-nose{fill:#ffc85c33;stroke:#90642b;stroke-width:1.5}.extra-stock{fill:#b5c5d366;stroke:#849db0;stroke-width:1.4}.extra-kerf{fill:#ffcf7666;stroke:#c68d29;stroke-width:1.2}.extra-face{fill:none;stroke:#178472;stroke-width:2;stroke-dasharray:6 4}.extra-dot{fill:#167ac2}.extra-measurements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.extra-measurements>div{border:1px solid #577282;border-radius:7px;padding:14px 12px;min-width:0}.extra-measurements dt{font-size:.875rem;color:#d7e4ed;line-height:1.7}.extra-measurements dd{font-size:1.2rem;font-weight:700;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere;color:#ffce70}.extra-comparison{background:#294855;border:1px solid #658392;border-radius:7px;padding:14px;margin:18px 0}.extra-comparison h3{font-size:1rem;line-height:1.7;margin:0 0 8px}.extra-comparison p{font-size:.9375rem;line-height:1.8;margin:0}.extra-note{border-left:3px solid #e0ac4d;padding:12px 14px;background:#493f2a;color:#ffe0a3;font-size:.9375rem;line-height:1.85;margin:18px 0}#part-reference-help,#sphere-angle-help{line-height:1.8}.tab[data-mode=taper-analysis] small{display:block;margin-top:3px}
@media(max-width:650px){.extra-measurements{grid-template-columns:minmax(0,1fr);gap:8px}.extra-measurements>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.extra-measurements dd{margin:0;font-size:1.1rem}.extra-measurements dt{font-size:.875rem}.extra-comparison{padding:12px}.lathe-extra-diagram figcaption,.extra-note{font-size:.9375rem}.lathe-extra-chart svg{min-width:340px}}

/* Machine verification manual uses collapsible steps on small screens. */
.machine-guide-helper-action{margin:-10px 0 20px}.machine-guide-link,.machine-guide-context button,.machine-guide-index button,.machine-guide-actions button{border:1px solid #8da7b7;border-radius:6px;background:#edf5fa;color:#17567b;min-height:44px;padding:10px 14px;font-size:.9375rem;line-height:1.65;font-weight:650}.machine-guide-link:hover,.machine-guide-context button:hover,.machine-guide-index button:hover,.machine-guide-actions button:hover{background:#d6e8f3}#machine-guide-nav{width:100%;margin-top:18px;text-align:left}.machine-guide-context{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin-bottom:20px}.machine-guide-context p{flex:1 1 280px;font-size:.9375rem;line-height:1.85;color:var(--muted);margin:0}.machine-guide-important{border-left:4px solid #bd8b28;border-radius:5px;background:#fff5db;color:#604b21;padding:16px 18px;font-size:1rem;line-height:1.85;margin:0 0 20px}.machine-guide-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:24px}.machine-guide-index button{text-align:left;min-width:0}.machine-guide-overview{background:#fff;border:1px solid #c7d5de;border-radius:9px;padding:20px;margin-bottom:18px;min-width:0}.machine-guide-overview h2{font-size:1.125rem;line-height:1.7;margin:0 0 12px}.machine-guide-table-scroll{overflow-x:auto;min-width:0}.machine-guide-table-scroll table{width:100%;border-collapse:collapse;font-size:.9375rem;line-height:1.8}.machine-guide-table-scroll caption{text-align:left;color:var(--muted);font-size:.875rem;padding:0 0 14px}.machine-guide-table-scroll th,.machine-guide-table-scroll td{text-align:left;padding:12px 10px;border-bottom:1px solid #d6e0e7;vertical-align:top;overflow-wrap:anywhere}.machine-guide-table-scroll thead th{background:#edf4f8}.machine-guide-table-scroll tbody th{width:25%;color:#17567b;min-width:120px}.machine-guide-table-scroll th small{display:block;font-weight:450;color:var(--muted);font-size:.8125rem;line-height:1.75;margin-top:4px}.machine-guide-step{background:#fff;border:1px solid #c7d5de;border-radius:9px;min-width:0;overflow:hidden;margin:14px 0}.machine-guide-step>summary{display:flex;align-items:center;gap:12px;min-height:64px;padding:16px 20px;list-style:none;cursor:pointer;font-size:1.0625rem;font-weight:700;line-height:1.7}.machine-guide-step>summary::-webkit-details-marker{display:none}.machine-guide-step>summary::after{content:'＋';margin-left:auto;flex-shrink:0;color:#17567b}.machine-guide-step[open]>summary{border-bottom:1px solid #d6e0e7}.machine-guide-step[open]>summary::after{content:'−'}.machine-guide-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;background:#e8f1f7;border-radius:6px;color:#17567b;font-size:.9375rem}.machine-guide-body{padding:18px 20px 22px;font-size:1rem;line-height:1.95;overflow-wrap:anywhere}.machine-guide-body p{margin:12px 0}.machine-guide-body ol,.machine-guide-body ul{padding-left:25px;margin:8px 0 20px}.machine-guide-body li+li{margin-top:14px}.machine-guide-body a{font-size:.9375rem;color:#17567b;text-underline-offset:3px}.machine-guide-body kbd{font:650 .875rem ui-monospace,Consolas,monospace;background:#edf3f7;border:1px solid #c7d5de;border-radius:4px;padding:2px 6px;white-space:nowrap}.machine-guide-note{background:#fff7df;border-left:3px solid #c79b35;padding:12px 15px}.machine-guide-scope{color:var(--muted);font-size:.9375rem;line-height:1.85}.machine-guide-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.machine-guide-substep{border-top:1px solid #d6e0e7;margin-top:20px}.machine-guide-substep>summary{cursor:pointer;font-weight:650;min-height:48px;padding:12px 0}.machine-guide-step:focus-visible,.machine-guide-step summary:focus-visible,.machine-guide-link:focus-visible,.machine-guide-context button:focus-visible,.machine-guide-index button:focus-visible,.machine-guide-actions button:focus-visible{outline:3px solid #147dab;outline-offset:3px}
@media(max-width:600px){.machine-guide-index{grid-template-columns:repeat(2,minmax(0,1fr))}.machine-guide-index button{padding:10px 8px;font-size:.875rem}.machine-guide-overview{padding:16px 12px}.machine-guide-step>summary{padding:14px 12px;font-size:1rem;gap:9px}.machine-guide-body{padding:14px 16px 18px;font-size:.9375rem}.machine-guide-table-scroll th,.machine-guide-table-scroll td{padding:10px 7px;font-size:.875rem}.machine-guide-important{padding:14px 16px;font-size:.9375rem}.machine-guide-context button{width:100%}.tab[data-mode=machine-guide] small{display:block;margin:2px 0 0}}

/* Workshop tips, dimensional correction and personal machining records. */
.shop-subheading{margin:30px 0 18px}.shop-subheading h2{font-size:1.2rem;margin:0 0 8px}.shop-subheading p{color:var(--muted);line-height:1.75;margin:0}.shop-label{display:flex;flex-direction:column;gap:9px;font-size:1rem;font-weight:600;line-height:1.65;min-width:0}.shop-input,.shop-record-note textarea{width:100%;min-width:0;border:1px solid #aebcc6;border-radius:7px;background:#fff;color:var(--ink);padding:13px 14px;font:inherit;font-weight:450;line-height:1.55;min-height:48px}.shop-input:focus,.shop-record-note textarea:focus{outline:2px solid #177baf;outline-offset:2px}.shop-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:16px 0 0}.shop-actions button,.shop-file-button,.shop-tool-link,.shop-result-button{border:1px solid #aebcc6;background:#fff;color:var(--ink);border-radius:7px;min-height:44px;padding:10px 14px;font-size:.9375rem;line-height:1.5;text-align:center}.shop-actions button:hover,.shop-file-button:hover,.shop-tool-link:hover{background:#edf3f7}.shop-actions button[aria-pressed=true],.shop-actions .shop-primary,.shop-result-button{background:var(--ink);border-color:var(--ink);color:#fff}.shop-actions button:disabled,.shop-result-button:disabled{cursor:default;opacity:.5}.shop-status{font-size:.9375rem;line-height:1.8;color:var(--muted);margin:16px 0;overflow-wrap:anywhere}.shop-error{color:var(--error)}.shop-tip-results,.shop-record-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.shop-tip-card,.shop-record-card{background:#fff;border:1px solid #c7d5de;border-radius:9px;min-width:0;overflow-wrap:anywhere}.shop-tip-card summary{padding:20px;cursor:pointer;list-style:none}.shop-tip-card summary::-webkit-details-marker{display:none}.shop-tip-category{display:block;font-size:.875rem;font-weight:650;color:#466078;margin-bottom:10px}.shop-tip-card summary strong{display:block;font-size:1.0625rem;line-height:1.7;margin-bottom:8px}.shop-tip-causes{display:block;font-size:.9375rem;color:var(--muted);line-height:1.7}.shop-tip-card summary:after{content:'확인 순서 보기 +';display:block;margin-top:14px;color:#17567b;font-size:.875rem;font-weight:600}.shop-tip-card[open] summary:after{content:'확인 순서 접기 −'}.shop-tip-card[open] summary{border-bottom:1px solid var(--line)}.shop-tip-body{padding:18px 20px 20px;line-height:1.85;font-size:1rem}.shop-tip-body h2{font-size:1rem;margin:0 0 10px}.shop-tip-body ol{padding-left:22px;margin:8px 0 16px}.shop-tip-body li+li{margin-top:10px}.shop-tip-note{border-left:3px solid #c79b35;background:#fff7df;padding:12px 14px;font-size:.9375rem;line-height:1.8}.shop-tip-sources{display:flex;flex-direction:column;gap:8px;margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.shop-tip-sources a{font-size:.875rem;color:#17567b;text-underline-offset:3px}.shop-tip-sources p{font-size:.875rem;color:var(--muted);margin:0}.shop-source-note,.shop-storage-note{font-size:.9375rem;line-height:1.85;color:var(--muted);overflow-wrap:anywhere}.shop-source-note{margin-top:24px}.shop-storage-note{background:#e8eff4;border-left:3px solid #668496;padding:14px 18px;margin:0 0 22px}.shop-ld{margin-top:24px}.shop-ld>p{font-size:1rem;line-height:1.8;margin:14px 22px}.shop-ld .shop-form-grid{padding:20px 22px 0}.shop-ld-output output{font-family:ui-monospace,Consolas,monospace;font-size:1.6rem;font-weight:700;color:var(--ink)}.shop-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.shop-correction-results{display:block;margin-top:20px}.shop-correction-results>div{padding:14px 0;border-bottom:1px solid #405666}.shop-correction-results dt{font-size:.9375rem}.shop-correction-results dd{font-size:1.1rem;margin-top:9px;line-height:1.6;overflow-wrap:anywhere}.shop-record-note{margin-top:22px}.shop-record-note textarea{resize:vertical;min-height:120px}.shop-record-toolbar{margin:28px 0 20px;display:flex;gap:18px;align-items:end;flex-wrap:wrap}.shop-record-toolbar>.shop-label{flex:1 1 280px}.shop-record-toolbar .shop-actions{margin:0}.shop-record-card{padding:20px}.shop-record-card h2{font-size:1.125rem;margin:0 0 8px;line-height:1.7}.shop-record-meta{font-size:.9375rem;color:var(--muted);line-height:1.75;margin:0 0 14px}.shop-record-settings{font-size:1rem;line-height:1.85;margin:0 0 14px}.shop-record-text{white-space:pre-wrap;line-height:1.85;font-size:1rem;margin:0 0 16px}.shop-record-date{display:block;font-size:.875rem;color:var(--muted);line-height:1.8}.shop-file-button{position:relative;cursor:pointer;overflow:hidden;display:inline-flex;align-items:center;justify-content:center}.shop-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.shop-file-button:focus-within{outline:3px solid #177baf;outline-offset:3px}.shop-empty{grid-column:1/-1;background:#fff;border:1px solid #c7d5de;border-radius:8px;margin:0;padding:22px;font-size:1rem;line-height:1.8}.shop-delete-dialog{border:1px solid #aebcc6;border-radius:10px;padding:26px;width:min(440px,calc(100vw - 32px));color:var(--ink);background:#fff}.shop-delete-dialog::backdrop{background:#13263599}.shop-delete-dialog h2{font-size:1.125rem;margin:0 0 16px}.shop-delete-dialog p{font-size:1rem;line-height:1.8;overflow-wrap:anywhere}.shop-actions .shop-danger{background:#a62132;color:#fff;border-color:#a62132}
@media(max-width:1100px){.shop-tip-results,.shop-record-results{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.shop-form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.shop-search{padding:20px 16px}.shop-tip-card summary{padding:16px}.shop-tip-body{padding:16px}.shop-record-card{padding:16px}.shop-record-toolbar{align-items:stretch}.shop-record-toolbar>.shop-label{flex-basis:100%}.shop-record-toolbar .shop-actions{gap:8px}.shop-actions button,.shop-file-button{padding:10px 12px;min-height:46px}.tab[data-mode=lathe-tips] small,.tab[data-mode=correction] small,.tab[data-mode=work-records] small{display:block;margin-top:3px;font-size:.875rem}.shop-correction-results dd{font-size:1rem}.shop-ld .shop-form-grid{padding:18px 16px 0}.shop-ld>p{margin:14px 16px}}
.shop-direction-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:0 0 24px;font-size:.9375rem;line-height:1.8;text-align:left}.shop-direction-table caption{text-align:left;font-weight:700;color:var(--ink);font-size:1rem;margin-bottom:12px}.shop-direction-table th,.shop-direction-table td{border:1px solid var(--line);padding:12px 10px;vertical-align:top;overflow-wrap:anywhere}.shop-direction-table thead th{background:#edf3f7;font-weight:650}.shop-direction-table th:first-child{width:36%}.shop-direction-table tbody th{font-weight:600;background:#f7f9fb}
@media(max-width:600px){.shop-direction-table th,.shop-direction-table td{padding:10px 8px}.shop-direction-table th:first-child{width:35%}}
.clamp-warning{border:2px solid #c58c25;border-radius:10px;padding:18px 22px;background:#fff4da;color:#513908;margin-bottom:24px;font-size:1rem;line-height:1.8}.clamp-warning strong{font-size:1.0625rem}.clamp-warning p{margin:8px 0 0}.clamp-grid{align-items:start}.clamp-results{min-width:0;display:grid;gap:20px}.clamp-result-warning{border:1px solid #b68b36;border-radius:8px;background:#413319;color:#ffe4a0;padding:14px 16px;line-height:1.8;font-size:1rem;margin:18px 0}.clamp-comparisons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:24px}.clamp-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9375rem;line-height:1.7;margin-top:16px}.clamp-table caption{text-align:left;color:var(--muted);font-size:.875rem;padding-bottom:12px}.clamp-table th,.clamp-table td{padding:12px 6px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.clamp-table thead th{font-size:.875rem}.clamp-table tbody th{font-weight:600}.clamp-plot{margin:0;min-width:0}.clamp-plot svg{display:block;width:100%;max-width:340px;height:auto;margin:12px auto}.clamp-plot-nominal{fill:none;stroke:#8c9da9;stroke-width:1.5;stroke-dasharray:5 5}.clamp-plot-shape{fill:none;stroke:#d79619;stroke-width:3}.clamp-plot-jaws{fill:none;stroke:#4f7084;stroke-width:8;stroke-linecap:round}.clamp-plot figcaption{font-size:.875rem;line-height:1.8;color:var(--muted)}#panel-clamping .field-help,#panel-clamping .field-error,#panel-clamping .result-note{font-size:.875rem;line-height:1.8}#clamp-material-note{margin:0}#clamp-pressure-fields{gap:24px}#panel-clamping .result-number{font-size:clamp(2rem,5vw,3.75rem)}.clamp-method{margin-top:24px}.clamp-method p{font-size:1rem;line-height:1.8}.clamp-method .shop-tip-sources{margin-top:20px}.clamp-method .shop-tip-sources a{overflow-wrap:anywhere}@media(max-width:1100px){.clamp-comparisons{grid-template-columns:minmax(0,1fr)}}@media(max-width:650px){.clamp-warning{padding:16px}.clamp-comparisons .input-card{padding:20px 16px}.clamp-table{font-size:.875rem}.clamp-table th,.clamp-table td{padding:10px 4px}}

.clamp-properties summary{font-size:1rem;cursor:pointer;line-height:1.8}.clamp-properties .field{margin-top:18px}.clamp-face-plot{margin:0;min-width:0}.clamp-face-plot svg{display:block;width:100%;height:auto;margin:20px 0}.clamp-face-plot text{font-size:20px;fill:var(--muted)}.clamp-face-inner{fill:none;stroke:#d79619;stroke-width:2.5}.clamp-face-outer{fill:none;stroke:#4f7084;stroke-width:2.5;stroke-dasharray:6 4}.clamp-face-plot figcaption{font-size:.875rem;line-height:1.8;color:var(--muted)}
.menu-likes{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 20px;margin:0 0 24px;padding:16px 20px;border:1px solid #c2d1db;border-radius:8px;background:#fff;color:var(--ink)}.likes-summary{min-width:0}.menu-likes h2{font-size:1rem;line-height:1.6;margin:4px 0 0}.likes-menu-name{margin:0;color:#17567b;font-size:.875rem;font-weight:750}.menu-likes #likes-status,.likes-note{font-size:.875rem;line-height:1.7;color:var(--muted);margin:0}.menu-likes #likes-status,.likes-info{grid-column:1/-1}.likes-info summary{font-size:.875rem;line-height:1.7;color:#17567b;cursor:pointer;min-height:32px;padding:4px 0}.likes-info[open] .likes-note{margin-top:6px}.likes-info summary:focus-visible{outline:3px solid #17567b;outline-offset:3px}.likes-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}.likes-actions button{min-height:48px;padding:12px 18px;border:1px solid #b7c5ce;border-radius:8px;background:#edf5fa;color:#17567b;font:inherit;font-weight:700;cursor:pointer}.likes-actions #likes-button[aria-pressed=true]{background:var(--yellow);border-color:#b88c22;color:#172b39}.likes-actions #likes-button:disabled{opacity:.6;cursor:wait}.likes-actions #likes-count{margin-left:8px;font-variant-numeric:tabular-nums}.likes-actions button:focus-visible{outline:3px solid #17567b;outline-offset:3px}.likes-actions #likes-retry{font-size:.875rem;font-weight:500}
@media(max-width:600px){.menu-likes{padding:14px;gap:8px 12px;margin-bottom:20px}.menu-likes .likes-menu-name{display:none}.likes-actions button{padding:10px 12px}.likes-actions #likes-button{white-space:nowrap}}
@media(max-width:360px){.menu-likes{grid-template-columns:minmax(0,1fr)}.likes-actions{flex-direction:row;flex-wrap:wrap}}

/* Compact forms on phones; minimum heights still allow larger text and touch. */
@media(max-width:600px){
  .content{padding-top:18px}
  .section-heading{margin-bottom:16px}
  .input-card,.result-card,.nc-output .result-card,.macro-card{padding:16px}
  .card-heading,.thread-ref-filters .card-heading{margin-bottom:14px}
  .fields,.nc-fields,.shop-form-grid,#clamp-pressure-fields{gap:12px}
  .triangle-entry-grid,.macro-fields{row-gap:12px}
  .field-label{margin-bottom:6px}
  .input-wrap,.thread-ref-filter-grid .input-wrap{min-height:48px}
  .input-wrap>input{min-height:44px;padding:8px 0 8px 12px;font-size:1.25rem;line-height:1.4}
  .input-unit{padding-right:10px}
  select,.nc-fields .compact-select{min-height:48px;padding:9px 10px;font-size:1rem;line-height:1.4}
  .field-help,.field-error{font-size:.875rem;line-height:1.65}
  .field-help,.field-error:not(:empty){margin-top:4px}
  .input-note{margin-top:14px;padding-top:12px}
  .nc-settings{margin-top:16px}
  .nc-settings>summary{min-height:48px;padding:10px 12px}
  .nc-settings[open]>.nc-fields,.settings-content{padding:12px}
  .path-fields{margin-top:12px}
  .motion-stage{padding:12px;margin:12px 0}
  .nc-grid,.macro-layout{gap:16px}
  .shop-label{gap:6px}
  .shop-input,.macro-card input,.macro-card select,.lathe-guide-filters input,.lathe-guide-filters select{min-height:48px;padding:9px 10px;font-size:1rem;line-height:1.5}
  .macro-card .macro-number input{min-height:46px;padding:8px 0 8px 10px;font-size:1.2rem;line-height:1.4}
  .macro-help{margin-top:4px}
  .macro-card h2{margin-bottom:12px}
  .nc-output textarea{height:240px;min-height:200px;padding:12px}
  .macro-code{height:280px;min-height:200px}
  .macro-call{height:160px;min-height:140px}
  .macro-editor{height:320px;min-height:220px}
}

.practical-result-value{font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.5;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:16px 0;color:var(--yellow)}.practical-facts{margin:0}.practical-facts>div{border-bottom:1px solid #405666;padding:12px 0}.practical-facts dt{font-size:.875rem;line-height:1.65;color:#c3d7e4}.practical-facts dd{margin:4px 0 0;font-size:1rem;line-height:1.7;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.practical-status{font-size:.875rem;line-height:1.7;color:#d0dee7;margin:14px 0 0}.practical-result.invalid .practical-status{color:#ffd3cf}.practical-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.practical-actions button{flex:1;min-height:48px;padding:10px 12px;border:1px solid #8da7b7;border-radius:7px;background:transparent;color:#fff;font-size:.9375rem;font-weight:650}.practical-actions button:first-child{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}.practical-actions button:disabled{opacity:.45;cursor:default}.practical-reference>div{padding:4px 20px 20px;line-height:1.8;font-size:1rem;overflow-wrap:anywhere}.practical-reference a{color:#17567b;font-size:.875rem}.practical-link,.practical-examples button{min-height:44px;border:1px solid #8da7b7;border-radius:7px;background:#edf5fa;color:#17567b;padding:10px 12px;font-size:.875rem;font-weight:650}.practical-link{align-self:start}.practical-examples{display:flex;flex-wrap:wrap;gap:8px}.practical-insert-figure{margin:0}.practical-insert-figure svg{width:100%;height:180px;display:block}.practical-insert-figure figcaption{font-size:.875rem;line-height:1.7;color:var(--muted)}#planning-start{border:1.5px solid #b7c5ce;border-radius:7px;background:#fff;min-height:48px;padding:10px 12px;font-size:1rem;line-height:1.5;color:var(--ink)}.practical-grid input[readonly]{background:#eef2f5;color:#425b6c}

@media(max-width:600px){.practical-facts>div{padding:10px 0}.practical-reference>div{padding:4px 14px 16px}.practical-actions{gap:8px}.practical-insert-figure svg{height:160px}}


/* Related tools share one category; only the current category is displayed. */
.calculator-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:14px}.calculator-category{min-width:0;min-height:48px;padding:10px 6px;border:1px solid #b7c5ce;border-radius:7px;background:#fff;color:#425b6c;font-size:.875rem;font-weight:700;line-height:1.5;overflow-wrap:anywhere}.calculator-category:hover{background:#e6edf2}.calculator-category.active{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:inset 0 -3px 0 var(--yellow)}#calculator-nav .calculator-tool-tabs{gap:6px}#calculator-nav .calculator-tool-tabs .tab{min-height:60px;padding:12px 10px;gap:10px;font-size:.9375rem}#calculator-nav .calculator-tool-tabs .tab small{display:block;font-size:.875rem;line-height:1.6;margin:3px 0 0}#calculator-nav .nav-note{margin:16px 10px 0;font-size:.875rem}
@media(max-width:850px){#calculator-nav .nav-caption{margin:0 0 10px}.calculator-categories{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}#calculator-nav .calculator-tool-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}#calculator-nav .calculator-tool-tabs .tab{justify-content:flex-start}}
@media(max-width:600px){.calculator-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}#calculator-nav .calculator-tool-tabs .tab{min-height:48px;padding:10px;font-size:.875rem}#calculator-nav .calculator-tool-tabs .tab-symbol{width:28px;height:30px;font-size:1.1rem}#calculator-nav .nav-note{margin:10px 0 0}.calculator-category{font-size:.875rem}}
@media(max-width:380px){.calculator-categories{grid-template-columns:repeat(2,minmax(0,1fr))}#calculator-nav .calculator-tool-tabs{grid-template-columns:minmax(0,1fr)}}

.helper-categories{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-bottom:14px}#gcode-nav .helper-menu{gap:6px}#gcode-nav .helper-menu .tab{min-height:60px;padding:12px 10px;font-size:.9375rem}#gcode-nav .helper-menu .tab small{display:block;font-size:.875rem;line-height:1.6;margin:3px 0 0}#face-advanced{margin-top:16px}#face-advanced>summary{min-height:48px;cursor:pointer;font-size:.9375rem;font-weight:650;padding:12px 0}#face-advanced>.nc-fields{padding-top:12px}#face-diagram svg text{font-family:inherit;font-size:14px}#face-diagram>p{font-size:.875rem;line-height:1.7;margin:8px 0}
@media(max-width:850px){.helper-categories{grid-template-columns:repeat(4,minmax(0,1fr))}#gcode-nav .nav-caption{margin:0 0 10px}}
@media(max-width:600px){.helper-categories{margin-bottom:10px}#gcode-nav .helper-menu .tab{min-height:48px;padding:10px;font-size:.875rem}#gcode-nav .nav-note{margin:10px 0 0}}
.toolpath-panel .toolpath-layout{grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)}.toolpath-linkbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #c0d4df;border-radius:8px;background:#eaf4f8;margin-bottom:18px}.toolpath-linkbar p{margin:0;font-size:.875rem;line-height:1.7;color:#244d66}.toolpath-linkbar button,.helper-sim-open{min-height:44px;border:1px solid #6c91a6;border-radius:7px;padding:10px 14px;background:#e8f4fa;color:#17567b;font-size:.9375rem;font-weight:700;line-height:1.6;cursor:pointer}.helper-sim-open{width:100%;margin:14px 0}.helper-sim-shortcut{margin:0 0 18px}.toolpath-time-card{padding:16px 18px;border:1px solid #6d8f9e;border-radius:8px;background:#1b3d4e}.toolpath-time-card>span{color:#c6e1ec;font-size:.875rem;line-height:1.7}.toolpath-time-card>strong{display:block;color:#ffcf63;font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.toolpath-time-card p{color:#e1edf3;font-size:.875rem;line-height:1.75;margin:4px 0}.toolpath-time-excluded{padding:12px 14px;border-left:3px solid #f6c54b;background:#2e4551;color:#e6edf2;font-size:.875rem;line-height:1.8;margin:14px 0 22px}.toolpath-time-excluded strong{display:block;color:#ffe098;margin-bottom:4px}.toolpath-panel .toolpath-result-head{display:block}.toolpath-panel .toolpath-legend{margin-top:10px}.toolpath-active-code{font: .875rem/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:#0a1d29;border:1px solid #526f80;padding:10px 12px;border-radius:6px;color:#edf5fa;margin:12px 0}.toolpath-progress-label{display:block;color:#d7e8f1;font-size:.875rem;line-height:1.7}.toolpath-progress-label input[type=range]{display:block;min-height:34px;padding:0;width:100%;accent-color:#f6c54b}.toolpath-playback-note{font-size:.8125rem;color:#bfd1dc;line-height:1.7;margin:4px 0 12px}.toolpath-assumptions{margin-top:14px;border-top:1px solid #587180;padding-top:8px;color:#dbe8f1}.toolpath-assumptions summary{min-height:44px;padding:10px 0;font-weight:650;font-size:.9375rem;cursor:pointer}.toolpath-assumptions p,.toolpath-assumptions ul{font-size:.875rem;line-height:1.85;overflow-wrap:anywhere}.toolpath-assumptions ul{padding-left:22px}.toolpath-assumptions li{margin-bottom:7px}.toolpath-assumptions a{color:#a3ddff}.toolpath-input .workshop-fields{grid-template-columns:minmax(0,1fr)}.toolpath-input #toolpath-example{font-size:1rem;min-height:48px}.toolpath-input #toolpath-source{font-size:.9375rem;line-height:1.65}
@media(max-width:1100px){.toolpath-panel .toolpath-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.helper-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.toolpath-linkbar{flex-direction:column;align-items:stretch}.toolpath-time-card{padding:12px 14px}.toolpath-input #toolpath-source{min-height:220px;height:250px}.toolpath-assumptions ul{padding-left:18px}.toolpath-time-excluded{padding:10px 12px}}
.sim-stock-settings{margin-bottom:20px;min-width:0}.sim-stock-settings>summary{min-height:44px;cursor:pointer;font-size:1.1rem;font-weight:750;color:#183b50;line-height:1.7}.sim-stock-settings>summary span{display:inline-block;font-size:.875rem;font-weight:400;color:#4b6575;margin-left:12px}.sim-stock-settings>.field-confirm{margin-top:14px}.sim-stock-inputs{margin-top:16px}.sim-stock-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0}.sim-stock-fields .shop-label{min-width:0;margin:0;font-size:.875rem}.sim-stock-fields input,.sim-stock-fields select{width:100%;min-width:0;min-height:46px;font-size:1rem;box-sizing:border-box}.sim-stock-tool-settings{border-top:1px solid #cbd7df;padding:12px 0}.sim-stock-tool-settings>summary,.sim-stock-tool-row>summary{min-height:44px;cursor:pointer;line-height:1.7;font-weight:700;color:#23475c;padding:9px 0}.sim-stock-tool-row{border:1px solid #c0d1dc;background:#f4f8fb;padding:6px 14px;border-radius:7px;margin-top:10px}.sim-stock-tool-reset{min-height:44px;margin:0 0 12px;padding:8px 12px;border:1px solid #8da7b7;border-radius:6px;background:#fff;color:#17567b;font-size:.875rem}.sim-stock-readout{margin:12px 0 16px;padding:12px 14px;border:1px solid #7396a8;border-radius:7px;background:#234656;color:#e5f1f6;line-height:1.75;overflow-wrap:anywhere}.sim-stock-readout strong{display:block;color:#ffdb7e;font-size:1.05rem;font-variant-numeric:tabular-nums}.sim-stock-readout span{display:block;font-size:.875rem}.sim-stock-readout p{margin:6px 0 0;font-size:.8125rem;color:#d4e6ef}.sim-stock-settings [hidden]{display:none!important}.sim-stock-settings #sim-stock-profile{width:100%;box-sizing:border-box;line-height:1.7;min-height:150px}.sim-stock-settings .shop-status{overflow-wrap:anywhere;line-height:1.8}
@media(max-width:900px){.sim-stock-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.sim-stock-settings{padding:16px}.sim-stock-settings>summary span{display:block;margin-left:0}.sim-stock-fields{grid-template-columns:minmax(0,1fr);gap:12px}.sim-stock-settings .shop-actions{display:grid;grid-template-columns:minmax(0,1fr)}.sim-stock-settings .shop-actions button{width:100%;min-height:46px;font-size:.9375rem}.sim-stock-tool-row{padding:6px 10px}.sim-stock-readout{padding:10px 12px}}
.toolpath-canvas-wrap canvas{cursor:grab;user-select:none;-webkit-user-select:none;touch-action:none}.toolpath-canvas-wrap canvas.is-panning{cursor:grabbing}.toolpath-canvas-wrap canvas:focus-visible{outline:3px solid #f6c54b;outline-offset:-3px}.toolpath-gesture-note{color:#d4e6ef;font-size:.875rem;line-height:1.8;margin:0 0 10px;overflow-wrap:anywhere}.toolpath-view-scale{color:#c3d7e4;font-size:.8125rem;line-height:1.7;margin:0 0 10px}.toolpath-view-scale span{font-variant-numeric:tabular-nums;color:#ffda7e;font-weight:700}
.tool-sections>button{flex:1;min-width:0}.mct-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:20px;align-items:start}.mct-layout>*{min-width:0}.mct-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0}.mct-fields label{min-width:0;margin:0;font-size:.875rem}.mct-fields input,.mct-fields select{width:100%;min-width:0;box-sizing:border-box;min-height:46px;font-size:1rem}.mct-settings{border-top:1px solid #c8d5df;margin-top:16px;padding-top:6px}.mct-settings>summary{padding:10px 0;min-height:44px;line-height:1.7;cursor:pointer;font-weight:750;color:#21485e}.mct-input-note{font-size:.8125rem;line-height:1.8;color:#4b6374;overflow-wrap:anywhere}.mct-generate{display:block;width:100%;min-height:48px;background:#195b7b;color:#fff;border:1px solid #195b7b;border-radius:7px;font-size:1rem;font-weight:750;margin-top:18px;padding:12px}.mct-condition-applied{padding:14px 16px;border-left:4px solid #1d786a;background:#eaf6ef;line-height:1.8;font-size:.875rem}.mct-result{color:#e4f1f7}.mct-result>h2{font-size:1.1rem;line-height:1.7;color:#fff}.mct-result>p{line-height:1.8;font-size:.875rem;color:#d9e8f0;overflow-wrap:anywhere}.mct-result h3{font-size:.9375rem;line-height:1.7;color:#e5f2f8;margin:18px 0 8px}.mct-previews{display:grid;gap:12px}.mct-previews svg{display:block;width:100%;height:auto;background:#0c2331;border:1px solid #537589;border-radius:7px}.mct-xy-holes circle{fill:#66c6b8;stroke:#d0f4eb;stroke-width:1.5}.mct-xy-holes text,.mct-svg-axis{fill:#cee1eb;font:28px system-ui,sans-serif}.mct-z-level{stroke:#6d8b9e;stroke-width:1;stroke-dasharray:5 6}.mct-z-surface{stroke:#a4c3d2;stroke-width:2}.mct-preview-note{font-size:.8125rem;line-height:1.8;color:#cee0eb;margin:7px 0}.mct-current{background:#294957;border-radius:6px;padding:12px 14px;line-height:1.9;font-size:.875rem;color:#ffe29c;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.mct-output{margin-top:16px;border-top:1px solid #648093}.mct-output>summary{padding:12px 0;min-height:44px;cursor:pointer;line-height:1.7;font-weight:700;color:#e4f0f7}.mct-output textarea,#mct-coordinates{width:100%;box-sizing:border-box;min-height:180px;line-height:1.7;font-size:.875rem}.mct-output textarea{background:#f4f8fb;color:#17364a;border:1px solid #92acba}.mct-result .shop-actions button{min-height:44px;padding:10px 14px;border:1px solid #9bb4c2;border-radius:6px;background:#e6f1f7;color:#193f56;font-size:.875rem}.mct-warnings{font-size:.875rem;line-height:1.9;color:#ffe1a8;padding:12px 12px 12px 28px;border:1px solid #8a7748;border-radius:7px;background:#3d3b2b;margin:18px 0 0}.mct-warnings li+li{margin-top:8px}#mct-nav-cycle[aria-pressed=true]{background:var(--ink);color:#fff}.mct-panel [hidden]{display:none!important}
@media(max-width:1200px){.mct-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.tool-sections>button{padding:10px 8px;font-size:.875rem}.mct-result,.mct-layout>.input-card{padding:16px}.mct-layout{gap:16px}.mct-fields{gap:12px}.mct-output .shop-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mct-output .shop-actions button{min-width:0}.mct-output textarea{min-height:220px}.mct-preview-note,.mct-input-note{font-size:.8125rem}}
@media(max-width:420px){.mct-fields{grid-template-columns:minmax(0,1fr)}}
.insert-special-examples{border-top:1px solid #b7c5ce;padding-top:6px}.insert-special-examples summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:.9375rem;font-weight:650;color:var(--ink)}.insert-special-examples p{font-size:.875rem;font-weight:650;line-height:1.7;margin:12px 0 8px}.insert-code-parts{font-family:monospace;font-size:1rem;line-height:1.8;overflow-wrap:anywhere;margin:0 0 12px;color:#d0dee7}#insert-source a{color:#f8d16b;font-size:.875rem;line-height:1.7;text-underline-offset:3px}

/* v50: storage controls, readable policy and compact workshop records. */
.legal-links{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;margin:.5rem 0}.legal-links a,.legal-back{font-size:.875rem;text-decoration:underline;text-underline-offset:.2rem}.legal-short-note{font-size:.875rem;line-height:1.65}.legal-page{max-width:960px;margin:auto;padding:1.5rem;line-height:1.8}.legal-page h1{font-size:1.75rem}.legal-page h2{font-size:1.25rem;margin-top:1.5rem}.legal-page section{scroll-margin-top:1rem}.legal-date{font-size:.875rem}.legal-table-scroll{overflow-x:auto}.legal-page table{border-collapse:collapse;width:100%;font-size:.875rem}.legal-page caption{text-align:left;font-weight:700;padding:.5rem 0}.legal-page th,.legal-page td{border:1px solid #8093a366;padding:.75rem;text-align:left;vertical-align:top}.privacy-controls{padding:1rem;border:1px solid #8093a366;border-radius:.75rem;margin:1rem 0;font-size:.875rem;line-height:1.7}.privacy-controls h2{font-size:1rem;margin:.25rem 0}.privacy-controls button{min-height:44px;font-size:.875rem}.privacy-controls button[aria-pressed="true"]{outline:2px solid #c89413;outline-offset:1px}.workshop-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.workshop-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.workshop-field{display:flex;flex-direction:column;gap:.4rem;font-size:.875rem;line-height:1.5}.workshop-field input,.workshop-field select,.workshop-field textarea,.machine-apply select,.workshop-list input[type="search"]{box-sizing:border-box;width:100%;font-size:1rem;min-height:44px;border:1px solid #8093a3;border-radius:.4rem;padding:.6rem;color:inherit;background:transparent}.workshop-field textarea{resize:vertical}.workshop-options{margin:.8rem 0;border-top:1px solid #8093a366;padding-top:.75rem}.workshop-options summary{cursor:pointer;font-size:.875rem;min-height:32px}.workshop-options[open] .workshop-fields{margin-top:.75rem}.workshop-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:1rem 0}.workshop-results>div{padding:.8rem;border:1px solid #8093a366;border-radius:.5rem;display:flex;flex-direction:column;gap:.3rem;font-size:.875rem}.workshop-results strong{font-size:1.6rem}.machine-apply{margin-top:1rem}.machine-apply p{font-size:.875rem;line-height:1.7}.workshop-list h2{font-size:1.125rem}.workshop-list .shop-actions{margin:.75rem 0}.workshop-grid .input-note,.workshop-grid .shop-status{font-size:.875rem;line-height:1.7}.workshop-list .shop-record-list{margin-top:1rem}.shop-delete-dialog{max-width:min(90vw,480px);font-size:1rem;line-height:1.7}
@media(max-width:800px){.workshop-grid{grid-template-columns:minmax(0,1fr)}.legal-page{padding:1rem}.legal-page th,.legal-page td{padding:.5rem}.legal-links{gap:.65rem}.privacy-controls .shop-actions{display:flex;flex-wrap:wrap}.workshop-grid .input-card{padding:1rem}}
@media(max-width:360px){.workshop-fields,.workshop-results{grid-template-columns:minmax(0,1fr)}}

.macro-reference-index-item{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line,#d7e0e7);border-radius:8px;font-size:14px}.macro-reference-index-item small{color:var(--muted,#5b6c78);white-space:nowrap}

/* Tool selection keeps nominal catalogue limits separate from actual clearance. */
.tool-selection-grid{align-items:start}.tool-selection-grid>*{min-width:0}.tool-selection-text{font-size:1rem;line-height:1.6;padding:14px}.tool-selection-grid .compact-select{font-size:.9375rem;line-height:1.6;min-height:52px;padding:10px;max-width:100%}.tool-selection-examples{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.tool-selection-examples button,.tool-selection-candidate-actions button,.tool-selection-report-actions button{border:1px solid #9cafbb;background:#edf5fa;border-radius:6px;color:#163a52;min-height:44px;padding:10px 12px;font-size:.875rem;font-weight:650}.tool-selection-grid .generate{width:100%;min-height:52px;border:1px solid var(--ink);border-radius:7px;background:var(--ink);color:var(--yellow);font-size:1rem;font-weight:700;padding:12px}.tool-selection-result{border-top:5px solid #8da7b7}.tool-selection-result[data-verdict=danger]{border-top-color:#ffa5a5}.tool-selection-result[data-verdict=warning]{border-top-color:var(--yellow)}.tool-selection-result[data-verdict=pass]{border-top-color:#94dfb9}.tool-selection-result h2{font-size:1.2rem;line-height:1.6}.tool-selection-model{overflow-wrap:anywhere;font-size:1rem;font-weight:700;line-height:1.7;margin:12px 0;color:#f8d16b}.tool-selection-verdict{font-size:.9375rem;line-height:1.85;margin:10px 0 22px}.tool-selection-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.tool-selection-values>div{border:1px solid #587181;border-radius:7px;padding:12px;min-width:0}.tool-selection-values dt{font-size:.8125rem;line-height:1.6;color:#c4d4df}.tool-selection-values dd{font-size:1.5rem;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.7;margin:4px 0 0;overflow-wrap:anywhere}.tool-selection-value-wide{grid-column:1/-1}.tool-selection-note{white-space:pre-line;overflow-wrap:anywhere;font-size:.875rem;line-height:1.85;margin:16px 0;color:#d4e0e8}.tool-selection-source{font-size:.8125rem;line-height:1.8;overflow-wrap:anywhere;color:#d4e0e8}.tool-selection-source a{color:#f8d16b;text-underline-offset:3px}.tool-selection-report-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:20px;font-size:.875rem;line-height:1.7}.tool-selection-report summary{cursor:pointer;font-size:.875rem;line-height:1.7;min-height:44px;padding:12px 0}.tool-selection-report textarea{background:#0d2434;color:#f2f6f8}.tool-selection-candidates{margin-top:22px}.tool-selection-candidates .card-heading{margin-bottom:12px}.tool-selection-candidate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.tool-selection-candidate{min-width:0;background:#f4f7f9;border:1px solid #b7c5ce;border-radius:8px;padding:18px;overflow-wrap:anywhere}.tool-selection-candidate h3{font-size:1rem;line-height:1.7;margin:0 0 8px}.tool-selection-candidate p{font-size:.875rem;line-height:1.8;margin:7px 0}.tool-selection-candidate .tool-selection-maker{color:#536b7a;font-size:.8125rem;margin:0 0 6px}.tool-selection-candidate .tool-selection-candidate-limit{font-weight:700;color:#17567b}.tool-selection-candidate .tool-selection-candidate-note{font-size:.8125rem;color:#536b7a}.tool-selection-candidate-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.tool-selection-candidate-actions a{color:#17567b;text-underline-offset:3px;font-size:.875rem;line-height:1.7}.tool-selection-other{margin-top:20px;border-top:1px solid #c4d0d8;padding-top:12px}.tool-selection-other>summary{min-height:44px;cursor:pointer;font-size:.9375rem;font-weight:650;line-height:1.7;padding:10px 0}.tool-selection-guide p{font-size:.9375rem;line-height:1.85}.tool-selection-reference-links{display:grid;gap:10px;margin:16px 0}.tool-selection-reference-links a{font-size:.8755rem;line-height:1.75;color:#17567b;text-underline-offset:3px}
@media(max-width:850px){.tool-selection-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.tool-selection-candidate-grid{grid-template-columns:minmax(0,1fr)}.tool-selection-candidate{padding:16px}.tool-selection-values dd{font-size:1.3rem}.tool-selection-grid .input-card,.tool-selection-candidates{padding:20px}.tool-selection-text{font-size:1rem}}
@media(max-width:380px){.tool-selection-values{grid-template-columns:minmax(0,1fr)}.tool-selection-values dd{font-size:1.25rem}}

/* Field tools: a compact two-condition bench, legible values and bounded code review. */
.field-conditions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.field-conditions fieldset{min-width:0;border:1px solid #8396a8;border-radius:.5rem;padding:1rem}.field-conditions legend{padding:0 .4rem;font-weight:700;font-size:1rem}.field-conditions .workshop-field+.workshop-field{margin-top:.8rem}.field-machine-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:end;margin-bottom:1rem}.field-machine-picker p{grid-column:1/-1;margin:0}.field-machine-picker select,.field-helper-load select,.field-machine-picker button,.field-helper-load button{min-height:44px;font-size:1rem}.field-machine-picker select,.field-helper-load select{display:block;width:100%;border:1px solid #8396a8;border-radius:.4rem;padding:.55rem;background:#fff}.field-machine-picker button,.field-helper-load button,.field-result button{border:1px solid #8396a8;border-radius:.4rem;padding:.6rem .8rem;background:#e9f2f8;color:#163a52;cursor:pointer;font-size:.875rem;min-height:44px}.field-result{margin-top:1rem}.field-summary{font-weight:700;line-height:1.8;font-size:1rem}.field-table-scroll{overflow-x:auto}.field-table{border-collapse:collapse;width:100%;font-size:.875rem;font-variant-numeric:tabular-nums}.field-table caption{text-align:left;line-height:1.6;margin-bottom:.6rem}.field-table th,.field-table td{border-bottom:1px solid #8396a866;text-align:left;padding:.7rem .5rem;line-height:1.6}.field-table td{white-space:nowrap}.field-table thead{background:#ecf4f9}.field-scope{font-size:.875rem;line-height:1.8;margin-top:1rem;border-top:1px solid #8396a866;padding:.8rem 0}.field-scope summary{cursor:pointer;min-height:32px;font-weight:650}.field-safety-note{border-left:4px solid #ba8110;background:#fff6dd;padding:1rem;line-height:1.8;font-size:.9375rem}.field-safety-note strong{display:block}.field-code{display:block;box-sizing:border-box;width:100%;resize:vertical;border:1px solid #8396a8;border-radius:.5rem;padding:.8rem;font-size:.9375rem;line-height:1.7;background:#112c3d;color:#f2f6f8;font-family:ui-monospace,Consolas,monospace}.field-helper-load{display:flex;gap:.7rem;align-items:end;margin:.75rem 0}.field-helper-load label{flex:1;min-width:0}.field-confirm{display:flex;gap:.7rem;align-items:flex-start;margin:1rem 0;font-size:.9375rem;line-height:1.8}.field-confirm input{width:20px;height:20px;flex-shrink:0;margin-top:.25rem}.field-return-dialog{max-width:min(92vw,620px)}.nc-review-list{list-style:none;padding:0;margin:1rem 0}.nc-review-list li{padding:.85rem;margin:.6rem 0;background:#f2f6f9;border-left:3px solid #59758b;font-size:.9375rem;line-height:1.75}.nc-review-list li.nc-review-warning{background:#fff6dd;border-left-color:#ba8110}.nc-review-list p{margin:.35rem 0}.nc-review-list button{font-size:.875rem}.life-compare{margin-top:1rem}
@media(max-width:600px){.field-conditions{grid-template-columns:minmax(0,1fr)}.field-machine-picker{grid-template-columns:minmax(0,1fr)}.field-machine-picker p{grid-column:auto}.field-helper-load{flex-wrap:wrap}.field-table th,.field-table td{padding:.6rem .35rem}.field-table{font-size:.875rem}.field-summary{font-size:.9375rem}}

.tool-purpose-switch{margin-bottom:24px;flex-wrap:wrap}.tool-purpose-switch button{min-height:48px;flex:1 1 180px;font-size:.9375rem;line-height:1.6}.tool-taxonomy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tool-taxonomy-grid>*{min-width:0}.tool-product-info{border:1px solid #b7c5ce;background:#edf5fa;border-radius:7px;padding:14px;overflow-wrap:anywhere}.tool-product-info p{font-size:.875rem;line-height:1.8;margin:0 0 10px}.tool-product-info a{color:#17567b;font-size:.875rem;line-height:1.8;text-underline-offset:3px}.tool-relief-dimensions{padding-left:22px;color:#d4e0e8;font-size:.9375rem;line-height:1.9}.tool-relief-dimensions li{margin-bottom:10px}.tool-guide-footnote{margin:22px 0;line-height:1.85}.tool-selection-grid .compact-select:disabled{opacity:.75}.tool-selection-grid .fields>[hidden]{display:none}
@media(max-width:600px){.tool-taxonomy-grid{grid-template-columns:minmax(0,1fr)}.tool-purpose-switch button{flex-basis:100%}}

.calculation-notice{box-sizing:border-box;border:2px solid #b68620;border-left-width:6px;border-radius:8px;background:#fff2cc;color:#4d3307;padding:14px 18px;margin:0 0 22px;line-height:1.8;font-size:.9375rem}.calculation-notice strong{display:block;font-size:1rem;font-weight:750}.calculation-notice p{margin:5px 0 0;font-size:.9375rem;line-height:1.8}@media(max-width:600px){.calculation-notice{padding:12px 14px;margin-bottom:18px;font-size:.9375rem}}

/* NC review has explicit light-card colours, including empty and error states. */
#nc-check-results{background:#fff;color:#102a3a;border:1px solid #bdcbd4;border-top:5px solid #d3a533;min-width:0;scroll-margin-top:20px}#nc-check-results h2{font-size:1.25rem;line-height:1.6;color:#102a3a}.nc-check-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 22px}.nc-check-counts>div{border:1px solid #bdcbd4;border-radius:8px;min-width:0;padding:12px 10px;line-height:1.65}.nc-check-counts span{display:block;font-size:.9375rem;font-weight:650;overflow-wrap:anywhere}.nc-check-counts strong{display:block;font-size:1.65rem;line-height:1.4;margin-top:5px}.nc-count-error{background:#fff0ed;color:#71231d}.nc-count-warning{background:#fff2cc;color:#4d3307}.nc-count-review{background:#eef4f8;color:#163a52}#nc-check-results .nc-review-list li{box-sizing:border-box;border:1px solid #c1ced6;border-left:5px solid #59758b;border-radius:7px;background:#eef4f8;color:#102a3a;font-size:1rem;line-height:1.85;padding:16px;margin:14px 0;min-width:0;overflow-wrap:anywhere}#nc-check-results .nc-review-list strong{display:block;color:#102a3a;font-size:1rem;line-height:1.7}#nc-check-results .nc-review-list p{color:#102a3a;font-size:1rem;line-height:1.85;margin:9px 0 12px}#nc-check-results .nc-review-list .nc-review-error{background:#fff0ed;border-left-color:#b13f35}#nc-check-results .nc-review-list .nc-review-warning{background:#fff2cc;border-left-color:#b68620}#nc-check-results .nc-review-list .nc-review-empty{background:#eef4f8;color:#102a3a}.nc-review-code{display:block;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;color:#0d273a;border:1px solid #b8c8d2;border-radius:5px;padding:10px 12px;margin:10px 0 12px;font-family:ui-monospace,Consolas,monospace;font-size:.9375rem;line-height:1.8;min-width:0}#nc-check-results button{font-size:.9375rem;line-height:1.7;min-height:48px;padding:10px 14px;white-space:normal}#nc-check-copy{width:100%}.nc-check-result-note{font-size:.9375rem;line-height:1.9;color:#415667;margin:24px 0 0;padding-top:18px;border-top:1px solid #cbd5dc}.nc-check-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:18px 0}.nc-check-options .field-confirm{margin:0;min-width:0;font-size:.9375rem;line-height:1.8}.nc-check-options input{accent-color:#163a52}#panel-nc-check .workshop-options summary{font-size:.9375rem;line-height:1.8;min-height:44px;cursor:pointer}
@media(max-width:600px){#nc-check-results{padding:20px 16px}.nc-check-counts{gap:7px}.nc-check-counts>div{padding:10px 8px}.nc-check-counts span{font-size:.875rem}.nc-check-counts strong{font-size:1.5rem}#nc-check-results .nc-review-list li{padding:14px 12px}.nc-check-options{grid-template-columns:minmax(0,1fr);gap:16px}#nc-check-source{font-size:1rem}#nc-check-results .nc-review-list button{width:100%;font-size:1rem}}

.dc-grid{align-items:start}.dc-grid>*{min-width:0}.dc-grid .compact-select{width:100%;max-width:100%;min-width:0;min-height:48px;font-size:.9375rem;line-height:1.6;padding:10px}.dc-grid label[for=dc-type],.dc-grid label[for=dc-material]{grid-column:1/-1}.dc-scope{font-size:.875rem;line-height:1.8;font-weight:650;overflow-wrap:anywhere;color:#304656}.dc-result .dc-scope{color:#f8d16b}.dc-values{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:22px 0}.dc-values>div{padding-bottom:10px;border-bottom:1px solid #50616f}.dc-values dt{font-size:.875rem;color:#d4e0e8;line-height:1.6}.dc-values dd{font-size:1.0625rem;font-weight:700;margin:4px 0 0;line-height:1.7;overflow-wrap:anywhere}.dc-result .result-note{line-height:1.85;overflow-wrap:anywhere}.dc-notes{margin-top:18px;border-top:1px solid #50616f;padding-top:12px}.dc-notes p{font-size:.875rem;line-height:1.85;color:#d4e0e8;margin:0 0 12px}.dc-result .dc-warning{background:#fff2cc;color:#4d3307;border-left:4px solid #b68620;padding:12px;font-size:.9375rem;line-height:1.8}.dc-sources{display:flex;flex-direction:column;gap:12px;margin-top:20px}.dc-sources a{color:#b6dafa;font-size:.875rem;line-height:1.8;overflow-wrap:anywhere;text-underline-offset:4px}.dc-result .nc-calculate{margin-top:18px}.dc-result textarea{width:100%;box-sizing:border-box;line-height:1.7}.dc-grid .input-note{line-height:1.85}
.dc-mode-fields{border-bottom:1px solid #bdcbd4;padding-bottom:22px;margin-bottom:24px}
#dc-result{background:#fff;color:#102a3a;border:1px solid #bdcbd4;border-top:5px solid #d3a533;scroll-margin-top:20px}
#dc-result .result-top h2,#dc-result .result-unit,#dc-result .result-code,#dc-result .dc-values dd{color:#102a3a}
#dc-result .result-number{color:#1d5b7b}
#dc-result .result-detail,#dc-result .result-note,#dc-result .dc-scope,#dc-result .dc-values dt,#dc-result .dc-notes p,#dc-result .formula-label,#dc-result .substitution,#dc-result .nc-copy-status{color:#304656;font-size:.9375rem;line-height:1.85;overflow-wrap:anywhere}
#dc-result .dc-values>div,#dc-result .dc-notes,#dc-result .formula{border-color:#c5d1d9}
#dc-result .dc-checks{display:grid;gap:10px;list-style:none;padding:0;margin:0 0 14px;min-width:0}
#dc-result .dc-checks li{padding:12px 14px;border:1px solid #bdcbd4;border-radius:7px;font-size:.9375rem;line-height:1.8;overflow-wrap:anywhere}
#dc-result .dc-check-within{background:#eef4f8;color:#163a52}
#dc-result .dc-check-review,#dc-result .dc-warning{background:#fff2cc;color:#4d3307}
#dc-result .dc-sources a{color:#1d5b7b;font-size:.9375rem;line-height:1.85}
#dc-result .nc-actions button{background:#eef4f8;color:#102a3a;border-color:#a4b8c6}
#dc-result textarea{color:#102a3a;background:#fff;border:1px solid #a4b8c6;border-radius:6px;padding:12px;font-size:1rem}
#dc-result.invalid .result-number{color:#415667}
#dc-result.invalid .result-detail{color:#71231d;background:#fff0ed;padding:12px;border-radius:7px}
@media(max-width:600px){#dc-result{padding:20px 16px}.dc-mode-fields{gap:16px;padding-bottom:18px;margin-bottom:20px}#panel-drill-conditions .input-wrap{min-height:48px}#panel-drill-conditions input{font-size:1.375rem}#dc-result button{min-height:48px;white-space:normal}#dc-result .result-top h2{font-size:1.0625rem}}
/* Blog manuals remain available while calculator inputs stay in this tab. */
.blog-manual-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;min-width:0}
.blog-manual-links a{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid #aabdc9;border-radius:7px;background:#edf5fa;color:#17567b;font-size:.9375rem;font-weight:650;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
.blog-manual-links a span{font-size:.8125rem;font-weight:400;color:#526979}
.blog-manual-links a:hover{background:#dcecf5;border-color:#17567b}
.blog-manual-links a:focus-visible{outline:3px solid #177baf;outline-offset:3px}
.blog-manual-common{padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:24px}
@media(max-width:600px){.blog-manual-links a{width:100%;padding:10px 12px}.blog-manual-common{padding-bottom:12px;margin-bottom:20px}}

.draft-bar{margin:12px 0 18px;padding:10px 16px;border:1px solid #bed0db;border-radius:8px;background:#edf5f8;color:#244c61;line-height:1.7;font-size:.8125rem}.draft-bar>p{margin:0}.draft-bar details{margin-top:4px}.draft-bar summary{cursor:pointer;min-height:30px}.draft-bar button{min-height:44px;padding:9px 13px;background:#fff;color:#284c60;border:1px solid #8aa6b7;border-radius:6px}.draft-bar details p{margin:8px 0}.milling-guide{padding-left:24px;color:#dcebf3;font-size:.875rem;line-height:1.9}.milling-guide li+li{margin-top:8px}.milling-arguments{font-size:.8125rem;line-height:1.9;color:#d8e9f1;overflow-wrap:anywhere;margin:14px 0}.milling-condition-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.milling-condition-results>div{background:#244757;border:1px solid #66899c;padding:12px;border-radius:7px;min-width:0}.milling-condition-results dt{font-size:.8125rem;color:#d8eaf1}.milling-condition-results dd{margin:5px 0 0;color:#ffe19b;font-size:1.15rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.mct-result a{color:#9edbff;text-underline-offset:3px}#mc-warnings:empty{display:none}#mc-form [hidden],#milling-form [hidden]{display:none!important}#milling-preview{touch-action:pan-y}#milling-simple-code,#milling-cycle-code,#milling-macro-code{tab-size:2}@media(max-width:600px){.draft-bar{padding:10px 12px}.milling-condition-results{grid-template-columns:minmax(0,1fr);gap:10px}.milling-guide{padding-left:20px}.milling-guide li+li{margin-top:10px}}
