:root{
  --bg:#f6f1e8;--ink:#1f2430;--muted:#6b6f7a;--card:#fff;--accent:#c4552d;--accent-d:#a8441f;
  --green:#2f6b4f;--gold:#e8b04b;--sand:#f3d9a4;--sage:#d9e6dd;--line:#e9e2d5;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg)}
body{font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
.app{max-width:480px;margin:0 auto;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 0}
.screen{flex:1;display:flex;flex-direction:column;padding:20px 24px 24px;animation:in .35s ease both}
@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.top{display:flex;align-items:center;justify-content:space-between;min-height:40px}
.iconbtn{background:none;border:0;font:inherit;color:var(--ink);font-size:15px;font-weight:600;padding:8px 4px;cursor:pointer;opacity:.75}
.eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted)}
h1{font-size:28px;line-height:1.2;font-weight:700;margin-top:6px;letter-spacing:-.01em}
h2{font-size:24px;line-height:1.25;font-weight:700;margin-top:8px}
.sub{font-size:15px;color:var(--muted);margin-top:6px;line-height:1.45}
.streak{display:flex;justify-content:space-between;align-items:center;background:var(--ink);color:var(--bg);border-radius:18px;padding:14px 18px;margin-top:18px;border:0;width:100%;font:inherit;text-align:left;cursor:pointer}
.streak .k{font-size:13px;opacity:.7}.streak .v{font-size:22px;font-weight:700}
.dots{display:flex;gap:6px}.dots span{width:10px;height:10px;border-radius:5px;background:#4a5060}.dots span.on{background:var(--gold)}
.course{display:flex;gap:14px;align-items:center;background:var(--card);border-radius:18px;padding:16px;margin-top:12px;box-shadow:0 1px 2px rgba(0,0,0,.05);border:0;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer}
.course .dot{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex:none}
.course .t{font-size:12px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:var(--muted)}
.course .n{font-size:16px;font-weight:600;margin-top:2px}
.course .m{font-size:13px;color:var(--muted);margin-top:2px;line-height:1.35}
.course.done .dot{background:var(--green)!important;color:#fff}
.c1 .dot{background:#f0e2d0}.c2 .dot{background:var(--sand)}.c3 .dot{background:var(--sage)}
.spacer{flex:1;min-height:24px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:56px;border-radius:28px;border:0;background:var(--accent);color:#fff;font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:transform .1s,background .2s}
.btn:active{transform:scale(.98)}.btn:hover{background:var(--accent-d)}
.btn[disabled]{background:#d8cfc2;color:#fff;cursor:default}
.btn.ghost{background:transparent;color:var(--ink);border:1.5px solid var(--line);margin-top:10px}
.btn.dark{background:var(--ink)}
.link{background:none;border:0;font:inherit;color:var(--muted);font-size:14px;font-weight:600;margin-top:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.progress{display:flex;gap:6px;flex:1;margin:0 12px}.progress span{flex:1;height:4px;border-radius:2px;background:var(--line)}.progress span.on{background:var(--accent)}
.body p{font-size:18px;line-height:1.6;margin-top:16px}
.tag{display:inline-block;background:var(--sand);border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;margin-top:14px}
textarea{width:100%;min-height:200px;margin-top:18px;border:1.5px solid var(--line);border-radius:18px;background:var(--card);padding:16px;font:inherit;font-size:16px;line-height:1.5;color:var(--ink);resize:vertical;outline:none}
textarea:focus{border-color:var(--accent)}
.hint{font-size:13px;color:var(--muted);margin-top:8px}
.opt{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:var(--card);border:1.5px solid transparent;border-radius:16px;padding:16px;margin-top:10px;font:inherit;font-size:15px;line-height:1.4;color:inherit;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.opt .r{width:22px;height:22px;border-radius:11px;border:2px solid #c9c0b2;flex:none}
.opt.sel{border-color:var(--green)}.opt.sel .r{border:6px solid var(--green)}
.own{width:100%;margin-top:10px;border:1.5px solid var(--line);border-radius:16px;background:var(--card);padding:14px 16px;font:inherit;font-size:15px;outline:none}
.own:focus{border-color:var(--green)}
.done-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding-top:20px}
.ring{width:120px;height:120px;border-radius:60px;background:var(--green);display:flex;align-items:center;justify-content:center;animation:pop .6s cubic-bezier(.2,1.4,.4,1) both}
.ring svg{width:56px;height:56px}
.ring path{stroke-dasharray:60;stroke-dashoffset:60;animation:draw .5s .35s ease forwards}
@keyframes pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
@keyframes draw{to{stroke-dashoffset:0}}
.movecard{background:var(--card);border-radius:18px;padding:16px 18px;margin-top:22px;width:100%;text-align:left}
.movecard .v{font-size:16px;font-weight:600;margin-top:6px;line-height:1.4}
.big{font-size:44px;font-weight:800;margin-top:22px;color:var(--accent)}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:14px}
.week div{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:var(--muted);font-weight:600}
.week i{width:34px;height:34px;border-radius:12px;background:#ebe4d8;display:flex;align-items:center;justify-content:center;font-style:normal;color:#fff;font-size:14px}
.week i.on{background:var(--green)}.week i.today{outline:2px solid var(--accent);outline-offset:2px}
.section{margin-top:26px}
.entry{background:var(--card);border-radius:16px;padding:14px 16px;margin-top:10px}
.entry .h{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);font-weight:600}
.entry .j{font-size:14px;line-height:1.5;margin-top:8px;white-space:pre-wrap}
.entry .mv{font-size:14px;margin-top:8px;font-weight:600}
.menu{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:14px;padding:12px 14px;margin-top:8px;border:0;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer}
.menu .d{width:32px;height:32px;border-radius:10px;background:var(--sand);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:none}
.menu .d.ok{background:var(--green);color:#fff}
.menu .x{font-size:15px;font-weight:600}.menu .y{font-size:12px;color:var(--muted)}
.menu.cur{outline:2px solid var(--accent)}
.foot{font-size:12px;color:var(--muted);text-align:center;margin-top:24px;line-height:1.5}
.empty{font-size:14px;color:var(--muted);margin-top:10px}
