.general-calculator-shell{max-width:34rem}.general-calculator-shell [hidden]{display:none!important}.general-calculator-shell .calculator{border:1px solid var(--line);background:#fffdf8;border-radius:18px}.general-calculator-shell .display,.general-calculator-shell .controls,.general-calculator-shell .support{align-content:start;gap:12px;min-width:0;padding:24px;display:grid}.general-calculator-shell .display{border-bottom:1px solid var(--line)}.general-calculator-shell .support{border-top:1px solid var(--line)}.general-calculator-shell .function-panel{gap:12px;padding-block:4px 8px;display:grid}.general-calculator-shell .angle{border:0;min-width:0;margin:0;padding:0}.general-calculator-shell .angle legend,.general-calculator-shell .expression-label>label{font-size:.9375rem;font-weight:700}.general-calculator-shell .angle-options{gap:6px;max-width:100%;padding-top:4px;display:inline-flex}.general-calculator-shell .angle-options label{position:relative}.general-calculator-shell .angle-options input{opacity:0;position:absolute}.general-calculator-shell .angle-options span{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;place-items:center;min-height:44px;padding:4px 10px;font-size:.875rem;display:grid}.general-calculator-shell .angle-options input:checked+span{border-color:var(--accent);color:var(--accent);background:#e9efe5;font-weight:750}.general-calculator-shell .angle-options input:focus-visible+span{outline-offset:3px;outline:3px solid #b76722}.general-calculator-shell .expression-label,.general-calculator-shell .cursor-controls,.general-calculator-shell .actions{align-items:center;gap:6px;display:flex}.general-calculator-shell .expression-label{justify-content:space-between}.general-calculator-shell .actions{flex-wrap:wrap}.general-calculator-shell #expression{width:100%;min-width:0;min-height:48px;color:var(--ink);background:#fff;border:1px solid #91a18d;border-radius:8px;padding:8px 10px;font:1.125rem/1.4 ui-monospace,monospace;display:block}.general-calculator-shell .result{text-align:end;border:1px solid var(--line);background:#edf2e9;border-radius:12px;gap:2px;min-width:0;padding:10px 14px;display:grid}.general-calculator-shell .result>span,.general-calculator-shell .result>small{color:var(--muted);font-size:.8125rem}.general-calculator-shell .result output{overflow-wrap:anywhere;font:700 clamp(1.375rem,4vw,2rem)/1.25 ui-monospace,monospace}.general-calculator-shell .memory{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;padding-top:10px;display:flex}.general-calculator-shell .memory p,.general-calculator-shell .feedback{overflow-wrap:anywhere;margin:0;font-size:.875rem}.general-calculator-shell .memory p span{margin-inline-start:4px;font-weight:700}.general-calculator-shell .memory .memory-help{color:var(--muted);flex-basis:100%}.general-calculator-shell .feedback{color:var(--accent)}.general-calculator-shell .feedback[data-error]{color:#8b351e}.general-calculator-shell .calculator button{min-width:44px;min-height:44px;color:var(--ink);cursor:pointer;background:#fff;border:1px solid #c8d5c8;border-radius:8px;padding:5px 8px;font-weight:650}.general-calculator-shell .calculator button:not(:disabled):hover{background:#e9efe5}.general-calculator-shell .calculator button:disabled{cursor:default;color:#626c62;border-color:var(--line);background:#eef1eb}.general-calculator-shell .actions button,.general-calculator-shell .history-header button{font-size:.875rem}.general-calculator-shell .keys{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.general-calculator-shell .keys button{min-height:48px;font-size:1.125rem}.general-calculator-shell .keys .operator{background:#edf2e9}.general-calculator-shell .keys .clear-key{padding-inline:2px;font-size:.75rem}.general-calculator-shell .keys .equals{background:var(--accent);color:#fff;border-color:var(--accent);grid-column:span 2}.general-calculator-shell .keys .equals:not(:disabled):hover{background:#184b34}.general-calculator-shell .fold{min-width:0}.general-calculator-shell .fold summary{cursor:pointer;min-height:44px;padding:8px 2px;font-weight:700}.general-calculator-shell .fold summary span{color:var(--muted);margin-inline-start:6px;font-size:.875rem;font-weight:400}.general-calculator-shell .history{border-top:1px solid var(--line);padding:0 24px}.general-calculator-shell .history[open]{padding-bottom:16px}.general-calculator-shell .history-content p{color:var(--muted);margin:0;font-size:.875rem}.general-calculator-shell .history-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.general-calculator-shell .history ol{gap:6px;margin:8px 0 0;padding:0;list-style:none;display:grid}.general-calculator-shell .history li button{text-align:start;overflow-wrap:anywhere;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.general-calculator-shell .history li small{color:var(--muted);font-weight:400}.general-calculator-shell .percent-help{color:var(--muted);margin:12px 0 0;font-size:.875rem}.general-calculator-shell .percent-help code{white-space:nowrap}@media (width<=900px){.general-calculator-shell .display,.general-calculator-shell .controls,.general-calculator-shell .support{padding:14px}.general-calculator-shell .history{padding-inline:14px}}
