.project-tabs{display:flex;gap:7px;border-bottom:1px solid var(--theme-line, #e5ebf5);margin:-2px 0 23px;padding-bottom:10px}.project-tabs button{display:flex;align-items:center;gap:7px;border-radius:7px;padding:9px 14px;font-size:12px;color:var(--theme-text-muted, #91a1bc)}.project-tabs button.active{color:var(--theme-accent, #647fcd);background:var(--theme-accent-soft, #eaf0fd)}.project-tabs button:hover{background:var(--theme-accent-soft, #f0f4fc)}.maps-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.maps-title{display:flex;align-items:center;gap:14px}.maps-symbol{width:51px;height:51px;display:grid;place-items:center;border:1px solid var(--theme-line, #e1e8fb);border-radius:16px;color:var(--theme-text-muted, #8da3d7);background:linear-gradient(135deg,var(--theme-accent-soft, #eaf0ff),var(--theme-panel, #f8faff))}.maps-title .eyebrow{font-size:8px}.maps-title h3{font-size:18px;font-weight:600;letter-spacing:-.4px;color:var(--theme-text, #586d93);margin:4px 0 6px}.maps-title p{font-size:11px;color:var(--theme-text-secondary, #8b9bb5)}.maps-bar{display:flex;align-items:center;gap:16px;background:var(--theme-panel, white);border:1px solid var(--theme-line, #e2e8f3);border-radius:12px 12px 0 0;padding:12px 16px}.maps-picker{display:flex;align-items:center;gap:7px;color:var(--theme-text-muted, #8198ca);min-width:0}.maps-picker select{border:0;background:transparent;font-size:12px;font-weight:550;max-width:250px;min-width:150px;padding:7px 25px 7px 2px;color:var(--theme-text, #61759a)}.maps-picker .icon-btn{height:27px;width:27px}.maps-count{font-size:10px;color:var(--theme-text-muted, #95a5bf);white-space:nowrap}.maps-save{margin-left:auto;font-size:9px;color:var(--theme-success, #97b0a3);white-space:nowrap}.maps-workspace{display:grid;grid-template-columns:235px minmax(0,1fr);border:1px solid var(--theme-line, #e2e8f3);border-top:0;border-radius:0 0 12px 12px;overflow:hidden;height:660px;max-height:80vh;min-height:450px;background:var(--theme-panel, #fff)}.maps-palette{display:flex;flex-direction:column;background:var(--theme-panel, #fcfdff);border-right:1px solid var(--theme-line, #e4eaf5);min-height:0;padding:20px 14px 12px}.maps-palette header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.maps-palette .eyebrow{font-size:7px;letter-spacing:1.2px}.maps-palette h4{font-size:13px;font-weight:550;color:var(--theme-text, #61749a);margin-top:5px}.maps-palette h4>span{display:inline-block;font-size:9px;padding:2px 5px;background:var(--theme-accent-soft, #edf2ff);color:var(--theme-text-muted, #8ea3d0);border-radius:4px;margin-left:5px}.maps-search{display:flex;gap:7px;align-items:center;color:var(--theme-text-muted, #a0aec6);border:1px solid var(--theme-line, #e4eaf4);border-radius:7px;background:var(--theme-panel, white);padding:9px}.maps-search input{width:100%;min-width:0;font-size:11px;background:none;border:0;outline:none!important;box-shadow:none!important}.palette-hint{font-size:9px;color:var(--theme-text-muted, #a3afc2);line-height:1.7;margin:11px 0 15px}.palette-items{overflow:auto;flex:1;padding:2px 3px 12px;min-height:0}.palette-card{padding:12px 10px;background:var(--theme-panel, white);border:1px solid var(--theme-line, #e1e8f4);border-radius:10px;box-shadow:0 3px 12px var(--theme-shadow-soft, #617aac05);margin-bottom:10px;cursor:grab;transition:box-shadow .2s,border-color .2s}.palette-card:hover{border-color:var(--theme-line, #bbc9e9);box-shadow:0 5px 16px var(--theme-shadow-soft, #8297ca12)}.palette-card:active{cursor:grabbing}.palette-card.blocked{background:var(--theme-warning-soft, #fffdf8);border-color:var(--theme-warning-line, #ede0c6)}.palette-card-title{display:flex;gap:5px;align-items:flex-start;color:var(--theme-text-muted, #a0b0cf)}.palette-card-title>svg{flex-shrink:0;margin-top:4px}.palette-card-title strong{font-size:11px;color:var(--theme-text, #637899);font-weight:550;line-height:1.65;overflow-wrap:anywhere;flex:1}.palette-card-title .icon-btn{flex-shrink:0;height:23px;width:23px;color:var(--theme-text-muted, #819bd5);background:var(--theme-surface-muted, #f2f5fc)}.palette-card small{display:block;font-size:9px;color:var(--theme-text-muted, #9aa9c0);line-height:1.7;overflow-wrap:anywhere;margin:5px 0 10px 18px}.map-status{display:inline-block;width:max-content;font-size:8px;border-radius:5px;padding:4px 7px;color:var(--theme-text-muted, #99a8c0);background:var(--theme-surface, #f0f3f8);white-space:nowrap}.map-status.doing{color:var(--theme-accent, #8095ce);background:var(--theme-accent-soft, #edf2ff)}.map-status.done{color:var(--theme-success, #77a38c);background:var(--theme-success-soft, #edf7f0)}.palette-blocked{display:flex;align-items:center;gap:4px;font-size:8px;color:var(--theme-warning, #b69d69);margin-top:8px;overflow-wrap:anywhere}.maps-palette footer{display:flex;align-items:flex-start;gap:6px;font-size:8px;color:var(--theme-text-muted, #9caecb);line-height:1.8;border-top:1px solid var(--theme-line, #e9edf5);padding-top:12px}.maps-palette footer svg{flex-shrink:0;margin-top:2px}.palette-empty{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--theme-text-muted, #b2c0db);text-align:center;padding:25px 6px}.palette-empty p{font-size:10px;color:var(--theme-text-muted, #9aabc4);line-height:1.8}.palette-empty .text-btn{font-size:10px}.maps-viewport{position:relative;overflow:hidden;isolation:isolate;background-color:var(--theme-panel, #f8faff);background-image:radial-gradient(circle,var(--theme-accent-soft, #dce4f5) 1px,transparent 1.3px);cursor:grab;touch-action:none;outline-offset:-4px!important;min-width:0}.maps-viewport.is-panning{cursor:grabbing}.maps-viewport.is-connecting{cursor:crosshair}.maps-world{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;pointer-events:none}.maps-connections{position:absolute;inset:0;overflow:visible;pointer-events:none}.map-edge{fill:none;stroke:var(--theme-line-strong, #a5b8e7);stroke-width:2;transition:stroke .15s}.map-edge.selected{stroke:var(--theme-accent-line, #627edd);stroke-width:3}.map-edge.draft{stroke-dasharray:7 5;stroke:var(--theme-line-strong, #8a9fda)}.map-edge-hit{fill:none;stroke:transparent;stroke-width:18;pointer-events:stroke;cursor:pointer}.map-node{position:absolute;width:272px;height:184px;background:var(--theme-panel, #fff);border:1px solid var(--theme-line, #dce5f7);border-radius:13px;box-shadow:0 7px 24px var(--theme-shadow-soft, #5975ae0c);pointer-events:auto;transition:box-shadow .18s,border-color .18s}.map-node:hover{box-shadow:0 10px 30px var(--theme-shadow-soft, #5975ae18);border-color:var(--theme-line, #b4c5ec)}.map-node.connecting{border-color:var(--theme-accent-line, #8da6e8);box-shadow:0 0 0 4px var(--theme-shadow, #b0c5fd26)}.map-node.blocked{border-color:var(--theme-warning-line, #e6d5ac);background:var(--theme-warning-soft, #fffdf7)}.map-node.completed{border-color:var(--theme-success-line, #d4e9dc);background:var(--theme-success-soft, #fcfefc)}.map-node-grip{display:flex;align-items:center;justify-content:space-between;gap:5px;cursor:grab;border-bottom:1px solid var(--theme-line, #edf1f9);padding:11px 12px;color:var(--theme-text-muted, #a1b0cc);border-radius:13px 13px 0 0;background:var(--theme-panel, #f9fbff);height:40px;touch-action:none;-webkit-user-select:none;user-select:none}.blocked .map-node-grip{background:var(--theme-warning-soft, #fbf5e9);border-color:var(--theme-warning-line, #f0e7d4);color:var(--theme-warning, #c1af89)}.completed .map-node-grip{background:var(--theme-success-soft, #f3f9f5)}.map-node-grip:active{cursor:grabbing}.map-node-grip>span{display:flex;align-items:center;gap:6px;min-width:0;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.map-node-grip>span svg{flex-shrink:0}.map-node-grip .icon-btn{height:22px;width:22px;flex-shrink:0}.map-node-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;text-align:left;margin:14px 17px 10px;padding:0;font-size:13px;line-height:1.6;font-weight:550;color:var(--theme-text, #607699);height:42px;width:calc(100% - 34px)}.map-node-title:hover{color:var(--theme-text, #506fc1)}.map-node-info{display:flex;justify-content:space-between;align-items:center;padding:0 17px}.map-node-info>button{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--theme-text-muted, #9fadc5);padding:0}.map-node-foot,.map-node-blocked{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:11px 17px 0;font-size:9px;color:var(--theme-text-muted, #a1b0cc);line-height:1.6}.map-node-blocked{justify-content:flex-start;color:var(--theme-warning, #b39965)}.map-node-blocked svg{flex-shrink:0}.map-node-blocked>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.map-node-blocked strong{font-weight:550}.map-port{position:absolute;top:84px;width:16px;height:16px;z-index:3;border-radius:50%;background:var(--theme-panel, #fff);border:3px solid var(--theme-line-strong, #a5b8e7);padding:0;box-shadow:0 0 0 5px var(--theme-shadow, #f8faff80);transition:transform .15s,background .15s;cursor:crosshair;touch-action:none}.map-port.input{left:-9px}.map-port.output{right:-9px;background:var(--theme-accent-soft, #e7edfc)}.map-port:hover,.is-connecting .map-port.input:hover{transform:scale(1.3);background:var(--theme-accent-hover, #859fdf);border-color:var(--theme-accent-line, #6f8bd3)}.is-connecting .map-port.input{border-color:var(--theme-accent-line, #7694dc);box-shadow:0 0 0 6px var(--theme-shadow, #90acf425)}.map-overlay{position:absolute;z-index:5;pointer-events:auto}.map-guide{left:50%;top:44%;transform:translate(-50%,-50%);width:320px;max-width:80%;text-align:center;pointer-events:none}.map-guide-icon{width:76px;height:76px;background:linear-gradient(135deg,var(--theme-accent-soft, #e9efff),var(--theme-panel, #f8faff));border:1px solid var(--theme-line, #dfe7f9);border-radius:24px;display:grid;place-items:center;margin:0 auto 17px;color:var(--theme-text-muted, #a0b2de);transform:rotate(-8deg);box-shadow:0 7px 26px var(--theme-shadow-soft, #7a97d40a)}.map-guide h4{font-size:17px;color:var(--theme-text-secondary, #7188b1);font-weight:550;margin-bottom:10px}.map-guide p{font-size:11px;color:var(--theme-text-muted, #a3b1c9);line-height:1.9}.map-controls{bottom:20px;right:20px;display:flex;align-items:center;gap:2px;padding:5px;background:var(--theme-panel, #ffffffed);border:1px solid var(--theme-line, #dfe6f6);border-radius:10px;box-shadow:0 4px 16px var(--theme-shadow-soft, #526fa00a);color:var(--theme-text-muted, #8da1ca)}.map-controls button{height:30px;width:30px;border-radius:7px;display:grid;place-items:center}.map-controls button:hover{background:var(--theme-accent-soft, #edf2ff);color:var(--theme-text-secondary, #627ec3)}.map-controls span{font-size:10px;min-width:40px;text-align:center}.map-controls i{height:18px;width:1px;background:var(--theme-surface, #e8edf7);margin:0 3px}.map-navigation-hint{bottom:26px;left:20px;display:flex;align-items:center;gap:6px;font-size:8px;color:var(--theme-text-muted, #9badd0);pointer-events:none;max-width:calc(100% - 225px);line-height:1.7}.map-connection-tip,.map-edge-actions{top:16px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:9px;background:var(--theme-panel, #fff);box-shadow:0 5px 24px var(--theme-shadow-soft, #526fa011);border:1px solid var(--theme-line, #dbe5fa);border-radius:9px;padding:9px 12px;font-size:10px;color:var(--theme-text-secondary, #8398c3);width:max-content;max-width:90%}.map-edge-actions .text-btn{font-size:10px}.maps-empty{padding:54px 20px;text-align:center;border:1px dashed var(--theme-line, #dce5f7);border-radius:13px;background:linear-gradient(125deg,var(--theme-panel, #fff),var(--theme-panel, #f9fbff))}.maps-empty-cards{display:flex;gap:14px;align-items:center;justify-content:center;color:var(--theme-text-muted, #b0c2e6);margin-bottom:30px}.maps-empty-cards span{background:var(--theme-panel, white);border:1px solid var(--theme-line, #dce6f8);box-shadow:0 5px 18px var(--theme-shadow-soft, #6781b20a);padding:20px 23px;border-radius:12px;font-size:11px;color:var(--theme-text-muted, #92a7d2);transform:rotate(-6deg)}.maps-empty-cards span:nth-of-type(2){transform:rotate(4deg)}.maps-empty-cards span:nth-of-type(3){transform:rotate(-3deg)}.maps-empty h3{font-size:17px;font-weight:550;color:var(--theme-text, #6f85a8);margin-bottom:13px}.maps-empty p{font-size:12px;line-height:1.9;color:var(--theme-text-muted, #99abc8);margin-bottom:24px}.maps-stage{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.maps-stage .maps-viewport{flex:1;min-height:0;outline:none!important}.maps-workspace:has(.maps-viewport:focus-visible){outline:2px solid var(--theme-accent-line, #b5c5ed);outline-offset:3px}.maps-canvas-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;min-height:54px;padding:7px 12px;background:var(--theme-panel, #fff);border-top:1px solid var(--theme-line, #e4eaf5);position:relative;z-index:6}.maps-canvas-footer .map-controls{position:static;margin-left:auto;flex-shrink:0;padding:2px;box-shadow:none}.maps-canvas-footer .map-navigation-hint{position:static;max-width:none;min-width:0;flex:1;pointer-events:auto;font-size:8px}.maps-canvas-footer .map-controls button{width:28px;height:28px}.maps-stage .map-node:focus-visible{outline:2px solid var(--theme-accent-line, #9ab0ff);outline-offset:4px}@media(max-width:1100px){.maps-workspace{grid-template-columns:210px minmax(0,1fr);height:600px}.maps-count{display:none}.maps-save{font-size:8px}.maps-picker select{max-width:180px}.maps-title h3{font-size:16px}.map-navigation-hint{display:none}.maps-palette{padding:17px 11px}.maps-heading>.btn{font-size:10px;padding:10px}.maps-title p{font-size:10px}}@media(max-width:680px){.maps-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.maps-title h3{font-size:16px}.maps-title p{font-size:10px}.maps-symbol{width:44px;height:44px}.maps-heading>.btn{margin-left:auto}.maps-bar{padding:10px;flex-wrap:wrap;gap:4px}.maps-picker{width:100%}.maps-picker select{max-width:none;flex:1;min-width:0}.maps-save{width:100%;text-align:right;margin-top:3px}.maps-workspace{display:flex;flex-direction:column;height:740px;max-height:none}.maps-palette{max-height:225px;padding:12px;border-right:0;border-bottom:1px solid var(--theme-line, #e4eaf5)}.maps-palette header{margin-bottom:9px}.maps-palette .eyebrow,.palette-hint,.maps-palette footer{display:none}.maps-search{padding:7px;margin-bottom:9px}.palette-items{display:flex;gap:8px;min-height:110px;overflow:auto;padding:2px}.palette-card{min-width:200px;width:200px;margin-bottom:4px;padding:8px}.palette-card small{margin:3px 0 5px 18px}.palette-empty{padding:5px;flex-direction:row;text-align:left}.maps-viewport{flex:1;min-height:450px}.map-controls{right:13px;bottom:13px}.map-connection-tip,.map-edge-actions{font-size:9px;padding:8px;gap:6px}.maps-empty{padding:35px 12px}.maps-empty-cards{gap:6px}.maps-empty-cards span{padding:16px 13px;font-size:9px}.maps-empty-cards svg{width:18px}.maps-empty h3{font-size:15px;line-height:1.8}.maps-empty p{font-size:11px}}@media(max-width:680px){.maps-stage{flex:1;min-height:450px}.maps-canvas-footer{min-height:48px;padding:6px 10px}}.maps-primary{white-space:nowrap;flex-shrink:0;font-size:10px}.maps-primary[aria-pressed=true]{color:var(--theme-accent, #7b91c7);opacity:1}.maps-bar{flex-wrap:wrap}.maps-fullscreen{white-space:nowrap;flex-shrink:0;font-size:10px}.maps-fullscreen[aria-pressed=true]{color:var(--theme-text-secondary, #627ec3)}.project-map:fullscreen{box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;padding:20px;overflow:hidden;background:var(--theme-panel, #f8faff)}.project-map:fullscreen::backdrop{background:var(--theme-overlay, #f8faff)}.project-map:fullscreen .maps-heading{flex-shrink:0;margin-bottom:14px}.project-map:fullscreen .maps-bar{flex-shrink:0}.project-map:fullscreen .maps-workspace{flex:1;height:auto;max-height:none;min-height:0}@media(max-width:680px){.project-map:fullscreen{padding:10px}.project-map:fullscreen .maps-heading{margin-bottom:10px}.project-map:fullscreen .maps-palette{max-height:clamp(120px,24vh,190px)}.project-map:fullscreen .maps-stage{min-height:0}}.map-node.pending:not(.blocked):not(.connecting){border-color:var(--theme-accent-line, #a5b8e7);animation:map-pending-halo 4s ease-in-out infinite}.map-node.pending:not(.blocked):not(.connecting) .map-node-grip{position:relative;overflow:hidden;background:var(--theme-accent-soft, #edf2ff);color:var(--theme-accent, #8095ce)}.map-node.pending:not(.blocked):not(.connecting) .map-node-grip:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,transparent,var(--theme-accent-soft, #cad8ff99),transparent);transform:translate(-110%);animation:map-pending-shine 4s ease-in-out infinite}.map-node.pending:not(.blocked):not(.connecting) .map-status{background:var(--theme-accent-soft, #edf2ff);color:var(--theme-accent, #8095ce)}@keyframes map-pending-halo{0%,to{box-shadow:0 0 0 2px var(--theme-shadow-soft, #b0c5fd12),0 5px 20px var(--theme-shadow-soft, #8297ca12)}50%{box-shadow:0 0 0 6px var(--theme-shadow, #b0c5fd2b),0 8px 28px var(--theme-shadow, #8297ca26)}}@keyframes map-pending-shine{0%,25%{transform:translate(-110%)}65%,to{transform:translate(110%)}}@media(prefers-reduced-motion:reduce){.map-node.pending:not(.blocked):not(.connecting){animation:none;box-shadow:0 0 0 2px var(--theme-shadow, #b0c5fd20),0 5px 20px var(--theme-shadow-soft, #8297ca12)}.map-node.pending:not(.blocked):not(.connecting) .map-node-grip:after{animation:none;display:none}}.map-portal{position:absolute;width:160px;min-height:110px;pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:16px;padding-top:10px;isolation:isolate}.map-portal-symbol{position:relative;display:grid;place-items:center;width:76px;height:76px;flex-shrink:0;background:var(--theme-panel, #fff);color:var(--theme-text-muted, #809bd8);border-radius:50%;box-shadow:inset 0 0 0 1px var(--theme-shadow, #d6e1fa),0 0 0 7px var(--theme-shadow-soft, #c9d7fb18),0 6px 24px var(--theme-shadow-soft, #8ba4db15);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.map-portal-symbol:active{cursor:grabbing}.map-portal-symbol:before{content:"";position:absolute;inset:-5px;border-radius:50%;background:conic-gradient(from 0deg,transparent 0deg,var(--theme-accent, #a5baf0) 90deg,var(--theme-accent-soft, #d4dfff) 130deg,transparent 200deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),var(--theme-line, #000) calc(100% - 2px));mask:radial-gradient(farthest-side,transparent calc(100% - 2px),var(--theme-line, #000) calc(100% - 2px));animation:portal-orbit 6s linear infinite;opacity:.65;pointer-events:none}.map-portal-symbol:after{content:"";position:absolute;inset:-13px;border:1px solid var(--theme-line, #c7d6fb);border-radius:50%;animation:portal-ring 6s ease-in-out infinite;pointer-events:none}.map-portal-label{font-size:12px;font-weight:550;color:var(--theme-text, #687fa7);background:var(--theme-panel, #ffffffed);border:1px solid var(--theme-line, #e1e8f5);border-radius:8px;padding:8px 12px;max-width:160px;overflow-wrap:anywhere;text-align:center}.map-portal-input{position:absolute;left:37px;top:43px;width:10px;height:10px;padding:0;border:2px solid var(--theme-line-strong, #a5b8e7);background:var(--theme-panel, #fff);border-radius:50%;z-index:3;cursor:crosshair;touch-action:none}.map-portal-input:hover,.is-connecting .map-portal-input{border-color:var(--theme-accent-line, #7694dc);box-shadow:0 0 0 6px var(--theme-shadow, #90acf425)}.map-portal-actions{position:absolute;top:-18px;right:0;display:flex;gap:3px;opacity:0;transition:opacity .15s;background:var(--theme-panel, #fff);border:1px solid var(--theme-line, #e1e8f5);border-radius:7px;z-index:4}.map-portal:hover .map-portal-actions,.map-portal:focus-within .map-portal-actions{opacity:1}.map-portal-actions .icon-btn{width:25px;height:25px}@keyframes portal-orbit{to{transform:rotate(360deg)}}@keyframes portal-ring{0%,to{transform:scale(.96);opacity:.15}50%{transform:scale(1.07);opacity:.45}}@media(prefers-reduced-motion:reduce){.map-portal-symbol:before,.map-portal-symbol:after{animation:none}.map-portal-symbol:after{opacity:.3}}@media(pointer:coarse){.map-portal-actions{opacity:1}.map-portal-actions .icon-btn{width:36px;height:36px}}.map-portal-input:after{content:"";position:absolute;inset:-10px}.portal-trail{fill:none;stroke:var(--theme-line-strong, #8fa9df);stroke-width:3;stroke-linecap:round;stroke-dasharray:1 8;animation:portal-trail-flow 6s linear infinite;pointer-events:none}.portal-link.finished{stroke:var(--theme-success-line, #bdd8c9)}.portal-trail.finished{stroke:var(--theme-success-line, #82b297)}.map-portal.finished .map-portal-symbol{background:linear-gradient(145deg,var(--theme-panel, #fff),var(--theme-success-soft, #f0f8f3));color:var(--theme-success, #76a088);box-shadow:inset 0 0 0 1px var(--theme-shadow, #bcdac8),0 0 0 7px var(--theme-shadow-soft, #cfe7d818),0 6px 24px var(--theme-shadow-soft, #87ad9615)}.map-portal.finished .map-portal-symbol:before{background:conic-gradient(transparent,var(--theme-success, #9bc6ac) 90deg,var(--theme-success-soft, #d5eadc) 130deg,transparent 200deg);animation-duration:9s}.map-portal.finished .map-portal-symbol:after{border-color:var(--theme-success-line, #c6dfcf)}.map-portal.finished .map-portal-input{border-color:var(--theme-success-line, #87b69c);background:var(--theme-success-soft, #edf7f0)}.map-portal.finished .map-portal-label{border-color:var(--theme-success-line, #d7e8dd);color:var(--theme-text, #739381)}.map-node.portal-completed{background:linear-gradient(140deg,var(--theme-panel, #fff),var(--theme-success-soft, #f3faf5));border:1px solid var(--theme-success-line, #b8d9c5);animation:map-completed-halo 6s ease-in-out infinite}.map-node.portal-completed .map-node-grip{position:relative;overflow:hidden;background:var(--theme-success-soft, #edf7f0);color:var(--theme-success, #7ca28b);border-bottom-color:var(--theme-success-line, #dcecdf)}.map-node.portal-completed .map-node-grip:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent,var(--theme-success-soft, #d2e9db99),transparent);transform:translate(-110%);animation:map-pending-shine 6s ease-in-out infinite}.map-node.portal-completed .map-node-title{color:var(--theme-text, #607c6c);width:calc(100% - 73px);margin-right:56px}.map-node.portal-completed .map-status{color:var(--theme-success, #6e987f);background:var(--theme-success-soft, #e7f3eb)}.map-node.portal-completed .map-port.output{background:var(--theme-success-soft, #e3f1e8);border-color:var(--theme-success-line, #84b59c)}.map-completion-seal{position:absolute;right:13px;top:62px;width:32px;height:32px;display:grid;place-items:center;color:var(--theme-success, #6f9f83);background:var(--theme-success-soft, #e5f3e9);border:1px solid var(--theme-success-line, #bcdcc8);border-radius:50%;animation:map-completion-seal 6s ease-in-out infinite;pointer-events:none}@keyframes map-completed-halo{0%,to{box-shadow:0 0 0 2px var(--theme-shadow-soft, #c9e4d512),0 6px 24px var(--theme-shadow-soft, #8aaa9712)}50%{box-shadow:0 0 0 6px var(--theme-shadow, #c9e4d52b),0 9px 30px var(--theme-shadow, #8aaa9720)}}@keyframes map-completion-seal{0%,to{box-shadow:0 0 0 4px var(--theme-shadow, #e5f3e96b)}50%{box-shadow:0 0 0 7px var(--theme-shadow, #d2e9da66)}}@keyframes portal-trail-flow{0%{stroke-dashoffset:18}to{stroke-dashoffset:0}}@media(prefers-reduced-motion:reduce){.portal-trail,.map-node.portal-completed,.map-completion-seal,.map-node.portal-completed .map-node-grip:after{animation:none}.map-node.portal-completed .map-node-grip:after{display:none}.map-completion-seal{box-shadow:0 0 0 4px var(--theme-shadow, #e5f3e96b)}}.roadmap-alignment-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.roadmap-alignment-controls .text-btn{font-size:10px;white-space:nowrap}.alignment-summary{font-size:10px;color:var(--theme-text-secondary, #7b91c7)}.maps-workspace.layout-preview{border-color:var(--theme-line, #b7c9ef)}.layout-preview .maps-palette{pointer-events:none;opacity:.6}.layout-preview .map-node,.layout-preview .map-portal,.layout-preview .map-edge-hit{pointer-events:none}.roadmap-alignment-controls button:disabled{opacity:.45;cursor:default}.map-selection-box{position:absolute;z-index:4;border:1px dashed var(--theme-line-strong, #7796e8);border-radius:3px;background:var(--theme-accent, #8eaafb20);pointer-events:none}.maps-viewport .map-node.selected{outline:2px solid var(--theme-accent-line, #7996e8);outline-offset:3px;border-color:var(--theme-accent-line, #7996e8);box-shadow:0 0 0 5px var(--theme-shadow, #b0c5fd30),0 7px 24px var(--theme-shadow-soft, #5975ae16);animation:none}.maps-viewport.is-selecting,.maps-viewport.is-selecting *{cursor:crosshair!important;-webkit-user-select:none;user-select:none}.maps-viewport.has-multi-selection .map-node.selected,.maps-viewport.has-multi-selection .map-node.selected .map-node-title{cursor:grab}.map-selection-actions{top:12px;left:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:calc(100% - 24px);background:var(--theme-panel, #fff);border:1px solid var(--theme-line, #dbe5fa);border-radius:9px;padding:9px 12px;box-shadow:0 5px 24px var(--theme-shadow-soft, #526fa011);color:var(--theme-text-secondary, #6b83b7);font-size:11px}.map-selection-actions .text-btn{font-size:10px}.map-create-options{display:grid;gap:8px}.roadmap-card-type{margin:0;padding:0;border:0}.roadmap-card-type legend{margin:0 0 8px;padding:0;color:var(--theme-text, #596b8a);font-size:12px;font-weight:650}.map-create-option{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;text-align:left;border:1px solid var(--theme-line, #e1e8f5);border-radius:12px;background:var(--theme-panel, #fff);color:var(--theme-text-secondary, #7c8da8);transition:background .15s,border-color .15s}.map-create-option.activity{padding:17px 14px;background:var(--theme-surface-muted, #f5f8ff);border-color:var(--theme-line, #cedbf6)}.map-create-option[aria-pressed=true]{border-color:var(--theme-line-strong, #91aae0);background:var(--theme-accent-soft, #edf3ff);box-shadow:0 0 0 2px var(--theme-shadow-soft, #b4c9f51c);color:var(--theme-text, #617fb9)}.map-create-option:hover{border-color:var(--theme-line-strong, #a8bde7)}.map-create-option:focus-visible{outline:2px solid var(--theme-accent-line, #7996e8);outline-offset:3px}.map-create-option-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:var(--theme-accent-soft, #edf2fc);color:var(--theme-text-muted, #809bd8)}.map-create-option.activity .map-create-option-icon{width:40px;height:40px;background:var(--theme-accent-soft, #e2ebff);color:var(--theme-text-secondary, #6e8dcc)}.map-create-option strong{display:block;font-size:12px;font-weight:650}.map-create-option.activity strong{font-size:14px}.map-create-option small{display:block;margin-top:4px;font-size:10px;color:var(--theme-text-secondary, #8c9bb5);line-height:1.5}.map-create-check{margin-left:auto;flex-shrink:0}.map-create-source{display:flex;align-items:center;gap:8px;color:var(--theme-text-secondary, #8899b4);font-size:11px;line-height:1.7;overflow-wrap:anywhere}.map-create-source svg{flex-shrink:0}.map-create-source strong{color:var(--theme-text, #6f84aa);font-weight:550}.map-create-portal-preview{display:grid;place-items:center;min-height:150px;border:1px dashed var(--theme-line, #dce5f7);border-radius:12px;background:radial-gradient(ellipse at center,var(--theme-accent-soft, #edf3ff88),transparent 72%)}.map-create-portal-preview .map-portal-symbol{cursor:default}.map-node.in-progress{background:var(--theme-warning-soft, #fffbef)}.map-node.in-progress:not(.connecting):not(.selected){border-color:var(--theme-warning-line, #e5d4a9);animation:map-active-halo 6s ease-in-out infinite}.map-node.in-progress .map-node-grip{position:relative;overflow:hidden;background:var(--theme-warning-soft, #fcf3dd);border-bottom-color:var(--theme-warning-line, #eaddbd);color:var(--theme-warning, #a68b54)}.map-node.in-progress .map-node-grip:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent,var(--theme-warning, #e7c77740),transparent);transform:translate(-110%);animation:map-active-shine 7.2s ease-in-out infinite;pointer-events:none}.map-progress-state{height:28px;margin:10px 17px 0;display:flex;align-items:center;gap:10px;pointer-events:none}.map-progress-orbit{position:relative;display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border-radius:8px;background:var(--theme-warning-soft, #f7edcf);color:var(--theme-warning, #92702f)}.map-progress-orbit:after{content:"";position:absolute;inset:-4px;border-radius:11px;background:conic-gradient(from 0deg,transparent 0deg,var(--theme-warning, #cfad63) 80deg,var(--theme-warning, #ead9b0) 130deg,transparent 180deg,transparent 360deg);-webkit-mask:linear-gradient(var(--theme-line, #fff) 0 0) content-box,linear-gradient(var(--theme-line, #fff) 0 0);mask:linear-gradient(var(--theme-line, #fff) 0 0) content-box,linear-gradient(var(--theme-line, #fff) 0 0);-webkit-mask-composite:xor;mask-composite:exclude;padding:1px;animation:map-active-orbit 8s linear infinite;pointer-events:none}.map-progress-label{font-size:9px;font-weight:550;color:var(--theme-warning, #92702f);line-height:1.5}.map-node.in-progress .map-node-title{margin:9px 17px 0;color:var(--theme-accent, #60708b)}.map-node.in-progress .map-node-title:hover{color:var(--theme-warning, #92702f)}.map-node.in-progress .map-node-info{position:absolute;right:17px;top:57px;padding:0}.map-node.in-progress .map-node-info>button{color:var(--theme-accent, #9b947f)}.map-node.in-progress .map-node-foot{position:absolute;left:0;right:0;bottom:0;height:37px;margin:0;padding:0 16px;border-top:1px solid var(--theme-warning-line, #eaddbd);border-radius:0 0 12px 12px;background:var(--theme-warning-soft, #fffdf6);color:var(--theme-warning, #a08750);justify-content:flex-start;gap:7px}.map-node.in-progress .map-node-foot>svg{flex-shrink:0}.map-progress-wave{display:flex;align-items:center;justify-content:flex-end;gap:3px;width:25px;height:13px;margin-left:auto;flex-shrink:0;pointer-events:none}.map-progress-wave i{width:3px;height:5px;border-radius:3px;background:var(--theme-warning, #ba974b);transform-origin:center;animation:map-active-wave 3s ease-in-out infinite}.map-progress-wave i:nth-child(2){height:8px;animation-delay:.18s}.map-progress-wave i:nth-child(3){height:12px;animation-delay:.36s}.map-progress-wave i:nth-child(4){height:7px;animation-delay:.54s}.maps-viewport:not(.is-connecting) .map-node.in-progress .map-port:not(:hover){border-color:var(--theme-warning-line, #c3a35e)}.maps-viewport:not(.is-connecting) .map-node.in-progress .map-port.output:not(:hover){background:var(--theme-warning-soft, #f7edcf)}@keyframes map-active-halo{0%,to{box-shadow:0 0 0 2px var(--theme-shadow-soft, #d4ad5815),0 7px 25px var(--theme-shadow-soft, #b28b4010)}50%{box-shadow:0 0 0 7px var(--theme-shadow, #ba974b29),0 10px 30px var(--theme-shadow-soft, #b28b401a)}}@keyframes map-active-shine{0%,15%{transform:translate(-110%)}65%,to{transform:translate(110%)}}@keyframes map-active-orbit{to{transform:rotate(360deg)}}@keyframes map-active-wave{0%,to{transform:scaleY(.55);opacity:.4}50%{transform:scaleY(1);opacity:.8}}@media(prefers-reduced-motion:reduce){.map-node.in-progress:not(.connecting):not(.selected){animation:none;box-shadow:0 0 0 2px var(--theme-shadow-soft, #d4ad5815),0 7px 25px var(--theme-shadow-soft, #b28b4010)}.map-node.in-progress .map-node-grip:after{animation:none;display:none}.map-progress-orbit:after,.map-progress-wave i{animation:none}}.portal-link.in-progress{stroke:var(--theme-warning-line, #e5d4a9)}.portal-trail.in-progress{stroke:var(--theme-warning-line, #ba974b)}.map-portal.in-progress .map-portal-symbol{background:var(--theme-warning-soft, #fffbef);color:var(--theme-warning, #92702f);border-radius:22px;box-shadow:inset 0 0 0 1px var(--theme-shadow, #e5d4a9);animation:portal-active-halo 6s ease-in-out infinite}.map-portal.in-progress .map-portal-symbol>svg{transform:translateY(-5px)}.map-portal.in-progress .map-portal-symbol:before{inset:-6px;border-radius:27px;padding:1.5px;background:conic-gradient(transparent 0deg,var(--theme-warning, #ba974b) 85deg,var(--theme-warning, #e5d4a9) 145deg,transparent 185deg,transparent 360deg);-webkit-mask:linear-gradient(var(--theme-line, #fff) 0 0) content-box,linear-gradient(var(--theme-line, #fff) 0 0);mask:linear-gradient(var(--theme-line, #fff) 0 0) content-box,linear-gradient(var(--theme-line, #fff) 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:map-active-orbit 8s linear infinite;opacity:1}.map-portal.in-progress .map-portal-symbol:after{inset:0;border:0;border-radius:22px;background:linear-gradient(135deg,transparent 25%,var(--theme-warning, #e2c67d30) 50%,transparent 75%);background-size:250% 250%;animation:portal-active-light 8s ease-in-out infinite}.map-portal-wave{position:absolute;bottom:15px;display:flex;align-items:center;gap:3px;height:9px;pointer-events:none}.map-portal-wave i{width:3px;height:4px;border-radius:3px;background:var(--theme-warning, #ba974b);animation:map-active-wave 3s ease-in-out infinite}.map-portal-wave i:nth-child(2){height:7px;animation-delay:.18s}.map-portal-wave i:nth-child(3){height:9px;animation-delay:.36s}.map-portal-wave i:nth-child(4){height:6px;animation-delay:.54s}.map-portal.in-progress .map-portal-input:not(:hover){border-color:var(--theme-warning-line, #c3a35e);background:var(--theme-warning-soft, #fffdf6)}.is-connecting .map-portal.in-progress .map-portal-input:not(:hover){border-color:var(--theme-accent-line, #7694dc);background:var(--theme-accent-soft, #fff)}.map-portal.in-progress .map-portal-label{color:var(--theme-warning, #92702f);border-color:var(--theme-warning-line, #e5d4a9);background:var(--theme-warning-soft, #fffdf6)}@keyframes portal-active-halo{0%,to{box-shadow:inset 0 0 0 1px var(--theme-shadow, #e5d4a9),0 0 0 2px var(--theme-shadow-soft, #d4ad5815),0 5px 20px var(--theme-shadow-soft, #b28b400c)}50%{box-shadow:inset 0 0 0 1px var(--theme-shadow, #e5d4a9),0 0 0 7px var(--theme-shadow, #ba974b29),0 8px 25px var(--theme-shadow-soft, #b28b4015)}}@keyframes portal-active-light{0%,to{background-position:100% 100%;opacity:.35}50%{background-position:0 0;opacity:1}}@media(prefers-reduced-motion:reduce){.map-portal.in-progress .map-portal-symbol,.map-portal.in-progress .map-portal-symbol:before,.map-portal.in-progress .map-portal-symbol:after,.map-portal-wave i{animation:none}.map-portal.in-progress .map-portal-symbol:after{display:none}}
