*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#1b3040;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select{font:inherit}button,a,label.button{cursor:pointer}a{color:#087c72;text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,label.button:focus-visible{outline:3px solid #63c4ed;outline-offset:3px}header{height:70px;background:#142936;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:3px solid #31b6a2}.brand{color:white;font-size:15px;font-weight:750;letter-spacing:1.4px}.brand span{color:#a3c2cc;font-size:10px;font-weight:500;margin-left:12px}header nav{display:flex;gap:24px}header nav a{color:#c4d5dd;font-size:13px}header nav a[aria-current=page]{color:#a2e8dc}main{padding:25px 28px;max-width:1900px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#548080;font-weight:750;margin:0 0 7px}h1{font-size:29px;line-height:1.2;letter-spacing:-.6px;margin:0 0 9px}.intro p:last-child{margin:0;color:#5b707e;font-size:13px}.pill{display:inline-block;background:#dff1eb;color:#116a58;padding:5px 10px;border-radius:5px;font-size:11px;font-weight:650;white-space:nowrap}.sources{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:16px}.source-card{border:1px solid #d5dfe4;border-radius:8px;background:white;display:flex;align-items:center;text-align:left;gap:14px;padding:15px;min-width:0;color:#183343}.source-card[aria-pressed=true]{border-color:#2e9a85;box-shadow:0 0 0 1px #2e9a85;background:#f5fbf8}.source-card:hover{border-color:#2e9a85}.source-card img{width:110px;height:88px;object-fit:contain;background:#eef0f2;border-radius:4px}.source-card strong,.source-card small{display:block}.source-card strong{font-size:14px}.source-card small{font-size:11px;color:#6d818d;margin-top:4px}.source-card b{margin-left:auto;color:#6e958f;font-size:20px}.upload-card{border:1px dashed #9db5bd;border-radius:8px;background:#edf3f4;padding:14px 18px;position:relative}.upload-card strong{font-size:13px}.upload-card p{font-size:12px;color:#607582;margin:4px 0 10px}.upload-card small{font-size:10px;color:#687d88;margin-left:10px}.upload-card.dragging{background:#d6f1e7;border:2px solid #168a72}#file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.upload-card:focus-within{outline:3px solid #63c4ed}.button{display:inline-block;border:1px solid #c0cfd6;background:white;color:#2e4b5c;border-radius:5px;padding:5px 10px;font-size:12px}.status{min-height:22px;margin:14px 0;color:#426d61;font-size:12px}.status.warning{color:#91621f}.status.error{color:#ad3748}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:18px;align-items:start}.diagram-panel,.inspector{border:1px solid #d6e0e5;background:white;border-radius:9px;overflow:hidden;min-width:0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px}.toolbar h2{font-size:15px;margin:0}.toolbar small{color:#71848e;font-size:11px}.zoom-controls{display:flex;align-items:center;gap:5px}.zoom-controls button{border:1px solid #d4dfe5;background:#fff;border-radius:5px;min-width:29px;height:29px;color:#314f60}.zoom-controls span{font-size:11px;min-width:38px;text-align:center}.options{border-top:1px solid #edf0f2;border-bottom:1px solid #dae2e6;padding:10px 16px;font-size:11px;display:flex;gap:17px;flex-wrap:wrap;color:#4f6878;align-items:center}.options label{display:flex;align-items:center;gap:4px}.options span{margin-left:auto;color:#83949c}.options input{accent-color:#218d76}.canvas-viewport{height:620px;overflow:auto;padding:12px;background:#e4eaee;position:relative}#diagram{display:block;background:transparent}.hotspot{cursor:pointer;stroke:#168976;stroke-width:1;vector-effect:non-scaling-stroke;fill:#27ae8e;fill-opacity:.05}.hotspot.edge{fill:none;stroke-opacity:.38;stroke-width:8;pointer-events:stroke}.hotspot:hover{stroke:#dd8632;stroke-width:2;fill-opacity:.15}.hotspot.edge:hover{stroke-width:10;stroke-opacity:.65}.hotspot.selected{stroke:#e05842;stroke-width:3;fill:#ee8069;fill-opacity:.13}.hotspot.edge.selected{stroke-opacity:.85;stroke-width:8;fill:none}.hotspot:focus{outline:none;stroke:#e05842;stroke-width:3}.no-outlines .hotspot:not(.selected):not(:hover):not(:focus){stroke-opacity:0;fill-opacity:0}.diagram-footer{display:flex;justify-content:space-between;gap:10px;padding:11px 16px;color:#748590;font-size:11px}.inspector-top{padding:17px;border-bottom:1px solid #e6ecef}.inspector-top label{display:block;font-size:11px;color:#667e8d;margin-bottom:8px}select{width:100%;background:white;color:#2e495a;border:1px solid #cbd8df;padding:8px;border-radius:5px;font-size:12px}.empty-inspector{padding:55px 28px;text-align:center;color:#718592}.empty-symbol{font-size:38px;color:#70a99c}.empty-inspector h3{font-size:16px;color:#345563;margin:15px 0 5px}.empty-inspector p{font-size:12px}.evidence-note{margin-top:25px;background:#f1f6f4;padding:10px;border-radius:5px;color:#507869}.element-summary{padding:18px}.element-summary h3{font-size:19px;line-height:1.3;margin:11px 0 9px;overflow-wrap:anywhere}.element-summary p{font-size:12px;color:#627a87;margin:0 0 14px}.element-summary a{font-size:11px}dl{display:grid;grid-template-columns:76px minmax(0,1fr);gap:6px 10px;font-size:11px;margin:0 0 14px}dt{color:#8a9ba4}dd{margin:0;color:#425e6e;overflow-wrap:anywhere}.code-tabs{display:flex;border-top:1px solid #e3e9ec;border-bottom:1px solid #dbe5ea;background:#f5f8fa}.code-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:11px 13px;color:#6d818e;font-size:11px}.code-tabs button[aria-selected=true]{border-bottom-color:#14866d;color:#0d795f;font-weight:650}#copy-xml{margin-left:auto}pre{background:#162936;color:#e0eef2;font:11px/1.6 Consolas,monospace;overflow:auto;max-height:320px;min-height:150px;margin:0;padding:16px;white-space:pre}.copy-status{font-size:11px;color:#257762;margin:0;padding:4px 15px;min-height:22px}.scope-note{font-size:11px;color:#7b8f9a;margin:16px 0}.loading{opacity:.6;pointer-events:none}[hidden]{display:none!important}
@media(min-width:1700px){.canvas-viewport{height:740px}}
@media(max-width:1200px){.source-card{gap:9px;padding:12px}.source-card img{width:74px;height:80px}.source-card strong{font-size:12px}.workspace{grid-template-columns:minmax(0,1fr) 330px}.upload-card small{display:block;margin:6px 0 0}.canvas-viewport{height:550px}.options span{display:none}}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.sources{grid-template-columns:1fr 1fr}.upload-card{grid-column:1/-1}.upload-card small{display:inline;margin-left:10px}.canvas-viewport{height:500px}.inspector{max-height:none}.empty-inspector{padding:25px}.brand span{display:none}}
@media(max-width:580px){header{padding:0 16px}header nav{gap:14px}.brand{font-size:12px}main{padding:20px 12px}.intro .pill{display:none}h1{font-size:24px}.sources{grid-template-columns:1fr;gap:10px}.upload-card{grid-column:auto}.source-card img{width:90px;height:56px}.source-card strong{font-size:13px}.toolbar{padding:12px}.toolbar h2{font-size:13px}.canvas-viewport{height:360px}.diagram-footer{font-size:10px}.options{padding:8px;gap:12px}.zoom-controls{gap:3px}}
/* Compact layout: the canvas takes the space; the XML inspector opens on demand */
header{height:46px;padding:0 20px}main{padding:10px 16px;max-width:none}.scope-note{margin:8px 0}
.toolbar{padding:6px 12px;gap:8px 14px;flex-wrap:wrap}.diagram-heading{min-width:0}.toolbar h2{font-size:14px;line-height:1.25}.toolbar small{display:block;line-height:1.3}
.sources{display:flex;flex-wrap:wrap;gap:6px;flex:1;justify-content:center;min-width:0}.source-card{padding:3px 10px 3px 3px;gap:8px;border-radius:6px}.source-card img{width:42px;height:30px}.source-card strong{font-size:12px;line-height:1.2}.source-card small{font-size:10px;margin-top:1px}
.upload-card{grid-column:auto;padding:3px 10px 3px 4px;display:flex;align-items:center;gap:8px;border-radius:6px}.upload-card small{display:inline;margin:0;font-size:10px}.upload-card .button{padding:3px 9px;font-size:11px}
.options{padding:5px 14px}.options .status{margin:0 0 0 auto;min-height:0;font-size:11px;text-align:right}.diagram-footer{padding:6px 14px}
.workspace{grid-template-columns:minmax(0,1fr);gap:12px}.workspace.with-inspector{grid-template-columns:minmax(0,1fr) 380px}.canvas-viewport{height:calc(100vh - 190px);min-height:420px}.workspace.with-inspector .inspector{max-height:calc(100vh - 75px);overflow:auto}
.canvas-viewport{cursor:grab;user-select:none;touch-action:none}.canvas-viewport.dragging,.canvas-viewport.dragging .hotspot{cursor:grabbing}
#toggle-xml{padding:0 10px;margin-left:6px}#toggle-xml[aria-expanded=true]{background:#dff1eb;border-color:#2e9a85;color:#116a58}
@media(max-width:900px){.workspace.with-inspector{grid-template-columns:1fr}.workspace.with-inspector .inspector{max-height:none}}
@media(max-width:580px){.sources{justify-content:flex-start}.options .status{margin:0;text-align:left}.canvas-viewport{height:calc(100vh - 300px);min-height:340px}}
