/* All selectors are limited to the learning report and the seven-tier guide. */
.ca-surface{--ca-accent:#5768c9;--ca-second:#a899df;--ca-shine:#eff2ff;--ca-ink:#263359;--ca-muted:#596683;--ca-line:#b4bfe05c;--ca-bg:#f6f8ff;--ca-nebula:#cbd5ff;--ca-glow:#8095ff44;color:var(--ca-ink);isolation:isolate;position:relative;}
.ca-surface[data-ca-tier=explore]{--ca-accent:#65edce;--ca-second:#78c9ff;--ca-shine:#edfff8;--ca-ink:#effffb;--ca-muted:#bbdcd5;--ca-line:#70d7c43b;--ca-bg:#102d39;--ca-nebula:#187265;--ca-glow:#5bffe647;}
.ca-surface[data-ca-tier=discover]{--ca-accent:#c2a0ff;--ca-second:#91c5ff;--ca-shine:#faf0ff;--ca-ink:#f5f0ff;--ca-muted:#cfc5e7;--ca-line:#c0a7ff40;--ca-bg:#251c42;--ca-nebula:#7448a5;--ca-glow:#b793ff55;}
.ca-surface[data-ca-tier=master]{--ca-accent:#f8cc7c;--ca-second:#c58a41;--ca-shine:#fff8dd;--ca-ink:#fff5dc;--ca-muted:#d9cbb3;--ca-line:#f8cc7c45;--ca-bg:#2b231b;--ca-nebula:#947031;--ca-glow:#ffd17755;}
.ca-surface[data-ca-tier=grand]{--ca-accent:#ffb3db;--ca-second:#b6a0ff;--ca-shine:#fff1fc;--ca-ink:#fff2fa;--ca-muted:#e6c4dd;--ca-line:#ffa0d644;--ca-bg:#311d3b;--ca-nebula:#a14782;--ca-glow:#ff94d56b;}
.ca-surface[data-ca-tier=legend]{--ca-accent:#97eaff;--ca-second:#beacff;--ca-shine:#f0fdff;--ca-ink:#effaff;--ca-muted:#bdd5eb;--ca-line:#94e6ff55;--ca-bg:#101f3d;--ca-nebula:#3878ad;--ca-glow:#71d4ff72;}
.ca-surface[data-ca-tier=eternal]{--ca-accent:#a6ffeb;--ca-second:#f6b5ef;--ca-shine:#f2fff9;--ca-ink:#f1fff9;--ca-muted:#c4dedc;--ca-line:#c9f8ea66;--ca-bg:#102b34;--ca-nebula:#387c81;--ca-glow:#a0ffe775;}
.ca-crest{display:block;width:100%;height:100%;color:var(--ca-accent);filter:drop-shadow(0 3px 8px var(--ca-glow));}
.ca-metal-light{stop-color:var(--ca-shine)}.ca-metal-main{stop-color:var(--ca-accent)}.ca-metal-second{stop-color:var(--ca-second)}
.ca-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:inherit;color:var(--ca-accent);contain:paint;}
.ca-nebula{position:absolute;width:90%;height:110%;left:5%;top:-5%;background:radial-gradient(ellipse,var(--ca-nebula),transparent 66%);opacity:.45;transform:rotate(-22deg);}
.ca-orbit{position:absolute;left:50%;top:50%;width:65%;aspect-ratio:1;border:1px solid var(--ca-line);border-radius:50%;transform:translate(-50%,-50%) rotate(-35deg);}
.ca-orbit:after{content:"";position:absolute;left:50%;top:-3px;width:5px;height:5px;border-radius:50%;background:var(--ca-accent);box-shadow:0 0 12px var(--ca-accent);}
.ca-orbit-two{width:78%;border-style:dashed;border-color:var(--ca-line);border-radius:50%;}
.ca-orbit-two:after{left:18%;top:12%;width:3px;height:3px;}
.ca-rays{position:absolute;inset:10%;border-radius:50%;background:repeating-conic-gradient(from 15deg,transparent 0 22deg,var(--ca-line) 22.1deg 22.5deg,transparent 22.6deg 45deg);mask-image:radial-gradient(circle,transparent 32%,#000 65%,transparent 72%);opacity:.65;}
.ca-particle{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);border-radius:50%;background:var(--ca-accent);box-shadow:0 0 7px var(--ca-accent);opacity:.55;}
.ca-surface[data-ca-tier=begin] .ca-orbit{border-style:dashed;opacity:.5;}
.ca-surface[data-ca-tier=eternal] .ca-nebula{background:conic-gradient(from 25deg,#80eace80,#86aeef70,#d194e699,#fdaedd55,#80eace80);mask-image:radial-gradient(ellipse,#000 0%,transparent 68%);opacity:.7;}
.ca-surface[data-ca-tier=eternal] .ca-rays{inset:2%;opacity:.85;}
.ca-kicker{display:block;font-size:10px;font-weight:750;letter-spacing:.17em;line-height:1.5;color:var(--ca-accent);}
/* Report: ornaments sit behind the unchanged, accessible data chart. */
html body .ca-radar.radar-card12{background:var(--ca-bg);border:1px solid var(--ca-line);border-radius:24px;padding:22px 24px 16px;box-shadow:0 12px 32px #1622450a;gap:0;min-height:540px;height:auto;overflow:hidden;}
html body .ca-radar.radar-card12:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse at 0 0,var(--ca-glow),transparent 56%);z-index:-1;}
html body .ca-radar>header{padding-bottom:16px;border-bottom:1px solid var(--ca-line);}
html body .ca-radar>header h2{font-size:21px;font-weight:750;letter-spacing:-.05em;color:var(--ca-ink);margin:4px 0 0;}
html body .ca-radar>header .eyebrow{font-size:9px;letter-spacing:.18em;color:var(--ca-muted);}
html body .ca-radar .radar-replay12{background:transparent;color:var(--ca-accent);border:1px solid var(--ca-line);width:36px;height:36px;}
.ca-identity{display:flex;align-items:center;gap:12px;padding:16px 0 0;flex:none;min-width:0;}
.ca-mini-crest{width:62px;height:62px;flex:none;}
.ca-identity>div:nth-child(2){min-width:0;}
html body .ca-identity strong{display:block;font-size:24px;line-height:1.35;font-weight:800;letter-spacing:-.055em;color:var(--ca-ink);}
html body .ca-identity p{font-size:10px;line-height:1.6;color:var(--ca-muted);margin:3px 0 0;word-break:keep-all;}
.ca-level{margin-left:auto;align-self:center;padding:6px 9px;border:1px solid var(--ca-line);border-radius:7px;font-family:inherit;font-size:10px;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--ca-accent);background:transparent;white-space:nowrap;}
button.ca-level{cursor:pointer;}
html body .ca-radar .radar-stage12{position:relative;isolation:isolate;flex:1 0 auto;min-height:280px;max-height:none;margin:6px -5px 0;}
html body .ca-radar .radar-svg12{position:relative;z-index:1;width:100%;height:auto;min-height:0;max-height:390px;overflow:visible;}
.ca-radar .ca-scene{inset:8% 16%;border-radius:50%;}
.ca-radar .ca-orbit{width:75%;}
.ca-radar .ca-orbit-two{width:93%;}
.ca-radar .ca-rays{inset:0;}
html body .ca-radar .radar-grid12{stroke:var(--ca-line);stroke-width:1.1;}
html body .ca-radar .radar-spoke12{stroke:var(--ca-line);opacity:.8;}
html body .ca-radar .radar-label12{fill:var(--ca-muted);font-size:16px;font-weight:650;}
html body .ca-radar .radar-value12{fill:var(--ca-ink);font-size:24px;font-weight:750;}
html body .ca-radar [data-radar-dot11]{fill:var(--ca-accent);stroke:var(--ca-bg);}
html body .ca-radar #radarGlowShape12{stroke:var(--ca-accent);opacity:.35;}
html body .ca-radar #radarArea11{stroke-width:2.8;}
html body .ca-radar .ca-chart-note{text-align:center;color:var(--ca-muted);font-size:11px;line-height:1.65;margin:0 0 14px;flex:none;}
html body .ca-radar>footer{border-color:var(--ca-line);padding-top:13px;align-items:center;gap:12px;}
html body .ca-radar>footer>span{color:var(--ca-muted);font-size:10px;line-height:1.5;}
html body .ca-radar>footer button{color:var(--ca-accent);font-size:11px;}
html body .ca-radar :is(button,a):focus-visible{outline:2px solid var(--ca-accent);outline-offset:4px;}
html body .report-desk6 .ca-learning[data-report-tab6=overview]{grid-template-columns:minmax(320px,1fr) minmax(310px,1.1fr);grid-template-rows:auto auto;align-content:start;gap:18px;overflow:visible;}
html body .ca-learning>.learning-stats{gap:12px;max-height:none!important;}
html body .ca-learning .history-card23{position:relative;border-radius:16px!important;border:1px solid var(--line);min-height:86px!important;padding:17px 20px!important;box-shadow:0 3px 14px #202d4303;}
html body .ca-learning .history-card23>strong{font-size:31px!important;letter-spacing:-.055em;}
html body .ca-learning .history-card23>span{font-size:12px!important;}
html body .ca-learning .ca-records{display:flex;flex-direction:column;border-radius:24px;padding:24px;min-height:540px;border:1px solid var(--line);background:var(--surface);}
html body .ca-records #reportViewport6{flex:1;min-height:260px;}
html body .ca-records #reportPager6{margin-top:auto;flex:none;}
html body .ca-records>h2{font-size:18px!important;letter-spacing:-.035em;padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:8px!important;}
.ca-records>h2 small{margin-left:6px;}
.ca-empty-icon{display:grid;place-items:center;width:78px;height:78px;border:1px solid var(--line);border-radius:24px;background:var(--surface-soft);margin:0 auto 20px;box-shadow:0 8px 24px #293b6b07;}
.ca-empty-icon svg{width:46px;height:46px;stroke:var(--muted);stroke-width:1.6;}
html body .ca-records .ca-records-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;color:var(--muted);font-size:12px;line-height:1.7;padding:30px 14px;}
/* Tier gallery. Uses the existing modal, its close control and focus management. */
html body #modal:has(.ca-guide){width:min(820px,calc(100vw - 32px));max-width:calc(100vw - 32px);}
html body .tier-guide285.ca-guide{display:flex;flex-direction:column;gap:0;}
.ca-guide *{box-sizing:border-box;}
.ca-guide-hero{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;min-height:242px;gap:28px;padding:18px 30px;background:var(--ca-bg);border:1px solid var(--ca-line);border-radius:22px;overflow:hidden;}
.ca-guide-hero .ca-scene{inset:-10% 38% -10% -5%;}
.ca-guide-hero .ca-nebula{width:110%;left:-5%;}
.ca-hero-emblem{position:relative;width:202px;height:202px;z-index:1;}
.ca-hero-copy{position:relative;z-index:1;min-width:0;}
html body .ca-hero-copy h3{font-size:34px;line-height:1.3;letter-spacing:-.06em;font-weight:800;margin:6px 0 8px;color:var(--ca-ink);}
html body .ca-hero-copy p{font-size:12px;color:var(--ca-muted);margin:0 0 16px;line-height:1.7;word-break:keep-all;}
.ca-effect{display:block;font-size:11px;color:var(--ca-accent);line-height:1.6;word-break:keep-all;}
.ca-hero-copy small{display:block;color:var(--ca-muted);font-size:10px;margin-top:8px;line-height:1.6;}
html body .ca-guide-caption{font-size:11px;line-height:1.6;margin:17px 0 12px;color:var(--muted);}
.ca-tier-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
html body .ca-tier-choice{display:flex;align-items:center;gap:9px;min-width:0;min-height:100px;text-align:left;padding:13px 10px;border-radius:13px;border:1px solid var(--ca-line);background:var(--ca-bg);font:inherit;cursor:pointer;box-shadow:none;transition:transform .2s,border-color .2s,box-shadow .2s;}
.ca-choice-art{width:49px;height:58px;flex:none;}
.ca-choice-copy{min-width:0;}
html body .ca-choice-copy .ca-kicker{font-size:8px;letter-spacing:.1em;}
html body .ca-choice-copy b{display:block;font-size:16px;line-height:1.5;letter-spacing:-.055em;font-weight:750;color:var(--ca-ink);margin:3px 0;}
html body .ca-choice-copy small{display:block;font-size:9px;line-height:1.5;color:var(--ca-muted);font-variant-numeric:tabular-nums;}
html body .ca-tier-choice:last-child{grid-column:1/-1;justify-content:center;min-height:90px;background:radial-gradient(ellipse at 20% 50%,#284958,transparent 50%),radial-gradient(ellipse at 90% 70%,#62465b,transparent 70%),var(--ca-bg);}
.ca-tier-choice:last-child .ca-choice-art{width:65px;height:65px;margin-right:10px;}
.ca-tier-choice:last-child .ca-choice-copy{display:grid;grid-template-columns:auto auto;gap:0 22px;align-items:center;}
.ca-tier-choice:last-child .ca-choice-copy .ca-kicker{grid-column:1/-1;}
html body .ca-tier-choice:last-child .ca-choice-copy b{font-size:22px;}
html body .ca-tier-choice[aria-pressed=true]{border-color:var(--ca-accent);box-shadow:inset 0 0 0 1px var(--ca-accent),0 4px 12px #101b3210;}
html body .ca-tier-choice:hover{transform:translateY(-2px);border-color:var(--ca-accent);}
html body .ca-tier-choice:focus-visible{outline:3px solid var(--blue);outline-offset:3px;}
.ca-current{position:absolute;top:5px;right:6px;font-size:8px;line-height:1.4;color:var(--ca-accent);}
.ca-surface[data-ca-tier=eternal] .ca-hero-copy h3{background:linear-gradient(100deg,#bdffeb 5%,#d3e9ff 35%,#ffd7f5 70%,#fff0d2);background-clip:text;-webkit-background-clip:text;color:transparent;}
.ca-guide-hero[data-ca-tier=eternal],html body .ca-radar[data-ca-tier=eternal]{background:radial-gradient(ellipse at 100% 0,#71446477,transparent 55%),radial-gradient(ellipse at 0 100%,#274a7066,transparent 60%),var(--ca-bg);box-shadow:inset 0 0 0 2px #d7fff619,inset 0 0 24px #adf5df09,0 10px 32px #203c4312;}
@keyframes ca-orbit{to{transform:translate(-50%,-50%) rotate(325deg)}}
@keyframes ca-orbit-reverse{to{transform:translate(-50%,-50%) rotate(-395deg)}}
@keyframes ca-nebula{50%{transform:rotate(28deg) scale(1.15);opacity:.65}}
@keyframes ca-drift{0%,100%{opacity:.2;transform:translateY(4px) scale(.7)}50%{opacity:.9;transform:translateY(-9px) scale(1.25)}}
@keyframes ca-float{50%{transform:translateY(-5px)}}
@keyframes ca-rays{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:no-preference){
 .ca-surface .ca-orbit-one{animation:ca-orbit 24s linear infinite;}
 .ca-surface .ca-orbit-two{animation:ca-orbit-reverse 36s linear infinite;}
 .ca-surface .ca-particle{animation:ca-drift var(--duration) ease-in-out var(--delay) infinite;}
 .ca-surface .ca-nebula{animation:ca-nebula 12s ease-in-out infinite;}
 .ca-surface .ca-rays{animation:ca-rays 60s linear infinite;}
 .ca-guide-hero .ca-hero-emblem{animation:ca-float 5s ease-in-out infinite;}
 .ca-surface[data-ca-tier=begin] .ca-orbit-one{animation:none;}
 .ca-surface[data-ca-tier=eternal] .ca-orbit-one{animation-duration:16s;}
 .ca-surface[data-ca-tier=eternal] .ca-orbit-two{animation-duration:24s;}
}
html:not([data-ca-motion=true]) .ca-surface *, .ca-surface:not([data-ca-visible=true]) *{animation-play-state:paused!important;}
@media(prefers-reduced-motion:reduce){.ca-surface *{animation:none!important;transition:none!important;}.ca-tier-choice:hover{transform:none!important;}}
body.focus-mode .ca-surface *{animation:none!important;transition:none!important;}
@media(max-width:1100px){
 html body .report-desk6 .ca-learning[data-report-tab6=overview]{grid-template-columns:minmax(280px,1fr) minmax(250px,1fr);gap:12px;}
 html body .ca-radar.radar-card12{padding:18px 16px 14px;}
 .ca-identity{gap:7px;}.ca-mini-crest{width:48px;height:54px;}
 html body .ca-identity strong{font-size:21px;}.ca-level{font-size:9px;padding:5px 6px;}
 html body .ca-learning .ca-records{padding:19px 17px;}
}
@media(max-width:760px){
 html body .report-desk6 .ca-learning[data-report-tab6=overview]{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:12px;}
 html body .ca-learning>.report-switch12{grid-column:1;grid-row:2;}
 html body .ca-learning>.radar-card12,html body .ca-learning>.learning-records{grid-column:1;grid-row:3;}
 html body .ca-radar.radar-card12{min-height:500px;padding:20px 18px 16px;border-radius:21px;}
 html body .ca-radar .radar-stage12{min-height:245px;}
 html body .ca-radar .radar-svg12{max-height:365px;}
 html body .ca-radar .radar-label12{font-size:20px;}
 html body .ca-radar .radar-value12{font-size:27px;}
 html body .ca-learning .history-card23{min-height:88px!important;padding:12px 10px!important;gap:9px!important;}
 html body .ca-learning .history-card23>span{font-size:10px!important;}
 html body .ca-learning .history-card23>strong{font-size:25px!important;}
 html body .ca-learning>.learning-stats{gap:7px;}
 html body .ca-learning .ca-records{min-height:450px;}
 .ca-guide-hero{grid-template-columns:158px minmax(0,1fr);gap:14px;padding:18px;min-height:210px;}
 .ca-hero-emblem{width:158px;height:158px;}
 html body .ca-hero-copy h3{font-size:28px;}
 .ca-tier-choices{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:480px){
 html body #modal:has(.ca-guide){width:calc(100vw - 18px);max-width:calc(100vw - 18px);}
 html body #modal:has(.ca-guide) #modalContent{padding:16px;}
 .ca-guide-hero{display:flex;flex-direction:column;gap:2px;padding:18px 14px 21px;text-align:center;}
 .ca-guide-hero .ca-scene{inset:0 0 25%;}
 .ca-hero-emblem{width:150px;height:150px;}
 html body .ca-hero-copy h3{font-size:28px;margin:4px 0 6px;}
 html body .ca-hero-copy p{margin-bottom:9px;font-size:11px;}
 .ca-hero-copy small{font-size:9px;}
 html body .ca-tier-choice{gap:6px;padding:15px 8px 11px;min-height:97px;}
 .ca-choice-art{width:32px;height:43px;}
 html body .ca-choice-copy b{font-size:14px;}
 html body .ca-choice-copy .ca-kicker{font-size:7px;letter-spacing:.07em;}
 html body .ca-choice-copy small{font-size:8px;}
 .ca-tier-choice:last-child .ca-choice-copy{column-gap:10px;}
 .ca-tier-choice:last-child .ca-choice-art{width:48px;height:52px;margin-right:4px;}
 html body .ca-guide-caption{font-size:10px;}
}
@media(max-width:350px){
 .ca-choice-art{width:25px;height:37px;}
 html body .ca-tier-choice{padding-left:6px;padding-right:6px;gap:5px;}
 html body .ca-choice-copy b{font-size:12px;}
 html body .ca-choice-copy small{font-size:7px;}
 .ca-identity{flex-wrap:wrap;}.ca-level{margin-left:0;}
}
@media print{.ca-scene{display:none!important}.ca-surface *{animation:none!important}.ca-radar{break-inside:avoid}}
