:root{--erc-green:#18765b;--erc-green-light:#eef8f3;--erc-ink:#263346;--erc-muted:#7c8797;--erc-line:#e5eaf1;--erc-bg:#f7f9fb}
.ec-create{max-width:700px;margin:0 auto;color:var(--erc-ink)}.ec-mode-tabs{display:flex;gap:4px;border-bottom:1px solid var(--erc-line);margin:-4px 0 22px}.ec-mode-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 16px;background:transparent;color:var(--erc-muted)}.ec-mode-tabs button.on{color:var(--erc-green);border-bottom-color:var(--erc-green);font-weight:600}.ec-form .ec-field{margin-bottom:18px}.ec-field>label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.ec-field em{font-style:normal;font-weight:400;color:var(--erc-muted);margin-left:5px}.ec-field input,.ec-field textarea,.ec-ai-create textarea,.erc-form input,.erc-form textarea,.erc-form select{width:100%;border:1px solid var(--erc-line);border-radius:8px;background:#fff;padding:10px 12px;outline:none;font:inherit}.ec-field input:focus,.ec-field textarea:focus,.ec-ai-create textarea:focus,.erc-form input:focus,.erc-form textarea:focus,.erc-form select:focus{border-color:var(--erc-green);box-shadow:0 0 0 3px #18765b14}.ec-help{font-size:11px;color:var(--erc-muted);margin:6px 0 0}.ec-ai-button{float:right;border:0;background:transparent;color:var(--erc-green);padding:0;font-size:11px}.ec-fill{display:flex;gap:7px;margin-top:8px}.ec-fill input{flex:1;font-size:12px;padding:8px 10px}.ec-fill button{font-size:12px;white-space:nowrap}.ec-avatar-row{display:flex;align-items:center;gap:14px}.ec-avatar{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#e8f1ec;color:var(--erc-green);font-weight:700;overflow:hidden;flex:none}.ec-avatar img{width:100%;height:100%;object-fit:cover}.ec-avatar-options{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ec-avatar-choice{width:42px;height:42px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:#f1f4f6}.ec-avatar-choice img{width:100%;height:100%;object-fit:cover;display:block}.ec-avatar-choice.on{border-color:var(--erc-green);box-shadow:0 0 0 2px #18765b20}.ec-avatar-choice.upload{display:grid;place-items:center;border:1px dashed #b9cec5;color:var(--erc-green);font-size:22px;cursor:pointer}.ec-picks{display:flex;flex-wrap:wrap;gap:7px}.ec-pick{border:1px solid var(--erc-line);border-radius:20px;background:#fff;padding:5px 13px;font-size:12px}.ec-pick.on{border-color:var(--erc-green);background:var(--erc-green-light);color:var(--erc-green);font-weight:600}.ec-skills{border-top:1px solid var(--erc-line);padding-top:12px;margin-top:16px}.ec-skills summary{cursor:pointer;font-size:12px}.ec-skills summary span{color:var(--erc-muted);font-weight:400;margin-left:5px}.ec-skills>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.ec-skill{border:1px solid var(--erc-line);border-radius:8px;padding:7px 10px;font-size:12px}.ec-skill input{width:auto;margin-right:5px;accent-color:var(--erc-green)}.ec-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--erc-line);padding-top:16px;margin-top:20px}.ec-actions button{border-radius:8px;padding:9px 18px;font-size:12px}.ec-actions .primary{background:var(--erc-green);border-color:var(--erc-green)}.ec-error,.erc-error{color:#bb3434;background:#fff4f3;border-radius:8px;padding:9px 11px;font-size:12px;margin-top:12px}.ec-ai-create{text-align:center;padding:12px 0}.ec-ai-create h3{font-size:18px;margin:10px 0 4px}.ec-ai-create textarea{text-align:left;margin-top:18px;min-height:100px}.ec-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px;text-align:left}.ec-template{border:1px solid var(--erc-line);border-radius:9px;padding:11px;background:#fff}.ec-template b{display:block;font-size:12px}.ec-template span{display:block;color:var(--erc-muted);font-size:11px;margin-top:3px}.ec-loading{text-align:center;color:var(--erc-muted);padding:40px}
.erc-config{display:flex;min-height:560px;margin:-20px -22px;color:var(--erc-ink)}.erc-tabs{width:128px;flex:none;background:#f7f9fb;border-right:1px solid var(--erc-line);padding:16px 9px;display:flex;flex-direction:column;gap:4px}.erc-tabs button{border:0;background:transparent;text-align:left;padding:11px 10px;border-radius:7px;color:var(--erc-ink);font-size:12px}.erc-tabs button.on{background:var(--erc-green-light);color:var(--erc-green);font-weight:600}.erc-panel{flex:1;min-width:0;padding:22px 24px;overflow:auto}.erc-title{font-size:16px;font-weight:600;margin:0 0 5px}.erc-desc{font-size:12px;color:var(--erc-muted);margin:0 0 18px;line-height:1.7}.erc-section-title{font-size:13px;font-weight:600;margin:18px 0 10px}.erc-form .erc-field{margin-bottom:14px}.erc-field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.erc-field label small{font-weight:400;color:var(--erc-muted);margin-left:5px}.erc-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.erc-row>select{min-width:0;max-width:100%;flex:1 1 180px}.erc-row>*:first-child{flex:1;min-width:0}.erc-row .erc-button{flex:none}.erc-button{border:1px solid var(--erc-line);background:#fff;border-radius:7px;padding:8px 12px;font-size:12px;white-space:nowrap}.erc-button.primary{background:var(--erc-green);border-color:var(--erc-green);color:#fff}.erc-button.danger{color:#bb3434}.erc-button:disabled{opacity:.5}.erc-notice{background:#f1f8f4;border:1px solid #d8ebe0;color:#487361;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.7;margin-bottom:14px}.erc-card{border:1px solid var(--erc-line);border-radius:9px;background:#fff;padding:13px 14px;margin-bottom:10px}.erc-card-head{display:flex;align-items:center;gap:8px}.erc-card-head b{font-size:13px;flex:1;min-width:0}.erc-card p{font-size:12px;color:var(--erc-muted);margin:5px 0}.erc-card-meta{font-size:11px;color:var(--erc-muted);margin-top:7px}.erc-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.erc-card-actions button{border:0;background:transparent;color:var(--erc-green);font-size:11px;padding:3px 5px}.erc-card-actions button.danger{color:#bb3434}.erc-kind-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.erc-kind{border:1px solid var(--erc-line);border-radius:9px;background:#fff;text-align:left;padding:12px}.erc-kind.on{border-color:var(--erc-green);background:var(--erc-green-light)}.erc-kind.disabled{opacity:.5;cursor:not-allowed}.erc-kind b{display:block;font-size:12px}.erc-kind span{display:block;font-size:11px;color:var(--erc-muted);margin-top:4px}.erc-subform{border:1px dashed var(--erc-line);border-radius:9px;padding:13px;margin:12px 0;background:#fcfdfd}.erc-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.erc-three{display:grid;grid-template-columns:100px 1fr 1fr;gap:10px}.erc-switch{display:flex;align-items:center;gap:9px;font-size:12px;margin:14px 0}.erc-switch input{accent-color:var(--erc-green);width:16px;height:16px}.erc-list-empty{text-align:center;color:var(--erc-muted);font-size:12px;padding:26px 0}.erc-memory-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.erc-file-preview{background:#f7f9fb;border:1px solid var(--erc-line);border-radius:7px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:12px/1.7 ui-monospace,Menlo,monospace;margin-top:10px}.erc-file-edit textarea{width:100%;min-height:220px;font:12px/1.7 ui-monospace,Menlo,monospace;margin-top:10px}.erc-agent-id{display:flex;gap:7px}.erc-agent-id input{font-family:ui-monospace,Menlo,monospace;background:#f7f9fb;color:var(--erc-muted)}.erc-avatar-current{display:flex;align-items:center;gap:12px;margin-bottom:12px}.erc-avatar-current img,.erc-avatar-current .erc-letter{width:48px;height:48px;border-radius:13px;object-fit:cover}.erc-letter{display:grid;place-items:center;background:#e8f1ec;color:var(--erc-green);font-weight:700}.erc-avatar-grid{display:flex;gap:8px;flex-wrap:wrap}.erc-avatar-grid button{width:42px;height:42px;border:2px solid transparent;border-radius:11px;padding:0;overflow:hidden;background:#f1f4f6}.erc-avatar-grid button.on{border-color:var(--erc-green)}.erc-avatar-grid button.used{opacity:.35;cursor:not-allowed}.erc-avatar-grid img{width:100%;height:100%;object-fit:cover}.erc-skill-tag{font-size:10px;background:var(--erc-green-light);color:var(--erc-green);border-radius:4px;padding:2px 6px;font-weight:400}.erc-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--erc-line);padding-top:15px;margin-top:18px}.erc-footer button{font-size:12px}.erc-copy{cursor:pointer}.erc-muted{color:var(--erc-muted)}
.erc-seg{display:inline-flex;gap:4px;background:var(--erc-bg);border:1px solid var(--erc-line);border-radius:10px;padding:4px;margin-bottom:16px}.erc-seg button{border:0;background:transparent;border-radius:7px;padding:7px 14px;font-size:12px;color:var(--erc-ink);cursor:pointer;display:flex;align-items:center;gap:6px}.erc-seg button.on{background:#fff;color:var(--erc-green);font-weight:600;box-shadow:0 1px 4px rgba(20,35,52,.12)}.erc-seg .erc-count{font-size:10px;background:var(--erc-green-light);color:var(--erc-green);border-radius:999px;padding:1px 7px}
.erc-config{display:flex;min-height:560px;margin:-20px -22px;color:var(--erc-ink)}.erc-tabs{width:128px;flex:none;background:#f7f9fb;border-right:1px solid var(--erc-line);padding:16px 9px;display:flex;flex-direction:column;gap:4px}.erc-tabs button{border:0;background:transparent;text-align:left;padding:11px 10px;border-radius:7px;color:var(--erc-ink);font-size:12px}.erc-tabs button.on{background:var(--erc-green-light);color:var(--erc-green);font-weight:600}.erc-panel{flex:1;min-width:0;padding:22px 24px;overflow:auto}.erc-title{font-size:16px;font-weight:600;margin:0 0 5px}.erc-desc{font-size:12px;color:var(--erc-muted);margin:0 0 18px;line-height:1.7}.erc-section-title{font-size:13px;font-weight:600;margin:18px 0 10px}.erc-form .erc-field{margin-bottom:14px}.erc-field label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.erc-field label small{font-weight:400;color:var(--erc-muted);margin-left:5px}.erc-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.erc-row>*:first-child{flex:1;min-width:0}.erc-row .erc-button{flex:none}.erc-button{border:1px solid var(--erc-line);background:#fff;border-radius:7px;padding:8px 12px;font-size:12px;white-space:nowrap}.erc-button.primary{background:var(--erc-green);border-color:var(--erc-green);color:#fff}.erc-button.danger{color:#bb3434}.erc-button:disabled{opacity:.5}.erc-notice{background:#f1f8f4;border:1px solid #d8ebe0;color:#487361;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.7;margin-bottom:14px}.erc-card{border:1px solid var(--erc-line);border-radius:9px;background:#fff;padding:13px 14px;margin-bottom:10px}.erc-card-head{display:flex;align-items:center;gap:8px}.erc-card-head b{font-size:13px;flex:1;min-width:0}.erc-card p{font-size:12px;color:var(--erc-muted);margin:5px 0}.erc-card-meta{font-size:11px;color:var(--erc-muted);margin-top:7px}.erc-card-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.erc-card-actions button{border:0;background:transparent;color:var(--erc-green);font-size:11px;padding:3px 5px}.erc-card-actions button.danger{color:#bb3434}.erc-kind-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.erc-kind{border:1px solid var(--erc-line);border-radius:9px;background:#fff;text-align:left;padding:12px}.erc-kind.on{border-color:var(--erc-green);background:var(--erc-green-light)}.erc-kind.disabled{opacity:.5;cursor:not-allowed}.erc-kind b{display:block;font-size:12px}.erc-kind span{display:block;font-size:11px;color:var(--erc-muted);margin-top:4px}.erc-subform{border:1px dashed var(--erc-line);border-radius:9px;padding:13px;margin:12px 0;background:#fcfdfd}.erc-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.erc-three{display:grid;grid-template-columns:100px 1fr 1fr;gap:10px}.erc-switch{display:flex;align-items:center;gap:9px;font-size:12px;margin:14px 0}.erc-switch input{accent-color:var(--erc-green);width:16px;height:16px}.erc-list-empty{text-align:center;color:var(--erc-muted);font-size:12px;padding:26px 0}.erc-memory-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.erc-file-preview{background:#f7f9fb;border:1px solid var(--erc-line);border-radius:7px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;font:12px/1.7 ui-monospace,Menlo,monospace;margin-top:10px}.erc-file-edit textarea{width:100%;min-height:220px;font:12px/1.7 ui-monospace,Menlo,monospace;margin-top:10px}.erc-agent-id{display:flex;gap:7px}.erc-agent-id input{font-family:ui-monospace,Menlo,monospace;background:#f7f9fb;color:var(--erc-muted)}.erc-avatar-current{display:flex;align-items:center;gap:12px;margin-bottom:12px}.erc-avatar-current img,.erc-avatar-current .erc-letter{width:48px;height:48px;border-radius:13px;object-fit:cover}.erc-letter{display:grid;place-items:center;background:#e8f1ec;color:var(--erc-green);font-weight:700}.erc-avatar-grid{display:flex;gap:8px;flex-wrap:wrap}.erc-avatar-grid button{width:42px;height:42px;border:2px solid transparent;border-radius:11px;padding:0;overflow:hidden;background:#f1f4f6}.erc-avatar-grid button.on{border-color:var(--erc-green)}.erc-avatar-grid button.used{opacity:.35;cursor:not-allowed}.erc-avatar-grid img{width:100%;height:100%;object-fit:cover}.erc-skill-tag{font-size:10px;background:var(--erc-green-light);color:var(--erc-green);border-radius:4px;padding:2px 6px;font-weight:400}.erc-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--erc-line);padding-top:15px;margin-top:18px}.erc-footer button{font-size:12px}.erc-copy{cursor:pointer}.erc-muted{color:var(--erc-muted)}
@media(max-width:700px){.erc-config{margin:-16px;min-height:0}.erc-tabs{width:92px;padding:10px 5px}.erc-tabs button{font-size:11px;padding:10px 6px}.erc-panel{padding:16px 14px}.erc-kind-grid{grid-template-columns:1fr}.erc-three{grid-template-columns:1fr}.ec-template-grid{grid-template-columns:1fr}.ec-avatar-row{align-items:flex-start;flex-direction:column}}
#inspect:has(.erc-config){box-sizing:border-box;width:min(920px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);overflow:hidden}
#inspect[open]:has(.erc-config){display:flex;flex-direction:column}
#inspect:has(.erc-config)>.dialog-head{flex:none}
#inspect:has(.erc-config) .dialog-body{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#inspect:has(.erc-config) .erc-config{margin:0;min-height:0}
@media(max-width:700px){#inspect:has(.erc-config){width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}}

/* Keep the create dialog's primary action reachable at common window heights. */
#inspect:has(.ec-create) .dialog-body{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#inspect:has(.ec-create) .ec-actions{position:sticky;bottom:0;background:linear-gradient(transparent 0,#fff 28%);padding-top:20px;margin-top:8px}

.erc-config.erc-basic-only{display:block;min-height:0}.erc-basic-only .erc-panel{padding:16px 20px}.erc-basic-only .erc-footer{position:sticky;bottom:0;background:var(--panel-surface,#fff)}
/* Quiet Desktop surfaces, with one accent shared by selectors and forms. */
:root[data-desktop-ui="simple"]{--desktop-ui-accent:#07c160;--desktop-ui-panel:#fff;--desktop-ui-sidebar:#f1f1f1;--desktop-ui-line:#e5e5e5;--desktop-ui-text:#202020;--desktop-ui-muted:#909090;--desktop-ui-radius:8px;--desktop-ui-shadow:0 12px 36px #0002;--accent:var(--desktop-ui-accent);--line:var(--desktop-ui-line);--ink:var(--desktop-ui-text);--muted:var(--desktop-ui-muted)}
:root[data-theme="dark"][data-desktop-ui="simple"]{--desktop-ui-accent:#07c160;--desktop-ui-panel:#242424;--desktop-ui-sidebar:#1d1d1d;--desktop-ui-line:#353535;--desktop-ui-text:#e5e5e5;--desktop-ui-muted:#909090;--desktop-ui-shadow:0 12px 36px #0005}
[data-desktop-ui="simple"] #inspect:has(.ec-create),[data-desktop-ui="simple"] #inspect:has(.erc-basic-only){width:min(640px,calc(100vw - 40px));border:1px solid var(--desktop-ui-line);border-radius:10px;box-shadow:var(--desktop-ui-shadow);background:var(--desktop-ui-panel);color:var(--desktop-ui-text)}
[data-desktop-ui="simple"] #inspect:has(.ec-create)::backdrop,[data-desktop-ui="simple"] #inspect:has(.erc-basic-only)::backdrop,[data-desktop-ui="simple"] .ed-delete-dialog::backdrop{background:#0002}
[data-desktop-ui="simple"] #inspect:has(.ec-create)>.dialog-head,[data-desktop-ui="simple"] #inspect:has(.erc-basic-only)>.dialog-head{padding:18px 24px;border:0;min-height:56px;box-sizing:border-box;background:transparent}
[data-desktop-ui="simple"] #inspect:has(.ec-create)>.dialog-head h2,[data-desktop-ui="simple"] #inspect:has(.erc-basic-only)>.dialog-head h2{font-size:16px;font-weight:500;line-height:24px}
[data-desktop-ui="simple"] .ec-create,[data-desktop-ui="simple"] .erc-basic-only{--erc-ink:var(--desktop-ui-text);--erc-muted:var(--desktop-ui-muted);--erc-line:var(--desktop-ui-line);--erc-green:var(--desktop-ui-accent);--erc-green-light:#07c16012;font-size:14px}
[data-desktop-ui="simple"] .erc-basic-only .erc-title{display:none}[data-desktop-ui="simple"] .erc-basic-only .erc-desc{font-size:12px;color:var(--desktop-ui-muted);margin:0 0 24px}
[data-desktop-ui="simple"] .ec-mode-tabs{border:0;background:var(--desktop-ui-sidebar);padding:3px;border-radius:7px;gap:3px;margin-bottom:24px}
[data-desktop-ui="simple"] .ec-mode-tabs button{flex:1;padding:8px 12px;border:0;border-radius:5px;color:var(--desktop-ui-muted);font-weight:400;font-size:13px}
[data-desktop-ui="simple"] .ec-mode-tabs button.on{background:var(--desktop-ui-panel);color:var(--desktop-ui-text);box-shadow:0 1px 3px #0001}
[data-desktop-ui="simple"] .ec-field label,[data-desktop-ui="simple"] .erc-basic-only .erc-field>label{font-size:13px;font-weight:400;color:var(--desktop-ui-text)}
[data-desktop-ui="simple"] .ec-create input,[data-desktop-ui="simple"] .ec-create textarea,[data-desktop-ui="simple"] .erc-basic-only input,[data-desktop-ui="simple"] .erc-basic-only textarea{font:14px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;border:1px solid var(--desktop-ui-line);border-radius:6px;background:var(--desktop-ui-panel);color:var(--desktop-ui-text);box-shadow:none}
[data-desktop-ui="simple"] .ec-help,[data-desktop-ui="simple"] .erc-help{color:var(--desktop-ui-muted);font-size:12px}
[data-desktop-ui="simple"] .ec-create .ec-actions,[data-desktop-ui="simple"] .erc-basic-only .erc-footer{padding:20px 0 4px;background:var(--desktop-ui-panel);border:0;gap:12px}
[data-desktop-ui="simple"] .ec-create .ec-actions button,[data-desktop-ui="simple"] .erc-basic-only .erc-footer button{min-width:96px;min-height:34px;border:0;border-radius:6px;background:var(--desktop-ui-sidebar);font-size:13px;font-weight:400;color:var(--desktop-ui-text)}
[data-desktop-ui="simple"] .ec-create .ec-actions .primary,[data-desktop-ui="simple"] .erc-basic-only .erc-footer .primary{background:var(--desktop-ui-accent);color:#fff}
[data-desktop-ui="simple"] .ec-avatar-choice,[data-desktop-ui="simple"] .erc-avatar-grid button{border-radius:8px}[data-desktop-ui="simple"] .erc-basic-only .erc-panel{padding:0 24px 20px}
[data-desktop-ui="simple"] .erc-basic-only .erc-agent-id input{border:0;background:var(--desktop-ui-sidebar);font-size:12px}
[data-desktop-ui="simple"] .ec-create .ec-skill,[data-desktop-ui="simple"] .erc-basic-only .ec-skill{background:transparent;border:0;font-size:13px}
[data-desktop-ui="simple"] .ec-skills summary{font-size:13px;font-weight:400;padding:12px 0}
@media(max-width:620px){[data-desktop-ui="simple"] #inspect:has(.ec-create),[data-desktop-ui="simple"] #inspect:has(.erc-basic-only){width:calc(100vw - 24px)}[data-desktop-ui="simple"] .erc-basic-only .erc-panel{padding:0 16px 16px}}
/* Resource drawers have bounded content scrollers; actions remain inside the viewport. */
[data-desktop-ui="simple"] #inspect:has(.erc-config){box-sizing:border-box;width:min(860px,calc(100vw - 48px));height:min(680px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);overflow:hidden;border:1px solid var(--desktop-ui-line);border-radius:10px;background:var(--desktop-ui-panel);color:var(--desktop-ui-text)}
[data-desktop-ui="simple"] #inspect:has(.erc-config)>.dialog-head{flex:none;padding:16px 24px;min-height:56px;border:0;box-sizing:border-box;background:transparent}
[data-desktop-ui="simple"] #inspect:has(.erc-config)>.dialog-head h2{font-size:16px;line-height:24px;font-weight:500}
[data-desktop-ui="simple"] #inspect:has(.erc-config) .dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;overflow:hidden}
[data-desktop-ui="simple"] #inspect .erc-config{flex:1;width:100%;height:100%;min-height:0;overflow:hidden;margin:0;--erc-ink:var(--desktop-ui-text);--erc-muted:var(--desktop-ui-muted);--erc-line:var(--desktop-ui-line);--erc-green:var(--desktop-ui-accent)}
[data-desktop-ui="simple"] .erc-config .erc-panel{min-width:0;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:16px 24px 20px;box-sizing:border-box;background:var(--desktop-ui-panel)}
[data-desktop-ui="simple"] .erc-tabs{width:132px;background:var(--desktop-ui-sidebar);padding:14px 8px;border-right:0;overflow:auto}
[data-desktop-ui="simple"] .erc-tabs button{font-size:13px;font-weight:400;padding:12px 10px;border-radius:6px}
[data-desktop-ui="simple"] .erc-tabs button.on{background:var(--desktop-ui-panel);color:var(--desktop-ui-text)}
[data-desktop-ui="simple"] #inspect:has(.erc-basic-only){width:min(640px,calc(100vw - 48px));height:min(760px,calc(100dvh - 48px))}
[data-desktop-ui="simple"] .erc-basic-only .erc-panel{height:100%;padding-top:0}
[data-desktop-ui="simple"] .erc-basic-only .erc-footer{position:sticky;bottom:-20px;z-index:1;margin-top:20px;padding:16px 0 20px;background:var(--desktop-ui-panel);border-top:1px solid var(--desktop-ui-line)}
[data-desktop-ui="simple"] .erc-config input,[data-desktop-ui="simple"] .erc-config textarea,[data-desktop-ui="simple"] .erc-config select{box-sizing:border-box;max-width:100%;background:var(--desktop-ui-panel);color:var(--desktop-ui-text);border-color:var(--desktop-ui-line);border-radius:6px;font-size:14px}
[data-desktop-ui="simple"] .erc-config .erc-card,[data-desktop-ui="simple"] .erc-config .erc-button,[data-desktop-ui="simple"] .erc-config .erc-kind,[data-desktop-ui="simple"] .erc-config .erc-subform{background:var(--desktop-ui-panel);color:var(--desktop-ui-text)}
[data-desktop-ui="simple"] .erc-config .erc-button.primary{background:var(--desktop-ui-accent);color:#fff}
@media(max-width:600px){[data-desktop-ui="simple"] #inspect:has(.erc-config){width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}[data-desktop-ui="simple"] .erc-tabs{width:98px;padding:10px 4px}[data-desktop-ui="simple"] .erc-tabs button{font-size:12px;padding:11px 7px}[data-desktop-ui="simple"] .erc-config .erc-panel{padding:12px 14px 16px}[data-desktop-ui="simple"] .erc-three,[data-desktop-ui="simple"] .erc-two{grid-template-columns:1fr}}

.erc-tabs button{display:flex;align-items:center;gap:9px}.erc-tab-icon{width:16px;height:16px;flex:none;background:currentColor;mask:var(--erc-tab-icon) center/contain no-repeat;-webkit-mask:var(--erc-tab-icon) center/contain no-repeat}

:root[data-desktop-ui="simple"]{--panel-surface:var(--desktop-ui-panel);--sidebar-surface:var(--desktop-ui-sidebar);--field-surface:var(--desktop-ui-panel);--text-secondary:var(--desktop-ui-muted);--accent-soft:#07c16012}
[data-desktop-ui="simple"] .erc-config .erc-footer{position:sticky;bottom:-20px;background:var(--desktop-ui-panel);z-index:1;padding:16px 0 20px;border-top:1px solid var(--desktop-ui-line)}
@media(max-width:600px){[data-desktop-ui="simple"] .erc-tabs{width:108px}[data-desktop-ui="simple"] .erc-tabs button{gap:6px;padding:11px 6px;white-space:nowrap}}

/* ---- 0.6.3 创建弹窗视觉精修（真实改动稿）---- */
/* 1. 模式标签：米色块 → 克制分段控件（浅灰槽 + 选中浮起） */
.ec-create .ec-mode-tabs{background:transparent;padding:0;gap:0;border-bottom:1px solid #e2e6e4;border-radius:0;margin:0 0 20px}
.ec-create .ec-mode-tabs button{flex:none;padding:9px 18px 11px;border-radius:0;border-bottom:2px solid transparent;background:transparent;color:#8a9189;font-size:13.5px}
.ec-create .ec-mode-tabs button.on{background:transparent;color:#202020;font-weight:600;border-bottom-color:#07c160;box-shadow:none}
/* 2. 表单层级：标签加大、必填淡化、字段间距统一 */
.ec-create .ec-field>label{font-size:13px;font-weight:600;color:#202020;margin-bottom:8px}
.ec-create .ec-field>label em{font-size:11px;font-weight:400}
.ec-create .ec-form .ec-field{margin-bottom:20px}
.ec-create .ec-field input,.ec-create .ec-field textarea{border-radius:8px;font-size:14px;line-height:1.6;padding:10px 13px;transition:border-color .15s,box-shadow .15s}
.ec-create .ec-field input:focus,.ec-create .ec-field textarea:focus{border-color:#07c160;box-shadow:0 0 0 3px #07c1601a}
.ec-create .ec-help{font-size:11.5px;line-height:1.6}
/* 3. 头像行：更大更清晰，选中带角标 */
.ec-create .ec-avatar-row{gap:16px}
.ec-create .ec-avatar,.ec-create .ec-avatar-choice{width:48px;height:48px;border-radius:50%}
.ec-create .ec-avatar-choice{position:relative;border:2px solid transparent;background:#f2f3f4;cursor:pointer;transition:border-color .15s,transform .15s}
.ec-create .ec-avatar-choice:hover{transform:translateY(-1px)}
.ec-create .ec-avatar-choice.on{border-color:#07c160;box-shadow:0 0 0 3px #07c1601f}
.ec-create .ec-avatar-choice.on::after{content:'';position:absolute;right:-2px;bottom:-2px;width:16px;height:16px;border-radius:50%;background:#07c160 center/10px no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 7"/></svg>');border:2px solid #fff;box-sizing:content-box}
.ec-create .ec-avatar-choice.upload{border:1.5px dashed #c2c9c6;background:transparent;color:#07c160;font-size:20px}
.ec-create .ec-avatar-choice.upload:hover{border-color:#07c160}
/* 4. 格式胶囊：统一高度与描边 */
.ec-create .ec-pick{border-radius:999px;padding:6px 15px;font-size:12.5px;border-color:#e2e6e4;background:#ffffff;color:#202020}
.ec-create .ec-pick.on{border-color:#07c160;background:#07c1600f;color:#07c160}
/* 5. AI 帮我写：从浮动小字改成标签内联按钮 */
.ec-create .ec-ai-button{float:right;border:1px solid #e2e6e4;border-radius:999px;padding:3px 11px;font-size:11.5px;color:#07c160;background:#ffffff;margin-top:-3px}
.ec-create .ec-ai-button:hover{border-color:#07c160;background:#07c1600d}
/* 6. 底部操作条：实体固定条（不再透明渐变浮在内容上） */
#inspect:has(.ec-create) .ec-actions{position:sticky;bottom:0;z-index:2;margin:12px -24px -20px;padding:14px 24px 18px;background:#ffffff;border-top:1px solid #e2e6e4;box-shadow:none}
.ec-create .ec-actions button{height:38px;padding:0 20px;border-radius:8px;font-size:13.5px;border:1px solid #e2e6e4;background:#ffffff;color:#202020;cursor:pointer}
.ec-create .ec-actions button:hover{border-color:#c9cdc9}
.ec-create .ec-actions .primary{background:#07c160;border-color:#07c160;color:#fff;font-weight:600}
.ec-create .ec-actions .primary:hover{background:#06ad56;border-color:#06ad56}
/* 7. 弹窗本体：加宽、滚动条不压字 */
#inspect:has(.ec-create){width:min(720px,calc(100vw - 40px))}
#inspect:has(.ec-create) .dialog-body{padding:20px 24px 0;scrollbar-width:thin;scrollbar-color:#d4d8d5 transparent}
#inspect:has(.ec-create) .dialog-body::-webkit-scrollbar{width:8px}
#inspect:has(.ec-create) .dialog-body::-webkit-scrollbar-thumb{background:#d4d8d5;border-radius:8px;border:2px solid #ffffff;background-clip:content-box}
#inspect:has(.ec-create)>.dialog-head{padding:18px 24px 12px;min-height:0;border-bottom:1px solid #e2e6e4}
#inspect:has(.ec-create)>.dialog-head h2{font-size:16.5px;font-weight:600}
