:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#eef2f6;--surface:#fff;--surface-muted:#f7f9fc;--text:#172033;--muted:#657084;--border:#dce3ed;--accent:#0f766e;--accent-strong:#115e59;--accent-soft:#d7f4ef;--danger:#b42318;--danger-soft:#fff0ed;--shadow:0 22px 70px #1720331f;min-width:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#101417;--surface:#181e24;--surface-muted:#202832;--text:#edf3f8;--muted:#a1adba;--border:#33414f;--accent:#4fd1c5;--accent-strong:#81e6d9;--accent-soft:#153b3b;--danger:#ff9a8b;--danger-soft:#3b201e;--shadow:0 22px 70px #00000059}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100vh;color:var(--text);margin:0;overflow-x:hidden}button{font:inherit}.page-shell{min-height:100vh}.static-fallback{gap:22px;min-height:100vh;padding-top:22px;display:grid}.static-fallback-hero{border:1px solid var(--border);background:var(--surface);width:min(1080px,100vw - 40px);min-height:300px;box-shadow:var(--shadow);border-radius:8px;align-content:center;gap:8px;margin:0 auto;padding:24px;display:grid}.static-fallback-hero h1,.static-fallback-hero p{margin:0}.static-fallback-hero h1{letter-spacing:0;font-size:1.4rem}.static-fallback-hero p{max-width:760px;color:var(--muted);line-height:1.6}.app-shell{grid-template-columns:minmax(0,1fr) 340px;gap:24px;width:min(1320px,100vw - 40px);min-height:100vh;margin:0 auto;padding:22px 0;display:grid}.app-shell.single-column{grid-template-columns:minmax(0,720px);justify-content:center}.workspace{flex-direction:column;gap:18px;min-width:0;display:flex}.app-header{justify-content:space-between;align-items:flex-start;gap:12px;min-height:28px;display:flex}.app-header>div{gap:4px;display:grid}.app-header h1{color:var(--text);letter-spacing:0;margin:0;font-size:1.05rem;font-weight:800;line-height:1.2}.app-header p{max-width:760px;color:var(--muted);margin:0;font-size:.86rem;line-height:1.45}.language-link{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--accent);white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;padding:6px 10px;font-size:.84rem;font-weight:800;text-decoration:none;display:inline-flex}.language-link:hover{border-color:var(--accent)}.language-hint{width:min(1320px,100vw - 40px);color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:0 auto;padding-top:14px;font-size:.92rem;display:flex}.language-hint a,.language-hint button{border:1px solid var(--border);background:var(--surface);min-height:30px;color:var(--accent);border-radius:8px;align-items:center;padding:5px 9px;font-weight:800;text-decoration:none;display:inline-flex}.language-hint button{color:var(--muted);cursor:pointer}.focused-tools{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:minmax(220px,.75fr) minmax(0,1fr) minmax(0,1.1fr);gap:12px;padding:12px;display:grid}.focused-tools-copy{align-content:center;gap:4px;display:grid}.focused-tools-copy strong{color:var(--accent);text-transform:uppercase;font-size:.82rem;font-weight:850}.focused-tools-copy p{color:var(--muted);margin:0;font-size:.88rem;line-height:1.45}.focused-tool-group{gap:7px;min-width:0;display:grid}.focused-tool-group>span{color:var(--muted);text-transform:uppercase;font-size:.78rem;font-weight:800}.focused-tool-group>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.focused-tool-group button{border:1px solid var(--border);background:var(--accent-soft);min-height:34px;color:var(--accent-strong);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:6px 8px;font-weight:800;display:inline-flex}.focused-tool-group.examples button{background:var(--surface-muted);color:var(--text);justify-content:flex-start;overflow:hidden}.focused-tool-group button:hover{border-color:var(--accent)}.focused-tool-group code{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.calculator-surface{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;gap:12px;padding:14px;display:flex}.math-input-shell{border:1px solid var(--border);background:var(--surface-muted);cursor:text;border-radius:8px;min-height:132px;padding:14px}.math-field{width:100%;min-height:104px;color:var(--text);background:0 0;border:0;outline:none;font-size:clamp(1.55rem,3vw,3.1rem)}math-field::part(virtual-keyboard-toggle),math-field::part(menu-toggle){display:none}.result-display{background:var(--surface-muted);border-radius:8px;min-height:86px;padding:14px;position:relative}.copy-notice{background:var(--text);color:var(--surface);box-shadow:var(--shadow);border-radius:6px;padding:8px 10px;font-size:.82rem;font-weight:800;position:absolute;bottom:12px;right:12px}.specialized-shell{gap:16px;width:min(1080px,100vw - 40px);margin:0 auto;padding:22px 0;display:grid}.specialized-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.specialized-header>div{gap:6px;min-width:0;display:grid}.specialized-header h1,.specialized-header p{letter-spacing:0;margin:0}.specialized-header h1{font-size:1.35rem;line-height:1.2}.specialized-header p{max-width:820px;color:var(--muted);line-height:1.5}.specialized-calculator-card{border:1px solid var(--border);background:var(--surface);min-height:340px;box-shadow:var(--shadow);border-radius:8px;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);display:grid;overflow:hidden}.specialized-form{border-right:1px solid var(--border);background:var(--surface-muted);flex-direction:column;gap:12px;min-width:0;padding:18px;display:flex}.specialized-field{gap:6px;display:grid}.specialized-field>span{color:var(--muted);font-size:.82rem;font-weight:800}.specialized-field input,.specialized-field select{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;min-height:46px;color:var(--text);font:inherit;border-radius:8px;padding:10px 12px}.specialized-field input:focus,.specialized-field select:focus{border-color:var(--accent);outline:3px solid color-mix(in srgb, var(--accent) 18%, transparent)}.compact-field select{cursor:pointer}.specialized-submit{border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:46px;margin-top:auto;font-weight:850;display:inline-flex}.angle-segment{border:1px solid var(--border);border-radius:8px;grid-template-columns:repeat(2,minmax(0,1fr));display:grid;overflow:hidden}.angle-segment button{background:var(--surface);min-height:44px;color:var(--muted);cursor:pointer;border:0;font-weight:800}.angle-segment button+button{border-left:1px solid var(--border)}.angle-segment button.active{background:var(--accent-soft);color:var(--accent-strong)}.quadratic-preview{border:1px solid var(--border);background:var(--surface);white-space:nowrap;border-radius:8px;padding:12px;font-size:1.15rem;font-weight:750;overflow-x:auto}.structured-result{align-content:start;gap:18px;min-width:0;min-height:320px;padding:20px;display:grid;position:relative}.structured-result-answer{gap:8px;display:grid}.structured-result-answer>span{color:var(--accent);text-transform:uppercase;font-size:.78rem;font-weight:850}.structured-result-answer strong{overflow-wrap:anywhere;font-size:clamp(1.6rem,3.5vw,2.8rem);line-height:1.15}.structured-result-answer p,.structured-result-answer ul{color:var(--muted);margin:0;line-height:1.55}.structured-result-answer ul{gap:4px;padding-left:1.1rem;display:grid}.calculation-steps{border-top:1px solid var(--border);gap:10px;padding-top:16px;display:grid}.calculation-steps h2,.calculator-examples h2{letter-spacing:0;margin:0;font-size:1rem}.calculation-steps ol{gap:10px;margin:0;padding-left:1.25rem;display:grid}.calculation-steps li{padding-left:4px}.calculation-steps li span,.calculation-steps li code{display:block}.calculation-steps li span{color:var(--muted);font-size:.8rem;font-weight:750}.calculation-steps li code{max-width:100%;color:var(--text);white-space:pre-wrap;margin-top:3px;font:.9rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-x:auto}.calculator-examples{gap:10px;display:grid}.calculator-examples>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.calculator-examples button{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-radius:8px;padding:9px 10px;overflow:hidden}.calculator-examples button:hover{border-color:var(--accent);color:var(--accent)}.embed-specialized-shell{width:min(100%,780px);padding:8px}.embed-specialized-shell .specialized-calculator-card{box-shadow:none;grid-template-columns:1fr}.embed-specialized-shell .specialized-form{border-right:0;border-bottom:1px solid var(--border)}.empty-result{color:var(--muted)}.result-main{align-items:baseline;gap:12px;font-size:clamp(1.7rem,3.2vw,3.4rem);line-height:1;display:flex}.result-main strong{overflow-wrap:anywhere}.equals{color:var(--accent);font-weight:800}.fraction-result{color:var(--muted);margin-top:10px;font-weight:700}.result-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.result-actions button,.history-header button{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text);cursor:pointer;border-radius:8px;align-items:center;gap:6px;display:inline-flex}.result-error{border:1px solid color-mix(in srgb, var(--danger) 40%, transparent);background:var(--danger-soft);color:var(--danger);border-radius:8px;gap:10px;padding:14px;display:grid}.result-error code{color:inherit;overflow-wrap:anywhere}.button-panel{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;display:grid}.calc-button{border:1px solid var(--border);background:var(--surface-muted);min-height:46px;color:var(--text);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:6px;font-size:.94rem;font-weight:750;transition:transform .12s,border-color .12s,background .12s;display:inline-flex}.calc-button:hover{border-color:var(--accent);transform:translateY(-1px)}.calc-button.number{background:var(--surface);font-size:1rem}.calc-button.operator{color:var(--accent)}.calc-button.function{background:var(--accent-soft);color:var(--accent-strong)}.calc-button.command{background:var(--surface);color:var(--muted)}.calc-button.primary{background:var(--accent);color:#fff}.calc-button.wide{grid-column:span 2}.button-icon{display:inline-flex}.button-icon svg{width:17px;height:17px}.panel-hint{min-height:36px;color:var(--muted);grid-column:1/-1;align-items:center;gap:8px;font-size:.88rem;display:flex}.history-panel{border:1px solid var(--border);background:var(--surface);min-height:0;max-height:calc(100vh - 56px);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;display:flex}.history-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px;display:flex}.history-header div{align-items:center;gap:8px;display:flex}.history-header h2{margin:0;font-size:1rem}.history-header button:disabled{cursor:not-allowed;opacity:.5}.history-list{gap:10px;padding:12px;display:grid;overflow:auto}.history-empty{color:var(--muted)}.history-item{border:1px solid var(--border);background:var(--surface-muted);width:100%;color:var(--text);text-align:left;cursor:pointer;border-radius:8px;gap:7px;padding:12px;display:grid}.history-item:hover{border-color:var(--accent)}.history-item math-field{width:100%;color:var(--text);background:0 0;border:0;font-size:1.2rem}.history-item strong{color:var(--accent);overflow-wrap:anywhere}.history-item small{color:var(--muted)}.seo-content{border-top:1px solid var(--border);width:min(1080px,100vw - 40px);color:var(--text);gap:28px;margin:0 auto;padding:34px 0 64px;display:grid}.seo-intro{gap:10px;max-width:820px;display:grid}.seo-kicker{color:var(--accent);text-transform:uppercase;margin:0;font-size:.82rem;font-weight:800}.seo-content h2,.seo-content h3{letter-spacing:0;margin:0}.seo-content h2{font-size:clamp(1.5rem,2.5vw,2.3rem);line-height:1.15}.seo-content h3{font-size:1rem}.seo-content p{color:var(--muted);margin:0;line-height:1.7}.seo-grid{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:28px;display:grid}.seo-grid section,.faq-section{gap:12px;display:grid}.seo-content ul,.seo-content ol{color:var(--muted);gap:8px;margin:0;padding-left:1.1rem;line-height:1.6;display:grid}.seo-grid-secondary{align-items:start}.practice-section,.formula-section{gap:12px;display:grid}.formula-section code{color:var(--text);white-space:normal;font:.92rem/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.practice-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.practice-list article{border:1px solid var(--border);background:var(--surface);border-radius:8px;gap:6px;min-width:0;padding:12px;display:grid}.practice-list code{color:var(--text);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.practice-list span{color:var(--muted);font-size:.92rem;line-height:1.45}.example-list{list-style:none;padding-left:0!important}.example-list code,.faq-section code{border:1px solid var(--border);background:var(--surface-muted);color:var(--text);border-radius:6px;padding:2px 6px}.faq-section{max-width:860px}.faq-section details{border-top:1px solid var(--border);padding:12px 0}.faq-section summary{color:var(--text);cursor:pointer;font-weight:750}.faq-section details p{margin-top:8px}.related-section{gap:12px;display:grid}.link-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.link-grid a{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--text);border-radius:8px;align-items:center;padding:10px 12px;font-weight:750;text-decoration:none;display:flex}.link-grid a:hover{border-color:var(--accent);color:var(--accent)}.link-grid.dense a{min-height:38px;color:var(--muted);font-size:.92rem;font-weight:700}.site-footer-nav{border-top:1px solid var(--border);flex-wrap:wrap;gap:14px;padding-top:18px;display:flex}.site-footer-nav a{color:var(--accent);font-weight:750;text-decoration:none}.site-footer-nav a:hover{text-decoration:underline}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.embed-section{border:1px solid var(--border);background:var(--surface);max-width:940px;box-shadow:var(--shadow);border-radius:8px;gap:14px;padding:16px;display:grid;position:relative}.embed-section-copy{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.embed-section-copy h3{margin-bottom:6px}.embed-section button,.embed-preview-actions button{border:1px solid var(--border);background:var(--accent);color:#fff;cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:8px 12px;font-weight:800;display:inline-flex}.embed-code-preview{gap:8px;display:grid}.embed-code-preview span{color:var(--muted);text-transform:uppercase;font-size:.82rem;font-weight:800}.embed-code-preview textarea{resize:vertical;border:1px solid var(--border);background:var(--surface-muted);width:100%;color:var(--text);border-radius:8px;padding:12px;font:.82rem/1.5 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.embed-preview-actions button{background:var(--surface-muted);color:var(--text)}.embed-preview{border:1px solid var(--border);background:var(--bg);border-radius:8px;overflow:hidden}.embed-preview iframe{border:0;width:100%;height:min(760px,82vh);display:block}.embed-toast{z-index:20;border:1px solid var(--border);background:var(--text);color:var(--surface);box-shadow:var(--shadow);border-radius:8px;padding:10px 12px;font-weight:800;position:fixed;bottom:18px;right:18px}.embed-page-shell{background:var(--bg);min-width:0;min-height:100vh}.embed-app-shell{width:min(100%,780px);min-height:0;padding:10px}.embed-app-shell .workspace{gap:10px}.embed-app-shell .calculator-surface,.embed-app-shell .button-panel{box-shadow:none}.embed-app-shell .math-input-shell{min-height:112px}.embed-app-shell .math-field{min-height:86px;font-size:clamp(1.35rem,6vw,2.65rem)}.embed-app-shell .result-display{min-height:74px}.embed-app-shell .result-main{font-size:clamp(1.35rem,5.2vw,2.8rem)}.embed-powered{color:var(--muted);justify-content:flex-end;gap:4px;font-size:.78rem;display:flex}.embed-powered a{color:var(--accent);font-weight:800;text-decoration:none}.embed-powered a:hover{text-decoration:underline}@media (width<=1020px){.app-shell{grid-template-columns:1fr;width:min(100vw - 24px,860px);padding:18px 0}.history-panel{max-height:360px}.seo-grid,.practice-list,.focused-tools{grid-template-columns:1fr}.link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.embed-section-copy{flex-direction:column;align-items:stretch}.specialized-calculator-card{grid-template-columns:1fr}.specialized-form{border-right:0;border-bottom:1px solid var(--border)}}@media (width<=640px){.calculator-surface,.button-panel,.history-panel{border-radius:8px}.button-panel{gap:7px;padding:9px}.calc-button{min-height:44px;font-size:.88rem}.math-input-shell{min-height:116px;padding:10px}.math-field{min-height:92px}.seo-content{width:min(100vw - 24px,860px);padding:28px 0 48px}.link-grid{grid-template-columns:1fr}.embed-app-shell{padding:8px}.embed-app-shell .button-panel{gap:6px}.embed-app-shell .calc-button{min-height:40px;padding:6px}.embed-powered{justify-content:center}.embed-toast{text-align:center;bottom:12px;left:12px;right:12px}.specialized-shell{width:min(100vw - 24px,860px);padding:16px 0}.specialized-header{flex-direction:column}.specialized-header h1{font-size:1.2rem}.specialized-form,.structured-result{padding:14px}.calculator-examples>div{grid-template-columns:1fr 1fr}.result-actions button{min-height:44px}}@media (width<=360px){.calculator-examples>div{grid-template-columns:1fr}.specialized-shell{width:min(100vw - 16px,860px)}}
