.angle-relation-layout { display: grid; gap: 1.25rem; }
.angle-relation-builder { display: grid; gap: 1rem; min-width: 0; }
.angle-relation-instructions { padding: 1rem 1.1rem; border-left: 4px solid var(--orange); background: #fff4dd; }
.angle-relation-instructions p { margin: .35rem 0 0; }
.angle-relation-canvas { width: 100%; overflow-x: auto; border: 1px solid #bdd3d3; border-radius: 20px; background: #f8ffff; }
.angle-relation-canvas svg { display: block; width: 100%; min-width: 0; height: auto; }
.angle-side { stroke: #173f78; stroke-width: 5; stroke-linecap: round; }
.angle-arc { fill: none; stroke: #ee9f36; stroke-width: 3; }
.angle-point-label, .angle-degree-label { fill: #173f78; font: 700 20px system-ui, sans-serif; }
.angle-degree-label { fill: #9c5812; font-size: 18px; }
.angle-marked-point { fill: #ee9f36; stroke: white; stroke-width: 3; }
.angle-built-line { stroke-width: 5; stroke-linecap: round; opacity: .92; }
.angle-built-line.line-1 { stroke: #2c8b8e; }
.angle-built-line.line-2 { stroke: #b15c79; }
.angle-relation-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.angle-relation-control { display: grid; gap: .8rem; padding: 1rem; border: 1px solid #c6d7d6; border-radius: 16px; background: #fff; }
.angle-relation-control > div:first-child { display: grid; gap: .25rem; }
.angle-relation-control label { display: grid; gap: .35rem; font-weight: 700; }
.angle-relation-control select { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #a9c4c4; border-radius: 12px; background: #fff; color: var(--blue); font: inherit; }
.angle-relation-control > div:last-child { display: flex; flex-wrap: wrap; gap: .65rem; }
.angle-relation-control button { min-height: 44px; }
.angle-relation-status { margin: 0; font-weight: 700; color: #315e69; }
@media (max-width: 700px) {
  .angle-relation-controls { grid-template-columns: 1fr; }
  .angle-relation-canvas svg { width: 100%; }
  .angle-relation-control > div:last-child button { flex: 1 1 9rem; }
}
