/* 以分支同原有 VTM 色系建立素材地圖，唔用檔案總管雙欄。 */
#main:has(>.material-mindmap){padding:0;overflow:hidden;display:flex;flex-direction:column}.material-mindmap{flex:1;height:auto;min-height:0;display:flex;flex-direction:column;padding:20px 24px 12px;color:var(--fg);box-sizing:border-box;gap:12px}.mmap-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.material-mindmap h1{font-size:27px;line-height:1.25;margin:0}.mmap-heading p{margin:6px 0 0;color:var(--muted);font-size:14px}.material-mindmap .mmap-eyebrow{font-size:11px;letter-spacing:.14em;font-weight:600;color:var(--accent);margin:0 0 6px}.mmap-heading-tools,.mmap-toolbar,.mmap-selection,.mmap-zoom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mmap-toolbar{min-height:42px;flex-shrink:0}.mmap-search{min-width:160px;max-width:310px;flex:1}.mmap-search .field{width:100%;box-sizing:border-box}.mmap-selection{flex:1;min-width:0}.mmap-selection>span{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--muted)}.material-mindmap .kbtn,.material-mindmap .btn{justify-content:center;min-height:40px}.material-mindmap .field{font:inherit;min-height:40px}.mmap-zoom{gap:4px;flex-wrap:nowrap}.mmap-zoom span{font-variant-numeric:tabular-nums;font-size:12px;min-width:40px;text-align:center}.mmap-zoom button{min-width:40px}.mmap-status{min-height:20px;color:var(--muted);font-size:13px;flex-shrink:0}.mmap-stage{position:relative;overflow:hidden;min-height:320px;flex:1;background-color:var(--surface);background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:20px 20px;border:1px solid var(--line);border-radius:18px;cursor:grab;touch-action:none;isolation:isolate}.mmap-stage:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mmap-panning{cursor:grabbing}.mmap-plane{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}.mmap-edges{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}.mmap-edges path{fill:none;stroke:var(--line);stroke-width:2}.mmap-edges .mmap-file-edge{stroke-width:1.3}.mmap-node{position:absolute;width:224px;min-height:58px;display:flex;align-items:center;gap:12px;padding:13px 16px;box-sizing:border-box;border:1.5px solid var(--line);border-radius:14px;color:var(--fg);background:var(--surface);font:inherit;line-height:1.4;box-shadow:0 3px 12px #16324d08;text-align:left;cursor:pointer;touch-action:none;transition:border-color .12s,box-shadow .12s;user-select:none}.mmap-node:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.mmap-node:hover{border-color:var(--accent);box-shadow:0 5px 18px #16324d16}.mmap-node-root{background:var(--sidebar,#13283a);color:#fff;border-color:var(--sidebar,#13283a);border-radius:24px}.mmap-node[data-branch=product]{--mmap-branch:#087e91}.mmap-node[data-branch=marketing]{--mmap-branch:#8661bd}.mmap-node[data-branch=event]{--mmap-branch:#b27b20}.mmap-node-folder{border-left:4px solid var(--mmap-branch,var(--accent))}.mmap-folder-mark{width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--raised);color:var(--mmap-branch,var(--accent));font-size:16px}.mmap-node-root .mmap-folder-mark{background:#ffffff15;color:#fff}.mmap-node-label{display:grid;gap:4px;min-width:0;flex:1}.mmap-node-label strong{font-size:15px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.mmap-node-label small{color:var(--muted);font-size:12px}.mmap-node-root small{color:#cfdee7}.mmap-node-asset{min-height:84px;max-height:96px;padding:10px;border-radius:10px;gap:10px}.mmap-node-asset strong{font-size:13px;font-weight:500}.mmap-thumb{width:54px;height:54px;position:relative;flex:none;display:grid;place-items:center;background:var(--raised);border-radius:7px;overflow:hidden;color:var(--muted);font-size:10px;font-weight:600}.mmap-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mmap-node.mmap-selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.mmap-node.mmap-suggested{border:2px dashed var(--accent)}.mmap-drop-target{border-color:var(--accent)!important;box-shadow:0 0 0 5px var(--accent-soft)!important;background:var(--raised)}.mmap-dragging{opacity:.35}.mmap-more{min-height:44px;background:var(--raised);border-style:dashed;font-size:13px;justify-content:center}.mmap-canvas-note{position:absolute;bottom:14px;left:18px;right:18px;font-size:12px;color:var(--muted);pointer-events:none}.mmap-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);flex-shrink:0}.mmap-footer>span:first-child{font-variant-numeric:tabular-nums}.mmap-hint-button{border-style:dashed;color:var(--accent)}
.mmap-drawer{position:absolute;right:12px;top:12px;bottom:46px;width:320px;max-width:calc(100% - 24px);box-sizing:border-box;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:auto;box-shadow:0 12px 45px #15263926;cursor:auto;touch-action:pan-y}.mmap-drawer[hidden]{display:none}.mmap-drawer h2{font-size:18px;margin:0}.mmap-drawer h3{font-size:15px;margin:24px 0 8px}.mmap-drawer p{font-size:13px;line-height:1.6;color:var(--muted)}.mmap-drawer article{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.mmap-drawer article small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.mmap-drawer article p{margin:6px 0;overflow-wrap:anywhere}.mmap-dialog{width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--fg);padding:24px;box-shadow:0 15px 70px #15263940;font:inherit}.mmap-dialog::backdrop{background:#14253688}.mmap-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.mmap-dialog-head h2{font-size:20px;margin:0}.mmap-dialog-head button{min-width:40px}.mmap-dialog label{display:grid;gap:8px;margin:16px 0}.mmap-dialog .field{width:100%;box-sizing:border-box}.mmap-dialog .btn{display:inline-flex;justify-content:center}.mmap-dialog .mmap-muted{color:var(--muted);font-size:13px;line-height:1.6}.mmap-preview{display:block;max-width:100%;max-height:360px;margin:auto;object-fit:contain;border-radius:8px}.mmap-dialog h3,.mmap-dialog p{overflow-wrap:anywhere}
@media(max-width:900px){.material-mindmap{padding:16px}.mmap-heading p{max-width:450px}.mmap-toolbar{gap:6px}.mmap-selection{flex-basis:100%;order:2;min-height:0}.mmap-search{max-width:none}.mmap-footer{font-size:11px}}
@media(max-width:600px){.material-mindmap{padding:12px 8px;gap:8px}.material-mindmap h1{font-size:23px}.mmap-heading{gap:8px}.mmap-heading p{font-size:12px}.mmap-heading-tools{width:100%;justify-content:flex-end}.material-mindmap .kbtn,.material-mindmap .btn,.material-mindmap .field{min-height:44px}.mmap-toolbar{gap:5px}.mmap-selection{gap:5px}.mmap-selection .kbtn{font-size:12px;padding:5px}.mmap-search{min-width:130px}.mmap-zoom span{min-width:32px}.mmap-zoom button{min-width:32px}.mmap-stage{min-height:330px;border-radius:12px}.mmap-status{font-size:12px;line-height:1.4}.mmap-canvas-note{font-size:10px;left:10px;bottom:10px}.mmap-footer span:last-child{display:block;font-size:11px;line-height:1.4}.mmap-drawer{top:8px;right:8px;bottom:32px;width:300px;padding:16px}.mmap-dialog{padding:16px}.mmap-heading-tools .kbtn{font-size:12px;padding:6px 9px}}

.material-mindmap .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
