:root{--bg:#f2f5f0;--ink:#182c25;--accent:#205847;--line:#d7e1d9;--radius:21px;--forest:#122c24;--mint:#cce7ac;--slate:#4b6156}
body{background:linear-gradient(180deg,#f9fbf7 0,#f1f5ef 42rem);font-size:1rem}
.topbar{background:#f9fbf6ed;border-color:#e3ebe3}
.nav{min-height:70px}
.nav nav a{padding:10px 0}
.brand img{border-radius:12px;box-shadow:0 2px 9px #1a47231c}
.hero.shell{margin-top:24px;background:#132e26 radial-gradient(ellipse at 86% 29%,#2b5640 0%,#18392d 47%,#122d24 78%);border-radius:30px;position:relative;isolation:isolate;overflow:hidden;padding:clamp(26px,4.8vw,64px);gap:clamp(20px,4.4vw,58px);grid-template-columns:minmax(0,1.1fr) minmax(265px,.75fr);box-shadow:0 18px 46px -27px #153b2994;color:#f6faf3;align-items:center}
.hero::before{content:"";pointer-events:none;position:absolute;z-index:-1;inset:0;background-image:linear-gradient(90deg,#e1ffe312 1px,transparent 1px),linear-gradient(0deg,#e1ffe312 1px,transparent 1px);background-size:35px 35px;mask-image:radial-gradient(ellipse at 91% 21%,black 0%,transparent 64%)}
.hero .eyebrow{color:#d1e8c4;font-size:.79rem;letter-spacing:.11em}
.hero .accent-line{background:var(--mint)}
.hero h1{font-size:clamp(3.6rem,8.1vw,7.4rem);margin-block:16px 21px}
.hero h1 em{color:var(--mint)}
.hero .lede{color:#e0ece2;max-width:30rem}
.hero-search{margin-top:22px;background:#f9fdf7;padding-block:6px;max-width:34rem;color:#193d2f}
.hero-search .solid{background:#225645}
.hero-search .solid:hover{background:#113e32}
.hero-foot{color:#c5dacd;max-width:34rem;font-size:.91rem;padding-top:2px}
.hero-foot>a,.hero-foot .text-button{color:#d8f1bd;font-weight:700}
.hero-foot>a:hover,.hero-foot .text-button:hover{color:white}
.hero :focus-visible{outline-color:#d2eeb6}
.exam-preview{position:relative;border:1px solid #bddec44d;background:#0c2319a1;border-radius:22px;padding:clamp(19px,3.25vw,35px);max-width:100%;overflow:hidden;isolation:isolate}
.orbit{pointer-events:none;position:absolute;width:230px;height:230px;border:1px solid #d2e9bd29;right:-110px;top:-112px;border-radius:50%;z-index:-1;box-shadow:0 0 0 22px #badcc117,0 0 0 48px #badcc112,0 0 0 72px #badcc108}
.exam-kicker{font-size:.8rem;font-weight:770;letter-spacing:.09em;color:#d6edbd;display:flex;gap:9px;align-items:center}
.exam-kicker>span:first-child{width:7px;height:7px;background:#c8ee9f;border-radius:50%;flex:none;box-shadow:0 0 15px #c9efa16e}
.exam-preview h2{font-size:clamp(1.85rem,3.15vw,3.04rem);margin:14px 0 10px;line-height:1.04;max-width:14ch}
.exam-date{color:#d1e2d6;font-size:.95rem}
.countdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0 0}
.countdown>div{display:grid;justify-items:center;gap:4px;padding:10px 4px;border:1px solid #d7efcb3d;border-radius:11px;background:#bed7af19}
.countdown strong{font-size:clamp(1.4rem,3vw,2.3rem);font-weight:640;letter-spacing:-.05em;line-height:1;font-variant-numeric:tabular-nums}
.countdown span{color:#d7e4d8;font-size:.81rem}
.exam-jump{display:inline-flex;align-items:center;min-height:40px;color:#d8edbd;font-size:.92rem;font-weight:700;margin-top:11px}
.exam-jump:hover{color:#fff}
.hero-stats{display:flex;gap:10px clamp(17px,4vw,50px);grid-column:1/-1;flex-wrap:wrap;border-top:1px solid #b7d0bf45;padding-top:15px;color:#d3e5d8;font-size:.92rem}
.hero-stats strong{font-size:1.15rem;color:#f7fbf3;margin-right:4px}
.quick{margin-top:20px}
.section{padding-top:54px}
.section-head p{font-size:1rem;color:var(--slate)}
.prep-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.secondary-tools{margin-top:16px}
.tool-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);background:#fff;border-radius:var(--radius);padding:clamp(17px,2.4vw,27px);box-shadow:0 16px 32px -30px #16412a78;scroll-margin-top:7px}
.focus-card{background:linear-gradient(145deg,#f9fcf6,#e9f3e7)}
.tool-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:13px}
.tool-label{color:#477259;font-size:.78rem;font-weight:760;letter-spacing:.12em}
.tool-head h3{font-size:clamp(1.17rem,2.4vw,1.63rem);letter-spacing:-.035em;line-height:1.16;margin-top:4px}
.tool-chip{border:1px solid #d9e6d6;border-radius:50px;background:#f5f9f2;color:#355b47;font-size:.88rem;font-weight:690;padding:5px 10px;white-space:nowrap}
.tool-hint{font-size:.92rem;color:#4c6558;line-height:1.45}
.presets{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.presets button,.bookmark{border:1px solid #cadbd0;background:#f9fcf7;border-radius:8px;font-size:.88rem;font-weight:710;color:#365a48;min-height:40px;padding:5px 10px;transition:background .17s,border-color .17s,color .17s}
.presets button:not(:disabled):hover,.bookmark:hover{border-color:#8cae9a;background:#e3f0e5}
.presets button[aria-pressed=true],.bookmark[aria-pressed=true]{background:#dcecdc;border-color:#81a698;color:#194b37}
.presets button:disabled:not([aria-pressed=true]){opacity:.55}
.timer-block{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:18px 0}
.timer-readout{font-variant-numeric:tabular-nums;font-size:clamp(2.8rem,6vw,5.1rem);color:#173e2e;font-weight:660;letter-spacing:-.085em;line-height:1.02}
.timer-ring{width:clamp(60px,9vw,93px);aspect-ratio:1;border-radius:50%;background:conic-gradient(#3e8362 var(--progress,0%),#d3e5d4 0);display:grid;place-items:center;flex:none}
.timer-ring span{width:76%;aspect-ratio:1;border-radius:50%;background:#f5fbf2;box-shadow:0 0 0 1px #cddfcf}
.focus-actions{display:flex;gap:8px}
.button:disabled{opacity:.55;box-shadow:none}
#task-progress{appearance:none;width:100%;height:7px;border:0;border-radius:99px;background:#e8f0e7;margin:0 0 13px;color:#458261}
#task-progress::-webkit-progress-bar{background:#e8f0e7;border-radius:99px}
#task-progress::-webkit-progress-value{background:#458261;border-radius:99px}
#task-progress::-moz-progress-bar{background:#458261;border-radius:99px}
.task-form,.practice-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px;align-items:stretch;margin-bottom:12px}
.task-form input,.task-form select,.practice-controls select{border:1px solid #cedcd2;min-width:0;max-width:100%;width:100%;padding:8px 11px;border-radius:9px;background:#fff;font-size:1rem}
.task-form select,.practice-controls select{appearance:none;background:#fff 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='%23365848' stroke-width='1.5'/%3E%3C/svg%3E") right 9px center/12px 12px no-repeat;padding-right:25px}
.task-list,.exam-list{list-style:none;padding:0;margin:0}
.task-list{display:grid;gap:5px;max-height:244px;overflow:auto;scrollbar-gutter:stable}
.task-list li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 3px 4px 8px;background:#f7faf5;border:1px solid #e7eee4;border-radius:9px}
.task-list label{display:flex;align-items:center;gap:7px;min-width:0;cursor:pointer}
.task-list input{accent-color:#336f50;width:17px;height:17px;flex:none;margin:4px 2px 4px 0}
.task-title{overflow-wrap:anywhere;font-size:.96rem}
.is-done .task-title{text-decoration:line-through;color:#5b7065}
.task-tag{color:#315b44;background:#e1ebdf;font-size:.76rem;font-weight:700;padding:2px 5px;border-radius:4px}
.task-remove{font-size:1.2rem;background:none;border:0;border-radius:6px;width:34px;height:34px;flex:none;color:#526b5a}
.task-remove:hover{background:#e6efe5}
#task-hint:not([hidden]){margin-top:8px}
.practice-controls{grid-template-columns:minmax(0,1fr) auto;margin:13px 0}
.paper-pick{background:#eef4ea;border:1px solid #dee9dd;padding:12px 14px;border-radius:12px;color:#3c5f49}
.pick-details,.pick-topics{font-size:.91rem}
.pick-links{display:flex;align-items:center;flex-wrap:wrap;gap:5px 13px;margin:3px 0}
.pick-link{font-weight:760;color:#1a523e}
.pick-index{font-size:.89rem}
.exam-list{display:grid;gap:4px;margin-top:10px}
.exam-list li{display:grid;grid-template-columns:minmax(72px,auto) minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 8px;background:#f8faf7;border-radius:8px;font-size:.89rem}
.exam-list .exam-current{background:#e8f2e5;border-left:3px solid #659176}
.exam-list time{font-weight:690;color:#345a47}
.exam-list a{font-weight:690;text-underline-offset:2px;line-height:1.3}
.exam-list small{font-size:.76rem;color:#516c5d}
.personal-note{color:#4e675a;font-size:.9rem;margin-top:13px}
.subject-card{scroll-margin-top:6px}
.subject-more{margin-top:10px;border-top:1px solid #e4ece4;padding-top:6px;font-size:.91rem}
.subject-more summary{cursor:pointer;font-weight:660;padding:5px 0}
.subject-resources{display:grid;gap:5px;padding:6px 0}
.subject-resources button{text-align:left}
.result-actions{display:flex;align-items:center;gap:6px}
.bookmark{display:grid;place-items:center;padding:5px;width:37px;min-height:36px}
.bookmark svg{width:18px;height:18px}
.bookmark[aria-pressed=true] svg{fill:#a2c6ac}
.scope #saved-count{font-size:.79rem;padding:1px 5px;border-radius:12px;background:#dceadd;color:#285341;font-weight:730}
@media(max-width:770px){.hero.shell{gap:20px;padding:27px;grid-template-columns:minmax(0,1fr) minmax(210px,.78fr)}.hero h1{font-size:clamp(3.2rem,8vw,4.6rem)}.hero .lede{font-size:1rem}.exam-list li{grid-template-columns:minmax(66px,auto) 1fr}.exam-list small{grid-column:2}.nav nav{gap:15px}}
@media(max-width:610px){.hero.shell{margin-top:13px;grid-template-columns:1fr;padding:24px 18px;border-radius:21px;gap:19px}.hero h1{font-size:clamp(3.3rem,12vw,4.9rem);margin-block:12px}.hero h1 br{display:none}.exam-preview{border-radius:17px}.exam-preview h2{max-width:none}.hero-search{margin-top:14px}.hero-stats{padding-top:12px;gap:5px 15px;font-size:.86rem}.hero-stats strong{font-size:1.05rem}.prep-grid{grid-template-columns:1fr;gap:11px}.secondary-tools{margin-top:11px}.section{padding-top:39px}.tool-card{border-radius:16px}.exam-list li{grid-template-columns:minmax(72px,auto) minmax(0,1fr) auto}.exam-list small{grid-column:auto}.exam-list li a{overflow-wrap:anywhere}.result-actions{gap:5px}.library-search input,.kind select{font-size:1rem}.result-actions .result-drive{display:inline-block}}
@media(max-width:430px){.nav-drive{font-size:.77rem;padding-inline:8px;min-height:38px}.tool-head{gap:6px}.tool-chip{font-size:.8rem;padding-inline:7px}.task-form input{padding-inline:7px}.task-form .button{padding-inline:10px}.task-form select{font-size:.88rem;padding-left:7px}.result-actions{grid-column:2;justify-self:start}.bookmark{min-height:36px}.exam-list li{grid-template-columns:minmax(65px,auto) 1fr}.exam-list small{grid-column:2}.hero .eyebrow{font-size:.72rem}.hero h1{font-size:clamp(2.8rem,13vw,3.5rem)}}
@media(prefers-reduced-motion:reduce){.tool-card,.result-actions button,.hero-search{transition:none}}
