.fx-edging { --fx-used: 2; --fx-left: 10; --fx-extra: 0; display: grid; gap: 16px; }
.fx-edging:has(#fx-edging-m1:checked) { --fx-used: 1; --fx-left: 11; }
.fx-edging:has(#fx-edging-m3:checked) { --fx-used: 3; --fx-left: 9; }
.fx-edging:has(#fx-edging-m4:checked) { --fx-used: 4; --fx-left: 8; }
.fx-edging:has(#fx-edging-m5:checked) { --fx-used: 5; --fx-left: 7; }
.fx-edging:has(#fx-edging-m6:checked) { --fx-used: 6; --fx-left: 6; }
.fx-edging:has(#fx-edging-m7:checked) { --fx-used: 7; --fx-left: 5; }
.fx-edging:has(#fx-edging-m8:checked) { --fx-used: 8; --fx-left: 4; }
.fx-edging:has(#fx-edging-m9:checked) { --fx-used: 9; --fx-left: 3; }
.fx-edging:has(#fx-edging-m10:checked) { --fx-used: 10; --fx-left: 2; }
.fx-edging:has(#fx-edging-m11:checked) { --fx-used: 11; --fx-left: 1; }
.fx-edging:has(#fx-edging-m12:checked) { --fx-used: 12; --fx-left: 0; }
.fx-edging:has(#fx-edging-m13:checked) { --fx-used: 12; --fx-left: 0; --fx-extra: 1; }
.fx-edging .fx-edging-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fx-edging .fx-edging-goal { margin: 0; line-height: 1.5; }
.fx-edging .fx-edging-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.fx-edging .fx-edging-controls legend { padding: 0; margin-bottom: 10px; font-weight: 700; line-height: 1.5; }
.fx-edging .fx-edging-marks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; }
.fx-edging .fx-btn { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 36px; padding: 6px 2px; border: 2px solid var(--fx-muted); background: var(--fx-paper); color: var(--fx-ink); font-size: 14px; line-height: 1.3; cursor: pointer; }
.fx-edging .fx-btn:has(input:checked) { background: var(--fx-mint); color: var(--fx-ink); border-color: var(--fx-ink); }
.fx-edging .fx-btn:has(input:focus-visible) { outline: 3px solid var(--fx-grape); outline-offset: 3px; }
.fx-edging .fx-edging-board { box-sizing: border-box; height: 470px; padding: 12px; display: grid; align-content: start; gap: 12px; color: var(--fx-ink); background: var(--fx-sky-pale); }
.fx-edging .fx-edging-board p { margin: 0; }
.fx-edging .fx-edging-plan { display: grid; gap: 4px; min-width: 0; }
.fx-edging .fx-edging-title { font-size: 16px; line-height: 1.4; }
.fx-edging .fx-edging-caption, .fx-edging .fx-edging-end, .fx-edging .fx-edging-key { font-size: 14px; line-height: 1.4; }
.fx-edging .fx-edging-end { text-align: right; padding-right: 4%; }
.fx-edging .fx-edging-map { display: block; width: 100%; height: 130px; }
.fx-edging .fx-edging-grid-paper { fill: var(--fx-paper); }
.fx-edging .fx-edging-grid { fill: none; stroke: var(--fx-sky); stroke-width: 1; }
.fx-edging .fx-edging-path { fill: var(--fx-muted); fill-opacity: 0.25; stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-edging .fx-edging-ticks { fill: none; stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-edging .fx-edging-green { fill: var(--fx-mint); stroke: var(--fx-ink); stroke-width: 1; }
.fx-edging .fx-edging-extra { fill: var(--fx-coral); stroke: var(--fx-ink); stroke-width: 1; }
.fx-edging .fx-edging-laid { width: calc(var(--fx-used) * 20px); transition: width 0.4s; }
.fx-edging .fx-edging-missing { width: calc(var(--fx-extra) * 20px); transition: width 0.4s; }
.fx-edging .fx-edging-flag { fill: var(--fx-sun); stroke: var(--fx-ink); stroke-width: 2; stroke-linejoin: round; }
.fx-edging .fx-edging-meter-layout { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.fx-edging .fx-edging-rollbox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.fx-edging .fx-edging-roll { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.fx-edging .fx-edging-coil { position: absolute; inset: 0; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-mint); transform: scale(calc(0.35 + var(--fx-left) * 0.054)); transition: transform 0.4s; }
.fx-edging .fx-edging-coil::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--fx-ink); border-radius: 50%; }
.fx-edging .fx-edging-core { position: absolute; left: 17px; top: 17px; width: 10px; height: 10px; box-sizing: border-box; border: 2px solid var(--fx-ink); border-radius: 50%; background: var(--fx-paper); }
.fx-edging:has(#fx-edging-m12:checked) .fx-edging-coil, .fx-edging:has(#fx-edging-m13:checked) .fx-edging-coil { transform: scale(0); }
.fx-edging .fx-edging-meter { min-width: 0; }
.fx-edging .fx-edging-gauge { display: block; width: 100%; height: 110px; }
.fx-edging .fx-edging-bar-base { fill: var(--fx-paper); stroke: var(--fx-ink); stroke-width: 1.5; }
.fx-edging .fx-edging-limit { stroke: var(--fx-coral); stroke-width: 3; }
.fx-edging .fx-edging-bar-label, .fx-edging .fx-edging-numbers { fill: var(--fx-ink); font-size: 18px; }
.fx-edging .fx-edging-says { display: grid; }
.fx-edging .fx-edging-says > p { display: block; grid-area: 1 / 1; visibility: hidden; margin: 0; font-size: 16px; line-height: 1.5; color: var(--fx-ink); }
.fx-edging:has(#fx-edging-m1:checked) .fx-edging-s1, .fx-edging:has(#fx-edging-m2:checked) .fx-edging-s2, .fx-edging:has(#fx-edging-m3:checked) .fx-edging-s3, .fx-edging:has(#fx-edging-m4:checked) .fx-edging-s4, .fx-edging:has(#fx-edging-m5:checked) .fx-edging-s5, .fx-edging:has(#fx-edging-m6:checked) .fx-edging-s6, .fx-edging:has(#fx-edging-m7:checked) .fx-edging-s7, .fx-edging:has(#fx-edging-m8:checked) .fx-edging-s8, .fx-edging:has(#fx-edging-m9:checked) .fx-edging-s9, .fx-edging:has(#fx-edging-m10:checked) .fx-edging-s10, .fx-edging:has(#fx-edging-m11:checked) .fx-edging-s11, .fx-edging:has(#fx-edging-m12:checked) .fx-edging-s12, .fx-edging:has(#fx-edging-m13:checked) .fx-edging-s13 { visibility: visible; }
@container (max-width: 480px) { .fx-edging .fx-edging-marks { grid-template-columns: repeat(7, minmax(0, 1fr)); } .fx-edging .fx-edging-meter-layout { grid-template-columns: 1fr; gap: 8px; } .fx-edging .fx-edging-rollbox { flex-direction: row; } .fx-edging .fx-edging-board { height: 540px; } }