:root{font-family:Inter,ui-rounded,SF Pro Rounded,system-ui,sans-serif;color:#302a3a;background:#fff7ee;font-synthesis:none}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:linear-gradient(165deg,#fff4e8,#f4f5ff)}button{font:inherit}button:disabled{cursor:wait;opacity:.55}#root{min-height:100vh}.app-shell{position:relative;width:min(100%,560px);min-height:100vh;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 20px calc(92px + env(safe-area-inset-bottom))}.topbar,.section-heading,.level-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar h1{margin:2px 0 0;font-size:24px;line-height:1.15;letter-spacing:-.03em}.eyebrow,.date-label{margin:0;color:#887f96;font-size:11px;font-weight:800;letter-spacing:.11em}.coin-counter{display:flex;align-items:center;gap:5px;min-width:50px;padding:8px 10px;border-radius:14px;color:#795e20;background:#fff1b7}.coin-counter span{color:#eea41c}.screen{padding-top:19px}.date-label{margin-bottom:11px;text-transform:capitalize}.pet-card{position:relative;overflow:hidden;min-height:298px;padding:22px;border:1px solid rgba(255,255,255,.8);border-radius:30px;background:linear-gradient(150deg,#d8d8ff,#efd8ff);box-shadow:0 14px 38px #6657951f}.pet-card:after{content:"";position:absolute;width:190px;height:190px;right:-64px;top:-76px;border-radius:50%;background:#ffffff3d}.pet-card__copy{position:relative;z-index:1}.pet-card__copy p{margin:0;color:#615a7a;font-weight:700}.pet-card h2,.section-heading h2,.placeholder-screen h2,.notice-card h2{margin:3px 0 8px;font-size:25px;letter-spacing:-.03em}.mood-pill{display:inline-block;padding:5px 9px;border-radius:20px;color:#625b77;background:#ffffff8c;font-size:12px;font-weight:700}.pet{position:absolute;width:184px;right:1px;top:38px;animation:float 4s ease-in-out infinite}.pet svg{width:100%;overflow:visible}.pet__body{fill:#9c82e8}.pet__ear{fill:#7a62c6}.pet__belly{fill:#c9bcff}.pet__tail,.pet__hand{fill:none;stroke:#8068ce;stroke-linecap:round;stroke-width:12px}.pet__tail{stroke-width:14px}.pet__eye{fill:#342b52}.pet__cheek{fill:#ec9eb5;opacity:.65}.pet__nose,.pet__mouth{fill:none;stroke:#4b3c68;stroke-linecap:round;stroke-width:3px}.pet__sprout{fill:#78bd82}.pet__badge{fill:#ffd466}.pet__crown{fill:#f3b942;stroke:#c98f24;stroke-linejoin:round;stroke-width:2px}.pet--stage-2{transform:scale(1.03)}.pet--stage-3 .pet__body{fill:#8a70d5}.pet--stage-3 .pet__belly{fill:#d8ceff}.pet--stage-4{transform:scale(1.08)}.pet--stage-4 .pet__body{fill:#7558c2}.pet--stage-4 .pet__ear{fill:#6044a8}.level-row{position:absolute;right:22px;bottom:20px;left:22px;flex-wrap:wrap;color:#4d4267;font-size:12px}.level-row span{margin-left:auto}.progress-track{flex-basis:100%;height:8px;overflow:hidden;border-radius:10px;background:#ffffffa6}.progress-track__fill{width:40%;height:100%;border-radius:inherit;background:#8066d8}.habits-section{padding:27px 0 4px}.section-heading h2{font-size:21px}.completion-count{padding:7px 9px;border-radius:12px;color:#71647d;background:#f0eaf6;font-size:12px;font-weight:800}.habit-list{display:grid;gap:10px;padding:0;margin:15px 0;list-style:none}.habit-card{display:grid;grid-template-columns:42px 1fr 34px;gap:12px;align-items:center;padding:12px;border:1px solid #f0eaf4;border-radius:19px;background:#ffffffc7;box-shadow:0 7px 20px #5e4d7c0d}.habit-card--done{opacity:.66}.habit-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf4ff;font-size:21px}.habit-card strong,.habit-card small{display:block}.habit-card strong{font-size:14px}.habit-card small{margin-top:3px;color:#95899e;font-size:11px}.habit-card button,.checkmark{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;color:#9d91ac;background:transparent;font-size:29px}.checkmark{border-radius:50%;color:#fff;background:#8acaa1;font-size:17px}.add-habit{width:100%;padding:14px;border:0;border-radius:18px;color:#695281;background:#eee5fa;font-weight:800}.add-habit span{font-size:19px;vertical-align:-1px}.bottom-nav{position:fixed;z-index:2;right:max(12px,calc((100vw - 560px)/2 + 12px));bottom:calc(10px + env(safe-area-inset-bottom));left:max(12px,calc((100vw - 560px)/2 + 12px));display:grid;grid-template-columns:repeat(4,1fr);padding:7px;border:1px solid rgba(255,255,255,.9);border-radius:25px;background:#ffffffe6;box-shadow:0 9px 30px #3e2c5626;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav__item{display:grid;justify-items:center;gap:2px;padding:7px 3px;border:0;border-radius:17px;color:#93889a;background:transparent;font-size:10px;font-weight:800}.bottom-nav__item--active{color:#6f52bb;background:#eee7ff}.bottom-nav__icon{font-size:20px;line-height:1}.notice-card,.placeholder-screen{margin-top:38px;padding:28px 24px;border-radius:28px;text-align:center;background:#ffffffab;box-shadow:0 14px 34px #5b4a7b14}.notice-card__icon,.placeholder-orb{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;border-radius:20px;color:#fff;background:#9b7fe4;font-size:26px}.notice-card p,.placeholder-screen p{margin:0;color:#766d81;line-height:1.5}.notice-card__hint{margin-top:14px!important;font-size:12px}.placeholder-screen{min-height:310px;padding-top:68px}.placeholder-orb{background:#edb1a9}.error-banner{width:100%;margin-top:12px;padding:10px 13px;border:0;border-radius:14px;color:#88413c;background:#ffe1dc;font-size:12px;text-align:left}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.secondary-button{padding:12px;border:0;border-radius:16px;color:#695281;background:#f1eaf7;font-weight:800}.habit-card--manage{grid-template-columns:42px 1fr auto}.habit-info{min-width:0;padding:0;border:0;background:transparent;text-align:left}.manage-actions{display:flex;gap:4px}.manage-actions button{width:29px;height:29px;padding:0;border:0;border-radius:10px;color:#765e8a;background:#f1eafb}.empty-state{display:grid;gap:5px;margin:15px 0;padding:22px;border:1px dashed #d9cfe1;border-radius:18px;color:#827589;text-align:center}.empty-state span{font-size:13px}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0 25px}.stat-card{padding:16px 8px;border-radius:17px;background:#ffffffbf;text-align:center}.stat-card strong,.stat-card span{display:block}.stat-card strong{color:#7259b5;font-size:20px}.stat-card span{margin-top:4px;color:#897f91;font-size:10px}.screen h3{margin:27px 0 10px;font-size:17px}.plain-list{display:grid;gap:8px;padding:0;list-style:none}.plain-list li{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:15px;background:#ffffffb8;font-size:13px}.plain-list span{color:#84788c;text-align:right;font-size:12px}.is-locked{opacity:.55}.profile-screen{display:grid;justify-items:center;padding-top:42px;text-align:center}.profile-screen .pet{position:static;width:220px}.profile-screen h2{margin:18px 0 2px}.profile-screen p{margin:0 0 18px;color:#81758b}.modal-backdrop{position:fixed;z-index:5;top:0;right:0;bottom:0;left:0;display:flex;align-items:end;padding:12px;background:#3125444d}.modal{width:min(100%,560px);max-height:88vh;margin:0 auto;padding:20px;overflow:auto;border-radius:26px;background:#fffafb;box-shadow:0 -10px 34px #2517362e}.modal header{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal header h2{margin:0;font-size:21px}.modal header button{display:grid;place-items:center;width:31px;height:31px;border:0;border-radius:50%;color:#6d617a;background:#eee8f2;font-size:22px}.modal form>p{color:#746a7d;line-height:1.4}.habit-form{display:grid;gap:11px;margin-top:16px}.habit-form input,.habit-form textarea,.habit-form select{width:100%;padding:12px;border:1px solid #e3d9e8;border-radius:13px;color:#322a3d;background:#fff}.habit-form textarea{min-height:70px;resize:vertical}.habit-form label{display:grid;gap:6px;color:#73677d;font-size:12px;font-weight:700}.field-row{display:grid;grid-template-columns:62px 1fr;gap:9px}.field-row input{text-align:center}.day-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.day-picker button{padding:9px 2px;border:0;border-radius:10px;color:#786c84;background:#eee8f2;font-size:11px;font-weight:800}.day-picker .is-selected{color:#fff;background:#8267cf}.library-list{display:grid;gap:8px;margin-top:14px}.library-list button{display:grid;grid-template-columns:31px 1fr auto;align-items:center;gap:8px;padding:10px;border:0;border-radius:15px;background:#f5f0f8;text-align:left}.library-list strong{font-size:13px}.library-list small{display:block;grid-column:2;color:#8d8196;font-size:11px}.library-list b{grid-column:3;grid-row:1 / span 2;color:#795fc2;font-size:19px}@keyframes float{50%{transform:translateY(-7px) rotate(1deg)}}@media(min-width:561px){.app-shell{border-right:1px solid rgba(125,110,150,.09);border-left:1px solid rgba(125,110,150,.09)}}
