/* Local Canvas graph surface. Evidence and authorization remain in app.mjs. */
.eai-graph-host{position:relative;isolation:isolate;min-width:0;width:100%;height:clamp(440px,62vh,760px);min-height:440px;overflow:hidden;border-radius:17px;background:radial-gradient(ellipse at 22% 24%,#f2eefc99,transparent 47%),radial-gradient(ellipse at 81% 72%,#e4f5f899,transparent 48%),#fcfdff;border:1px solid #e4eaf1}
.eai-graph-canvas{position:absolute;inset:0 0 54px;outline:none;touch-action:none;cursor:grab}
.eai-graph-canvas:active{cursor:grabbing}.eai-graph-canvas:focus-visible{outline:3px solid #68abc9;outline-offset:-4px}
.eai-graph-instructions{position:absolute;top:10px;left:12px;right:12px;z-index:2;pointer-events:none;margin:0!important;padding:5px 9px;max-width:max-content;background:#ffffffd9;border:1px solid #edf1f7;border-radius:6px;font-size:10px!important;line-height:1.6;color:#8191a4}
.eai-graph-view-status{position:absolute;bottom:57px;left:12px;right:12px;pointer-events:none;text-align:right;font-size:9px;color:#8d9aad;line-height:1.55}
.eai-graph-progress{position:absolute;bottom:0;left:0;right:0;min-height:54px;padding:9px 12px;border-top:1px solid #e5ebf3;background:#ffffffed;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:3}
.eai-graph-progress>span{font-size:10px;line-height:1.6;color:#74869a;font-variant-numeric:tabular-nums;min-width:0}
.eai-graph-progress[hidden]{display:none!important}
.eai-graph-progress>button{font:inherit;font-size:10px;line-height:1.5;min-height:34px;max-width:210px;flex:none;border:1px solid #d5e5ef;border-radius:7px;background:#f5fbfd;color:#227b99;padding:6px 10px;cursor:pointer}
.eai-graph-progress>button:disabled{background:#f7f8fa;color:#8a98a5;cursor:default}.eai-graph-progress>button[hidden]{display:none}
.eai-graph-tooltip{position:absolute;z-index:12;pointer-events:none;max-width:min(280px,calc(100% - 16px));padding:8px 11px;border:1px solid #d7e4ee;border-radius:8px;background:#fffffff5;box-shadow:0 5px 20px #23435c14;color:#355771;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
.eai-graph-tooltip[hidden],.eai-graph-overlap[hidden]{display:none!important}
.eai-graph-overlap{position:absolute;z-index:15;inset:auto 14px 70px auto;box-sizing:border-box;width:min(340px,calc(100% - 28px));max-height:min(360px,calc(100% - 95px));overflow:auto;padding:13px;background:#fffffff7;border:1px solid #cbdfe9;border-radius:12px;box-shadow:0 16px 42px #284c682e;overscroll-behavior:contain}
.eai-graph-overlap>strong{display:block;font-size:12px;line-height:1.7;color:#254c68;margin-bottom:10px}.eai-graph-overlap-list{display:flex;flex-direction:column;gap:7px}
.eai-graph-overlap button{font:inherit;min-height:44px;max-width:100%;text-align:left;border:1px solid #e1e9f1;border-radius:7px;background:#f8fbfe;color:#355771;padding:8px 10px;cursor:pointer;overflow-wrap:anywhere}
.eai-graph-overlap-list button>span{display:block;font-size:11px;font-weight:650;line-height:1.65}.eai-graph-overlap-list small{display:block;font-size:9px;line-height:1.6;color:#8a9caf}
.eai-graph-overlap-dismiss{display:block;margin:9px 0 0;width:100%;text-align:center!important;background:#fff!important;color:#788e9f!important}
.eai-graph-host button:focus-visible{outline:3px solid #68abc9;outline-offset:2px}
@media(min-width:1600px){.eai-graph-host{height:clamp(570px,65vh,890px)}}
@media(max-width:900px){.eai-graph-host{height:550px;min-height:400px}.eai-graph-progress{flex-wrap:wrap;min-height:54px}.eai-graph-instructions{font-size:9px!important}.eai-graph-progress>span{font-size:9px}.eai-graph-view-status{font-size:8px}}
@media(max-width:540px){.eai-graph-host{height:510px;min-height:380px}.eai-graph-instructions{right:8px;left:8px;max-width:calc(100% - 16px)}.eai-graph-progress{gap:5px;padding:7px 9px}.eai-graph-progress>button{font-size:9px;padding:5px 7px;max-width:170px}.eai-graph-progress>span{max-width:calc(100% - 140px)}.eai-graph-overlap{bottom:75px;right:9px;width:calc(100% - 18px)}}
@media(prefers-reduced-motion:reduce){.eai-graph-host *{scroll-behavior:auto!important}}
