.choice-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0;min-width:0}.choice-tabs button{flex:1 1 110px;min-width:0;min-height:44px;border:1px solid var(--border);border-radius:6px;background:var(--paper);color:var(--ink);padding:10px 12px;font:inherit;font-size:13px;line-height:1.4;overflow-wrap:anywhere;cursor:pointer}.choice-tabs button[aria-checked=true]{background:var(--green-soft);color:var(--green);border-color:var(--green);font-weight:650;box-shadow:inset 0 -2px var(--green)}.choice-tabs button:focus-visible{outline:3px solid var(--green);outline-offset:2px}.choice-tabs button:disabled{opacity:.5;cursor:default}.choice-tabs[hidden],select[data-choice-tabs][hidden]{display:none}.choice-tabs{padding:0;border:0}.choice-tabs legend{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}select[data-choice-tabs]{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden;clip-path:inset(50%)}.result-column{min-width:0;background:#edf4ed;border-left:1px solid #dce8dc;display:flex;flex-direction:column}.result-column>.result-panel{border:0}.result-column>:not(.result-panel){margin-inline:25px}.result-column>:last-child{margin-bottom:25px}.result-column>.is-stale{opacity:.4;transition:opacity .15s}.result-actions{display:flex;flex-wrap:wrap;gap:8px}.result-actions button{min-height:44px;padding:9px 14px;border:1px solid #b8cfbe;border-radius:8px;background:#fff;color:var(--green-dark);font-size:13px;font-weight:600}.result-actions button:hover:not(:disabled){border-color:var(--green);background:#f7fbf8}.result-actions button:disabled{opacity:.5;cursor:default}.result-actions-status{font-size:12px;min-height:20px;margin-top:6px;color:#4d6552}@media(max-width:1100px){.result-column{border-left:0;border-top:1px solid #dce8dc}}@media(max-width:800px){.result-column{border-top:0;border-left:1px solid #dce8dc}}@media(max-width:560px){.result-column{border-left:0;border-top:1px solid #dce8dc}.result-column>:not(.result-panel){margin-inline:20px}}@media print{.result-actions,.result-actions-status{display:none}.result-column{background:#fff}}.arithmetic-display{grid-column:1/-1;position:relative}.arithmetic-display textarea#expression{display:block;min-height:86px;height:86px;padding:14px 16px 34px;border:1px solid #bcd0c2;border-radius:12px;background:#f4f8f5;font:500 26px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;letter-spacing:-.01em;color:var(--ink);resize:vertical;overflow-wrap:anywhere}.arithmetic-display textarea#expression:focus{background:#fff;border-color:var(--green)}.arithmetic-preview{position:absolute;right:17px;margin-top:-30px;font:600 15px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--green);max-width:calc(100% - 34px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.arithmetic-preview.is-error{color:#646e67}.arithmetic-device{grid-column:1/-1;min-width:0}.arithmetic-memory{font-size:12px;margin:0 0 8px;color:var(--muted);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.arithmetic-memory.has-memory{color:var(--green);font-weight:650}.arithmetic-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.arithmetic-keypad button{min-height:54px;border:1px solid #dbe3dc;border-radius:11px;background:#fff;font-size:21px;font-weight:550;color:var(--ink);box-shadow:0 1px #d5ded6;font-variant-numeric:tabular-nums;transition:background .1s,transform .05s}.arithmetic-keypad button:hover:not(:disabled){background:#f3f6f3}.arithmetic-keypad button:active:not(:disabled){transform:translateY(1px);box-shadow:none}.arithmetic-keypad .key-memory{min-height:40px;font-size:13px;font-weight:650;color:#4d6552;background:#f6f8f5;box-shadow:none}.arithmetic-keypad .key-tool{background:#f6f8f5;font-size:18px}.arithmetic-keypad .key-clear{background:#fbeeee;border-color:#efd3d3;color:#9c2f2f;font-size:18px;font-weight:650}.arithmetic-keypad .key-clear:hover:not(:disabled){background:#f7e2e2}.arithmetic-keypad .key-operator{background:#e6f0e9;border-color:#c9dccf;color:var(--green-dark);font-size:24px}.arithmetic-keypad .key-operator:hover:not(:disabled){background:#d9e9de}.arithmetic-keypad .key-equals{grid-column:span 3;background:var(--green);border-color:var(--green);color:#fff;font-size:24px;box-shadow:0 1px 0 var(--green-dark)}.arithmetic-keypad .key-equals:hover:not(:disabled){background:var(--green-dark)}.arithmetic-keypad button:disabled{opacity:.45;cursor:default}.arithmetic-history{border-top:1px solid #d3dfd3;padding-top:16px;margin-top:12px}.arithmetic-history-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.arithmetic-history h3{font-size:14px;letter-spacing:0}.arithmetic-history-clear{min-height:44px;border:0;background:none;color:var(--green-dark);font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:0 4px}.arithmetic-history ol{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px;max-height:330px;overflow-y:auto}.arithmetic-history li{min-width:0}.arithmetic-history li button{display:flex;flex-direction:column;align-items:flex-end;gap:2px;width:100%;min-height:44px;padding:9px 12px;border:1px solid #d3e0d6;border-radius:8px;background:#fff;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.arithmetic-history li button:hover{border-color:var(--green)}.arithmetic-history li span{font-size:12px;color:var(--muted);max-width:100%}.arithmetic-history li strong{font-size:16px;color:#195837;max-width:100%}#results [data-output=result],#results dd{overflow-wrap:anywhere;word-break:break-word}@media(max-width:560px){.arithmetic-display textarea#expression{font-size:22px}.arithmetic-keypad{gap:6px}.arithmetic-keypad button{min-height:52px;font-size:20px}.arithmetic-keypad .key-memory{min-height:44px}}
