/* Saved-plan dependency canvas, using the existing workspace palette and controls. */
.dep-view-switch{margin-bottom:18px;gap:0;width:fit-content}
.dep-view-switch button{min-width:120px;min-height:44px}
.dep-explorer{--dep-done:#91c7ab;--dep-edge:#aaa29e;--dep-board:#292527;--dep-card:#393335;--dep-halo:#fff8;min-width:0}
[data-theme="light"] .dep-explorer{--dep-done:#326a50;--dep-edge:#776c68;--dep-board:#f1efed;--dep-card:#fffdfa;--dep-halo:#231f2070}
.dep-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dep-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.dep-search{position:relative;flex:1;min-width:190px;max-width:380px}
.dep-search input{min-height:44px}
.dep-filter{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.dep-filter select{width:auto;max-width:230px;min-height:44px}
.dep-unlinked{display:flex;align-items:center;flex-direction:row;gap:8px;font-size:12px;margin-left:auto;color:var(--muted)}
.dep-unlinked input{width:16px;height:16px}
.dep-results{position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:340px;overflow:auto;z-index:15;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 10px 28px #0003;padding:6px}
.dep-results button{display:block;width:100%;text-align:left;border:0;border-radius:6px;background:none;padding:10px;line-height:1.5}
.dep-results small{display:block;color:var(--muted);font-size:11px}
.dep-results p{padding:10px;color:var(--muted)}
.dep-workspace{display:grid;grid-template-columns:minmax(0,1fr) 278px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--dep-board)}
.dep-map-column{min-width:0}
.dep-map{position:relative;height:clamp(440px,64vh,760px);overflow:hidden;touch-action:none;cursor:grab;background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:22px 22px;isolation:isolate;outline-offset:-3px}
.dep-map.is-dragging,.dep-map.is-dragging *{cursor:grabbing!important}
.dep-camera{position:absolute;top:0;left:0;transform-origin:0 0;width:0;height:0}
.dep-links,.dep-nodes{position:absolute;top:0;left:0;overflow:visible}
.dep-links{pointer-events:none}
.dep-edge{fill:none;stroke:var(--dep-edge);stroke-width:1.7;stroke-dasharray:3 7;stroke-linecap:round;animation:dep-flow 1.2s linear infinite;transition:opacity 180ms ease,stroke 180ms ease;opacity:.75}
.dep-edge.has-conflict{stroke:var(--warn)}
.dep-edge.is-highlighted{stroke-width:2.8;opacity:1;stroke:var(--ink)}
.dep-edge.is-highlighted.has-conflict{stroke:var(--warn)}
.dep-edge.is-muted{opacity:.12}
.dep-motion-off .dep-edge{animation-play-state:paused}
.dep-node{position:absolute;display:flex;flex-direction:column;gap:9px;width:236px;height:112px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--dep-card);color:var(--ink);text-align:left;box-shadow:0 3px 9px #0002;white-space:normal;transition:opacity 180ms ease,border-color 180ms ease}
.dep-node:hover{background:var(--dep-card);border-color:var(--dep-halo)}
.dep-node:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.dep-node.is-selected{border-color:var(--ink);box-shadow:0 3px 12px #0003,0 0 0 1px var(--ink)}
.dep-node.is-muted{opacity:.32}
.dep-node.is-muted:hover,.dep-node.is-muted:focus-visible{opacity:1}
.dep-workstream{display:flex;align-items:center;gap:7px;font-size:10px;line-height:1.3;color:var(--muted);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dep-workstream i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--dep-ws)}
.dep-node strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;min-height:35px}
.dep-node-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;font-size:10px;line-height:1.3;color:var(--muted);margin-top:auto}
.dep-node-footer>span,.dep-reader-status{display:inline-flex;align-items:center;gap:5px}
.dep-status-dot{display:inline-block;width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--muted)}
.dep-status-dot.done{background:var(--dep-done)}
.dep-status-dot.in-progress{background:#81b5d9}
.dep-status-dot.blocked{background:var(--danger)}
.dep-status-dot.at-risk{background:var(--warn)}
.dep-date-warning{font-weight:500;color:var(--warn)}
.dep-empty{position:absolute;left:24px;right:24px;top:42%;text-align:center;line-height:1.7;color:var(--muted);pointer-events:none}
.dep-map-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 14px;background:var(--paper);min-height:64px}
.dep-count{font-size:11px;line-height:1.5;color:var(--muted)}
.dep-zoom{display:flex;align-items:center;gap:4px;flex-shrink:0}
.dep-zoom button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:36px;min-height:36px;padding:6px;background:transparent;border-color:transparent}
.dep-zoom button:hover{background:var(--wash)}
.dep-zoom button:disabled{opacity:.4;cursor:default}
.dep-zoom svg,.dep-footer svg,.dep-related svg,.dep-reader-empty>svg{width:18px;height:18px;flex:0 0 18px}
.dep-scale{font-size:10px;min-width:35px;text-align:center;font-variant-numeric:tabular-nums;color:var(--muted)}
.dep-inspector{min-width:0;max-height:calc(clamp(440px,64vh,760px) + 64px);overflow:auto;border-left:1px solid var(--line);padding:22px 20px;background:var(--paper);scrollbar-gutter:stable}
.dep-inspector h3{font-size:17px;line-height:1.45;overflow-wrap:anywhere;margin:18px 0 10px}
.dep-reader-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dep-reader-title button{width:32px;min-height:32px;padding:4px;font-size:20px}
.dep-reader-title .dep-workstream{white-space:normal;line-height:1.6}
.dep-reader-status{font-size:11px;color:var(--muted)}
.dep-task-facts{margin:20px 0;font-size:12px}
.dep-task-facts>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;margin-bottom:10px;line-height:1.5}
.dep-task-facts dt{color:var(--muted)}
.dep-task-facts dd{margin:0;overflow-wrap:anywhere}
.dep-reader-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.dep-reader-actions button{font-size:11px;min-height:40px;padding:8px 10px}
.dep-related{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
.dep-related h4{font-size:12px;line-height:1.5;display:flex;justify-content:space-between;gap:10px;margin:0 0 9px}
.dep-related h4 span{color:var(--muted);font-weight:400}
.dep-related button{display:flex;align-items:center;gap:8px;width:100%;padding:10px 0;background:none;border:0;border-radius:0;text-align:left;font-size:12px;line-height:1.5}
.dep-related button>span{flex:1;overflow-wrap:anywhere}
.dep-related button:hover>span{color:var(--accent)}
.dep-related small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.dep-related p,.dep-reader-empty p{font-size:12px;color:var(--muted);line-height:1.8}
.dep-reader-empty{padding-top:16px}
.dep-reader-empty>svg{width:32px;height:32px;color:var(--muted)}
.dep-reader-empty dl{margin-top:28px}
.dep-reader-empty dl>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid var(--line)}
.dep-reader-empty dt{font-size:12px;color:var(--muted)}
.dep-reader-empty dd{margin:0;font-variant-numeric:tabular-nums;font-size:14px}
.dep-warning{font-size:12px;line-height:1.6;color:var(--warn)}
.dep-footer{display:flex;flex-wrap:wrap;gap:14px 24px;padding:15px 2px;color:var(--muted);font-size:11px}
.dep-footer>span{display:flex;gap:7px;align-items:center}
.dep-direction i{width:7px;height:7px;border:1px solid currentColor;border-radius:2px}
.dep-conflict-key{width:16px;border-top:2px dotted var(--warn)}
.dep-note{font-size:11px;color:var(--muted);line-height:1.7;max-width:85ch;margin:0 0 24px}
@keyframes dep-flow{to{stroke-dashoffset:-20}}
@media(max-width:1199px){.dep-workspace{grid-template-columns:minmax(0,1fr) 246px}.dep-inspector{padding:18px 15px}.dep-map-controls{flex-wrap:wrap}.dep-map{height:540px}.dep-inspector{max-height:640px}}
@media(max-width:767px){.dep-workspace{display:block}.dep-map{height:430px}.dep-inspector{max-height:none;border-left:0;border-top:1px solid var(--line);padding:20px}.dep-toolbar{gap:10px}.dep-search{flex-basis:100%;max-width:none}.dep-filter{flex:1;flex-wrap:wrap;gap:5px}.dep-filter select{max-width:100%;width:100%}.dep-unlinked{font-size:11px}.dep-map-controls{padding:8px 10px;gap:4px}.dep-zoom button{min-width:42px;min-height:44px}.dep-map-controls .dep-count{flex-basis:100%}.dep-zoom{margin-left:auto}.dep-footer{gap:10px}.dep-reader-empty{padding-top:0}.dep-reader-empty dl{display:flex;gap:16px;margin-top:18px}.dep-reader-empty dl>div{display:block;flex:1}.dep-reader-empty dd{margin-top:8px}.dep-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){.dep-edge{animation:none}.dep-node,.dep-edge{transition:none}}
