:root{--ink:#17333a;--muted:#60767a;--paper:#fff;--bg:#f4faf8;--green:#126b5c;--green-light:#dff3ed;--orange:#c76a1b;--orange-light:#fff0df;--red:#b54443;--red-light:#fde8e7;--line:#dce9e5;--shadow:0 12px 30px #17463d12}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,5vw,72px);background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:750;text-decoration:none;line-height:1}.brand-mark{background:var(--green);color:white;border-radius:10px;padding:5px 7px;font-size:.8rem}nav{display:flex;gap:20px}nav a{color:var(--muted);text-decoration:none;font-weight:600}nav a:hover,nav a:focus{color:var(--green)}main{max-width:1120px;margin:auto;padding:34px 18px 70px}.hero{padding:18px 0 34px;max-width:740px}.eyebrow{color:var(--green);font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.hero h1{font-size:clamp(2rem,6vw,4rem);line-height:1.04;margin:10px 0 14px}.hero p{color:var(--muted);font-size:1.08rem}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.btn{border:0;border-radius:12px;padding:13px 18px;min-height:46px;font:inherit;font-weight:750;cursor:pointer;background:var(--green);color:#fff}.btn:hover{filter:brightness(.94)}.btn.secondary{background:#fff;color:var(--green);border:1px solid var(--line)}.btn.ghost{background:transparent;color:var(--green);padding-inline:8px}.btn.danger{background:var(--red)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.card{display:flex;flex-direction:column;min-height:170px}.card h3{margin:0 0 8px}.card p{color:var(--muted);margin:0 0 18px}.card .btn{margin-top:auto;align-self:flex-start}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:32px 0 14px}.section-title h2{margin:0;font-size:1.35rem}.pill{display:inline-block;padding:4px 10px;border-radius:99px;background:var(--green-light);color:var(--green);font-size:.82rem;font-weight:700}.select-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.choice{width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;cursor:pointer;color:var(--ink)}.choice:hover,.choice.selected{border-color:var(--green);box-shadow:0 0 0 3px var(--green-light)}.choice strong{display:block}.choice small{color:var(--muted)}.choice.theme-earth{border-color:#b9dbe5;background:#f1f8fa}.choice.theme-earth:hover{border-color:#3b82a0;box-shadow:0 0 0 3px #dceff4}.choice.theme-life{border-color:#b9ddc9;background:#f1f9f4}.choice.theme-life:hover{border-color:#3f8f68;box-shadow:0 0 0 3px #dcefe4}.choice.theme-health{border-color:#e4c9ad;background:#fdf7f0}.choice.theme-health:hover{border-color:#b9783f;box-shadow:0 0 0 3px #f4e6d7}.flash-wrap{max-width:720px;margin:10px auto}.flash-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:.92rem}.session-location{font-size:.82rem;text-align:center}.session-location i{font-style:normal;color:var(--green);padding:0 5px}.progressbar{height:8px;background:#dcece7;border-radius:20px;overflow:hidden;margin:10px 0 22px}.progressbar span{display:block;height:100%;background:var(--green);transition:width .25s}.flashcard{min-height:360px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(26px,7vw,60px);display:flex;flex-direction:column;justify-content:center;box-shadow:var(--shadow);text-align:center}.flashcard .context{color:var(--green);font-size:.86rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.flashcard h1{font-size:clamp(1.45rem,4vw,2.4rem);line-height:1.2;margin:16px 0}.answer{border-top:1px solid var(--line);padding-top:22px;color:#315b56;font-size:clamp(1.35rem,3vw,2rem);line-height:1.35;white-space:pre-line}.level-badge{align-self:center;border-radius:99px;padding:5px 12px;font-size:.8rem;font-weight:800}.level-badge.essential{background:var(--green-light);color:var(--green)}.level-badge.expert{background:#fff0c7;color:#9a6510}.toggle{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.theme-group{margin:22px 0}.theme-group h3{margin:0 0 10px;color:var(--green)}.theme-group.theme-earth h3{color:#3b82a0}.theme-group.theme-life h3{color:#3f8f68}.theme-group.theme-health h3{color:#b9783f}.ratings{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.rating{border:0;border-radius:13px;padding:14px 8px;font-weight:800;cursor:pointer}.easy{background:#dff3e7;color:#18734f}.almost{background:var(--orange-light);color:var(--orange)}.hard{background:var(--red-light);color:var(--red)}.notice{padding:14px 16px;border-radius:12px;background:#fff7d9;color:#765c17;margin:14px 0}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.session-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.session-stats .almost-stat b{color:#d58a00}.session-stats .hard-stat b{color:#d04444}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:11px 14px}.stat b{display:block;font-size:1.35rem;color:var(--green)}.stat span{color:var(--muted);font-size:.78rem}.bar-row{margin:16px 0}.bar-row label{display:flex;justify-content:space-between;font-size:.9rem;font-weight:650}.bar-row .progressbar{margin:5px 0 0}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}label.field{display:flex;flex-direction:column;gap:6px;font-weight:700}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;color:var(--ink);background:#fff}textarea{min-height:110px;resize:vertical}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}th,td{text-align:left;padding:11px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:.85rem;color:var(--muted)}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:10px;opacity:0;pointer-events:none;transition:.2s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}.empty{text-align:center;padding:35px;color:var(--muted)}.back{margin-bottom:18px}@media(max-width:600px){.topbar{height:auto;min-height:62px;align-items:flex-start;padding:12px 14px;gap:10px}nav{gap:10px;flex-wrap:wrap;justify-content:flex-end;font-size:.88rem}.ratings{grid-template-columns:1fr}.flashcard{min-height:330px}.section-title{align-items:flex-start;flex-direction:column}}
 .chapter-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:601px){.chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px}}
