.workbench{--workbench-background:#f4f7fc;--workbench-surface:#fff;--workbench-border:#dce5f1;--workbench-muted:#627089;--workbench-accent:#2563eb;--workbench-selection:#eaf2ff;--focused-border-color:#3b82f6;background:var(--workbench-background);color:#24324a;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans CJK SC,Microsoft YaHei,sans-serif;font-size:14px;line-height:1.6}.workbench :where(button,a,input,select,textarea):focus-visible{outline:2px solid var(--focused-border-color);outline-offset:3px}.workbench .button{white-space:nowrap;border:1px solid transparent;border-radius:7px;min-height:36px;padding:6px 13px;font-size:13px;font-weight:500;line-height:1.5}.workbench .button[data-style=primary],.workbench .button[data-workbench-save]{background:var(--workbench-accent);border-color:var(--workbench-accent);color:#fff}.workbench .button[data-style=primary]:hover:not(:disabled),.workbench .button[data-workbench-save]:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.workbench .button[data-style=outline]:not([data-workbench-save]){border-color:var(--workbench-border);background:var(--workbench-surface);color:#40516e}.workbench .button[data-style=ghost]{color:#52627a}.workbench .button[data-style=outline]:not([data-workbench-save]):hover:not(:disabled),.workbench .button[data-style=ghost]:hover:not(:disabled){background:#edf3fd}.workbench .button[data-style=destructive]{color:#a6443c;background:#fff;border-color:#ead6d2}.workbench .button[data-style=destructive]:hover:not(:disabled){background:#fff1ef}.workbench :where(input:not([type=checkbox]):not([type=file]),select,textarea:not(.json-editor__input)){background-color:var(--workbench-surface);color:#344560;border-color:#cbd7e8;border-radius:6px;min-width:0;min-height:36px;font-size:13px;line-height:1.6}.workbench input[type=checkbox]{accent-color:var(--workbench-accent);flex-shrink:0}.workbench select{max-width:100%}.workbench label:has(>input[type=checkbox]){cursor:pointer;min-height:28px}.workbench :where(input,select,textarea):disabled{cursor:not-allowed}.workbench label:has(>input:disabled){cursor:not-allowed}.workbench-topbar{border-bottom:1px solid var(--workbench-border);background:var(--workbench-surface);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px 24px;padding:14px 24px;display:flex}.workbench-topbar h1{letter-spacing:-.02em;font-size:17px}.workbench-project-source{color:#345c9c;background:#eff6ff;border:1px solid #dbeafe;border-radius:5px;flex:none;padding:1px 7px;font-size:11px}.workbench-id{color:#627089;background:0 0;border:0;padding:0 4px 0 0;font-size:11px}.workbench-id:hover{color:var(--workbench-accent);text-decoration:underline}.workbench-sidebar{border-right:1px solid var(--workbench-border);background:#f8faff;flex-direction:column;flex:none;width:176px;min-height:0;display:flex}.workbench-sidebar-heading{color:#627089;letter-spacing:.12em;flex:none;padding:19px 22px 10px;font-size:11px}.workbench-tab-list{scrollbar-width:thin;flex:1;min-height:0;padding:0 10px 16px;overflow-y:auto}.workbench-tab-list>div+div{margin-top:16px}.workbench-section-toggle{width:100%;min-height:30px;color:var(--workbench-muted);border-radius:6px;justify-content:space-between;align-items:center;padding:4px 10px;font-size:11px;display:flex}.workbench-tab{color:#4f617c;text-align:left;overflow-wrap:anywhere;border-radius:6px;width:100%;min-height:34px;margin-top:2px;padding:6px 12px;font-size:13px;line-height:1.6;display:block}.workbench-tab:hover,.workbench-section-toggle:hover{background:#edf3fd}.workbench-tab[aria-selected=true]{background:var(--workbench-selection);color:#1e4c96;font-weight:600;box-shadow:inset 3px 0 #3b82f6}.workbench-shortcut{border-top:1px solid var(--workbench-border);color:var(--workbench-muted);flex:none;padding:12px 16px;font-size:11px}.workbench-content{scrollbar-width:thin;flex:1;min-width:0;min-height:0;padding:22px;overflow:auto;container-type:inline-size}.workbench-content-inner{height:100%;min-height:0}.resource-workspace{grid-template-columns:208px minmax(0,1fr);gap:18px;height:100%;min-height:0;display:grid}.resource-list{border:1px solid var(--workbench-border);background:var(--workbench-surface);border-radius:10px;flex-direction:column;gap:12px;min-width:0;min-height:0;padding:16px 12px;display:flex;overflow:hidden}.resource-list>:first-child{border-bottom:1px solid #e9eff8;flex-shrink:0;padding:0 3px 12px}.resource-list input{font-size:12px}.resource-list>[data-testid$=list]{scrollbar-width:thin;scrollbar-color:#bbcce4 transparent;gap:4px}.resource-row{color:#405675;text-align:left;border:1px solid transparent;border-radius:6px;flex-shrink:0;width:100%;padding:10px 12px;font-size:13px;line-height:1.5}.resource-row:hover:not(:disabled){background:#f1f6ff}.resource-row[aria-pressed=true]{background:var(--workbench-selection);color:#1e4c96;box-shadow:inset 2px 0 #3b82f6}.resource-row:disabled{opacity:.5;cursor:not-allowed}.resource-row-file{color:#5b6b84;overflow-wrap:anywhere;margin-top:3px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.resource-editor{border:1px solid var(--workbench-border);background:var(--workbench-surface);scrollbar-width:thin;scrollbar-color:#bbcce4 transparent;border-radius:10px;flex-direction:column;gap:16px;min-width:0;min-height:0;padding:0 20px 20px;scroll-padding-block:100px 20px;display:flex;overflow-y:auto;container:resource-editor/inline-size}.resource-editor>*{flex-shrink:0}.resource-editor-heading{z-index:2;background:var(--workbench-surface);border-bottom:1px solid #e2eaf5;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding:16px 0;display:flex;position:sticky;top:0}.resource-editor-heading h2{font-size:16px;font-weight:600}.resource-editor-heading p{color:var(--workbench-muted);margin-top:3px;font-size:12px}.resource-editor-split,.resource-chapter-layout{grid-template-columns:minmax(0,1fr);align-items:start;gap:20px;min-width:0;display:grid}.resource-editor-split>.json-editor{height:min(65vh,740px);min-height:320px}.resource-editor>.json-editor{flex:1 0 360px}.resource-form{min-width:0}.unit-form>div{border:1px solid #dfe7f2;border-radius:8px;padding:16px}.unit-basic-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;display:grid}.unit-basic-fields>:first-child{grid-column:1/-1}.unit-basic-fields>label:not(:has(input[type=checkbox])){grid-column:1/-1}.workbench-asset-panel{border:1px solid var(--workbench-border);background:var(--workbench-surface);border-radius:10px;padding:20px}@container (width<=950px){.resource-workspace{grid-template-columns:184px minmax(0,1fr);gap:14px}}@container (width<=600px){.resource-workspace{grid-template-rows:minmax(160px,30%) minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:12px}.resource-list{padding:12px}.resource-editor{padding-inline:14px}}@container resource-editor (width>=760px){.resource-editor-split{grid-template-columns:minmax(0,1fr) minmax(280px,.85fr)}.resource-editor-split>.json-editor{position:sticky;top:96px}}@container resource-editor (width>=880px){.resource-chapter-layout{grid-template-columns:minmax(0,1fr) 240px}.resource-chapter-inserts{max-height:65vh;position:sticky;top:96px;overflow-y:auto}}.workbench .json-editor__frame{border-color:var(--workbench-border);background:#fbfcff;border-radius:8px}.workbench .json-editor__gutter{color:#61708a;border-color:var(--workbench-border);background:#f2f6fd}.workbench .json-editor__input{caret-color:#24324a}.workbench .json-editor__input:focus-visible{outline:none}.workbench .json-editor__frame--invalid{border-color:#d48d83}.workbench .json-editor__frame:focus-within{outline:2px solid var(--focused-border-color);outline-offset:2px}.workbench .json-editor__token--key{color:#1d4ed8}.workbench .json-editor__token--text{color:#075985}.workbench .json-editor__token--number{color:#946727}.workbench .json-editor__token--literal{color:#7b5b91}@media (width<=1100px){.workbench-topbar{padding:12px 18px}.workbench-sidebar{width:152px}.workbench-tab-list{padding-inline:8px}.workbench-content{padding:16px}}@media (width<=760px){.workbench-sidebar{width:132px}.workbench-sidebar-heading{padding-inline:18px}.workbench-topbar>div:last-child{flex-wrap:wrap;max-width:100%}.workbench-content{padding:12px}.workbench-shortcut{padding-inline:10px;font-size:10px}}@media (prefers-reduced-motion:reduce){.workbench *,.workbench :before,.workbench :after{scroll-behavior:auto!important;transition:none!important}}