.inch-tool .row > div, .inch-screen .row > div { min-width: 0; }
.inch-tool .result .big, .inch-screen .result .big { font-size: clamp(22px, 4vw, 30px); overflow-wrap: anywhere; }
.inch-tool input[aria-invalid="true"], .inch-screen input[aria-invalid="true"] { outline: 2px solid #a12b2b; outline-offset: 1px; }
.inch-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.inch-presets .tool-button { cursor: pointer; color: var(--accent); background: var(--accent-soft); }
.inch-presets .tool-button:hover { background: #d9ebe3; }
.inch-presets .tool-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.inch-diagram svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 12px auto 0; }
.inch-table { overflow-x: auto; margin: 18px 0 28px; }
.inch-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inch-table caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 10px; }
.inch-table th, .inch-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.inch-table th:first-child { text-align: left; }
.inch-table thead { background: var(--soft); font-size: 14px; }
.inch-table tbody th { font-weight: 600; }
@media (max-width: 420px) {
  .inch-table th, .inch-table td { padding: 8px 7px; font-size: 13px; }
}
