/* Existing number inputs and calculation logic; mobile keypad only. */
.calculator-page #ceiling-calculator input[type="number"]{-moz-appearance:textfield;appearance:textfield}
.calculator-page #ceiling-calculator input[type="number"]::-webkit-inner-spin-button,
.calculator-page #ceiling-calculator input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.calculator-keypad[hidden]{display:none!important}
.calculator-keypad{position:fixed;inset:auto 0 0;z-index:80;box-sizing:border-box;padding:10px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#202122;border-top:1px solid #bd8c5266;box-shadow:0 -8px 28px #0005;color:var(--warm-white,#f5f1ea);max-height:70svh;overflow-y:auto;overscroll-behavior:contain}
.calculator-keypad-head,.calculator-keypad-value,.calculator-keypad-keys{max-width:520px;margin-inline:auto}
.calculator-keypad-head{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.calculator-keypad-caption{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#d7d3cd}
.calculator-keypad button{appearance:none;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;border:1px solid #ffffff24;border-radius:10px;background:#2e2f30;min-height:44px}
.calculator-keypad-clear{padding:6px 10px;font-size:12px!important}
.calculator-keypad-next{flex:none;padding:6px 12px;font-size:13px!important;background:#bd8c52!important;color:#18191a!important;border-color:transparent!important}
.calculator-keypad-close{width:44px;flex:none;font-size:25px!important;background:transparent!important}
.calculator-keypad-value{display:block;box-sizing:border-box;min-height:32px;font-size:24px;text-align:right;padding:0 5px 6px;overflow-wrap:anywhere;color:#dbc29e}
.calculator-keypad-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.calculator-keypad-keys button{min-height:46px;font-size:23px}
.calculator-keypad button:active{background:#5a4632;border-color:var(--bronze,#bd8c52)}
.calculator-keypad button:disabled{opacity:.35;cursor:default}
.calculator-keypad button:focus-visible{outline:2px solid var(--bronze,#bd8c52);outline-offset:2px}
.calculator-page.calculator-keypad-open{padding-bottom:var(--calculator-keypad-height,320px)}
.calculator-page.calculator-keypad-open #ceiling-calculator{overflow-anchor:none}
@media(max-width:950px),(pointer:coarse){.calculator-page .calculator-field input,.calculator-page .calculator-field select{font-size:16px;min-height:50px}.calculator-page .lighting-remove,.calculator-page .lighting-actions button{min-height:44px;padding:10px 14px;touch-action:manipulation}.calculator-page .calculator-field input{scroll-margin-block:110px}.calculator-page .calculator-result{overflow-anchor:none}}
@media(max-height:450px) and (orientation:landscape){.calculator-keypad{padding-top:6px;max-height:55svh}.calculator-keypad-head{margin-bottom:0}.calculator-keypad-value{min-height:26px;font-size:20px;padding-bottom:2px}.calculator-keypad-keys{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.calculator-keypad-keys button{min-height:36px;font-size:20px}.calculator-keypad-head button{min-height:36px}.calculator-keypad-close{width:36px}}
@media(min-width:600px) and (max-height:450px) and (orientation:landscape){.calculator-keypad-head,.calculator-keypad-keys{max-width:none}.calculator-keypad-value{display:none}.calculator-keypad-head{margin-bottom:4px}.calculator-keypad-keys{grid-template-columns:repeat(12,minmax(0,1fr))}.calculator-keypad-keys button{min-height:44px}}
@media(min-width:800px) and (max-height:450px) and (orientation:landscape){.calculator-keypad{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:8px}.calculator-keypad-head{width:190px;margin:0;gap:6px}.calculator-keypad-caption{display:none}.calculator-keypad-keys{width:100%}.calculator-keypad-close{width:36px}}
