.hot-tool,
.hot-tool * {
  box-sizing: border-box;
}

.hot-tool .chart-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  max-width: 34rem;
  padding: 1rem;
  border: 1px solid #d5dce3;
  border-radius: 0.75rem;
  background: #f7f9fb;
}

.hot-tool .chart-controls label {
  font-weight: 650;
}

.hot-tool .chart-controls label span {
  font-weight: 400;
  color: #536273;
}

.hot-tool select,
.hot-tool input,
.hot-tool button {
  min-height: 42px;
  max-width: 100%;
  font: inherit;
}

.hot-tool select,
.hot-tool input[type="number"] {
  padding: 0.55rem 0.65rem;
  border: 1px solid #8291a1;
  border-radius: 0.35rem;
  background: #fff;
  color: #17212b;
}

.hot-tool .chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.hot-tool button {
  padding: 0.55rem 0.9rem;
  border: 1px solid #1f4d75;
  border-radius: 0.4rem;
  background: #174f7a;
  color: #fff;
  cursor: pointer;
}

.hot-tool button:hover {
  background: #103c60;
}

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

.hot-tool .chart-message {
  min-height: 1.5em;
  margin: 0.2rem 0 0;
}

.hot-tool .chart-output {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  width: min(100%, 42rem);
  margin: 1.25rem auto 2rem;
  border-top: 1px solid #354454;
  border-left: 1px solid #354454;
}

.hot-tool .chart-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  border-right: 1px solid #354454;
  border-bottom: 1px solid #354454;
  color: #15202b;
  font-size: clamp(0.7rem, 3.4vw, 1.1rem);
  background: #fff;
}

.hot-tool .chart-cell.is-highlighted {
  outline: 2px solid #354454;
  outline-offset: -3px;
  font-weight: 750;
}

.hot-tool .chart-cell.highlight-gold { background-color: #f6cf62; }
.hot-tool .chart-cell.highlight-blue { background-color: #a9d8f2; }
.hot-tool .chart-cell.highlight-green { background-color: #b8dfb2; }
.hot-tool .chart-cell.highlight-rose { background-color: #f0bcc5; }

.hot-tool .guide-copy {
  max-width: 48rem;
}

@media print {
  .hot-tool .chart-controls,
  .hot-tool .guide-copy {
    display: none !important;
  }

  .hot-tool .chart-output {
    width: 100%;
    max-width: 7.25in;
    margin: 0 auto;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .hot-tool .chart-cell {
    font-size: 11pt;
  }
}
