.life-math-shell{--lm-blue:#2865d8;--lm-blue-soft:#eaf2ff;--lm-ink:#18243b;--lm-muted:#66758d;--lm-line:#d9e1ec;background:#fbfcfe;color:var(--lm-ink);display:grid;grid-template-rows:66px minmax(0,1fr);height:100dvh;min-height:640px;overflow:hidden}.life-math-topbar{align-items:center;background:#fff;border-bottom:1px solid var(--lm-line);display:grid;gap:24px;grid-template-columns:minmax(240px,1fr) minmax(260px,420px) minmax(180px,1fr);padding:9px 20px;z-index:3}.life-math-brand,.life-math-progress,.life-math-actions,.life-math-scene,.life-math-modal-actions{align-items:center;display:flex}.life-math-brand{gap:10px}.life-math-back,.life-math-mark{align-items:center;border:0;border-radius:10px;display:flex;height:42px;justify-content:center;width:42px}.life-math-back{background:#f1f4f8;font-size:24px}.life-math-mark{background:var(--lm-blue);color:#fff;font-size:21px}.life-math-brand div{display:grid;line-height:1.15}.life-math-brand span,.life-math-progress span{color:var(--lm-muted);font-size:12px;font-weight:700}.life-math-brand strong{font-size:16px}.life-math-progress{gap:10px}.life-math-progress div{background:#e8edf4;border-radius:99px;flex:1;height:8px;overflow:hidden}.life-math-progress i{background:var(--lm-blue);display:block;height:100%}.life-math-progress strong{font-size:13px;white-space:nowrap}.life-math-sound{background:transparent;border:0;color:#465875;font-weight:700;justify-self:end;min-height:44px}.life-math-workspace{display:grid;grid-template-columns:minmax(560px,1.25fr) minmax(390px,.75fr);min-height:0;overflow:hidden}.life-math-problem{background:#fff;display:flex;flex-direction:column;gap:16px;min-width:0;overflow-y:auto;padding:clamp(18px,2.2vw,32px)}.life-math-scene{align-items:stretch;border-bottom:1px solid var(--lm-line);gap:22px;padding-bottom:18px}.life-math-scene img{border-radius:16px;height:164px;object-fit:cover;width:250px}.life-math-scene-copy{align-content:center;display:grid;gap:10px;min-width:0}.life-math-scene-copy>span{color:var(--lm-blue);font-size:13px;font-weight:800}.life-math-scene-copy p{font-size:clamp(20px,1.8vw,27px);font-weight:720;line-height:1.62;margin:0}.life-math-read{background:var(--lm-blue-soft);border:0;border-radius:10px;color:#17449d;font-weight:800;justify-self:start;min-height:44px;padding:0 15px}.life-math-section{display:grid;gap:12px}.life-math-section-title{align-items:center;display:flex;gap:10px}.life-math-section-title>span{align-items:center;background:var(--lm-blue);border-radius:50%;color:#fff;display:flex;font-weight:900;height:29px;justify-content:center;width:29px}.life-math-section-title div{display:grid}.life-math-section-title strong{font-size:16px}.life-math-section-title small{color:var(--lm-muted)}.life-math-targets{display:flex;flex-wrap:wrap;gap:8px;padding-left:39px}.life-math-targets button{background:#f3f6fa;border:1px solid transparent;border-radius:10px;font-weight:750;min-height:42px;padding:8px 12px}.life-math-targets button.selected{background:var(--lm-blue-soft);border-color:#91b2ee;color:#17449d}.life-math-formula{border-top:1px solid var(--lm-line);padding-top:16px}.life-math-answer-panel{margin-left:39px}.life-math-answer-surface{background:#fff;border:0;border-bottom:1px solid #dce3ed;cursor:text;display:grid;gap:16px;grid-template-columns:auto minmax(0,1fr);min-height:116px;padding:22px 8px 18px;text-align:left;width:100%}.life-math-answer-surface span{color:var(--lm-muted);font-size:13px;font-weight:800}.life-math-answer-surface output{color:#8a96a8;font-family:ui-monospace,monospace;font-size:clamp(22px,2.2vw,32px);font-weight:800;overflow-wrap:anywhere;text-align:left}.life-math-answer-surface output.has-value{color:var(--lm-ink)}.life-math-keyboard{background:#f5f7fa;border:1px solid var(--lm-line);border-radius:0 0 18px 18px;display:grid;gap:10px;padding:10px 14px 14px}.life-math-keyboard-toolbar{display:flex;justify-content:flex-end}.life-math-keyboard-toolbar button{background:#eef2f7;border:0;border-radius:99px;color:var(--lm-muted);padding:5px 9px}.life-math-key-row{display:flex;flex-wrap:wrap;gap:8px;min-height:48px}.life-math-key-row button,.life-math-delete{background:#fff;border:1px solid #cbd6e5;border-radius:10px;color:#2f405b;font-size:18px;font-weight:850;min-height:44px;min-width:54px;padding:0 12px}.life-math-key-row button.selected{background:var(--lm-blue);border-color:var(--lm-blue);color:#fff}.life-math-keyboard-actions{border-top:1px solid #dce3ed;display:flex;justify-content:flex-end;padding-top:10px}.life-math-delete{font-size:13px}.life-math-actions{gap:10px;justify-content:flex-end;margin-top:auto}.life-math-explain,.life-math-check{border:0;border-radius:11px;font-weight:850;min-height:48px;padding:0 18px}.life-math-explain{background:#fff4df;color:#935b09}.life-math-check{background:var(--lm-blue);color:#fff}.life-math-calculator-pane{align-items:center;background:#e8edf3;display:flex;justify-content:center;min-height:0;overflow-y:auto;padding:clamp(18px,2.5vw,36px)}.life-math-calculator{background:#e5e1d8;border:1px solid #c9c5bc;border-radius:22px;box-shadow:0 18px 38px rgba(32,43,61,.2),inset 0 2px #ffffffd6;display:grid;gap:13px;max-width:440px;padding:clamp(18px,2vw,26px);width:100%}.life-math-calculator-brand{display:flex;justify-content:space-between}.life-math-calculator-brand strong{letter-spacing:.08em}.life-math-calculator-screen{background:#bfcbad;border:7px solid #66706f;border-radius:9px;display:flex;flex-direction:column;min-height:104px;padding:12px 14px;text-align:right}.life-math-calculator-screen small{font-family:ui-monospace,monospace;min-height:20px}.life-math-calculator-screen strong{font-family:ui-monospace,monospace;font-size:clamp(40px,4vw,58px);font-weight:500;line-height:1}.life-math-calculator-keys{display:grid;gap:10px;grid-template-columns:repeat(4,1fr)}.life-math-calculator-keys button{background:#70787a;border:0;border-bottom:5px solid #3f4648;border-radius:10px;color:#fff;font-size:clamp(21px,2vw,28px);font-weight:780;min-height:clamp(54px,7vh,68px)}.life-math-calculator-keys button.operator{background:#3d474d}.life-math-calculator-keys button.clear{background:#bf5154}.life-math-calculator-keys button.equals{background:var(--lm-blue)}.life-math-use-result{background:var(--lm-blue);border:0;border-radius:11px;color:#fff;font-weight:850;min-height:50px}.life-math-use-result:disabled{background:#aab2bc}.life-math-modal-backdrop{align-items:center;background:#141d2c85;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:100}.life-math-modal{background:#fff;border-radius:20px;box-shadow:0 24px 64px rgba(18,31,52,.28);display:grid;gap:10px;max-width:540px;padding:30px;position:relative;text-align:center;width:100%}.life-math-modal>span{color:var(--lm-blue);font-weight:850}.life-math-modal h2{font-size:25px;margin:0}.life-math-modal p{color:#52627a;font-size:17px;line-height:1.7}.life-math-modal-actions{gap:10px;justify-content:center}.life-math-modal-actions button{background:#edf2f8;border:0;border-radius:10px;font-weight:850;min-height:48px;padding:0 17px}.life-math-modal-actions .primary{background:var(--lm-blue);color:#fff}.life-math-complete{align-items:center;display:flex;flex-direction:column;gap:18px;justify-content:center;min-height:100%;padding:40px;text-align:center}.life-math-complete h1{font-size:38px;margin:0}.life-math-complete p{color:var(--lm-muted);font-size:18px}.life-math-complete button{background:var(--lm-blue);border:0;border-radius:12px;color:#fff;font-weight:800;min-height:50px;padding:0 24px}@media(max-width:820px){.life-math-shell{height:auto;min-height:100dvh;overflow:visible}.life-math-topbar{gap:10px;grid-template-columns:1fr auto}.life-math-progress{grid-column:1/-1;grid-row:2}.life-math-sound{font-size:0;min-width:44px}.life-math-workspace{display:flex;flex-direction:column;overflow:visible}.life-math-problem,.life-math-calculator-pane{overflow:visible}}@media(max-width:580px){.life-math-topbar{padding:8px 12px}.life-math-mark{display:none}.life-math-problem{padding:16px 13px}.life-math-scene{display:grid}.life-math-scene img{height:150px;width:100%}.life-math-targets,.life-math-answer-panel{margin-left:0;padding-left:0}.life-math-answer-surface{grid-template-columns:1fr}.life-math-targets{display:grid}.life-math-actions,.life-math-modal-actions{align-items:stretch;flex-direction:column}.life-math-actions button,.life-math-modal-actions button{width:100%}.life-math-calculator-pane{padding:14px 10px 28px}.life-math-modal-backdrop{align-items:flex-end;padding:10px}}
