body{margin:0;background:#f7f5ef;color:#1f2933;font-family:Georgia,'Times New Roman',serif;}
header{padding:28px 34px;border-bottom:1px solid #c8c1b2;background:#efe8d8;}
h1{margin:0 0 8px;font-size:28px;font-weight:600;} h2{font-size:19px;margin:0 0 12px;} h3{font-size:15px;margin:14px 0 6px;}
.meta{font-size:13px;color:#5b6472}.wrap{display:grid;grid-template-columns:minmax(320px,1fr) 10px var(--side-width,360px);gap:0;padding:18px;align-items:start;--side-width:360px;}
.main{display:grid;gap:18px;min-width:0}.panel{background:#fffdf7;border:1px solid #d7cebd;border-radius:10px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.04);min-width:0}
.splitter{position:relative;cursor:col-resize;user-select:none;touch-action:none;align-self:stretch;min-height:100%;margin:0 6px}.splitter::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translateX(-1px);background:linear-gradient(to bottom,#c5b79f,#9d8c73);border-radius:999px}.splitter:hover::before,.splitter.dragging::before{background:linear-gradient(to bottom,#8a7760,#5f5140)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.card{border:1px solid #d8d2c4;border-radius:8px;padding:10px;background:#fff;overflow-wrap:anywhere}
.card button{all:unset;cursor:pointer;display:block;width:100%;overflow-wrap:anywhere}.id{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:#6b7280;overflow-wrap:anywhere}.label{font-weight:600;overflow-wrap:anywhere}.small{font-size:12px;color:#52606d;overflow-wrap:anywhere}
.edge{font-size:13px;border-left:3px solid #8aa398;padding:7px 9px;background:#f8fbf8;margin:6px 0}.graph{min-height:170px;border:1px dashed #cfc7b8;border-radius:8px;background:#fbfaf6;margin-bottom:12px;overflow:auto;overscroll-behavior-x:contain}.graph-scroll{display:inline-block;min-width:max-content;padding:8px}.graph svg{display:block;max-width:none}.nested-wide .graph{min-height:260px}.notice{border-left:4px solid #b7791f;background:#fff7e6;padding:8px 10px;margin:0 0 10px 0;border-radius:6px;font-size:13px;color:#5f4300}.workflow-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 10px}.workflow-toolbar .row-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.workflow-toolbar label{margin:0}.workflow-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}.workflow-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#52606d;background:#fff;border:1px solid #d8d2c4;border-radius:999px;padding:5px 9px}.workflow-swatch{width:12px;height:12px;border-radius:999px;display:inline-block;border:1px solid #607466}
svg text{font-family:Georgia,'Times New Roman',serif}.feedback{position:sticky;top:12px;align-self:start}.row{display:grid;gap:5px;margin-bottom:9px}
label{font-size:12px;font-weight:600;color:#384252}input,select,textarea{font:13px ui-sans-serif,system-ui,sans-serif;border:1px solid #b9c0c8;border-radius:6px;padding:7px;background:white}
textarea{min-height:62px}.btns{display:flex;gap:8px;flex-wrap:wrap}.btn{border:1px solid #344e41;background:#344e41;color:#fff;border-radius:6px;padding:7px 10px;cursor:pointer;font-size:13px}
.btn.secondary{background:#fff;color:#344e41}.feedback-item,.detail-box{font-size:12px;border:1px solid #d7cebd;border-radius:6px;padding:8px;margin-top:8px;background:#fff}.detail-box pre{max-height:170px}.detail-kv{display:grid;grid-template-columns:90px minmax(0,1fr);gap:4px 8px;font-size:12px;margin:6px 0}.detail-kv b{color:#384252}.feedback-section-gap{height:14px}
.task-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.task-tab{border:1px solid #9b8f78;background:#fffdf7;color:#2f3a31;border-radius:999px;padding:7px 11px;cursor:pointer;font-size:13px}.task-tab.active{background:#344e41;color:#fff;border-color:#344e41}
.subworkflow-badge{cursor:pointer}.subworkflow-badge:hover rect{filter:brightness(.9)}
.modal.hidden{display:none}.modal{position:fixed;inset:0;z-index:20}.modal-backdrop{position:absolute;inset:0;background:rgba(31,41,51,.36)}.modal-card{position:relative;margin:32px auto;width:min(1320px,calc(100vw - 48px));max-height:calc(100vh - 64px);overflow:auto;background:#fffdf7;border:1px solid #c8c1b2;border-radius:12px;box-shadow:0 14px 42px rgba(0,0,0,.22);padding:16px}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.modal-layout{display:grid;grid-template-columns:minmax(420px,1fr) 10px var(--modal-side-width,360px);gap:0;align-items:start;--modal-side-width:360px}.modal-side{min-width:0;margin-left:14px}.modal-graph{min-height:520px;margin-bottom:0}.modal-splitter{position:relative;cursor:col-resize;user-select:none;touch-action:none;align-self:stretch;min-height:520px;margin:0 6px}.modal-splitter::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translateX(-1px);background:linear-gradient(to bottom,#c5b79f,#9d8c73);border-radius:999px}.modal-splitter:hover::before,.modal-splitter.dragging::before{background:linear-gradient(to bottom,#8a7760,#5f5140)}
pre{white-space:pre-wrap;word-break:break-word;background:#20231f;color:#f4f1e8;border-radius:8px;padding:10px;font-size:12px;max-height:220px;overflow:auto}
@media(max-width:900px){.wrap{grid-template-columns:1fr}.splitter{display:none}.feedback{position:static}.modal-layout{grid-template-columns:1fr}.modal-splitter{display:none}.modal-side{margin-left:0}.modal-card{width:calc(100vw - 24px);margin:12px auto}}
