#titlebar{-webkit-app-region:drag;height:32px;display:flex;align-items:center;padding:0 8px;-webkit-user-select:none;user-select:none;background:transparent;position:relative}#titlebar-center{position:absolute;left:50%;top:calc(50% + 1px);transform:translate(-50%,-50%);font-size:14px;font-family:monospace;line-height:1;color:inherit;pointer-events:none;-webkit-user-select:none;user-select:none}#titlebar-left{display:flex;align-items:center;gap:8px;-webkit-app-region:no-drag;width:33.33%}.traffic-light{width:12px;height:12px;border-radius:50%;cursor:pointer}#titlebar-right{-webkit-app-region:no-drag;margin-left:auto;display:flex;align-items:center;height:100%}#settings-button{width:24px;height:24px;display:grid;place-items:center;background:transparent;border:none;color:inherit;cursor:pointer;margin:0;padding:0;border-radius:8px;transform:translateY(1px);transition:background-color .12s ease;-webkit-app-region:no-drag}#settings-button:hover{background:#ffffff29}#settings-button:active{background:#ffffff38}#settings-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.7}.window-controls{display:none;-webkit-app-region:no-drag}html[data-platform=win32] #titlebar-left{display:none}html[data-platform=win32] #titlebar{padding-right:0}html[data-platform=win32] #titlebar-right{margin-left:0;transform:translate(-2px);order:-1}html[data-platform=win32] .window-controls{display:flex;align-items:center;height:100%;gap:1px;margin-left:auto;padding-right:4px}html[data-platform=win32] .window-controls button{-webkit-app-region:no-drag;flex:0 0 24px;width:24px;height:24px;border:0;padding:0;color:inherit;background:transparent;border-radius:50%;cursor:pointer;transition:color .12s ease}html[data-platform=win32] .window-controls button svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-linecap:square;stroke-width:1}#settings-page{position:fixed;top:32px;right:0;bottom:0;left:0;overflow-y:auto;width:100%;box-sizing:border-box;background:#1e1e1e;color:#fff;padding:0;border:0;border-radius:0;box-shadow:none;z-index:1000}html[data-platform=win32] #settings-page{top:32px;right:0;bottom:0;left:0}.settings-page-header{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:620px;padding:.8rem 1.5rem .3rem}.settings-page-header h1{font-size:1rem;font-weight:500;margin:0}.settings-heading{color:#aeb7d4;font-size:.68rem;font-weight:700;letter-spacing:.09em;margin:0 0 .55rem;text-transform:uppercase}.settings-close{background:transparent;border:0;color:#aeb7d4;cursor:pointer;font-size:1.8rem;line-height:1;padding:.1rem .4rem}.settings-section{margin:0 auto;max-width:620px;padding:1rem 1.5rem}.settings-section h2{border-bottom:1px solid rgba(255,255,255,.1);color:#aeb7d4;font-size:.68rem;letter-spacing:.09em;margin:0 0 .9rem;padding-bottom:.55rem;text-transform:uppercase}.support-section p{color:#cbd5e1;font-size:.73rem;line-height:1.45;margin:0 0 .8rem;max-width:34rem}.support-links{display:flex;flex-wrap:wrap;gap:.45rem}.support-link{align-items:center;background:#ffffff14;border:1px solid rgba(255,255,255,.14);border-radius:6px;color:#f8fafc;display:inline-flex;font-size:.7rem;font-weight:600;gap:.36rem;min-height:30px;padding:.35rem .55rem;text-decoration:none;transition:background-color .12s ease,transform .12s ease}.support-link:hover{background:#ffffff26;transform:translateY(-1px)}.support-link:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}.support-link img{height:15px;width:15px}.support-link.coffee{color:#fef3c7}.support-link.paypal{color:#bfdbfe}.update-setting-row{align-items:center;display:flex;font-size:.68rem;gap:.55rem;justify-content:flex-start;min-height:2rem}.current-version-label{flex:0 0 auto;white-space:nowrap}.current-version-link{background:transparent;border:0;color:#aeb7d4;cursor:pointer;font:inherit;padding:.25rem 0;text-decoration:underline;text-underline-offset:3px}.current-version-link:hover{color:#fff}.check-updates-button{background:transparent;border:0;color:#aeb7d4;cursor:pointer;font:inherit;font-size:.68rem;padding:.25rem 0;text-decoration:underline;text-underline-offset:3px}.check-updates-button:hover{color:#fff}.check-updates-button:disabled{cursor:wait;opacity:.65}#update-status{color:#94a3b8;flex:1 1 auto;font-size:.68rem;line-height:1.3;min-width:0}.setting-row{align-items:center;display:flex;font-size:.82rem;justify-content:space-between;margin:.85rem 0}.setting-row select{border-radius:0;padding:.25rem .35rem}.settings-shortcut{align-items:center;color:#aeb7d4;display:flex;font-size:.7rem;gap:.25rem;margin:.75rem 0}.settings-shortcut span{margin-left:.25rem}.version-link{background:transparent;border:0;color:#8e99b5;cursor:pointer;display:block;font:inherit;font-size:.62rem;margin:.85rem auto 0;padding:.15rem;text-decoration:underline;text-underline-offset:2px}.version-link:hover{color:#d7ddea}#settings-page select,#theme-select,#decimals-select,#font-size-select{-webkit-appearance:auto;appearance:auto;background:transparent;border:0;color:#f4f4f4;font-family:monospace;font-size:inherit;outline:none}#settings-page select:focus{outline:none;box-shadow:none}#settings-page select option{background:#1e1e1e;color:#f4f4f4}body.light #settings-page select{color-scheme:light;color:#000}body.light #settings-page select option{background:#f7f7f7;color:#000}kbd{background:#ffffff1a;border:1px solid rgba(255,255,255,.14);border-radius:4px;color:#fff;font-family:inherit;font-size:.65rem;padding:.1rem .25rem}body.light #settings-page{background:#f7f7f7;color:#000;border-color:#00000014}body.light #settings-button:hover{background:#0000001f}body.light #settings-button:active{background:#0000002e}html[data-platform=win32] body.light .window-controls button:hover,html[data-platform=win32] body.light .window-controls button:active{background:transparent}html[data-platform=win32] body.light .window-controls #close-button:hover,html[data-platform=win32] body.light .window-controls #close-button:active{background:transparent;color:#dc2626}body.light .settings-heading,body.light .settings-shortcut,body.light .version-link{color:#687086}body.light .version-link:hover{color:#1f2937}body.light .settings-shortcut{border-color:#00000014}body.light kbd{background:#eef0f5;border-color:#dfe2ea;color:#252a38}body.light .settings-section h2{border-color:#00000014}body.light .support-section p{color:#475569}body.light .support-link{background:#fff;border-color:#dbe1ea;color:#334155}body.light .support-link:hover{background:#f8fafc}body.light .support-link.coffee{color:#92400e}body.light .support-link.paypal{color:#075985}body.light .current-version-link{color:#687086}body.light .current-version-link:hover{color:#1f2937}body.light #update-status,body.light .check-updates-button{color:#687086}body.light .check-updates-button:hover{color:#1f2937}#settings-page[hidden]{display:none!important}html{font-size:calc(16px * var(--content-font-scale, 1))}.container,#settings-page{scrollbar-width:thin;scrollbar-color:#4b5563 transparent}.container::-webkit-scrollbar,#settings-page::-webkit-scrollbar{height:3px;width:3px}.container::-webkit-scrollbar-track,#settings-page::-webkit-scrollbar-track{background:transparent}.container::-webkit-scrollbar-thumb,#settings-page::-webkit-scrollbar-thumb{background:#4b5563;border-radius:999px}.container::-webkit-scrollbar-button,.container::-webkit-scrollbar-button:vertical:decrement,.container::-webkit-scrollbar-button:vertical:increment,#settings-page::-webkit-scrollbar-button,#settings-page::-webkit-scrollbar-button:vertical:decrement,#settings-page::-webkit-scrollbar-button:vertical:increment{display:none;height:0!important;width:0!important}.container::-webkit-scrollbar-corner,#settings-page::-webkit-scrollbar-corner{background:transparent}body.light .container,body.light #settings-page{scrollbar-color:#c4c9d2 transparent}body.light .container::-webkit-scrollbar-thumb,body.light #settings-page::-webkit-scrollbar-thumb{background:#c4c9d2}.update-notice{align-items:center;background:#272a34;border:1px solid rgba(96,165,250,.45);border-radius:10px;bottom:12px;box-shadow:0 12px 28px #0000004d;color:#f8fafc;display:flex;box-sizing:border-box;gap:10px;left:12px;max-width:none;padding:10px 8px 10px 12px;position:fixed;right:12px;z-index:1500}.update-notice[hidden]{display:none}.update-notice-copy{display:grid;flex:1 1 auto;gap:3px;min-width:0}.update-notice-copy strong{color:#bfdbfe;font-size:.76rem}.update-notice-copy span{color:#cbd5e1;font-size:.68rem;line-height:1.35}.update-notice button{font:inherit}#update-notice-open{background:#60a5fa;border:0;border-radius:6px;color:#172554;cursor:pointer;flex:0 0 auto;font-size:.68rem;font-weight:700;padding:6px 8px;white-space:nowrap}#update-notice-open:hover{background:#93c5fd}.update-notice-dismiss{align-self:center;background:transparent;border:0;color:#94a3b8;cursor:pointer;display:grid;flex:0 0 28px;font-size:1.35rem;height:28px;line-height:1;margin-left:2px;padding:0;place-items:center;width:28px}.update-notice-dismiss:hover{color:#fff}.support-toast{background:#272a34;border:1px solid rgba(255,255,255,.16);border-radius:9px;bottom:14px;box-shadow:0 12px 32px #00000059;box-sizing:border-box;color:#f8fafc;display:grid;gap:.7rem;left:50%;max-width:620px;padding:.8rem 2.25rem .8rem .9rem;position:fixed;transform:translate(-50%);width:calc(100vw - 28px);z-index:1450}.support-toast[hidden]{display:none}.support-toast-copy{display:grid;gap:.22rem}.support-toast-copy strong{color:#fef3c7;font-size:.8rem}.support-toast-copy span{color:#cbd5e1;font-size:.68rem;line-height:1.35}.support-toast-links{flex-wrap:nowrap;gap:.35rem;justify-content:space-between}.support-toast-links .support-link{font-size:.62rem;min-height:28px;padding:.28rem .38rem;white-space:nowrap}.support-toast-dismiss{background:transparent;border:0;color:#94a3b8;cursor:pointer;font-size:1.35rem;line-height:1;padding:.25rem;position:absolute;right:.36rem;top:.34rem}.support-toast-dismiss:hover{color:#fff}.currency-status{background:#78350feb;border:1px solid rgba(251,191,36,.35);border-radius:7px;bottom:12px;color:#fef3c7;font-size:.66rem;left:12px;padding:.45rem .6rem;position:fixed;z-index:1400}body.light .currency-status{background:#fffbeb;border-color:#fcd34d;color:#92400e}body.light .update-notice{background:#fff;border-color:#93c5fd;color:#172554}body.light .update-notice-copy strong{color:#1d4ed8}body.light .update-notice-copy span{color:#475569}body.light .update-notice-dismiss{color:#64748b}body.light .support-toast{background:#fff;border-color:#dbe1ea;box-shadow:0 12px 32px #0f172a29}body.light .support-toast-copy strong{color:#92400e}body.light .support-toast-copy span{color:#475569}body.light .support-toast-dismiss{color:#64748b}html[data-platform=web]{background:#111827}html[data-platform=web] body{height:100vh;height:100dvh;margin:0;max-width:none;overflow:hidden;width:100%}html[data-platform=web] .container{height:calc(100vh - 32px);height:calc(100dvh - 32px)}body{background:#1e1e1e;color:#fff;font-family:monospace;margin:0;overflow:hidden}.container{width:100%;height:calc(100vh - 32px);box-sizing:border-box;padding-bottom:1rem;overflow-y:auto;overflow-x:hidden}.calculator{width:100%;box-sizing:border-box;padding:1rem 1rem 0}.calculation-row{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);gap:1rem;align-items:start}.calculation-input,.calculation-output{min-width:0;color:#fff;border:none;background:#1e1e1e;font-size:.875rem;box-sizing:border-box;line-height:1.5}.calculation-input{position:relative;z-index:1;width:100%;min-height:1.5rem;padding:0;resize:none;overflow:hidden;outline:none;background:transparent;caret-color:#f7f8ff;color:#d7ddea;-webkit-text-fill-color:#d7ddea;font-size:.875rem}html.renderer-ready .calculation-input{color:transparent;-webkit-text-fill-color:transparent}.calculation-input::selection{background:#2563eb;color:#fff;-webkit-text-fill-color:#fff}.input-stack{min-width:0;position:relative}.calculation-highlight,.input-placeholder{box-sizing:border-box;font:inherit;font-size:.875rem;left:0;line-height:1.5;margin:0;min-height:1.5rem;pointer-events:none;position:absolute;right:0;top:0;z-index:0}.calculation-highlight{color:#d7ddea;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word}.input-placeholder{color:#9ca8bf;display:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-ghost{color:transparent;font:inherit;font-size:.875rem;left:0;line-height:1.5;pointer-events:none;position:absolute;top:0;white-space:pre;z-index:0}.input-ghost>span{color:#9ca8bf;opacity:.35}body.light .input-ghost>span{color:#64748b}.calculation-row.is-empty.has-placeholder .input-placeholder{display:block}.token-number{color:inherit}.token-variable{color:#f7b267}.token-unit{color:#4ade80}.token-stock{color:#c4b5fd}.token-connector{color:#fbbf24}.calculation-output{display:block;position:relative;min-height:1.5rem;padding-left:.75rem;font-weight:700;text-align:right;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;cursor:copy;-webkit-user-select:none;user-select:none}.answer-number{color:#fbbf24}.answer-unit{color:#4ade80}.answer-error-icon{display:inline-flex;color:#fb7185;vertical-align:middle}.answer-error-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}#copy-toast{position:fixed;right:16px;bottom:16px;z-index:2000;padding:.5rem .7rem;border:1px solid rgba(134,239,172,.35);border-radius:8px;background:#14532d;color:#dcfce7;box-shadow:0 10px 24px #00000047;font-size:.72rem;font-weight:700;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .16s ease,transform .16s ease}#copy-toast.visible{opacity:1;transform:translateY(0)}body.light{background:#f7f7f7;color:#000}body.light .calculation-input{background:#f7f7f7;background:transparent;color:#1f2937;-webkit-text-fill-color:#1f2937;caret-color:#111827}html.renderer-ready body.light .calculation-input{color:transparent;-webkit-text-fill-color:transparent}body.light .input-placeholder{color:#64748b}body.light .calculation-input::selection{background:#bfdbfe;color:#172554;-webkit-text-fill-color:#172554}body.light .calculation-highlight{color:#1f2937}body.light .token-number{color:inherit}body.light .token-variable{color:#c56b1f}body.light .token-unit{color:#047857}body.light .token-stock{color:#7c3aed}body.light .token-connector{color:#c2410c}body.light .calculation-output{background:#f7f7f7;color:#000}body.light .answer-number{color:#a16207}body.light .answer-unit{color:#15803d}body.light .answer-error-icon{color:#dc2626}body.light #copy-toast{background:#dcfce7;border-color:#86efac;color:#166534}body.light #decimals{background-color:#f7f7f7;color:#000}.output-number{color:#007bff;font-weight:700}.output-unit{color:#28a745;font-weight:700}.output-variable{color:#dc3545;font-weight:700}.output-keyword{color:#ffc107;font-weight:700}.output-date{color:#6f42c1;font-weight:700}.output-error{color:#dc3545;font-weight:700}#titlebar-center,#settings-button,html[data-platform=win32] .window-controls button{color:#9ca3af}body.light #titlebar-center,body.light #settings-button,html[data-platform=win32] body.light .window-controls button{color:#6b7280}html[data-platform=win32] .window-controls button:hover,html[data-platform=win32] .window-controls button:active{background:transparent}html[data-platform=win32] .window-controls #minimize-button:hover,html[data-platform=win32] .window-controls #minimize-button:active{color:#f6d365}html[data-platform=win32] .window-controls #maximize-button:hover,html[data-platform=win32] .window-controls #maximize-button:active{color:#a7e8b0}html[data-platform=win32] .window-controls #close-button:hover,html[data-platform=win32] .window-controls #close-button:active{background:transparent;color:#ff7b72}html[data-platform=win32] body.light .window-controls #minimize-button:hover{color:#b7791f}html[data-platform=win32] body.light .window-controls #maximize-button:hover{color:#2f855a}html[data-platform=win32] body.light .window-controls #close-button:hover{color:#dc2626}
