/* RC159R8R4: bounded form feedback, calendar focus and body-level comparison action. */
.period-validation { margin: 12px 0; color: #656157; font-size: 13px; line-height: 1.7; }
.period-validation.is-invalid { color: #a44135; font-weight: 500; }
.exclusion-grid > .exclusion-empty { grid-column: 1 / -1; min-width: 0; width: 100%; margin: 0; }
.calendar-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
#compare-instructions { margin: 22px 0; }
#compare-actions { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(580px, calc(100% - 24px)); max-width: calc(100% - 24px); z-index: 40; gap: 16px; margin: 0; padding: 12px 16px; border: 1px solid #aaa59a; border-radius: 4px; background: #fcfaf4; box-shadow: 0 4px 20px #211b1420; }
#compare-actions > div { min-width: 0; }
#compare-actions strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
#compare-actions .compare-hint { display: block; margin-top: 2px; color: #656157; font-size: 11px; line-height: 1.4; }
#compare-actions .btn { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
body.has-compare-actions #view-results { padding-bottom: calc(var(--compare-actions-height, 80px) + 36px + env(safe-area-inset-bottom, 0px)); }
body:has(dialog[open]) #compare-actions { display: none; }
@media (max-width: 380px) { #compare-actions { gap: 10px; padding: 10px 12px; } #compare-actions .compare-hint { max-width: 145px; font-size: 10px; } #compare-actions .btn { padding: 10px 12px; } }
@media print { #compare-actions { display: none !important; } body.has-compare-actions #view-results { padding-bottom: 0; } }
