.home-keypad-column{display:flex;flex-direction:column;align-items:center;justify-self:end;gap:16px;width:100%;min-width:0}.keypad-links{width:100%;margin:0 0 24px}.keypad-links>span{display:block;font-size:10px;letter-spacing:1px;font-weight:650;color:var(--muted);margin-bottom:10px}.keypad-links nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.keypad-links a{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;font-size:12px;color:var(--text);border:1px solid var(--line);background:var(--surface-solid);border-radius:7px}.keypad-links a span{flex:1 1}.keypad-links a:hover,.keypad-links a[aria-current=page]{color:var(--accent);border-color:var(--accent);background:var(--accent-subtle)}.keypad-links.is-compact{max-width:340px;margin:0}.keypad-links.is-compact nav{grid-template-columns:1fr 1fr}.site-frame .physical-calculator-page{max-width:900px;margin:auto;padding:30px 24px 56px}.site-frame .physical-calculator-page>header{margin:22px 0}.site-frame .physical-calculator-page>header h1{font-size:32px;margin:10px 0}.site-frame .physical-calculator-page>header p{color:var(--muted);font-size:14px;line-height:1.7;max-width:650px}.standalone-keypad{display:flex;justify-content:center}.standalone-keypad .hero-art.interactive-hero-art{width:100%}.standalone-keypad>.calculator-page{width:100%;min-width:0}.keypad-links.is-tabs{margin-bottom:24px}.keypad-links.is-tabs nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-bottom:1px solid var(--line)}.keypad-links.is-tabs a{justify-content:center;text-align:center;min-height:48px;font-size:14px;font-weight:550;border:0;border-bottom:3px solid rgba(0,0,0,0);border-radius:6px 6px 0 0;background:rgba(0,0,0,0);padding:10px 8px}.keypad-links.is-tabs a:hover{background:var(--soft)}.keypad-links.is-tabs a[aria-current=page]{border-bottom-color:var(--accent);background:var(--accent-subtle);color:var(--accent)}@media(max-width:480px){.keypad-links.is-tabs nav{grid-template-columns:repeat(2,minmax(0,1fr))}.keypad-links.is-tabs a{font-size:13px}}.physical-device{--device-body:#dadbd2;--device-text:#262a24;--device-soft:#bcc0b1;--device-key:#41463c;--device-lcd:#c6cfaf;width:100%;max-width:680px;min-width:0;padding:20px;border-radius:14px;border:1px solid #b1b4a6;border-bottom:5px solid #a7aa9c;background:var(--device-body);color:var(--device-text);box-shadow:0 12px 26px rgba(37,40,31,.12),inset 0 1px 0 #f1f2eb}.physical-device .device-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;letter-spacing:1px;margin-bottom:14px}.physical-device .device-heading strong{font-weight:750}.physical-device .device-heading strong span{margin-left:6px;font-weight:450}.physical-device button{font:inherit;cursor:pointer}.physical-device .keypad-help{font-size:11px;color:inherit;opacity:.85;line-height:1.6;margin:14px 0 0}.physical-device .keypad-error{color:#943a2a;background:#f3ded2;padding:10px;border-radius:6px;font-size:12px;margin:12px 0 0}.physical-device .keypad-message{font-size:12px;line-height:1.6;margin:12px 0 0}.physical-device .keypad-functions,.physical-device .keypad-keys{display:grid;gap:6px}.physical-device .keypad-keys{grid-template-columns:repeat(4,minmax(0,1fr))}.physical-device .keypad-functions button,.physical-device .keypad-keys button,.physical-device .keypad-memory button{min-height:46px;min-width:0;padding:6px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:550;border-radius:5px;color:#faf9f1;background:var(--device-key);border:1px solid #33372f;border-bottom:3px solid #272b24;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.physical-device .keypad-functions button:hover,.physical-device .keypad-keys button:hover,.physical-device .keypad-memory button:hover{background:#555d4a}.physical-device .keypad-functions button:active,.physical-device .keypad-keys button:active,.physical-device .keypad-memory button:active{transform:translateY(1px)}.physical-device .keypad-functions button:focus-visible,.physical-device .keypad-keys button:focus-visible,.physical-device .keypad-memory button:focus-visible{outline:2px solid #a64b25;outline-offset:2px}.physical-device .keypad-functions button:disabled,.physical-device .keypad-keys button:disabled,.physical-device .keypad-memory button:disabled{opacity:.3;cursor:not-allowed;transform:none}.physical-device .keypad-functions button.key-clear,.physical-device .keypad-keys button.key-clear,.physical-device .keypad-memory button.key-clear{background:#a04b38;border-color:#803b2b;color:#fff}.physical-device .keypad-functions button.key-operation,.physical-device .keypad-keys button.key-operation,.physical-device .keypad-memory button.key-operation{background:#747d65;border-color:#616b53}.physical-device .keypad-functions button.key-equals,.physical-device .keypad-keys button.key-equals,.physical-device .keypad-memory button.key-equals{background:#ac512c;border-color:#8a3f20;color:#fffaf2}.physical-device .keypad-keys .key-equals{grid-column:1/-1;font-size:23px}.physical-device .keypad-mode-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0}.physical-device .keypad-mode-row>div{display:flex;gap:4px}.physical-device .keypad-mode-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:8px;border-radius:5px;background:var(--device-soft);color:#30362b;font-size:12px;border:1px solid #9a9f8d}.physical-device .keypad-mode-row button.active{background:var(--device-key);color:#fffaf4;border-color:#30362b}html[data-theme=dark] .physical-device{--device-body:#3e4438;--device-text:#edeee4;--device-soft:#bcc0b1;border-color:#58614e #58614e #242a21;box-shadow:0 12px 26px rgba(0,0,0,.2),inset 0 1px 0 #59624d}.site-frame main .calculator-page.calculator-detail .calculator-entry:has(.scientific-keypad){display:block;background:rgba(0,0,0,0);border:0;overflow:visible}.site-frame main .calculator-page.calculator-detail .calculator-entry:has(.scientific-keypad)>.input-panel{border:0;padding:0;background:rgba(0,0,0,0)}.site-frame main .calculator-page.calculator-detail .calculator-entry:has(.scientific-keypad)>.result-panel{display:none}.site-frame main .calculator-page.calculator-detail .input-panel:has(.scientific-keypad)>.calculator-section-heading{display:none}.site-frame main .calculator-page.calculator-detail .scientific-keypad{max-width:none;margin:0}.site-frame main .calculator-page.calculator-detail .scientific-editor{display:block;margin:0}.site-frame main .calculator-page.calculator-detail .scientific-editor textarea{display:block;width:100%;min-height:74px;max-height:180px;resize:vertical;border:1px solid #8b927c;border-radius:7px 7px 0 0;padding:12px;font:18px/1.5 Courier New,monospace;background:var(--device-lcd);color:#283022;box-shadow:inset 0 2px 5px rgba(41,49,31,.12)}.site-frame main .calculator-page.calculator-detail .keypad-answer{display:block;min-height:48px;padding:8px 12px 12px;border:1px solid #8b927c;border-top:0;border-radius:0 0 7px 7px;background:var(--device-lcd);color:#283022;font:700 28px/1.3 Courier New,monospace;text-align:right;overflow-wrap:anywhere}.site-frame main .calculator-page.calculator-detail .keypad-history{list-style:none;max-height:100px;overflow:auto;margin:0 0 10px;padding:8px;border-radius:6px;background:var(--device-lcd);color:#283022}.site-frame main .calculator-page.calculator-detail .keypad-history li+li{border-top:1px solid #a9b397}.site-frame main .calculator-page.calculator-detail .keypad-history button{display:flex;justify-content:space-between;width:100%;text-align:left;gap:12px;padding:6px;font:12px/1.5 monospace}.site-frame main .calculator-page.calculator-detail .keypad-history button span{overflow-wrap:anywhere;min-width:0}.site-frame main .calculator-page.calculator-detail .keypad-history button strong{flex-shrink:0}.site-frame main .calculator-page.calculator-detail .keypad-toolbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:10px 0}.site-frame main .calculator-page.calculator-detail .keypad-toolbar button{display:grid;place-items:center;min-height:44px;border:1px solid #9a9f8d;background:var(--device-soft);color:#30362b;border-radius:5px;font-size:20px}.site-frame main .calculator-page.calculator-detail .scientific-keyboards{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;align-items:start}.site-frame main .calculator-page.calculator-detail .keypad-functions{grid-template-columns:repeat(4,minmax(0,1fr))}.site-frame main .calculator-page.calculator-detail .keypad-functions button{font-size:15px;background:#747d65;border-color:#616b53}.site-frame main .calculator-page.calculator-detail .keypad-memory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px}.site-frame main .calculator-page.calculator-detail .keypad-memory button{min-height:44px;font-size:12px;background:var(--device-soft);color:#30362b;border-color:#9a9f8d}.site-frame main .calculator-page.calculator-detail .keypad-functions-toggle{display:none}.programmer-keypad{max-width:540px}.programmer-keypad .programmer-entry{display:flex;flex-direction:column;gap:8px;font-size:11px}.programmer-keypad .programmer-entry input{background:var(--device-lcd);color:#283022;font:600 25px/1.4 Courier New,monospace;width:100%;min-width:0;padding:14px;border:1px solid #8b927c;border-radius:7px}.programmer-keypad .programmer-pending{font-size:12px;min-height:18px;margin:8px 0;overflow-wrap:anywhere}.programmer-keypad .programmer-keys{grid-template-columns:repeat(4,minmax(0,1fr))}.programmer-keypad .programmer-keys button{font-size:16px}.programmer-keypad .programmer-keys button:nth-child(-n+6){background:#747d65}.programmer-keypad .programmer-bases{margin:18px 0 0}.programmer-keypad .programmer-bases>div{display:flex;gap:12px;padding:8px 0;border-top:1px solid rgba(110,117,96,.35);font:12px/1.5 monospace}.programmer-keypad .programmer-bases>div dt{width:34px;flex-shrink:0;opacity:.7}.programmer-keypad .programmer-bases>div dd{margin:0;min-width:0;overflow-wrap:anywhere}.financial-keypad{max-width:600px}.financial-keypad .financial-result{padding:14px;background:var(--device-lcd);color:#283022;border:1px solid #8b927c;border-radius:7px}.financial-keypad .financial-result>span{font-size:10px;letter-spacing:1px}.financial-keypad .financial-result output{display:block;font:700 28px/1.4 Courier New,monospace;text-align:right;overflow-wrap:anywhere}.financial-keypad .financial-targets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:12px 0 18px}.financial-keypad .financial-targets button{min-height:44px;border-radius:5px;background:#747d65;color:#fff;border-bottom:3px solid #616b53;font-size:13px}.financial-keypad .financial-targets button.active{background:#ac512c;border-color:#8a3f20}.financial-keypad .financial-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.financial-keypad .financial-fields .field{font-size:11px;margin:0;gap:6px;min-width:0}.financial-keypad .financial-fields input{width:100%;min-height:46px;font-size:16px;padding:10px 12px;color:#283022;background:#f1f2e9;border:1px solid #9a9f8d;border-radius:6px}.financial-keypad .financial-fields .is-target input{background:var(--device-lcd)}.financial-keypad .financial-active{font-size:11px;line-height:1.6;margin:16px 0 10px}.financial-keypad .financial-keys .key-equals{grid-column:span 2}.keypad-sources{max-width:600px;font-size:11px;line-height:1.7;color:var(--muted);margin:20px auto 0}.keypad-sources a{color:var(--accent);text-decoration:underline}.physical-device:fullscreen{width:min(100%,760px);max-width:none;margin:auto;overflow:auto;max-height:100dvh}@media(max-width:760px){.home-keypad-column{justify-self:center}}@media(max-width:600px){.site-frame .physical-calculator-page{padding:22px 16px 36px}.site-frame .physical-calculator-page>header h1{font-size:28px}.physical-device{padding:14px}.physical-device .device-heading{font-size:9px}.keypad-links nav{grid-template-columns:1fr 1fr}.site-frame main .calculator-page.calculator-detail .scientific-keyboards{display:flex;flex-direction:column;gap:12px}.site-frame main .calculator-page.calculator-detail .keypad-main{width:100%}.site-frame main .calculator-page.calculator-detail .keypad-functions{display:none;width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.site-frame main .calculator-page.calculator-detail .keypad-functions.is-open{display:grid}.site-frame main .calculator-page.calculator-detail .keypad-functions-toggle{display:inline-flex}.financial-keypad .financial-fields{grid-template-columns:minmax(0,1fr)}}@media print{.home-keypad-column .keypad-links{display:none}.site-frame main .calculator-page.calculator-detail .input-panel:has(.scientific-keypad)>.calculator-section-heading{display:block}.site-frame main .calculator-page.calculator-detail .scientific-keypad{border:0;border-radius:0;box-shadow:none;padding:0;background:#fff;color:#222}.site-frame main .calculator-page.calculator-detail .scientific-keypad>:not(.scientific-editor):not(.device-heading){display:none}.site-frame main .calculator-page.calculator-detail .scientific-keypad .scientific-editor textarea{background:#fff;color:#222;height:auto;border-radius:6px}}