/* Warm editorial workspace: the reading task retains its existing structure. */
:root{--bg:#f3f0e8;--surface:#fffdf8;--surface-2:#f5f3ec;--text:#272d29;--muted:#626a61;--line:#dcded3;--primary:#42634e;--primary-2:#344e3d;--primary-soft:#e8eee5;--green:#42634e;--green-soft:#edf3e9;--cyan:#4c6960;--amber:#805e2f;--amber-soft:#f5ead7;--red:#a13f39;--red-soft:#fbefeb;--shadow:none;--radius:10px;--growth-color:#63816d;--milestone-color:#c29a63}
[data-theme="dark"]{--bg:#20251f;--surface:#292f28;--surface-2:#30372e;--text:#f3f0e8;--muted:#bdc6b8;--line:#485143;--primary:#b3cfac;--primary-2:#c8ddc2;--primary-soft:#394937;--green:#b3cfac;--green-soft:#344530;--cyan:#b3ccc0;--amber:#dfbd87;--amber-soft:#453d2d;--red:#f3a69b;--red-soft:#4c342f;--growth-color:#a9c4a1;--milestone-color:#dfbd87}
::selection{background:var(--primary-soft);color:var(--text)}
*{scrollbar-color:var(--line) transparent;scrollbar-width:thin}
input,textarea{caret-color:var(--primary)}
body{line-height:1.65}button,input,select,textarea{font-family:inherit}button{touch-action:manipulation}
.sidebar{background:var(--bg);border-color:var(--line)}.brand-mark{border-radius:12px;background:var(--text);color:var(--surface)}.brand small{color:var(--muted);font-weight:400;letter-spacing:0}
.nav{gap:4px}.nav>button{font-weight:500;padding:11px 14px}.nav>button.active{background:var(--primary-soft);color:var(--primary);font-weight:650}
.topbar{background:var(--bg);border-bottom-color:var(--line)}
.btn,.choice,.nav-q,.nav button,.module-card,summary{transition:background-color 180ms ease-out,color 180ms ease-out,border-color 180ms ease-out,box-shadow 180ms ease-out}
.btn{font-weight:550}.btn.primary{background:var(--primary);color:var(--surface)}.btn.primary:hover{background:var(--primary-2)}
.btn:active{transform:translateY(1px)}.btn:disabled{transform:none}
.card{box-shadow:none}.hero,.workspace-banner{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.hero h2{color:var(--text);font-size:30px;font-weight:600;letter-spacing:-.02em}.pocket-quick button{border-radius:10px;min-width:138px}.pocket-quick .primary{background:var(--primary)}
.module-card{box-shadow:none;background:var(--surface);border:1px solid var(--line);border-radius:10px}.module-card:hover{border-color:var(--primary);background:var(--primary-soft)}
.progress>span,.progress>div{background:var(--growth-color)}.badge{background:var(--primary-soft);color:var(--primary)}.badge.gray{color:var(--muted);background:var(--surface-2)}
.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}
.passage{background:var(--surface-2)}.question{font-weight:600}.choice:hover{background:var(--primary-soft)}.choice-key{background:var(--primary-soft);color:var(--primary)}
.translation-block{background:var(--surface-2);border-color:var(--primary)}.evidence-mark{background:#ead39e;color:#342d20}
details[open]>.option-detail-body,details[open]>.practice-tools-menu{animation:growth-reveal 200ms ease-out}
.growth-result-actions{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
#growthView{max-width:1140px;margin:0 auto;padding:12px 0 60px}
.growth-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:6px 0 34px}.growth-heading h2{margin:0;font-size:30px;font-weight:600;letter-spacing:-.02em}.growth-heading p{margin:8px 0 0;color:var(--muted);font-size:14px}.growth-heading-actions{display:flex;gap:12px;align-items:center}.growth-heading select{width:auto;min-width:120px}
.growth-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:26px 0 30px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.growth-stat{border:0;border-right:1px solid var(--line);border-radius:0;background:none;color:var(--text);text-align:left;padding:0 26px;display:flex;flex-direction:column;gap:5px}.growth-stat:first-child{padding-left:0}.growth-stat:last-child{border-right:0}.growth-stat>span{font-size:14px;color:var(--muted)}.growth-stat strong{font-size:40px;line-height:1.4;font-weight:550;font-variant-numeric:tabular-nums}.growth-stat small{font-size:14px;color:var(--muted)}.growth-stat:hover strong{color:var(--primary)}
.growth-metric-detail{background:var(--surface);padding:22px;margin:18px 0;border:1px solid var(--line);border-radius:10px}.growth-metric-detail h3{margin-top:0}.growth-table-scroll{max-height:320px;overflow:auto}.growth-metric-detail table{width:100%}
.growth-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;background:var(--primary-soft);border-radius:12px;padding:24px 28px;margin:26px 0}.growth-welcome h3{margin:0 0 6px;font-size:19px}.growth-welcome p{margin:0;color:var(--muted);font-size:14px}
.growth-trend-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(220px,1fr);gap:48px;margin-top:30px}
.growth-section{padding:25px 0;border-bottom:1px solid var(--line)}.growth-section h3{font-size:19px;font-weight:600;margin:0 0 20px}.growth-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.growth-section-head h3{margin:0}.growth-section-head>span,.growth-section-head label{font-size:14px;color:var(--muted)}.growth-section-head label{display:flex;gap:8px;align-items:center}.growth-section-head select{width:auto;min-width:90px}
.growth-trends,.growth-parts{border-bottom:0;padding-top:0;min-width:0}.growth-chart{overflow-x:auto;padding:5px 2px}.growth-chart svg{display:block;width:100%;min-width:400px;max-height:230px;overflow:visible}.growth-chart text{font-size:11px;fill:var(--muted)}.chart-grid{stroke:var(--line);stroke-width:1;fill:none}.chart-line{stroke:var(--growth-color);stroke-width:2.5;fill:none}.chart-point{fill:var(--growth-color);stroke:var(--surface);stroke-width:2}.chart-point:focus{outline:2px solid var(--primary)}
.growth-part{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 16px;width:100%;text-align:left;border:0;background:none;color:var(--text);padding:10px 0 15px}.growth-part>span:first-child{display:flex;align-items:center;gap:12px}.growth-part small{font-size:13px;color:var(--muted)}.growth-part strong{font-size:19px;font-variant-numeric:tabular-nums}.growth-part:hover{color:var(--primary)}.growth-bar{height:5px;grid-column:1/-1;background:var(--line);border-radius:3px;overflow:hidden}.growth-bar i{height:100%;display:block;background:var(--growth-color);transition:background-color 180ms ease-out}
.growth-detail{font-size:14px;color:var(--muted);margin:16px 0}.growth-detail summary{cursor:pointer;padding:4px 0;width:fit-content}.growth-detail table{width:100%;margin-top:12px;color:var(--text)}.growth-detail p{max-width:76ch;line-height:1.8}.growth-muted{color:var(--muted);font-size:14px}.growth-empty-inline{font-size:15px;color:var(--muted);padding:28px 0;min-height:115px}
.activity-disclosure{border-bottom:1px solid var(--line);padding:0 0 22px;margin-top:0}.growth-calendar{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.activity-day{position:relative;width:18px;height:18px;border-radius:3px;border:1px solid var(--line);background:var(--surface-2)}.activity-day.level-1{background:var(--primary-soft)}.activity-day.level-2{background:var(--growth-color)}.activity-day.level-3{background:var(--primary)}.activity-day>span{display:none;position:absolute;bottom:26px;left:0;white-space:nowrap;padding:6px 9px;background:var(--text);color:var(--surface);border-radius:5px;z-index:3;font-size:13px}.activity-day:hover>span,.activity-day:focus>span{display:block}
.growth-achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 30px;padding:6px 0 12px}.growth-badge summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;padding:4px 0}.growth-badge summary::-webkit-details-marker{display:none}.growth-badge svg{width:38px;height:38px;flex-shrink:0;fill:none;stroke:var(--muted);stroke-width:1.3}.growth-badge svg path+path{visibility:hidden}.growth-badge.unlocked svg{stroke:var(--amber);fill:var(--amber-soft)}.growth-badge.unlocked svg path+path{visibility:visible;fill:none}.growth-badge summary span{font-weight:550;font-size:15px}.growth-badge small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:3px}.growth-badge p{font-size:14px;color:var(--muted);margin:10px 0 0 52px}
.growth-journal-filters{display:flex;gap:20px;flex-wrap:wrap;margin:22px 0}.growth-journal-filters label{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:14px}.growth-journal-filters select{width:auto;min-width:120px}
.growth-timeline{padding:0;list-style:none;margin:0}.growth-timeline li{display:grid;grid-template-columns:110px 1fr;gap:26px;padding:20px 0;border-bottom:1px solid var(--line)}.growth-timeline li:last-child{border-bottom:0}.growth-timeline time{color:var(--muted);font-size:14px;padding-top:2px}.growth-timeline h4{font-size:16px;font-weight:550;margin:0 0 8px}.growth-timeline p{font-size:15px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-width:68ch}.growth-text-button{border:0;color:var(--primary);background:none;text-decoration:underline;text-underline-offset:4px;padding:9px 15px 5px 0;font-size:14px}
#growthNoteForm{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:10px}#growthNoteForm label{display:block;margin-bottom:12px}#growthNoteForm textarea{width:100%;resize:vertical;margin-bottom:12px}#growthNoteForm>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#growthNoteError{color:var(--red);font-size:14px}.growth-method{margin-top:28px}
.growth-share{scroll-margin-top:95px;border:1px solid var(--line);background:var(--surface);padding:28px;border-radius:12px;margin-top:30px}.growth-share-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.6fr);gap:32px}.growth-share canvas{width:100%;height:auto;align-self:start;border-radius:6px}.growth-share label{display:block;font-size:14px;margin:12px 0}.growth-share input:not([type="checkbox"]),.growth-share textarea{display:block;width:100%;margin-top:8px}.growth-share input[type="checkbox"]{width:auto;accent-color:var(--primary)}.growth-share fieldset{border:0;padding:0;margin:22px 0}.growth-share legend{font-size:14px;font-weight:600}.growth-share textarea{resize:vertical}
.growth-milestone{position:fixed;right:28px;bottom:28px;max-width:min(420px,calc(100vw - 32px));padding:20px 24px;background:var(--text);color:var(--surface);border-radius:12px;z-index:90;box-shadow:0 8px 28px #0002;animation:growth-reveal 220ms ease-out;pointer-events:none}
@keyframes growth-reveal{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.growth-timeline li.growth-empty-inline{display:block}
@media(max-width:1100px){.growth-trend-layout{gap:28px}.growth-heading{align-items:flex-start}.growth-heading h2{font-size:26px}.growth-stat{padding:0 16px}.growth-stat strong{font-size:34px}.growth-achievements{gap:20px}}
@media(max-width:700px){.growth-heading{flex-direction:column;gap:20px}.growth-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 0}.growth-stat:nth-child(2){border-right:0}.growth-stat:nth-child(3){padding-left:0}.growth-trend-layout,.growth-share-layout{grid-template-columns:minmax(0,1fr)}.growth-achievements{grid-template-columns:repeat(2,minmax(0,1fr))}.growth-timeline li{grid-template-columns:75px 1fr;gap:15px}.growth-welcome{align-items:flex-start;flex-direction:column}.growth-share{padding:18px}.growth-chart svg{min-width:300px}.growth-calendar{max-width:100%}.growth-heading h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

