/* Dynamic ledger UI; same visual vocabulary, full-width six-column calendar. */
.mg-page .mg-calendar-layout{display:block}
.mg-page .mg-six-calendar{min-width:0}
.mg-page .mg-chapter{flex-wrap:wrap;gap:10px 24px}
.mg-page .mg-cal-grid,.mg-page .mg-weekdays{grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,1.05fr)}
.mg-page .mg-day{cursor:default;min-width:0}
.mg-page .mg-week-total{min-width:0;min-height:100px;padding:14px 12px;border-left:1px solid var(--mg-blue,#007aff);background:rgba(0,122,255,.065);display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.mg-page .mg-week-total>span,.mg-page .mg-week-total>small{font:9px/1.3 'JetBrains Mono',monospace;color:var(--mg-muted,#9da5ae)}
.mg-page .mg-week-total>b{font:500 clamp(15px,1.6vw,25px)/1.2 'Space Grotesk',sans-serif;overflow-wrap:anywhere}
.mg-page .mg-cal-switch{display:flex;gap:4px;margin-bottom:12px}
.mg-page .mg-cal-switch button{min-height:40px;padding:8px 14px;background:transparent;color:var(--mg-muted,#9da5ae);border:1px solid var(--mg-line,#25282b);font:500 10px 'JetBrains Mono',monospace;cursor:pointer}
.mg-page .mg-cal-switch button[aria-pressed=true]{border-color:var(--mg-blue,#007aff);color:var(--mg-text,#fefefe);background:rgba(0,122,255,.1)}
.mg-page .mg-cal-switch button:focus-visible{outline:2px solid var(--mg-blue,#007aff);outline-offset:3px}
.mg-page .mg-consistency-bottom{grid-template-columns:minmax(0,1fr)}
.mg-page .mg-month-bar.is-negative i{background:var(--mg-red,#fd0000)}
.mg-page .mg-month-bar.is-negative>span{color:var(--mg-red,#fd0000)}
.mg-page .mg-month-bars{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))}
.mg-page .mg-metrics [data-best-worst]{font-size:clamp(19px,2.3vw,35px)}
.mg-page .mg-offer-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
.mg-page .mg-offer-head .mg-brand-wordmark{width:min(205px,55%);height:auto;aspect-ratio:594.02/162.99;fill:var(--mg-text,#fefefe)}
.mg-page .mg-official-footer>.mg-brand-draw{position:static;inset:auto;transform:none;width:20%;height:auto;aspect-ratio:370.44/255.12;fill:var(--mg-blue,#007aff);flex:none}
.mg-page .mg-empty-results{padding:28px;color:var(--mg-muted,#9da5ae)}
.mg-page [data-results-update][data-error=true]{color:var(--mg-muted,#9da5ae)}
@media(max-width:680px){
 .mg-page .mg-cal-grid{gap:4px}
 .mg-page .mg-weekdays{gap:4px;font-size:7px}
 .mg-page .mg-day{min-height:76px;padding:8px 4px}
 .mg-page .mg-day>b{font-size:clamp(11px,3.1vw,18px);letter-spacing:-.04em}
 .mg-page .mg-day>span{font-size:8px}
 .mg-page .mg-week-total{min-height:76px;padding:8px 4px;gap:5px}
 .mg-page .mg-week-total>b{font-size:clamp(11px,3.1vw,18px);letter-spacing:-.04em}
 .mg-page .mg-week-total>span,.mg-page .mg-week-total>small{font-size:7px}
 .mg-page .mg-cal-toolbar{gap:18px}
 .mg-page .mg-offer-head{gap:10px}
 .mg-page .mg-official-footer>.mg-brand-draw{width:22%}
 .mg-page .mg-month-bars{grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:8px}
}
