.sc-input-card{padding:0!important;overflow:hidden;border-radius:24px}.sc-input-card:hover{transform:none!important}.sc-input-card .sc-calc{border:none;border-radius:0;box-shadow:none}.sc-calc{width:100%;background:var(--card-bg,#fff);overflow:hidden}.sc-display{padding:28px 24px 20px;text-align:right;min-height:130px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(180deg,var(--bg-secondary,#f8fafc) 0,transparent 100%);position:relative}.sc-expression{font-size:1rem;color:var(--text-secondary,#888);min-height:1.5em;word-break:break-all;line-height:1.4;font-family:'SF Mono','Fira Code','Cascadia Code',Consolas,monospace;transition:font-size .15s ease,color .2s ease;padding:4px 0;cursor:pointer;border-radius:8px}.sc-expression:hover:not(.sc-expr-editing){color:var(--accent-color,#6b5b95)}.sc-expression.sc-expr-sm{font-size:.85rem}.sc-expression.sc-expr-xs{font-size:.75rem}.sc-expression.sc-expr-editing{outline:0;background:var(--bg-secondary,#f5f5f7);border-radius:8px;padding:6px 10px;margin:-6px -10px;border:1.5px dashed var(--accent-color,#6b5b95);cursor:text;color:var(--text-primary,#1a1a2e)}.sc-expression[contenteditable=true]:focus{border-color:var(--accent-color,#6b5b95);box-shadow:0 0 0 3px rgba(107,91,149,.12)}.sc-expression.sc-expr-editing.sc-expr-sm{font-size:.85rem}.sc-expression.sc-expr-editing.sc-expr-xs{font-size:.75rem}.sc-result{font-size:3rem;font-weight:300;color:var(--text-primary,#1a1a2e);line-height:1.15;word-break:break-all;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;margin-top:6px;transition:font-size .15s ease;letter-spacing:-.02em}.sc-result.sc-result-sm{font-size:2.2rem}.sc-result.sc-result-xs{font-size:1.6rem}.sc-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px;background:0 0}.sc-btn{padding:0;font-size:1.25rem;font-weight:500;border:none;cursor:pointer;transition:background .15s ease,transform .1s ease,box-shadow .15s ease;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;user-select:none;-webkit-user-select:none;display:flex;align-items:center;justify-content:center;min-height:58px;aspect-ratio:auto;border-radius:14px;position:relative;overflow:hidden}.sc-btn:active{transform:scale(.95)}.sc-btn:focus-visible{outline:2px solid var(--accent-color,#6b5b95);outline-offset:2px}.sc-btn.number{background:var(--card-bg,#fff);color:var(--text-primary,#1a1a2e);font-size:1.3rem;font-weight:400;box-shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04)}.sc-btn.number:hover{background:var(--hover-bg,#f5f0ff);box-shadow:0 2px 6px rgba(0,0,0,.08)}.sc-btn.zero{grid-column:span 2}.sc-btn.operator{background:var(--accent-color,#6b5b95);color:#fff;font-size:1.4rem;font-weight:500;box-shadow:0 2px 8px rgba(107,91,149,.3)}.sc-btn.operator:hover{background:var(--accent-dark,#4c3d6d);box-shadow:0 4px 12px rgba(107,91,149,.4)}.sc-btn.operator.active{background:#fff;color:var(--accent-color,#6b5b95);box-shadow:0 2px 8px rgba(107,91,149,.2)}.sc-btn.utility{background:var(--bg-secondary,#e8e8e6);color:var(--text-primary,#1a1a2e);font-size:1.1rem;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.06)}.sc-btn.utility:hover{background:var(--hover-bg,#d8d8d6);box-shadow:0 2px 6px rgba(0,0,0,.08)}.sc-btn.equals{background:linear-gradient(135deg,var(--accent-color,#6b5b95),var(--accent-dark,#4c3d6d));color:#fff;font-size:1.5rem;font-weight:600;box-shadow:0 2px 10px rgba(107,91,149,.35)}.sc-btn.equals:hover{background:linear-gradient(135deg,var(--accent-dark,#4c3d6d),#3d2e5e);box-shadow:0 4px 16px rgba(107,91,149,.45)}body.dark-theme .sc-calc{background:#1c1c1e}body.dark-theme .sc-display{background:linear-gradient(180deg,#1c1c1e 0,#1c1c1e 100%)}body.dark-theme .sc-expression{color:#a1a1aa}body.dark-theme .sc-expression:hover:not(.sc-expr-editing){color:var(--accent-light,#a99bd2)}body.dark-theme .sc-result{color:#f0f0f2}body.dark-theme .sc-buttons{background:#1c1c1e}body.dark-theme .sc-btn.number{background:#333338;color:#f0f0f2;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.04)}body.dark-theme .sc-btn.number:hover{background:#3e3e44;box-shadow:0 2px 8px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.06)}body.dark-theme .sc-btn.utility{background:#636366;color:#f0f0f2;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.06)}body.dark-theme .sc-btn.utility:hover{background:#727276;box-shadow:0 2px 8px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.08)}body.dark-theme .sc-btn.operator{background:var(--accent-color,#8b7bb8);box-shadow:0 2px 8px rgba(139,123,184,.3),inset 0 1px 0 rgba(255,255,255,.1)}body.dark-theme .sc-btn.operator:hover{background:var(--accent-light,#a99bd2);box-shadow:0 4px 12px rgba(139,123,184,.4)}body.dark-theme .sc-btn.operator.active{background:#f0f0f2;color:var(--accent-color,#8b7bb8);box-shadow:0 2px 8px rgba(0,0,0,.3)}body.dark-theme .sc-btn.equals{background:linear-gradient(135deg,var(--accent-color,#8b7bb8),var(--accent-light,#a99bd2));box-shadow:0 2px 10px rgba(139,123,184,.35),inset 0 1px 0 rgba(255,255,255,.1)}body.dark-theme .sc-btn.equals:hover{background:linear-gradient(135deg,var(--accent-light,#a99bd2),#bfb3db);box-shadow:0 4px 16px rgba(139,123,184,.5)}body.dark-theme .sc-expression.sc-expr-editing{background:#2a2a2e;border-color:var(--accent-light,#a99bd2);color:#f0f0f2}body.dark-theme .sc-expression[contenteditable=true]:focus{box-shadow:0 0 0 3px rgba(139,123,184,.2)}body.dark-theme .sc-history-list .sc-history-result{color:var(--accent-light,#a99bd2)}.sc-results-card{display:flex;flex-direction:column}.sc-results-card:hover{transform:none!important}.sc-results-card h2{margin-bottom:20px;padding-bottom:12px}.sc-history-section{margin-top:8px;border:1px solid var(--border-color,#e2e2e2);border-radius:14px;overflow:hidden}.sc-history-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary,#666);background:var(--bg-secondary,#f5f5f7);border-bottom:1px solid var(--border-color,#e2e2e2)}.sc-history-clear{background:0 0;border:1px solid transparent;color:var(--accent-color,#6b5b95);cursor:pointer;font-size:.78rem;padding:4px 10px;border-radius:6px;font-weight:600;transition:background .15s,border-color .15s;text-transform:none;letter-spacing:0}.sc-history-clear:hover{background:var(--hover-bg,#f5f0ff);border-color:var(--accent-color,#6b5b95)}.sc-history-clear:focus-visible{outline:2px solid var(--accent-color,#6b5b95);outline-offset:2px}.sc-history-list{display:flex;flex-direction:column}.sc-history-list .sc-history-item{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;font-size:.85rem;border-bottom:1px solid var(--border-color,#e2e2e2);color:var(--text-secondary,#666);gap:12px;cursor:pointer;transition:background .15s,padding-left .15s}.sc-history-list .sc-history-item:hover{background:var(--hover-bg,#f5f0ff);padding-left:20px}.sc-history-list .sc-history-item:focus-visible{outline:2px solid var(--accent-color,#6b5b95);outline-offset:-2px;border-radius:4px}.sc-history-list .sc-history-item:last-child{border-bottom:none}.sc-history-list .sc-history-expr{flex:1;font-family:'SF Mono','Fira Code','Cascadia Code',Consolas,monospace;font-size:.82rem;word-break:break-all;line-height:1.35}.sc-history-list .sc-history-result{font-weight:700;color:var(--accent-color,#6b5b95);white-space:nowrap;font-size:.88rem;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif}.sc-empty-state{margin-top:8px;padding:32px 20px;text-align:center;color:var(--text-tertiary,#aaa);font-size:.88rem;border:1.5px dashed var(--border-color,#e2e2e2);border-radius:14px;line-height:1.5}.sc-empty-state p{margin:0}.sc-empty-icon{display:block;margin:0 auto 12px;opacity:.35;width:40px;height:40px;color:var(--text-tertiary,#aaa)}@media (max-width:768px){.sc-buttons{gap:6px;padding:8px}.sc-btn{min-height:54px;font-size:1.15rem;border-radius:12px}.sc-btn.number{font-size:1.2rem}.sc-btn.equals,.sc-btn.operator{font-size:1.3rem}.sc-result{font-size:2.6rem}.sc-display{padding:24px 16px 16px;min-height:120px}}@media (max-width:480px){.sc-buttons{gap:5px;padding:6px}.sc-btn{min-height:52px;border-radius:10px}.sc-result{font-size:2.4rem}}@media (max-width:340px){.sc-buttons{gap:4px;padding:4px}.sc-btn{min-height:48px;font-size:1rem;border-radius:8px}.sc-result{font-size:2rem}}