:root {
  color-scheme: light;
  --ink: #202549;
  --muted: #77809b;
  --blue: #5154dc;
  --blue-dark: #403ec6;
  --turquoise: #13b2ae;
  --line: #e6eaf3;
  --bg: #f6f8fd;
  --card: #fff;
  --purple-light: #eff0ff;
  --shadow: 0 10px 40px rgba(32, 41, 94, .058);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {background:var(--bg);color:var(--ink);margin:0;min-width:320px;line-height:1.5}
button,input {font:inherit}
button {cursor:pointer}
button:disabled {cursor:default;opacity:.55}
button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible {outline:3px solid #19bbb1;outline-offset:3px}
[hidden] {display:none!important}
.page-shell {max-width:1270px;padding:0 35px;margin:0 auto}
.site-header {height:88px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand {display:inline-flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none}
.brand-symbol {height:42px;width:42px;display:grid;grid-template-columns:repeat(2,1fr);gap:3px;transform:rotate(-8deg)}
.brand-symbol span {display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:900;color:white;background:#5453df;border-radius:9px 4px 5px 4px;line-height:1}
.brand-symbol span:last-child {background:#21b3b0;border-radius:4px 8px 4px 9px}
.brand-name {font-size:27px;font-weight:850;letter-spacing:-1.6px}
.brand-name>span:first-child{color:#5453df}
.brand-dot {color:#16bbb3}
.header-right {display:flex;align-items:center;gap:23px;font-size:12px;font-weight:700}
.offline-mark {color:#708098;display:flex;align-items:center;gap:7px}
.offline-dot {width:8px;height:8px;background:#25bfa4;display:inline-block;border-radius:50%;box-shadow:0 0 0 3px #25bfa41e}
.header-pill {background:#ebeefe;border:1px solid #dfe4fa;border-radius:25px;padding:10px 16px;color:#5057ab;white-space:nowrap}
.header-pill span {color:#a166db;margin-left:4px}
.hero {min-height:218px;background:linear-gradient(110deg,#5153dc 0%,#6262e2 58%,#7272e6 100%);border-radius:26px;padding:35px 48px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;box-shadow:0 12px 26px rgba(72,75,198,.13)}
.hero:before,.hero:after {content:"";position:absolute;border:1px solid #ffffff19;border-radius:50%;width:350px;height:350px;right:110px;top:-245px}
.hero:after {width:280px;height:280px;right:-110px;top:65px;background:#ffffff0a;border:0}
.hero-copy {z-index:1;max-width:700px}
.hero-kicker {font-size:11px;letter-spacing:2.1px;font-weight:800;color:#e9e8ff;display:inline-flex;align-items:center;gap:9px}
.kicker-star {color:#ffdf6c;font-size:18px}
.hero h1 {font-size:clamp(28px,3.1vw,43px);letter-spacing:-1.5px;line-height:1.16;margin:12px 0 11px;color:#fff;font-weight:850}
.hero h1 span {color:#d4faf2}
.hero p {font-size:14.5px;color:#edf0ff;margin:0;max-width:560px;line-height:1.65}
.hero-art {width:270px;min-width:225px;height:170px;position:relative;margin-right:8px;z-index:1}
.hero-tile {position:absolute;right:15px;top:42px;width:193px;height:113px;background:#fff;color:#4e4eca;transform:rotate(-9deg);border-radius:18px;box-shadow:0 15px 0 #ffffff20,0 17px 28px #1c247c33;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:29px;line-height:1.25;letter-spacing:1px;font-weight:800}
.hero-tile span {color:#26b9ad}
.hero-bubble {position:absolute;top:-2px;right:18px;width:76px;height:76px;background:#fce38a;color:#4547ad;border-radius:22px;display:grid;place-items:center;font-size:27px;font-weight:850;transform:rotate(13deg);box-shadow:0 7px 19px #24258b23;z-index:3}
.hero-spark {position:absolute;bottom:5px;left:25px;color:#fae69a;font-size:37px}
.hero-connector {position:absolute;border:2px dashed #ccceff70;width:175px;height:125px;border-radius:50%;transform:rotate(22deg);left:8px;top:7px}
.section-heading {display:flex;justify-content:space-between;gap:20px;align-items:end;margin:34px 0 15px}
.small-label {font-size:10px;letter-spacing:1.4px;font-weight:800;color:#939bb3}
.section-heading h2 {font-size:22px;letter-spacing:-.65px;margin:2px 0 0;font-weight:850}
.section-heading p {font-size:13px;color:#8991a6;margin:0 0 4px}
.tablist {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}
.tab {border:1px solid var(--line);background:#fff;box-shadow:0 2px 7px #272e7206;min-height:63px;padding:10px 11px;border-radius:14px;display:flex;align-items:center;gap:9px;color:#59627e;text-align:left;font-weight:740;font-size:12.7px;line-height:1.3;transition:background .15s,transform .15s,border-color .15s}
.tab:hover {border-color:#b1bcf8;transform:translateY(-1px)}
.tab.active {color:#fff;background:#5554db;border-color:#5554db;box-shadow:0 6px 18px #5151d937}
.tab-num {flex:none;background:#f0f1ff;color:#6969cf;padding:7px 8px;border-radius:9px;font-size:11px;font-weight:850}
.tab.active .tab-num {color:#5554dc;background:#fff}
.content-grid {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,.92fr);gap:18px;align-items:start}
.exercise-card,.progress-card,.overview-card {background:var(--card);border:1px solid var(--line);border-radius:23px;box-shadow:var(--shadow)}
.exercise-card {position:relative;overflow:hidden;padding:29px 30px 22px}
.exercise-intro {margin-bottom:20px}
.eyebrow-row {display:flex;justify-content:space-between;align-items:center;gap:8px}
.exercise-index {font-size:10.5px;color:#6669cf;font-weight:850;letter-spacing:1.2px}
.level-badge {font-size:11px;font-weight:800;color:#288f9a;background:#e7faf8;border:1px solid #d3f3ef;border-radius:50px;padding:6px 11px;white-space:nowrap}
.exercise-intro h2 {margin:9px 0 3px;font-size:25px;line-height:1.23;letter-spacing:-.7px;font-weight:850}
.exercise-intro p {color:#838ca2;font-size:13.5px;margin:0}
.question-box {background:linear-gradient(115deg,#f1f1ff,#eff7fc 92%);border:1px solid #e8eafc;border-radius:18px;min-height:166px;padding:17px 22px 20px;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
.question-top {display:flex;align-items:center;justify-content:space-between;gap:6px}
.question-top>span:first-child {font-size:11px;color:#6d6cba;font-weight:850;letter-spacing:1.25px}
.question-micro {font-size:11px;color:#9293be;font-weight:750}
.question-micro span {color:#efb648}
.math-question {font-size:clamp(27px,3.5vw,40px);font-weight:760;letter-spacing:.1px;color:#35346c;line-height:1.3;text-align:center;overflow-wrap:anywhere;margin:auto 0}
.math-question sup {font-size:.56em;top:-.45em;position:relative}
.math-and {color:#8b91b3;font-size:20px;font-weight:650;margin:0 13px}
.product-question {display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:4px 0 12px}
.product-item {border:1px solid #dedff9;border-radius:12px;background:#ffffffae;padding:13px 10px}
.product-item small {display:block;font-size:12px;color:#747aab;font-weight:750;letter-spacing:.2px}
.product-item strong {font-size:34px;font-weight:820;color:#4441a5}
.answer-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:21px 0 10px}
.answer-heading label {font-size:13px;font-weight:850;color:#363b5e}
.answer-heading span {font-size:11px;color:#9aa1b1}
.answer-input {display:block;width:100%;height:60px;background:#fff;border:2px solid #dfe4f0;border-radius:13px;padding:0 17px;font-size:21px;font-weight:650;outline:none;color:#262b58;transition:border-color .15s,box-shadow .15s}
.answer-input::placeholder {font-size:14px;color:#acb3c5;font-weight:500}
.answer-input:focus {border-color:#6360e8;box-shadow:0 0 0 4px #6360e814;outline:0}
.answer-input:disabled {background:#fafcff;color:#397c73}
.answer-input.is-error {border-color:#ed9a91}
.answer-input.is-success {border-color:#4cbaac;background:#f5fffd}
.double-fields {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field-caption {display:block;color:#727b98;font-weight:750;font-size:11px;letter-spacing:.4px;margin:0 0 5px}
.math-toolbar {display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px}
.toolbar-label {font-size:9px;letter-spacing:.9px;color:#9ca3b2;font-weight:850;margin-right:4px}
.math-toolbar button {background:#f5f5fc;border:1px solid #e7eaf7;border-radius:9px;min-width:37px;height:33px;padding:0 8px;color:#5257a7;font-weight:800;font-size:14px}
.math-toolbar button:hover {background:#eaeafd}
.action-row {display:grid;grid-template-columns:1.35fr 1fr;gap:10px;margin-top:19px}
.primary-button,.secondary-button {height:50px;border-radius:12px;font-size:13px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:9px;transition:transform .13s,background .13s}
.primary-button {background:#5353db;color:#fff;border:1px solid #5353db;box-shadow:0 5px 12px #5353db23}
.primary-button:hover:not(:disabled) {background:#4444c9;transform:translateY(-1px)}
.button-check {width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#ffffff2b;font-size:14px}
.secondary-button {background:white;border:1px solid #dfe3f0;color:#626a85}
.secondary-button:hover {background:#f6f7ff;border-color:#bdc5e8}
.secondary-button.ready {background:#0caaa5;color:white;border-color:#0caaa5}
.secondary-button.ready:hover {background:#079792}
.feedback {margin-top:14px;border:1px solid transparent;padding:11px 14px;border-radius:11px;display:flex;align-items:center;gap:9px;font-size:12.5px;line-height:1.45;font-weight:650}
.feedback.success {background:#e9faf5;color:#167d66;border-color:#bbebdd}
.feedback.error {background:#fff7ec;color:#93621e;border-color:#f3dfbd}
.feedback.info {background:#f1f1ff;color:#5155b0;border-color:#e2e2ff}
.feedback-symbol {font-size:16px;flex:none}
.practice-footer {display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:20px}
.practice-footer>span {color:#a0a8b8;font-size:11px;text-align:right}
.text-button {background:none;border:0;color:#5556c9;padding:0;font-size:12px;font-weight:800;white-space:nowrap}
.text-button:hover {text-decoration:underline}
.hint-icon {color:#efb63c;margin-right:4px}
#hint-count {font-size:11px;color:#9ba1b8}
.hint-panel {margin-top:15px;padding:13px 16px;background:#f4faf9;border:1px solid #d6eae6;border-radius:13px}
.hint-heading {color:#22867d;font-size:12px;font-weight:850}
.hint-panel p {font-size:12.5px;color:#4e6f70;margin:4px 0 0;line-height:1.7}
.notation-details {margin-top:18px;border-top:1px solid #eef0f7;padding-top:14px;font-size:12px;color:#757e98}
.notation-details summary {cursor:pointer;font-weight:750;list-style:none;display:flex;justify-content:space-between;align-items:center}
.notation-details summary::-webkit-details-marker {display:none}
.notation-details summary span {font-size:15px;color:#9ca4b8}
.notation-details p {line-height:1.65;margin:8px 0 0}
.sidebar {display:flex;flex-direction:column;gap:15px}
.progress-card {padding:24px 23px 23px}
.card-heading {display:flex;align-items:center;gap:11px;margin-bottom:21px}
.card-heading-icon {background:#ecedff;color:#5b5ac8;display:grid;place-items:center;width:40px;height:40px;font-size:24px;border-radius:12px;font-weight:600}
.card-heading h2 {margin:0;font-size:17px;font-weight:850;letter-spacing:-.25px}
.card-heading .small-label {display:block;font-size:10px}
.stats-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:24px}
.stat {background:#f6f7fc;border-radius:12px;padding:13px 7px 11px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.stat-num {font-size:26px;line-height:1.2;font-weight:850;color:#3a4075;letter-spacing:-.7px}
.stat-label {font-size:10px;font-weight:750;color:#9aa3b7;margin-top:3px}
.meter-heading {display:flex;justify-content:space-between;align-items:center;gap:5px;color:#778198;font-size:11.2px;margin-bottom:8px}
.meter-heading strong {font-weight:850;color:#4e51be}
.progress-track {height:9px;overflow:hidden;background:#edf0fa;border-radius:50px}
.progress-fill {height:100%;width:0;background:linear-gradient(90deg,#5756e0,#20b6ad);border-radius:50px;transition:width .35s ease}
.progress-fill.secondary {background:#17b0ad}
.meter-heading.level-heading {margin-top:22px}
.meter-heading.level-heading strong {font-size:11px}
.progress-track.slim {height:6px}
.progress-explain {color:#a2a9b8;font-size:10.5px;line-height:1.55;margin:13px 0 0}
.overview-card {padding:23px}
.overview-head h2 {font-size:16px;letter-spacing:-.4px;margin:1px 0 16px;font-weight:850}
.result-item {padding:9px 0 10px;border-bottom:1px solid #f0f1f7}
.result-item:last-child {border-bottom:0}
.result-line {display:flex;justify-content:space-between;gap:8px;align-items:center}
.result-name {font-size:11.5px;font-weight:700;color:#646d86}
.result-count {font-size:10.5px;color:#9ba3b7;white-space:nowrap;font-weight:750}
.result-track {height:4px;background:#f0f1f8;border-radius:30px;overflow:hidden;margin-top:8px}
.result-track>span {height:100%;display:block;background:#7377e6;border-radius:20px}
.result-item.selected .result-name {color:#5151ca}
.result-item.selected .result-track>span {background:#1db3ab}
.overview-total {margin-top:13px;padding:10px 12px;border-radius:10px;background:#f3f8ff;font-size:11px;color:#6b7591}
.overview-total strong {color:#474bbd}
.reset-button {border:0;background:none;color:#9ba4b7;font-size:11px;font-weight:750;align-self:center;padding:6px 9px}
.reset-button:hover {color:#5754bc;text-decoration:underline}
.site-footer {margin:29px 0 24px;padding-top:16px;border-top:1px solid #e5e9f2;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#a1a9b9;font-size:11px}
.site-footer strong {font-weight:800;color:#7176ba}
.confetti-layer {position:absolute;inset:0;pointer-events:none;overflow:hidden}
.confetti-piece {position:absolute;top:47%;left:50%;width:9px;height:15px;opacity:0;border-radius:2px;animation:confetti-fly .9s ease-out forwards}
@keyframes confetti-fly {0%{opacity:1;transform:translate(-50%,-50%) scale(.8) rotate(0deg)}75%{opacity:1}100%{opacity:0;transform:translate(var(--tx),var(--ty)) rotate(var(--rot))}}
@media (max-width:1060px) {
 .page-shell {padding:0 25px}
 .hero-art {min-width:180px;width:210px}
 .hero-tile {right:3px;width:172px;font-size:25px}
 .hero-bubble {right:0}
 .tab {font-size:11.3px;padding:9px 8px;gap:7px}
 .tab-num {padding:6px}
 .content-grid {grid-template-columns:minmax(0,1.55fr) minmax(255px,.9fr)}
 .exercise-card {padding:24px 22px 20px}
 .progress-card,.overview-card {padding:20px}
}
@media (max-width:770px) {
 .page-shell {padding:0 18px}
 .site-header {height:76px}
 .hero {padding:28px;min-height:190px}
 .hero h1 {font-size:32px}
 .hero-art {display:none}
 .section-heading {margin:28px 0 14px}
 .tablist {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:1px 1px 9px;margin-bottom:11px;scrollbar-width:thin;scrollbar-color:#d5dbf3 transparent;gap:9px}
 .tab {scroll-snap-align:start;min-width:155px;flex:1 0 auto;white-space:normal;min-height:57px;font-size:12px}
 .content-grid {grid-template-columns:1fr;gap:16px}
 .sidebar {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
 .reset-button {grid-column:1 / -1}
 .section-heading p {display:none}
}
@media (max-width:560px) {
 .page-shell {padding:0 12px}
 .site-header {height:69px}
 .brand-symbol {height:36px;width:36px}
 .brand-name {font-size:24px}
 .header-right {gap:0}
 .header-pill {display:none}
 .offline-mark {font-size:10px}
 .hero {padding:23px 22px;min-height:180px;border-radius:20px}
 .hero-kicker {font-size:9px;letter-spacing:1.65px}
 .hero h1 {font-size:29px;letter-spacing:-1px;line-height:1.17;margin:10px 0 9px}
 .hero p {font-size:12px;line-height:1.5}
 .section-heading {margin:25px 1px 13px}
 .section-heading h2 {font-size:20px}
 .tab {min-width:151px}
 .exercise-card {padding:20px 17px 19px;border-radius:18px}
 .exercise-intro {margin-bottom:17px}
 .exercise-intro h2 {font-size:23px}
 .exercise-intro p {font-size:12px;line-height:1.55}
 .question-box {padding:15px 13px;min-height:148px;border-radius:15px}
 .math-question {font-size:clamp(26px,7.3vw,36px)}
 .math-and {margin:0 7px;font-size:15px}
 .product-question {gap:8px}
 .product-item {padding:8px}
 .product-item strong {font-size:28px}
 .answer-heading {margin:18px 0 9px}
 .answer-heading span {font-size:10px}
 .answer-input {height:54px;font-size:18px;padding:0 12px}
 .double-fields {gap:9px}
 .action-row {gap:8px}
 .primary-button,.secondary-button {font-size:11px;padding:0 8px;height:49px}
 .button-check {display:none}
 .practice-footer>span {display:none}
 .sidebar {display:flex;gap:12px}
 .progress-card,.overview-card {padding:20px}
 .site-footer {font-size:10px;align-items:flex-start}
 .site-footer>span:first-child {max-width:190px}
}
@media (max-width:365px) {
 .brand-name {font-size:22px}
 .offline-mark {font-size:9px}
 .answer-heading span {display:none}
 .action-row {grid-template-columns:1fr}
 .primary-button,.secondary-button {height:44px;font-size:12px}
}
@media (prefers-reduced-motion:reduce) {
 *,*::before,*::after {transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
