:root{--bg:#f3f5fa;--paper:#fff;--ink:#202940;--muted:#59647b;--accent:#463fd1;--accent-dark:#2f2799;--line:#e0e5f0;--soft:#edebff;--slate:#58657c;--studio-rail:#fcfdff;--topbar:#f7f9feeb;--studio-active:#eae7ff;--studio-active-ink:#352e9e;--hero-accent:#d8d2ff;--radius:19px;--sans:Inter,"Aptos",system-ui,-apple-system,"Segoe UI",sans-serif;--serif:Georgia,"Iowan Old Style",serif;--studio-head:67px;--max:1170px}
html{scroll-padding-top:calc(var(--studio-head) + 15px)}
body{background:radial-gradient(ellipse at 87% 0,#f0f1fd,transparent 58%),var(--bg);color:var(--ink)}
.studio-layout{display:grid;grid-template-columns:223px minmax(0,1fr);min-height:100vh}
.studio-body{display:flex;flex-direction:column;min-width:0;min-height:100vh}
.studio-body>main{flex:1;min-width:0}
.studio-body>main:focus{outline:none}
.studio-rail{height:100vh;height:100dvh;align-self:start;position:sticky;top:0;overflow:auto;display:flex;flex-direction:column;gap:14px;padding:23px 13px 15px;background:var(--studio-rail);border-right:1px solid var(--line);color:var(--ink);z-index:5}
.studio-brand{display:flex;gap:9px;align-items:center;color:var(--ink);text-decoration:none;width:max-content;max-width:100%;padding:1px 4px}
.studio-brand strong,.studio-brand small{display:block}
.studio-brand strong{font-size:1.06rem;font-weight:790;letter-spacing:-.035em;line-height:1.17}
.studio-brand small{font-size:.66rem;color:var(--muted);font-weight:740;letter-spacing:.08em;line-height:1.2;margin-top:4px;white-space:nowrap}
.studio-mark{width:37px;height:37px;flex:none;display:grid;place-items:center;border-radius:10px;color:#f6f3ff;background:linear-gradient(145deg,#8b76fb,#4c48c6 70%);box-shadow:0 4px 11px #7164cd48,inset 0 0 0 1px #ffffff27}
.studio-mark svg{width:20px;height:20px}
.rail-identity{background:linear-gradient(120deg,#efecff,#f5f6ff);border:1px solid #e3e0fc;border-radius:12px;padding:10px;margin:7px 0 2px;display:grid;gap:4px;color:#4438aa}
.rail-identity span{font-size:.77rem;font-weight:800;letter-spacing:.08em}
.rail-identity small{font-size:.82rem;color:#5f537d}
.rail-nav,.rail-utilities{display:grid;gap:4px}
.rail-nav a,.rail-utilities a,.rail-utilities button{min-height:41px;display:flex;align-items:center;gap:10px;width:100%;text-align:left;color:var(--muted);border:0;background:transparent;border-radius:9px;text-decoration:none;font-size:.91rem;font-weight:650;padding:8px 9px;transition:background .18s,color .18s}
.rail-nav a:hover,.rail-utilities a:hover,.rail-utilities button:hover{background:var(--soft);color:var(--accent)}
.rail-nav a[aria-current="page"],.studio-mobile-nav a[aria-current="page"]{background:var(--studio-active);color:var(--studio-active-ink);font-weight:770}
.rail-nav svg,.rail-utilities svg{width:18px;height:18px;flex:none}
.rail-utilities{margin-top:8px}
.rail-utilities p{color:var(--muted);font-size:.74rem;font-weight:740;letter-spacing:.1em;padding:7px 9px}
.rail-utilities button:disabled,.overview-metric:disabled{opacity:.55}
.rail-bottom{margin-top:auto;padding:12px 5px 4px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem}
.rail-bottom strong{color:var(--accent)}
.rail-bottom small{display:block;font-size:.75rem;margin-top:2px}
.studio-topbar{background:var(--topbar);border-color:var(--line);backdrop-filter:blur(13px)}
.studio-toolbar{height:var(--studio-head);display:flex;align-items:center;justify-content:space-between;gap:8px}
.studio-crumb{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.91rem}
.studio-crumb strong{color:var(--ink);font-weight:760}
.theme-toggle{width:42px;height:42px;display:grid;place-items:center;background:var(--paper);color:var(--muted);border:1px solid var(--line);border-radius:10px;flex:none}
.theme-toggle:hover{background:var(--soft);color:var(--accent)}
.theme-toggle svg{width:20px;height:20px}
.theme-toggle svg+svg,[data-theme="dark"] .theme-toggle svg:first-child{display:none}
[data-theme="dark"] .theme-toggle svg+svg{display:block}
.mobile-brand,.studio-mobile-nav{display:none}
.hero.shell{margin-top:20px;border-color:#333160;background:#161538 radial-gradient(ellipse at 80% 16%,#4b3a99 0%,#29245e 33%,#181a3b 68%,#13192f 94%);grid-template-columns:minmax(0,1.12fr) minmax(215px,.68fr);padding:clamp(22px,4vw,45px);gap:clamp(16px,3.3vw,43px);min-height:0;box-shadow:0 28px 52px -35px #201a63c4;border-radius:23px}
.hero .eyebrow{font-family:var(--sans);letter-spacing:.09em;color:#e4e2fa;font-size:.77rem}
.hero .accent-line{background:#cbbcff}
.hero h1{font-family:var(--sans);font-weight:770;font-size:clamp(2.6rem,6vw,5.2rem);letter-spacing:-.077em;line-height:.99;margin-block:15px;max-width:15ch}
.hero h1 em{font-style:normal;font-size:inherit;color:var(--hero-accent);line-height:1.03}
.hero .lede{color:#dce2f5;font-size:1rem}
.hero-cta{margin-top:17px}
.hero .aura-primary{background:#dfd7ff;border-color:#e1d9ff;color:#302469;box-shadow:0 0 27px #b1a3ff46}
.hero .aura-primary:hover{background:#eee9ff;box-shadow:0 0 29px #d0c4ff60}
.hero .hero-search .solid{background:#4437a1}
.hero .hero-search .solid:hover{background:#312478}
.hero .hero-search{color:#232151}
.hero-foot .text-button,.exam-kicker,.exam-jump{color:#e2d9ff}
.exam-kicker>span:first-child{background:#d4bdfc;box-shadow:0 0 14px #b89aefbb}
.exam-preview{border-color:#d9caff62;background:#232347d9;padding:clamp(15px,2.8vw,30px)}
.exam-preview h2{font-family:var(--sans);font-weight:720;font-size:clamp(1.48rem,2.6vw,2.4rem);letter-spacing:-.05em;line-height:1.11;max-width:17ch}
.hero-stats{padding-top:11px;gap:7px 24px}
.aura-orbit{top:-39%;right:-8%;width:min(68%,650px);opacity:.6}
.studio-overview{padding-top:17px}
.next-move{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);color:var(--ink)}
.next-move-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:12px;background:var(--studio-active);color:var(--studio-active-ink)}
.next-move-icon svg{width:22px;height:22px}
.next-move-copy{min-width:0}
.next-move h2{font-family:var(--sans);font-size:clamp(1.13rem,2vw,1.5rem);font-weight:780;line-height:1.19;letter-spacing:-.035em;margin:3px 0 2px;overflow-wrap:anywhere}
.next-move-copy p:not(.tool-label){font-size:.91rem;color:var(--muted)}
.overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}
.overview-metric{min-width:0;min-height:75px;border:1px solid var(--line);background:var(--paper);border-radius:13px;color:var(--ink);padding:10px 11px;display:flex;align-items:center;gap:9px;text-decoration:none;text-align:left;transition:border-color .17s,background .17s}
.overview-metric:hover{border-color:var(--accent);background:var(--soft)}
.overview-metric svg{color:var(--accent);width:19px;height:19px;flex:none}
.overview-metric small,.overview-metric strong{display:block}
.overview-metric small{color:var(--muted);font-size:.8rem}
.overview-metric strong{font-size:1.14rem;font-variant-numeric:tabular-nums}
.studio-overview .quick{margin-top:13px;padding-bottom:0}
.section{padding-top:30px}
.section-head{margin-bottom:15px}
.section-head h2{font-family:var(--sans);font-weight:780;letter-spacing:-.062em;font-size:clamp(2rem,4.1vw,3.25rem);margin-top:6px}
.section-head p{color:var(--muted)}
.eyebrow,.tool-label{color:var(--accent)}
.accent-line{background:var(--accent)}
.momentum{border-color:var(--line);background:linear-gradient(110deg,var(--soft),var(--paper) 78%)}
.tool-card,.subject-card,.method article{color:var(--ink);border-color:var(--line);background:var(--paper)}
.focus-card{background:linear-gradient(145deg,var(--paper),var(--soft))}
.tool-chip,.time{color:var(--accent);background:var(--soft);border-color:var(--line)}
.tool-hint,.personal-note,.momentum-copy p:not(.tool-label),.momentum-metrics,.momentum-chart li,.subject-card p,.method article p,.rank-note p,.footer-inner p{color:var(--muted)}
.momentum-metrics strong,.momentum-chart li.today,.timer-readout,.method h3,.footer-brand{color:var(--ink)}
.timer-ring{background:conic-gradient(var(--accent) var(--progress,0%),var(--line) 0)}
.timer-ring span{background:var(--paper);box-shadow:0 0 0 1px var(--line)}
.exam-list li,.task-list li,.paper-pick,.rank-note{background:var(--soft);border-color:var(--line);color:var(--muted)}
.exam-list .exam-current{background:var(--studio-active);border-color:var(--accent)}
.exam-list time,.exam-list small{color:var(--muted)}
.pick-link,.subject-actions a:first-of-type,.text-button,.quick-link{color:var(--accent)}
.subject-more{border-color:var(--line)}
.site-footer{border-color:var(--line);background:var(--studio-rail);margin-top:32px}
.button.outline,.quick-link,.command-launch,.scope,.presets button,.bookmark,.result-drive{background:var(--paper);color:var(--accent);border-color:var(--line)}
.button.outline:hover,.quick-link:hover,.command-launch:hover:not(:disabled),.result-drive:hover,.scope:hover,.presets button:not(:disabled):hover,.bookmark:hover{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.scope.is-active{background:var(--accent);border-color:var(--accent);color:#fff}
.presets button[aria-pressed="true"],.bookmark[aria-pressed="true"]{background:var(--studio-active);color:var(--studio-active-ink);border-color:var(--accent)}
#task-progress{background:var(--line);color:var(--accent)}
#task-progress::-webkit-progress-bar{background:var(--line)}
#task-progress::-webkit-progress-value{background:var(--accent)}
#task-progress::-moz-progress-bar{background:var(--accent)}
.task-list input{accent-color:var(--accent)}
.task-tag,.aura-rank,.scope #saved-count{background:var(--studio-active);color:var(--studio-active-ink);border-color:var(--line)}
.task-remove,.is-done .task-title{color:var(--muted)}
.task-remove:hover{background:var(--studio-active)}
.results-top{background:var(--paper);border-color:var(--line);color:var(--muted);min-height:50px}
.result-controls{display:flex;align-items:center;gap:9px}
.density{display:flex;gap:2px;background:var(--soft);padding:2px;border:1px solid var(--line);border-radius:8px}
.density button{display:grid;place-items:center;width:32px;height:30px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted)}
.density button[aria-pressed=true]{background:var(--paper);color:var(--accent);border-color:var(--line)}
.density svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.explorer{border-color:var(--line);background:var(--paper)}
.explorer-top{background:var(--soft);border-color:var(--line)}
.library-search,.kind select,.task-form input,.task-form select,.practice-controls select{background-color:var(--paper);border-color:var(--line);color:var(--ink)}
.library-search svg,.kind:after{stroke:var(--accent);border-color:var(--accent)}
.library-search input::placeholder{color:var(--muted)}
.result{border-color:var(--line)}
.result:hover{background:var(--soft)}
.result-icon{color:var(--accent);background:var(--soft)}
.result-title,.result-path,.result-meta,.result-topics,.empty{color:var(--muted)}
.result-title{color:var(--ink)}
.results[data-layout="grid"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}
.results[data-layout="grid"]>.result{grid-template-columns:1fr;border:1px solid var(--line);border-radius:11px;padding:11px;align-content:start;align-items:start;gap:7px;min-width:0}
.results[data-layout="grid"] .result-actions{grid-column:1;align-self:end;align-items:center}
.results[data-layout="grid"] .empty{grid-column:1/-1}
.command-dialog,.command-row,#command-query{background:var(--paper);color:var(--ink);border-color:var(--line)}
.command-row:hover,.command-row:focus-visible{background:var(--soft);border-color:var(--accent)}
.command-row small,.command-help{color:var(--muted)}
:focus-visible{outline-color:var(--accent)}
[data-theme="dark"]{color-scheme:dark;--bg:#101728;--paper:#1a2338;--ink:#edf0fc;--muted:#b6c1dd;--accent:#c1b5ff;--accent-dark:#dfd7ff;--line:#343f5c;--soft:#222c4a;--slate:#b9c1d9;--studio-rail:#151e32;--topbar:#151e32ef;--studio-active:#342b62;--studio-active-ink:#ebe4ff}
[data-theme="dark"] body{background:radial-gradient(ellipse at 100% 0,#211e42,transparent 54%),var(--bg)}
[data-theme="dark"] .rail-identity{background:#241e46;border-color:#493d72;color:#e2d9ff}
[data-theme="dark"] .rail-identity small,[data-theme="dark"] .quick-label,[data-theme="dark"] .momentum-chart li,[data-theme="dark"] .breadcrumbs .divider{color:var(--muted)}
[data-theme="dark"] .button.solid,[data-theme="dark"] .scope.is-active{color:#211744}
[data-theme="dark"] .hero-search{color:#242448;background:#f6f4ff}
[data-theme="dark"] .hero-search .solid{color:#fff}
[data-theme="dark"] .hero-search input::placeholder{color:#504d69}
[data-theme="dark"] .bookmark[aria-pressed=true] svg{fill:#6955b8}
[data-theme="dark"] .subject-card:hover{border-color:var(--accent)}
[data-theme="dark"] .momentum-data,[data-theme="dark"] .subject-actions{border-color:var(--line)}
[data-theme="dark"] .momentum-bar.empty-day{background:var(--line)}
[data-theme="dark"] .kind select,[data-theme="dark"] .task-form select,[data-theme="dark"] .practice-controls select{border-color:var(--line)}
[data-theme="dark"] .task-form select,[data-theme="dark"] .practice-controls select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23c5bcff' stroke-width='1.6'/%3E%3C/svg%3E")}
[data-theme="dark"] kbd{background:var(--soft);border-color:var(--line);color:var(--muted)}
@media(max-width:1080px){.studio-layout{grid-template-columns:178px minmax(0,1fr)}.studio-brand small{font-size:.59rem}.studio-rail{padding-inline:10px}.studio-body .shell{width:calc(100% - 34px)}}
@media(max-width:900px){.results[data-layout="grid"]{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-rail{display:none}.studio-layout{display:block}.studio-crumb{display:none}.mobile-brand{display:block}.studio-mobile-nav{display:grid;position:fixed;z-index:7;inset:auto 0 0;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;background:var(--topbar);backdrop-filter:blur(13px);border-top:1px solid var(--line);padding:5px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.studio-mobile-nav a{padding:5px 2px;display:grid;justify-items:center;grid-template-rows:20px auto;align-items:center;gap:2px;border-radius:9px;font-size:.78rem;color:var(--muted);font-weight:700;text-decoration:none}.studio-mobile-nav svg{width:18px;height:18px}.studio-body{padding-bottom:calc(57px + env(safe-area-inset-bottom))}}
@media(max-width:610px){:root{--studio-head:57px}.studio-body .shell{width:calc(100% - 24px)}.studio-brand{padding:0}.studio-mark{width:32px;height:32px}.studio-brand strong{font-size:.99rem}.studio-brand small{font-size:.56rem}.theme-toggle{width:36px;height:36px}.studio-toolbar .command-launch{min-height:36px}.studio-toolbar .nav-drive{min-height:34px;padding:5px 7px;font-size:.78rem}.hero.shell{grid-template-columns:1fr;margin-top:11px;border-radius:18px;gap:14px;padding:18px}.hero h1{font-size:clamp(2.55rem,10.5vw,3.55rem)}.hero h1 br{display:none}.hero h1 em{display:block}.hero-cta{margin-top:13px}.hero-search{margin-top:12px}.exam-preview{border-radius:13px}.exam-preview .countdown{margin-top:11px}.exam-preview h2{max-width:unset;margin:8px 0}.hero-stats{font-size:.8rem;gap:4px 12px}.hero-stats strong{font-size:.94rem}.studio-overview{padding-top:11px}.overview-metrics{gap:4px}.overview-metric{padding:9px 5px;min-height:63px;gap:4px}.overview-metric svg{display:none}.overview-metric small{font-size:.74rem}.overview-metric strong{font-size:1rem}.next-move{padding:9px;gap:7px}.next-move-icon{width:34px;height:34px}.next-move-icon svg{width:17px;height:17px}.next-move .button{min-height:36px;font-size:.79rem;padding-inline:7px}.next-move-copy p:not(.tool-label){font-size:.83rem}.section{padding-top:19px}.result-controls{gap:5px}.density button{width:29px}.results[data-layout="grid"]{padding:8px;gap:6px}.results[data-layout="grid"]>.result{padding:7px}.results[data-layout="grid"] .result-meta,.results[data-layout="grid"] .result-path,.results[data-layout="grid"] .result-topics{display:none}}
@media(max-width:355px){.studio-toolbar .nav-drive{display:none}.studio-brand small{display:none}.next-move{grid-template-columns:auto minmax(0,1fr)}.next-move .button{grid-column:2;justify-self:start}.results[data-layout="grid"]{grid-template-columns:1fr}}
.subject-grid{align-items:start}
.subject-card{min-height:215px}
[data-theme="dark"] .subject-over small{color:var(--muted)}
[data-theme="dark"] .paper-pick .pick-topics{color:var(--muted)}
@media(max-width:610px){.subject-card{min-height:0}}
@media(max-width:610px){.library-search kbd{display:none}}

/* QA refinements for small screens, long results and keyboard navigation. */
.library-context{color:var(--muted);font-size:.87rem;margin:7px 0 0}
.library-context+.path-row{margin-top:7px}
.results[data-layout="grid"]>.result{grid-template-rows:auto 1fr auto;align-content:normal}
.results[data-layout="grid"] .result-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.results[data-layout="grid"] .result-meta{margin-top:5px}
.result-copy,.exam-date,.command-head>div{min-width:0}
.result .bookmark{min-height:40px;width:40px}
.result-controls .text-button{min-height:36px}
.results .empty .button{margin-top:9px}
.breadcrumbs .current:focus{outline-offset:2px;border-radius:3px}
@media(max-width:610px){
  .results[data-layout="grid"] .result-meta{display:block}
  .result .bookmark{width:38px;min-height:38px}
  .next-move{grid-template-columns:auto minmax(0,1fr)}
  .next-move .button{grid-column:2;justify-self:start}
  .overview-metric{align-items:flex-start}
  .overview-metric small{line-height:1.25}
  .studio-mobile-nav a{min-height:45px}
  .next-move .button,.result-drive{min-height:38px;display:inline-flex;align-items:center}
}
@media(max-width:365px){.results-top{align-items:flex-start}.result-controls{flex-wrap:wrap;justify-content:flex-end}}
.result-controls #reset{white-space:nowrap}
