:root{--primary:#ff5100;--primary-dark:#cc4000;--primary-light:#ff510040;--primary-bg:#ff51001f;--text-primary:#fafafa;--text-secondary:#fafafa99;--text-muted:#fafafa4d;--surface:#060607;--surface-alt:#111113;--border:#fafafa14;--success:#3ecf6f;--radius-sm:8px;--radius-md:14px;--radius-lg:20px;--radius-xl:28px;--shadow-sm:0 1px 4px #0006;--shadow-md:0 4px 16px #00000080;--nav-height:72px;--font:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root[data-theme=light]{--text-primary:#060607;--text-secondary:#06060799;--text-muted:#0606074d;--surface:#fafafa;--surface-alt:#f0f0f1;--border:#0606071a;--shadow-sm:0 1px 4px #00000014;--shadow-md:0 4px 16px #0000001f}html,body,#root{width:100%;height:100%;font-family:var(--font);background:var(--surface);color:var(--text-primary);-webkit-font-smoothing:antialiased}#root{display:flex}.app-shell{background:var(--surface);flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:hidden}.page{padding-bottom:calc(var(--nav-height) + 8px);scrollbar-width:none;flex:1;overflow-y:auto}.page::-webkit-scrollbar{display:none}h1{font-size:1.6rem;font-weight:700;line-height:1.2}h2{font-size:1.2rem;font-weight:700}h3{font-size:1rem;font-weight:600}p{font-size:.875rem}button{cursor:pointer;background:0 0;border:none;font-family:inherit}input,select,textarea{outline:none;font-family:inherit}.bottom-nav{height:var(--nav-height);background:var(--surface-alt);border-top:1px solid var(--border);z-index:100;justify-content:space-around;align-items:center;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -2px 20px #00000080}.nav-tab{color:var(--text-muted);letter-spacing:.04em;border-radius:var(--radius-sm);flex-direction:column;align-items:center;gap:3px;padding:8px 12px;font-size:.6rem;font-weight:600;text-decoration:none;transition:color .2s;display:flex}.nav-tab svg{stroke:currentColor}.nav-tab.active{color:var(--primary)}.habit-card{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-md);align-items:center;gap:12px;padding:14px 16px;transition:box-shadow .2s,border-color .2s;display:flex}.habit-card:hover{border-color:#ff51004d;box-shadow:0 0 0 1px #ff51001a}.habit-card__icon{background:var(--primary-bg);border-radius:var(--radius-sm);flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.3rem;display:flex}.habit-card__body{flex-direction:column;flex:1;gap:6px;display:flex}.habit-card__header{justify-content:space-between;align-items:center;display:flex}.habit-card__name{color:var(--text-primary);font-size:.92rem;font-weight:600}.habit-card__streak{color:var(--text-secondary);font-size:.78rem;font-weight:600}.habit-card__bar-wrap{align-items:center;gap:8px;display:flex}.habit-card__bar{background:var(--primary-light);border-radius:99px;flex:1;height:5px;overflow:hidden}.habit-card__bar-fill{background:var(--primary);border-radius:99px;height:100%;transition:width .4s}.habit-card__meta{color:var(--text-muted);white-space:nowrap;font-size:.7rem}.habit-card__check{color:#fafafa;border:2px solid #fafafa33;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:.85rem;transition:all .2s;display:flex}.habit-card__check.checked{background:var(--primary);border-color:var(--primary)}.habit-card__check:hover{border-color:var(--primary)}.habit-card.complete .habit-card__name{opacity:.45}.streak-card{background:var(--primary);border-radius:var(--radius-lg);color:#fafafa;justify-content:space-between;align-items:center;margin:0 20px 20px;padding:24px 20px;display:flex;box-shadow:0 6px 24px #ff510059}.streak-card__label{letter-spacing:.06em;opacity:.85;margin-bottom:6px;font-size:.7rem;font-weight:700}.streak-card__number{font-size:3.2rem;font-weight:800;line-height:1}.streak-card__unit{opacity:.9;margin-bottom:8px;font-size:.95rem;font-weight:600}.streak-card__msg{opacity:.8;max-width:180px;font-size:.78rem;line-height:1.4}.streak-card__flame{filter:drop-shadow(0 2px 8px #0000002e);font-size:3.5rem}.today-header{justify-content:space-between;align-items:center;padding:28px 20px 20px;display:flex}.today-greeting{color:var(--text-primary);font-size:1.35rem;font-weight:800}.today-date{color:var(--text-secondary);margin-top:2px;font-size:.82rem}.today-avatar{background:var(--primary);color:#fafafa;border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;font-size:1.1rem;font-weight:700;display:flex;position:relative}.today-avatar:after{content:"";background:var(--success);border:2px solid var(--surface);border-radius:50%;width:10px;height:10px;position:absolute;bottom:0;right:0}.today-section{padding:0 20px}.today-section-header{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.today-edit-btn{color:var(--primary);font-size:.82rem;font-weight:600}.today-habits{flex-direction:column;gap:10px;display:flex}.today-new-habit{border-radius:var(--radius-md);color:var(--text-muted);border:1.5px dashed #fafafa26;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:18px;font-size:.85rem;font-weight:600;transition:all .2s;display:flex}.today-new-habit span:first-child{color:var(--text-muted);font-size:1.4rem;line-height:1}.today-new-habit:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-bg)}.trends-page{padding:0 20px}.trends-header{justify-content:space-between;align-items:flex-start;padding:28px 0 20px;display:flex}.trends-header h2{font-size:1.5rem}.trends-sub{color:var(--text-secondary);margin-top:2px;font-size:.82rem}.trends-cal-btn{border-radius:var(--radius-sm);color:var(--text-secondary);padding:6px;font-size:1.2rem}.trends-completion-card{background:var(--primary);border-radius:var(--radius-lg);color:#fafafa;margin-bottom:24px;padding:24px;position:relative;overflow:hidden;box-shadow:0 6px 24px #ff510059}.trends-pct{margin-bottom:8px;font-size:2.8rem;font-weight:800;line-height:1.1}.trends-pct span{opacity:.9;font-size:1rem;font-weight:500}.trends-completion-card p{opacity:.85;max-width:200px;font-size:.82rem;line-height:1.5}.trends-completion-decoration{pointer-events:none;background:#ffffff14;border-radius:50%;width:100px;height:100px;position:absolute;bottom:-20px;right:-20px}.trends-section{margin-bottom:20px}.trends-section-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.trends-badge{color:var(--text-secondary);background:var(--surface-alt);border:1px solid var(--border);border-radius:99px;padding:4px 10px;font-size:.7rem;font-weight:600}.trends-bars{align-items:flex-end;gap:6px;height:140px;display:flex}.trends-bar-col{flex-direction:column;flex:1;align-items:center;height:100%;display:flex}.trends-bar-wrap{flex:1;align-items:flex-end;width:100%;display:flex}.trends-bar{background:var(--primary);border-radius:8px 8px 4px 4px;width:100%;min-height:8px;transition:height .4s}.trends-bar.empty{background:var(--primary-light)}.trends-day{color:var(--text-muted);margin-top:6px;font-size:.6rem;font-weight:600}.trends-stats{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px;display:grid}.trends-stat-card{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-md);padding:18px 16px}.trends-stat-icon{font-size:1.2rem}.trends-stat-value{color:var(--text-primary);margin:6px 0 2px;font-size:1.4rem;font-weight:800}.trends-stat-label{color:var(--text-secondary);font-size:.75rem}.habits-page{padding:0 20px}.habits-header{justify-content:space-between;align-items:center;padding:28px 0 20px;display:flex}.habits-add-btn{background:var(--primary);color:#fff;border-radius:99px;padding:7px 16px;font-size:.82rem;font-weight:700}.habits-list{flex-direction:column;gap:10px;display:flex}.habit-row{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-md);align-items:center;gap:12px;padding:14px 16px;transition:border-color .2s;display:flex}.habit-row:hover{border-color:#ff51004d}.habit-row__icon{background:var(--primary-bg);border-radius:var(--radius-sm);flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.3rem;display:flex}.habit-row__info{flex-direction:column;flex:1;gap:3px;display:flex}.habit-row__name{font-size:.92rem;font-weight:600}.habit-row__freq{color:var(--text-secondary);text-transform:capitalize;font-size:.75rem}.habit-row__delete{color:var(--text-muted);border-radius:var(--radius-sm);padding:4px 8px;font-size:.85rem;transition:all .2s}.habit-row__delete:hover{background:var(--primary-bg);color:var(--primary)}.habits-empty{color:var(--text-secondary);text-align:center;flex-direction:column;align-items:center;gap:12px;padding:60px 20px;display:flex}.habits-empty span{font-size:3rem}.habits-empty button{background:var(--primary);color:#fafafa;border-radius:99px;margin-top:8px;padding:10px 24px;font-size:.88rem;font-weight:600}.settings-page{padding:0 20px 20px}.settings-title{padding:28px 0 20px;font-size:1.5rem}.settings-profile{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-md);align-items:center;gap:14px;margin-bottom:24px;padding:16px;display:flex}.settings-avatar{background:var(--primary);color:#fafafa;border-radius:50%;justify-content:center;align-items:center;width:50px;height:50px;font-size:1.3rem;font-weight:700;display:flex;box-shadow:0 2px 10px #ff510066}.settings-name{color:var(--text-primary);font-size:.95rem;font-weight:700}.settings-email{color:var(--primary);margin-top:2px;font-size:.75rem}.settings-section{margin-bottom:20px}.settings-section-title{letter-spacing:.08em;color:var(--text-muted);text-transform:uppercase;margin-bottom:8px;font-size:.68rem;font-weight:700}.settings-group{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden}.settings-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:14px 16px;display:flex}.settings-row:last-child{border-bottom:none}.settings-row-icon{text-align:center;width:22px;font-size:1rem}.settings-row-label{color:var(--text-primary);flex:1;font-size:.88rem;font-weight:500}.settings-row-right{align-items:center;display:flex}.settings-toggle{cursor:pointer;background:#8080804d;border:none;border-radius:99px;flex-shrink:0;width:40px;height:24px;transition:background .25s;position:relative}.settings-toggle:after{content:"";background:#fafafa;border-radius:50%;width:18px;height:18px;transition:transform .25s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.settings-toggle.on{background:var(--primary)}.settings-toggle.on:after{transform:translate(16px)}.settings-value{color:var(--text-secondary);font-size:.82rem}.settings-chevron{color:var(--text-muted);font-size:1.2rem}.create-page{padding:0 24px 32px}.create-topbar{color:var(--text-muted);letter-spacing:.04em;justify-content:space-between;align-items:center;padding:20px 0 0;font-size:.75rem;font-weight:600;display:flex}.create-back{background:var(--surface-alt);border:1px solid var(--border);width:36px;height:36px;color:var(--text-primary);border-radius:50%;justify-content:center;align-items:center;font-size:1rem;display:flex}.create-hero{text-align:center;padding:20px 0 24px}.create-hero-icon{margin-bottom:8px;font-size:3rem;display:block}.create-hero h1{color:var(--text-primary);font-size:1.5rem;font-weight:800}.create-accent{color:var(--primary)}.create-hero p{color:var(--text-secondary);margin-top:4px;font-size:.85rem}.create-form{flex-direction:column;gap:20px;display:flex}.create-field label{letter-spacing:.08em;color:var(--text-secondary);margin-bottom:8px;font-size:.68rem;font-weight:700;display:block}.create-input-wrap{border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface-alt);align-items:center;gap:10px;padding:12px 16px;transition:border-color .2s;display:flex}.create-input-wrap:focus-within{border-color:var(--primary)}.create-input-wrap input{color:var(--text-primary);background:0 0;border:none;flex:1;font-size:.9rem}.create-input-wrap input::placeholder{color:var(--text-muted)}.create-icons{flex-wrap:wrap;gap:8px;display:flex}.create-icon-btn{border-radius:var(--radius-sm);border:1.5px solid var(--border);background:var(--surface-alt);justify-content:center;align-items:center;width:44px;height:44px;font-size:1.3rem;transition:all .15s;display:flex}.create-icon-btn.selected{border-color:var(--primary);background:var(--primary-bg)}.create-freq{gap:8px;display:flex}.create-freq-btn{border:1.5px solid var(--border);border-radius:var(--radius-md);color:var(--text-secondary);background:var(--surface-alt);flex-direction:column;flex:1;align-items:center;gap:4px;padding:12px 8px;font-size:.78rem;font-weight:600;transition:all .15s;display:flex}.create-freq-icon{font-size:1.1rem}.create-freq-btn.selected{background:var(--primary);border-color:var(--primary);color:#fff}.create-goal-header{justify-content:flex-end;margin-bottom:8px;display:flex}.create-goal-value{color:var(--primary);font-size:.9rem;font-weight:700}.create-slider{appearance:none;background:var(--primary-light);border-radius:99px;outline:none;width:100%;height:6px}.create-slider::-webkit-slider-thumb{appearance:none;background:var(--primary);cursor:pointer;border-radius:50%;width:20px;height:20px;box-shadow:0 2px 6px #c0392b4d}.create-slider-labels{color:var(--text-muted);justify-content:space-between;margin-top:6px;font-size:.7rem;display:flex}.create-reminder{background:var(--surface-alt);border:1px solid var(--border);border-radius:var(--radius-md);justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.create-reminder-left{align-items:center;gap:12px;display:flex}.create-reminder-icon{font-size:1.2rem}.create-reminder-label{color:var(--text-primary);font-size:.88rem;font-weight:600}.create-reminder-time{color:var(--text-secondary);margin-top:1px;font-size:.75rem}.create-toggle{cursor:pointer;align-items:center;display:inline-flex;position:relative}.create-toggle input{display:none}.create-toggle-thumb{background:var(--border);border-radius:99px;width:44px;height:26px;transition:background .2s;position:relative}.create-toggle-thumb:after{content:"";width:20px;height:20px;box-shadow:var(--shadow-sm);background:#fff;border-radius:50%;transition:transform .2s;position:absolute;top:3px;left:3px}.create-toggle input:checked+.create-toggle-thumb{background:var(--primary)}.create-toggle input:checked+.create-toggle-thumb:after{transform:translate(18px)}.create-submit{background:var(--primary);color:#fafafa;border-radius:var(--radius-lg);letter-spacing:.01em;width:100%;margin-top:4px;padding:16px;font-size:1rem;font-weight:700;transition:background .2s,box-shadow .2s;box-shadow:0 4px 16px #ff510059}.create-submit:hover{background:var(--primary-dark);box-shadow:0 4px 20px #ff510080}
