:root{color-scheme:light;--bg:#f5f6f2;--surface:#fff;--surface2:#eef1eb;--ink:#23352b;--muted:#65736a;--line:#e0e5df;--accent:#376b4e;--accent2:#dcebdd;--blue:#536d9a;--bluebg:#e7edf7;--danger:#a53d43;--shadow:0 5px 24px #253e2b08;--radius:18px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--ink);font-size:15px;line-height:1.45}html[data-theme=dark]{color-scheme:dark;--bg:#141b18;--surface:#202a24;--surface2:#2b3830;--ink:#e5eee5;--muted:#a8b9ac;--line:#34443a;--accent:#a8d6ae;--accent2:#344c3c;--blue:#a6bde7;--bluebg:#35435a;--danger:#f0a0a4;--shadow:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}a{color:var(--accent)}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(29px,4vw,41px);letter-spacing:-1.8px;line-height:1.12;font-weight:720}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:16px}small,.hint,.muted{color:var(--muted)}.top{height:72px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:5}.top-inner{max-width:1250px;height:100%;margin:auto;display:flex;align-items:center;gap:18px;padding:0 30px}.brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:800;letter-spacing:-1.3px;text-decoration:none;color:var(--ink);margin-right:auto}.brand-icon{width:37px;height:37px;border-radius:12px;background:var(--accent);color:var(--surface);display:grid;place-items:center}.brand-icon svg{width:31px;height:31px}.brand-dot{color:var(--accent)}.local-label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.icon-button{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:var(--muted)}.icon-button:hover,.nav-item:hover,.secondary:hover{background:var(--surface2);color:var(--ink)}.layout{max-width:1250px;display:grid;grid-template-columns:195px minmax(0,1fr);gap:38px;margin:auto;padding:34px 30px 80px}.sidebar{position:sticky;top:106px;align-self:start}.side-label,.eyebrow{font-size:11px;font-weight:750;letter-spacing:1.5px;color:var(--muted);margin-bottom:10px}.side-label{padding-left:12px}.nav-item{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--muted);padding:12px;border-radius:12px;font-weight:600;margin:3px 0}.nav-item.active{background:var(--accent2);color:var(--accent)}.side-note{border-top:1px solid var(--line);margin-top:32px;padding:24px 12px;display:flex;gap:10px;font-size:13px;color:var(--muted)}.side-note svg{color:var(--accent)}main{min-width:0;outline:none}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:25px}.page-head p{color:var(--muted);margin-top:8px}.primary,.secondary,.danger{border-radius:12px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:650;min-height:44px;white-space:nowrap}.primary{background:var(--accent);color:var(--surface)}.primary:hover{filter:brightness(.93)}.secondary{border:1px solid var(--line);background:var(--surface)}.danger{color:var(--danger);border:1px solid var(--line)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:21px}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:14px;margin-bottom:28px}.level-card{background:var(--accent2);border-color:transparent;display:flex;flex-direction:column;justify-content:center;min-height:160px}.level-top{display:flex;align-items:center;gap:13px}.level-number{display:grid;place-items:center;width:55px;height:55px;background:var(--accent);color:var(--surface);border-radius:17px;font-size:26px;font-weight:750}.level-title{font-size:21px;font-weight:750;letter-spacing:-.5px}.level-total{margin-left:auto;text-align:right;font-weight:750;font-size:20px;white-space:nowrap}.level-total small,.level-top small{display:block;font-size:12px;font-weight:500}.bar{height:8px;background:var(--surface2);border-radius:20px;overflow:hidden}.level-card .bar{background:var(--surface);margin:18px 0 7px}.bar>span{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .2s}.bar.blue>span{background:var(--blue)}.bar-caption{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:10px}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mini{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:17px}.mini .stat{font-size:28px;letter-spacing:-1px;font-weight:740;white-space:nowrap}.mini .stat small{font-size:15px;font-weight:500}.mini small{font-size:12px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:23px 0 10px}.section-head span{color:var(--muted);font-size:12px}.task-list{display:flex;flex-direction:column;gap:8px}.task{display:flex;align-items:center;gap:12px;padding:10px 13px;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-height:65px}.task.done{background:transparent}.task.done .task-name{color:var(--muted);text-decoration:line-through}.check{width:30px;height:30px;border:1.5px solid var(--muted);border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:transparent;padding:0}.check[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--surface)}.check svg{width:19px;height:19px}.task-body{flex:1;min-width:0;text-align:left;display:flex;flex-direction:column;gap:2px;padding:4px 0;overflow-wrap:anywhere}.task-name{font-weight:650;font-size:15px}.task-meta{font-size:12px;color:var(--muted)}.xp{font-weight:700;color:var(--accent);font-size:13px;white-space:nowrap}.task .icon-button{width:34px;height:38px;flex-shrink:0}.task .icon-button svg{width:17px;height:17px}.weekly-task{display:block;padding:15px}.weekly-top{display:flex;align-items:center;gap:10px}.weekly-task .bar{margin:12px 0 0}.counter{display:flex;align-items:center;gap:5px}.counter button{border:1px solid var(--line);border-radius:10px;width:37px;height:38px;display:grid;place-items:center}.counter svg{width:18px;height:18px}.counter-value{font-size:14px;font-weight:700;white-space:nowrap;min-width:36px;text-align:center}.empty{padding:22px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);font-size:14px}.callout{margin-top:22px;padding:15px 17px;background:var(--surface2);border-radius:14px;color:var(--muted);font-size:13px;display:flex;gap:10px;align-items:center}.callout svg{color:var(--accent)}.progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.chart{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end;margin-top:22px;height:160px}.chart-col{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;height:100%;justify-content:flex-end;font-size:11px;color:var(--muted)}.chart-track{height:110px;width:min(32px,95%);background:var(--surface2);border-radius:6px;display:flex;align-items:flex-end;overflow:hidden}.chart-track i{background:var(--accent);width:100%;border-radius:6px}.history-row,.manage-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.history-row:last-child,.manage-row:last-child{border-bottom:0}.history-row>div,.manage-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.history-row .secondary,.manage-row .secondary{padding:7px 10px;min-height:36px;font-size:12px}.settings-grid{display:grid;gap:14px}.settings-grid .card{display:grid;gap:13px}.settings-grid .card p{font-size:14px;color:var(--muted)}.settings-grid label{display:flex;align-items:center;justify-content:space-between;gap:15px}.settings-grid select,.settings-grid input{width:auto;max-width:50%}.settings-actions{display:flex;flex-wrap:wrap;gap:8px}.mobile-nav{display:none}dialog{border:1px solid var(--line);border-radius:22px;color:var(--ink);background:var(--surface);padding:24px;width:min(460px,calc(100% - 28px));max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#14231c88;backdrop-filter:blur(3px)}dialog form{display:grid;gap:15px}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between}.dialog-head .eyebrow{margin:0 0 4px}label{font-size:13px;font-weight:650;display:grid;gap:6px}input:not([type=checkbox]),select{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:11px 12px;min-height:44px}input[type=checkbox]{accent-color:var(--accent);width:19px;height:19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.switch-label{display:flex;align-items:flex-start;gap:10px}.switch-label small{display:block;font-weight:400;margin-top:3px}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:3px}.hint{font-size:12px}.loading{padding:40px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:12px 18px;border-radius:12px;box-shadow:0 5px 20px #0002;z-index:20;max-width:calc(100% - 24px);width:max-content;font-size:14px}#toast button{color:inherit;text-decoration:underline;margin-left:9px;font-weight:700} [hidden]{display:none!important}.storage-warning{color:var(--danger);font-size:13px;margin-bottom:12px}.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}
@media(max-width:800px){.layout{display:block;padding:25px 18px 110px;max-width:650px}.sidebar{display:none}.top{height:62px}.top-inner{padding:0 18px;gap:8px}.brand{font-size:22px}.brand-icon{width:33px;height:33px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);padding:5px 6px calc(5px + env(safe-area-inset-bottom));z-index:8;justify-content:space-around}.mobile-nav .nav-item{flex:1;flex-direction:column;gap:3px;font-size:10px;padding:8px 4px;min-height:52px;margin:0}.mobile-nav .nav-item svg{width:21px;height:21px}.mobile-nav .nav-item[data-page=settings]{display:none}#toast{bottom:calc(78px + env(safe-area-inset-bottom))}.hero{grid-template-columns:1fr;gap:9px;margin-bottom:23px}.level-card{min-height:137px}.mini{padding:14px}.mini .stat{font-size:25px}.page-head{align-items:flex-start;margin-bottom:18px}.page-head .primary{padding:9px 12px;font-size:13px}.progress-grid{grid-template-columns:1fr}.card{padding:17px}.local-label{font-size:11px}.task{padding:9px 10px;gap:9px}.section-head{margin-top:20px}.weekly-task{padding:13px}.check{width:34px;height:34px}.task .icon-button{width:36px;height:42px}.counter button{width:40px;height:42px}}
@media(max-width:370px){.local-label{display:none}.page-head .primary{font-size:0}.page-head .primary svg{width:22px;height:22px}.task-meta{font-size:11px}.weekly-top{gap:5px}.counter button{width:34px}.level-total{font-size:17px}.level-title{font-size:19px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
