:root{--ink:#172e39;--muted:#657781;--green:#20665f;--light:#e9f3ef;--line:#dee7e8;--paper:#fff;--bg:#f4f7fa;--coral:#d07150;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:16px;line-height:1.65;background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid #d49736;outline-offset:4px}.skip{position:fixed;left:16px;top:-70px;background:#fff;padding:12px;z-index:50}.skip:focus{top:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:38px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:13px;font-size:26px;font-weight:700;letter-spacing:.06em}.brand-mark{display:grid;place-items:center;background:#173f42;color:#fff;width:45px;height:49px;font-family:serif;font-size:25px;border-radius:4px 14px 4px 4px}.brand small{display:block;font-weight:400;font-size:14px;letter-spacing:.1em;color:var(--muted)}.nav-label{font-size:14px;color:var(--muted);margin:30px 4px 18px;line-height:1.8}.sidebar nav{display:grid;gap:9px}.sidebar nav a{display:flex;gap:13px;align-items:center;padding:12px 14px;font-size:16px;border-radius:9px}.sidebar nav a span{font-size:20px;line-height:1;width:22px;color:var(--green)}.sidebar nav a:hover,.sidebar nav a.active{background:var(--light);color:var(--green)}.sidebar nav a.active{font-weight:600}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:18px;font-size:14px;color:var(--muted)}.sidebar-bottom a{display:block;padding:7px 0}.sidebar-bottom span{float:right;background:#eef2f4;font-size:12px;padding:1px 5px;border-radius:3px}.sidebar-bottom p{font-size:12px}.mobile-head{display:none}main{margin-left:232px;padding:38px clamp(24px,4vw,64px) 80px;max-width:1600px;min-height:100vh}.eyebrow{font-size:12px;font-weight:650;letter-spacing:.19em;color:var(--green);margin:0 0 15px}.hero{position:relative;padding:38px 42px;background:#e5efed;border:1px solid #d5e3df;border-radius:18px;overflow:hidden;margin-bottom:29px}.hero:after{content:"Aa";position:absolute;right:34px;top:20px;font:italic 160px Georgia,serif;color:#20665f0b;pointer-events:none}.hero h1{font-size:clamp(29px,3.1vw,43px);line-height:1.45;letter-spacing:-.02em;margin:0 0 19px;max-width:720px;font-weight:650}.hero p:not(.eyebrow){font-size:16px;color:#44625f;max-width:630px;line-height:1.9;margin:0 0 24px}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:10px 18px;font-size:14px;line-height:1.6;min-height:42px}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.soft{background:var(--light);border-color:transparent;color:var(--green)}.btn:hover{filter:brightness(.96)}.btn.small{min-height:36px;padding:6px 11px}.page-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:26px}.page-top h1{font-size:30px;line-height:1.4;margin:5px 0 10px}.page-top p{margin:0;color:var(--muted);max-width:750px;font-size:16px}.section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:29px 0 16px}.section-title h2{font-size:20px;margin:0;letter-spacing:-.02em}.section-title a{color:var(--green);font-size:14px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.panel,.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;box-shadow:0 4px 18px #1d435004}.card h2,.panel h2{font-size:19px;line-height:1.55;margin:7px 0 11px}.card h3,.panel h3{font-size:16px;margin:18px 0 8px}.card p,.panel p{font-size:14px;color:var(--muted);margin:8px 0 17px}.route-card{position:relative;padding:24px;min-height:174px;transition:transform .15s,border-color .15s}.route-card:hover{transform:translateY(-3px);border-color:#8eb9ad}.route-card .symbol{font-size:23px;color:var(--green)}.route-card h3{font-size:18px;margin:13px 0 8px}.route-card p{font-size:14px;margin:0;color:var(--muted)}.tag{display:inline-block;font-size:12px;color:var(--green);background:var(--light);padding:3px 8px;border-radius:4px;vertical-align:middle}.tag.subtle{background:#f0f3f6;color:var(--muted)}.meta{font-size:12px;color:var(--muted)}.callout{border-left:3px solid #8ab7a7;background:#f0f6f4;padding:14px 17px;color:#41615b;font-size:14px;border-radius:0 7px 7px 0;margin:15px 0}.callout.warn{border-color:#c18b59;background:#fbf4ec;color:#785637}.step-line{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.step-line span{font-size:14px;border:1px solid #d4e1dd;background:#fff;padding:7px 12px;border-radius:5px}.tools{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:22px}.search{width:100%;border:1px solid #ccd9dd;border-radius:7px;padding:12px 15px;background:#fbfcfd;color:var(--ink);font-size:16px}.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.chip{background:#f3f6f7;border:1px solid transparent;border-radius:5px;padding:6px 12px;color:#526872;font-size:14px}.chip.active{background:var(--green);color:#fff}.chip:hover{border-color:#a5b9bc}.filter-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:14px;color:var(--muted)}.filter-footer label{display:flex;align-items:center;gap:7px}.material-head{display:flex;align-items:center;gap:8px;margin-bottom:14px}.material-head button{margin-left:auto}.save-btn{background:none;border:1px solid var(--line);border-radius:6px;font-size:17px;min-width:34px;height:34px;line-height:1;color:#677c83}.save-btn[aria-pressed=true]{background:#fff6e3;border-color:#ecd8a7;color:#986e20}.english{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.7;color:#1d3d49;margin:15px 0}.translation{font-size:15px;color:#4f686a;margin:15px 0 19px;line-height:1.9}.material-card{display:flex;flex-direction:column}.material-card .english{flex:1}.material-card details{font-size:14px;border-top:1px solid var(--line);padding-top:13px;margin-top:9px}.material-card summary{cursor:pointer;color:var(--green)}.material-card details p{margin:10px 0}.card-actions{display:flex;gap:9px;margin-top:14px}.empty{padding:55px 24px;text-align:center;background:#fff;border:1px dashed #c4d3d7;border-radius:10px;color:var(--muted)}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.tabs a{border:1px solid var(--line);padding:9px 15px;background:#fff;border-radius:7px;font-size:14px}.tabs a.active{color:#fff;background:var(--green);border-color:var(--green)}.lesson-layout{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(0,1.55fr);gap:22px;align-items:start}.framework{position:sticky;top:25px}.framework ol{padding-left:21px;color:var(--ink);font-size:15px}.framework li{padding:6px 0}.paragraph-block{padding:22px 0;border-bottom:1px solid var(--line)}.paragraph-block:first-child{padding-top:8px}.paragraph-block:last-child{border-bottom:none}.paragraph-block .english{font-size:18px;margin:10px 0;line-height:1.85}.paragraph-block summary{font-size:14px;color:var(--green);cursor:pointer;margin-top:12px}.paragraph-block .translation{font-size:14px}.essay-header{display:flex;justify-content:space-between;align-items:center}.prompt{padding:14px;background:#f3f6f8;border-radius:8px;font-size:14px;color:#50656e}.writer-grid{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.25fr);gap:22px;align-items:start}label.field{display:block;margin:17px 0;color:var(--ink);font-size:14px;font-weight:600}.field small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin:5px 0}.field input,.field textarea,.field select{display:block;border:1px solid #cedbdf;background:#fbfcfd;border-radius:6px;width:100%;padding:10px 12px;font-size:15px;font-weight:400;color:var(--ink);margin-top:7px}.field textarea{resize:vertical;min-height:70px}.draft-editor{font-family:Georgia,"Times New Roman",serif!important;min-height:440px!important;font-size:18px!important;line-height:1.85!important;background:#fff!important}.writer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 16px}.word-count{font-size:14px;color:var(--muted)}.word-count.good{color:var(--green)}.word-count.over{color:#a35333}.timer{display:flex;gap:7px;align-items:center;font-size:14px}.timer time{font-family:monospace;font-size:18px;margin-right:5px}.checks{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.checks label{font-size:14px;display:flex;align-items:flex-start;gap:8px;margin:11px 0}.checks input{margin-top:6px;accent-color:var(--green)}.auto-checks{font-size:14px;color:var(--muted);margin:15px 0}.auto-checks p{margin:5px 0}.draft-meta{font-size:12px;color:var(--muted)}.toast{position:fixed;left:calc(50% + 116px);bottom:28px;transform:translate(-50%,20px);background:#173f42;color:#fff;font-size:14px;padding:11px 19px;border-radius:7px;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:40;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}.prose{max-width:880px}.prose p,.prose li{font-size:16px;color:#536b74}.prose h2{font-size:21px;margin-top:27px}.prose a{color:var(--green);text-decoration:underline;text-underline-offset:4px}.facts{display:flex;gap:25px;flex-wrap:wrap;margin:26px 0 0}.facts strong{font:27px Georgia,serif;color:var(--green);margin-right:6px}.facts span{font-size:14px;color:#56726c}.note{font-size:14px;color:var(--muted);margin:20px 0}.loading{color:var(--muted)}.bottom-spacer{height:20px}.result-count{font-size:14px;color:var(--muted)}
@media(max-width:1100px){.sidebar{width:205px;padding:28px 15px}main{margin-left:205px;padding:30px 25px 65px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:30px}.lesson-layout,.writer-grid{grid-template-columns:1fr}.framework{position:static}.toast{left:calc(50% + 102px)}}
@media(max-width:700px){.sidebar{inset:auto 0 0;width:auto;height:68px;padding:5px 3px calc(5px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(15px)}.sidebar .brand,.nav-label,.sidebar-bottom{display:none}.sidebar nav{grid-template-columns:repeat(5,1fr);gap:2px}.sidebar nav a{display:flex;flex-direction:column;gap:5px;padding:5px 0;font-size:11px;white-space:nowrap;border-radius:6px}.sidebar nav a span{font-size:20px;text-align:center}.mobile-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#fff;border-bottom:1px solid var(--line)}.mobile-head a:first-child{font-size:22px;font-weight:650}.mobile-head span{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}.mobile-head a:last-child{font-size:14px;color:var(--green)}main{margin-left:0;padding:22px 17px 100px}.hero{padding:26px 23px;border-radius:12px}.hero h1{font-size:28px}.hero:after{font-size:120px;right:-10px;top:3px}.hero p:not(.eyebrow){font-size:15px}.facts{gap:18px}.facts strong{font-size:23px}.grid,.grid.three{grid-template-columns:1fr;gap:13px}.page-top{display:block}.page-top h1{font-size:26px}.page-top>.btn{margin-top:17px}.page-top p{font-size:14px}.panel,.card{padding:20px}.route-card{min-height:140px}.route-card h3{margin:7px 0}.page-top .eyebrow{font-size:11px}.english{font-size:19px}.filter-footer{align-items:flex-start;flex-direction:column}.writer-toolbar{align-items:flex-start;flex-direction:column}.draft-editor{min-height:360px!important}.toast{left:50%;bottom:85px;width:max-content;text-align:center}.tabs{gap:6px}.tabs a{padding:7px 10px}.section-title{margin-top:24px}.lesson-layout,.writer-grid{gap:14px}.prose p,.prose li{font-size:15px}.sidebar nav a.active{font-weight:600}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:#fff}.sidebar,.mobile-head,.toast,.tools,.tabs,.page-top>.btn,.btn,.save-btn,.card-actions,.timer,.skip{display:none!important}main{margin:0;padding:0;max-width:none}.grid,.lesson-layout,.writer-grid{display:block}.panel,.card{box-shadow:none;break-inside:avoid;border:1px solid #ccc;margin-bottom:15px}.hero{background:#fff;border:0;padding:0}.hero:after{display:none}.writer-grid>.panel:first-child{display:none}.draft-editor{border:0!important;min-height:0!important;resize:none!important;font-size:12pt!important}.checks{break-inside:avoid}.framework{position:static}.english{font-size:13pt}.paragraph-block{break-inside:avoid}.translation{font-size:11pt}.page-top h1{font-size:20pt}}
/* Keep reading and task text comfortable on both desktop and phone. */
.card p,.panel p,.route-card p,.paragraph-block .translation,.framework ol,.prompt,.prose p,.prose li{font-size:16px}
.field small,.field input,.field textarea,.field select,.tag{font-size:14px}
@media(max-width:700px){.sidebar nav a{font-size:14px}.page-top p,.hero p:not(.eyebrow){font-size:16px}.sidebar{height:calc(74px + env(safe-area-inset-bottom))}.mobile-head{gap:10px}}
@media print{.card p,.panel p,.route-card p,.paragraph-block .translation,.framework ol,.prompt,.prose p,.prose li{font-size:11pt}}

.draft-target{font-size:14px;color:var(--muted);margin:12px 0 0}
.draft-target a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.guided-practice {
  margin-top: 18px;
  border: 1px solid #cdded9;
  border-radius: 10px;
  background: #f7fbf9;
}
.guided-practice > summary {
  padding: 13px 15px;
  color: var(--green);
  font-weight: 650;
  cursor: pointer;
}
.guided-practice[open] > summary { border-bottom: 1px solid #cdded9; }
#guided-nudge { margin: 14px 15px; }
#guided-content { padding: 13px 15px 16px; }
#guided-content h3 { color: var(--green); }
#guided-content h4 { margin: 0 0 9px; font-size: 15px; }
#guided-content p { margin: 8px 0; }
.guided-step { padding: 9px 0; }
.guided-step > summary { color: var(--green); font-weight: 600; cursor: pointer; }
.guided-step li { margin: 6px 0; }
.guided-choice, .guided-paragraph, .guided-transfer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #cdded9;
}
.guided-source, .guided-revision { margin: 8px 0; padding: 8px 11px; border-radius: 5px; }
.guided-source { background: #f0f4f6; }
.guided-revision { background: #e9f3ef; }
#guided-content p[lang="en"] { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); }
.guided-transfer .btn { margin-top: 8px; }
#draft-panel{scroll-margin-top:14px}
.btn.mobile-jump{display:none}
@media(max-width:700px){
  .btn.mobile-jump{display:inline-flex}
  .sidebar nav{grid-template-columns:repeat(5,minmax(0,1fr))}
  .sidebar nav a{white-space:normal;text-align:center}
}

.collection-filter {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 14px;
}
.collection-filter select {
  min-height: 38px;
  padding: 5px 12px;
  border: 1px solid #cedbdf;
  border-radius: 6px;
  background: #fbfcfd;
  color: var(--ink);
  font: inherit;
}

.reference-filters { align-items: flex-start; }
.reference-filters select { max-width: min(75vw, 300px); }
.reference-entry p[lang="en"] { margin: 13px 0 9px; font-size: 18px; color: var(--ink); }
.reference-entry p { overflow-wrap: anywhere; }
