.lathe-console[hidden],.lathe-console [hidden]{display:none!important}
.lathe-console{--pad:clamp(12px,2.4vw,38px);--paper:#f4ebd7;--ink:#1c3334;--mint:#9af1cc;--gold:#ffd277;position:fixed;inset:0;z-index:15;pointer-events:none;color:var(--paper);font:500 15px "Instrument Sans",system-ui,sans-serif;font-variant-numeric:tabular-nums;background:linear-gradient(#0f232642,transparent 24%,transparent 72%,#13282b75)}
.lathe-console small,.lathe-console kbd{font:700 10px/1.25 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.11em}.lathe-console button{pointer-events:auto;touch-action:manipulation;cursor:pointer;font:inherit;color:inherit;border:1px solid #dadfc65c;background:#274748;border-radius:3px}.lathe-console button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.lathe-head{position:absolute;top:var(--pad);left:var(--pad);right:var(--pad);display:flex;align-items:center;gap:9px}.lathe-title{margin-right:auto;text-shadow:0 2px 5px #11282c}.lathe-title small{color:#ffe4a6}.lathe-title h2{margin:3px 0 0;font:italic 700 clamp(25px,3.2vw,46px)/1 Georgia,serif;letter-spacing:-.05em}
.lathe-clock{background:#163432ed;padding:7px 13px;border-top:2px solid #d5c494}.lathe-clock b,.lathe-clock small{display:block}.lathe-clock b{font:bold 22px/1.15 ui-monospace,monospace}.lathe-clock small{font-size:8px;color:#d5d7c3}.lathe-head button{width:38px;height:38px;font-size:21px}
.lathe-print{position:absolute;top:calc(var(--pad) + 83px);left:var(--pad);width:clamp(190px,20vw,275px);padding:12px 15px 10px;color:#193d3e;background-color:#ede8d6;background-image:linear-gradient(#73867f14 1px,transparent 1px),linear-gradient(90deg,#73867f14 1px,transparent 1px);background-size:10px 10px;box-shadow:0 3px 12px #12262750;border-top:3px solid #8c6741}.lathe-print h3{margin:1px 0;font:bold clamp(16px,1.8vw,25px)/1.1 Georgia,serif}.lathe-print canvas{display:block;width:100%;height:auto}.lathe-print div{font:600 10px ui-monospace,monospace;border-top:1px solid #75938c;padding-top:5px}
.lathe-deck{position:absolute;bottom:var(--pad);left:var(--pad);right:var(--pad);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#163337f5;border-top:3px solid #bca373;box-shadow:0 2px 18px #1122246b}
.lathe-section>small,.lathe-readout>small{color:#cbd9c6}.lathe-lands,.lathe-controls{display:flex;gap:5px}.lathe-lands{margin-top:4px}.lathe-lands button{padding:4px 8px;text-align:left;min-width:58px}.lathe-lands span,.lathe-lands b{display:block}.lathe-lands span{font:700 10px ui-monospace,monospace}.lathe-lands b{font-size:18px}.lathe-lands [aria-pressed=true]{outline:2px solid var(--gold)}.lathe-lands [data-state=fit]{color:var(--mint)}.lathe-lands [data-state=under]{color:#ffab8e}
.lathe-readout{min-width:180px;max-width:360px;flex:1}.lathe-measure{display:flex;align-items:baseline;gap:12px}.lathe-measure strong{font:700 29px/1.15 ui-monospace,monospace;color:var(--gold)}.lathe-measure b{font-size:12px;color:#e3ebd6}.lathe-band{height:5px;position:relative;background:#60736b;margin:5px 0}.lathe-band i,.lathe-band em{position:absolute;left:38%;width:24%;height:100%;background:#6cc7a2}.lathe-band em{top:-2px;width:3px;height:9px;background:#fff9dd}.lathe-readout>span{font-size:12px}.lathe-console[data-fit=fit] .lathe-measure strong{color:var(--mint)}
.lathe-controls{align-items:stretch}.lathe-controls button{padding:11px 13px;font-size:15px;font-weight:700}.lathe-console kbd{font-size:9px;letter-spacing:0;color:#baccc3}.lathe-controls [data-cut]{background:#ffd277;color:#203330;touch-action:none}.lathe-controls [data-cut] kbd{color:#655326}.lathe-controls .engaged{box-shadow:inset 0 -4px 0 #a16e31}.lathe-controls .ready{background:#69cda7;color:#163b36}
.lathe-supplier,.lathe-notice{position:absolute;right:var(--pad);top:calc(var(--pad) + 65px)}.lathe-notice{font-weight:700;text-shadow:0 1px 5px #081d23;background:#1c3434cd;padding:5px 10px}.lathe-notice:empty{display:none}.lathe-console .lathe-supplier{top:calc(var(--pad) + 101px);padding:8px 10px;background:#4d4467;font-size:13px}
@media(max-height:550px),(max-width:830px){.lathe-console{--pad:8px}.lathe-title h2{font-size:23px}.lathe-title small{font-size:8px}.lathe-clock{padding:4px 8px}.lathe-clock b{font-size:15px}.lathe-head button{width:34px;height:32px}.lathe-print{top:52px;width:158px;padding:5px 8px}.lathe-print h3{font-size:16px}.lathe-print div{font-size:8px}.lathe-print small{font-size:8px}.lathe-deck{gap:10px;padding:6px 9px}.lathe-lands button{min-width:38px;padding:4px}.lathe-lands b{font-size:15px}.lathe-controls button{padding:5px 7px;min-height:43px;font-size:12px}.lathe-console kbd{display:none}.lathe-readout{min-width:130px}.lathe-measure strong{font-size:22px}.lathe-readout>span{font-size:10px}.lathe-controls{gap:3px}.lathe-supplier,.lathe-notice{top:49px;font-size:11px}.lathe-console .lathe-supplier{top:76px;font-size:10px}.lathe-section>small,.lathe-readout>small{font-size:8px}}
.lathe-report{margin-top:10px;font-style:normal;text-align:left}.lathe-report summary{cursor:pointer;font-weight:700}.lathe-report table{border-collapse:collapse;width:100%;margin-top:8px;font:11px/1.4 ui-monospace,monospace}.lathe-report th,.lathe-report td{border-bottom:1px solid #8caaa747;padding:4px 2px}.lathe-report th:not(:first-child),.lathe-report td:not(:first-child){text-align:right}.lathe-report .out-of-size{color:#e98a60;font-weight:bold}
.lathe-report td small{display:block;color:inherit;opacity:.72;font:9px ui-monospace,monospace}
