:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.eyebrow { color: #526581; font-weight: 750; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); letter-spacing: -.045em; margin: .35rem 0 1.25rem; }
h2 { letter-spacing: -.03em; margin-top: 0; }
a { color: #4c248f; }
.panel, .agent { background: #fff; border: 1px solid #dce3ef; border-radius: 1rem; padding: 1.35rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgb(23 32 51 / 3%); }
label { display: grid; gap: .35rem; margin: .8rem 0; font-weight: 650; }
fieldset { border: 1px solid #dce3ef; border-radius: .75rem; margin: 1rem 0; padding: .75rem 1rem 1rem; }
legend { color: #1d3557; font-weight: 750; padding: 0 .3rem; }
.nested-fieldset { background: #f8faff; border-color: #d8e2f2; margin: 1rem 0 .45rem; }
.field-help { color: #60708a; font-size: .84rem; line-height: 1.45; margin: .35rem 0; }
.form-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.form-heading h2 { margin-bottom: .35rem; }
.form-heading .muted { margin: 0; max-width: 46rem; line-height: 1.5; }
.form-actions { align-items: center; display: flex; gap: .8rem; margin-top: 1.1rem; }
.form-actions button { margin: 0; }
.form-change-note { background: #fff9e9; border: 1px solid #efd79a; border-radius: .65rem; color: #5f430d; line-height: 1.45; margin: 1rem 0; padding: .75rem .9rem; }
#mcp-tools { display: grid; gap: .55rem; margin-top: .65rem; }
#mcp-tools label { align-items: start; background: #fff; border: 1px solid #d8e2f2; border-radius: .55rem; display: flex; font-size: .9rem; font-weight: 500; gap: .35rem; line-height: 1.35; margin: 0; padding: .65rem .7rem; }
#mcp-tools input { accent-color: #1659c7; margin: .15rem 0 0; padding: 0; }
input, textarea, select { font: inherit; padding: .65rem .7rem; border: 1px solid #aebbd0; border-radius: .45rem; background: #fff; }
textarea { min-height: 5rem; }
button { border: 1px solid transparent; border-radius: .5rem; padding: .62rem .9rem; margin: .2rem .4rem .2rem 0; cursor: pointer; font: inherit; font-weight: 650; }
button.primary { color: #fff; background: #1659c7; }
button.secondary { color: #19355f; background: #fff; border-color: #b8c6dc; }
button:disabled { opacity: .45; cursor: not-allowed; }
.error { color: #b42318; }
.muted { color: #58677f; }
.agents { display: grid; gap: .75rem; }
.agent { display: grid; gap: .65rem; margin: 0; transition: border-color .15s, box-shadow .15s; }
.agent:hover { border-color: #9eb8e4; box-shadow: 0 6px 18px rgb(31 67 123 / 8%); }
.agent-title { color: #172b4d; font-size: 1.1rem; font-weight: 750; text-decoration: none; }
.agent-title:hover { color: #1659c7; text-decoration: underline; }
.agent p { margin: 0; }
.agent-state, .detail-state { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.agent-collections { font-size: .86rem; color: #526581; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: .25rem .55rem; font-size: .78rem; font-weight: 700; text-transform: capitalize; }
.status-pill.success { color: #0a5c36; background: #ddf6e8; }
.status-pill.warning { color: #85520b; background: #fff2d2; }
.status-pill.error { color: #9e1c18; background: #fee4e2; }
.status-pill.neutral { color: #49586f; background: #e9eef6; }
.detail-hero { display: flex; justify-content: space-between; gap: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e3e9f2; }
.detail-hero h2 { font-size: 2rem; margin-bottom: .35rem; }
.detail-description { max-width: 42rem; margin: 0; line-height: 1.5; }
.detail-state { justify-content: flex-end; align-content: flex-start; }
.metadata-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.metadata-item { padding: .85rem .95rem; border-radius: .7rem; background: #f5f8fc; }
.metadata-item dt, .section-label { color: #60708a; font-size: .75rem; font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.metadata-item dd { margin: .3rem 0 0; color: #1d3557; font-weight: 650; }
.collections-section { margin: 1.4rem 0; }
.integration-notice { margin: 1.2rem 0; padding: 1rem; border: 1px solid #efd79a; border-radius: .75rem; background: #fff9e9; color: #5f430d; }
.integration-notice strong { color: #714a05; }
.integration-notice p { margin: .45rem 0 .7rem; line-height: 1.45; }
.collection-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; margin-top: .65rem; }
.collection-card { display: grid; gap: .25rem; border: 1px solid #d8e2f2; border-radius: .7rem; padding: .85rem .95rem; background: #fff; }
.collection-card strong { color: #1b365d; }
.collection-id { color: #66758b; font-size: .78rem; overflow-wrap: anywhere; }
.deployment-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .65rem; row-gap: .6rem; margin: 1.35rem 0; padding: 1rem; border: 1px solid #efd79a; border-radius: .75rem; background: #fff9e9; }
.deployment-progress.success { border-color: #b7e4ca; background: #f0fbf4; }
.deployment-progress.error { border-color: #f5b8b4; background: #fff4f2; }
.deployment-heading { font-weight: 750; color: #243b60; }
.deployment-progress p, .deployment-id, .deployment-stages { grid-column: 1 / -1; margin: 0; }
.deployment-progress p { color: #526581; line-height: 1.45; }
.deployment-id { color: #66758b; font-size: .78rem; overflow-wrap: anywhere; }
.deployment-polling { color: #66758b; font-size: .78rem; text-align: right; }
.deployment-stages { display: flex; list-style: none; padding: 0; gap: .35rem; color: #74839a; font-size: .78rem; font-weight: 700; }
.deployment-stages li { display: flex; align-items: center; gap: .35rem; }
.deployment-stages li:not(:last-child)::after { content: ""; width: 1.8rem; height: 2px; background: #d5deea; }
.deployment-stages li.complete, .deployment-stages li.current { color: #1659c7; }
.deployment-stages li.complete::before, .deployment-stages li.current::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.deployment-stages li.current::before { animation: deployment-pulse 1.4s ease-in-out infinite; }
@keyframes deployment-pulse { 50% { opacity: .35; transform: scale(1.45); } }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; padding-top: 1.1rem; border-top: 1px solid #e3e9f2; }
.detail-actions button { margin: 0; }
.open-agent { margin-left: .45rem; font-weight: 700; }
.connection-row { padding: .75rem 0; border-bottom: 1px solid #e6ecf5; color: #314464; }
.registry-list, .registry-picker { display: grid; gap: .8rem; margin-top: 1rem; }
.registry-card, .binding-group { border: 1px solid #d8e2f2; border-radius: .7rem; background: #f8faff; padding: .85rem .95rem; }
.registry-card { display: grid; gap: .45rem; }
.registry-card code { color: #66758b; font-size: .78rem; overflow-wrap: anywhere; }
.binding-group { display: grid; gap: .5rem; }
.binding-group h3 { font-size: .95rem; margin: 0; color: #1d3557; }
.binding-release { display: block; margin: 0; font-weight: 700; }
.binding-tools { display: flex; flex-wrap: wrap; gap: .35rem .8rem; padding-left: 1.4rem; }
.binding-tools label { display: inline-flex; margin: 0; font-size: .88rem; font-weight: 500; gap: .25rem; }
@media (max-width: 720px) { .shell { padding: 2rem 1rem; } .detail-hero, .form-heading { display: grid; } .detail-state { justify-content: flex-start; } .metadata-grid { grid-template-columns: 1fr; } }
