/* A calendar inside the sheet flow, so it never clips or escapes the mobile viewport. */
#sideCustomizerDrawer #paneVip { scroll-padding-block:74px 18px; }
#sideCustomizerDrawer #streakDateWrap { padding:16px; border-radius:24px; }
#sideCustomizerDrawer .streak-date-control { gap:0; padding:4px; border:1px solid var(--locket-ui-border); border-radius:18px; background:var(--locket-ui-card); transition:border-color .18s,box-shadow .18s; }
#sideCustomizerDrawer .streak-date-control:focus-within { border-color:var(--bs-primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--bs-primary) 10%,transparent); }
#sideCustomizerDrawer #streakDateText { flex:1; width:100%; min-width:0; height:44px; border:0; border-radius:14px; padding:8px 10px; outline:none; background:transparent; color:var(--locket-ui-text); font:500 16px/1.4 var(--locket-font-sans,var(--locket-font-family)); letter-spacing:0; box-shadow:none; }
#streakDateText::placeholder { color:var(--locket-ui-muted); opacity:1; }
#sideCustomizerDrawer .streak-date-control #streakCalendarToggle { width:40px; height:40px; margin:0; border-radius:13px; background:var(--locket-ui-raised); }
#streakCalendarToggle[aria-expanded="true"] { color:var(--locket-accent-text); }
.streak-calendar { margin-top:12px; padding:12px; border:1px solid var(--locket-ui-border); border-radius:22px; background:var(--locket-ui-card); color:var(--locket-ui-text); animation:streak-calendar-enter .18s ease-out; }
.streak-calendar[hidden],.streak-calendar [hidden] { display:none!important; }
.streak-calendar button { -webkit-tap-highlight-color:transparent; touch-action:manipulation; cursor:pointer; font-family:var(--locket-font-sans,var(--locket-font-family)); transition:background .15s,color .15s,transform .15s; }
.streak-calendar button:active:not(:disabled) { transform:scale(.94); }
.streak-calendar button:focus-visible,.streak-calendar input:focus-visible { outline:2px solid var(--bs-primary); outline-offset:2px; }
.streak-calendar-heading { display:grid; grid-template-columns:36px 1fr 36px; align-items:center; gap:6px; margin-bottom:12px; }
.streak-calendar-heading button { display:grid; place-items:center; min-height:36px; padding:4px; border:0; border-radius:12px; background:var(--locket-ui-raised); color:var(--locket-ui-text); }
.streak-calendar-heading #streakCalendarHeading { background:transparent; font-size:15px; font-weight:650; }
.streak-calendar-heading svg { width:18px; height:18px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.streak-calendar button:disabled { opacity:.3; cursor:default; }
.streak-weekdays,.streak-day-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.streak-weekdays { margin-bottom:6px; color:var(--locket-ui-muted); font:500 11px/28px var(--locket-font-sans,var(--locket-font-family)); text-align:center; }
.streak-day { position:relative; min-width:0; height:36px; padding:0; border:0; border-radius:12px; background:transparent; color:var(--locket-ui-text); font-size:13px; font-weight:500; font-variant-numeric:tabular-nums; }
.streak-day:hover:not(:disabled) { background:var(--locket-ui-raised); }
.streak-day.adjacent { opacity:.22; }
.streak-day.today::after { content:''; position:absolute; width:3px; height:3px; border-radius:50%; bottom:3px; left:calc(50% - 1.5px); background:var(--bs-primary); }
.streak-day[aria-pressed="true"],.streak-day[aria-pressed="true"]:hover { background:var(--bs-primary); color:var(--locket-accent-ink); font-weight:650; }
.streak-day[aria-pressed="true"]::after { background:currentColor; }
.streak-calendar-footer { display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding-top:10px; border-top:1px solid var(--locket-ui-border); }
.streak-calendar-footer span { display:flex; align-items:center; gap:6px; color:var(--locket-ui-muted); font-size:12px; }
.streak-calendar-footer i { width:4px; height:4px; background:var(--bs-primary); border-radius:50%; }
.streak-calendar-footer button { min-height:36px; padding:6px 14px; border:0; border-radius:12px; background:var(--locket-ui-raised); color:var(--locket-ui-text); font-size:13px; font-weight:600; }
.streak-year-label { display:flex; align-items:center; gap:12px; font-size:14px; color:var(--locket-ui-muted); }
.streak-year-label input { width:100%; min-width:0; height:42px; padding:8px 12px; border:1px solid var(--locket-ui-border); border-radius:12px; background:var(--locket-ui-raised); color:var(--locket-ui-text); font:500 16px var(--locket-font-sans,var(--locket-font-family)); }
.streak-year-hint { display:block; margin:8px 0 12px; font-size:12px; color:var(--locket-ui-muted); }
.streak-month-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.streak-month-grid button { min-height:40px; padding:6px; border:0; border-radius:12px; background:var(--locket-ui-raised); color:var(--locket-ui-text); font-size:12px; }
.streak-month-grid button[aria-pressed="true"] { background:var(--bs-primary); color:var(--locket-accent-ink); }
#sideCustomizerDrawer .streak-date-shortcuts { gap:6px; }
#sideCustomizerDrawer .streak-date-shortcuts button { flex:1; border:0; border-radius:12px; padding:8px; font-size:13px; }
@keyframes streak-calendar-enter { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:360px) { #sideCustomizerDrawer #streakDateWrap { padding:12px; } .streak-calendar { padding:8px; } .streak-weekdays,.streak-day-grid { gap:2px; } }
@media(prefers-reduced-motion:reduce) { .streak-calendar { animation:none; } .streak-calendar button { transition:none; } }
