.registry-page { max-width:1500px; margin:0 auto; padding:12px 0 30px; --rg-bg:var(--surface,#111c2c); --rg-edge:#334155; --rg-muted:#94a3b8; --rg-accent:#38bdf8; color:inherit; }
#workContainer.registry-container { max-width:none; }
#workContainer.registry-container .tabs { display:none !important; }
.rg-table { min-width:720px; }.rg-table td:first-child { min-width:140px; }
.registry-page h1 { font-size:24px; margin:0 0 8px; }.registry-page h2 { font-size:18px; margin:0; }
.registry-page p { color:var(--rg-muted); margin:8px 0 20px; line-height:1.7; }
.rg-layout { display:grid; grid-template-columns:205px minmax(0,1fr); gap:20px; margin-top:22px; }
.rg-tree { padding:14px; background:var(--rg-bg); border:1px solid var(--rg-edge); border-radius:10px; align-self:start; }
.rg-tree details { margin-bottom:8px; }.rg-tree summary { padding:8px; cursor:pointer; font-weight:600; }
.rg-tree button { display:block; width:100%; text-align:left; border:0; padding:10px 12px; margin:2px 0; background:transparent; color:var(--rg-muted); border-radius:6px; cursor:pointer; }
.rg-tree button[aria-current=true] { background:rgba(56,189,248,.14); color:var(--rg-accent); }
.rg-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:16px 0; }
.registry-page button,.rg-dialog button { cursor:pointer; min-height:36px; border:1px solid #475569; background:transparent; color:inherit; border-radius:6px; padding:7px 12px; font:inherit; }
.registry-page button.primary,.rg-dialog button.primary { background:#38bdf8; color:#082238; border-color:#38bdf8; font-weight:700; }
.registry-page button:disabled { opacity:.5; cursor:default; }.registry-page button:focus-visible,.rg-dialog button:focus-visible { outline:2px solid #38bdf8; outline-offset:3px; }
.registry-page input,.registry-page select,.rg-dialog input,.rg-dialog select,.rg-dialog textarea { box-sizing:border-box; background:#0f172a; color:#e2e8f0; border:1px solid #475569; border-radius:6px; padding:9px; font:inherit; max-width:100%; }
.registry-page input[type=checkbox],.registry-page input[type=radio],.rg-dialog input[type=checkbox] { width:auto; accent-color:#38bdf8; }
.rg-table-wrap { overflow:auto; border:1px solid var(--rg-edge); border-radius:9px; }
.rg-table { border-collapse:collapse; width:100%; font-size:13px; }.rg-table th { color:var(--rg-muted); font-weight:500; background:var(--rg-bg); white-space:nowrap; }
.rg-table td,.rg-table th { text-align:left; padding:14px 12px; border-bottom:1px solid var(--rg-edge); }.rg-table tr:last-child td { border-bottom:0; }.rg-table td small { display:block; margin-top:6px; color:var(--rg-muted); overflow-wrap:anywhere; }
.rg-table select { min-width:150px; max-width:240px; }.rg-table .rg-order { white-space:nowrap; }.rg-order button { padding:3px 7px; min-height:28px; }
.rg-table .rg-effort { min-width:150px; }.rg-table .rg-effort select { width:100%; min-width:0; }
.rg-preview { margin-top:18px; border:1px solid var(--rg-edge); border-radius:9px; background:var(--rg-bg); padding:17px; display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.rg-hint { color:var(--rg-muted); font-size:12px; line-height:1.7; }.rg-status { min-height:24px; margin:12px 0; color:#7dd3fc; }.rg-status.error { color:#fca5a5; }
.rg-badge { display:inline-block; padding:4px 8px; border-radius:5px; background:rgba(56,189,248,.1); color:#7dd3fc; font-size:12px; white-space:nowrap; }
.rg-dialog { color:#e2e8f0; background:#111c2c; border:1px solid #475569; border-radius:12px; width:680px; max-width:94vw; max-height:90vh; padding:24px; margin:auto; overflow:auto; }
.rg-dialog::backdrop { background:rgba(0,0,0,.6); }.rg-dialog header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }.rg-dialog h2 { margin:0; font-size:21px; }.rg-dialog label { display:block; margin:13px 0 6px; color:#b8c6d8; font-size:13px; }.rg-dialog input:not([type=checkbox]),.rg-dialog select,.rg-dialog textarea { width:100%; }
.rg-dialog .rg-checks { display:flex; gap:14px; flex-wrap:wrap; margin:12px 0; }.rg-checks label { display:flex; gap:7px; align-items:center; margin:0; }
.rg-dialog .rg-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.rg-dialog footer { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }.rg-dialog .rg-hint { color:#9baec6; }
.rg-route-editor { border:1px solid #334155; border-radius:8px; padding:14px; margin-top:14px; }.rg-route-editor h3 { font-size:15px; margin:0; }
.rg-discovery-list { max-height:350px; overflow:auto; margin:12px 0; }.rg-discovery-list label { padding:8px; border-bottom:1px solid #334155; display:flex; gap:10px; align-items:start; }
.rg-empty { padding:35px; text-align:center; color:var(--rg-muted); }.rg-cost-pending { color:#fbbf24; }
html[data-theme=light] .registry-page { --rg-bg:#f4f7fb; --rg-edge:#d5deea; --rg-muted:#617188; color:#243449; }
html[data-theme=light] .registry-page input,html[data-theme=light] .registry-page select { background:white; color:#243449; border-color:#c4cfde; }
html[data-theme=light] .registry-page button { border-color:#bbc9dc; }html[data-theme=light] .rg-badge { color:#1672aa; }
@media(max-width:1000px) { .rg-layout { grid-template-columns:165px minmax(0,1fr); gap:10px; }.rg-table td,.rg-table th { padding:10px 7px; } }
@media(max-width:1100px) { .rg-layout { grid-template-columns:1fr; }.rg-tree { max-height:220px; overflow:auto; } }
@media(max-width:700px) { .rg-dialog .rg-two { grid-template-columns:1fr; }.rg-table { min-width:650px; } }

.settings-section-btn{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left}
.settings-section-btn svg{width:18px;height:18px;flex:0 0 18px}
.rg-pool-row{display:flex!important;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--border,#334155)}
.rg-pool-row>span:first-child{flex:1;min-width:0}.rg-pool-row small{display:block;margin-top:6px;overflow-wrap:anywhere}
.rg-pool-row input{width:20px;height:20px;flex:none}
#workContainer.prompt-container{max-width:none;width:100%}
#tab-config-prompt .prompt-template-layout{display:flex;flex-direction:column;gap:16px}
#tab-config-prompt .template-sidebar{display:flex;flex-wrap:wrap;align-items:end;gap:16px;padding:0 0 16px;border:0;border-bottom:1px solid var(--border,#334155);border-radius:0;background:none}
#tab-config-prompt .template-choice{display:flex;flex-direction:column;gap:8px;width:260px;margin:0}
#tab-config-prompt .template-choice input,#tab-config-prompt .template-choice select{margin:0;width:100%;height:40px}
#tab-config-prompt .template-sidebar-actions{display:flex;gap:8px;margin:0;align-items:center;height:40px}
#tab-config-prompt .template-sidebar>.tip{flex-basis:100%;margin:0!important}
#tab-config-prompt .template-section{display:flex;flex-direction:column;min-height:0;margin:0;padding:12px}
#tab-config-prompt .template-section textarea{flex:1;min-height:0!important;resize:none;overflow:auto;width:100%;line-height:1.7;box-sizing:border-box}
#tab-config-prompt .template-footer{margin:0;display:flex;gap:12px;align-items:center}
@media(min-width:1101px){
  #tab-config-prompt{height:var(--screen-panel-height);min-height:0}
  #tab-config-prompt>.card{box-sizing:border-box;height:100%;display:flex;flex-direction:column;margin-bottom:0;padding:20px 24px 12px}
  #tab-config-prompt h2{flex:none;margin:0}
  #tab-config-prompt .prompt-template-layout{flex:1;min-height:0;margin-top:16px}
  #tab-config-prompt .template-sidebar{flex:none}
  #tab-config-prompt .template-editor{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto;gap:14px}
  #tab-config-prompt .template-section textarea{height:0}
  #tab-config-prompt #promptStatus{flex:none;margin-top:10px!important;margin-bottom:0}
}

.rg-scene-tree{display:flex;flex-direction:column;gap:6px}.rg-scene-tree button{text-align:left;width:100%}

.rg-discovery-list .rg-pool-row > label{flex:1;min-width:0;margin:0;padding:0;border:0}
.rg-discovery-list .rg-pool-row > button{flex:none}

.rg-test-feedback{margin:6px 0 12px;line-height:1.6;overflow-wrap:anywhere;color:var(--text-secondary,#666)}
.rg-test-feedback:empty{display:none}.rg-test-feedback.error{color:var(--color-error,#b33e3e)}
.rg-pool-row>[data-test-model]{flex:none;white-space:nowrap;min-width:82px}
.registry-page .rg-status[data-test-run]{color:var(--text-secondary,#555)}
.registry-page .rg-status[data-test-run].error{color:var(--color-error,#b33e3e)}
