:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#242033;background:#f4f2f9;--ink:#242033;--muted:#645f75;--edge:#ded9e9;--purple:#5946a8;--paper:#fffdff}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 8% 7%,#f9f6ff,transparent 48%),radial-gradient(ellipse at 100% 28%,#f5f0e9,transparent 46%),#f2f1f7}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.58;cursor:wait}button:focus-visible,select:focus-visible,summary:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #7359c1;outline-offset:3px}[hidden]{display:none!important}
.shell{max-width:875px;margin:0 auto;padding:0 clamp(15px,4vw,38px) calc(110px + env(safe-area-inset-bottom))}.header,.brand,.dock,.secHead,.navrow{display:flex;align-items:center}.header,.secHead,.navrow{justify-content:space-between;gap:12px}.header{padding:22px 0 20px}.brand{gap:12px}.brandmark{width:48px;height:48px;border-radius:18px;display:grid;place-content:center;position:relative;background:linear-gradient(135deg,#6b51cb,#9a84e9);box-shadow:inset 0 1px 2px #fff9;font:bold 36px/1 Georgia,serif;color:#fff}.brandmark span{position:absolute;color:#ffdb72;right:5px;bottom:0}.brand small,.label,.mini,.sub,.row small{color:var(--muted)}.brand small{display:block;font-size:.8rem}.brand strong{font-size:1.2rem;letter-spacing:-.03em}.round{background:#ebe6f9;border:2px solid white;width:43px;height:43px;border-radius:50%;color:#4d407c;font-weight:700}
h1,h2,h3,p{margin:0}h1{font-size:clamp(1.8rem,4.4vw,3.25rem);letter-spacing:-.055em;line-height:1.04}h2{font-size:clamp(1.28rem,2.6vw,1.7rem);letter-spacing:-.045em;line-height:1.17}h3{font-size:1.09rem;letter-spacing:-.02em}p,.sub{line-height:1.48}.label{font-size:.84rem;font-weight:650}.mini{font-size:.9rem}.hero,.panel,.tile,.row{border:1.5px solid #fffc;box-shadow:0 6px 22px #37265b0a}.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:29px;min-height:150px;display:flex;align-items:center;background:linear-gradient(110deg,#fff3cf,#ffe2bc 67%,#ffead2);margin-bottom:16px}.hero .copy{z-index:1;width:70%;padding:clamp(19px,3.6vw,34px)}.hero .copy p{max-width:32ch;margin:8px 0 0}.hero .copy .label{color:#71532b;display:block;margin-bottom:7px}.portrait{position:absolute;right:0;bottom:0;height:100%;width:40%;object-fit:cover;object-position:50% 30%;mask-image:linear-gradient(to right,transparent 0,#000 29%)}.hero button{margin:13px 0 0}.panel{padding:clamp(17px,3vw,28px);background:var(--paper);border-radius:26px;margin:12px 0}.question{font-size:clamp(1.17rem,2.4vw,1.55rem);font-weight:550;line-height:1.4;letter-spacing:-.025em;margin:13px 0 16px}.hint{color:var(--muted);font-size:.91rem;margin:7px 0 10px}.meter{display:flex;gap:5px;width:90px}.meter i{height:5px;border-radius:8px;flex:1;background:#e6e1ed}.meter .on{background:#9b88e0}
.primary,.option,.ghost,.field,.tile,.link,.round{touch-action:manipulation}.primary,.ghost,.option{border:0;border-radius:15px;min-height:46px;font-weight:550;padding:11px 17px}.primary{background:#57439b;color:white}.primary:hover{background:#493780}.ghost,.option{background:#f2effa;border:1px solid #ded7ef;color:var(--ink)}.option{display:flex;align-items:center;justify-content:space-between;text-align:left}.option:after{content:'';width:16px;height:16px;border-radius:50%;border:1.5px solid #9b90bc}.option:hover,.ghost:hover{background:#e9e3f6}.options,.stack{display:grid;gap:8px}.link{border:0;background:none;padding:10px 3px;color:#534486;font-weight:600;text-underline-offset:3px}.link:hover{text-decoration:underline}.insight{border-radius:18px;background:#f2edfc;padding:13px 16px;margin:12px 0}.insight.good{background:#e7f5e9}.insight p{margin-top:4px}.section{margin:20px 0 10px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{border-radius:25px;overflow:hidden;text-align:left;display:flex;flex-direction:column;align-items:stretch;padding:0;position:relative;min-width:0;transition:transform .16s}.tile:hover{transform:translateY(-2px)}.art{display:block;width:100%;height:clamp(94px,14vw,150px);object-fit:contain;mask-image:radial-gradient(ellipse calc(clamp(94px,14vw,150px) * .55) 67% at center,#000 58%,transparent 100%)}.tile .txt{padding:3px 17px 15px}.tile b{display:block;font-size:clamp(1.18rem,2.5vw,1.6rem);letter-spacing:-.045em}.tile small{font-size:.88rem;display:block;margin-top:4px}.lex{background:linear-gradient(145deg,#f0eafa,#dcd1fa)}.spell{background:linear-gradient(145deg,#e4f3ff,#cde6fe)}.comma{background:linear-gradient(145deg,#fff5c7,#ffe59e)}.mist{background:linear-gradient(145deg,#ffe8e3,#f6d6dc)}.mistart{height:clamp(94px,14vw,150px);display:grid;place-content:center}.mistart span{width:66px;height:59px;border-radius:18px;background:linear-gradient(145deg,#ffaba5,#de788d);box-shadow:4px 6px 0 #b35e7855;color:#fff;font:700 42px/1.3 Georgia;text-align:center;transform:rotate(-9deg)}
.dock{position:fixed;bottom:max(9px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(420px,calc(100vw - 26px));border:1.5px solid white;background:#f5f2f8ed;backdrop-filter:blur(18px);border-radius:34px;justify-content:space-around;padding:5px;box-shadow:0 5px 21px #3e31552a;z-index:5}.dock button{background:none;color:#5d5869;border:0;border-radius:26px;display:grid;justify-items:center;gap:2px;min-height:48px;flex:1;font-size:.78rem}.dock button[aria-current]{background:#fffc;color:#5b438e;font-weight:700;box-shadow:0 1px 4px #35284712}.ico{font-size:1.28rem;line-height:1.2;font-weight:700}.field,select{width:100%;border:1px solid #c9c0d6;background:#fff;border-radius:13px;padding:12px;color:var(--ink);font-size:1rem}label{display:block;margin:8px 0 5px;font-weight:550}.row{border-radius:18px;background:#fff;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;width:100%}.row b,.row small{display:block}.row small{margin-top:4px}.row .pill,.pill{background:#ece7f7;border-radius:22px;padding:5px 10px;font-size:.85rem;color:#51476a}.msg{margin:8px 0;padding:10px 14px;background:#efeafa;border-radius:16px;overflow-wrap:anywhere;white-space:pre-wrap}.msg.me{background:#f2f3f6}.msg strong{display:block;font-size:.82rem;margin-bottom:4px}.notice,#notice{color:#773e3d;margin:12px 0}#notice:empty{display:none}.back{margin:0 0 5px}.panel h2+p,.panel .sub,.panel .stack,.panel .field,.panel .options,.panel .row{margin-top:9px}dialog{border:1px solid white;background:#fcfbff;color:var(--ink);border-radius:24px;width:min(430px,92vw);padding:23px}dialog p{margin:10px 0}dialog button{margin:10px 8px 0 0}dialog::backdrop{background:#25203170}progress{width:100%;accent-color:#8a73c8}.focusbox{max-width:650px;margin:0 auto}.secHead a{white-space:nowrap}summary{cursor:pointer;padding:5px 0}.answers{padding-left:19px}.answers li{margin:8px 0}.tile:focus-visible{outline-offset:1px}
@media(max-width:520px){.header{padding:15px 0}.hero{min-height:132px;border-radius:24px}.hero .copy{padding:17px;width:68%}.hero .copy p{font-size:.91rem}.panel{border-radius:22px}.portrait{width:39%;object-position:52% 25%}.tiles{gap:9px}.tile{border-radius:21px}.tile .txt{padding:0 12px 13px}.brandmark{width:42px;height:42px}.hero h1{font-size:1.92rem}.header .brand strong{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){.tile{transition:none}}
.lead{color:var(--muted);margin:10px 0 20px}.wrong,.review.miss{background:#fff1f0;border:1px solid #edc6c4}.wrong>b{color:#8e3537}mark{background:#fbd7d4;color:#7b292e;border-radius:.32em;padding:0 .18em;text-decoration:underline;text-decoration-color:#bd6265;text-underline-offset:.17em}.passage{white-space:pre-wrap;overflow-wrap:anywhere}.tasktitle{margin:12px 0}.reading,.pdfbox{margin:13px 0;padding:12px;border:1px solid var(--edge);border-radius:15px}.reading p{font-size:1rem;line-height:1.62;margin-top:12px}.lead+section{margin-top:14px}.inline,.nums{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.suggest,.num,.typeline{background:#f4f0fc;border:1px solid #e0daed;border-radius:14px;padding:9px 12px;font:inherit;color:var(--ink)}.suggest{min-height:40px;font-size:.92rem}.num{min-width:42px;min-height:42px}.num.current{background:var(--purple);color:#fff}.num.answered{border-color:#668c7b}.examcards,.cataloggrid,.reviewgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.examcards .panel{display:grid;align-content:start;gap:12px;margin:0}.shortcard{background:linear-gradient(135deg,#ece9fc,#f7f5ff)}.fullcard{background:linear-gradient(135deg,#fff1c7,#fff7e9)}.catalogue summary{font-weight:680;font-size:1.14rem}.cataloggrid,.reviewgrid{margin-top:14px}.typeline{display:flex;align-items:center;text-align:left;gap:10px;background:#f9f7fd;min-height:52px}.number{font-weight:650;min-width:29px;border-radius:10px;background:#e9e2f9;text-align:center;padding:4px}.source{color:#523f91;text-decoration:underline;text-underline-offset:.18em}.inline .source{border-radius:12px;padding:9px 12px;background:#f0eaf9}.review{display:grid;align-content:start;gap:4px;border-radius:14px;padding:12px;overflow-wrap:anywhere}.review.ok{background:#e9f5ed}.review .link{text-align:left}.pdfbox iframe{border:0;width:100%;min-height:58vh;margin-top:12px}.panel textarea{font-family:inherit;resize:vertical}.panel h2+p,.panel p+p{margin-top:8px}.panel .link{margin-left:4px}.chatpanel{scroll-margin-top:12px}#lines:not(:empty){margin:12px 0}.tile b{line-height:1.13}.dock .ico{line-height:1.25}
@media(max-width:560px){.examcards,.cataloggrid,.reviewgrid{grid-template-columns:1fr}.examcards{gap:10px}.num{min-width:39px}.chatpanel .inline{gap:6px}}

.tasktitle{font-weight:500;line-height:1.45;font-size:clamp(1.08rem,2vw,1.22rem);letter-spacing:-.015em}
.question{font-weight:400;line-height:1.6;font-size:clamp(1.07rem,2vw,1.2rem);letter-spacing:0}
.panel b,.panel strong{font-weight:600}
.rulebook{margin:19px 0;padding:19px;background:#f7f4fd;border:1px solid #e7e0f2;border-radius:18px}
.rulebook h3{font-size:1.08rem;font-weight:600;letter-spacing:-.015em;line-height:1.4;margin-bottom:12px}
.rulebook p{margin:10px 0 0;line-height:1.62;font-size:1rem;font-weight:400}
.ruleexample{margin-top:15px;border-top:1px solid #e2dbed;padding-top:13px}
.variantcounter{margin-top:13px}.secHead .label{font-weight:550}

mark.correct{background:#ddf1e3;color:#215e38;text-decoration-color:#5c9d70}
mark.incorrect{background:#fbd7d4;color:#7b292e;text-decoration-color:#bd6265}
.examtext{font-size:1.05rem;line-height:1.65;margin:15px 0;font-weight:400}
.examtext p{margin:10px 0}.review .rulebook{padding:12px}.review .rulebook p{font-size:.95rem}

.scoretitle{font-size:clamp(1.7rem,4.5vw,2.7rem);line-height:1.18;font-weight:650;margin:14px 0;letter-spacing:-.035em}
.calculation{margin:16px 0;font-size:.95rem}.calculation summary{color:var(--muted)}
.essayentry{display:flex;align-items:center;justify-content:space-between;gap:18px}.essayentry p{margin-top:7px}
@media(max-width:560px){.essayentry{align-items:stretch;flex-direction:column}}
.essaycheck{margin:18px 0;padding:18px;border:1px solid #e3dced;border-radius:18px;background:#fcfbff}
.essaycheck>h3{font-weight:600;line-height:1.4}.essayverdict{margin:14px 0}.essayverdict h3{font-weight:550;margin-bottom:7px}
.essaycriteria{display:grid;gap:9px}.essaycriterion{padding:12px 14px;border-radius:13px}.essaycriterion.good{background:#e7f5e9;border:1px solid #cce5d2}.essaycriterion .secHead{align-items:flex-start}.essaycriterion .secHead>span{font-size:.86rem;white-space:nowrap}.essaycriterion.good .secHead{color:#285f3b}.essaycriterion.wrong .secHead{color:#8e3537}.essaycriterion p{margin-top:6px;font-weight:400}.essayerror{margin:12px 0;color:#8e3537}.essaycheck .insight{font-weight:400}

/* The existing cards remain unchanged; learning screens gain a separate AI column. */
.aiwelcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px;background:linear-gradient(120deg,#eee8fc,#faf8ff);border-color:#e2d8f4}
.aiwelcome h2{font-size:clamp(1.2rem,2.5vw,1.55rem);font-weight:600;line-height:1.25;margin:5px 0 7px}.aiwelcome p{max-width:52ch;color:var(--muted)}.aiwelcome .primary{flex:none}.aiwelcome .label{color:#58438e}
.learning-layout{min-width:0}.learning-main{min-width:0}.learning-main>.panel:first-child{margin-top:0}.ai-sidebar{min-width:0}.chatheading{display:flex;align-items:center;gap:10px}.chatheading h2{font-size:1.3rem;font-weight:600;letter-spacing:-.025em}.ai-badge{display:inline-grid;place-items:center;width:38px;height:38px;flex:none;border-radius:14px;background:linear-gradient(140deg,#6c50bd,#9a80db);color:#fff;font-size:.85rem;font-weight:650}.chatpanel .sub{font-size:.96rem;line-height:1.5;margin-top:12px}.chatstart{color:var(--muted);font-size:.95rem;padding:14px;border:1px dashed #ded6ee;border-radius:15px;background:#fbf9ff}.chatpanel .inline{gap:7px;margin:12px 0}.chatpanel .suggest{font-size:.88rem;text-align:left;line-height:1.4}.chatpanel .field{margin-top:0!important;line-height:1.45;min-height:76px;max-height:160px}.chatpanel label{margin:0;font-size:.95rem}.chatpanel .stack{gap:8px}.chatlimits{margin-top:10px;color:var(--muted);font-size:.85rem;line-height:1.45}.chatlimits summary{font-size:.85rem}.chatlimits p{margin-top:5px}.chatpanel .msg{font-size:.95rem;line-height:1.55}.chatpanel .msg:first-child{margin-top:0}.chatpanel .msg:last-child{margin-bottom:0}.ai-mobilebar,.ai-launcher{display:none}
@media(min-width:1000px){
  .shell.learning-shell{max-width:1360px;padding-left:32px;padding-right:32px}
  .learning-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,370px);gap:24px;align-items:start}
  .learning-main>.focusbox{max-width:none;margin:0}.learning-main>.focusbox>.panel{margin-top:10px}
  .ai-sidebar{position:sticky;top:18px;max-height:calc(100svh - 115px)}
  .ai-sidebar .chatpanel{display:flex;flex-direction:column;margin:0;padding:22px;height:clamp(460px,calc(100svh - 115px),780px);max-height:calc(100svh - 115px);min-height:0}
  .ai-sidebar #lines{flex:1;min-height:36px;overflow:auto;overscroll-behavior:contain;margin:14px 0 0;scrollbar-width:thin}
  .ai-sidebar .chatpanel>.inline,.ai-sidebar .chatpanel>form,.ai-sidebar .chatpanel>.chatlimits,.ai-sidebar .chatpanel>.sub,.ai-sidebar .chatheading{flex-shrink:0}
  .ai-sidebar .chatpanel>.inline{display:grid;grid-template-columns:1fr 1fr}
  .ai-sidebar .chatpanel>.inline .suggest{padding:8px 10px;min-height:48px}
  .ai-sidebar .chatpanel .field{resize:vertical}
  .ai-sidebar .ai-exam-note{height:auto}
}
@media(max-width:999px){
  .learning-shell{padding-bottom:calc(165px + env(safe-area-inset-bottom))}
  .ai-launcher{display:inline-flex;gap:9px;align-items:center;position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));z-index:7;border:1.5px solid #fff;background:#5946a8;color:#fff;border-radius:28px;padding:10px 17px 10px 10px;min-height:49px;box-shadow:0 5px 18px #45316b3b;font-size:.95rem;font-weight:550}
  .ai-launcher>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#ffffff24;font-size:.76rem;font-weight:650}
  .ai-backdrop{position:fixed;inset:0;z-index:20;background:#24203370;backdrop-filter:blur(3px)}
  .ai-sidebar{position:fixed;inset:auto 0 0;z-index:21;display:flex;flex-direction:column;max-height:92svh;height:min(760px,92svh);background:var(--paper);border:1px solid #fff;border-radius:26px 26px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -8px 40px #37265b26}
  .ai-mobilebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;border-bottom:1px solid var(--edge);flex:none}.ai-mobilebar>span{font-size:.87rem;color:var(--muted)}.ai-mobilebar .link{min-height:44px}
  .ai-sidebar .chatpanel{display:flex;flex-direction:column;overflow:auto;min-height:0;flex:1;margin:0;border:0;border-radius:0;box-shadow:none;padding:18px 20px}
  .ai-sidebar #lines{overflow:auto;overscroll-behavior:contain;min-height:55px;flex:1 1 auto;margin:14px 0 0;scrollbar-width:thin}
  .ai-sidebar .chatpanel>.chatheading,.ai-sidebar .chatpanel>.sub,.ai-sidebar .chatpanel>.inline,.ai-sidebar .chatpanel>form,.ai-sidebar .chatpanel>.chatlimits{flex-shrink:0}
  .ai-chat-open{overflow:hidden}.ai-chat-open .ai-launcher{visibility:hidden}
  .aiwelcome{align-items:flex-start;flex-direction:column;gap:13px}.aiwelcome .primary{width:100%}
}
@media(max-height:650px){.ai-sidebar .chatpanel>.inline{display:flex;flex-wrap:nowrap;overflow:auto;flex-shrink:0}.ai-sidebar .suggest{flex:1;min-width:130px}.ai-sidebar .chatpanel .sub{margin-top:8px;font-size:.9rem}.ai-sidebar .chatpanel .field{min-height:54px}.ai-sidebar .chatpanel{padding:14px}.ai-sidebar .chatheading h2{font-size:1.15rem}}
.ai-sidebar .chatpanel{overflow:auto}
.essay-score{margin-top:22px;padding:21px;border-radius:20px;background:#f0eafa;border:1px solid #d9ccec}.essay-score>.label{display:block;margin-bottom:9px}.essay-score h3{font-size:1.15rem;line-height:1.4}.essay-score p{margin-top:11px;line-height:1.6}.essay-score .essay-score-total{font-size:1.12rem;color:#67557f;margin:12px 0}.essay-score-total strong{font-size:2.7rem;line-height:1;font-weight:650;letter-spacing:-.04em;color:#543982}.essay-score details{margin-top:17px}.essay-score summary{font-size:1rem;font-weight:550;min-height:38px}.essay-score-criteria>div{display:flex;justify-content:space-between;align-items:start;gap:15px;border-bottom:1px solid #ddd2e9;padding:11px 0;font-size:.94rem;line-height:1.5}.essay-score-criteria strong{white-space:nowrap}.essay-score-volume{color:#794f34}.essay-score .hint{font-size:.875rem;color:#665773;margin-top:16px}

/* Learning route: completed levels remain visibly different without relying on colour alone. */
.path-intro{padding:12px 0 20px}.path-intro>.label{display:block;margin-bottom:12px}.path-intro h1{font-size:clamp(2.1rem,4.5vw,3.4rem)}.path-intro .lead{margin:14px 0 0;max-width:55ch;color:var(--muted);font-size:1.05rem;line-height:1.6}
.path-overview{padding:25px;border:1px solid #d9ceef;border-radius:26px;background:linear-gradient(125deg,#f0eaff,#faf7ff);margin:0 0 22px}.path-overview h2{margin-top:7px;font-size:2rem}.path-overview h2>span{font-size:1rem;color:var(--muted);letter-spacing:0;font-weight:500}.path-overview progress,.path-level-head progress{width:100%;height:12px;border:0;border-radius:20px;overflow:hidden;background:#e4deed;accent-color:#23976b;margin:17px 0 10px}.path-overview progress::-webkit-progress-bar,.path-level-head progress::-webkit-progress-bar{background:#e4deed;border-radius:20px}.path-overview progress::-webkit-progress-value,.path-level-head progress::-webkit-progress-value{background:#23976b;border-radius:20px}.path-overview>p{color:var(--muted);font-size:.94rem;margin-bottom:16px}.path-overview .primary{min-width:180px}.path-trophy{width:62px;height:62px;display:grid;place-items:center;color:#8761d2;background:#e8dcff;border-radius:21px;transform:rotate(8deg)}.path-trophy svg{width:38px;height:38px}
.path-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:.9rem;color:#585663}.path-legend>span{display:flex;gap:8px;align-items:center}.path-legend i{display:inline-block;width:15px;height:15px;border-radius:50%;background:#cfd2da;border:1px solid #a8acb7}.path-legend i.legend-complete{background:#249b70;border-color:#1a7b58}.path-instruction{color:var(--muted);margin:12px 0 28px;font-size:.94rem;line-height:1.6}
.path-chapter{margin-bottom:34px}.chapter-header{padding:21px 24px;border-radius:20px;background:#ebe6f6;border:1px solid #ddd4ec}.chapter-header .label{font-size:.87rem;color:#675482}.chapter-header h2{margin-top:5px;font-size:1.35rem;font-weight:600}.chapter-header p{margin-top:7px;color:#665e75;font-size:.9rem}
.level-track{list-style:none;padding:23px 0 10px;margin:0}.level-step{position:relative;margin-left:calc(16px + var(--bend)*34px);padding-bottom:22px}.level-step:not(:last-child)::after{content:'';position:absolute;top:91px;bottom:0;left:38px;width:0;border-left:4px dotted #d8d5e0}.level-step.is-complete:not(:last-child)::after{border-left-color:#8acbae}.level-button{position:relative;z-index:1;display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:20px;width:100%;min-height:112px;padding:8px 13px 13px 0;border:0;background:transparent;text-align:left;border-radius:18px;transition:background .18s}.level-button:hover{background:#ebe6f566}.level-medal{display:grid;place-items:center;width:76px;height:70px;align-self:start;margin-top:10px;border-radius:50%;border:4px solid #f6f6f9;background:#dfe1e7;color:#969aa7;box-shadow:0 7px 0 #b8bcc7,0 0 0 2px #d6d9e2;transition:transform .16s}.level-button:hover .level-medal{transform:translateY(-2px)}.level-medal svg{width:36px;height:36px}.is-current .level-medal{outline:3px solid #9174ce;outline-offset:6px}.is-complete .level-medal{background:#249b70;color:#fff;border-color:#73c5a3;box-shadow:0 7px 0 #167855,0 0 0 2px #c4e8d9}.level-check{font-size:2.15rem;font-weight:700}.level-copy{display:block;min-width:0}.level-eyebrow{display:block;color:#6d687b;font-size:.875rem;line-height:1.4}.level-title{display:block;margin:4px 0 6px;font-size:1.09rem;font-weight:550;line-height:1.4}.level-status{display:block;font-size:.9rem;color:#636171}.is-complete .level-status{color:#176b4e;font-weight:600}.level-meter{display:block;margin-top:9px;height:5px;background:#e2dfe8;border-radius:10px;max-width:180px;overflow:hidden}.level-meter i{display:block;height:100%;background:#8d79b8}.is-complete .level-meter i{background:#249b70}.level-current{display:inline-block;margin-top:9px;background:#ebe3fc;color:#5a428d;padding:4px 10px;border-radius:20px;font-size:.875rem;font-weight:550}
.path-finish{text-align:center;background:#f4f0fc;border-color:#ded3ef}.path-finish-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e7dafa;color:#8056ba;margin:0 auto 16px}.path-finish-icon svg{width:36px;height:36px}.path-finish p{margin:13px auto;max-width:55ch;line-height:1.6}.path-finish .primary{margin-top:7px}
.path-level-head{padding:25px;background:#f1edf8;border:1px solid #ded5ec;border-radius:24px;margin:8px 0 24px}.path-level-head h1{font-size:clamp(1.8rem,3.6vw,2.7rem);line-height:1.15;margin:10px 0 14px}.path-level-head.is-complete{background:#e7f5ed;border-color:#a8d6bd}.path-level-head>.hint{margin:15px 0 0}.level-lesson.lesson-complete{border:1px solid #acd5bf}.lesson-complete .pill{background:#dcf1e5;color:#1b674a}.lesson-exercises{margin-top:15px}.lesson-exercise{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border:0;border-bottom:1px solid #e8e3ee;background:transparent;text-align:left;font-size:1rem}.lesson-exercise:last-child{border-bottom:0}.lesson-exercise small{display:block;max-width:35ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:.875rem;margin-top:4px}.exercise-index{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e7e6ec;color:#626170;font-size:.94rem}.exercise-state{font-size:.875rem;color:#65616f}.exercise-complete .exercise-index{background:#d2eddf;color:#176b4e}.exercise-complete .exercise-state{color:#176b4e}.level-task-progress .link{font-size:.9rem;padding:0 4px;min-height:36px}
@media(max-width:560px){.path-overview{padding:21px}.path-overview .primary{width:100%}.path-overview h2{font-size:1.8rem}.path-trophy{width:48px;height:48px;border-radius:17px}.level-step{margin-left:calc(8px + var(--bend)*17px)}.level-button{grid-template-columns:64px minmax(0,1fr);gap:16px;padding-right:4px}.level-medal{width:62px;height:58px;border-width:3px}.level-medal svg{width:30px;height:30px}.level-step:not(:last-child)::after{left:30px;top:79px}.level-title{font-size:1rem}.level-eyebrow,.level-status{font-size:.875rem}.chapter-header{padding:18px 20px}.path-level-head{padding:21px}.lesson-exercise{grid-template-columns:32px minmax(0,1fr);gap:10px}.exercise-state{grid-column:2}.exercise-index{width:30px;height:30px}.path-legend{gap:14px}}
@media(prefers-reduced-motion:reduce){.level-button,.level-medal{transition:none}}

/* ИИэкзамен brand and the quiet, inanimate study illustration. */
.brandmark{font:750 18px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.06em;flex:none}.brandmark span{font-size:38px;right:2px;bottom:-2px}.brand strong{display:block;font-size:1.45rem;letter-spacing:-.045em}.brand small{font-size:.875rem;margin-top:2px}.dock{width:min(470px,calc(100vw - 26px))}.dock button{font-size:.875rem}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,33%);min-height:245px;gap:0;background:linear-gradient(115deg,#fff3d2,#ffe4c9)}.hero .copy{width:auto;padding:clamp(22px,3.5vw,34px) 0 clamp(22px,3.5vw,34px) clamp(22px,3.5vw,34px)}.hero h1{overflow-wrap:anywhere}.hero .copy p{max-width:32ch}.hero .portrait{position:static;display:block;width:100%;height:auto;max-height:300px;object-fit:contain;object-position:center;mask-image:none;padding:10px 18px 10px 6px;align-self:center}
.subjects-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border:1px solid #ddd5eb;border-radius:21px;background:#faf7ff;margin:8px 0 22px}.subjects-entry p{margin-top:5px;font-size:1rem}.subjects-entry .primary{flex-shrink:0}
.subjects-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:12px 0 24px}.subjects-heading .label{display:block;margin-bottom:12px}.subjects-heading .lead{font-size:1.03rem;max-width:53ch;line-height:1.6;margin-bottom:0}.subjects-heading>.ghost{flex-shrink:0;font-size:.94rem}.subjects-subhead{margin:30px 0 17px}.subject-ready{display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:18px;width:100%;border:1px solid #bddacb;border-radius:24px;text-align:left;padding:22px;background:linear-gradient(120deg,#e7f5ed,#f6fcf7);box-shadow:0 5px 18px #23563d08}.subject-ready>span:nth-child(2)>span,.subject-ready strong{display:block}.subject-ready strong{font-size:1.38rem;font-weight:600;line-height:1.3;margin:5px 0}.subject-ready>span:nth-child(2)>span:last-child{color:#52655a;font-size:.94rem;line-height:1.45}.subject-availability{color:#257552;font-size:.875rem;font-weight:550}.subject-ready-action{background:#257854;color:#fff;border-radius:15px;padding:11px 17px;font-size:.95rem;font-weight:550}
.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:230px;padding:21px 18px 18px;text-align:left;background:#fffdfd;border:1.5px solid #e0d9e9;border-radius:23px;box-shadow:0 4px 15px #37265b05;transition:transform .16s,border-color .16s,box-shadow .16s}.subject-card:hover{transform:translateY(-2px);border-color:#9e8ac1;box-shadow:0 7px 20px #5946a810}.subject-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;width:100%;margin-bottom:17px}.subject-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;font-size:1.6rem;font-weight:600;letter-spacing:-.035em;color:#514472;flex:none}.subject-symbol.tone-lavender{background:#e9dff8;color:#72569e}.subject-symbol.tone-blue{background:#e0eefc;color:#47789d}.subject-symbol.tone-mint{background:#dcefe4;color:#35745b}.subject-symbol.tone-peach{background:#ffeadb;color:#9b6844}.subject-symbol.tone-rose{background:#f7dfe9;color:#9e5577}.subject-symbol.tone-sand{background:#f6eccc;color:#8a733e}.subject-symbol:has(+.subject-soon){font-size:1.5rem}.subject-soon{font-size:.875rem;color:#756c83;line-height:1.4;padding:4px 0}.subject-card>strong{font-size:1.04rem;line-height:1.35;font-weight:600;overflow-wrap:anywhere}.subject-caption{display:block;color:var(--muted);font-size:.875rem;line-height:1.45;margin-top:5px;margin-bottom:18px}.subject-card-action{display:block;margin-top:auto;padding-top:12px;border-top:1px solid #e9e3f0;width:100%;color:#60418f;font-weight:550;font-size:.94rem}.subject-selected{border-color:#83b69b;background:#f5fcf7}.subject-selected .subject-card-action{color:#216747;border-color:#c9e5d4}.subjects-note{margin:20px 0 0;line-height:1.6}.subject-toast{position:fixed;z-index:10;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:flex-start;gap:18px;background:#f4fff7;border:1px solid #a6cdb6;box-shadow:0 8px 34px #284e362b;border-radius:20px;padding:17px 20px;width:min(560px,calc(100vw - 30px));color:#234a35}.subject-toast strong{font-size:1rem;font-weight:600;line-height:1.45}.subject-toast p{margin-top:5px;font-size:.94rem;line-height:1.5}.subject-toast .link{color:#24563c;font-size:.9rem;min-height:44px;padding:4px 0;margin:0;flex-shrink:0}.subject-error{background:#fff1ef;color:#8b3a3a;padding:14px 18px;border-radius:14px;margin-top:18px}
.subject-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 18px}.subject-kpis .panel{margin:0;padding:20px 18px}.subject-kpis strong{display:block;font-size:2rem;font-weight:600;letter-spacing:-.04em;margin:10px 0 5px}.subject-kpis p{font-size:.875rem;color:var(--muted);line-height:1.5}.subject-ranking table{border-collapse:collapse;width:100%;margin-top:22px;font-size:.95rem}.subject-ranking th,.subject-ranking td{text-align:left;padding:15px 8px;border-bottom:1px solid #e7e1ed;vertical-align:middle}.subject-ranking thead th{font-size:.875rem;color:var(--muted);font-weight:500}.subject-ranking tbody th{font-weight:500;width:66%}.subject-ranking td{font-variant-numeric:tabular-nums}.subject-ranking th:first-child,.subject-ranking td:first-child{padding-left:0}.subject-ranking td:last-child{text-align:right;padding-right:0}.subject-demand-bar{display:block;height:5px;width:90%;max-width:250px;background:#eee8f5;border-radius:10px;margin-top:8px;overflow:hidden}.subject-demand-bar i{display:block;height:100%;border-radius:10px;background:#9874c8}.subject-empty{padding:18px;background:#f6f2fb;border-radius:15px;margin-top:18px!important;line-height:1.6}.subject-signin{display:inline-block;text-decoration:none;margin-top:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subjects-heading{flex-direction:column;gap:16px}.subjects-subhead{align-items:flex-start;flex-direction:column;gap:7px}.subjects-entry{flex-direction:column;align-items:flex-start;gap:14px}.subjects-entry .primary{width:100%}.subject-kpis{grid-template-columns:1fr}.subject-kpis .panel{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px}.subject-kpis strong{grid-column:2;grid-row:1 / 3;margin:0}.subject-kpis p{grid-column:1}.subject-ready{padding:20px;gap:14px;grid-template-columns:58px minmax(0,1fr)}.subject-ready-action{grid-column:2;justify-self:start;margin-top:3px}}
@media(max-width:520px){.brand{gap:10px}.brandmark{width:43px;height:43px;font-size:16px}.header .brand strong{font-size:1.3rem}.brand small{font-size:.875rem}.hero{grid-template-columns:minmax(0,1fr) 116px;min-height:210px}.hero .copy{padding:22px 0 22px 20px;width:auto}.hero h1{font-size:1.65rem;line-height:1.14}.hero .copy p{font-size:1rem}.hero .portrait{padding:8px 10px 8px 0;max-height:200px}.hero .copy .label{font-size:.875rem;line-height:1.45}.hero .primary{font-size:.94rem;padding:11px 14px}.subject-card{padding:17px 14px;min-height:227px;border-radius:21px}.subject-symbol{width:48px;height:48px;border-radius:15px;font-size:1.4rem}.subject-card-top{gap:5px;margin-bottom:15px}.subject-soon{font-size:.875rem}.subject-card-action{font-size:.875rem}.subject-toast{padding:15px;gap:10px}.subject-toast .link{font-size:.875rem}.subject-ranking{padding:18px 15px}.subject-ranking th,.subject-ranking td{padding:14px 5px;font-size:.875rem}.subject-ranking tbody th{width:60%}.dock button{font-size:.875rem;gap:3px;min-height:51px}}
@media(max-width:350px){.hero{grid-template-columns:minmax(0,1fr) 94px}.hero .copy{padding-left:17px}.hero h1{font-size:1.5rem}.subject-grid{grid-template-columns:1fr}.subject-card{min-height:200px}.subject-ready strong{font-size:1.2rem}}
@media(prefers-reduced-motion:reduce){.subject-card{transition:none}}
