/* ===== Student product flow v2: three panels + cover wall + celebration ===== */
html{scroll-behavior:smooth}
button,.button,a{transition:background-color 120ms ease,color 120ms ease,border-color 120ms ease,transform 120ms ease}
.button.secondary,button.secondary{background:#e7f2eb;color:#195d4d}
.student-welcome,.shelf-head{display:flex;align-items:center;justify-content:space-between;gap:36px;padding:44px;border-radius:20px;background:#174f42;color:#fff}
.student-welcome h1,.shelf-head h1{max-width:24ch;margin:6px 0 10px;font-size:clamp(30px,5vw,52px);line-height:1.08;letter-spacing:-.025em}
.student-welcome p,.shelf-head p{margin:0;max-width:60ch;color:#d8eee6}
.primary-action{flex:0 0 auto;background:#f3c46f;color:#173c32;font-size:18px;font-weight:800;padding:15px 22px}
.student-book-action{display:inline-flex;align-items:center;align-self:flex-end;justify-content:center;gap:10px;min-height:46px;margin-bottom:2px;padding:11px 16px;border:1px solid rgba(242,214,157,.78);border-radius:12px;background:rgba(8,39,31,.24);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);color:#f2d69d;font-size:16px;font-weight:750;line-height:1;text-decoration:none;transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease,transform 180ms ease}.student-book-action svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.student-book-action__book{width:21px;height:21px}.student-book-action__arrow{width:17px;height:17px;margin-left:1px;transition:transform 180ms ease}.student-book-action:hover{border-color:#f2d69d;background:rgba(242,214,157,.12);box-shadow:0 8px 22px rgba(5,28,22,.18),inset 0 0 0 1px rgba(255,255,255,.06);color:#fff2cf;transform:translateY(-2px)}.student-book-action:hover .student-book-action__arrow{transform:translateX(2px)}.student-book-action:active{transform:translateY(0)}
.growth-panel{padding:30px 32px;margin:20px 0;border-radius:18px;background:#edf5ec}
.growth-panel h2{font-size:26px;margin:0 0 14px}
.student-stats{grid-template-columns:repeat(2,1fr);margin:0}
.student-stats article{border:0;background:#fff}
.student-stats b{font-size:44px}
.home-paths{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0}
.path-card{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;padding:22px;border-radius:14px;background:#fff;color:#243b36;text-decoration:none;box-shadow:0 8px 24px rgba(23,79,66,.08)}
.path-card:hover{transform:translateY(-2px)}
.pathicon{grid-row:1/4;font-size:34px;line-height:1.1}
.path-card b{font-size:20px}
.pathmeta{color:#5f7770}
.pathcovers{display:flex;gap:8px;margin-top:10px}
.pathcovers img{width:52px;height:70px;object-fit:cover;border-radius:8px;border:1px solid #e0e9e3}
.coverart{position:relative;display:block;width:100%}
.coverart img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;border:1px solid #e0e9e3;background:#eef4ef}
.coverart.big{flex:0 0 auto;width:132px}
.covernum{position:absolute;top:8px;left:8px;padding:3px 8px;border-radius:8px;background:rgba(23,60,50,.82);color:#fff;font-size:12px;font-weight:800;letter-spacing:.5px}
.statebadge{position:absolute;left:8px;right:8px;bottom:8px;padding:5px 8px;border-radius:8px;text-align:center;font-size:12px;font-weight:800;letter-spacing:.4px;background:rgba(25,112,90,.92);color:#fff}
.statebadge.doing{background:rgba(224,168,79,.95);color:#3d2c07}
.statebadge.retry{background:rgba(181,83,72,.92);color:#fff}
.seriesfolder .foldercover{grid-row:1/3;width:52px;height:70px;object-fit:cover;border-radius:8px;border:1px solid #e0e9e3}
.shelf-series{align-items:center;gap:14px;margin-bottom:14px}
.shelf-series .seriescover{width:54px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #e0e9e3}
.shelf-series h2{margin:0;font-size:22px}
.shelf-series p{margin:2px 0 0;color:#657a74}
.shelf-wall{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px}
.wallcard{border:0;padding:0}
.wallcard .title{display:block;margin:8px 0 4px;font-weight:700;color:#243b36;text-decoration:none;line-height:1.3}
.wallcard .chips{margin-top:0}
.backrow{margin:0 0 4px}
.backlink{color:#31564c;font-weight:600;text-decoration:none}
.backlink:hover{text-decoration:underline}
.quiz-header{height:auto;min-height:64px;padding:0 0 16px;background:transparent;grid-template-columns:minmax(260px,1fr) minmax(140px,38%) auto;align-items:end;gap:16px}
.quiz-header>div{min-width:0}
.quiz-header h1{line-height:1.15}
.quiz-header progress{width:100%;height:12px;accent-color:#26775f}
.quiz-exit{white-space:nowrap;font-weight:700;color:#8d3d35}
.cheer{margin:18px 0 4px;font-size:clamp(24px,4vw,34px);font-weight:800;color:#19705a;text-align:center;letter-spacing:.2px}
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:80}
.confetti i{position:absolute;top:-4vh;display:block;border-radius:2px;animation:confetti-fall linear forwards}
@keyframes confetti-fall{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(108vh) rotate(720deg)}}
.stamp{animation:stamp-in 300ms cubic-bezier(.16,1,.3,1) both}
@keyframes stamp-in{0%{opacity:0;transform:scale(1.5) rotate(-14deg)}100%{opacity:.9;transform:scale(1) rotate(-8deg)}}
.result-message{padding:16px;border-radius:12px;background:#edf5ec;line-height:1.6}
.empty-state{text-align:center;padding:36px 20px}
.shelf-section{margin:22px 0;padding:26px;border-radius:16px;background:#fff}
.book-confirm{display:grid;gap:5px;margin:20px 0;padding:18px;border-radius:12px;background:#edf5ec}
.book-confirm strong{font-size:20px}
.quiz-step{max-width:760px;margin:28px auto}
.quiz-step fieldset{min-height:360px;padding-top:40px}
.quiz-step legend{font-size:clamp(22px,3vw,30px);line-height:1.3}
.quiz-step .optbtn{min-height:52px}
.quiz-controls{display:flex;justify-content:space-between;gap:12px}
.quiz-warning{color:#8d3d35;font-weight:700}
.pickmeta{font-size:12px;color:#657a74}
@media(min-width:761px){.quiz-header h1{white-space:nowrap}}
@media(max-width:760px){.student-welcome,.shelf-head{align-items:flex-start;flex-direction:column;padding:28px}.home-paths{grid-template-columns:1fr}.growth-panel{padding:22px}.student-stats b{font-size:34px}.shelf-section{padding:18px}.shelf-wall{grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:12px}.quiz-header{grid-template-columns:minmax(0,1fr) auto}.quiz-header progress{grid-column:1/-1;order:3}.quiz-step fieldset{min-height:390px}.coverart.big{width:104px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.stamp{animation:none}.confetti{display:none}}

/* ===== Student growth: achievement passport ===== */
.growth-welcome{position:relative;overflow:hidden;border-radius:14px;background:#153f36}
.growth-welcome.brand-hero h1{max-width:800px;margin:12px 0 18px;font-size:clamp(34px,4.8vw,56px);line-height:1.06}.growth-welcome.brand-hero h1 span{display:block;white-space:nowrap}.growth-welcome.brand-hero .brand-context{color:#d8eee6}.growth-welcome.brand-hero .brand-tagline-zh{color:#f2d69d}
.growth-welcome::after{content:"";position:absolute;right:-76px;bottom:-126px;width:280px;height:280px;border:30px double rgba(235,211,155,.12);border-radius:50%;pointer-events:none}
.growth-welcome>div,.growth-welcome .student-book-action{position:relative;z-index:1}
.growth-showcase{display:grid;grid-template-columns:270px minmax(0,1fr);margin:22px 0;overflow:hidden;border:1px solid #cfc4af;border-radius:14px;background:#fffdf6;box-shadow:0 16px 38px rgba(72,54,28,.12)}
.passport-identity{position:relative;display:flex;align-items:center;flex-direction:column;padding:34px 24px;color:#fff;text-align:center;background:#185347}
.passport-identity::before{content:"";position:absolute;inset:12px;border:1px solid rgba(239,216,158,.42);border-radius:7px;pointer-events:none}
.passport-identity::after{content:"READING · STORIES · DISCOVERY";position:absolute;right:-82px;bottom:84px;color:rgba(255,255,255,.1);font-size:13px;font-weight:900;letter-spacing:.22em;transform:rotate(-90deg)}
.passport-emblem{display:grid;width:142px;height:142px;margin:12px 0 22px;place-items:center;border:2px solid #efd89e;border-radius:50%;box-shadow:inset 0 0 0 7px #185347,inset 0 0 0 8px rgba(239,216,158,.65)}
.passport-emblem svg{width:92px;height:92px;fill:none;stroke:#efd89e;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.passport-identity p{margin:0;color:#efd89e;font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.passport-identity h2{margin:12px 0 6px;font-family:Georgia,"Times New Roman",serif;font-size:27px;line-height:1.15}
.passport-identity span{color:#d5e8e1}
.passport-identity small{margin-top:auto;padding-top:30px;color:#efd89e;font-size:10px;letter-spacing:.14em}
.passport-page{min-width:0;padding:34px 38px 30px;background-color:#fffdf6;background-image:radial-gradient(rgba(110,91,55,.075) .65px,transparent .65px);background-size:6px 6px}
.passport-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.passport-page-head h2{margin:0;color:#3d362a;font-family:Georgia,"Times New Roman",serif;font-size:28px}
.passport-page-head p{margin:5px 0 0;color:#776e5e}
.passport-number{padding-bottom:5px;border-bottom:1px solid #9f3c30;color:#9f3c30;font-size:11px;font-weight:900;letter-spacing:.12em}
.growth-totals{display:grid;grid-template-columns:1fr 1fr;margin:22px 0 24px;border-top:1px solid #d8cebb;border-bottom:1px solid #d8cebb}
.growth-totals div{padding:17px 0}
.growth-totals div+div{padding-left:28px;border-left:1px solid #d8cebb}
.growth-totals strong{display:block;color:#29271f;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4vw,46px);line-height:1;font-variant-numeric:tabular-nums}
.growth-totals span{display:block;margin-top:7px;color:#6f6759;font-weight:700}
.stamp-row{display:flex;align-items:center;gap:18px;min-width:0;padding:8px 5px 16px;overflow-x:auto;scrollbar-color:#b9aa8d transparent;scrollbar-width:thin}
.reading-stamp{position:relative;flex:0 0 148px;display:grid;place-items:center;aspect-ratio:1;color:#a44235;transform:rotate(-4deg);filter:drop-shadow(0 7px 7px rgba(76,49,24,.12))}
.reading-stamp:nth-child(even){color:#176152;transform:rotate(4deg)}
.reading-stamp:nth-child(3n){color:#655187;transform:rotate(-2deg)}
.reading-stamp::after{content:"";position:absolute;inset:0;border:2px dashed currentColor;border-radius:50%;opacity:.7}
.stamp-ring{display:flex;width:132px;height:132px;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:16px;text-align:center;border:3px double currentColor;border-radius:50%;background:rgba(255,253,246,.88);box-shadow:inset 0 0 0 5px rgba(255,253,246,.9),inset 0 0 0 6px currentColor}
.stamp-icon{width:48px;height:48px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.stamp-words_10k .stamp-icon{width:54px;height:54px;fill:rgba(207,157,58,.13)}
.stamp-ring strong{max-width:105px;font-size:14px;line-height:1.05;text-transform:uppercase;letter-spacing:.02em}
.stamp-ring small{font-size:8px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.reading-stamp i{position:absolute;right:-17px;bottom:24px;width:52px;height:2px;background:currentColor;box-shadow:0 6px currentColor,0 12px currentColor;opacity:.22;transform:rotate(-10deg)}
.reading-stamp.next{color:#786f85;filter:none;opacity:.7}
.reading-stamp.next::after{border-style:dotted}
.reading-stamp.next .stamp-ring{background:rgba(241,237,232,.72);box-shadow:none}
.stamp-empty{display:flex;flex:1 0 210px;align-items:center;gap:12px;color:#725f3d}
.stamp-empty svg{width:58px;fill:none;stroke:currentColor;stroke-width:2}
.stamp-status{margin:0;color:#746b5c;font-size:13px}
.passport-progress{margin-top:22px;padding-top:20px;border-top:1px solid #d8cebb}
.level-progress-head,.level-progress-meta{display:flex;justify-content:space-between;gap:18px}
.level-progress-head{align-items:flex-end;color:#3d362a}
.level-progress-head span,.level-progress-meta{color:#71695c;font-size:13px}
.reading-progress,.class-goal-track{height:14px;margin-top:11px;overflow:hidden;border-radius:3px;background:#e4dccd}
.reading-progress span,.class-goal-track span{display:block;width:var(--progress);height:100%;border-radius:inherit;background:#9f3c30}
.level-progress-meta{margin-top:7px;font-variant-numeric:tabular-nums}
.highest-level{display:grid;gap:5px;padding:14px 16px;border:1px solid #d8cebb;color:#3d362a}
.highest-level span{color:#71695c}
.class-goal{margin:22px 0;padding:28px 32px;border:1px solid #cfc4af;border-radius:12px;background:#fffdf6;box-shadow:0 12px 30px rgba(72,54,28,.09)}
.class-goal-head,.class-goal-title,.class-goal-meta{display:flex;align-items:center}
.class-goal-head,.class-goal-meta{justify-content:space-between;gap:24px}
.class-goal-title{gap:14px}.class-goal-title h2{margin:0;color:#153f36;font-family:Georgia,"Times New Roman",serif;font-size:25px}
.class-goal-title p{margin:4px 0 0;color:#71695c}
.class-goal-icon{display:grid;flex:0 0 52px;width:52px;height:52px;place-items:center;border:1px solid #185347;border-radius:50%;color:#185347}
.class-goal-icon svg{width:33px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.class-goal-percent{color:#153f36;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,5vw,50px);line-height:1;font-variant-numeric:tabular-nums}
.class-goal-track{height:18px;margin-top:22px}.class-goal-track span{background:#185347}
.class-goal.goal-completed .class-goal-track span{background:#9f3c30}
.class-goal-meta{margin-top:10px;color:#71695c;font-variant-numeric:tabular-nums}.class-goal-meta strong{color:#29271f}
.home-paths{grid-template-columns:repeat(3,1fr)}.path-card{border:1px solid #d5cab6;border-radius:10px;box-shadow:none;background:#fffdf6}
.pathicon{display:grid;width:42px;height:42px;place-items:center;border:1px solid #185347;border-radius:50%;color:#185347}
.pathicon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.growth-showcase{grid-template-columns:220px minmax(0,1fr)}.passport-page{padding-inline:28px}.passport-emblem{width:118px;height:118px}.passport-emblem svg{width:76px;height:76px}}
@media(max-width:700px){
  .growth-showcase{grid-template-columns:1fr}.passport-identity{min-height:278px;padding:26px 20px}.passport-emblem{width:104px;height:104px;margin:6px 0 12px}.passport-emblem svg{width:68px;height:68px}.passport-identity small{padding-top:16px}
  .passport-page{padding:28px 20px 24px}.passport-page-head{align-items:flex-start;flex-direction:column;gap:10px}.growth-totals{gap:0}.stamp-row{gap:7px;padding-inline:0}.reading-stamp{flex-basis:106px}.stamp-ring{width:94px;height:94px;padding:9px}.reading-stamp::before{top:2px;font-size:6px}.reading-stamp i{display:none}.stamp-icon,.stamp-words_10k .stamp-icon{width:35px;height:35px}.stamp-ring strong{max-width:76px;font-size:11px}.stamp-ring small{font-size:6px}.level-progress-head{align-items:flex-start;flex-direction:column;gap:5px}
  .class-goal{padding:24px 20px}.class-goal-head{align-items:flex-start}.class-goal-title{align-items:flex-start}.class-goal-icon{flex-basis:46px;width:46px;height:46px}.class-goal-meta{align-items:flex-start;flex-direction:column;gap:4px}.home-paths{grid-template-columns:1fr}
}
@media(max-width:420px){.growth-totals strong{font-size:32px}.growth-totals div+div{padding-left:18px}.class-goal-title h2{font-size:20px}.class-goal-percent{font-size:32px}.stamp-row{gap:3px}.reading-stamp{flex-basis:101px}}
/* ===== Library: category chips with icons, smaller book grid, Take Quiz card ===== */
.chipicon{margin-right:6px}
.bookgrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px}
.bookgrid article .body{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.bookgrid article .body .title{margin-top:8px}
.bookgrid .chips{margin-top:2px}
.takequiz{margin-top:8px;width:100%}
.takequiz .button{width:100%;text-align:center}
@media(max-width:700px){.bookgrid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:12px}.bookgrid article{display:block}.bookgrid article .body .title{margin-top:8px}.growth-welcome.brand-hero h1{font-size:clamp(24px,7.2vw,32px)}.growth-welcome .student-book-action{align-self:stretch;width:100%;margin:2px 0 0}}
