:root{font-family:Manrope,-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,sans-serif;color:#17171d;background:#f6f6fa;font-synthesis:none;--bg:#f6f6fa;--surface:#fff;--surface-2:#f0f0f6;--text:#17171d;--muted:#858594;--line:#e9e9f0;--accent:#7764ed;--accent-2:#a79bf9;--accent-soft:#eeeafd;--danger:#ec625c;--shadow:0 10px 32px rgba(36,28,84,.07)}:root[data-theme=dark]{color-scheme:dark;--bg:#111116;--surface:#1c1c22;--surface-2:#27272e;--text:#f7f7fa;--muted:#9494a4;--line:#303038;--accent:#9383ff;--accent-2:#b5aaff;--accent-soft:#292440;--danger:#ff756f;--shadow:0 12px 36px rgba(0,0,0,.28)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button{color:inherit}.app-shell{min-height:100dvh}.app-shell main{width:min(100%,540px);margin:0 auto;padding:calc(22px + env(safe-area-inset-top)) 18px calc(106px + env(safe-area-inset-bottom))}.topbar,.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.topbar small,.page-header small{display:block;color:var(--muted);font-size:13px;font-weight:600;margin-bottom:3px}.topbar h1,.page-header h1{margin:0;font-size:27px;line-height:1.2;letter-spacing:-.8px}.topbar h1 span{font-size:23px}.avatar{width:45px;height:45px;border-radius:50%;border:3px solid var(--surface);background:linear-gradient(145deg,#dcd6ff,var(--accent));box-shadow:var(--shadow);color:#fff;font-size:15px;font-weight:800}.avatar.large{width:60px;height:60px;display:grid;place-items:center;font-size:20px;border:0}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:8px -2px 20px}.week-strip button{height:65px;border:0;background:transparent;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative}.week-strip span{font-size:11px;color:var(--muted);font-weight:600}.week-strip b{font-size:15px}.week-strip i{width:4px;height:4px;border-radius:50%;background:var(--accent);opacity:.35}.week-strip button.active{background:var(--text);color:var(--bg);box-shadow:0 7px 18px #14141c24}.week-strip button.active span{color:var(--bg);opacity:.65}.week-strip button.active i{background:var(--bg);opacity:1}.hero-card{background:linear-gradient(135deg,#272138,#6956de 75%,#8f7ff3);color:#fff;border-radius:28px;padding:22px;min-height:146px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 16px 35px #4b38b440;overflow:hidden;position:relative}.hero-card:before{content:"";position:absolute;width:170px;height:170px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-55px;top:-80px}.hero-card>div:first-child{max-width:65%;position:relative}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.65px;font-weight:700;display:flex;align-items:center;gap:5px;opacity:.8}.hero-card h2{font-size:32px;margin:8px 0 2px;letter-spacing:-1px}.hero-card p,.habit-summary p,.stats-hero p{font-size:12px;line-height:1.5;margin:0;opacity:.75}.progress-ring{display:grid;place-items:center;flex:0 0 auto}.progress-ring svg,.progress-ring strong{grid-area:1/1}.progress-ring svg{transform:rotate(-90deg);overflow:visible}.progress-ring circle{fill:none;stroke-width:8}.ring-bg{stroke:#ffffff2e}.ring-value{stroke:#fff;stroke-linecap:round;transition:stroke-dashoffset .65s ease}.progress-ring strong{font-size:14px}.section{margin-top:26px}.section-title{height:32px;display:flex;align-items:flex-start;justify-content:space-between;padding:0 3px}.section-title h2{font-size:17px;line-height:1.2;margin:0;letter-spacing:-.3px}.section.overdue .section-title h2{color:var(--danger)}.text-button{border:0;background:none;color:var(--accent);font-size:12px;font-weight:700;display:flex;gap:3px;align-items:center;padding:0}.card{background:var(--surface);border:1px solid color-mix(in srgb,var(--line) 86%,transparent);border-radius:23px;box-shadow:var(--shadow)}.list{overflow:hidden}.item-row{border:0;background:transparent;width:100%;min-height:67px;padding:12px 15px;display:flex;align-items:center;gap:12px;text-align:left}.item-row+.item-row{border-top:1px solid var(--line)}.check{width:25px;height:25px;border:2px solid #cbcbd4;border-radius:50%;display:grid;place-items:center;color:transparent;flex:0 0 auto}.check.high{border-color:#f2938e}.check.low{border-color:#8dc9b1}.task-row.done .check{background:var(--accent);border-color:var(--accent);color:#fff}.task-row.done strong{text-decoration:line-through;color:var(--muted)}.item-copy{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1}.item-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-copy small{font-size:10.5px;color:var(--muted);display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.muted{color:var(--muted)}.habit-list{padding:2px 0}.habit-row{padding:15px}.habit-row+.habit-row{border-top:1px solid var(--line)}.habit-top{display:flex;align-items:center;gap:11px}.habit-emoji{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;font-size:19px;flex:0 0 auto}.habit-action{width:36px;height:36px;border:1px solid;border-radius:50%;display:grid;place-items:center}.thin-progress{height:4px;background:var(--surface-2);border-radius:4px;margin:12px 0 0 49px;overflow:hidden}.thin-progress i{height:100%;display:block;border-radius:4px;transition:width .5s}.empty{min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:12px}.empty svg{opacity:.5}.bottom-nav{position:fixed;z-index:10;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(calc(100% - 24px),516px);height:70px;border-radius:24px;border:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);box-shadow:0 10px 35px #231f3c26;display:grid;grid-template-columns:repeat(4,1fr);padding:7px}.bottom-nav button{border:0;background:none;border-radius:17px;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9px;font-weight:600;min-height:52px}.bottom-nav svg{width:21px}.bottom-nav button.active{color:var(--accent);background:var(--accent-soft)}.page-header{margin-top:4px}.round-button{width:43px;height:43px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--bg)}.month-card{padding:16px}.month-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.month-head h2{font-size:16px;margin:0;text-transform:capitalize}.month-head button{border:0;background:var(--surface-2);width:36px;height:36px;border-radius:50%;display:grid;place-items:center}.month-head svg{width:17px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.calendar-grid .weekday{text-align:center;color:var(--muted);font-size:9px;font-weight:700;padding:3px}.calendar-grid button{aspect-ratio:1;border:0;border-radius:13px;background:transparent;font-size:12px;position:relative}.calendar-grid button.selected{background:var(--accent);color:#fff}.calendar-grid button.today:not(.selected){box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent);font-weight:800}.calendar-grid button i{position:absolute;width:3px;height:3px;background:currentColor;border-radius:50%;bottom:4px;left:calc(50% - 1.5px)}.habit-summary{min-height:132px;padding:22px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(140deg,var(--surface),var(--accent-soft))}.habit-summary strong{font-size:28px;display:block;margin:8px 0 2px}.flame-orb{width:72px;height:72px;border-radius:25px;display:grid;place-items:center;background:linear-gradient(145deg,#ffcb6c,#f17a55);color:#fff;transform:rotate(6deg);box-shadow:0 12px 25px #f17a5540}.flame-orb svg{width:34px;height:34px}.habit-grid,.achievement-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.habit-card{padding:15px;min-height:178px}.habit-card-head{display:flex;justify-content:space-between}.habit-card-head>span{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;font-size:21px}.habit-card button{border:0;background:none;color:var(--muted)}.habit-card h3{font-size:14px;margin:16px 0 4px}.habit-card p{font-size:10px;color:var(--muted);margin:0}.habit-card-footer{display:flex;align-items:end;justify-content:space-between;margin-top:12px}.habit-card-footer>span{font-size:12px;color:#f18558;display:flex;align-items:center;gap:3px}.habit-card .progress-ring strong{font-size:8px}.habit-card .ring-bg{stroke:var(--surface-2)}.habit-card .ring-value{stroke:var(--accent)}.stats-hero{padding:20px;display:flex;align-items:center;gap:20px;background:linear-gradient(140deg,var(--surface),var(--accent-soft))}.stats-hero .ring-bg{stroke:var(--surface-2)}.stats-hero .ring-value{stroke:var(--accent)}.stats-hero h2{font-size:32px;margin:4px 0 0}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.metric{padding:13px 10px;min-height:115px;display:flex;flex-direction:column;justify-content:space-between}.metric>span{color:var(--accent);width:29px;height:29px;border-radius:10px;background:var(--accent-soft);display:grid;place-items:center}.metric svg{width:16px}.metric strong{font-size:23px}.metric small{font-size:9px;color:var(--muted);line-height:1.35}.chart{height:185px;padding:20px 15px 14px}.bars{height:100%;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end}.bars>div{height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:7px;text-align:center}.bars i{width:100%;max-width:24px;align-self:center;border-radius:9px;background:linear-gradient(to top,var(--accent),var(--accent-2));min-height:8px}.bars span{font-size:9px;color:var(--muted)}.achievement{min-height:135px;padding:14px;display:flex;flex-direction:column;align-items:center;text-align:center}.achievement>span{font-size:29px}.achievement strong{font-size:11px;margin-top:9px}.achievement small{font-size:9px;color:var(--accent);margin-top:3px}.achievement.locked{filter:grayscale(1);opacity:.45}.profile-card{padding:18px;display:flex;align-items:center;gap:14px}.profile-card h2{margin:0;font-size:17px}.profile-card p{margin:3px 0 0;color:var(--muted);font-size:11px}.settings-group{overflow:hidden}.setting-row{min-height:72px;padding:12px 14px;display:flex;align-items:center;gap:12px}.setting-row+.setting-row{border-top:1px solid var(--line)}.setting-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}.setting-icon svg{width:19px}.setting-row>div:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.setting-row strong{font-size:12px}.setting-row small{font-size:9px;color:var(--muted)}.theme-switch{display:flex!important;flex-direction:row!important;background:var(--surface-2);padding:3px;border-radius:12px}.theme-switch button{width:30px;height:30px;border:0;background:none;border-radius:9px;display:grid;place-items:center}.theme-switch button.active{background:var(--surface);color:var(--accent);box-shadow:0 2px 7px #00000014}.theme-switch svg{width:14px}.toggle input{display:none}.toggle i{width:44px;height:26px;border-radius:13px;background:#c8c8d0;display:block;position:relative;transition:.2s}.toggle i:after{content:"";width:22px;height:22px;border-radius:50%;background:#fff;position:absolute;top:2px;left:2px;box-shadow:0 2px 4px #0002;transition:.2s}.toggle input:checked+i{background:var(--accent)}.toggle input:checked+i:after{transform:translate(18px)}.app-version{text-align:center;color:var(--muted);font-size:10px;margin-top:30px}.back-floating{position:fixed;left:18px;bottom:24px;border:0;padding:12px 16px;border-radius:18px;background:var(--surface);box-shadow:var(--shadow);display:flex;align-items:center;gap:3px}.back-floating svg{width:17px}.modal-backdrop{position:fixed;z-index:30;inset:0;background:#0f0d1a80;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-end;justify-content:center;animation:fade .2s}.sheet{background:var(--surface);width:min(100%,540px);max-height:92dvh;overflow:auto;border-radius:30px 30px 0 0;padding:7px 18px calc(22px + env(safe-area-inset-bottom));animation:slide .25s ease-out}.sheet-handle{width:38px;height:4px;border-radius:3px;background:var(--line);margin:2px auto 7px}.sheet header{height:50px;display:grid;grid-template-columns:60px 1fr 60px;align-items:center;text-align:center}.sheet header h2{font-size:16px;margin:0}.sheet header button{border:0;background:none}.sheet header button:first-child{text-align:left}.sheet header svg{width:20px}.sheet header .save{color:var(--accent);font-size:12px;font-weight:700;text-align:right}.form{display:flex;flex-direction:column;gap:17px;padding-top:12px}.form label{font-size:10px;color:var(--muted);font-weight:700;display:flex;flex-direction:column;gap:7px}.form input,.form textarea,.form select{width:100%;border:1px solid var(--line);outline:none;background:var(--surface-2);color:var(--text);border-radius:14px;padding:13px;font-size:13px;font-weight:500}.form input:focus,.form textarea:focus,.form select:focus{border-color:var(--accent)}.form textarea{resize:none;min-height:75px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.segmented{background:var(--surface-2);border-radius:14px;padding:3px;display:grid;grid-template-columns:repeat(3,1fr)}.segmented button{border:0;background:transparent;border-radius:11px;padding:10px 3px;font-size:10px}.segmented button.active{background:var(--surface);color:var(--accent);box-shadow:0 2px 8px #0001}.inline-setting{height:55px!important;flex-direction:row!important;align-items:center;justify-content:space-between}.inline-setting>span:first-child{display:flex;align-items:center;gap:8px;color:var(--text);font-size:12px}.inline-setting svg{width:17px;color:var(--accent)}.title-with-emoji{display:grid;grid-template-columns:55px 1fr;gap:10px;align-items:end}.form .emoji-input{height:48px;text-align:center;font-size:22px;padding:5px}.kind-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.kind-grid button{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;min-height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px}.kind-grid button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.kind-grid svg{width:19px}.onboarding{width:min(100%,540px);min-height:100dvh;margin:0 auto;padding:calc(54px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;text-align:center;background:radial-gradient(circle at 50% 12%,var(--accent-soft),transparent 34%)}.onboard-orb{width:88px;height:88px;border-radius:31px;display:grid;place-items:center;background:linear-gradient(145deg,#a79bf9,#6551db);color:#fff;box-shadow:0 18px 40px #6551db47;transform:rotate(-5deg);margin:20px}.onboard-orb svg{width:42px;height:42px}.brand{font-size:12px;text-transform:uppercase;letter-spacing:3px;color:var(--accent);font-weight:800}.onboarding h1{font-size:32px;line-height:1.15;letter-spacing:-1.3px;margin:15px 0 12px}.onboarding>p{color:var(--muted);font-size:13px;line-height:1.6;max-width:360px;margin:0}.feature-pills{display:flex;gap:7px;margin:30px 0;flex-wrap:wrap;justify-content:center}.feature-pills span{background:var(--surface);box-shadow:var(--shadow);padding:10px;border-radius:14px;font-size:9px;font-weight:700;display:flex;align-items:center;gap:4px}.feature-pills svg{width:14px;color:var(--accent)}.primary-button{margin-top:auto;width:100%;height:56px;border:0;border-radius:19px;background:var(--text);color:var(--bg);font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;box-shadow:var(--shadow)}.primary-button svg{width:18px}.template-list{width:100%;display:flex;flex-direction:column;gap:8px;margin:24px 0 20px}.template-list button{height:64px;border:1px solid var(--line);border-radius:19px;background:var(--surface);display:flex;align-items:center;gap:12px;text-align:left;padding:10px 13px;box-shadow:0 4px 15px #1e1b3c08}.template-list button>span{font-size:22px;width:40px;height:40px;border-radius:13px;background:var(--surface-2);display:grid;place-items:center}.template-list button>div{display:flex;flex-direction:column;gap:3px;flex:1}.template-list strong{font-size:12px}.template-list small{font-size:9px;color:var(--muted)}.template-list button>i{width:22px;height:22px;border:1.5px solid var(--line);border-radius:50%;display:grid;place-items:center;color:transparent}.template-list button>i svg{width:14px}.template-list button.selected{border-color:var(--accent);background:var(--accent-soft)}.template-list button.selected>i{background:var(--accent);border-color:var(--accent);color:#fff}.loader{min-height:100dvh;display:grid;place-items:center;color:var(--accent)}.loader svg{animation:pulse 1s infinite}@keyframes fade{0%{opacity:0}}@keyframes slide{0%{transform:translateY(30px)}}@keyframes pulse{50%{opacity:.35;transform:scale(.9)}}@media(min-width:700px){.app-shell main{padding-top:35px}.bottom-nav{bottom:18px}.sheet{margin-bottom:12px;border-radius:30px}.modal-backdrop{align-items:center}.onboarding{box-shadow:0 0 0 1px var(--line)}}@media(max-width:350px){.app-shell main{padding-left:12px;padding-right:12px}.hero-card{padding:17px}.hero-card h2{font-size:27px}.week-strip{gap:1px}.metric{padding:10px 7px}.habit-grid{gap:7px}.bottom-nav{width:calc(100% - 16px)}.topbar h1{font-size:24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.weekday-picks{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weekday-picks button{aspect-ratio:1;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);font-size:9px}.weekday-picks button.active{background:var(--accent);border-color:var(--accent);color:#fff}
