/* StreakTokens.kt: the streak screen uses a white surface in light mode. */
.personal-streak-page,.streak-rules-sheet{--streak-surface:#fff;--streak-ink:#252b32;--streak-secondary:#646b76;font-family:BoardManrope,Arial,sans-serif;background:var(--streak-surface);color:var(--streak-ink)}
html[data-theme="dark"] .personal-streak-page,html[data-theme="dark"] .streak-rules-sheet{--streak-surface:var(--bg);--streak-ink:var(--ink);--streak-secondary:var(--muted)}
.personal-streak-page{max-width:680px;min-height:calc(100svh - 84px);padding:24px 40px 16px;margin:auto}
.personal-streak-heading{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin-bottom:16px}
.personal-streak-heading h1{grid-column:2;font:600 15px/23px BoardManrope,Arial,sans-serif;text-align:center;letter-spacing:0;margin:0}
.personal-streak-heading .icon-button{grid-column:3;color:var(--streak-secondary)}
.personal-streak-body{min-height:calc(100svh - 184px);display:flex;flex-direction:column;justify-content:space-between;gap:32px}
.streak-count-hero{display:flex;flex-direction:column;align-items:center;text-align:center}
.streak-flame{display:block;flex:none}
.streak-main-flame{width:76px;height:76px}
.streak-count-hero strong{font:600 44px/54px BoardManrope,Arial,sans-serif;letter-spacing:-1.5px;display:block;margin-top:16px}
.streak-count-hero>p{font-size:15px;line-height:23px;color:var(--streak-secondary);margin:0}
.streak-status{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:32px;margin-top:16px;padding:8px;border-radius:99px;background:var(--soft-primary);color:var(--soft-primary-ink);font-size:12px;line-height:16px;font-weight:600}
.streak-status .ui-icon{width:16px;height:16px}
.streak-milestone{margin-top:32px}
.streak-milestone>p{font-size:12px;line-height:16px;font-weight:600;margin:0 0 8px}
.streak-rainbow{height:48px;display:flex;align-items:center;width:100%}
.streak-checkpoint{display:grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid var(--checkpoint-color);border-radius:50%;background:var(--streak-surface)}
.streak-checkpoint.reached{background:var(--checkpoint-color)}
.streak-checkpoint .ui-icon{width:16px;height:16px;color:#fff}
.streak-connector{height:3px;flex:1;min-width:0;background:linear-gradient(to right,var(--from),var(--to));mask-image:repeating-linear-gradient(to right,#000 0 2px,transparent 2px 7px)}
.streak-connector.reached{mask-image:none}
.streak-finish{width:36px;height:36px;background:var(--streak-surface)}
.streak-milestone .streak-target{width:36px;text-align:center;margin:0 0 0 auto;color:var(--streak-secondary)}
.streak-calendar{margin-top:32px}
.streak-week-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.streak-week-heading h2{font-size:15px;line-height:23px;font-weight:600;margin:0}
.streak-week-heading p{font-size:12px;line-height:16px;font-weight:600;color:var(--streak-secondary);margin:0;text-align:right}
.streak-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.streak-calendar-day{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--streak-secondary);font-size:12px;line-height:16px;font-weight:600}
.streak-date{display:grid;place-items:center;width:36px;height:36px;padding:4px;border-radius:50%;position:relative}
.streak-date>span:first-child{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface-secondary)}
.streak-calendar-day.today .streak-date{outline:1px solid var(--orange);outline-offset:-1px}
.streak-calendar-day.complete .streak-date>span:first-child{background:var(--soft-primary);color:var(--soft-primary-ink)}
.streak-calendar-check{position:absolute;right:0;bottom:0;width:14px;height:14px;border:1px solid var(--streak-surface);border-radius:50%;background:#c74625;display:grid;place-items:center}
.streak-calendar-check .ui-icon{width:10px;height:10px;color:#fff}
.streak-encouragement{font-size:14px;line-height:20px;font-weight:500;color:var(--streak-secondary);text-align:center;margin:32px 0 0}
.streak-paused{background:var(--soft-primary);color:var(--soft-primary-ink);border-radius:19px;padding:16px;margin-top:24px}
.streak-paused h2{font-size:15px;line-height:23px;font-weight:600;margin:0}
.streak-paused button{font-size:14px;line-height:20px;font-weight:500;min-height:44px;padding:8px 0;color:inherit}
.personal-streak-footer{text-align:center;padding:8px 0}
.personal-streak-footer p{font-size:14px;line-height:20px;color:var(--streak-secondary);margin:0 0 8px}
.personal-streak-footer button{min-height:44px;padding:8px 16px;font-size:14px;line-height:20px;font-weight:500;color:var(--streak-secondary);border-radius:12px}
.personal-streak-page button:focus-visible,.streak-rules-sheet button:focus-visible{outline:3px solid var(--soft-primary-ink);outline-offset:3px}
.personal-streak-page button:hover,.streak-rules-sheet button:hover{background:var(--surface-secondary)}
.streak-workspace main{background:#fff}
html[data-theme="dark"] .streak-workspace main{background:var(--bg)}
.streak-rules-sheet{border:0;border-radius:24px;padding:32px 24px 16px;width:min(560px,calc(100% - 32px));max-height:calc(100svh - 48px);overflow-y:auto}
.streak-rules-sheet::backdrop{background:#14110f60}
.streak-rules-sheet h2{font:600 22px/29px BoardManrope,Arial,sans-serif;margin:0 0 16px}
.streak-rules-sheet p{font-size:15px;line-height:23px;color:var(--streak-secondary);margin:0 0 16px}
.streak-rules-sheet .streak-rules-note{font-size:14px;line-height:20px;font-weight:500}
.streak-rules-done{display:block;width:100%;min-height:48px;font-size:14px;font-weight:600;color:var(--soft-primary-ink);border-radius:12px}
@media(max-width:999px){.personal-streak-page{padding:16px 24px 88px;min-height:calc(100svh - 76px)}.personal-streak-body{min-height:calc(100svh - 236px)}.streak-rules-sheet{position:fixed;inset:auto 0 0;width:100%;max-width:680px;max-height:calc(100svh - 48px);margin:0 auto;border-radius:24px 24px 0 0;padding:64px 24px max(16px,env(safe-area-inset-bottom))}.streak-rules-sheet:before{content:'';position:absolute;top:22px;left:50%;width:32px;height:4px;margin-left:-16px;background:var(--streak-secondary);border-radius:4px}}

.streak-sidebar-flame{width:20px;height:20px}

.streak-placeholder{display:block;border-radius:12px;background:var(--surface-secondary);animation:streak-loading 1.5s ease-in-out infinite alternate}.streak-placeholder-count{width:150px;height:54px;margin-top:16px}.streak-placeholder-status{width:170px;height:32px;margin-top:16px;border-radius:99px}.streak-placeholder-range{width:105px;height:16px}.streak-placeholder-day{height:60px;width:36px;justify-self:center}.streak-loading-status{font-size:14px;line-height:20px;text-align:center;color:var(--streak-secondary);margin-top:32px}@keyframes streak-loading{to{opacity:.5}}@media(prefers-reduced-motion:reduce){.streak-placeholder{animation:none}}