@media(min-width:601px){.theme-group .select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.admin-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.admin-theme-group{margin-top:24px}.admin-chapter-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.modal{position:fixed;inset:0;background:#17333acc;display:grid;place-items:center;padding:18px;z-index:20}.modal[hidden]{display:none}.modal-card{width:min(650px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:var(--shadow)}.modal-card .field{margin:12px 0}.modal-card .actions{margin-top:20px}
.progression-groups{display:grid;gap:18px;margin-top:18px}.progress-theme{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.progress-theme h2{margin:0 0 8px;font-size:1.15rem}.progress-theme.theme-earth{border-color:#b9dbe5;background:#f8fcfd}.progress-theme.theme-earth h2{color:#3b82a0}.progress-theme.theme-earth .progressbar span{background:#3b82a0}.progress-theme.theme-life{border-color:#b9ddc9;background:#f8fcf9}.progress-theme.theme-life h2{color:#3f8f68}.progress-theme.theme-life .progressbar span{background:#3f8f68}.progress-theme.theme-health{border-color:#e4c9ad;background:#fdfaf7}.progress-theme.theme-health h2{color:#b9783f}.progress-theme.theme-health .progressbar span{background:#b9783f}.admin-theme-group.theme-earth h3{color:#3b82a0}.admin-theme-group.theme-life h3{color:#3f8f68}.admin-theme-group.theme-health h3{color:#b9783f}.admin-theme-group.theme-earth .admin-chapter-row{border-left:4px solid #b9dbe5;padding-left:12px}.admin-theme-group.theme-life .admin-chapter-row{border-left:4px solid #b9ddc9;padding-left:12px}.admin-theme-group.theme-health .admin-chapter-row{border-left:4px solid #e4c9ad;padding-left:12px}.database-operations{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}.database-operations h3{margin-top:0}.admin-tab input[type=checkbox]{width:20px;height:20px;accent-color:var(--green)}.admin-tab label:has(input[type=checkbox]){flex-direction:row;align-items:center;gap:10px}
.modal-card input,.modal-card select,.modal-card textarea{font-weight:400}.table-wrap td.theme-earth strong{color:#3b82a0}.table-wrap td.theme-life strong{color:#3f8f68}.table-wrap td.theme-health strong{color:#b9783f}.admin-tab[data-tab-panel="add"] [data-action="template-xlsx"]{margin-bottom:24px}.brand-mark{width:40px;height:40px;padding:0;background:transparent;display:grid;place-items:center;line-height:0}.brand-mark img{width:40px;height:40px;object-fit:contain;display:block;vertical-align:middle}.brand{align-items:center}
.flashcard{position:relative;padding:clamp(58px,9vw,76px) clamp(26px,7vw,60px) clamp(26px,7vw,60px)}main:focus{outline:none}.level-badge{position:absolute;top:18px;right:20px}.card-id{position:absolute;top:18px;left:20px;border-radius:8px;padding:3px 8px;background:#f1f5f4;color:var(--muted);font-size:.75rem;font-weight:700}.flashcard-actions{display:flex;justify-content:center;margin-top:16px}
.theme-group .select-grid{grid-template-columns:1fr}.home-logo{width:92px;height:92px;object-fit:contain;display:block;margin-bottom:8px}.hero h1{font-size:clamp(1.7rem,5vw,3rem)}.site-footer{text-align:center;padding:0 18px 24px}.credits-link{border:0;background:none;color:var(--muted);font:inherit;font-size:.78rem;text-decoration:underline;cursor:pointer}.credits-card{position:relative}.credits-card p{color:var(--muted);margin:14px 0}.modal-close{position:absolute;top:10px;right:14px;border:0;background:none;color:var(--muted);font-size:1.7rem;line-height:1;cursor:pointer}@media(min-width:601px){.theme-group .select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
