.geometry-controls label{font-weight:var(--tool-label-weight,600);margin:18px 0 8px;display:block}.geometry-controls>label:first-child{margin-top:0}.geometry-controls input,.geometry-controls select{border:1px solid var(--border);background:var(--surface-soft);width:100%;min-width:0;min-height:48px;color:var(--text);font:inherit;border-radius:10px;padding:12px}.geometry-controls input:focus-visible,.geometry-controls select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.geometry-controls .geometry-unit-label{color:var(--muted);font-weight:400}.geometry-workspace summary{cursor:pointer;padding:10px 0;font-weight:600;line-height:1.7}.geometry-help{font:var(--tool-help-font,400 15px/1.75 sans-serif);color:var(--tool-secondary-copy,var(--text));font-family:inherit}.geometry-details p{color:var(--text);font-size:16px;line-height:1.75}.geometry-results h2{font-size:var(--tool-panel-title-size,18px);line-height:1.5}.geometry-primary{background:var(--surface-soft);border-radius:16px;gap:8px;margin-top:12px;padding:16px 18px;display:grid}.geometry-primary output{color:var(--blue);overflow-wrap:anywhere;font-variant-numeric:tabular-nums;font-size:clamp(1.7rem,3vw,2.3rem);font-weight:700;line-height:1.3}.geometry-result-topline{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.geometry-result-topline>span{color:var(--text);font-size:16px;font-weight:600}.geometry-copy{align-items:center;gap:8px;min-height:44px;padding:10px 12px;font-size:15px;display:inline-flex}.geometry-copy .icon{width:18px;height:18px}.geometry-metrics{font:var(--tool-help-font,400 15px/1.75 sans-serif);flex-wrap:wrap;gap:18px 28px;margin-top:16px;font-family:inherit;display:flex}.geometry-metrics dt{color:var(--tool-secondary-copy,var(--text))}.geometry-metrics dd{font-weight:var(--tool-label-weight,600);overflow-wrap:anywhere;margin:5px 0 0}.geometry-formulas{gap:12px;margin:16px 0;font-size:21px;line-height:1.65;display:grid;overflow-x:auto}.geometry-formulas math{white-space:nowrap;padding-block:6px}.geometry-details{border:1px solid var(--border);border-radius:14px;margin-top:14px;padding:4px 24px}.geometry-details p{max-width:85ch;margin:12px 0}.geometry-learning{background:var(--surface-soft);border:1px solid var(--border);border-radius:16px;grid-column:1;align-self:start;margin:0 24px 24px;padding:18px}.geometry-learning h2{margin:0 0 10px;font-size:18px;line-height:1.5}.geometry-learning p{margin:8px 0;font-size:16px;line-height:1.75}.geometry-education .editorial-content{border-top:1px solid var(--border);margin-top:36px;padding-top:30px}.geometry-education .editorial-content,.geometry-education .editorial-article{width:100%;max-width:none}.geometry-education .editorial-section>p{max-width:86ch}.geometry-education .editorial-section{margin-bottom:30px}.geometry-education .editorial-section:last-child{margin-bottom:0}.geometry-education .editorial-example{padding:20px}.geometry-education .editorial-example-emphasis dl{grid-template-columns:1fr 1fr;align-items:start;gap:8px 24px}.geometry-education .editorial-example-emphasis dt:first-of-type{grid-area:1/1}.geometry-education .editorial-example-emphasis dd:first-of-type{grid-area:2/1}.geometry-education .editorial-example-emphasis dt:last-of-type{color:var(--text);grid-area:1/2;font-size:16px;font-weight:650}.geometry-education .editorial-example-emphasis dd:last-of-type{border:1px solid var(--blue);background:var(--surface-soft);border-radius:14px;grid-area:2/2;padding:12px}.geometry-education .editorial-example-emphasis dd:last-of-type math{color:var(--blue);font-size:34px;font-weight:700}.geometry-education .editorial-example-actions{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.geometry-education .editorial-example-actions button{white-space:normal;justify-content:center;align-items:center;gap:10px;min-height:48px;font-size:16px;display:inline-flex}.geometry-education .editorial-example-actions .icon{flex-shrink:0;width:18px;height:18px}.geometry-education .editorial-worked-steps math{max-width:100%;overflow-x:auto}.geometry-education .editorial-formula-grid{margin-block:18px}.geometry-education .editorial-diagram{margin-bottom:18px}@media (width>=1024px){.geometry-education .editorial-with-navigation{grid-template-columns:minmax(0,1fr) 230px;column-gap:clamp(24px,3vw,48px)}}@media (width<=640px){.geometry-education .editorial-example-emphasis dl{grid-template-columns:minmax(0,1fr)}.geometry-education .editorial-example-emphasis dt:first-of-type,.geometry-education .editorial-example-emphasis dd:first-of-type,.geometry-education .editorial-example-emphasis dt:last-of-type,.geometry-education .editorial-example-emphasis dd:last-of-type{grid-area:auto/1}.geometry-education .editorial-example-actions button{width:100%}}@media (width<=760px){.geometry-learning{margin:0 20px 20px;padding:16px}.geometry-details{padding:4px 20px}.geometry-education .editorial-content{margin-top:28px;padding-top:24px}}.rectangle-workspace{min-width:0;margin-block:24px 48px}.rectangle-workspace [hidden]{display:none!important}.rectangle-layout{border:1px solid var(--border);background:var(--surface);border-radius:20px;grid-template-columns:minmax(300px,380px) minmax(0,1fr);display:grid;overflow:hidden}.rectangle-controls,.rectangle-results{min-width:0;padding:24px}.rectangle-results{border-inline-start:1px solid var(--border);grid-area:1/2/span 2}.rectangle-dimensions,.rectangle-unit-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.rectangle-unit-details{margin-top:22px}.rectangle-actions,.rectangle-presets{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.rectangle-presets{gap:8px;margin-top:16px}.rectangle-presets button{white-space:normal;padding:10px 12px;font-size:15px}.rectangle-controls>.utility-help{margin-top:16px}.rectangle-figure{margin:8px 0 0}.rectangle-figure svg{width:100%;height:auto;max-height:260px;display:block;overflow:visible}.rectangle-figure rect{fill:var(--surface-soft);stroke:var(--blue);stroke-width:2px}.rectangle-figure line{stroke:var(--blue);stroke-opacity:.3;stroke-width:.7px}.rectangle-figure text{fill:var(--text);font-size:14px}.rectangle-grid-control{align-items:center;gap:10px;font-size:16px;line-height:1.75;display:flex}.rectangle-grid-control input{width:18px;height:18px;accent-color:var(--blue)}.rectangle-drag-hint{margin-top:10px}.rectangle-notice{border:1px solid var(--border);border-radius:10px;margin-bottom:20px;padding:14px;line-height:1.8}.rectangle-handle{touch-action:none;cursor:ew-resize;outline:none}.rectangle-handle[data-rectangle-handle=height]{cursor:ns-resize}.rectangle-hit{fill:#0000;pointer-events:all}.rectangle-knob{fill:var(--blue);stroke:var(--surface);stroke-width:2px;pointer-events:none}.rectangle-handle:focus-visible .rectangle-knob,.rectangle-handle:hover .rectangle-knob{stroke:var(--text);stroke-width:3px}.rectangle-workspace[data-dragging] .rectangle-knob{fill:var(--text)}.rectangle-quick{display:none}@media (width>=761px){.rectangle-visual-layout{margin-top:12px}.rectangle-figure{margin-top:0}.rectangle-figure svg{max-height:420px}.rectangle-formula-block{border-top:1px solid var(--border);min-width:0;margin-top:16px;padding-top:12px}.rectangle-formulas{flex-wrap:wrap;justify-content:center;gap:12px 36px;margin:0;display:flex}.rectangle-formulas math{max-width:100%;overflow-x:auto}}@media (width<=760px){.rectangle-layout{grid-template-columns:minmax(0,1fr)}.rectangle-controls,.rectangle-results{padding:20px}.rectangle-controls{border-bottom:1px solid var(--border)}.rectangle-results{border-inline-start:0;grid-area:auto}.rectangle-dimensions{gap:12px}.rectangle-unit-row{gap:10px}.rectangle-actions>*{flex:140px;font-size:16px}.rectangle-controls .rectangle-actions{gap:8px}.rectangle-metrics{gap:16px}.rectangle-figure svg{max-height:270px}.rectangle-result-topline{gap:10px}.rectangle-quick{z-index:2;border:1px solid var(--blue);background:var(--surface);color:var(--text);overflow-wrap:anywhere;border-radius:10px;margin-top:12px;padding:12px;font-size:15px;font-weight:650;line-height:1.7;display:block;position:sticky;top:12px}}
