.registry-toolbar { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.registry-toolbar button, .deployment-registry button { padding: 8px 12px; border: 1px solid var(--registry-line, #cdd4e2); border-radius: 8px; color: inherit; background: var(--registry-field, #fff); font-size: 13px; cursor: pointer; }
.registry-toolbar button:disabled, .deployment-registry button:disabled { cursor: not-allowed; opacity: .5; }
.registry-toolbar button:hover:not(:disabled), .deployment-registry button:hover:not(:disabled) { border-color: var(--primary); }
.deployment-registry { --registry-line: #d5dcea; --registry-field: #fff; --registry-muted: #54647a; --registry-panel: #f3f6fb; display: grid; width: min(1440px, calc(100vw - 72px)); height: min(900px, calc(100vh - 72px)); max-width: none; max-height: calc(100vh - 72px); grid-template-rows: auto minmax(0, 1fr); margin: auto; padding: 0; overflow: hidden; color: #172033; border: 1px solid var(--registry-line); border-radius: 16px; background: #fafbfe; box-shadow: 0 30px 100px #101d3e66; font-size: 14px; }
.deployment-registry:not([open]) { display: none; }
.deployment-registry::backdrop { background: #081123b8; backdrop-filter: blur(4px); }
.registry-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--registry-line); }
.registry-header h2 { margin: 0; font-size: 22px; }
.registry-header p { margin: 6px 0 0; color: var(--registry-muted); font-size: 13px; }
.registry-layout { display: grid; min-height: 0; grid-template-columns: 300px minmax(0, 1fr); }
.registry-sidebar { display: flex; min-height: 0; flex-direction: column; overflow: hidden; padding: 16px; background: var(--registry-panel); border-right: 1px solid var(--registry-line); }
.registry-sidebar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.registry-discovery { margin: 12px 0; color: var(--registry-muted); line-height: 1.55; overflow-wrap: anywhere; }
.registry-models { display: grid; min-height: 0; flex: 1 1 auto; align-content: start; gap: 8px; overflow-y: scroll; overscroll-behavior: contain; padding-right: 5px; scrollbar-gutter: stable; }
.registry-models button { text-align: left; padding: 12px; overflow-wrap: anywhere; }
.registry-models button.selected { outline: 2px solid var(--primary); outline-offset: -2px; }
.registry-models strong, .registry-models small { display: block; }
.registry-models strong { font-size: 14px; line-height: 1.5; }
.registry-models small { margin-top: 5px; color: var(--registry-muted); font-size: 12px; }
.registry-editor { min-width: 0; overflow-y: auto; padding: 16px 22px 20px; }
.registry-editor fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.registry-metadata { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.registry-metadata-help { margin: -3px 0 13px; color: var(--registry-muted); font-size: 12px; line-height: 1.6; }
.deployment-registry label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.deployment-registry input, .deployment-registry select, .deployment-registry textarea { width: 100%; min-width: 0; padding: 9px 10px; color: inherit; border: 1px solid var(--registry-line); border-radius: 7px; background: var(--registry-field); font: inherit; }
.deployment-registry input:focus, .deployment-registry textarea:focus, .deployment-registry select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.deployment-registry input:disabled { opacity: .7; }
.registry-source-label { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 7px; }
.registry-source-label small { color: var(--registry-muted); font-size: 12px; }
.deployment-registry .registry-source { min-height: 240px; height: 27vh; resize: vertical; white-space: pre; tab-size: 2; font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.registry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.deployment-registry button.registry-primary { color: #fff; background: #5f50d6; border-color: #5f50d6; }
.registry-revision { margin-left: auto; color: var(--registry-muted); font-size: 12px; }
.registry-message { padding: 12px; border: 1px solid var(--registry-line); border-radius: 8px; background: var(--registry-panel); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.registry-message.error { color: #b52642; border-color: #e4a1af; }
.registry-conversions { padding: 10px 0; }
.deployment-registry .registry-check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; line-height: 1.5; }
.deployment-registry .registry-check input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: #7162e7; }
.registry-preview { padding: 12px; max-height: 260px; overflow: auto; border: 1px solid var(--registry-line); border-radius: 8px; background: var(--registry-field); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.registry-history { display: flex; align-items: end; gap: 8px; margin-top: 12px; }
.registry-history label { flex: 1; }
.advanced-parameters { margin-top: 8px; font-size: 13px; }
.advanced-parameters summary { cursor: pointer; padding: 5px 0; }
.advanced-parameters .parameter-grid { margin-top: 8px; }
.advanced-parameters input[type=checkbox] { width: 20px; height: 20px; }
[data-theme=dark] .registry-toolbar { --registry-line: #354868; --registry-field: #14213a; }
[data-theme=dark] .deployment-registry { --registry-line: #354868; --registry-field: #101d34; --registry-muted: #abbcd6; --registry-panel: #142039; color: #edf3ff; background: #0b1529; }
[data-theme=dark] .registry-message.error { color: #ffadc0; border-color: #9d4e65; }
@media (max-height: 850px) { .deployment-registry { height: calc(100vh - 30px); max-height: calc(100vh - 30px); } .registry-header { padding: 12px 20px; } }
