.hot-tool .chart-maker {
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(16rem, 1.2fr);
  gap: 1.25rem;
  align-items: start;
  margin: 1.5rem 0;
}
.hot-tool .chart-controls,
.hot-tool .chart-preview-wrap {
  border: 1px solid #d5dce3;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem;
}
.hot-tool .chart-controls h2 { margin-top: 0; }
.hot-tool .chart-fields { display: grid; gap: 0.8rem; }
.hot-tool .chart-fields label { display: grid; gap: 0.3rem; font-size: 0.94rem; }
.hot-tool .chart-fields input,
.hot-tool .chart-fields select,
.hot-tool .chart-fields button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 2.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid #9aa8b5;
  border-radius: 0.4rem;
  background-color: #fff;
  color: #17212b;
  font: inherit;
}
.hot-tool .chart-fields input[type="color"] { padding: 0.2rem; }
.hot-tool .chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.hot-tool .chart-margins { border: 1px solid #d5dce3; border-radius: 0.5rem; padding: 0.65rem; margin: 0; }
.hot-tool .chart-margins legend { padding: 0 0.25rem; font-size: 0.94rem; }
.hot-tool .chart-check { grid-template-columns: auto 1fr !important; align-items: center; }
.hot-tool .chart-check input { width: 1.25rem; height: 1.25rem; min-height: 1.25rem; }
.hot-tool .chart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.hot-tool .chart-fields button { cursor: pointer; border-color: #174e74; background: #174e74; color: #fff; font-weight: 650; }
.hot-tool .chart-fields button.chart-secondary { background: #fff; color: #174e74; }
.hot-tool .chart-fields button:focus-visible,
.hot-tool .chart-fields input:focus-visible,
.hot-tool .chart-fields select:focus-visible { outline: 3px solid #69b4e5; outline-offset: 2px; }
.hot-tool .chart-help, .hot-tool .chart-status { font-size: 0.9rem; line-height: 1.45; }
.hot-tool .chart-status { min-height: 1.4em; margin-bottom: 0; }
.hot-tool .chart-preview-wrap { background: #edf1f4; overflow: hidden; }
.hot-tool .chart-preview { display: grid; place-items: start center; min-height: 24rem; }
.hot-tool .chart-preview svg { display: block; width: min(100%, 28rem); height: auto; background: white; box-shadow: 0 2px 12px #17212b22; }
.hot-tool .chart-copy { margin-top: 2rem; }
.hot-tool.chart-print-root { display: none; }
.hot-tool [hidden] { display: none !important; }
@media (max-width: 700px) {
  .hot-tool .chart-maker { grid-template-columns: minmax(0, 1fr); }
  .hot-tool .chart-preview { min-height: 0; }
}
@media print {
  body:has(> .hot-tool.chart-print-root) {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
  }
  body:has(> .hot-tool.chart-print-root) > :not(.chart-print-root) { display: none !important; }
  .hot-tool.chart-print-root {
    display: block !important;
    page: chart-paper;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .hot-tool.chart-print-root svg { display: block; max-width: none; max-height: none; box-shadow: none; }
}
