*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}.time-scroll{scrollbar-width:none;-ms-overflow-style:none}.time-scroll::-webkit-scrollbar{display:none}:root{--primary: #5B6AF0;--primary-light: #eef0fd;--gold: #F59E0B;--bg: #f0f2f5;--surface: #ffffff;--border: #e2e8f0;--text: #1e293b;--text-secondary: #64748b;--danger: #ef4444;--success: #22c55e;--radius: 12px;--radius-sm: 8px}html,body{height:100%;background:#1a1a2e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}#root{height:100%;display:flex;justify-content:center;align-items:center}.phone-shell{width:390px;height:844px;background:var(--bg);border-radius:44px;overflow:hidden;display:flex;flex-direction:column;position:relative;box-shadow:0 40px 80px #00000080,inset 0 0 0 2px #ffffff1a}@media (max-width: 420px){.phone-shell{width:100vw;height:100dvh;border-radius:0}#root{align-items:stretch}}.screen{flex:1;display:flex;flex-direction:column;overflow:hidden}.screen-body{flex:1;overflow-y:auto;padding:12px 16px;-webkit-overflow-scrolling:touch}.screen-body::-webkit-scrollbar{display:none}.topbar{display:flex;align-items:center;justify-content:space-between;padding:14px 20px 10px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.topbar-title{font-size:18px;font-weight:700;color:var(--text)}.topbar-left,.topbar-right{display:flex;align-items:center;gap:8px;min-width:44px}.topbar-right{justify-content:flex-end}.icon-btn{width:36px;height:36px;border:none;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--text-secondary);transition:background .15s}.icon-btn:hover{background:var(--bg)}.icon-btn:active{background:var(--border)}.bottom-toolbar{background:var(--surface);border-top:1px solid var(--border);padding:8px 16px 20px;flex-shrink:0}.toolbar-store-row{display:flex;gap:8px;margin-bottom:8px}.toolbar-store-btn{flex:1;padding:8px;border:1px solid var(--border);background:var(--bg);border-radius:var(--radius-sm);font-size:13px;font-weight:600;color:var(--text-secondary);cursor:pointer;text-align:center;transition:all .15s}.toolbar-store-btn:hover{background:var(--primary-light);color:var(--primary)}.toolbar-icons{display:flex;align-items:center;justify-content:space-around}.toolbar-icon-btn{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 8px;border:none;background:none;cursor:pointer;color:var(--text-secondary);border-radius:var(--radius-sm);transition:all .15s;font-size:10px}.toolbar-icon-btn:hover{color:var(--primary);background:var(--primary-light)}.toolbar-icon-btn.active{color:var(--primary)}.toolbar-icon-btn.alarm-on{color:var(--gold)}.toolbar-add-btn{width:44px;height:44px;border-radius:50%;background:var(--primary);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #5b6af066;transition:transform .15s}.toolbar-add-btn:active{transform:scale(.92)}.card{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);overflow:hidden;margin-bottom:12px}.card-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border)}.card-title{font-size:15px;font-weight:700;color:var(--text)}.list-item{display:flex;align-items:center;padding:13px 16px;border-bottom:1px solid var(--border);gap:12px;background:var(--surface);cursor:pointer;transition:background .12s}.list-item:last-child{border-bottom:none}.list-item:active{background:var(--bg)}.list-item-text{flex:1;font-size:14px;color:var(--text)}.list-item-sub{font-size:12px;color:var(--text-secondary);margin-top:2px}.btn{width:100%;padding:13px;border-radius:var(--radius-sm);border:none;font-size:15px;font-weight:600;cursor:pointer;transition:all .15s;display:flex;align-items:center;justify-content:center;gap:8px}.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 12px #5b6af040}.btn-primary:active{transform:scale(.98)}.btn-secondary{background:var(--bg);color:var(--text);border:1px solid var(--border)}.btn-danger{background:#fef2f2;color:var(--danger);border:1px solid #fecaca}.form-group{margin-bottom:14px}.required-mark{color:var(--danger);margin-left:2px}.optional-mark{color:var(--text-secondary);font-weight:400;text-transform:none;letter-spacing:0;font-size:11px;margin-left:4px;opacity:.75}.form-label{display:block;font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}.form-input,.form-textarea,.form-select{width:100%;padding:11px 13px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:15px;color:var(--text);background:var(--surface);outline:none;transition:border-color .15s;font-family:inherit}.form-input:focus,.form-textarea:focus,.form-select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #5b6af01f}.form-textarea{resize:none;min-height:90px}.tabs{display:flex;background:var(--bg);border-radius:var(--radius-sm);padding:3px;margin-bottom:14px}.tab{flex:1;padding:8px;border:none;background:none;border-radius:6px;font-size:13px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .15s}.tab.active{background:var(--surface);color:var(--primary);box-shadow:0 1px 4px #0000001a}.category-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px}.category-row::-webkit-scrollbar{display:none}.category-pill{padding:6px 14px;border-radius:20px;border:1px solid var(--border);font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;background:var(--surface);color:var(--text-secondary);transition:all .15s;flex-shrink:0}.category-pill.active{background:var(--primary);color:#fff;border-color:var(--primary)}.category-pill.add-pill{border-style:dashed;color:var(--primary);border-color:var(--primary)}.attach-row{display:flex;gap:10px;padding:10px 0}.attach-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:var(--bg);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:all .15s}.attach-btn:hover{background:var(--primary-light);color:var(--primary)}.attach-btn.premium{border-style:dashed}.premium-badge{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;font-size:10px;font-weight:700;padding:2px 7px;border-radius:10px;letter-spacing:.05em}.ad-banner{border:2px dashed var(--border);border-radius:var(--radius-sm);padding:16px;text-align:center;color:var(--text-secondary);font-size:13px;margin:12px 0;background:repeating-linear-gradient(45deg,transparent,transparent 5px,rgba(0,0,0,.02) 5px,rgba(0,0,0,.02) 10px)}.progress-bar{height:6px;background:var(--bg);border-radius:3px;overflow:hidden;margin-top:6px}.progress-fill{height:100%;background:var(--primary);border-radius:3px;transition:width .3s ease}.checkbox-row{display:flex;align-items:center;gap:10px}.checkbox{width:20px;height:20px;border-radius:50%;border:2px solid var(--border);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s}.checkbox.checked{background:var(--primary);border-color:var(--primary)}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.cal-day-header{text-align:center;font-size:11px;font-weight:600;color:var(--text-secondary);padding:6px 0}.cal-day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:13px;border-radius:50%;cursor:pointer;transition:all .15s;color:var(--text)}.cal-day:hover{background:var(--primary-light)}.cal-day.today{background:var(--primary);color:#fff;font-weight:700}.cal-day.has-event:after{content:"";display:block;width:4px;height:4px;border-radius:50%;background:var(--primary);margin:2px auto 0}.cal-day.other-month{color:var(--border)}.cal-day.selected{background:var(--primary-light);border:1.5px solid var(--primary);border-radius:8px;font-weight:700}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.section-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-secondary)}.divider{height:1px;background:var(--border);margin:12px 0}.store-card{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:14px;margin-bottom:12px;cursor:pointer;transition:all .15s}.store-card:active{transform:scale(.98)}.store-card-name{font-size:15px;font-weight:700;margin-bottom:8px}.store-emotes{display:flex;gap:8px}.emote-item{width:44px;height:44px;border-radius:var(--radius-sm);background:var(--bg);display:flex;align-items:center;justify-content:center;font-size:22px;cursor:pointer;border:1px solid var(--border)}.avatar{width:80px;height:80px;border-radius:50%;background:var(--primary-light);display:flex;align-items:center;justify-content:center;font-size:32px;color:var(--primary);margin:0 auto 16px;border:3px solid var(--border);cursor:pointer;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--surface)}.toggle-label{font-size:15px;color:var(--text)}.toggle{width:44px;height:26px;border-radius:13px;background:var(--border);cursor:pointer;position:relative;transition:background .2s;border:none;flex-shrink:0}.toggle.on{background:var(--primary)}.toggle-thumb{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px #0003}.toggle.on .toggle-thumb{transform:translate(18px)}.analytics-summary-box{background:var(--surface);border-radius:var(--radius);border:1px solid var(--border);padding:20px;min-height:120px;color:var(--text-secondary);font-size:14px;line-height:1.6;margin-bottom:12px}.empty-state{text-align:center;padding:40px 20px;color:var(--text-secondary);font-size:14px}.empty-state-icon{font-size:40px;margin-bottom:12px}.nav-month-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.nav-month-title{font-size:16px;font-weight:700}.workout-stat-row{display:flex;gap:10px;margin-bottom:12px}.workout-stat{flex:1;background:var(--bg);border-radius:var(--radius-sm);padding:12px;text-align:center}.workout-stat-val{font-size:22px;font-weight:700;color:var(--primary)}.workout-stat-label{font-size:11px;color:var(--text-secondary);margin-top:2px}.freq-pills{display:flex;gap:6px;flex-wrap:wrap}.freq-pill{padding:6px 12px;border-radius:16px;border:1px solid var(--border);font-size:12px;cursor:pointer;background:var(--bg);color:var(--text-secondary);transition:all .15s}.freq-pill.active{background:var(--primary-light);color:var(--primary);border-color:var(--primary)}.achievement-item{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface);border-radius:var(--radius-sm);border:1px solid var(--border);margin-bottom:8px}.achievement-icon{font-size:24px}.notif-dot{width:8px;height:8px;background:var(--danger);border-radius:50%;position:absolute;top:6px;right:6px}.spacer{height:12px}.spacer-sm{height:8px}.danger-zone{border:1px solid #fecaca;border-radius:var(--radius);overflow:hidden;margin-top:8px}.chart-placeholder{background:var(--bg);border-radius:var(--radius-sm);height:120px;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);font-size:13px;margin-bottom:12px}
