:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100vh;background:#0a0a0a;color:#fafafa}.shell{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.calculator{width:100%;max-width:32rem;border:1px solid rgba(255,255,255,.1);border-radius:1rem;background:#ffffff08;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.calc-header h1{margin:0;font-size:1.4rem;font-weight:700;letter-spacing:-.03em;background:linear-gradient(135deg,#60a5fa,#a78bfa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.subtitle{margin:.15rem 0 0;font-size:.8rem;color:#fff6}.input-row{display:flex;gap:.5rem}.calc-input{flex:1;background:#ffffff0f;border:1px solid rgba(255,255,255,.12);border-radius:.5rem;padding:.75rem 1rem;font-size:1.1rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#fafafa;outline:none;transition:border-color .15s}.calc-input:focus{border-color:#60a5fa99;box-shadow:0 0 0 2px #60a5fa26}.calc-input::placeholder{color:#ffffff40}.btn-equal,.btn-clear{border:none;border-radius:.5rem;padding:.75rem 1.2rem;font-size:1.1rem;font-weight:700;cursor:pointer;transition:background .15s,transform .1s}.btn-equal{background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff}.btn-equal:hover{background:linear-gradient(135deg,#2563eb,#4f46e5)}.btn-equal:active{transform:scale(.95)}.btn-clear{background:#ffffff14;color:#ffffffb3}.btn-clear:hover{background:#ef444433;color:#fca5a5}.error-bar{background:#ef44441f;border:1px solid rgba(239,68,68,.25);border-radius:.5rem;padding:.5rem .75rem;font-size:.8rem;color:#fca5a5;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.quick-fns{display:flex;flex-wrap:wrap;gap:.35rem}.btn-fn{background:#ffffff0f;border:1px solid rgba(255,255,255,.08);border-radius:.35rem;padding:.3rem .6rem;font-size:.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#ffffffb3;cursor:pointer;transition:background .15s,color .15s}.btn-fn:hover{background:#60a5fa26;color:#93c5fd;border-color:#60a5fa4d}.examples{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.examples-label{font-size:.7rem;color:#ffffff4d;text-transform:uppercase;letter-spacing:.1em;margin-right:.25rem}.btn-example{background:transparent;border:1px solid rgba(255,255,255,.08);border-radius:.35rem;padding:.2rem .5rem;font-size:.7rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#ffffff73;cursor:pointer;transition:all .15s}.btn-example:hover{background:#a78bfa1f;color:#c4b5fd;border-color:#a78bfa4d}.history-section{border-top:1px solid rgba(255,255,255,.06);padding-top:.75rem}.history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.history-header h2{margin:0;font-size:.85rem;font-weight:600;color:#ffffff80}.history-actions{display:flex;gap:.4rem}.btn-toggle{background:transparent;border:1px solid rgba(255,255,255,.08);border-radius:.3rem;padding:.15rem .5rem;font-size:.65rem;color:#fff6;cursor:pointer;transition:all .15s}.btn-toggle:hover{background:#ffffff0f;color:#ffffffb3}.history-list{list-style:none;margin:0;padding:0;max-height:14rem;overflow-y:auto;display:flex;flex-direction:column;gap:.25rem}.history-list::-webkit-scrollbar{width:4px}.history-list::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:2px}.history-item{display:flex;align-items:center;gap:.5rem;padding:.4rem .6rem;border-radius:.35rem;cursor:pointer;transition:background .15s;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem}.history-item:hover{background:#ffffff0a}.history-expr{color:#ffffff80;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-eq{color:#ffffff40}.history-result{color:#60a5fa;font-weight:600}.calc-footer{font-size:.65rem;color:#fff3;text-align:center;line-height:1.4}
