:root { --ink:#143b35; --chalk:#143b35; --leaf:#216451; --paper:#fffdf7; --cream:#fff8e7; --sun:#f8c63f; --coral:#d95746; --line:#d8e4cf; --muted:#62756f; --shadow:0 16px 32px rgba(34,77,63,.12); }
* { box-sizing:border-box; }
body { min-width:320px; margin:0; background:radial-gradient(circle at 8% 4%,#fff0bd 0,transparent 25rem),linear-gradient(135deg,#fff8e8 0%,#f4f7e9 55%,#e4f0e5 100%); color:var(--ink); font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif; }
.hero { min-height:168px; background:linear-gradient(117deg,#11483f,#216451 57%,#588a67); color:#fffdf7; overflow:hidden; }
.hero-inner,.workspace { width:min(1380px,calc(100% - 52px)); margin:0 auto; }.hero-inner { min-height:168px; padding:15px 0 23px; position:relative; display:flex; flex-direction:column; justify-content:flex-end; }.back-link { align-self:flex-start; padding:8px 13px; border:1px solid rgba(255,255,255,.45); border-radius:999px; color:#fffdf7; font-size:12px; font-weight:900; text-decoration:none; }.brand { display:flex; align-items:center; gap:16px; margin-top:17px; }.brand-icon { width:64px; height:64px; display:grid; place-items:center; border:1px solid rgba(255,249,233,.35); border-radius:19px; background:rgba(255,253,247,.14); font-size:31px; }.brand h1,h2 { margin:0; font-family:"DM Serif Display","Noto Serif SC",serif; font-weight:400; }.brand h1 { font-size:clamp(30px,3vw,42px); line-height:1; }.brand p { margin:5px 0 0; color:rgba(255,253,247,.84); font-size:16px; }.hero-note { position:absolute; right:0; bottom:51px; padding:11px 15px; border:1px solid rgba(255,249,233,.26); border-radius:999px; background:rgba(255,253,247,.1); color:#ffe49a; font-size:12px; font-weight:900; }
.workspace { position:relative; z-index:2; margin-top:-22px; padding-bottom:45px; }.card { border:1px solid var(--line); border-radius:22px; background:var(--paper); box-shadow:var(--shadow); }.intro { display:flex; align-items:center; justify-content:space-between; gap:22px; padding:22px 25px; }.eyebrow { margin:0 0 5px; color:var(--leaf); font-size:12px; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }h2 { font-size:25px; line-height:1.15; }.intro p:not(.eyebrow) { max-width:790px; margin:7px 0 0; color:var(--muted); font-size:14px; line-height:1.55; }.intro-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }.intro-badges span,.ready-badge,.item-total { padding:7px 10px; border:1px solid #d5e1c5; border-radius:999px; background:#edf5df; color:var(--leaf); font-size:11px; font-weight:900; white-space:nowrap; }
.setup-layout { display:grid; grid-template-columns:minmax(340px,.9fr) minmax(300px,.7fr); gap:20px; margin-top:19px; align-items:start; }.builder,.options,.preview { padding:23px; }.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.item-total { border-color:#f3d67b; background:#fff2c6; color:#7e5112; }.library-source { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:18px; padding:13px 14px; border:1px solid #d6e3c5; border-radius:14px; background:#f5f9ec; }.library-source strong { font-size:13px; }.library-source p { margin:3px 0 0; color:var(--muted); font-size:12px; line-height:1.4; }.small-link { flex:0 0 auto; color:var(--leaf); font-size:12px; font-weight:900; }.saved-source { margin-top:14px; }.saved-source>label,.field-label { display:block; margin:0 0 6px; color:var(--ink); font-size:12px; font-weight:900; }.saved-controls { display:flex; gap:9px; }.saved-controls select,.builder input,.builder textarea { width:100%; border:1px solid #d7dfcf; border-radius:11px; background:#fffdf7; color:var(--ink); font:inherit; }.saved-controls select,.builder input { min-height:40px; padding:8px 10px; }.field-label { margin-top:15px; }.builder textarea { min-height:255px; padding:11px; resize:vertical; font-size:14px; line-height:1.55; }.saved-controls select:focus,.builder input:focus,.builder textarea:focus { outline:0; border-color:#e7a81f; box-shadow:0 0 0 3px rgba(248,198,63,.18); }.field-help,.status { min-height:18px; margin:7px 2px 0; color:var(--muted); font-size:11px; line-height:1.45; }.status { color:var(--leaf); font-weight:800; }.button-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:15px; }.btn { min-height:42px; padding:9px 13px; border:1px solid transparent; border-radius:12px; font:inherit; font-size:13px; font-weight:900; transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }.btn:hover:not(:disabled) { transform:translateY(-2px); }.btn:disabled { cursor:not-allowed; opacity:.5; }.btn-primary { background:var(--coral); box-shadow:0 5px 0 #9d392f; color:white; }.btn-secondary { border-color:#d8e5c7; background:#fffef9; color:var(--chalk); box-shadow:none; }.saved-controls .btn { flex:0 0 auto; min-height:40px; padding:7px 10px; }
.display-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin:20px 0 0; padding:0; border:0; }.display-options legend { margin-bottom:9px; color:var(--ink); font-size:12px; font-weight:900; }.display-options label { display:grid; justify-items:center; gap:3px; min-height:104px; padding:14px 8px; border:1px solid #d7e2c9; border-radius:15px; background:#fffef9; color:var(--ink); cursor:pointer; text-align:center; }.display-options input { position:absolute; opacity:0; }.display-options label:has(input:checked) { border-color:#dfa21c; background:#fff2c6; box-shadow:0 0 0 3px rgba(248,198,63,.16); }.display-options span { margin-top:6px; font-family:"Noto Serif SC",serif; font-size:22px; font-weight:700; }.display-options small { color:var(--muted); font-size:11px; }.print-guide { display:flex; gap:12px; margin-top:20px; padding:16px; border:1px solid #d5e3c4; border-radius:15px; background:linear-gradient(135deg,#edf5df,#fffdf7); }.print-guide>span { font-size:24px; }.print-guide strong { display:block; color:var(--ink); font-size:13px; }.print-guide p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.48; }.booklet-summary { margin-top:18px; padding:13px 14px; border:1px dashed #c7d9b9; border-radius:13px; color:var(--leaf); font-size:12px; font-weight:800; line-height:1.45; }
.preview { margin-top:20px; }.preview-heading { align-items:center; }.print-button { flex:0 0 auto; }.preview-note { margin:9px 0 17px; color:var(--muted); font-size:12px; line-height:1.45; }.booklet-pages { display:grid; gap:22px; }.booklet-sheet-wrap { display:grid; gap:7px; }.sheet-label { color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }.booklet-sheet { width:100%; aspect-ratio:297 / 210; display:grid; grid-template-columns:1fr 1fr; overflow:hidden; border:1px solid #b9cdb8; background:#fff; box-shadow:0 10px 24px rgba(23,63,55,.13); }.booklet-panel { min-width:0; min-height:0; padding:clamp(12px,2.1vw,31px); position:relative; display:flex; flex-direction:column; border-right:1px dashed #9fb39d; color:#173f37; background:linear-gradient(135deg,#fffefa,#f8fbef); }.booklet-panel:last-child { border-right:0; }.booklet-panel.cover { background:radial-gradient(circle at 85% 14%,rgba(248,198,63,.32),transparent 25%),linear-gradient(145deg,#f7fbec,#fffcf0); }.panel-kicker { margin:0; color:#417263; font-size:clamp(7px,.75vw,11px); font-weight:900; letter-spacing:.13em; text-transform:uppercase; }.cover h3,.back h3 { max-width:86%; margin:clamp(8px,1vw,14px) 0 0; font-family:"DM Serif Display","Noto Serif SC",serif; font-size:clamp(20px,2.6vw,39px); font-weight:400; line-height:1.04; }.cover-subtitle { margin:7px 0 0; color:#536b62; font-size:clamp(9px,.95vw,14px); }.student-name { margin-top:clamp(15px,2.2vw,31px); padding-bottom:7px; border-bottom:1px solid #55786d; font-size:clamp(10px,1vw,15px); font-weight:800; }.student-name span { display:inline-block; min-width:65%; }.progress-title { margin:clamp(13px,1.6vw,22px) 0 8px; color:#796124; font-size:clamp(8px,.8vw,12px); font-weight:900; letter-spacing:.08em; text-transform:uppercase; }.progress-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:clamp(6px,.8vw,12px); width:min(90%,350px); }.progress-circle { aspect-ratio:1; display:grid; place-items:center; border:2px solid #2e6958; border-radius:50%; color:#245d4f; background:#fffef9; font-size:clamp(11px,1.4vw,20px); font-weight:900; }.progress-circle.ready { border-color:#d8a625; background:#fff0ba; }.progress-circle.unavailable { border-color:#cad5c5; color:#a1afa0; }.panel-footer { margin-top:auto; padding-top:12px; color:#66766e; font-size:clamp(7px,.75vw,11px); line-height:1.4; }.page-number { width:clamp(30px,3.8vw,56px); height:clamp(30px,3.8vw,56px); display:grid; place-items:center; position:absolute; top:clamp(11px,1.7vw,24px); right:clamp(11px,1.7vw,24px); border:2px solid #d59c1e; border-radius:50%; background:#fff1b8; color:#704d12; font-size:clamp(16px,2vw,29px); font-weight:900; }.word-panel h3 { max-width:72%; margin:clamp(8px,1vw,14px) 0 0; font-family:"DM Serif Display","Noto Serif SC",serif; font-size:clamp(18px,2.2vw,32px); font-weight:400; }.word-range { margin:3px 0 0; color:#64766c; font-size:clamp(8px,.78vw,12px); font-weight:800; }.word-list { display:grid; gap:0; margin:clamp(10px,1.3vw,18px) 0 0; padding:0; list-style:none; }.word-list li { display:grid; grid-template-columns:clamp(18px,2vw,28px) minmax(0,1fr); align-items:center; min-height:clamp(19px,2.55vw,36px); border-bottom:1px solid #dce7d7; }.word-list .term-number { color:#d09218; font-size:clamp(8px,.75vw,11px); font-weight:900; }.word-list .term { overflow-wrap:anywhere; color:#173f37; font-family:"Noto Serif SC","Noto Serif",serif; font-size:clamp(11px,1.3vw,19px); font-weight:600; line-height:1.15; }.word-panel .panel-footer { border-top:1px solid #dce7d7; }.notes h3 { margin:clamp(8px,1vw,14px) 0 0; font-family:"DM Serif Display","Noto Serif SC",serif; font-size:clamp(18px,2.2vw,32px); font-weight:400; }.notes p { margin:5px 0 0; color:#63766c; font-size:clamp(8px,.8vw,12px); }.note-lines { display:grid; gap:clamp(12px,1.9vw,27px); margin-top:clamp(15px,2.4vw,34px); }.note-lines span { display:block; border-bottom:1px solid #b8c9b6; }.back { justify-content:center; text-align:center; background:radial-gradient(circle at 20% 15%,rgba(248,198,63,.28),transparent 28%),linear-gradient(145deg,#eff7e2,#fffdf7); }.back h3 { max-width:none; margin:8px auto 0; }.back p { margin:10px auto 0; color:#566f65; font-size:clamp(9px,.9vw,13px); line-height:1.45; }.teacher-check { margin:clamp(19px,2.4vw,34px) auto 0; padding:9px 12px; border:1px solid #a9c6a1; border-radius:10px; color:#285c4d; font-size:clamp(8px,.8vw,12px); font-weight:900; }
@media (max-width:900px) { .setup-layout { grid-template-columns:1fr; }.booklet-pages { gap:17px; } }
@media (max-width:720px) { .hero-inner,.workspace { width:calc(100% - 28px); }.hero-inner { min-height:153px; padding-top:48px; }.hero-note { display:none; }.intro { align-items:flex-start; flex-direction:column; }.intro-badges { justify-content:flex-start; }.builder,.options,.preview { padding:18px; }.display-options { grid-template-columns:1fr; }.display-options label { min-height:60px; grid-template-columns:auto 1fr; align-items:center; justify-items:start; padding:9px 13px; }.display-options span { margin:0; }.display-options small { grid-column:2; }.preview-heading { align-items:flex-start; }.print-button { width:100%; }.booklet-sheet { min-width:610px; }.booklet-pages { overflow:auto; padding-bottom:5px; } }
@media (max-width:480px) { .hero-inner,.workspace { width:calc(100% - 20px); }.brand-icon { width:52px; height:52px; border-radius:16px; font-size:27px; }.brand h1 { font-size:29px; }.brand p { font-size:13px; }.saved-controls { flex-direction:column; }.saved-controls .btn { width:100%; }.booklet-sheet { min-width:570px; } }
@media print {
  @page { size:A4 landscape; margin:0; }
  html,body { width:auto; min-height:0; background:#fff !important; }
  .hero,.intro,.setup-layout,.preview-heading,.preview-note,.account-coming-soon { display:none !important; }
  .workspace { width:auto; margin:0; padding:0; }.preview { display:block; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }.booklet-pages { display:block; overflow:visible; }.booklet-sheet-wrap { display:block; }.sheet-label { display:none; }.booklet-sheet { width:297mm; height:210mm; min-width:0; margin:0; border:0; box-shadow:none; break-after:page; page-break-after:always; }.booklet-sheet-wrap:last-child .booklet-sheet { break-after:auto; page-break-after:auto; }.booklet-panel { padding:13mm 12mm; border-right:1px dashed #9fb39d; }.panel-kicker { font-size:8pt; }.cover h3,.back h3 { font-size:30pt; }.cover-subtitle { font-size:11pt; }.student-name { margin-top:18mm; font-size:12pt; }.progress-title { margin-top:13mm; font-size:8pt; }.progress-grid { gap:4mm; }.progress-circle { border-width:1.5pt; font-size:14pt; }.panel-footer { font-size:8pt; }.page-number { width:17mm; height:17mm; top:11mm; right:11mm; font-size:17pt; }.word-panel h3,.notes h3 { font-size:24pt; }.word-range,.notes p { font-size:9pt; }.word-list { margin-top:8mm; }.word-list li { grid-template-columns:9mm minmax(0,1fr); min-height:9.4mm; }.word-list .term-number { font-size:8pt; }.word-list .term { font-size:13pt; }.note-lines { gap:13mm; margin-top:15mm; }.back p { font-size:10pt; }.teacher-check { margin-top:19mm; font-size:9pt; }.booklet-panel.cover,.booklet-panel.back,.print-guide { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

.display-options legend small { margin-left:5px; color:var(--muted); font-size:11px; font-weight:700; }
.word-list .term { display:flex; flex-wrap:wrap; align-items:baseline; }
.term-piece:not(:first-child)::before { content:' · '; color:#d09218; font-family:Inter,sans-serif; font-weight:900; }
.word-panel[data-language-count="2"] .word-list li { min-height:clamp(22px,2.8vw,40px); }
.word-panel[data-language-count="3"] .word-list li { min-height:clamp(24px,3vw,43px); }
.word-panel[data-language-count="3"] .term { font-size:clamp(10px,1.12vw,16px); }

@media print {
  .word-panel[data-language-count="2"] .word-list li { min-height:11.2mm; }
  .word-panel[data-language-count="2"] .word-list .term { font-size:11pt; }
  .word-panel[data-language-count="3"] .word-list li { min-height:12.1mm; }
  .word-panel[data-language-count="3"] .word-list .term { font-size:9.7pt; line-height:1.12; }
}

.font-option { margin-top:18px; padding:14px; border:1px solid #d8e5c7; border-radius:15px; background:#fffef9; }
.font-option label { display:block; color:var(--ink); font-size:12px; font-weight:900; }.font-option label small { margin-left:5px; color:var(--muted); font-size:11px; font-weight:700; }
.font-option select { width:100%; min-height:41px; margin-top:8px; padding:8px 10px; border:1px solid #d7dfcf; border-radius:10px; background:#fffdf7; color:var(--ink); font:inherit; }.font-option select:focus { outline:0; border-color:#e7a81f; box-shadow:0 0 0 3px rgba(248,198,63,.18); }
.font-preview { margin:9px 2px 0; color:#173f37; font-family:"Noto Serif SC","Noto Serif",serif; font-size:18px; line-height:1.25; }.font-preview[data-word-font="kaiti"] .term-zh { font-family:"KaiTi","STKaiti","Kaiti SC","DFKai-SB","BiauKai","Noto Serif SC",serif; }.font-preview[data-word-font="serif"] { font-family:"Noto Serif SC","Noto Serif",serif; }.font-preview[data-word-font="sans"] { font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif; }

.word-panel .word-list { flex:1; grid-template-rows:repeat(var(--terms-on-page, 10), minmax(0,1fr)); }
.word-panel .word-list li { min-height:0; }
.word-panel .word-list .term { font-size:clamp(25px,2.8vw,38px); line-height:1.02; }
.word-panel[data-language-count="2"] .word-list .term { font-size:clamp(22px,2.4vw,33px); }
.word-panel[data-language-count="3"] .word-list .term { font-size:clamp(19px,2.05vw,29px); }
.word-panel[data-word-font="kaiti"] .word-list .term { font-family:"Noto Serif SC","Noto Serif",serif; }.word-panel[data-word-font="kaiti"] .word-list .term-zh { font-family:"KaiTi","STKaiti","Kaiti SC","DFKai-SB","BiauKai","Noto Serif SC",serif; }.word-panel[data-word-font="serif"] .word-list .term { font-family:"Noto Serif SC","Noto Serif",serif; }.word-panel[data-word-font="sans"] .word-list .term { font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif; }

@media print {
  .word-panel .word-list li { min-height:0; }
  .word-panel .word-list .term { font-size:27pt; line-height:1.05; }
  .word-panel[data-language-count="2"] .word-list .term { font-size:23pt; }
  .word-panel[data-language-count="3"] .word-list .term { font-size:20pt; line-height:1.08; }
}

.booklet-sheet,.booklet-panel,.booklet-panel.cover,.booklet-panel.back { background:#fff; }
.page-number { border-color:#216451; background:#fff; color:#143b35; }
.cover .progress-grid { flex:1; align-content:center; }
.progress-grid { width:100%; max-width:none; gap:clamp(12px,1.35vw,20px) clamp(7px,.85vw,13px); margin-top:clamp(16px,2vw,28px); }
.progress-sunflower { width:min(100%,clamp(66px,6.6vw,88px)); aspect-ratio:1; justify-self:center; }
.progress-sunflower svg { width:100%; height:100%; display:block; overflow:visible; }.sunflower-petal { fill:#fff; stroke:#216451; stroke-width:2.5; }.sunflower-center { fill:#fff; stroke:#143b35; stroke-width:2.5; }.sunflower-number { fill:#143b35; font-family:Inter,"Noto Sans SC",sans-serif; font-size:25px; font-weight:900; }.progress-sunflower.unavailable .sunflower-petal,.progress-sunflower.unavailable .sunflower-center { stroke:#aebdaf; }.progress-sunflower.unavailable .sunflower-number { fill:#91a291; }
.back-logo { width:min(58%,180px); height:auto; margin:clamp(18px,2.5vw,35px) auto 0; object-fit:contain; }.back .back-logo + * { margin-top:auto; }

@media print {
  .booklet-sheet,.booklet-panel,.booklet-panel.cover,.booklet-panel.back { background:#fff !important; }
  .progress-grid { gap:5mm 2mm; margin-top:11mm; }.progress-sunflower { width:20mm; }.sunflower-petal,.sunflower-center { fill:#fff !important; }
  .back-logo { width:38mm; margin-top:12mm; }.teacher-check { display:none; }
}
