/* Monthly attendance UI inside /uu-dai.
   Touch controls work with a single tap; pinch-to-zoom remains available. */
html.month-preview,html.month-preview body{touch-action:manipulation}
html.month-preview button,html.month-preview a{touch-action:manipulation}
html.month-preview body{max-width:100%;overflow-x:clip}
html.month-preview .monthly-heading,
html.month-preview .monthly-checkin,
html.month-preview .monthly-calendar-wrap{min-width:0;max-width:100%}
html.month-preview #monthlyCheckin{display:block}
html.month-preview #streakCard{display:none}
.monthly-checkin{
  margin:16px 0 12px;padding:19px 21px 20px;
  border-radius:17px;background:linear-gradient(180deg,#fff9f4 0%,#fff 35%);
  border:1px solid #f4dccd;box-shadow:0 6px 25px #ad794211;color:#283049;
  scroll-margin-top:75px
}
.monthly-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px}
.monthly-heading-copy{min-width:0}
.monthly-eyebrow{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:900;letter-spacing:.7px;color:#b95635}
.monthly-eyebrow-dot{width:6px;height:6px;background:#f87926;border-radius:50%}
.monthly-heading h2{font-size:27px;letter-spacing:-.7px;line-height:1.2;color:#a91f31;margin:7px 0 4px;font-weight:950}
.monthly-heading h2 span{color:#f47722}
.monthly-heading-copy p{font-size:12px;line-height:1.45;color:#817a84;margin:0}
.monthly-overview{min-width:172px;display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #ffe3cc;background:#fff0e4;border-radius:13px}
.monthly-overview-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#fff8ed;font-size:19px}
.monthly-overview span{font-size:11px;color:#b07b69;display:block}
.monthly-overview strong{display:block;margin-top:2px;font-size:19px;color:#bd2a33;line-height:1.15}
.monthly-overview strong span{display:inline;font-size:19px;color:#bd2a33}
.monthly-preview-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;margin:0 0 12px;border:1px dashed #edcfb8;background:#fff8ec;border-radius:10px}
.monthly-preview-switch>span{font-size:11px;color:#a66d4d;line-height:1.4}
.monthly-preview-switch strong{color:#ae4d2c}
.monthly-mode-toggle{flex-shrink:0;display:flex;gap:2px;background:#fff;border:1px solid #f1d8c5;padding:3px;border-radius:9px}
.monthly-mode-toggle button{padding:6px 10px;border:0;border-radius:6px;background:none;color:#8e8080;font-size:11px;font-weight:800;white-space:nowrap}
.monthly-mode-toggle button.selected{background:#fff0e5;color:#d95222}
.monthly-grid-layout{display:grid;grid-template-columns:minmax(0,1.88fr) minmax(260px,.85fr);gap:12px;align-items:stretch}
.monthly-calendar-wrap{border:1px solid #eee2da;background:#fff;border-radius:13px;padding:13px}
.monthly-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.monthly-month-chooser{display:flex;align-items:center;gap:12px}
.monthly-month-chooser button{width:30px;height:29px;border:1px solid #eee0d8;background:#fffaf7;border-radius:9px;font-size:23px;line-height:1;font-weight:500;color:#b55f33}
.monthly-month-chooser button:disabled{opacity:.35}
.monthly-month-chooser strong{font-size:15px;color:#273044;min-width:108px;text-align:center}
.monthly-calendar-head>span{font-size:10px;color:#9a8a88}
.monthly-calendar-days,.monthly-calendar-cells{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.monthly-calendar-days{margin-bottom:5px}
.monthly-calendar-days span{text-align:center;background:#f9f5f2;border-radius:6px;color:#706e78;font-size:10px;font-weight:750;padding:7px 1px}
.monthly-calendar-cells{align-content:start}
.monthly-day{
  position:relative;min-width:0;min-height:73px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:5px;border:1px solid #f0e8e2;border-radius:10px;background:#fffdfb;
  color:#303044;padding:6px 2px;transition:background .15s,border-color .15s
}
.monthly-day:not(:disabled){cursor:pointer}
.monthly-day:not(:disabled):hover{border-color:#fba56d;background:#fff8f2}
.monthly-day.empty{border-color:transparent;background:transparent;pointer-events:none}
.monthly-day .day-number{position:absolute;top:5px;left:7px;font-size:10px;font-weight:800;color:#555469}
.monthly-day .day-symbol{font-size:18px;line-height:1.1;color:#efa83c;min-height:21px}
.monthly-day .day-caption{font-size:10px;color:#968e91;line-height:1.1;white-space:nowrap}
.monthly-day.done{background:#f4faef;border-color:#d8edd0}
.monthly-day.done .day-symbol{color:#3e9a4b}
.monthly-day.done .day-caption{color:#348142;font-weight:850}
.monthly-day.today{background:#fff5e9;border-color:#f98a36;box-shadow:inset 0 0 0 1px #ffab62}
.monthly-day.today .day-number{color:#c14c22}
.monthly-day.today::after{content:"Hôm nay";position:absolute;top:-1px;right:-1px;background:#fc7524;color:#fff;border-radius:0 10px 0 7px;padding:2px 5px;font-size:8px;font-weight:800}
.monthly-day.future{background:#fbfaf9;color:#a4a0a1}
.monthly-day.future .day-symbol{color:#cdc8c5}
.monthly-day.future .day-caption{color:#c2b9b7}
.monthly-day.missed .day-symbol{color:#bdb2ac}
.monthly-day.selected{outline:2px solid #f49b56;outline-offset:1px}
.monthly-day:focus-visible{outline:3px solid #ef802e;outline-offset:1px}
.monthly-legend{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #f4eae3}
.monthly-legend span{display:inline-flex;align-items:center;gap:5px;color:#94868a;font-size:10px}
.monthly-legend-dot{width:10px;height:10px;border-radius:50%}
.monthly-legend-dot.checked{background:#74c883}.monthly-legend-dot.today{background:#f98830}.monthly-legend-dot.missed{background:#d9d4d0}
.monthly-side{display:flex;flex-direction:column;gap:10px;min-width:0}
.monthly-side-summary,.monthly-milestones,.monthly-claim{padding:13px;border:1px solid #f0e3da;background:#fff;border-radius:12px}
.monthly-side-small{font-size:11px;color:#8c7d7d;font-weight:800}
.monthly-side-numbers{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-top:6px}
.monthly-side-numbers strong{font-size:30px;color:#ca3b28;line-height:1}
.monthly-side-numbers span{font-size:11px;color:#856f6a;white-space:nowrap}
.monthly-progress-track{margin-top:12px;height:8px;overflow:hidden;border-radius:10px;background:#f2eeec}
.monthly-progress{height:100%;width:0;background:linear-gradient(90deg,#ffab44,#f45d34);border-radius:10px;transition:width .2s}
.monthly-side-summary p{font-size:11px;color:#8f8282;line-height:1.45;margin:10px 0 0;min-height:29px}
.monthly-milestone-header{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:9px}
.monthly-milestone-header h3{font-size:12px;color:#35405b;margin:0}
.monthly-milestone-header>span{font-size:10px;color:#b86a43;background:#fff3e8;padding:3px 6px;border-radius:6px}
.monthly-milestone-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.monthly-milestone{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;min-width:0;padding:7px 2px;border:1px solid #f1e4da;border-radius:9px;background:#fffdfa;min-height:79px}
.monthly-milestone .milestone-icon{font-size:20px;line-height:1.25;filter:saturate(.7)}
.monthly-milestone strong{font-size:10px;white-space:nowrap;color:#5b5060}
.monthly-milestone small{font-size:9px;white-space:nowrap;color:#ac8f83}
.monthly-milestone.reached{background:#eff8f0;border-color:#c9e5cc}
.monthly-milestone.reached .milestone-icon{filter:none}
.monthly-milestones p{font-size:10px;color:#a0908c;line-height:1.4;margin:9px 0 0}
.monthly-claim{margin-top:auto;background:#fff9f5}
.monthly-claim button{width:100%;min-height:43px;border-radius:10px;border:0;background:linear-gradient(110deg,#ff9631,#ff5b3d);color:#fff;font-weight:900;font-size:12px}
.monthly-claim button:disabled{background:#f2eeec;color:#a5a0a0}
.monthly-claim p{font-size:10px;color:#988883;text-align:center;margin:8px 0 0;line-height:1.4}
@media(max-width:980px){
 .monthly-grid-layout{grid-template-columns:minmax(0,1fr)}
 .monthly-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:stretch}
 .monthly-claim{grid-column:1/-1}
}
@media(max-width:780px){
 .monthly-checkin{margin:12px 0 9px;padding:13px 10px;border-radius:14px}
 .monthly-heading{align-items:flex-start;margin-bottom:10px;gap:5px}
 .monthly-eyebrow{font-size:8px;letter-spacing:.3px}
 .monthly-heading h2{font-size:22px;margin:5px 0 4px}
 .monthly-heading-copy p{font-size:10px;line-height:1.45}
 .monthly-overview{min-width:94px;gap:5px;padding:8px 7px;border-radius:9px}
 .monthly-overview-icon{display:none}
 .monthly-overview span{font-size:9px}
 .monthly-overview strong,.monthly-overview strong span{font-size:14px}
 .monthly-preview-switch{flex-direction:column;align-items:stretch;padding:7px 9px;gap:7px}
 .monthly-preview-switch>span{font-size:9.5px}
 .monthly-mode-toggle{align-self:flex-start}
 .monthly-mode-toggle button{font-size:10px;padding:5px 9px}
 .monthly-calendar-wrap{padding:8px 6px;border-radius:11px}
 .monthly-month-chooser{gap:7px}
 .monthly-month-chooser button{width:26px;height:27px;font-size:20px}
 .monthly-month-chooser strong{min-width:105px;font-size:13px}
 .monthly-calendar-head>span{font-size:9px;max-width:90px;text-align:right}
 .monthly-calendar-days,.monthly-calendar-cells{gap:3px}
 .monthly-calendar-days span{font-size:9px;padding:5px 0;border-radius:5px}
 .monthly-day{min-height:55px;gap:3px;padding:5px 1px;border-radius:7px}
 .monthly-day .day-number{top:3px;left:4px;font-size:9px}
 .monthly-day .day-symbol{font-size:15px;min-height:17px}
 .monthly-day .day-caption{font-size:8px}
 .monthly-day.today::after{font-size:7px;padding:2px 3px;border-radius:0 7px 0 5px}
 .monthly-legend{margin-top:9px;gap:10px;padding-top:8px}
 .monthly-legend span{font-size:9px}
 .monthly-side{grid-template-columns:minmax(0,1fr);gap:8px}
 .monthly-side-summary,.monthly-milestones,.monthly-claim{padding:11px}
 .monthly-side-numbers strong{font-size:24px}
 .monthly-side-summary p{min-height:0}
 .monthly-milestone{min-height:67px}
 .monthly-milestone .milestone-icon{font-size:19px}
}
@media(max-width:370px){
 .monthly-heading h2{font-size:19px}
 .monthly-calendar-wrap{padding:7px 4px}
 .monthly-calendar-days,.monthly-calendar-cells{gap:2px}
 .monthly-day{min-height:50px}
 .monthly-day .day-symbol{font-size:14px}
 .monthly-day .day-caption{font-size:7px}
}

/* Entry point to the monthly design from the existing prize wheel. */
html.month-preview .monthly-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#c65429;font-size:11px;font-weight:800;margin:10px auto 0;padding:6px 13px;border:1px solid #f1d4be;background:#fffaf4;border-radius:100px}
html.month-preview .monthly-shortcut:hover{background:#fff0df}
html.month-preview .how-card{display:none}
html.month-preview #monthlyCheckin{scroll-margin-top:calc(64px + var(--lovu-safe-top,0px))}

/* Compact monthly-first layout • mockup v2.  No changes to the production website. */
html.month-preview body{background:#fff9f5}
html.month-preview .content-layout{
  display:grid;grid-template-columns:minmax(0,1.82fr) minmax(305px,.96fr);
  align-items:start;gap:12px
}
html.month-preview .content-layout>.monthly-checkin{order:0}
html.month-preview .monthly-wheel-column{display:flex;flex-direction:column;gap:8px;min-width:0;order:1}
html.month-preview .monthly-checkin{margin:0;padding:13px 14px;border-radius:15px;min-width:0}
html.month-preview .monthly-heading{gap:7px;margin:0 0 6px;align-items:center}
html.month-preview .monthly-heading h2{font-size:24px;margin:2px 0 0;white-space:nowrap;letter-spacing:-.6px}
html.month-preview .monthly-heading-copy>p{display:none}
html.month-preview .monthly-eyebrow{font-size:9px;letter-spacing:.15px}
html.month-preview .monthly-overview{min-width:113px;padding:5px 9px;gap:4px;border-radius:9px}
html.month-preview .monthly-overview-icon{display:none}
html.month-preview .monthly-overview span{font-size:9px}
html.month-preview .monthly-overview strong,
html.month-preview .monthly-overview strong span{font-size:14px;white-space:nowrap}
html.month-preview .monthly-preview-switch{
  min-height:30px;border:0;background:#fffaf6;padding:3px 7px;margin-bottom:7px;
  border-radius:7px;gap:6px
}
html.month-preview .monthly-preview-switch>span{font-size:9px;line-height:1.35}
html.month-preview .monthly-mode-toggle{padding:1px;gap:0}
html.month-preview .monthly-mode-toggle button{padding:5px 8px;font-size:9px}
html.month-preview .monthly-side-summary{
  display:grid;grid-template-columns:auto minmax(70px,1fr) auto;
  align-items:center;gap:5px 10px;
  margin:0 0 8px;padding:7px 10px;border-radius:8px;border:1px solid #f2e8df;background:#fff9f5
}
html.month-preview .monthly-side-small{font-size:10px;font-weight:800}
html.month-preview .monthly-side-numbers{display:flex;justify-content:flex-end;gap:6px;margin:0;grid-column:3;grid-row:1}
html.month-preview .monthly-side-numbers strong{font-size:16px}
html.month-preview .monthly-side-numbers span{font-size:9px}
html.month-preview .monthly-progress-track{grid-row:1;grid-column:2;margin:0;height:6px}
html.month-preview .monthly-side-summary p{grid-column:1/-1;grid-row:2;margin:0;min-height:0;font-size:9px;line-height:1.3;max-height:2.6em;overflow:hidden}
html.month-preview .monthly-grid-layout{display:flex;flex-direction:column;gap:7px;align-items:stretch}
html.month-preview .monthly-calendar-wrap{padding:8px;border-radius:10px;min-width:0}
html.month-preview .monthly-calendar-head{margin:0 0 6px}
html.month-preview .monthly-month-chooser{gap:7px}
html.month-preview .monthly-month-chooser button{width:26px;height:26px;font-size:20px;border-radius:7px}
html.month-preview .monthly-month-chooser strong{font-size:13px;min-width:92px}
html.month-preview .monthly-calendar-controls{display:flex;align-items:center;gap:7px}
html.month-preview .monthly-calendar-controls>span{font-size:9px;color:#988985}
html.month-preview .monthly-expand{display:none;border:1px solid #ffd4bc;background:#fff6ee;border-radius:7px;font-size:10px;color:#b65229;font-weight:800;padding:5px 7px;white-space:nowrap}
html.month-preview .monthly-calendar-days,
html.month-preview .monthly-calendar-cells{gap:3px}
html.month-preview .monthly-calendar-days{margin-bottom:3px}
html.month-preview .monthly-calendar-days span{padding:4px 1px;font-size:9px}
html.month-preview .monthly-day{min-height:48px;gap:1px;padding:4px 1px;border-radius:7px}
html.month-preview .monthly-day .day-number{top:3px;left:5px;font-size:9px}
html.month-preview .monthly-day .day-symbol{font-size:15px;line-height:1;min-height:16px;margin-top:7px}
html.month-preview .monthly-day .day-caption{font-size:9px;line-height:1.1;min-height:10px}
html.month-preview .monthly-day:not(.done):not(.today) .day-caption{visibility:hidden}
html.month-preview .monthly-day.outside{background:#faf8f6;border:1px dashed #f3eeec}
html.month-preview .monthly-day.outside .day-number{color:#cec5c0}
html.month-preview .monthly-day.outside .day-symbol,
html.month-preview .monthly-day.outside .day-caption{visibility:hidden}
html.month-preview .monthly-day.future{background:#fcfaf8}
html.month-preview .monthly-day.today::after{font-size:7px;padding:2px 3px}
html.month-preview .monthly-legend{gap:9px;margin-top:6px;padding-top:7px}
html.month-preview .monthly-legend span{font-size:9px}
html.month-preview .monthly-legend-dot{width:8px;height:8px}
html.month-preview .monthly-side{
  display:grid;grid-template-columns:minmax(0,1fr) 153px;align-items:stretch;gap:8px
}
html.month-preview .monthly-milestones,
html.month-preview .monthly-claim{min-width:0;margin:0;padding:8px;border-radius:9px}
html.month-preview .monthly-milestone-header{margin-bottom:5px}
html.month-preview .monthly-milestone-header h3{font-size:10px}
html.month-preview .monthly-milestone-header>span{font-size:8px;padding:2px 5px}
html.month-preview .monthly-milestone-list{gap:4px}
html.month-preview .monthly-milestone{min-height:46px;gap:0;padding:3px 1px;border-radius:7px}
html.month-preview .monthly-milestone .milestone-icon{font-size:13px}
html.month-preview .monthly-milestone strong{font-size:9px}
html.month-preview .monthly-milestone small{font-size:8px}
html.month-preview .monthly-milestones>p{font-size:8px;line-height:1.3;margin:5px 0 0;max-height:2.6em;overflow:hidden}
html.month-preview .monthly-claim{display:flex;flex-direction:column;justify-content:center;gap:5px;background:#fff9f5}
html.month-preview .monthly-claim button{min-height:35px;font-size:10px;border-radius:8px;line-height:1.2;padding:5px 7px}
html.month-preview .monthly-claim p{font-size:8px;margin:0;line-height:1.35}
html.month-preview .monthly-wheel-column .hero{
  min-height:0;width:100%;padding:10px 12px 10px;border-radius:14px
}
html.month-preview .monthly-wheel-column .hero-badge{font-size:8px;padding:4px 9px}
html.month-preview .monthly-wheel-column .hero h1{font-size:clamp(22px,2.55vw,28px);white-space:nowrap;letter-spacing:-.7px;margin:3px 0}
html.month-preview .monthly-wheel-column .hero-sub{font-size:10px}
html.month-preview .monthly-wheel-column .wheel-scene{
  max-width:218px;width:min(100%,218px);margin:6px auto 0
}
html.month-preview .monthly-wheel-column .wheel-pointer{width:30px;height:41px}
html.month-preview .monthly-wheel-column .podium{height:13px;margin:-11px auto 0}
html.month-preview .monthly-wheel-column .podium::before{height:15px;top:-7px}
html.month-preview .monthly-wheel-column .hero-action{
  min-height:35px;min-width:0;width:min(100%,240px);font-size:11px;margin:6px auto 0;
  padding:5px 10px;gap:6px
}
html.month-preview .monthly-wheel-column .hero-action svg{width:17px;height:17px}
html.month-preview .monthly-wheel-column .hero-action .action-arrow{font-size:15px}
html.month-preview .monthly-wheel-column .hero-note{font-size:8px;margin:7px 0 0}
html.month-preview .monthly-wheel-column .monthly-shortcut{display:none}
html.month-preview .monthly-wheel-column .side{gap:8px}
html.month-preview .monthly-wheel-column .turn-card{padding:10px 12px}
html.month-preview .monthly-wheel-column .turn-main{margin:2px 0}
html.month-preview .monthly-wheel-column .big-count{font-size:32px}
html.month-preview .monthly-wheel-column .big-count small{font-size:11px}
html.month-preview .monthly-wheel-column .turn-desc{font-size:10px;margin:2px 0;line-height:1.35}
html.month-preview .monthly-wheel-column .claim,
html.month-preview .monthly-wheel-column .claim-help{display:none}
html.month-preview .monthly-wheel-column .history-card{padding:9px 12px}
html.month-preview .monthly-wheel-column .history-card .section-top{gap:5px}
html.month-preview .monthly-wheel-column .history-card h2{font-size:11px}
html.month-preview .monthly-wheel-column .history-items{margin-top:4px;max-height:46px}
html.month-preview .monthly-wheel-column .history-row{font-size:9px;min-height:22px}
html.month-preview .how-card,
html.month-preview #streakCard{display:none}
html.month-preview main>.help-footer{margin:7px 0 0;font-size:9px}
html.month-preview .voucher-section{margin-top:10px}
@media(max-width:960px) and (min-width:781px){
 html.month-preview .content-layout{grid-template-columns:minmax(0,1.65fr) minmax(275px,.96fr)}
 html.month-preview .monthly-side{grid-template-columns:minmax(0,1fr);gap:6px}
 html.month-preview .monthly-milestone{min-height:42px}
 html.month-preview .monthly-claim{min-height:47px}
 html.month-preview .monthly-claim p{display:none}
 html.month-preview .monthly-wheel-column .wheel-scene{max-width:196px}
}
@media(max-width:780px){
 html.month-preview main{padding-top:8px}
 html.month-preview .content-layout{display:flex;flex-direction:column;gap:8px}
 html.month-preview .monthly-checkin{margin:0;padding:10px 9px;width:100%}
 html.month-preview .monthly-heading{align-items:center;gap:7px;margin-bottom:6px}
 html.month-preview .monthly-eyebrow{font-size:7.5px;letter-spacing:0}
 html.month-preview .monthly-heading h2{font-size:clamp(17px,5.3vw,20px);letter-spacing:-.5px;white-space:normal;overflow-wrap:break-word}
 html.month-preview .monthly-overview{min-width:0;flex:0 0 auto;max-width:100px;padding:5px 7px}
 html.month-preview .monthly-overview strong,
 html.month-preview .monthly-overview strong span{font-size:13px}
 html.month-preview .monthly-preview-switch{padding:4px 5px;margin-bottom:6px;min-height:27px;gap:5px}
 html.month-preview .monthly-preview-switch>span{font-size:8px}
 html.month-preview .monthly-mode-toggle button{padding:4px 5px;font-size:9px}
 html.month-preview .monthly-side-summary{
   padding:5px 7px;grid-template-columns:auto minmax(25px,1fr) auto;
   gap:4px 6px;margin-bottom:6px
 }
 html.month-preview .monthly-side-small{font-size:9px}
 html.month-preview .monthly-side-numbers strong{font-size:14px}
 html.month-preview .monthly-side-numbers span{font-size:8px}
 html.month-preview .monthly-side-summary p{font-size:8px;max-height:1.3em;white-space:nowrap;text-overflow:ellipsis}
 html.month-preview .monthly-calendar-wrap{padding:6px}
 html.month-preview .monthly-calendar-head{margin-bottom:5px}
 html.month-preview .monthly-month-chooser{gap:4px}
 html.month-preview .monthly-month-chooser button{width:23px;height:24px}
 html.month-preview .monthly-month-chooser strong{font-size:12px;min-width:95px}
 html.month-preview .monthly-calendar-controls>span{display:none}
 html.month-preview .monthly-expand{display:inline-flex;padding:5px 7px;font-size:9px}
 html.month-preview .monthly-calendar-days,
 html.month-preview .monthly-calendar-cells{gap:3px}
 html.month-preview .monthly-calendar-days span{padding:4px 0;font-size:8px}
 html.month-preview .monthly-day{min-height:55px;padding:4px 1px}
 html.month-preview .monthly-day .day-number{left:3px;font-size:8px}
 html.month-preview .monthly-day .day-symbol{font-size:15px;min-height:16px}
 html.month-preview .monthly-day .day-caption{font-size:8px}
 html.month-preview .monthly-legend{gap:8px;padding-top:6px}
 html.month-preview .monthly-legend span{font-size:8px}
 html.month-preview .monthly-side{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
 html.month-preview .monthly-milestones{padding:7px}
 html.month-preview .monthly-milestone-list{gap:4px}
 html.month-preview .monthly-milestone{min-height:46px}
 html.month-preview .monthly-milestones>p{font-size:8px;margin-top:4px}
 html.month-preview .monthly-claim{padding:5px 7px}
 html.month-preview .monthly-claim button{min-height:36px;font-size:11px}
 html.month-preview .monthly-claim p{font-size:8px}
 html.month-preview .monthly-wheel-column{width:100%;gap:7px}
 html.month-preview .monthly-wheel-column .hero{padding:9px 10px 10px;min-height:0}
 html.month-preview .monthly-wheel-column .hero h1{font-size:clamp(22px,6vw,26px)}
 html.month-preview .monthly-wheel-column .wheel-scene{max-width:178px;width:min(54vw,178px)}
 html.month-preview .monthly-wheel-column .hero-action{min-height:34px;width:min(88%,230px)}
 html.month-preview .monthly-wheel-column .side{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 html.month-preview .monthly-wheel-column .turn-card{padding:8px}
 html.month-preview .monthly-wheel-column .turn-card h2{font-size:10px}
 html.month-preview .monthly-wheel-column .big-count{font-size:26px}
 html.month-preview .monthly-wheel-column .big-count small{font-size:9px}
 html.month-preview .monthly-wheel-column .ticket-graphic{width:30px;height:28px}
 html.month-preview .monthly-wheel-column .ticket-graphic .gold-coin{width:23px;height:23px}
 html.month-preview .monthly-wheel-column .turn-desc{font-size:9px}
 html.month-preview .monthly-wheel-column .history-card{padding:8px}
 html.month-preview .monthly-wheel-column .history-card h2{font-size:10px}
 html.month-preview .monthly-wheel-column .history-card .more-link{font-size:9px}
 html.month-preview .monthly-wheel-column .history-items{max-height:70px}
 html.month-preview .monthly-wheel-column .history-row{grid-template-columns:minmax(0,1fr) 12px auto;font-size:8px;padding:2px}
 html.month-preview .monthly-wheel-column .history-row .coin-small{width:11px}
 html.month-preview main>.help-footer{font-size:8px;margin-top:7px}
}
@media(max-width:370px){
 html.month-preview .monthly-heading h2{font-size:18px}
 html.month-preview .monthly-overview{min-width:80px}
 html.month-preview .monthly-month-chooser strong{min-width:83px;font-size:11px}
 html.month-preview .monthly-expand{padding:4px;font-size:8px}
 html.month-preview .monthly-calendar-days,.monthly-calendar-cells{gap:2px}
 html.month-preview .monthly-day{min-height:51px}
 html.month-preview .monthly-mode-toggle button{font-size:8px}
}


/* Continuous-streak gift preview: 7-day voucher/freeship, 14-day cable. */
html.month-preview .monthly-eyebrow{color:#9f4a26}
html.month-preview .streak-preview-presets{
  display:flex;align-items:center;gap:6px;
  padding:6px 9px;margin:0 0 8px;
  border:1px solid #f3dfd0;border-radius:9px;background:#fffdfa;min-height:34px
}
html.month-preview .streak-preview-presets[hidden]{display:none}
html.month-preview .streak-preview-presets>span{font-weight:850;font-size:10px;color:#906e60;white-space:nowrap}
html.month-preview .streak-preview-presets small{font-size:9px;color:#a7968d;margin-left:auto;text-align:right}
html.month-preview .streak-preset{
  padding:5px 9px;font-size:9.5px;line-height:1.1;font-weight:850;
  border-radius:7px;border:1px solid #f1d9c7;background:#fff;color:#9b7665;white-space:nowrap
}
html.month-preview .streak-preset.selected{
  background:#fff0e2;color:#d25923;border-color:#ffb983
}
html.month-preview .monthly-side-summary{background:#fff7f2}
html.month-preview .monthly-side-summary .monthly-side-numbers strong{
  font-size:13px;white-space:nowrap
}
html.month-preview .monthly-side-numbers span{font-size:9px;color:#c04d2b;white-space:nowrap;font-weight:800}
html.month-preview .monthly-side-summary p{font-size:9px;color:#826b64}
html.month-preview .monthly-milestone{
  position:relative;cursor:pointer;
  background:#fffdfb;transition:background .15s,border-color .15s,box-shadow .15s;
  justify-content:center;gap:2px;min-height:67px
}
html.month-preview .monthly-milestone .milestone-icon{font-size:17px;line-height:1.25;filter:none}
html.month-preview .monthly-milestone small{
  font-size:9px;color:#8d7371;white-space:normal;line-height:1.15;
  min-height:19px;display:flex;align-items:center;justify-content:center
}
html.month-preview .monthly-milestone strong{font-size:10px}
html.month-preview .monthly-milestone .milestone-status{
  font-size:8px;color:#a3918a;font-weight:800;
  white-space:nowrap;line-height:1.25
}
html.month-preview .monthly-milestone:hover{border-color:#eeb38f;box-shadow:0 2px 8px #c4853120}
html.month-preview .monthly-milestone:focus-visible{outline:2px solid #d77736}
html.month-preview .monthly-milestone.reached:not(.received){
  background:#fff5e9;border:1px solid #f4b774;box-shadow:inset 0 0 0 1px #fcd2ae
}
html.month-preview .monthly-milestone.reached .milestone-status{color:#d05c22}
html.month-preview .monthly-milestone.received{
  background:#f1faf0;border:1px solid #bfe6c4
}
html.month-preview .monthly-milestone.received .milestone-status{color:#2e9853}
html.month-preview .monthly-milestone.coming-soon{opacity:.72}
html.month-preview .monthly-milestones>p{color:#967d70}
html.month-preview .monthly-calendar-cells .monthly-day.done .day-caption{font-weight:850;color:#408352}
html.month-preview .monthly-calendar-cells .monthly-day.done .day-symbol{font-size:20px}
html.month-preview .monthly-claim button{font-weight:900}
.streak-gift-overlay[hidden]{display:none!important}
.streak-gift-overlay{
  position:fixed;inset:0;z-index:90;display:flex;
  justify-content:center;align-items:center;
  padding:max(18px,env(safe-area-inset-top,0px)) 13px max(18px,env(safe-area-inset-bottom,0px));
  background:#251b1899;backdrop-filter:blur(3px)
}
.streak-gift-dialog{
  width:min(100%,410px);max-height:min(90dvh,690px);overflow:auto;
  border:1px solid #f5dac6;box-shadow:0 16px 50px #160b0b38;
  border-radius:17px;padding:18px;background:#fffdfb;color:#313047
}
.streak-gift-head{display:flex;align-items:center;gap:9px}
.streak-gift-large-icon{
  width:51px;height:51px;display:grid;place-items:center;flex-shrink:0;
  border-radius:12px;background:#fff1e4;font-size:27px
}
.streak-gift-title-wrap{flex:1;min-width:0}
.streak-gift-title-wrap>small{display:block;font-size:10px;font-weight:900;letter-spacing:.6px;color:#bb734e}
.streak-gift-title-wrap>h2{font-size:20px;color:#b52333;margin:5px 0 0;line-height:1.2}
.streak-gift-close{
  border:1px solid #eee0d8;background:white;color:#786d6b;border-radius:8px;
  height:30px;width:30px;font-size:24px;line-height:1
}
.streak-gift-intro{font-size:12px;color:#887a75;line-height:1.5;margin:13px 0}
.streak-gift-choices{display:grid;grid-template-columns:1fr;gap:8px}
.streak-gift-choice{
  display:flex;align-items:center;gap:10px;width:100%;
  text-align:left;border:1px solid #eee0da;background:#fff;border-radius:12px;
  padding:11px;min-height:68px
}
.streak-gift-choice.chosen{background:#fff7ef;border:2px solid #f58a42;padding:10px}
.streak-gift-choice:disabled{opacity:.7}
.streak-choice-icon{font-size:25px;min-width:34px;text-align:center}
.streak-choice-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.streak-choice-copy strong{font-size:13px;color:#252d44}
.streak-choice-copy small{font-size:11px;color:#938787}
.streak-choice-check{color:#eb762c;font-weight:950;font-size:18px}
.streak-gift-product{display:flex;align-items:center;gap:10px;padding:14px 11px;background:#fff7ef;border-radius:12px;border:1px solid #f5dbc5}
.streak-product-illustration{font-size:37px;width:60px;text-align:center;flex-shrink:0}
.streak-product-copy{display:flex;flex-direction:column;gap:5px}
.streak-product-copy strong{font-size:14px;color:#a32f2d}
.streak-product-copy small{font-size:10.5px;color:#907e73;line-height:1.4}
.streak-gift-placeholder{padding:13px;background:#faf8f5;border-radius:9px;font-size:12px;color:#907c78}
.streak-gift-footer{margin-top:13px}
.streak-gift-primary{
  width:100%;min-height:45px;border:0;border-radius:10px;background:linear-gradient(95deg,#ff9a33,#ff5a35);
  font-size:13px;font-weight:950;color:#fff
}
.streak-gift-primary:disabled{background:#ebe9e7;color:#a4a0a0}
.streak-gift-footer p{font-size:10px;color:#a38b83;margin:9px 0 0;text-align:center;line-height:1.45}
.streak-preview-toast{
  position:fixed;z-index:110;left:50%;bottom:calc(74px + env(safe-area-inset-bottom,0px));
  transform:translate(-50%,12px);opacity:0;pointer-events:none;
  padding:12px 15px;white-space:normal;max-width:min(360px,calc(100vw - 20px));
  border-radius:10px;background:#292a34;color:#fff;font-size:12px;font-weight:700;line-height:1.4;
  box-shadow:0 8px 25px #0004;transition:opacity .18s,transform .18s
}
.streak-preview-toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:780px){
  html.month-preview .streak-preview-presets{flex-wrap:wrap;padding:6px 7px;gap:4px;min-height:30px}
  html.month-preview .streak-preview-presets>span{font-size:9px}
  html.month-preview .streak-preview-presets small{flex-basis:100%;font-size:8px;text-align:left}
  html.month-preview .streak-preset{padding:5px 6px;font-size:9px}
  html.month-preview .monthly-milestone{min-height:68px;gap:2px}
  html.month-preview .monthly-milestone .milestone-icon{font-size:18px}
  html.month-preview .monthly-milestone small{font-size:8px;line-height:1.2;min-height:19px}
  html.month-preview .monthly-milestone .milestone-status{font-size:7.5px}
  html.month-preview .monthly-side-numbers span{font-size:8px}
  .streak-gift-dialog{padding:15px;border-radius:14px}
  .streak-gift-title-wrap>h2{font-size:18px}
}



/* Real storefront: no preview controls, fake products, or admin form. */
html.month-preview:not(.month-demo) .monthly-preview-switch,
html.month-preview:not(.month-demo) .streak-preview-presets{display:none!important}
html.month-preview:not(.month-demo) .monthly-milestone-header>span{background:#f5f1ed;color:#847a75}
html.month-preview .monthly-shortcut{display:none!important}
\n/* Three-stage reward progression and account inbox */
html.month-preview .monthly-milestone-list{grid-template-columns:repeat(3,minmax(0,1fr))}
html.month-preview .monthly-my-gifts-link{display:flex;justify-content:center;gap:8px;align-items:center;
  padding:7px 8px;margin-top:9px;border:1px solid #ffd7bf;background:#fff6ed;
  border-radius:8px;font-size:10px;font-weight:850;color:#b94e22}
html.month-preview .monthly-my-gifts-link>span{font-size:15px}
