/* Disable double-tap smart zoom while preserving pinch zoom and normal scrolling. */
html,body{touch-action:manipulation}button,a,[role=button],input,select,textarea,summary{touch-action:manipulation}
.stats [role=button]:has(#streak){cursor:pointer;border-radius:12px}.stats [role=button]:has(#streak):focus-visible{outline:3px solid var(--green);outline-offset:5px}
#modal.streakMode{width:min(100%,520px);max-height:90dvh;padding:0;overflow:hidden;border-radius:24px}#modal.streakMode #modalBody{padding:0}.streakSheet{height:90dvh;max-height:900px;display:flex;flex-direction:column;background:var(--bg);color:var(--text)}
.streakHeader{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:12px;padding:18px 20px 10px;position:static!important;background:transparent!important;min-height:0!important}.streakHeader h1{font-family:inherit;font-size:20px;text-align:center;margin:0}.streakHeader .close{width:40px;height:40px;padding:9px;border:0;box-shadow:none;background:var(--surface,var(--bg))}.streakHeader .uiIcon{width:22px;height:22px}
.streakTabs{display:flex;border-bottom:2px solid var(--border);padding:0 20px;gap:20px}.streakTabs button{flex:1;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--muted);font-size:12px;letter-spacing:.6px;padding:17px 6px 13px;border-bottom:3px solid transparent;margin-bottom:-2px}.streakTabs button[aria-selected=true]{color:var(--green);border-color:var(--green)}
.streakContent{overflow-y:auto;overscroll-behavior:contain;padding:22px 22px 28px;flex:1;min-height:0}.streakHero{display:flex;align-items:center;justify-content:space-between;gap:12px}.streakHero strong{font-size:68px;line-height:1;color:#f49b79;font-weight:900;letter-spacing:-2px}.streakHero h2{font-size:18px;margin:6px 0;color:#f49b79}.streakHero p{font-size:13px;color:var(--muted);margin:10px 0 0;max-width:230px;line-height:1.5}.streakHero>.uiIcon{width:100px;height:112px;flex:none;animation:streakFlameIn .55s ease both}
.streakMessage{display:flex;align-items:center;gap:12px;padding:15px;border:2px solid var(--border);border-radius:16px;margin:22px 0;font-size:13px;line-height:1.5}.streakMessage>.uiIcon{width:27px;height:27px;flex:none;color:var(--green)}
.streakMonthTitle{display:flex;justify-content:space-between;align-items:center;margin:25px 0 14px}.streakMonthTitle h2{font-size:18px;margin:0;text-transform:capitalize}.streakMonthTitle>div{display:flex;gap:8px}.streakMonthTitle button{width:32px;height:32px;padding:6px;min-height:0;border:0;background:transparent;box-shadow:none}.streakMonthTitle .uiIcon{width:20px;height:20px}.streakMonthTitle button:disabled{opacity:.25}
.streakMonthStats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.streakMonthStats>span{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:3px 8px;padding:12px;border:2px solid var(--border);border-radius:14px}.streakMonthStats .uiIcon{grid-row:span 2;width:24px;height:24px;color:var(--green)}.streakMonthStats b{font-size:17px}.streakMonthStats small{font-size:10px;color:var(--muted)}
.streakCalendar{padding:16px 10px;border:2px solid var(--border);border-radius:18px}.streakWeekdays,.streakDates{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:8px 2px}.streakWeekdays{font-size:11px;color:var(--muted);font-weight:800;margin-bottom:12px}.streakDates>span{height:34px;display:flex;align-items:center;justify-content:center;position:relative;font-size:12px;font-weight:800;border-radius:50%}.streakDates .practiced{background:#ef9a77;color:#423027}.streakDates .frozen{background:#23586c;color:#8bd6ee}.streakDates .frozen .uiIcon{width:10px;height:10px;position:absolute;right:-1px;bottom:0}.streakDates .isToday{outline:none}.streakDates .future{opacity:.3}
.streakSectionTitle{font-size:18px;margin:26px 0 12px}.streakMilestone{border:2px solid var(--border);border-radius:18px;padding:16px}.streakMilestone>div:first-child{display:flex;align-items:center;gap:12px}.streakMilestone>div>.uiIcon{width:42px;height:42px}.streakMilestone strong,.streakMilestone small{display:block}.streakMilestone strong{font-size:18px}.streakMilestone small{font-size:12px;color:var(--muted);margin-top:4px}.streakMilestone progress{width:100%;height:10px;margin:18px 0 12px;border:0;border-radius:12px;overflow:hidden;background:var(--border);accent-color:var(--green)}.streakMilestone progress::-webkit-progress-bar{background:var(--border)}.streakMilestone progress::-webkit-progress-value{background:var(--green);border-radius:12px}.streakMilestoneMarks{display:flex;justify-content:space-between;gap:12px}.streakMilestoneMarks span{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.streakMilestoneMarks .uiIcon{width:20px;height:20px;opacity:.4}.streakMilestoneMarks .reached{color:var(--green)}.streakMilestoneMarks .reached .uiIcon{opacity:1}
.streakProtection{display:flex;width:100%;text-align:left;align-items:center;gap:14px;border:2px solid var(--border);border-radius:18px;padding:17px;background:var(--surface,var(--bg));box-shadow:none}.streakProtection>.uiIcon:first-child{width:38px;height:38px;color:#88cde8;flex:none}.streakProtection>span{flex:1;min-width:0}.streakProtection strong,.streakProtection small{display:block}.streakProtection strong{font-size:14px}.streakProtection small{font-size:11px;color:var(--muted);margin-top:6px}.streakProtection>.uiIcon:last-child{width:20px;height:20px;flex:none}.streakFooter{padding:12px 22px 20px;background:var(--bg);border-top:2px solid var(--border)}.streakFooter .primary{width:100%;display:flex;justify-content:center;gap:16px;align-items:center;min-height:52px}.streakFooter .uiIcon{width:20px;height:20px}
.streakFriendsHero{text-align:center;padding:2px 0 18px}.streakFriendsHero img{width:125px;height:135px;object-fit:contain}.streakFriendsHero h2{font-size:23px;margin:12px 0 8px}.streakFriendsHero p,.streakEmpty{font-size:14px;color:var(--muted);line-height:1.6}.streakFriend{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--border)}.streakFriend .friendAvatar{width:44px;height:44px;flex:none}.streakFriend>strong{flex:1;overflow-wrap:anywhere;font-size:15px}.streakFriend>span:last-child{display:flex;gap:5px;align-items:center;color:#f49b79;font-weight:800}.streakFriend .uiIcon{width:23px;height:23px}.streakManage{width:100%;margin-top:18px}.streakManage>.uiIcon{width:19px;height:19px;vertical-align:middle}
@keyframes streakFlameIn{from{opacity:0;transform:scale(.7) rotate(-9deg)}to{opacity:1;transform:none}}
@media(max-width:760px){input,select,textarea{font-size:max(16px,1em)}#modal.streakMode{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border-radius:0;border:0}.streakSheet{height:100dvh;max-height:none}.streakHeader{padding-top:calc(12px + env(safe-area-inset-top))}.streakFooter{padding-bottom:max(18px,env(safe-area-inset-bottom))}}
@media(max-width:360px){.streakContent{padding:18px 16px 24px}.streakHero strong{font-size:58px}.streakHero>.uiIcon{width:78px;height:95px}.streakHero p{font-size:12px}.streakMonthStats>span{padding:10px}.streakMonthTitle h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.streakHero>.uiIcon{animation:none}}

.streakHeader,.streakFooter{width:100%;max-width:none;margin:0;flex-shrink:0}.streakHeader{height:auto;border:0}.streakFooter{display:block}.streakDates>span{width:34px;max-width:100%;justify-self:center}#streakPrev .uiIcon{transform:rotate(180deg)}
