.shape-calculator{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}.shape-calculator>*,.shape-calculator .field{min-width:0}.shape-calculator [hidden]{display:none!important}.shape-calculator input[type=text],.shape-calculator select{width:100%;min-width:0;min-height:48px;font-size:16px}.shape-calculator .field{display:grid;align-content:start}.shape-calculator .field small{color:var(--muted);font-size:13px}.shape-mode{display:grid;grid-template-columns:1fr 1fr}.shape-mode label{min-width:0;min-height:48px;padding:12px 10px;font-size:14px}.shape-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.shape-actions button{min-width:0;min-height:48px}.shape-calculator [data-triangle-height],.shape-calculator [data-triangle-sides]{display:grid;gap:16px}.shape-hint{margin:0;background:#f8faff;border-left:3px solid var(--blue);padding:12px 14px;font-size:13px;line-height:1.65}.shape-calculator .result-main{display:grid;gap:10px;align-items:start}.shape-calculator .result-list li.result-main strong{font-size:clamp(24px,6vw,36px);line-height:1.3;text-align:left;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.shape-calculator .result-list strong .shape-result-number{font-size:inherit;color:inherit;overflow-wrap:anywhere}.shape-calculator .result-list strong .shape-result-unit{white-space:nowrap;font-size:18px;color:inherit}.shape-calculator .result-sub{gap:10px}.shape-calculator .result-sub strong{text-align:right;overflow-wrap:anywhere}.shape-message{margin-bottom:0;color:#dce7fb;font-size:13px;line-height:1.65}.shape-extra{border-top:1px solid var(--line);padding-top:14px}.shape-extra summary{min-height:44px;cursor:pointer;color:var(--blue);font-weight:650}.shape-working{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.shape-diagram{margin:0;padding:12px;display:grid;grid-template-columns:minmax(0,1fr);min-width:0;justify-items:center;gap:8px;border-radius:14px;background:#f5f8ff}.shape-diagram>div{width:300px;max-width:100%;min-width:0}.shape-diagram svg{width:100%;height:auto;display:block}.shape-diagram figcaption{font-size:12px;color:var(--muted);line-height:1.5;text-align:center}.shape-diagram text{fill:#234b8d;font-size:17px;text-anchor:middle}.shape-face{fill:#dfeaff;stroke:#174fbe;stroke-width:2}.shape-side{fill:#edf3ff;stroke:#174fbe;stroke-width:1.5}.shape-hole{fill:#f5f8ff;stroke:#174fbe;stroke-width:2}.shape-guide{fill:none;stroke:#007d78;stroke-width:1.5;stroke-dasharray:4 3}.shape-measure,.shape-angle{fill:none;stroke:#007d78;stroke-width:2}.shape-dot{fill:#174fbe}@media(max-width:360px){.shape-mode,.shape-actions{grid-template-columns:1fr}}
