* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font: 15px/1.5 Arial, sans-serif; color: #231f1a; background: #f8f3ed; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #007261; outline-offset: 3px; }
button:disabled { cursor: default; }
.date-demo main { width: min(336px, 100%); margin: 0 auto; padding: 22px 12px; }
.date-demo label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.date-field { position: relative; }
.date-field input[type=text] { width: 100%; height: 48px; padding: 10px 44px 10px 12px; background: white; color: #231f1a; border: 1px solid #ddd7cd; border-radius: 8px; }
.date-field input[aria-invalid=true] { border-color: #ad3628; }
#calendar-toggle { position: absolute; right: 2px; top: 2px; width: 42px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: #625d57; border-radius: 6px; }
#date-hint, #date-status { font-size: 12px; color: #625d57; margin: 10px 0; }
.dp-popover { display: none; position: static; width: 100%; padding: 12px; font-family: inherit; }
.dp-popover--open { display: block; }
.dp-grid--days .dp-cell { width: min(32px, 100%); height: 34px; }
.dp-cell, .dp-today-btn { font-family: inherit; }
.dp-grid--years { gap: 6px; }
.dp-grid--years .dp-cell { height: 36px; }
.dp-weekdays span { font-size: 10px; }
.dp-header-label { padding: 6px; }
.dp-cell--selected { background: #007261; }
.dp-today-btn { color: #007261; }
.celebration-demo main { padding: 26px 16px 18px; text-align: center; }
.stage { min-height: 220px; max-width: 500px; margin: 0 auto; display: grid; align-items: center; }
.task-card { width: 100%; }
.task-card-inner { position: relative; border: 1px solid #d3d0c9; border-radius: 16px; background: white; overflow: hidden; }
.card-content { display: flex; align-items: center; gap: 18px; padding: 28px 22px; min-height: 208px; text-align: left; }
.card-content svg { flex-shrink: 0; }
.card-content h2 { font-size: 16px; }
.card-content p { font-size: 14px; }
.completion-overlay { position: absolute; inset: 0; background: #ecfdf5d9; backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; gap: 16px; }
.completion-overlay h2 { font: 500 25px/1.2 Georgia, serif; margin: 0; }
#celebrate { border: 0; border-radius: 12px; padding: 12px 22px; background: #007261; color: white; font-weight: 600; box-shadow: 0 5px 15px #00726120; }
#celebration-status { color: #625d57; font-size: 13px; margin: 14px 0 10px; }
#replay { border: 1px solid #c7c2bb; background: white; color: #007261; padding: 8px 18px; border-radius: 8px; }
#replay:disabled { opacity: .55; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.dp-grid--days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dp-cell { padding: 0; }
/* Portfolio state controls sit above the production task card. */
[hidden] { display: none !important; }
.date-field { margin-bottom: 16px; }
#date-status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.celebration-demo main { padding: 24px 20px; }
.state-controls { display: flex; align-items: center; gap: 6px; max-width: 540px; margin: 0 auto 24px; border-bottom: 1px solid #e0dcd6; padding-bottom: 16px; }
.state-controls button, .state-controls > span { display: block; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #625d57; font: 12px/1.45 Arial, sans-serif; }
.state-controls button[aria-pressed=true], .state-controls > span[data-active=true] { background: white; border-color: #d5ded9; color: #007261; }
.state-controls button:hover:not(:disabled) { background: #fff; }
.state-controls button:disabled { opacity: .6; }
.stage { max-width: 540px; min-height: 218px; }
.card-content { min-height: 208px; gap: 16px; padding: 22px; }
.card-content img { width: 90px; height: 104px; object-fit: contain; flex: none; }
.card-content h2 { margin: 0 0 8px; font: 600 16px/1.4 Arial, sans-serif; }
.card-content p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #625d57; }
.start-label { display: inline-flex; align-items: center; gap: 9px; color: #007261; font-size: 14px; font-weight: 600; }
#replay { margin-top: 20px; }
@media (max-width: 380px) {
  .celebration-demo main { padding: 20px 12px; }
  .state-controls { gap: 2px; margin-bottom: 20px; }
  .state-controls button, .state-controls > span { padding: 6px; font-size: 10px; }
  .card-content { padding: 20px 15px; gap: 12px; }
  .card-content img { width: 64px; height: 85px; }
  .card-content h2 { font-size: 15px; }
  .completion-overlay h2 { font-size: 23px; }
}
