#layout-space{--fc-edge:#393340;--fc-muted:#c1b9c9;--fc-port:#dec1fa}
#layout-space h2{font-size:1.06rem;letter-spacing:.01em;margin:0}.fc-work{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:16px}
.fc-graph-pane,.fc-output{min-width:0;border:1px solid var(--fc-edge);border-radius:16px;overflow:hidden;background:#17151b}.fc-bar,.fc-tools,#fc-edit{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 16px}.fc-bar{border-bottom:1px solid var(--fc-edge)}.fc-bar>span,.fc-tip,.fc-card small,#fc-count{font-size:.84rem;color:var(--fc-muted)}.fc-tip{margin:12px 16px 0}
#fc-graph{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(108px,1fr) minmax(100px,.72fr);align-items:center;column-gap:clamp(28px,6vw,100px);min-height:270px;padding:26px clamp(12px,2vw,32px);background:radial-gradient(circle,#48424e .9px,transparent 1px) 0 0/16px 16px}
#fc-wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;overflow:visible}#fc-wires path{stroke:#af91ba;fill:none;stroke-width:1.8}#fc-wires .link-active{stroke:#efcdff;stroke-width:2.5}
#fc-sources{display:grid;gap:14px}.fc-node,#fc-sink{position:relative;background:#25212a;border:1px solid #514658;border-radius:10px;box-shadow:0 5px 14px #0003}.fc-choose{display:flex;align-items:center;gap:8px;width:100%;padding:7px 11px;background:transparent;color:#f3ecf6;border:0;text-align:left;overflow-wrap:anywhere;font:inherit}.fc-choose[aria-pressed=true]{background:#443548;border-radius:9px}.fc-choose img{width:34px;height:34px;object-fit:contain;border-radius:4px}.fc-node{padding-right:6px}.fc-unplug{background:transparent;border:0;color:#d1bedc;padding:1px 10px 6px;font-size:.78rem}.fc-port{position:absolute;right:-10px;top:50%;transform:translateY(-50%);width:20px;height:20px;box-sizing:border-box;border:4px solid #29232d;border-radius:100%;background:var(--fc-port);touch-action:none;cursor:crosshair}.fc-port:focus-visible{outline:2px solid white}#fc-sink{display:grid;gap:11px;padding:14px}.fc-input{font:inherit;color:#eee3f8;background:#34303c;border:1px solid #72657d;border-radius:8px;padding:8px}.fc-input.ready{background:#ddc3ee;color:#211426}.fc-file{width:1px;height:1px;opacity:0;position:absolute}.fc-tools:focus-within label[for=board-file]{outline-offset:2px}.fc-tools{justify-content:flex-start;border-top:1px solid var(--fc-edge)}.fc-paper{display:flex;align-items:center;gap:6px;color:var(--fc-muted);font-size:.86rem}.fc-paper input{width:31px;height:26px;padding:0;border:0}.fc-screen{padding:14px;display:grid;place-items:center;background:#100f13}#layout-space #board{width:auto;max-width:100%;height:auto;max-height:42vh;display:block;aspect-ratio:auto;touch-action:none;box-shadow:0 8px 24px #0005}.fc-screen canvas:focus-visible{outline:2px solid var(--fc-port)}#fc-edit label{display:grid;gap:3px;font-size:.85rem}.fc-shelf{margin-top:30px}.fc-cards{margin-top:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.fc-card{padding:0;overflow:hidden;background:#19171d;text-align:left;color:#f6f0fa;border:1px solid var(--fc-edge);border-radius:12px;cursor:pointer;font:inherit}.fc-card:hover,.fc-card:focus-visible{border-color:#aa8abb}.fc-card img{display:block;width:100%;height:clamp(80px,10vw,160px);object-fit:cover}.fc-card-copy{display:grid;gap:4px;padding:10px 12px}.fc-card-copy small{line-height:1.4}.fc-cards#fc-materials img{object-fit:contain;background:#25232a}.template-intro{display:block;line-height:1.4;font-size:.83rem;color:#f1e9f5}.tile.script-card{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:16px;min-height:9rem;aspect-ratio:auto;text-align:left;background:#211c24;border:1px solid #403640}.tile.script-card .tile-body{position:static;display:grid;gap:4px;padding:14px 0 0;background:none}.tile.script-card:after{display:none}.script-format{font-size:.82rem;letter-spacing:.04em;color:#d7b697}.tile.script-card .use-icon{right:10px;top:9px}.fc-src-download{display:inline-flex;align-items:center;gap:4px;color:inherit;margin-left:auto;font-size:.83rem}.fc-video-ref{display:flex;align-items:center;gap:10px;margin:8px 0}.fc-video-ref img{width:82px;max-width:82px;border-radius:5px}
@media(max-width:800px){.fc-work{grid-template-columns:1fr}.fc-screen{padding:10px}.fc-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#fc-graph{min-height:205px;column-gap:clamp(32px,13vw,100px)}#layout-space #board{max-height:38vh}.fc-card img{height:110px}}
