:root{color:#e8eef2;background:#0e1c24;font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-rows:64px 1fr}.top{display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#14303a;border-bottom:3px solid #0f6e6b}.brand{display:flex;gap:12px;align-items:center}.logo{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#f59e0b,#e11d48);font-weight:800}.brand h1{margin:0;font-size:16px}.brand p{margin:2px 0 0;color:#93a8b3;font-size:12px}.layout{display:grid;grid-template-columns:280px 1fr 360px;min-height:0}.pane{border-right:1px solid #23414c;min-height:0;overflow:auto}.pane:last-child{border-right:0;border-left:1px solid #23414c}.pad{padding:16px}h2{margin:0 0 12px;font-size:14px;color:#9fd4cf}.flow-card{position:relative;width:100%;text-align:left;cursor:pointer;background:#17323c;border:1px solid #2a5160;border-radius:12px;padding:12px 36px 12px 12px;margin-bottom:10px}.flow-card.active{border-color:#2dd4bf}.corner-delete{position:absolute;top:8px;right:8px;width:22px;height:22px;padding:2px;border:0;border-radius:6px;background:transparent;color:#fb7185;display:grid;place-items:center}.corner-delete svg{width:16px;height:16px;display:block}.corner-delete:hover{background:#e11d4833;color:#fecdd3}.card,.node,button.card{width:100%;text-align:left;display:block}.card,.node{background:#17323c;border:1px solid #2a5160;border-radius:12px;padding:12px;margin-bottom:10px}.node{position:relative;padding-right:36px}.card.active,.node.active{border-color:#2dd4bf}.tree-children{margin-left:16px}.muted{color:#8aa0ab;font-size:12px}.row{display:flex;gap:8px;align-items:center}.grow{flex:1}label{display:block;font-size:12px;color:#9fb4be;margin:8px 0 4px}input,select,textarea{width:100%;background:#0e242d;border:1px solid #345864;border-radius:8px;padding:8px 10px}textarea{min-height:72px;resize:vertical}.btn{border:0;border-radius:8px;padding:8px 12px;background:#0f6e6b;color:#fff}.btn.ghost{background:#234652}.btn.warn{background:#b45309}.btn.danger{background:#9f1239}.btn.small{padding:4px 8px;font-size:12px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:11px;padding:2px 6px;border-radius:999px;background:#0f3f45;color:#99f6e4}.tag.draft{background:#3f3f1a;color:#fde68a}.split{display:grid;grid-template-columns:250px 1fr;gap:12px}.resource-item,.field-btn{width:100%;text-align:left;background:#102830;border:1px solid #2c5362;border-radius:8px;padding:8px;margin-bottom:6px}.resource-item:hover,.field-btn:hover{border-color:#2dd4bf}pre{white-space:pre-wrap;word-break:break-word;background:#0b1c23;border-radius:8px;padding:10px;font-size:12px}.msg{font-size:12px;border-bottom:1px solid #23414c;padding:6px 0}.down{color:#fcd34d}.up{color:#6ee7b7}.error{color:#fda4af;margin:8px 0}.runtime-group{margin:4px 0 8px;font-size:13px;color:#fde68a}.subflow-block{background:#1a3044;border:1px solid #3d5f82;border-radius:12px;padding:10px 10px 2px;margin-bottom:12px}.source{color:#8aa0ab;font-size:12px;margin-top:4px}.card.missing{border-color:#b45309}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#061016b8;display:flex;justify-content:center;align-items:flex-start;padding:28px 32px 24px}.modal{width:min(1180px,100%);height:calc(100vh - 52px);display:flex;flex-direction:column;background:#122830;border:1px solid #2a5160;border-radius:14px;padding:16px}.modal-body{flex:1;min-height:0;overflow:auto}audio{width:100%;margin-top:6px}
