.ar-heading { margin-bottom: 8px; }
.ar-heading h3 { margin: 0 0 4px; font-size: 24px; }
.ar-version { color: var(--muted); font-size: 12px; }
.ar-message:empty { display: none; }
.ar-legend { display: flex; gap: 12px 24px; flex-wrap: wrap; margin: 12px 0; font-size: 12px; color: #53586b; }
.ar-line { display: inline-flex; align-items: center; gap: 8px; }
.ar-line::before { content: ""; display: block; width: 32px; border-top: 2px solid #1c1e40; }
.ar-line.planned::before { border-top-style: dashed; }
.ar-mobile-picker { display: none; }
.ar-viewport { overflow: auto; width: 100%; max-height: 640px; border-block: 1px solid #dbe0e8; background: #fff; overscroll-behavior: contain; }
.ar-canvas { margin-inline: auto; }
.ar-canvas svg { width: 100%; display: block; font-family: inherit; letter-spacing: 0; }
.ar-canvas svg.ar-node-icon { width: 20px; height: 20px; color: #1c1e40; }
.ar-canvas .c-grid { stroke: #e8ecf0; fill: none; }
.ar-canvas .c-mask { fill: #fff; stroke: none; }
.ar-canvas [data-node-id] > rect:not(.c-mask) { fill: #f5f7fa; stroke: #1c1e40; }
.ar-canvas [data-node-id][data-material="idea"] > rect:not(.c-mask) { stroke-dasharray: 6 5; }
.ar-canvas [data-node-id][data-material="described"] > rect:not(.c-mask) { stroke-dasharray: 2 4; }
.ar-canvas [data-node-id][data-material="artifact"] > rect:not(.c-mask) { stroke: none; }
.ar-canvas .ar-material-outline { stroke: #1c1e40; stroke-width: 3.8; fill: none; stroke-linecap: round; pointer-events: none; }
.ar-canvas [data-node-id][data-phase="Detailkonzept"] > rect:not(.c-mask) { fill: #f8eeee; }
.ar-canvas [data-node-id][data-phase="Umsetzung"] > rect:not(.c-mask) { fill: #f0f5f7; }
.ar-canvas [data-node-id][data-phase="Grobkonzept"] > rect:not(.c-mask) { fill: #f8f1df; }
.ar-canvas [data-node-id][aria-pressed="true"] > rect:not(.c-mask) { fill: #e5e8f2; }
.ar-canvas [data-node-id] { cursor: pointer; outline: none; }
.ar-canvas [data-node-id]:focus-visible > rect:not(.c-mask) { stroke: #bf2b59; stroke-width: 4; }
.ar-canvas text { fill: #1c1e40; }
.ar-canvas text[data-node-label] { font-size: 17px; font-weight: 650; }
.ar-canvas text[data-detail="context"] { font-size: 12px; fill: #53586b; }
.ar-canvas text[data-detail="fine"] { font-size: 11px; fill: #913e53; }
.ar-canvas .semantic-sigil { stroke: #1c1e40; fill: none; stroke-width: 1.5; }
.ar-canvas .sigil-fill { fill: #1c1e40; stroke: none; }
.ar-canvas path[data-edge-id]:not(.ar-edge-target) { stroke: #777c91; fill: none; stroke-width: 1.8; }
.ar-canvas path[data-edge-id][data-planned="true"]:not(.ar-edge-target) { stroke-dasharray: 6 5; }
.ar-canvas path[data-edge-id][data-selected="true"]:not(.ar-edge-target) { stroke: #1c1e40; stroke-width: 2.8; }
.ar-canvas marker polygon { fill: #1c1e40; }
.ar-canvas .ar-edge-target { stroke: transparent; stroke-width: 18; fill: none; cursor: pointer; pointer-events: stroke; outline: none; }
.ar-canvas .ar-edge-target:focus-visible { stroke: #bf2b5970; stroke-width: 8; }
.ar-inspector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid #dbe0e8; }
.ar-inspector section { min-width: 0; }
.ar-inspector h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; overflow-wrap: anywhere; }
.ar-inspector p { font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.ar-inspector summary { cursor: pointer; font-size: 13px; padding-block: 12px; }
.ar-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: #53586b; }
.ar-state { font-weight: 650; color: #913e53; }
.ar-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0; }
.ar-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; }
.ar-connection { width: 100%; min-height: 60px; display: flex; align-items: center; text-align: left; justify-content: flex-start; padding: 10px 0; border-radius: 0; border-bottom: 1px solid #e6e9ef; gap: 12px; }
.ar-connection span:nth-child(2) { flex: 1; min-width: 0; }
.ar-connection strong, .ar-connection small { display: block; white-space: normal; overflow-wrap: anywhere; }
.ar-connection strong { font-size: 14px; }
.ar-connection small { font-size: 12px; font-weight: 400; color: #53586b; margin-top: 3px; }
.ar-connection-line { padding: 5px; border: 1px solid #1c1e40; border-radius: 50%; }
.ar-connection-line[data-planned="true"] { border-style: dashed; }
.ar-endpoints { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ar-origin { padding: 16px 0; color: #53586b; font-size: 12px; overflow-wrap: anywhere; }
.ar-origin summary { cursor: pointer; }
@media (max-width: 680px) {
  .ar-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ar-mobile-picker { display: block; margin: 16px 0; }
  .ar-mobile-picker label { font-size: 12px; }
  .ar-viewport { max-height: 400px; }
  .ar-inspector { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ar-legend { gap: 8px 16px; }
  .ar-canvas { margin: 0; }
}
