:root{--d-purple:#7b2fbe;--d-ink:#271a35;--d-muted:#685a75;--d-line:#e6d6f3;--d-tint:#f5eefb}body{background:#faf8fd;color:var(--d-ink)}.integral-page{max-width:1180px;margin:0 auto;padding:48px 24px 80px}.integral-page h1{font-size:clamp(32px,4.2vw,52px);letter-spacing:-1.5px;line-height:1.12;margin:0 0 28px}.integral-page h2{font-size:clamp(27px,3vw,36px);letter-spacing:-.7px;line-height:1.2;margin:0 0 22px}.integral-page h3{font-size:21px;margin:0 0 12px}.integral-page p{font-size:18px;line-height:1.7;margin:0 0 18px}.integral-page button,.integral-page input,.integral-page select{font:inherit}.integral-page button{cursor:pointer}.integral-page [hidden]{display:none!important}.integral-page :focus-visible{outline:3px solid #a673d5;outline-offset:4px}.integral-app{border:1px solid var(--d-line);border-radius:28px;background:white;box-shadow:0 16px 54px #64329209;overflow:hidden}.calc-top{display:grid;grid-template-columns:1.05fr 1fr;align-items:stretch}.calc-controls{padding:30px;border-right:1px solid var(--d-line);min-width:0}.input-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.input-heading label{font-size:20px;font-weight:750}.text-button{border:0;background:none;color:var(--d-purple);padding:8px;font-size:16px!important;font-weight:650}.function-input{width:100%;height:64px;border:2px solid #cdb2e2;border-radius:14px;padding:12px 16px;color:var(--d-ink);background:#fff;font-size:24px!important;min-width:0}.function-input[aria-invalid]{border-color:#b53a53}.formula-preview{display:flex;align-items:center;min-height:67px;overflow:auto;font-size:23px;padding:12px 4px;color:var(--d-muted)}.math-toolbar{display:flex;flex-wrap:wrap;gap:7px}.math-toolbar button,.samples button{border:1px solid var(--d-line);border-radius:9px;background:#fbf8fd;padding:9px 12px;color:#5d277f;font-size:16px}.math-toolbar button:hover,.samples button:hover{background:#efe0fa;border-color:#b383d6}.input-hint{font-size:15px!important;color:var(--d-muted);line-height:1.55!important;margin:13px 0 22px!important}.settings{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px}.settings label,.point-fields label{display:flex;flex-direction:column;gap:8px;font-size:16px;font-weight:650}.settings .wide{grid-column:1/-1}.settings select,.settings input,.point-fields input{width:100%;height:52px;border:1px solid #d6c3e6;background:white;border-radius:11px;padding:10px 12px;color:var(--d-ink);min-width:0;font-size:17px}.settings small{font-size:15px;font-weight:400;line-height:1.5;color:var(--d-muted)}.point-toggle{display:flex;gap:10px;align-items:center;font-size:17px;margin:22px 0 16px;cursor:pointer}.point-toggle input{accent-color:var(--d-purple);width:20px;height:20px}.point-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}.calculate-button{border:0;border-radius:13px;background:var(--d-purple);color:white;font-weight:750;padding:17px 20px;width:100%;font-size:19px!important;box-shadow:0 7px 18px #7b2fbe24}.calculate-button:hover{background:#63229e}.calculate-button:disabled{opacity:.65;cursor:wait}.calc-status{font-size:15px;line-height:1.5;min-height:45px;margin-top:15px;color:var(--d-muted)}.calc-status.error{color:#a3213b}.calc-status.success{color:#237164}.samples{margin-top:12px;display:flex;flex-wrap:wrap;gap:7px}.samples>span{display:block;width:100%;font-size:15px;color:var(--d-muted);margin-bottom:3px}.result-panel{padding:30px;background:linear-gradient(145deg,#f9f4fd,#f0e4f8);display:flex;flex-direction:column;min-width:0}.result-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.result-head img{width:116px;height:116px;object-fit:contain}.eyebrow{color:var(--d-purple);font-size:14px;font-weight:750;text-transform:uppercase;letter-spacing:1.2px}.result-head h2{font-size:27px;margin:8px 0 0}.result-label{font-size:16px;color:var(--d-muted);margin:28px 0 15px;line-height:1.5}.answer{font-size:clamp(25px,3vw,34px);overflow-x:auto;padding:26px 19px;background:white;border:1px solid #e3cfee;border-radius:16px;min-height:118px;display:flex;align-items:center}.answer math{flex:none}.answer-placeholder{font-size:18px!important;line-height:1.6!important;color:var(--d-muted);margin:0!important}.copy-result{align-self:flex-start;margin:12px 0 15px}.domain-note{font-size:16px!important;line-height:1.65!important;color:var(--d-muted);margin-top:auto!important;padding-top:25px}.point-result{display:flex;flex-direction:column;gap:9px;background:#e5f3ef;border:1px solid #c2e3d8;color:#185747;padding:20px;border-radius:14px;font-size:16px;line-height:1.6}.point-result b{font-size:27px}.point-warning{background:#fff5de;border-color:#f0dcab;color:#714910}.solution{border-top:1px solid var(--d-line);padding:30px}.solution-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.solution-heading h2{font-size:27px;margin:0}.solution-heading>span{color:var(--d-muted);font-size:15px}.round{border:1px solid var(--d-line);border-radius:16px;margin-top:12px;overflow:hidden}.round summary,.faq-grid summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:18px;font-weight:700;padding:21px}.round summary::-webkit-details-marker,.faq-grid summary::-webkit-details-marker{display:none}.round summary>span,.faq-grid summary>span{font-size:25px;font-weight:400;color:var(--d-purple)}.round[open] summary>span,.faq-grid details[open] summary>span{transform:rotate(45deg)}.round[open] summary{background:#f9f5fd;border-bottom:1px solid var(--d-line)}.round-body{padding:24px}.step-source>span{font-size:15px;color:var(--d-muted)}.math-scroll{overflow-x:auto;font-size:23px;padding:14px 2px}.round ol{padding-left:26px;margin:20px 0}.round li{padding:18px 0 18px 10px;border-top:1px solid #eee5f4;font-size:16px;line-height:1.6}.round li::marker{color:var(--d-purple);font-weight:750}.step-equation{display:flex;align-items:center;gap:14px;padding:17px 2px 5px}.step-equation>*{flex:none}.derivative-of{display:flex;flex-direction:column;gap:8px;align-items:center}.derivative-of small{font:12px/1.2 system-ui;color:var(--d-muted)}.stage-answer{border-left:3px solid var(--d-purple);background:#f7f0fc;padding:17px 22px;border-radius:0 12px 12px 0}.info-section{margin-top:76px}.definition-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:42px;align-items:center}.definition-art{margin:0;border-radius:24px;overflow:hidden;background:#f1eafa}.definition-art img{display:block;width:100%;height:auto}.definition-formula{border-left:4px solid #27aaa5;padding:15px 20px;background:#edf8f6;border-radius:0 14px 14px 0;font-size:24px;overflow:auto}.definition-formula small{display:block;color:#46665f;font:16px/1.6 system-ui;margin-top:10px}.section-title{display:flex;align-items:center;gap:16px;margin-bottom:22px}.section-title img{width:76px;height:76px;object-fit:contain;flex:none}.section-title h2{margin:0}.rule-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px}.rules-list{border-top:1px solid var(--d-line)}.rule-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:20px 0;border-bottom:1px solid var(--d-line);font-size:17px}.rule-row math{font-size:23px}.worked-example{background:#f0e5f9;border-radius:22px;padding:28px}.worked-example .math-scroll{font-size:25px}.worked-example p{font-size:17px}.source-note{font-size:15px!important;color:var(--d-muted);margin-top:18px!important}.source-note a{color:#6f2aa9;text-decoration:underline}.guide-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;margin-top:26px}.guide-step{border-top:3px solid #dcc5ef;padding-top:20px}.guide-step>b{font-size:16px;color:var(--d-purple);letter-spacing:1px;display:block;margin-bottom:14px}.guide-step h3{font-size:20px}.guide-step p{font-size:17px;margin:0}.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.faq-grid details{border:1px solid var(--d-line);border-radius:17px;background:white;min-width:0}.faq-grid summary{min-height:100px;line-height:1.5}.faq-grid details>p{padding:0 22px 22px;margin:0;font-size:17px}.faq-grid code,.guide-steps code,.worked-example code{font-size:.95em;background:#ffffff80;border-radius:5px;padding:2px 4px;overflow-wrap:anywhere}.no-script{padding:24px;color:#a3213b}.loading{animation:pulse 1s ease-in-out infinite alternate}@keyframes pulse{to{opacity:.5}}@media(prefers-reduced-motion:reduce){.loading{animation:none}}@media(max-width:900px){.calc-controls,.result-panel{padding:24px}.calc-top{grid-template-columns:1fr 1fr}.definition-layout{gap:24px}.guide-steps{grid-template-columns:1fr 1fr}.result-head img{width:90px;height:90px}}@media(max-width:720px){.integral-page{padding:30px 16px 56px}.integral-page h1{letter-spacing:-.8px;margin-bottom:22px}.calc-top,.definition-layout,.rule-layout,.faq-grid{grid-template-columns:1fr}.calc-controls{border-right:0;border-bottom:1px solid var(--d-line)}.calc-controls,.result-panel,.solution{padding:22px}.result-label{margin-top:12px}.domain-note{padding-top:18px}.result-head img{width:90px;height:90px}.solution-heading{align-items:flex-start;flex-direction:column}.solution-heading h2{font-size:25px}.round-body{padding:16px}.round summary{padding:17px;font-size:17px}.info-section{margin-top:54px}.definition-art{max-width:540px;order:2}.section-title{gap:10px}.section-title img{width:64px;height:64px}.section-title h2{font-size:28px}.rule-row{flex-wrap:wrap}.guide-steps{gap:22px 18px}.guide-step h3{font-size:19px}.guide-step p{font-size:16px}.faq-grid summary{min-height:90px}.worked-example{padding:23px}.answer{font-size:27px}.settings{gap:16px 12px}}@media(max-width:370px){.calc-controls,.result-panel,.solution{padding:17px}.guide-steps{grid-template-columns:1fr}.section-title h2{font-size:25px}}

.top-settings{margin-bottom:25px;grid-template-columns:1.4fr 1fr}.input-heading{gap:8px}.input-heading label{font-size:18px}.formula-preview{min-height:92px}.integral-expression{display:flex;align-items:center;gap:10px;flex:none}.integral-expression>span:first-child{font-family:serif;font-size:48px;color:#7b2fbe}.integral-expression .dx{font-family:serif;font-size:24px}.result-panel{background:linear-gradient(145deg,#faf5fe,#eee0f8)}.result-head h2{font-size:28px;line-height:1.2}.result-kicker{color:#7b2fbe;font-size:13px;letter-spacing:1.2px;font-weight:750}.result-head img{width:112px;height:112px}.answer-math{display:flex;align-items:center;gap:12px;white-space:nowrap}.numeric-answer{display:flex;flex-direction:column;gap:15px}.numeric-answer small{font-size:16px;color:#685a75}.numeric-answer b{font-size:33px;overflow-wrap:anywhere}.value-details{background:#ffffff90;border-top:3px solid #bb90dc;padding:22px;border-radius:0 0 14px 14px;margin-top:16px;line-height:1.65;font-size:16px}.value-details p{font-size:17px;margin:10px 0}.value-details small{display:block;font-size:15px;color:#685a75;margin-top:10px}.value-details span{display:block}.bounds{margin:0 0 22px}.bounds small{grid-column:1/-1;font-size:15px;line-height:1.5;color:#685a75}.solution-source{background:#f7f2fb;border-radius:14px;padding:16px 22px;margin:0 0 20px}.solution-source>span{font-size:15px;color:#685a75}.round summary{justify-content:flex-start}.round summary>span:last-child{margin-left:auto}.round summary>.step-number{font-size:15px;font-weight:750;transform:none!important;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#f0e4fa;flex:none}.round-body p{font-size:17px}.substitution-line{display:flex;align-items:center;gap:10px;overflow:auto;font-size:22px;background:#edf7f4;border-radius:12px;padding:16px;margin-bottom:18px}.substitution-line>*{flex:none}.definite-step{background:#edf7f4;border-left:3px solid #25a59e;border-radius:0 14px 14px 0;padding:22px;margin-top:20px}.definite-step p{font-size:17px;margin:10px 0}.definite-step b{font-size:26px}.supported-section{display:grid;grid-template-columns:1.08fr 1fr;gap:40px;align-items:center}.supported-row{border-top:1px solid #e6d6f3;padding:17px 0;display:grid;grid-template-columns:155px 1fr;gap:16px;font-size:17px;line-height:1.6}.supported-row b{color:#6a299f}.supported-art{margin:0;overflow:hidden;border-radius:24px;background:#f0e4f8}.supported-art img{display:block;width:100%;height:auto}.supported-art figcaption{padding:23px 26px;font-size:17px;line-height:1.65;color:#5f4b6c}.guide-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}.example-line{display:grid;grid-template-columns:280px 1fr;gap:32px;border-top:1px solid #dfcdeb;padding:30px 0}.example-heading{display:flex;align-items:flex-start;gap:16px}.example-heading>b{font-size:28px;color:#8b4bbc;font-weight:500}.example-heading h3{font-size:22px}.example-heading span{font-size:16px;line-height:1.6;color:#685a75}.example-formula{display:flex;align-items:center;gap:12px;font-size:25px;overflow:auto;background:#fff;border:1px solid #e6d6f3;padding:22px;border-radius:14px;margin-bottom:17px;white-space:nowrap}.example-formula>*{flex:none}.example-formula>span:first-child{font-size:38px;color:#7b2fbe;font-family:serif}.example-line p{font-size:17px;margin-bottom:10px}.faq-grid summary{font-size:18px}.domain-note{margin-top:18px!important;padding-top:15px}.guide-step code{overflow-wrap:anywhere}@media(max-width:900px){.supported-section{gap:24px}.supported-row{grid-template-columns:1fr;gap:4px}.example-line{grid-template-columns:230px 1fr;gap:22px}.result-head img{width:90px;height:90px}.result-head h2{font-size:25px}}@media(max-width:720px){.supported-section,.example-line{grid-template-columns:1fr}.supported-art{max-width:540px}.guide-steps{grid-template-columns:1fr;gap:24px}.guide-step p{font-size:17px}.example-line{gap:20px}.example-formula{padding:18px;font-size:23px}.value-details{padding:19px}.input-heading{flex-wrap:wrap}.result-head h2{font-size:26px}.result-head img{width:85px;height:85px}.top-settings{grid-template-columns:1.4fr 1fr}.solution-heading h2{font-size:25px}.integral-page .function-input{font-size:22px!important}.supported-row{grid-template-columns:1fr}.result-kicker{font-size:12px}.numeric-answer b{font-size:29px}.round summary{font-size:17px}.step-equation{font-size:21px}}
.example-line>*{min-width:0}.example-formula{min-width:0;max-width:100%}.supported-copy{min-width:0}@media(max-width:720px){.top-settings{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr)}.top-settings select{font-size:16px}.top-settings label{font-size:15px}.example-line{grid-template-columns:minmax(0,1fr)}}