/* One typography scale for the calculator, shared by light and dark themes. */
:root{--type-title:18px;--type-body:14px;--type-detail:12px;--type-net:24px;--copy-leading:1.6;--card-padding:20px;--item-gap:12px}
body.unified-flow{font-size:var(--type-body);line-height:var(--copy-leading)}
:root body.unified-flow :is(p,li,dt,dd,td,th){font-size:var(--type-body);line-height:var(--copy-leading)}
:root body.unified-flow :is(input,select,textarea,button,label,legend){font-size:var(--type-body)!important;line-height:1.5}
:root body.unified-flow :is(button,legend,label){font-weight:600!important}
:root body.unified-flow :is(h2,.panel>summary,#receiptSummaryFold>summary,.review-head h3,#calendarTitle,#dateEditorTitle){font-size:var(--type-title)!important;font-weight:700!important;line-height:1.5;color:var(--text)}
:root body.unified-flow :is(h3,h4,summary,.time-comparison-heading,.time-comparison-values,#forecastNextPaydayTitle){font-size:var(--type-body)!important;line-height:var(--copy-leading)}
:root body.unified-flow :is(.hint,small,.fold-brief,.setting-brief,.forecast-work-basis,.forecast-disclosure,.calendarBrief,.calendar .tag,.calendar .holiday-name,.calendar .work-hours,.eyebrow,.trend-value,.trend-months~p,.receipt-compare-table caption,#forecastChartLabel,#annualPeriod,#annualDetail>summary,#calendarFold #period,#calendarBrief,#salaryHoursNotice,#companyNotice,.result-badge,.detail-action){font-size:var(--type-detail)!important;font-weight:400!important;line-height:1.5;color:var(--muted)}
:root body.unified-flow :is(#annualSummary strong,#annualSummary b,#forecastList b,.annual-summary strong,.annual-summary b,.forecast-total-card strong,.forecast-next-figures strong,#total,#netTotal){font-size:var(--type-body)!important;line-height:1.5}
:root body.unified-flow #forecastFold #forecastNextPaydayNet{font-size:var(--type-net)!important;font-weight:700!important;line-height:1.4}
:root body.unified-flow :is(.panel,dialog.date-editor){padding:var(--card-padding)}
:root body.unified-flow .panel{margin-bottom:16px}
:root body.unified-flow :is(.panel>h2,.panel>summary){margin-bottom:12px}
:root body.unified-flow .panel>summary{padding-right:28px;position:relative}
:root body.unified-flow :is(.comparison-item,.condition-review){padding:14px;margin:12px 0;border-radius:10px}
.time-comparison{border:1px solid var(--border);border-radius:10px;padding:14px;margin:12px 0;background:var(--surface)}
.time-comparison-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.time-comparison-values{margin:8px 0 12px;color:var(--muted)}
.time-comparison-heading span{font-weight:600}
.date-selected-dates{display:flex;flex-wrap:wrap;gap:4px 8px;padding:10px 0;margin:0;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
:root body.unified-flow #calendarSelectionTools{gap:10px;min-height:48px}
:root body.unified-flow #calendarSelectionCount{font-size:var(--type-body)}
:root body.unified-flow .calendar .date{font-size:var(--type-body);line-height:1.5}
:root body.unified-flow .calendar .tag{max-width:100%;padding:3px 2px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){:root{--card-padding:16px}:root body.unified-flow .calendar{gap:4px}:root body.unified-flow .calendar .cell{padding:6px 3px;min-height:94px}:root body.unified-flow #forecastNextPayday .forecast-next-figures{grid-template-columns:1fr}:root body.unified-flow .receipt-compare-table{max-width:100%;overflow-x:auto}:root body.unified-flow .time-comparison{padding:12px}}
:root body.unified-flow :is(#workConditions,#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold,dialog.date-editor){padding:var(--card-padding)!important}
:root body.unified-flow details.panel:not([open])>summary{margin-bottom:0}
:root body.unified-flow .panel>summary h2{margin:0}
:root body.unified-flow #workConditions{gap:var(--item-gap)}
:root body.unified-flow :is(strong,b){font-weight:700!important}
:root body.unified-flow :is(.hint,small,.fold-brief,.setting-brief){font-weight:400}
.time-comparison-values{color:var(--text)}
.date-selected-dates span{display:inline-block;white-space:nowrap}

/* Primary card headers share the same inset, open or folded. */
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold)>summary{padding:0 32px 0 0!important;min-height:0!important;margin:0!important;gap:0!important;text-indent:0!important}
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold)>summary::before{display:none!important;content:none!important}
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold)>summary::after{right:2px!important;top:14px!important}
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#calendarFold)[open]>summary{margin-bottom:12px!important}
:root body.unified-flow #receiptSummaryFold>summary>*{margin-left:0!important}
:root body.unified-flow #workConditions>h2{margin:0!important;padding:0 32px 0 0!important}
:root body.unified-flow :is(#forecastFold,#calendarFold)>summary :is(h2,p){margin-left:0!important}
:root body.unified-flow #calendarFold[open]>:not(summary){margin-left:0!important;margin-right:0!important}
:root body.unified-flow #forecastFold>summary{display:block!important}
:root body.unified-flow #forecastFold .result-badge{display:none!important}
:root body.unified-flow #forecastFold #forecastBrief{display:none!important}
:root body.unified-flow #forecastFold #forecastNextPayday{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:14px 0 0!important}
:root body.unified-flow #forecastFold .forecast-next-heading{display:block;margin:0 0 12px}
:root body.unified-flow #forecastFold #forecastNextPaydayTitle{font-size:14px!important;font-weight:600!important;margin:0!important}
:root body.unified-flow #forecastFold #forecastNextPaydayWorkMonth{margin:4px 0 0!important}
:root body.unified-flow #forecastFold .forecast-next-figures{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
:root body.unified-flow #forecastFold .forecast-next-figures>div{display:flex!important;align-items:baseline;justify-content:space-between;gap:12px;border:0!important;background:transparent!important;padding:0!important}
:root body.unified-flow #forecastFold .forecast-next-figures strong{margin:0!important;letter-spacing:0!important}
:root body.unified-flow #forecastFold[open]>.forecast-tabs{margin-top:18px}
:root body.unified-flow #calendarPayMonth{font-size:12px!important;color:var(--muted)!important;margin:4px 0 0!important}
:root body.unified-flow #calendarFold #period{display:none!important}
:root body.unified-flow #calendarFold .calendar-month-nav{margin:12px 0!important;padding:0!important}
:root body.unified-flow #calendarFold .weekdays{margin-top:12px!important;margin-bottom:8px!important}
.attendance-review-prompt,.attendance-review-tools{padding:12px 0;border-bottom:1px solid var(--border);margin:0 0 12px;color:var(--text)}
.attendance-review-prompt p,.attendance-review-tools p{margin:0 0 10px}
#receiptTimePreview>summary{padding:8px 28px 8px 0;font-weight:600}
#receiptComparison[data-attendance=pending] .time-comparison{border-color:var(--border);color:var(--text);background:var(--surface)}
#receiptComparison[data-attendance=pending] .time-comparison-heading span{color:var(--muted);font-weight:400}
@media(max-width:600px){:root body.unified-flow #forecastFold .forecast-next-figures>div{flex-wrap:wrap;gap:4px 12px}}

:root body.unified-flow #chart .trend-months{grid-template-columns:repeat(var(--trend-count),minmax(42px,1fr));overflow-x:auto;gap:6px;padding-bottom:4px}
:root body.unified-flow #chart .trend-month{white-space:nowrap;word-break:keep-all}

:root body.unified-flow .easy-setup.has-receipt-card{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
:root body.unified-flow .easy-setup.has-receipt-card #easyResult{padding:0!important;margin:0!important}
:root body.unified-flow #receiptSummaryFold{border:1px solid var(--border)!important;border-radius:16px!important;background:var(--surface)!important;box-shadow:var(--shadow)!important;margin:0 0 16px!important}
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold)>summary::after{content:''!important;font-size:0!important;line-height:0!important;width:7px!important;height:7px!important;border:0!important;border-right:2px solid var(--accent)!important;border-bottom:2px solid var(--accent)!important}
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold)>summary::after{transform:translateY(-50%) rotate(45deg)!important}
:root body.unified-flow :is(#receiptSummaryFold,#receiptComparison,#forecastFold,#calendarFold)[open]>summary::after{transform:translateY(-50%) rotate(225deg)!important}
