.hot-tool .mc-card {
  max-width: 46rem;
  margin: 1.25rem 0 2rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid #d6dde8;
  border-radius: 14px;
  background: #f8fafc;
  color: #172033;
  box-shadow: 0 6px 20px rgb(15 23 42 / 6%);
}
.hot-tool .mc-group {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.hot-tool .mc-group legend {
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hot-tool .mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem 1rem;
}
.hot-tool .mc-rows {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.hot-tool .mc-card label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.hot-tool .mc-card label.mc-check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.hot-tool .mc-wide {
  margin: 0.25rem 0 0.5rem;
}
.hot-tool .mc-card input,
.hot-tool .mc-card select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #a9b4c4;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 400;
}
.hot-tool .mc-card input[type="checkbox"],
.hot-tool .mc-card input[type="radio"] {
  width: auto;
  min-height: 0;
}
.hot-tool .mc-card input:focus,
.hot-tool .mc-card select:focus,
.hot-tool .mc-card button:focus-visible {
  outline: 3px solid #7aa7ff;
  outline-offset: 2px;
}
.hot-tool .mc-primary,
.hot-tool .mc-secondary,
.hot-tool .mc-tab,
.hot-tool .mc-chip {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
}
.hot-tool .mc-primary {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 0;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
}
.hot-tool .mc-primary:hover {
  background: #1e40af;
}
.hot-tool .mc-secondary,
.hot-tool .mc-chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #1e293b;
}
.hot-tool .mc-secondary:disabled {
  opacity: 0.5;
  cursor: default;
}
.hot-tool .mc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
}
.hot-tool .mc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hot-tool .mc-tab {
  flex: 1 1 12rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
}
.hot-tool .mc-tab.is-active {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}
.hot-tool .mc-result:empty {
  display: none;
}
.hot-tool .mc-result {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d6dde8;
}
.hot-tool .mc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.hot-tool .mc-stats div {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: #f1f5f9;
}
.hot-tool .mc-stats div.mc-hl {
  background: #dbeafe;
}
.hot-tool .mc-stats dt {
  font-size: 0.85rem;
  color: #475569;
}
.hot-tool .mc-stats dd {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.hot-tool .mc-note {
  margin: 0.9rem 0 0;
  color: #334155;
}
.hot-tool .mc-error {
  margin: 0;
  color: #b91c1c;
  font-weight: 600;
}
.hot-tool .mc-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.hot-tool .mc-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.hot-tool .mc-table th,
.hot-tool .mc-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
  white-space: nowrap;
}
.hot-tool .mc-table th:first-child,
.hot-tool .mc-table td:first-child {
  text-align: left;
}
.hot-tool .mc-table tr.mc-match td {
  background: #fef3c7;
}
.hot-tool .mc-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 700;
}
.hot-tool .mc-badge.is-bad {
  background: #fee2e2;
  color: #991b1b;
}
.hot-tool .mc-badge.is-good {
  background: #dcfce7;
  color: #166534;
}
@media (max-width: 480px) {
  .hot-tool .mc-stats dd {
    font-size: 1.05rem;
  }
}
.hot-tool .mc-card.mc-wide-card {
  max-width: none;
}
.hot-tool .ch-wrap {
  margin: 1rem 0 0.25rem;
  padding: 0.5rem;
  border: 1px solid #d6dde8;
  border-radius: 10px;
  background: #fff;
}
.hot-tool .ch-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}
.hot-tool .ch-grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}
.hot-tool .ch-tick {
  fill: #64748b;
  font-size: 11px;
}
.hot-tool .ch-ref {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.hot-tool .ch-ref.is-bad {
  stroke: #ef4444;
}
.hot-tool .ch-reflabel {
  fill: #64748b;
  font-size: 10px;
}
.hot-tool .ch-line {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.hot-tool .ch-line.is-dim {
  stroke: #cbd5e1;
  stroke-width: 1;
}
.hot-tool .ch-line.is-median {
  stroke: #0f766e;
  stroke-width: 2.5;
  stroke-dasharray: 6 4;
}
.hot-tool .ch-line.is-pick {
  stroke: #d97706;
  stroke-width: 2.5;
}
.hot-tool .ch-line.is-now {
  stroke: #dc2626;
  stroke-width: 3.2;
}
.hot-tool .ch-line.is-blue {
  stroke: #1d4ed8;
  stroke-width: 2.4;
}
.hot-tool .ch-line.is-green {
  stroke: #059669;
  stroke-width: 2.4;
}
.hot-tool .ch-line.is-purple {
  stroke: #7c3aed;
  stroke-width: 2.4;
}
.hot-tool .ch-line.is-gray {
  stroke: #64748b;
  stroke-width: 2;
}
.hot-tool .ch-area {
  fill: #fee2e2;
  stroke: #dc2626;
  stroke-width: 1.2;
}
.hot-tool .ch-guide {
  stroke: #0f172a;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.hot-tool .ch-readout {
  min-height: 1.5em;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: #334155;
}
.hot-tool .ch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}
.hot-tool .ch-legend li::before {
  content: "";
  display: inline-block;
  width: 1.3rem;
  height: 0.25rem;
  margin-right: 0.4rem;
  vertical-align: middle;
  border-radius: 2px;
  background: #94a3b8;
}
.hot-tool .ch-legend li.is-now::before { background: #dc2626; }
.hot-tool .ch-legend li.is-median::before { background: #0f766e; }
.hot-tool .ch-legend li.is-pick::before { background: #d97706; }
.hot-tool .ch-legend li.is-blue::before { background: #1d4ed8; }
.hot-tool .ch-legend li.is-green::before { background: #059669; }
.hot-tool .ch-legend li.is-purple::before { background: #7c3aed; }
.hot-tool .ch-legend li.is-gray::before { background: #64748b; }
.hot-tool .ch-legend li.is-dim::before { background: #cbd5e1; }
.hot-tool .mc-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.hot-tool .mc-kpis div {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.hot-tool .mc-kpis b {
  display: block;
  font-size: 1.35rem;
}
.hot-tool .mc-kpis span {
  font-size: 0.82rem;
  color: #475569;
}
.hot-tool .mc-up { color: #047857; }
.hot-tool .mc-down { color: #b91c1c; }
.hot-tool .mc-table tr.is-sum td {
  font-weight: 700;
  background: #f1f5f9;
}
.hot-tool .mc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem 1rem;
  align-items: end;
}
.hot-tool .mc-rowbtn { background: none; border: 0; padding: 0; font: inherit; color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.hot-tool .mc-rowbtn:focus-visible, .hot-tool .ch-svg:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
