:root {
  --ink: #14241d;
  --ink-soft: #3e5148;
  --muted: #68776f;
  --vp: #006f3b;
  --vp-dark: #005c31;
  --vp-soft: #e8f5ed;
  --canvas: #f1f4f1;
  --card: #ffffff;
  --line: #d4dcd7;
  --line-dark: #b8c4bd;
  --water: #bcecf0;
  --curve: #078ca0;
  --curve-soft: #e4f6f8;
  --inverse: #f06b43;
  --inverse-soft: #fff0eb;
  --external: #dc9a26;
  --external-soft: #fff5df;
  --error: #b94335;
  --error-soft: #fff0ed;
  --shadow: 0 12px 40px rgba(22, 42, 33, .07);
}


*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,select{font:inherit;color:inherit}img{max-width:100%}
.shape-icon path{fill:#bcecf0;stroke:#1c2630;stroke-width:2.5}
.pool-diagram { margin: 0; padding: 18px 22px 15px; background: #edf1ee; border-bottom: 1px solid var(--line); }
.pool-diagram figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.pool-diagram figcaption > span { color: var(--ink); font-size: 12px; font-weight: 830; }
.pool-diagram figcaption small { max-width: 480px; color: var(--muted); text-align: right; font-size: 10px; line-height: 1.4; }
.diagram-board { position: relative; margin-top: 12px; padding: 7px; overflow: hidden; border: 1px solid #cfd8d2; border-radius: 7px; background-color: #fbfcfb; background-image: linear-gradient(rgba(91,111,101,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(91,111,101,.055) 1px, transparent 1px); background-size: 22px 22px; box-shadow: inset 0 0 0 5px rgba(255,255,255,.72), 0 6px 18px rgba(20,36,29,.05); }
.diagram-board-label { position: absolute; z-index: 2; top: 12px; right: 13px; max-width: calc(100% - 26px); display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .055em; line-height: 1.25; text-align: right; }
.diagram-board-label span { padding: 4px 5px; border-radius: 2px; background: var(--ink); color: white; }
.diagram-board-label strong { font-size: inherit; }
.pool-diagram svg { display: block; width: min(100%, 760px); height: auto; min-height: 0; margin-inline: auto; overflow: visible; }
.pool-water { fill: #dff2f2; stroke: #d0dbd5; stroke-width: 14; paint-order: stroke fill; filter: drop-shadow(0 6px 7px rgba(20,36,29,.07)); }
#water-grid path { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.diagram-segment { fill: none; stroke-linecap: square; stroke-linejoin: miter; transition: stroke-width .16s ease, filter .16s ease, opacity .16s ease; }
.diagram-segment.straight { stroke: var(--vp-dark); stroke-width: 6; }
.diagram-segment.curve { stroke: var(--curve); stroke-width: 7; }
.diagram-segment.is-active { stroke-width: 9; filter: drop-shadow(0 0 4px rgba(20,36,29,.18)); }
.corner-marks circle { fill: var(--external); stroke: white; stroke-width: 2; transition: filter .16s ease, stroke-width .16s ease; }
.corner-marks.is-active circle { stroke-width: 4; filter: drop-shadow(0 0 4px rgba(212,145,28,.45)); }
.inverse-elbows path { fill: none; stroke: var(--inverse); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; transition: stroke-width .16s ease; }
.inverse-elbows circle { fill: var(--inverse); stroke: white; stroke-width: 2; }
.inverse-elbows.is-active path { stroke-width: 9; filter: drop-shadow(0 0 4px rgba(240,107,67,.32)); }
.curve-ticks line { stroke: white; stroke-width: 2; opacity: .95; }
.dimension-line line { stroke: #53665d; stroke-width: 1.4; }
.dimension-line text { fill: #45584f; font-size: 14px; font-weight: 790; paint-order: stroke; stroke: #fbfcfb; stroke-width: 6px; stroke-linejoin: round; }
.dimension-line.is-active line { stroke: var(--vp); stroke-width: 3; }
.dimension-line.is-active text { fill: var(--vp-dark); font-size: 16px; }
.dimension-line.is-short text { font-weight: 850; }
#measure-arrow path, #measure-arrow-small path { fill: #53665d; }
.chord-guide { stroke: var(--inverse); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dimension-extension { stroke: #83938b; stroke-width: 1; stroke-dasharray: 3 4; }
.leader { fill: none; stroke: var(--inverse); stroke-width: 1.2; stroke-dasharray: 3 3; }
.leader-label { fill: #8d321f; font-size: 13px; font-weight: 790; paint-order: stroke; stroke: #fbfcfb; stroke-width: 5px; stroke-linejoin: round; }
.radius-note text:first-child { fill: var(--muted); font-size: 12px; text-transform: uppercase; }
.radius-note text:last-child { fill: var(--ink); font-size: 14px; font-weight: 800; }
.diagram-legend { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; }
.diagram-legend span { min-width: 0; min-height: 37px; padding: 7px 9px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d5ded8; border-radius: 4px; background: rgba(255,255,255,.88); color: var(--ink-soft); font-size: 10px; font-weight: 780; white-space: normal; }
.diagram-legend i { flex: none; width: 15px; height: 4px; background: var(--vp-dark); }
.diagram-legend .legend-external i { width: 8px; height: 8px; border-radius: 50%; background: var(--external); }
.diagram-legend .legend-inverse i { background: var(--inverse); }
.diagram-legend .legend-curve i { background: var(--curve); }
.arc-help { margin-top: 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.arc-help span { padding: 9px 10px; border: 1px solid #cbded9; border-radius: 4px; background: rgba(255,255,255,.88); color: var(--muted); font-size: 10px; line-height: 1.4; }
.arc-help b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 3px; background: var(--curve); color: white; }
.curve-tick-note { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.roman-help { margin: 7px 0 0; padding: 8px 10px; border-left: 3px solid var(--inverse); background: rgba(255,240,235,.78); color: var(--muted); font-size: 11px; line-height: 1.5; }
.roman-help b { color: #9d432c; }

