.kc-calendar {
  box-sizing: border-box; min-width: 0; margin: 1rem 0; padding: .75rem; width: 100%;
  border: 1px solid #d6e0d9; border-radius: .55rem; color: #1a2421; background: #f6f8f4;
  font-family: "Noto Sans JP","Hiragino Sans","Yu Gothic",system-ui,sans-serif;
}
.kc-calendar *, .kc-calendar *::before { box-sizing: border-box }
.kc-calendar > legend { padding: 0 .4rem; color: #0f3d2e; background: white; font-size: .95rem; font-weight: 700 }
.kc-calendar > legend small { font-size: .8rem; color: #5a625d; font-weight: 400; margin-left: .25rem }
.kc-layout { display: grid; gap: 1rem }
.kc-month + .kc-month { margin-block-start: 1rem }
.kc-calendar p.kc-month-title, .kc-calendar p.kc-time-title { color: #0f3d2e; margin: 0 0 .55rem; font-weight: 720; text-align: left; line-height: 1.45 }
.kc-calendar p.kc-month-title { font-size: 1.1rem }
.kc-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .25rem }
.kc-weekday, .kc-empty, .kc-calendar button { text-align: center; font-variant-numeric: tabular-nums }
.kc-weekday { color: #5a625d; font-size: .8rem }
.kc-empty { color: #636f67; display: grid; place-items: center; min-height: 2.65rem }
.kc-calendar button.kc-day, .kc-calendar button.kc-time {
  display: block; width: 100%; margin: 0; min-width: 0; min-height: 2.7rem; padding: .3rem .05rem;
  background: #fff; border: 1px solid #8b9e90; color: #1a4d3a; border-radius: .35rem;
  text-align: center; font: 650 1rem/1.3 system-ui,sans-serif; font-variant-numeric: tabular-nums; cursor: pointer;
}
.kc-calendar button.kc-day:hover, .kc-calendar button.kc-time:hover { background: #e8f1e8 }
.kc-calendar button.kc-day[aria-pressed="true"] { color: white; background: #1a4d3a; border: 2px solid #0f3d2e }
.kc-calendar button:focus-visible { outline: 3px solid #1c6754; outline-offset: 2px }
.kc-time-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(7.2rem,1fr)); gap: .45rem }
.kc-calendar button.kc-time { font-size: .94rem; min-height: 2.8rem }
.employee-slots:has(.kc-calendar) { display: block }
@media(min-width:620px) {
  .kc-calendar { padding: 1.15rem 1.4rem 1.4rem }
  .kc-layout { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: clamp(1rem,4vw,2.8rem); align-items: start }
  .kc-times { border-inline-start: 1px solid #d6e0d9; padding-inline-start: clamp(1rem,3vw,2rem) }
}
@media(forced-colors:active) { .kc-calendar .kc-day[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px } }

.kc-month-nav { display:flex; align-items:center; justify-content:space-between; gap:.35rem; margin:0 0 1rem; }
.kc-month-nav strong { font-size:.85rem; color:#3e5148; text-align:center; }
.kc-month-nav button { cursor:pointer; background:white; color:#1a4d3a; border:1px solid #8b9e90;
  border-radius:.35rem; min-height:2.65rem; padding:.35rem .6rem; white-space:nowrap; font:600 .9rem system-ui,sans-serif; }
.kc-month-nav button:disabled { cursor:default; color:#617066; border-color:#d6e0d9; }
.kc-calendar .kc-no-time { margin:0; font-size:.9rem; color:#465b4d; }

.kc-calendar button.kc-probe {
  display:block; width:100%; min-width:0; min-height:2.7rem; margin:0; padding:.3rem .05rem;
  border:1px dashed #748d7b; border-radius:.35rem; background:#f7faf6; color:#315c43;
  font:600 1rem/1.3 system-ui,sans-serif; cursor:pointer;
}
.kc-calendar button.kc-probe:hover { background:#e8f1e8; }
.kc-calendar p.kc-hint { margin:0 0 .7rem; color:#526258; font-size:.8rem; text-align:left; }
