/* Scoped display-only Diagram player. No customer/editor style overrides. */
.sdp-player{--sdp-fill:#fff;--sdp-stroke:#64748b;--sdp-text:#243746;max-width:100%;min-width:0;margin:12px 0;border:1px solid #d8e0e4;border-radius:10px;background:#f8fafb;color:#243746;overflow:hidden}
.sdp-player:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.sdp-player .sdp-note{margin:0;padding:12px 14px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.sdp-player .sdp-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#f1f4f5;isolation:isolate}
.sdp-player .sdp-element{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;transform-origin:center;container-type:size;color:var(--sdp-text);will-change:auto}
.sdp-player .sdp-role-card,.sdp-player .sdp-role-document,.sdp-player .sdp-role-interface,.sdp-player .sdp-role-control{background:var(--sdp-fill);border:1px solid var(--sdp-stroke);border-radius:8px;box-shadow:3px 4px 0 #24374614}
.sdp-player .sdp-role-document{border-radius:3px}
.sdp-player .sdp-role-control{border-radius:18px}
.sdp-player .sdp-role-area{background:var(--sdp-fill);border:2px solid var(--sdp-stroke);border-radius:4px}
.sdp-player .sdp-role-line::before{content:"";display:block;width:100%;border-top:2px solid var(--sdp-stroke)}
.sdp-player .sdp-label{position:relative;display:block;max-width:100%;max-height:100%;padding:0 2px;font-size:clamp(7px,min(12cqw,55cqh),16px);font-weight:600;line-height:1.15;overflow:hidden;overflow-wrap:anywhere;text-align:center;white-space:pre-wrap}
.sdp-player .sdp-prop{position:absolute;inset:12% 10%;display:flex;flex-direction:column;gap:12%;opacity:.18}
.sdp-player .sdp-prop-line{height:8%;width:70%;background:var(--sdp-stroke);border-radius:3px}
.sdp-player .sdp-prop-line:nth-child(2){width:90%}
.sdp-player .sdp-role-interface .sdp-prop{inset:8%;border-top:2px solid var(--sdp-stroke);padding-top:9%}
.sdp-player .sdp-controls{display:flex;align-items:center;gap:10px;padding:10px 12px;min-width:0;flex-wrap:wrap}
.sdp-player .sdp-play{min-width:64px;min-height:40px;padding:7px 12px;border:1px solid #64748b;border-radius:6px;background:#fff;color:#243746;font:inherit;cursor:pointer}
.sdp-player .sdp-play:focus-visible,.sdp-player .sdp-seek:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.sdp-player .sdp-seek{flex:1 1 100px;min-width:80px;max-width:100%;min-height:32px;accent-color:#2563eb}
.sdp-player .sdp-time{font:12px ui-monospace,monospace;white-space:nowrap}
.sdp-player .sdp-active-beats,.sdp-player .sdp-source{padding:0 14px 12px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.sdp-player .sdp-active-beats p,.sdp-player .sdp-source p{margin:6px 0;white-space:pre-wrap}
.sdp-player .sdp-source summary{cursor:pointer;padding:6px 0}
.sdp-player .sdp-connections{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.sdp-player .sdp-connections path,.sdp-player .sdp-connections polyline{fill:none;stroke:var(--sdp-stroke);stroke-width:2;vector-effect:non-scaling-stroke}
.sdp-player .sdp-connections [data-relation="association"] path,.sdp-player .sdp-connections [data-relation="blocked"] path{stroke-dasharray:6 5}
.sdp-player .sdp-connections [data-condition-id]{stroke-dasharray:3 4;stroke-width:1.4}
.sdp-player .sdp-element[data-connection-active="true"]{outline:2px solid #2563eb}
.sdp-player .sdp-relations{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px}
.sdp-player .sdp-relation{font:inherit;font-size:12px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #64748b;border-radius:6px;padding:6px 8px;max-width:100%;cursor:pointer}
.sdp-player .sdp-relation:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(max-width:420px){.sdp-player .sdp-controls{gap:6px}.sdp-player .sdp-time{width:100%;text-align:right}.sdp-player .sdp-label{padding:0 1px}}
