.stream-visual-page{width:100%;max-width:none;box-sizing:border-box;padding:clamp(20px,3vw,48px);color:#20272a}
.stream-visual-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px solid #d6dad5}
.stream-visual-heading h1{font-size:clamp(30px,4vw,52px);letter-spacing:-.035em;line-height:1.1;margin:8px 0}
.stream-visual-heading p{color:#66716c;margin:6px 0;font-size:14px}
.stream-visual-back,.stream-visual-source{font-size:13px;color:#42625a;text-decoration:none}
.stream-visual-back:hover,.stream-visual-source:hover{text-decoration:underline}
.stream-visual-stage{overflow:auto;width:100%;padding:32px 0;box-sizing:border-box;min-height:55vh}
.stream-visual-diagram{width:max-content;min-width:100%;display:flex;justify-content:center;align-items:flex-start}
.stream-visual-diagram svg{max-width:none!important;height:auto;min-width:650px}
.stream-visual-embed{display:block;width:100%;min-height:75vh;border:0;background:white;margin-top:22px}
.stream-visual-surface{position:relative}
.stream-visual-fullscreen{position:fixed;right:24px;bottom:24px;z-index:50;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #cbd5cf;border-radius:50%;background:#fff;color:#263e34;box-shadow:0 3px 14px #0002;cursor:pointer}
.stream-visual-fullscreen[hidden],.stream-visual-fullscreen svg[hidden]{display:none}
.stream-visual-fullscreen:focus-visible{outline:2px solid #42625a;outline-offset:3px}
.stream-visual-surface:fullscreen,.stream-visual-surface.is-window-fullscreen{box-sizing:border-box;width:100%;height:100%;overflow:auto;background:#fff}
.stream-visual-surface.is-window-fullscreen{position:fixed;inset:0;z-index:10000}
.stream-visual-surface:fullscreen .stream-visual-stage,.stream-visual-surface.is-window-fullscreen .stream-visual-stage{min-height:100vh;padding:20px}
.stream-visual-surface:fullscreen .stream-visual-embed,.stream-visual-surface.is-window-fullscreen .stream-visual-embed{min-height:100vh;margin:0}
.stream-visual-group{padding:24px 0;border-bottom:1px solid #d6dad5}
.stream-visual-group h2{font-size:16px;font-weight:600;margin:0 0 14px;color:#53635d}
.stream-visual-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}
.stream-visual-card{display:grid;grid-template-columns:1fr auto;gap:8px;padding:18px;border:1px solid #d9dfda;border-radius:8px;background:#fff;color:#23352e}
.stream-visual-card:focus-within,.stream-visual-card:hover{border-color:#607e6f;box-shadow:0 2px 12px #23352e12}
.stream-visual-card>a{color:inherit;text-decoration:none}
.stream-visual-card>a:hover{text-decoration:underline}
.stream-visual-preview{display:inline-flex;align-items:center;justify-content:center;padding:2px;border:0;background:transparent;color:inherit;cursor:pointer}
.stream-visual-preview[hidden]{display:none}
.stream-visual-preview:focus-visible{outline:2px solid #42625a;outline-offset:3px}
.stream-visual-list small{grid-column:1/-1;color:#6c7972;line-height:1.4}
.stream-visual-modal{box-sizing:border-box;width:min(96vw,1600px);max-width:none;height:94vh;height:94dvh;max-height:none;padding:0;border:1px solid #ccd5cf;border-radius:10px;background:#fff;color:#20272a;box-shadow:0 20px 70px #0005}
.stream-visual-modal[open]{display:flex;flex-direction:column}
.stream-visual-modal::backdrop{background:rgba(20,30,25,.65)}
.stream-visual-modal-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #d6dad5}
.stream-visual-modal-selectors{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.stream-visual-modal-selectors select{box-sizing:border-box;min-width:0;max-width:45%;padding:6px 8px;border:1px solid #d6dad5;border-radius:5px;background:#fff;color:inherit;font:inherit;font-size:14px}
.stream-visual-modal-selectors [data-visual-modal-item]{flex:1;max-width:520px;font-weight:700}
.stream-visual-modal-selectors [data-visual-modal-item] option{font-weight:700}
.stream-visual-modal-actions{display:flex;align-items:center;gap:12px;flex:none}
.stream-visual-modal-head a{white-space:nowrap;color:#42625a;font-size:13px}
.stream-visual-modal-actions button{border:0;background:none;color:inherit;font-size:28px;line-height:1;cursor:pointer}
.stream-visual-modal-actions button:disabled{opacity:.3;cursor:default}
.stream-visual-modal-content{flex:1;min-height:0;min-width:0;overflow:auto;background:#fff}
.stream-visual-modal-content [data-preview-diagram]{box-sizing:border-box;width:100%;height:100%;min-height:200px;padding:12px;display:flex;align-items:center;justify-content:center}
.stream-visual-modal-content [data-preview-diagram] svg{display:block;width:100%;height:100%;max-width:100%!important;max-height:100%;object-fit:contain}
.stream-visual-modal-content iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.stream-visual-modal-content [role="status"]{padding:20px;color:#53635d}
@media(max-width:600px){.stream-visual-page{padding:20px 14px}.stream-visual-heading h1{font-size:30px}.stream-visual-stage{padding:20px 0}.stream-visual-embed{min-height:70vh}.stream-visual-modal-head{flex-wrap:wrap;gap:8px}.stream-visual-modal-selectors{flex-basis:100%}.stream-visual-modal-actions{margin-left:auto}}
