.hot-tool .tool-panel {
  padding: 1.25rem;
  border: 1px solid #d5ded8;
  border-radius: 1rem;
  background: #f7faf7;
}

.hot-tool .input-grid {
  display: grid;
  gap: .55rem;
}

.hot-tool textarea,
.hot-tool input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: .65rem .75rem;
  border: 1px solid #87958a;
  border-radius: .45rem;
  background: #fff;
  color: #17241b;
  font: inherit;
}

.hot-tool textarea {
  min-height: 5rem;
  resize: vertical;
}

.hot-tool .input-grid > label {
  margin-top: .35rem;
  font-weight: 650;
}

.hot-tool small,
.hot-tool .hint {
  color: #4a5b50;
  font-size: .92rem;
}

.hot-tool .days {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .6rem 0;
  padding: .7rem;
  border: 1px solid #bac7bd;
  border-radius: .5rem;
}

.hot-tool .days legend {
  padding: 0 .25rem;
  font-weight: 650;
}

.hot-tool .days label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.5rem;
  padding: 0 .4rem;
}

.hot-tool .days input {
  width: 1.15rem;
  height: 1.15rem;
}

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

.hot-tool button {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid #1d5634;
  border-radius: .5rem;
  background: #1d5634;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.hot-tool button.secondary {
  background: #fff;
  color: #1d5634;
}

.hot-tool button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.hot-tool button:focus-visible,
.hot-tool input:focus-visible,
.hot-tool textarea:focus-visible {
  outline: 3px solid #a15f00;
  outline-offset: 2px;
}

.hot-tool .message {
  min-height: 1.5em;
  color: #71320b;
}

.hot-tool .result {
  display: grid;
  gap: .55rem;
}

.hot-tool .result:empty {
  display: none;
}

.hot-tool .result h3 {
  margin-bottom: .2rem;
}

.hot-tool .plan-row {
  display: grid;
  grid-template-columns: minmax(7rem, .8fr) minmax(8rem, 1fr) minmax(7rem, .8fr) minmax(7rem, .8fr);
  gap: .45rem;
  padding: .6rem;
  border: 1px solid #d5ded8;
  border-radius: .5rem;
  background: #fff;
}

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

@media (max-width: 600px) {
  .hot-tool .tool-panel {
    padding: .85rem;
  }

  .hot-tool .plan-row {
    grid-template-columns: 1fr 1fr;
  }

  .hot-tool .actions button {
    flex: 1 1 9rem;
  }
}

@media print {
  .hot-tool .input-grid,
  .hot-tool .hint,
  .hot-tool .actions,
  .hot-tool .message,
  .hot-tool .guide,
  .hot-tool .tool-panel > p:first-of-type {
    display: none !important;
  }

  .hot-tool .tool-panel {
    border: 0;
    padding: 0;
  }

  .hot-tool .plan-row {
    break-inside: avoid;
    border-color: #888;
  }

  .hot-tool input[type="text"] {
    min-height: 0;
    padding: .2rem;
    border: 0;
    background: transparent;
    color: #000;
  }
}
