:root{color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background-color:#000;color:#fff;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Inter,system-ui,sans-serif}button{font-family:inherit;border:none;background:none;color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}.app-shell{min-height:100dvh;max-width:520px;margin:0 auto;position:relative;padding-bottom:92px}.page{padding:20px 16px 32px}.today-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:14px;padding:0 4px}.date-subtitle{font-size:13px;font-weight:500;color:#8e8e93;margin-bottom:2px}.page-title{font-size:34px;font-weight:700;letter-spacing:-.5px;margin:0}.icon-circle-btn{width:36px;height:36px;border-radius:999px;background:#0a84ff2e;display:flex;align-items:center;justify-content:center}.grouped-card{background:#1c1c1e;border-radius:16px;overflow:hidden}.habit-row{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;text-align:left}.habit-row:hover:not(.readonly){background:#ffffff08}.habit-row-left{display:flex;align-items:center;gap:14px;min-width:0}.habit-emoji{font-size:22px;line-height:1}.habit-name{font-size:16px;font-weight:500;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.check-circle{width:22px;height:22px;border-radius:999px;border:2px solid rgba(142,142,147,.45);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s ease}.check-circle.checked{background:#30d158;border-color:#30d158}.row-divider{height:1px;background:#ffffff14;margin-left:52px}.empty-card{background:#1c1c1e;border-radius:20px;padding:28px 24px;text-align:center;margin-top:20px;display:flex;flex-direction:column;align-items:center;gap:14px}.empty-icon-wrap{width:72px;height:72px;border-radius:999px;background:#0a84ff29;display:flex;align-items:center;justify-content:center}.empty-title{margin:0;font-size:22px;font-weight:700}.empty-desc{margin:0;font-size:15px;color:#8e8e93;line-height:1.4}.empty-subtext{color:#8e8e93;font-size:15px;text-align:center}.primary-btn{width:100%;height:46px;border-radius:12px;background:#0a84ff;color:#fff;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px}.tab-bar{position:fixed;bottom:14px;left:50%;transform:translate(-50%);width:calc(100% - 32px);max-width:488px;background:#1c1c1ee0;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:6px;display:grid;grid-template-columns:repeat(4,1fr);z-index:20}.tab-item{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;border-radius:22px;color:#8e8e93;font-size:11px;font-weight:500}.tab-item.active{background:#ffffff1a;color:#0a84ff}.auth-screen{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;background:#000}.auth-card{width:100%;max-width:380px;text-align:center;display:flex;flex-direction:column;align-items:center}.auth-logo{margin-bottom:14px}.auth-title{margin:0 0 8px;font-size:36px;font-weight:700}.auth-subtitle{margin:0 0 42px;font-size:16px;color:#8e8e93}.google-btn{width:100%;height:50px;border-radius:12px;background:#fff;color:#000;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px}.auth-error{margin-top:12px;color:#ff453a;font-size:13px}.auth-note{margin-top:14px;font-size:13px;color:#8e8e93;line-height:1.4}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b8;display:flex;align-items:flex-end;justify-content:center;z-index:40}.modal-sheet{width:100%;max-width:520px;max-height:90dvh;overflow-y:auto;background:#000;border-top:1px solid rgba(255,255,255,.12);border-radius:22px 22px 0 0;padding:16px 16px 32px}.small-modal{border-radius:20px;margin:auto 16px;padding:16px}.modal-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.modal-title{font-size:17px;font-weight:600}.text-btn{display:inline-flex;align-items:center;gap:4px;color:#0a84ff;font-size:15px;font-weight:500}.month-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding:0 4px}.month-label{font-size:17px;font-weight:600}.nav-arrow{padding:4px}.weekday-row,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.weekday-cell{text-align:center;font-size:12px;font-weight:700;color:#8e8e93;margin-bottom:6px}.day-cell-btn{display:flex;justify-content:center;align-items:center;height:42px}.selected-day-section{margin-top:20px}.section-heading{font-size:15px;font-weight:600;color:#8e8e93;margin-bottom:10px;display:flex;align-items:center;gap:8px}.future-pill{font-size:11px;padding:2px 8px;border-radius:999px;background:#8e8e9333}.stats-row{width:100%;padding:14px 16px;display:flex;flex-direction:column;gap:10px;text-align:left}.stats-row-top{display:flex;align-items:center;justify-content:space-between}.progress-track{width:100%;height:6px;border-radius:999px;background:#ffffff14;overflow:hidden}.progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#0a84ff,#32ade6)}.stats-row-bottom{display:flex;justify-content:space-between;font-size:12px;color:#8e8e93}.back-btn{display:inline-flex;align-items:center;gap:2px;color:#0a84ff;font-size:16px;margin-bottom:12px}.detail-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.segmented-control{display:grid;grid-template-columns:repeat(4,1fr);background:#1c1c1e;border-radius:10px;padding:3px;margin-bottom:16px}.seg-btn{padding:7px 4px;font-size:13px;font-weight:500;color:#8e8e93;border-radius:8px}.seg-btn.active{background:#3a3a3c;color:#fff}.chart-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}.chart-pct{font-size:22px;font-weight:700;color:#0a84ff}.bar-chart{display:flex;align-items:flex-end;gap:4px;height:90px}.bar-col{flex:1;height:100%;display:flex;align-items:flex-end}.bar-fill{width:100%;border-radius:4px;background:#0a84ff}.streak-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.streak-card{padding:14px}.streak-card-top{display:flex;align-items:center;gap:6px;margin-bottom:8px}.streak-number{font-size:24px;font-weight:700}.streak-dates{font-size:11px;color:#8e8e93;margin-top:4px}.muted-label{font-size:13px;color:#8e8e93}.heatmap-scroll{overflow-x:auto}.heatmap-grid{display:flex;gap:3px}.heatmap-col{display:flex;flex-direction:column;gap:3px}.heatmap-cell{width:9px;height:9px;border-radius:2px;background:#ffffff14}.heatmap-cell.done{background:#30d158}.habit-manage-row{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.manage-actions{display:flex;gap:8px}.icon-action{width:30px;height:30px;border-radius:8px;background:#ffffff0f;display:flex;align-items:center;justify-content:center;color:#8e8e93}.icon-action.danger{color:#ff453a}.add-bar{position:fixed;bottom:84px;left:50%;transform:translate(-50%);width:calc(100% - 32px);max-width:488px;background:#000;padding:10px 0;display:flex;flex-direction:column;gap:8px;z-index:15}.add-bar-row{display:flex;gap:8px}.emoji-input{width:48px;height:44px;border-radius:10px;border:none;background:#1c1c1e;color:#fff;font-size:20px;text-align:center}.name-input{flex:1;height:44px;border-radius:10px;border:none;background:#1c1c1e;color:#fff;font-size:16px;padding:0 14px}.section-label{font-size:13px;font-weight:600;color:#8e8e93;text-transform:uppercase;margin:0 0 8px 6px}.settings-row{display:flex;align-items:center;justify-content:space-between;padding:14px 16px}.settings-btn{width:100%;display:flex;align-items:center;gap:8px;padding:14px 16px;font-size:16px;font-weight:500}.settings-btn.danger{color:#ff453a}
