@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght,SOFT,WONK@9..144,600,0,1&display=swap";:root{color:#193831;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#e2e1d5;font-family:DM Sans,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline-offset:3px;outline:3px solid #c4773d}#root{min-height:100vh}.app-shell{max-width:1240px;margin:0 auto;padding:0 42px}.site-header{border-bottom:1px solid #c5c9bb;align-items:center;gap:10px;height:68px;padding-right:166px;display:flex;position:relative}.header-controls{align-items:center;gap:10px;margin-left:auto;display:flex}.focus-toggle{color:#fff;background:#214d3d;border:1px solid #214d3d;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;width:156px;height:40px;padding:8px 10px;font-size:12px;font-weight:700;display:flex;position:absolute;top:14px;right:0}.focus-toggle:hover{background:#316a50}.focus-toggle-track{background:#ffffff40;border-radius:12px;flex:0 0 30px;height:18px;position:relative}.focus-toggle-track:after{content:"";background:#fff;border-radius:50%;width:12px;height:12px;position:absolute;top:3px;left:3px}.focus-toggle[aria-checked=true] .focus-toggle-track{background:#a8db96}.focus-toggle[aria-checked=true] .focus-toggle-track:after{background:#214d3d;transform:translate(12px)}.is-focused .workspace{grid-template-columns:minmax(0,1fr);margin-top:22px;margin-bottom:35px}.brand-mark{color:#f7f4e9;background:#1d4b3e;border-radius:10px;place-items:center;width:35px;height:35px;font-size:25px;font-weight:700;line-height:1;display:grid}.brand-name{letter-spacing:-.05em;font-size:18px}.history-icon.simplification{color:#a9683e;background:#fcf0e5}.history-icon.distribution{color:#7959a6;background:#f2eafd}.history-icon.transformation{color:#3b7953;background:#e8f1e8}.history-icon.answer{color:#5376a9;background:#eaf0fa}.language-switch{background:#eeefe8;border:1px solid #dfe4d9;border-radius:9px;gap:3px;padding:3px;display:flex}.language-switch button{color:#748578;background:0 0;border:0;border-radius:6px;min-width:37px;height:29px;font-size:11px;font-weight:700}.language-switch button[aria-pressed=true]{color:#1d4b3e;background:#fffef9;box-shadow:0 1px 4px #20412f1a}.language-switch button:hover:not([aria-pressed=true]){color:#1d4b3e}h2,p{margin:0}.balance-note{color:#617465;margin:20px 1px 17px;font-size:13px;line-height:1.5}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:stretch;gap:20px;display:grid}.setup-card,.solver-card,.history{background:#fffef9;border:1px solid #e4e5d9;border-radius:19px;box-shadow:0 13px 30px #20412f09}.setup-card,.solver-card{padding:30px}.setup-card,.history{box-shadow:none;background:#eaf0e2;border-color:#cdd5c5}.solver-card{border-color:#a8caae;box-shadow:0 16px 42px #205b371f}.section-heading{align-items:center;gap:12px;display:flex}.solver-heading{flex-wrap:wrap}.section-number{color:#337354;background:#edf3e9;border-radius:10px;place-items:center;width:34px;height:34px;font-size:12px;font-weight:700;display:grid}h2{letter-spacing:-.025em;font-family:Fraunces,Georgia,serif;font-size:24px;font-weight:600}.difficulty-buttons{gap:9px;margin-top:20px;display:grid}.difficulty-buttons button{text-align:left;color:#214436;background:#fff;border:1px solid #e5e7da;border-radius:12px;align-items:center;gap:13px;width:100%;padding:12px 14px;font-weight:700;transition:border-color .15s,transform .15s,background .15s;display:flex}.difficulty-buttons button:hover{background:#f7fbf6;border-color:#7fa88e;transform:translateY(-1px)}.difficulty-buttons small{color:#92a095;margin-top:2px;font-size:11px;font-weight:500;display:block}.button-icon{color:#b7784d;background:#fcf0e5;border-radius:9px;flex:0 0 38px;place-items:center;height:38px;font-size:21px;display:grid}.difficulty-buttons button:nth-child(2) .button-icon{color:#6681ac;background:#edf2f9}.difficulty-buttons button:nth-child(3) .button-icon{color:#68896e;background:#ebf4e9}.settings-control{position:relative}.settings-button{color:#42674d;background:#fffef9;border:1px solid #dce6d9;border-radius:9px;align-items:center;gap:7px;margin-top:15px;padding:8px 10px;font-size:12px;font-weight:700;display:flex}.settings-button:hover,.settings-button[aria-expanded=true]{background:#f0f7ed;border-color:#a4c2a7}.settings-popover{z-index:5;background:#fffef9;border:1px solid #cbdcc9;border-radius:12px;width:min(320px,100vw - 80px);max-height:calc(100vh - 100px);padding:16px;position:absolute;top:calc(100% + 7px);left:0;overflow-y:auto;box-shadow:0 14px 32px #20412f29}.settings-popover[hidden]{display:none}.app-settings-control{margin-left:auto;position:relative}.app-settings-control .settings-button{margin-top:0}.theme-control{color:#42674d;align-items:center;gap:6px;display:flex}.theme-control select{max-width:130px;min-height:35px;color:inherit;font:inherit;cursor:pointer;background:#fffef9;border:1px solid #dce6d9;border-radius:9px;padding:5px 7px;font-size:12px;font-weight:700}.theme-control select:focus-visible{outline-offset:3px;outline:3px solid #c4773d}.app-settings-popover{z-index:7;background:#fffef9;border:1px solid #cbdcc9;border-radius:12px;width:min(320px,100vw - 48px);padding:16px;position:absolute;top:calc(100% + 7px);left:0;box-shadow:0 14px 32px #20412f29}.app-settings-popover[hidden]{display:none}.app-settings-popover .variable-display-control{border-top:0;margin-top:0;padding-top:0}.settings-popover .toggle-row+.toggle-row{border-top:1px solid #e8eee4;margin-top:13px;padding-top:13px}.number-size-control,.variable-display-control{color:#315440;border-top:1px solid #e8eee4;gap:7px;margin-top:13px;padding-top:13px;font-size:12px;font-weight:600;display:grid}.number-size-control select,.variable-display-control select{color:#315440;width:100%;min-height:36px;font:inherit;background:#fff;border:1px solid #d8e5d8;border-radius:8px;padding:5px 9px}.setup-options{margin-top:20px}.setup-options h3{color:#496152;margin:0 0 10px;font-size:12px;font-weight:700}.toggle-row{color:#315440;cursor:pointer;align-items:flex-start;gap:9px;font-size:12px;font-weight:600;line-height:1.4;display:flex}.toggle-row input{accent-color:#316a50;flex:none;margin:2px 0 0}.toggle-row small{color:#8b9b8e;margin-top:3px;font-size:11px;font-weight:400;display:block}.modification-options{border-top:1px solid #e8e9df;padding-top:18px}.modification-hint{color:#8b9b8e;margin:-4px 0 10px;font-size:11px;line-height:1.4}.modification-buttons{flex-wrap:wrap;gap:7px;display:flex}.modification-buttons button{color:#315440;background:#f5faf4;border:1px solid #d8e5d8;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:700}.modification-buttons button:hover{background:#eaf5e9;border-color:#8fba98}.divider{color:#9ca79f;text-transform:uppercase;letter-spacing:.13em;align-items:center;gap:13px;margin:22px 0 18px;font-size:10px;font-weight:700;display:flex}.divider:before,.divider:after{content:"";background:#e8e9df;flex:1;height:1px}form label{margin-bottom:9px;font-size:13px;font-weight:700;display:block}.input-row{flex-direction:column;align-items:stretch;gap:7px;display:flex}.input-row input{color:#193831;background:#fff;border:1px solid #dfe3d9;border-radius:10px;width:100%;min-width:0;height:45px;padding:0 13px;font-size:13px}.input-row input::placeholder{color:#a4afa5}.input-row button{color:#42674d;white-space:nowrap;background:#f5faf4;border:1px solid #d8e5d8;border-radius:8px;justify-content:center;align-self:flex-end;align-items:center;gap:5px;min-height:35px;padding:0 11px;font-size:11px;font-weight:600;display:flex}.input-row button:hover{background:#eaf5e9;border-color:#8fba98}.syntax-help-control{width:max-content;max-width:100%;margin-top:11px;position:relative}.syntax-help-button{color:#557761;background:0 0;border:0;align-items:center;gap:6px;padding:3px 0;font-size:12px;font-weight:700;display:flex}.syntax-help-button:hover{color:#214d3d}.input-help{z-index:6;color:#607363;background:#fffef9;border:1px solid #cbdcc9;border-radius:10px;gap:3px;width:min(285px,100vw - 80px);padding:14px;font-size:12.5px;line-height:1.5;display:grid;position:absolute;top:calc(100% + 5px);left:0;box-shadow:0 12px 28px #20412f26}.input-help[hidden]{display:none}.input-error{color:#a33b31;margin-top:10px;font-size:12px;line-height:1.5}.solver-card{flex-direction:column;min-width:0;display:flex}.equation-card{background:#f5f7ef;border:1px solid #e7eadf;border-radius:14px;flex-direction:column;flex:1;min-width:0;margin-top:22px;padding:23px;display:flex}.equation-meta{color:#8c9b8c;letter-spacing:.06em;text-transform:uppercase;justify-content:space-between;gap:12px;font-size:11px;font-weight:700;display:flex}.equation-meta-actions{text-align:right;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px;display:flex}.copy-button{color:#637064;white-space:nowrap;letter-spacing:0;text-transform:none;background:0 0;border:1px solid #ccd2ca;border-radius:7px;align-items:center;gap:4px;padding:5px 7px;font-size:10px;font-weight:700;display:inline-flex}.copy-button:hover{color:#4e5852;background:#e9ece6;border-color:#a4afa7}.copy-feedback{color:#426b50;align-self:flex-end;margin-top:5px;font-size:11px}.equation-stage{width:100%;position:relative;overflow:hidden}.equation-display,.equation-ghost{white-space:nowrap;color:#1f4134;flex-wrap:nowrap;justify-content:center;align-items:center;gap:0;width:max-content;max-width:none;min-height:119px;margin:0 auto;font-family:Georgia,serif;font-size:35px;line-height:1.45;display:flex}.equation-ghost{pointer-events:none;position:absolute;inset:0 auto auto 50%;transform:translate(-50%)}.equation-piece,.equation-space,.equation-token{white-space:pre;flex:none;display:inline-block}.variable-box{vertical-align:-.28em;align-items:center;display:inline-flex}.variable-box svg{width:1.2em;height:1.2em}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.equation-ghost .token-stable{visibility:hidden}.equation-ghost .token-removed{animation:.9s ease-in both token-exit}.equation-incoming .token-new,.equation-incoming .token-changed{animation:.9s ease-out both token-enter}.equation-display mark,.equation-ghost mark{color:#1f4134;-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:0;padding:0;transition:background-color .9s}.equation-display mark.highlight-target,.equation-ghost mark.highlight-target{background:#f9dca3}.equation-display mark.highlight-selection{background:#e8dcf9}.equation-display mark.highlight-selection-secondary{background:#bce8ec}.equation-display mark.highlight-hover{background:#edf0f4}.equation-display .equation-token[role=button]{cursor:pointer;border-radius:3px}.equation-display .equation-token[role=button]:focus-visible{outline-offset:2px;outline:2px solid #7959a6}.equation-display mark.highlight-new{background:#ccebcf}.equation-display mark.highlight-changed{background:#cfe2fa}.equation-incoming mark.highlight-new{animation:.9s ease-out both highlight-new}.equation-incoming mark.highlight-changed{animation:.9s ease-out both highlight-changed}.is-merging .equation-ghost .token-merge-source{animation:1.1s ease-in both token-exit}.is-merging .equation-ghost .token-merge-operator{animation:.35s ease-out both token-exit}.is-merging .equation-incoming .token-merge-result{animation:1.3s both merge-result-enter}.is-merging .equation-incoming .token-merge-result.token-stable{animation:none}.is-merging .equation-incoming .token-merge-result mark.highlight-new{animation:1.3s both merge-highlight-new}.is-merging .equation-incoming .token-merge-result mark.highlight-changed{animation:1.3s both merge-highlight-changed}@keyframes token-enter{0%{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@keyframes token-exit{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(16px)}}@keyframes highlight-new{0%{background:var(--highlight-target,#f9dca3)}to{background:var(--highlight-new,#ccebcf)}}@keyframes highlight-changed{0%{background:var(--highlight-target,#f9dca3)}to{background:var(--highlight-changed,#cfe2fa)}}@keyframes merge-result-enter{0%,62%{opacity:0;transform:scale(.96)}82%,to{opacity:1;transform:scale(1)}}@keyframes merge-highlight-new{0%,65%{background:var(--highlight-target,#f9dca3)}to{background:var(--highlight-new,#ccebcf)}}@keyframes merge-highlight-changed{0%,65%{background:var(--highlight-target,#f9dca3)}to{background:var(--highlight-changed,#cfe2fa)}}.result-legend{color:#738176;justify-content:center;gap:14px;min-height:21px;margin:-7px 0 8px;font-size:11px;display:flex}.result-legend[aria-hidden=true]{visibility:hidden}.result-legend span{align-items:center;gap:5px;display:inline-flex}.result-legend i{border-radius:3px;width:10px;height:10px}.legend-new{background:#ccebcf}.legend-changed{background:#cfe2fa}.focus-box{background:#fff9ee;border:1px solid #e7d8bd;border-radius:10px;min-height:115px;padding:16px}.step-guidance{margin-top:17px}.step-title{color:#2d513f;flex-wrap:wrap;align-items:center;gap:10px;display:flex}.step-title strong{font-size:23px;line-height:1.2}.step-title.simplification{color:#a9683e}.step-title.distribution{color:#7959a6}.step-title.transformation{color:#3b7953}.step-subtitle{color:#496152;margin-top:7px;font-size:14px;font-weight:700;display:block}.focus-box p{color:#758277;margin-top:6px;font-size:12px;line-height:1.5}.result-box{background:#eaf4e8;border-color:#c8dfc9}.result-box .step-title{color:#497c51}.result-box .result-outcome{color:#2d513f;font-size:18px;font-weight:700}.result-box .result-celebration{color:#497c51;font-size:20px;font-weight:700}.verification-equations{gap:7px;margin-top:10px;display:grid}.original-equation,.verification-equation{overflow-wrap:anywhere;color:#315a41;background:#f8fcf5;border:1px solid #cee2ca;border-radius:8px;padding:10px 12px;font-family:Georgia,serif;font-size:18px}.original-equation{color:#748778}.original-equation small,.verification-equation small{color:#819483;letter-spacing:.04em;margin-bottom:4px;font-family:Arial,sans-serif;font-size:10px;font-weight:700;display:block}.history-verification{overflow-wrap:anywhere;color:#315a41;font-family:Georgia,serif}.verification-equation mark,.history-verification mark{color:#214e32;background:#ccebcf;border-radius:4px;padding:0 3px}.history-verification{font-size:18px}.history-original-equation{overflow-wrap:anywhere;color:#89978d;margin-top:8px;font-family:Georgia,serif;font-size:17px}.focus-placeholder{text-align:center;color:#a2ada1;border:1px dashed #d5ddcf;border-radius:10px;place-items:center;min-height:115px;padding:12px;font-size:12px;line-height:1.5;display:grid}.guess-badge{border-radius:8px;align-items:center;padding:7px 13px;font-size:15px;font-weight:700;display:inline-flex;box-shadow:0 2px 5px #20412f1f}.guess-forward{color:#fff;background:#26713b;border:1px solid #1f6131}.guess-detour{color:#775000;background:#ffe3a1;border:1px solid #d0a54d}.step-entry-row{margin-top:17px}.step-entry{background:#f1f8ee;border:1px solid #accdae;border-radius:11px;min-width:0;margin:0;padding:14px;container-type:inline-size}.step-entry:disabled{opacity:.8}.step-entry-label,.operand-label{color:#506d58;margin-bottom:9px;font-size:12px;font-weight:700;display:block}.step-entry>.step-entry-label{margin-bottom:18px}.step-entry-main{grid-template-columns:minmax(170px,200px) minmax(0,1fr);align-items:start;gap:24px;min-height:220px;display:grid}.step-kind-options{grid-auto-rows:44px;align-content:start;gap:8px;min-height:148px;display:grid}.transformation-controls{grid-template-rows:repeat(4,44px);grid-template-columns:44px minmax(40px,100px) max-content;align-items:center;gap:6px 10px;display:grid}.operation-options{grid-area:1/1/5;grid-template-rows:repeat(4,44px);gap:6px;display:grid}.step-kind-options button,.operation-options button{color:#315440;background:#fff;border:1px solid #d5e1d4;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:6px 9px;font-size:12px;font-weight:700;display:inline-flex}.step-kind-options button{color:#214d3d;text-align:left;background:#e0efdc;border:2px solid #729a7b;border-radius:10px;justify-content:flex-start;gap:8px;padding:6px 10px;font-size:13px;box-shadow:0 3px 8px #20412f1f}.step-kind-options button:hover,.operation-options button:hover{background:#f0f7ed;border-color:#87ac8d}.step-kind-options button[aria-pressed=true],.operation-options button[aria-pressed=true]{color:#fff;background:#214d3d;border-color:#214d3d}.step-kind-options button svg{flex-shrink:0}.step-entry-choice,.step-entry-details{min-width:0}.operation-options button{border-color:#729a7b;min-width:0;padding:3px}.operation-options button span{font-size:30px;line-height:1}.operand-label{margin-top:0}.operand-input{color:#193831;background:#fff;border:1px solid #8fba98;border-radius:9px;grid-column:2;width:100%;min-width:0;height:44px;padding:6px 10px;font-family:Georgia,serif;font-size:18px;display:block}.operand-input::placeholder{color:#9cae9d;font-family:Arial,sans-serif;font-size:13px}.operand-adjustments{grid-column:3;align-items:center;gap:3px;display:flex}.operand-adjustments button{color:#42674d;background:#fffef9;border:1px solid #accdae;border-radius:6px;flex:none;justify-content:center;align-items:center;gap:2px;min-width:28px;height:44px;padding:4px 2px;font-size:10px;font-weight:700;display:inline-flex}.operand-adjustments button>svg{flex:none}.operand-adjustments button:hover{background:#e0efdc;border-color:#54825e}.step-entry-footer{justify-content:flex-end;padding-top:14px;display:flex}.check-step-button{color:#fff;background:#214d3d;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:8px 12px;font-size:12px;font-weight:700;display:inline-flex}.check-step-button:hover:not(:disabled){background:#316a50}.check-step-button:disabled{cursor:default;background:#a9beac}.step-feedback{color:#a33b31;margin-top:9px;font-size:12px;line-height:1.4}.solver-controls{justify-content:space-between;align-items:center;gap:12px;margin-top:12px;display:flex}.step-execution-actions{flex-wrap:wrap;justify-content:flex-end;align-items:stretch;gap:10px;min-width:0;display:flex}.advance-button{color:#426b50;background:#fffef9;border:1px solid #8fba98;border-radius:10px;flex:0 0 130px;justify-content:center;align-items:center;min-height:44px;padding:10px 14px;font-size:12px;font-weight:700;display:flex}.advance-button:hover:not(:disabled){background:#eaf5e9;border-color:#54825e}.advance-button.ready-to-execute{color:#fff;background:#214d3d}.advance-button.ready-to-execute:hover:not(:disabled){background:#316a50}.advance-button:disabled{cursor:default;color:#809483;border-color:#d8e5d8}.execute-and-simplify-button{color:#214d3d;background:#e0efdc;border:1px solid #54825e;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-width:0;max-width:100%;padding:10px 14px;font-size:12px;font-weight:700;display:flex}.execute-and-simplify-button svg{flex-shrink:0}.execute-and-simplify-button:hover{background:#cde6c9;border-color:#214d3d}.solver-actions{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.solver-actions button{color:#38604a;background:#fffef9;border:1px solid #dde6dc;border-radius:9px;align-items:center;gap:6px;padding:8px 11px;font-size:12px;font-weight:700;display:flex}.solver-actions button:hover:not(:disabled){background:#f0f6ee;border-color:#a9c5aa}.solver-actions button:disabled{cursor:default;color:#aeb9ae;border-color:#e8ede6}.solver-actions button svg{flex-shrink:0}.progress-track{background:#e9eee7;border-radius:10px;height:5px;margin-top:18px;overflow:hidden}.progress-track div{background:#8cb292;height:100%;transition:width .25s}.history{margin:24px 0 55px;padding:29px 31px}.history-header{justify-content:space-between;align-items:end;gap:16px;display:flex}.history-count{color:#9aa79a;white-space:nowrap;font-size:12px}.empty-history{color:#9da99f;margin-top:28px;font-size:13px}.step-list{margin:23px 0 0;padding:0;list-style:none}.step-list li{border-top:1px solid #eceee5;grid-template-columns:24px 34px minmax(95px,145px) minmax(0,1fr);align-items:start;gap:12px;padding:17px 0;display:grid}.history-icon{border-radius:10px;flex:0 0 34px;place-items:center;height:34px;display:grid}.step-index{color:#adbaad;flex:0 0 22px;padding-top:8px;font-size:12px;font-weight:700}.history-step-title{color:#3f614a;min-width:0;padding-top:7px;font-size:12px;line-height:1.4}.step-detail{min-width:0}.history-equation-row{align-items:baseline;gap:9px;display:flex}.history-equation-label{color:#9aa79a;text-transform:uppercase;letter-spacing:.06em;flex:0 0 34px;font-size:9px;font-weight:700}.step-before{color:#89978d;font-size:17px}.step-after{font-size:21px}.answer-step .step-equation{color:#3f6597}.step-equation{color:#254a39;overflow-wrap:anywhere;font-family:Georgia,serif;font-size:22px}.step-list p{color:#8b998e;margin-top:5px;font-size:12px;line-height:1.5}.step-list .history-description{margin:0 0 8px}@media (width<=850px){.app-shell{padding:0 24px}.workspace{grid-template-columns:minmax(0,1fr)}}@media (height<=850px){.settings-popover{top:auto;bottom:calc(100% + 7px)}}@media (width<=500px){.app-shell{padding:0 15px}.site-header{height:60px}.app-settings-control .settings-button span{display:none}.balance-note{margin:15px 1px;font-size:12px}.setup-card,.solver-card,.history{padding:20px}.equation-card{padding:17px}.equation-display,.equation-ghost{min-height:105px}.history-header{align-items:start}.history-count{font-size:11px}.step-entry{padding:10px}.operation-options button span{font-size:26px}.operand-input{padding:6px}.advance-button{flex-basis:108px;padding:9px;font-size:11px}.execute-and-simplify-button{padding:9px;font-size:11px}}@media (width<=650px){.step-list li{grid-template-columns:22px 34px minmax(0,1fr)}.step-detail{grid-column:3}}@media (width<=850px){.site-header{grid-template-columns:35px minmax(0,1fr);height:auto;min-height:68px;padding:14px 0;display:grid}.brand-name{padding-right:166px}.header-controls{grid-column:1/-1;justify-content:space-between;width:100%;margin-left:0}.header-controls .app-settings-control{margin-left:0}.is-focused .brand-name{grid-column:1/-1}}@media (width<=500px){.solver-controls{gap:8px}.solver-actions{flex-wrap:nowrap;flex:none;gap:6px}.solver-actions button{padding:8px}.solver-action-label{display:none}.step-execution-actions{flex:1}}@container (width<=500px){.step-entry-main{grid-template-columns:minmax(0,1fr);gap:14px;min-height:280px}.step-kind-options{grid-template-columns:repeat(3,44px);grid-auto-rows:44px;min-height:44px}.step-kind-options button{justify-content:center;padding:8px}.step-kind-label{display:none}.transformation-controls{grid-template-columns:44px minmax(32px,90px) max-content;gap:6px}.operation-options{gap:6px}.operand-adjustments button{min-width:25px}}@media (prefers-reduced-motion:reduce){.equation-ghost{display:none}.equation-incoming .token-new,.equation-incoming .token-changed,.equation-incoming mark.highlight-new,.equation-incoming mark.highlight-changed,.is-merging .equation-incoming .token-merge-result,.is-merging .equation-incoming .token-merge-result mark{animation:none}.equation-display mark{transition:none}}:root[data-theme=happy]{color:#343458;background:#fff1cc}[data-theme=happy] .site-header{border-color:#e6c883}[data-theme=happy] .brand-mark{color:#fff;background:#7152b5;border-radius:12px}[data-theme=happy] .balance-note{color:#656080}[data-theme=happy] .setup-card{background:#ffe6d4;border-color:#edbea3}[data-theme=happy] .history{background:#e8dff7;border-color:#cdbbe6}[data-theme=happy] .solver-card{background:#fffefa;border-color:#d8c181;box-shadow:0 16px 42px #8d621c1f}[data-theme=happy] .section-number{color:#6c501b;background:#ffe293}[data-theme=happy] .difficulty-buttons button{color:#49416b;border-color:#efcbb6}[data-theme=happy] .difficulty-buttons button:hover{background:#fff8ec;border-color:#c29bdc}[data-theme=happy] .difficulty-buttons small{color:#746781}[data-theme=happy] .modification-hint,[data-theme=happy] .toggle-row small,[data-theme=happy] .divider{color:#827064}[data-theme=happy] .button-icon{color:#9c6222;background:#ffe4b0}[data-theme=happy] .difficulty-buttons button:nth-child(2) .button-icon{color:#3f6eb1;background:#dcecff}[data-theme=happy] .difficulty-buttons button:nth-child(3) .button-icon{color:#8052ad;background:#eddcff}[data-theme=happy] .settings-button,[data-theme=happy] .theme-control select,[data-theme=happy] .modification-buttons button,[data-theme=happy] .operand-adjustments button,[data-theme=happy] .input-row button,[data-theme=happy] .solver-actions button:not(:disabled){color:#624589;background:#fffaf0;border-color:#d7c3e8}[data-theme=happy] .settings-button:hover,[data-theme=happy] .settings-button[aria-expanded=true],[data-theme=happy] .modification-buttons button:hover,[data-theme=happy] .operand-adjustments button:hover,[data-theme=happy] .input-row button:hover{background:#f0e7ff;border-color:#a98bcf}[data-theme=happy] .copy-button{color:#756d64;background:0 0;border-color:#ded7c9}[data-theme=happy] .copy-button:hover{color:#5c5751;background:#f1eee5;border-color:#c3bdaf}[data-theme=happy] .theme-control,[data-theme=happy] .syntax-help-button{color:#624589}[data-theme=happy] .settings-popover,[data-theme=happy] .app-settings-popover,[data-theme=happy] .input-help{background:#fffaf0;border-color:#d7c3e8}[data-theme=happy] .language-switch{background:#f0e4cb;border-color:#e1ceaa}[data-theme=happy] .language-switch button[aria-pressed=true]{color:#624589;background:#fffaf0}[data-theme=happy] .equation-card{background:#fff8df;border-color:#ecd99e}[data-theme=happy] .equation-meta{color:#807149}[data-theme=happy] .equation-display,[data-theme=happy] .equation-ghost,[data-theme=happy] .equation-display mark,[data-theme=happy] .equation-ghost mark{color:#343458}[data-theme=happy] .step-entry{background:#ecf6ff;border-color:#a8c8e3}[data-theme=happy] .step-entry-label,[data-theme=happy] .operand-label{color:#456283}[data-theme=happy] .step-kind-options button,[data-theme=happy] .operation-options button{color:#355880;background:#e1efff;border-color:#94b8dd}[data-theme=happy] .step-kind-options button:hover,[data-theme=happy] .operation-options button:hover{background:#d5e6ff}[data-theme=happy] .step-kind-options button[aria-pressed=true],[data-theme=happy] .operation-options button[aria-pressed=true]{color:#fff;background:#4d6fbc;border-color:#4d6fbc}[data-theme=happy] .check-step-button,[data-theme=happy] .focus-toggle,[data-theme=happy] .advance-button.ready-to-execute{color:#fff;background:#7152b5;border-color:#7152b5}[data-theme=happy] .check-step-button:hover:not(:disabled),[data-theme=happy] .focus-toggle:hover,[data-theme=happy] .advance-button.ready-to-execute:hover:not(:disabled){background:#5b3d98}[data-theme=happy] .check-step-button:disabled{background:#b3a5d0}[data-theme=happy] .advance-button:not(.ready-to-execute){color:#715420;background:#fff4bd;border-color:#d7b861}[data-theme=happy] .execute-and-simplify-button{color:#624589;background:#e7dcff;border-color:#b09acf}[data-theme=happy] .execute-and-simplify-button:hover{background:#d9c9fa}[data-theme=happy] .focus-box:not(.result-box){background:#fff1d9;border-color:#e8c38b}[data-theme=happy] .result-box{background:#e4f6db;border-color:#a8cf96}[data-theme=happy] .result-box .result-celebration{color:#487934}[data-theme=happy] .focus-placeholder{color:#80755f;background:#fffaf0;border-color:#dccca7}[data-theme=happy] .progress-track{background:#ede4f5}[data-theme=happy] .progress-track div{background:#a68ad8}[data-theme=happy] .history-step-title{color:#624589}[data-theme=happy] .step-list li{border-color:#d5c7e8}[data-theme=happy] .step-list p,[data-theme=happy] .empty-history,[data-theme=happy] .history-count,[data-theme=happy] .history-equation-label,[data-theme=happy] .step-index{color:#736484}:root[data-theme=goth]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#f2e9ff;scrollbar-color:#785589 #17121f;background-color:#100d18;background-image:radial-gradient(at 15% 0,#31203f 0,#0000 50%),radial-gradient(at 95% 30%,#301c30 0,#0000 45%),linear-gradient(#100d18e8,#100d18e8),url(/assets/goth_bg-D0j9kgZz.jpg);background-repeat:no-repeat,no-repeat,no-repeat,repeat;background-size:auto,auto,auto,580px;background-attachment:fixed}[data-theme=goth]{--goth-ink:#f2e9ff;--goth-muted:#bcb0ca;--goth-purple:#d0a5ff;--goth-pink:#f4a8d5;--goth-border:#584369;--goth-panel:#221a31;--highlight-target:#653756;--highlight-new:#24564c;--highlight-changed:#443764}[data-theme=goth] .site-header{border-color:var(--goth-border)}[data-theme=goth] .brand-name{color:var(--goth-pink);letter-spacing:.02em}[data-theme=goth] .brand-mark{color:var(--goth-purple);background:#382246;border:1px solid #795394;border-radius:14px 14px 7px 7px}[data-theme=goth] .setup-card,[data-theme=goth] .solver-card,[data-theme=goth] .history{border-color:var(--goth-border);background:linear-gradient(145deg,#241a30,#17121f);box-shadow:0 16px 42px #08060f66,inset 0 1px #bb7bd51a}[data-theme=goth] .section-heading{padding-right:38px;position:relative}[data-theme=goth] h2{color:var(--goth-ink)}[data-theme=goth] .goth-ornament{color:var(--goth-pink);pointer-events:none;filter:drop-shadow(0 0 6px #dd75bd44);position:absolute;top:50%;right:0;transform:translateY(-50%)}[data-theme=goth] .goth-history-ornament{color:var(--goth-purple);flex-shrink:0;margin-right:auto}[data-theme=goth] .section-number{color:var(--goth-pink);background:#392641;border:1px solid #71507f;border-radius:14px 14px 7px 7px}[data-theme=goth] .balance-note,[data-theme=goth] .difficulty-buttons small,[data-theme=goth] .modification-hint,[data-theme=goth] .toggle-row small,[data-theme=goth] .divider,[data-theme=goth] .equation-meta,[data-theme=goth] .result-legend,[data-theme=goth] .focus-box p,[data-theme=goth] .step-list p,[data-theme=goth] .history-count,[data-theme=goth] .history-equation-label,[data-theme=goth] .step-index,[data-theme=goth] .empty-history{color:var(--goth-muted)}[data-theme=goth] .difficulty-buttons button,[data-theme=goth] .settings-button,[data-theme=goth] .theme-control select,[data-theme=goth] .modification-buttons button,[data-theme=goth] .input-row button,[data-theme=goth] .operand-adjustments button,[data-theme=goth] .solver-actions button{background:var(--goth-panel);border-color:var(--goth-border);color:var(--goth-purple)}[data-theme=goth] .difficulty-buttons button:hover,[data-theme=goth] .settings-button:hover,[data-theme=goth] .settings-button[aria-expanded=true],[data-theme=goth] .modification-buttons button:hover,[data-theme=goth] .input-row button:hover,[data-theme=goth] .operand-adjustments button:hover,[data-theme=goth] .solver-actions button:hover:not(:disabled){background:#34243f;border-color:#a274b5}[data-theme=goth] .copy-button{color:#b8b4bf;background:0 0;border-color:#514d59}[data-theme=goth] .copy-button:hover{color:#e2dee7;background:#302b37;border-color:#777180}[data-theme=goth] .button-icon,[data-theme=goth] .difficulty-buttons button:nth-child(2) .button-icon,[data-theme=goth] .difficulty-buttons button:nth-child(3) .button-icon{color:var(--goth-pink);background:#372441}[data-theme=goth] .difficulty-buttons button:nth-child(2) .button-icon,[data-theme=goth] .theme-control,[data-theme=goth] .syntax-help-button,[data-theme=goth] .copy-feedback{color:var(--goth-purple)}[data-theme=goth] .syntax-help-button:hover{color:var(--goth-pink)}[data-theme=goth] .settings-popover,[data-theme=goth] .app-settings-popover,[data-theme=goth] .input-help{color:var(--goth-muted);background:#251b33;border-color:#795394;box-shadow:0 14px 32px #08060f99}[data-theme=goth] .number-size-control,[data-theme=goth] .variable-display-control,[data-theme=goth] .toggle-row,[data-theme=goth] .setup-options h3{color:var(--goth-ink)}[data-theme=goth] .settings-popover .toggle-row+.toggle-row,[data-theme=goth] .number-size-control,[data-theme=goth] .variable-display-control,[data-theme=goth] .modification-options,[data-theme=goth] .step-list li{border-color:var(--goth-border)}[data-theme=goth] .divider:before,[data-theme=goth] .divider:after{background:var(--goth-border)}[data-theme=goth] .toggle-row input{accent-color:#c58aee}[data-theme=goth] .input-row input,[data-theme=goth] .operand-input,[data-theme=goth] .number-size-control select,[data-theme=goth] .variable-display-control select{color:var(--goth-ink);background:#16111f;border-color:#795394}[data-theme=goth] input::placeholder{color:#ab9ab8}[data-theme=goth] button:focus-visible,[data-theme=goth] input:focus-visible,[data-theme=goth] select:focus-visible,[data-theme=goth] .equation-token[role=button]:focus-visible{outline-color:var(--goth-pink)}[data-theme=goth] .language-switch{border-color:var(--goth-border);background:#16111f}[data-theme=goth] .language-switch button{color:var(--goth-muted)}[data-theme=goth] .language-switch button[aria-pressed=true]{color:var(--goth-purple);background:#3b284c}[data-theme=goth] .language-switch button:hover:not([aria-pressed=true]){color:var(--goth-pink)}[data-theme=goth] .equation-card{background:radial-gradient(at 50% 0,#33213f,#1b1428 75%);border-color:#795394;border-radius:40px 40px 14px 14px;box-shadow:inset 0 1px #d59efc33}[data-theme=goth] .equation-display,[data-theme=goth] .equation-ghost,[data-theme=goth] .equation-display mark,[data-theme=goth] .equation-ghost mark{color:var(--goth-ink)}[data-theme=goth] .equation-display mark.highlight-target,[data-theme=goth] .equation-ghost mark.highlight-target{background:var(--highlight-target)}[data-theme=goth] .equation-display mark.highlight-selection{background:#493565}[data-theme=goth] .equation-display mark.highlight-selection-secondary{background:#234e5a}[data-theme=goth] .equation-display mark.highlight-hover{background:#332a40}[data-theme=goth] .equation-display mark.highlight-new,[data-theme=goth] .legend-new{background:var(--highlight-new)}[data-theme=goth] .equation-display mark.highlight-changed,[data-theme=goth] .legend-changed{background:var(--highlight-changed)}[data-theme=goth] .step-entry{border-color:var(--goth-border);background:#1c1527}[data-theme=goth] .step-entry-label,[data-theme=goth] .operand-label{color:var(--goth-muted)}[data-theme=goth] .step-kind-options button,[data-theme=goth] .operation-options button{color:var(--goth-purple);background:#2d203b;border-color:#795394}[data-theme=goth] .step-kind-options button:hover,[data-theme=goth] .operation-options button:hover{background:#432c54;border-color:#b584cc}[data-theme=goth] .step-kind-options button[aria-pressed=true],[data-theme=goth] .operation-options button[aria-pressed=true],[data-theme=goth] .check-step-button,[data-theme=goth] .focus-toggle,[data-theme=goth] .advance-button.ready-to-execute{color:#fff;background:linear-gradient(135deg,#72419a,#833f72);border-color:#bd82ce}[data-theme=goth] .check-step-button:hover:not(:disabled),[data-theme=goth] .focus-toggle:hover,[data-theme=goth] .advance-button.ready-to-execute:hover:not(:disabled){background:#864a9e}[data-theme=goth] .focus-toggle[aria-checked=true] .focus-toggle-track{background:var(--goth-pink)}[data-theme=goth] .focus-toggle[aria-checked=true] .focus-toggle-track:after{background:#382246}[data-theme=goth] .advance-button:not(.ready-to-execute),[data-theme=goth] .execute-and-simplify-button{color:var(--goth-pink);background:#37243f;border-color:#936081}[data-theme=goth] .advance-button:hover:not(:disabled):not(.ready-to-execute),[data-theme=goth] .execute-and-simplify-button:hover{border-color:var(--goth-pink);background:#4d2c4e}[data-theme=goth] .check-step-button:disabled,[data-theme=goth] .advance-button:disabled,[data-theme=goth] .solver-actions button:disabled{color:#a99bb6;box-shadow:none;background:#292331;border-color:#52455f}[data-theme=goth] .focus-box,[data-theme=goth] .result-box{background:linear-gradient(135deg,#30203d,#271a30);border-color:#795394}[data-theme=goth] .focus-placeholder{border-color:var(--goth-border);color:var(--goth-muted);background:#1b1425}[data-theme=goth] .step-title,[data-theme=goth] .step-title.simplification,[data-theme=goth] .step-title.transformation,[data-theme=goth] .result-box .step-title,[data-theme=goth] .history-step-title{color:var(--goth-purple)}[data-theme=goth] .step-title.distribution,[data-theme=goth] .result-box .result-celebration{color:var(--goth-pink)}[data-theme=goth] .step-subtitle,[data-theme=goth] .result-box .result-outcome{color:var(--goth-ink)}[data-theme=goth] .guess-forward{color:var(--goth-ink);background:#533274;border-color:#a675c3}[data-theme=goth] .guess-detour{color:#ffd1e4;background:#492b40;border-color:#b878a0}[data-theme=goth] .input-error,[data-theme=goth] .step-feedback{color:#ffb5c4}[data-theme=goth] .progress-track{background:#32233f}[data-theme=goth] .progress-track div{background:linear-gradient(90deg,#a373d7,#ee8abd)}[data-theme=goth] .history-icon{color:var(--goth-purple);background:#392641}[data-theme=goth] .history-icon.distribution,[data-theme=goth] .history-icon.answer{color:var(--goth-pink)}[data-theme=goth] .step-equation,[data-theme=goth] .answer-step .step-equation,[data-theme=goth] .verification-equation,[data-theme=goth] .history-verification{color:var(--goth-ink)}[data-theme=goth] .step-before,[data-theme=goth] .original-equation,[data-theme=goth] .history-original-equation,[data-theme=goth] .original-equation small,[data-theme=goth] .verification-equation small{color:var(--goth-muted)}[data-theme=goth] .original-equation,[data-theme=goth] .verification-equation{border-color:var(--goth-border);background:#1b1425}[data-theme=goth] .verification-equation mark,[data-theme=goth] .history-verification mark{color:var(--goth-ink);background:#493565}
