.hot-tool .shift-controls,
.hot-tool .shift-output {
  border: 1px solid #d8e0e5;
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
  background: #fff;
}

.hot-tool .shift-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
  max-width: 42rem;
}

.hot-tool .shift-fields label {
  font-weight: 650;
  margin-top: .4rem;
}

.hot-tool .shift-fields label span {
  display: block;
  font-size: .88rem;
  font-weight: 400;
}

.hot-tool .shift-fields input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #8898a2;
  border-radius: .45rem;
  font: inherit;
}

.hot-tool #pattern-help {
  margin: 0 0 .5rem;
  font-size: .9rem;
}

.hot-tool .shift-fields button,
.hot-tool .shift-actions button {
  min-height: 2.75rem;
  border: 0;
  border-radius: .45rem;
  padding: .6rem 1rem;
  background: #164e63;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hot-tool .shift-fields button:hover,
.hot-tool .shift-actions button:hover {
  background: #0d3747;
}

.hot-tool .shift-error {
  padding: .75rem;
  border-left: 4px solid #b42318;
  background: #fff2f0;
  color: #7a271a;
}

.hot-tool .shift-summary p {
  margin: .4rem 0;
}

.hot-tool .shift-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
  margin-top: 1rem;
}

.hot-tool .shift-weekday {
  padding: .35rem .15rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
}

.hot-tool .shift-day {
  min-height: 4.2rem;
  padding: .4rem;
  border-radius: .45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hot-tool .shift-work {
  background: #dff2e7;
  color: #174b2c;
}

.hot-tool .shift-off {
  background: #edf1f4;
  color: #34434c;
}

.hot-tool .shift-outside {
  opacity: .43;
}

.hot-tool .shift-empty {
  background: transparent;
}

.hot-tool .shift-date-number {
  font-weight: 700;
}

.hot-tool .shift-day-kind {
  font-size: .78rem;
}

.hot-tool .shift-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
}

.hot-tool #copy-status {
  flex-basis: 100%;
}

.hot-tool .shift-guide {
  margin-top: 2rem;
}

@media (max-width: 420px) {
  .hot-tool .shift-controls,
  .hot-tool .shift-output {
    padding: .8rem;
  }

  .hot-tool .shift-grid {
    gap: .2rem;
  }

  .hot-tool .shift-day {
    min-height: 3.6rem;
    padding: .25rem;
  }

  .hot-tool .shift-day-kind,
  .hot-tool .shift-weekday {
    font-size: .68rem;
  }
}

@media print {
  .hot-tool .shift-controls,
  .hot-tool .shift-guide,
  .hot-tool .shift-actions {
    display: none;
  }

  .hot-tool .shift-output {
    border: 0;
    padding: 0;
  }
}
