.tool-shell {
  margin-top: 2.5rem;
}

.tool-shell h1 {
  margin-bottom: 1rem;
  text-align: center;
}

.tool-block {
  border: 1px solid #d57d81;
  border-radius: 6px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.tool-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tool-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.tool-input,
.tool-select,
.tool-button {
  width: 100%;
  border: 1px solid #999;
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 0.45rem 0.55rem;
  box-sizing: border-box;
  font: inherit;
}

.tool-button {
  text-align: center;
}

.tool-button.active {
  border-color: #a81d27;
  font-weight: 700;
}

.tool-kpi {
  text-align: center;
  font-family: monospace;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #c55b4c;
  margin: 0;
}

.tool-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
  gap: 0.75rem;
}

.tool-kpi-row p {
  margin: 0.2rem 0;
}

.tool-note {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

.tool-canvas-wrap {
  width: 100%;
  height: min(70vh, 740px);
  border: 1px solid #999;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.45);
}

#print-layout-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tool-warning {
  border: 1px solid #c55b4c;
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

.tool-stats {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 1rem;
}

.tool-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.3rem;
  font-family: monospace;
}

@media (max-width: 700px) {
  .tool-grid-2,
  .tool-grid-3,
  .tool-kpi-row {
    grid-template-columns: 1fr;
  }
}
