.hot-tool .calendar-tool {
  border: 1px solid #d4dce4;
  border-radius: 14px;
  background: #fff;
  padding: clamp(16px, 3vw, 28px);
  margin: 1.5rem 0 2rem;
}

.hot-tool .calendar-tool h2 { margin-top: 0; }
.hot-tool .calendar-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px;
  align-items: end;
}
.hot-tool .calendar-controls label { display: grid; gap: 6px; font-weight: 650; }
.hot-tool .calendar-controls select,
.hot-tool .calendar-controls input,
.hot-tool .calendar-controls button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #8795a4;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: #17232f;
  font: inherit;
}
.hot-tool .calendar-controls button { cursor: pointer; font-weight: 700; background: #173c5a; color: #fff; border-color: #173c5a; }
.hot-tool .calendar-controls button:hover { background: #0f2e47; }
.hot-tool .calendar-controls .calendar-check { display: flex; align-items: center; min-height: 44px; }
.hot-tool .calendar-controls .calendar-check input { width: 20px; height: 20px; min-height: 20px; margin: 0 8px 0 0; }
.hot-tool .calendar-status { min-height: 1.5em; margin: 18px 0 10px; font-weight: 600; }
.hot-tool .calendar-result { overflow-x: auto; }
.hot-tool .calendar-title { text-align: center; margin: 10px 0 2px; font-size: clamp(1.35rem, 4vw, 2rem); }
.hot-tool .calendar-subtitle { text-align: center; margin: 0 0 14px; color: #465564; }
.hot-tool .calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; color: #17232f; }
.hot-tool .calendar-grid th,
.hot-tool .calendar-grid td { border: 1px solid #aab5c0; text-align: center; }
.hot-tool .calendar-grid thead th { padding: 9px 2px; background: #edf2f6; font-size: clamp(.68rem, 2.6vw, .95rem); }
.hot-tool .calendar-grid tbody td { height: 58px; vertical-align: top; text-align: left; padding: 8px; font-weight: 650; }
.hot-tool .calendar-grid tbody td.empty-day { background: #f8fafb; }
.hot-tool .calendar-grid .week-number-heading,
.hot-tool .calendar-grid .week-number { width: 46px; color: #526170; font-size: .82rem; }
.hot-tool .calendar-grid .week-number { background: #f4f6f8; vertical-align: middle; }
.hot-tool .calendar-result.large-cells .calendar-grid tbody td { height: 96px; }

@media (max-width: 420px) {
  .hot-tool .calendar-grid tbody td { height: 48px; padding: 5px; }
  .hot-tool .calendar-grid .week-number-heading,
  .hot-tool .calendar-grid .week-number { width: 34px; }
  .hot-tool .calendar-result.large-cells .calendar-grid tbody td { height: 74px; }
}

@media print {
  .hot-tool .calendar-tool { border: 0; padding: 0; margin: 0; }
  .hot-tool .calendar-controls,
  .hot-tool .calendar-status,
  .hot-tool .calendar-tool > h2,
  .hot-tool .calendar-guide { display: none !important; }
  .hot-tool .calendar-result { overflow: visible; }
  .hot-tool .calendar-grid { page-break-inside: avoid; }
  .hot-tool .calendar-grid tbody td { height: 1.15in; }
  .hot-tool .calendar-result.large-cells .calendar-grid tbody td { height: 1.35in; }
  .hot-tool .calendar-grid tbody td.empty-day { background: #fff; }
}
