/* Match the public consultation date picker, including its 620px and 430px layouts. */
:is(#spotSlots,#changeSlots,#employeeSlots,#selfBookingSlots) > fieldset.km-calendar {
  min-width:0; margin:0; width:100%; box-sizing:border-box; padding:.85rem;
  color:#1a2421; background:#f6f8f4; border:1px solid #d6e0d9; border-radius:.55rem;
  font:16px/1.7 "Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;
}
.km-calendar *, .km-calendar *::before, .km-actions * { box-sizing:border-box }
fieldset.km-calendar > legend { padding:0 .4rem; color:#0f3d2e; background:white; font-size:.95rem; font-weight:700 }
.km-calendar legend small { color:#5a625d; font-size:.85rem; font-weight:400; margin-left:.25rem }
.km-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:.25rem; align-content:start }
.km-nav { grid-column:1/-1; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.25rem; margin-bottom:.4rem; text-align:center }
.km-nav strong { color:#0f3d2e; font-size:1.1rem; font-weight:750; white-space:nowrap }
.km-calendar .km-nav button, .km-calendar button.km-retry, .km-actions button.km-continue {
  appearance:none; min-width:0; min-height:2.75rem; padding:.35rem .45rem; margin:0;
  border:1px solid #1a4d3a; border-radius:.38rem; background:#fff; color:#1a4d3a; cursor:pointer;
  font-family:inherit; font-size:.87rem; font-weight:650; line-height:1.7; text-align:center;
}
.km-calendar button:disabled, .km-actions button:disabled { opacity:.55; cursor:default }
.km-weekday, .km-empty, .km-calendar button { text-align:center; font-variant-numeric:tabular-nums }
.km-weekday { color:#5a625d; font-size:.8rem }
.km-empty { display:grid; place-items:center; min-height:2.65rem; color:#636f67; font-size:.95rem }
.km-calendar button.km-day, .km-calendar button.km-time {
  display:block; min-width:0; min-height:2.65rem; margin:0; padding:.25rem .04rem; width:100%;
  background:#fff; border:1px solid #9aab9e; border-radius:.35rem; color:#1a4d3a; cursor:pointer;
  text-align:center; font:700 1.02rem/1.1 Sora,system-ui,sans-serif; font-variant-numeric:tabular-nums;
}
.km-calendar .km-days button:hover:not(:disabled), .km-calendar .km-times button:hover { background:#f1f5f2 }
.km-calendar button.km-day[aria-pressed=true], .km-calendar button.km-time[aria-pressed=true] {
  color:white; background:#1a4d3a; border-color:#1a4d3a;
}
.km-calendar button.km-day[aria-pressed=true] { border:2px solid #0f3d2e }
.km-calendar button.km-day[aria-pressed=true]:hover { background:#0f3d2e }
.km-times { min-width:0; margin:1rem 0 0 }
.km-calendar .km-time-title { color:#0f3d2e; margin:0 0 .55rem; text-align:left; font-size:.95rem; font-weight:700 }
.km-time-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(4.5rem,1fr)); gap:.45rem }
.km-calendar button.km-time { min-height:2.75rem; padding:.35rem .15rem; border-color:#84978b; font-size:.98rem; font-weight:650; line-height:1.4 }
.km-calendar button.km-time[aria-pressed=true]::before { content:"✓"; margin-right:.23rem }
.km-calendar .km-status { align-self:start; margin:.5rem 0; padding:.5rem; color:#0f3d2e }
.km-actions { margin-top:1.15rem }
.km-actions button.km-continue { min-height:2.8rem; padding:.52rem 1.12rem; color:white; background:#1a4d3a; font-size:.95rem }
.km-actions button.km-continue:hover:not(:disabled) { background:#0f3d2e }
.km-calendar button:focus-visible, .km-actions button:focus-visible { outline:3px solid #1c6754; outline-offset:3px }
.employee-slots:has(.km-calendar) { display:block }
body:has(.km-calendar) { background:#faf9f5; }
body:has(.km-calendar) .container, body:has(.km-calendar) main.employee-main {
  box-sizing:border-box; width:min(calc(100% - 2rem),58rem); max-width:none; margin:0 auto; padding:clamp(1rem,3.75vw,3.5rem) 0 2rem;
}
body:has(.km-calendar) #stepContent > .step-container, .employee-main:has(.km-calendar) #employeeContent,
.container:has(.km-calendar) .km-content {
  margin:0; padding:clamp(1rem,3vw,2rem) clamp(1rem,4vw,3rem); color:#1a2421; background:white;
  border:1px solid #d6e0d9; border-radius:.75rem; box-shadow:none;
}
body:has(.km-calendar) .spot-panel .spot-hours, .employee-main:has(.km-calendar) #employeeContent > p { margin:.5rem 0 .9rem }
.employee-main:has(.km-calendar) #employeeContent > h2 { margin:0 0 .5rem }
@media (min-width:620px) {
  :is(#spotSlots,#changeSlots,#employeeSlots,#selfBookingSlots) > fieldset.km-calendar { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:clamp(1rem,4vw,2.8rem); align-items:start; padding:1.15rem 1.4rem 1.4rem }
  .km-times { margin:0; border-inline-start:1px solid #d6e0d9; padding-left:clamp(1rem,3vw,2rem) }
  .km-time-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .km-calendar .km-time-title { margin:0 0 .7rem }
}
@media (max-width:430px) {
  :is(#spotSlots,#changeSlots,#employeeSlots,#selfBookingSlots) > fieldset.km-calendar { padding:.58rem }
  .km-time-grid { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .km-actions button { width:100% }
}
@media (max-width:355px) {
  body:has(.km-calendar) .container, body:has(.km-calendar) main.employee-main { width:calc(100% - .75rem) }
  body:has(.km-calendar) #stepContent > .step-container, .employee-main:has(.km-calendar) #employeeContent { padding-inline:.5rem }
}
@media (forced-colors:active) {
  .km-calendar button[aria-pressed=true] { outline:2px solid Highlight; outline-offset:-3px }
}
body:has(.km-calendar) .container > .header, .employee-main:has(.km-calendar) > h1 {
  margin:0; border:0; border-radius:.75rem .75rem 0 0; padding:1.3rem clamp(1rem,4vw,3rem); background:#0f3d2e; color:white;
}
body:has(.km-calendar) .container > .header .title { color:white; -webkit-text-fill-color:white; font-size:clamp(1.55rem,3.25vw,2.45rem); line-height:1.42 }
body:has(.km-calendar) .container > .header .subtitle { margin:.5rem 0 0; color:#edf4ee; font-size:.94rem }
body:has(.km-calendar) .container > .header .badge { display:none }
body:has(.km-calendar) .stage-progress:not([hidden]) { margin:0; padding:.8rem clamp(1rem,4vw,3rem); background:white; border:1px solid #d6e0d9; border-bottom:0 }
body:has(.km-calendar) #stepContent > .step-container, .employee-main:has(.km-calendar) #employeeContent,
.container:has(.km-calendar) .km-content { border-radius:0 0 .75rem .75rem }
.container:has(.km-calendar) .km-content { padding:clamp(1rem,3vw,2rem) clamp(1rem,4vw,3rem); background:white; border:1px solid #d6e0d9 }
.employee-main:has(.km-calendar) > h1 + p { margin:0; padding:.25rem clamp(1rem,4vw,3rem) 1rem; background:#0f3d2e; color:#edf4ee; font-size:.94rem }
/* The existing booking header uses --ink for its text fill. */
body:has(.km-calendar) .container > .header .title { --ink:#fff }
body:has(.km-calendar) > .site-header { border-top:4px solid #0f3d2e; background:white }
body:has(.km-calendar) .site-header .header-inner { box-sizing:border-box; width:min(calc(100% - 2rem),58rem); max-width:none; min-height:4rem; padding:.5rem 0; margin-inline:auto }
body:has(.km-calendar) .stage-progress:not([hidden]) { border-radius:0; box-shadow:none }
body:has(.km-calendar) .stage-progress li, body:has(.km-calendar) .stage-progress li[aria-current] { background:white; box-shadow:none }
@media (min-width:620px) {
  .km-calendar .km-time-title { padding-inline-start:clamp(1rem,3vw,2rem) }
}
@media (max-width:430px) {
  body:has(.km-calendar) .site-header .header-inner { min-height:3.55rem }
}
