/* Provider workspace extends the existing account dialog and keeps the chat layout intact. */
.kc-workspace-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:28px;overflow:auto;overscroll-behavior:contain;color:var(--kc-text,#f0f5ed);background:var(--kc-panel,#101511);border:1px solid rgba(184,235,115,.22);border-radius:20px;box-shadow:0 28px 100px #0008}
.kc-workspace-dialog::backdrop{background:rgba(5,10,7,.72);backdrop-filter:blur(8px)}
.kc-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:10px}
.kc-workspace-header h2{margin:0;font-size:24px;letter-spacing:-.03em}
.kc-workspace-header button{flex:0 0 auto;min-width:auto}
.kc-workspace-dialog h3{font-size:16px;letter-spacing:-.01em;margin:0 0 12px}
.kc-workspace-dialog .kc-small{font-size:12px;line-height:1.65;color:var(--kc-muted,#a5afa2);margin:10px 0}
.kc-workspace-dialog label:not(.kc-workspace-consent){display:block;font-size:12px;font-weight:600;margin:16px 0 8px}
.kc-workspace-dialog input:not([type=checkbox]),.kc-workspace-dialog select{box-sizing:border-box;width:100%;min-height:44px;padding:11px 13px;background:rgba(255,255,255,.035);color:inherit;border:1px solid rgba(184,235,115,.22);border-radius:10px;font:inherit;font-size:13px;outline-offset:3px}
.kc-workspace-dialog input:focus-visible,.kc-workspace-dialog select:focus-visible,.kc-workspace-dialog button:focus-visible,.kc-workspace-dialog summary:focus-visible{outline:2px solid #c3f766}
.kc-workspace-dialog select option{background:#162016;color:#f0f5ed}
.kc-workspace-connection{border:1px solid rgba(184,235,115,.18);background:rgba(171,234,90,.045);border-radius:14px;padding:20px;margin:22px 0 26px}
.kc-workspace-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.kc-workspace-dialog .kc-workspace-actions button,.kc-workspace-dialog .kc-workspace-header button{margin:0}
.kc-workspace-consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.65;color:var(--kc-muted,#a5afa2);margin:16px 0}
.kc-workspace-consent input{flex:0 0 auto;min-width:16px;min-height:16px;margin:3px 0 0;accent-color:#c3f766}
.kc-workspace-form .kc-primary{width:100%;margin:0}
.kc-workspace-form [role=status]:empty{display:none}
.kc-workspace-dialog summary{cursor:pointer;list-style:none;font-size:13px}
.kc-workspace-dialog summary::-webkit-details-marker{display:none}
.kc-workspace-reachable summary{padding:10px 0;color:#d4f5ae}
.kc-workspace-reachable summary:before{content:'›';display:inline-block;margin-right:8px}
.kc-workspace-reachable details[open]>summary:before{transform:rotate(90deg)}
.kc-workspace-reachable ul,.kc-workspace-models{list-style:none;margin:0;padding:0}
.kc-workspace-reachable ul{max-height:230px;overflow:auto;padding:4px 12px;background:#0002;border-radius:8px}
.kc-workspace-reachable li{padding:9px 0;border-bottom:1px solid #ffffff0b;font-size:12px}
.kc-workspace-dialog code{display:block;overflow-wrap:anywhere;font-size:11px;line-height:1.6;color:var(--kc-muted,#a5afa2);margin-top:3px}
.kc-workspace-catalog-list{display:grid;gap:9px}
.kc-workspace-provider{border:1px solid rgba(184,235,115,.15);border-radius:11px;overflow:hidden}
.kc-workspace-provider>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;min-height:22px}
.kc-workspace-provider>summary:after{content:'+';font-size:18px;color:#a6d879;order:3}
.kc-workspace-provider[open]>summary:after{content:'−'}
.kc-workspace-provider-name{font-weight:600;flex:1;overflow-wrap:anywhere}
.kc-workspace-tag{display:inline-block;font-size:10px;line-height:1.4;border-radius:6px;padding:4px 7px;color:#c2d1b7;background:#c3f7660e;border:1px solid #c3f7661e;flex-shrink:0}
.kc-workspace-provider>p{padding:0 14px}
.kc-workspace-models{padding:0 14px 6px;max-height:380px;overflow:auto}
.kc-workspace-models>li{padding:12px 0;border-top:1px solid #ffffff0b}
.kc-workspace-model-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.kc-workspace-dialog .kc-workspace-models .kc-small{font-size:11px;margin:5px 0 0}
.kc-workspace-dialog button[disabled]{opacity:.5;cursor:wait}
.kc-workspace-dialog [hidden]{display:none!important}
.kc-workspace-dialog .kc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:560px){.kc-workspace-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px;border-radius:16px}.kc-workspace-header{gap:12px}.kc-workspace-header h2{font-size:21px}.kc-workspace-connection{padding:15px}.kc-workspace-actions button{flex:1}.kc-workspace-provider>summary{gap:8px}.kc-workspace-provider>summary>.kc-workspace-tag{display:none}.kc-workspace-model-heading{display:block}.kc-workspace-model-heading .kc-workspace-tag{margin-top:6px}}
/* Runtime-backed choices come before the reference catalogue. */
.kc-workspace-nav{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.kc-workspace-nav button{margin:0;min-width:0;font-size:12px;padding:9px 12px}
.kc-workspace-included,.kc-workspace-catalog,.kc-workspace-connection{scroll-margin-top:16px}
.kc-workspace-included{padding:22px 0 26px;margin-top:10px;border-top:1px solid #c3f7661e}
.kc-workspace-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kc-workspace-section-header h3{margin:0}
.kc-workspace-section-header button{margin:0;min-width:0;padding:8px 12px;font-size:12px}
.kc-workspace-included-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:10px}
.kc-workspace-included-list>li{padding:15px;border:1px solid #c3f76628;border-radius:12px;background:#c3f76607}
.kc-workspace-included-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.kc-workspace-included-heading>div{min-width:0;overflow-wrap:anywhere}
.kc-workspace-included-heading strong{display:block;font-size:13px;line-height:1.5}
.kc-workspace-included-heading .kc-small{display:block;margin:3px 0}
.kc-workspace-tag-live{color:#d3f7a6;background:#b8eb7318;border-color:#b8eb7345}
.kc-workspace-dialog .kc-workspace-use-model{margin:12px 0 0;min-width:0;padding:8px 13px;font-size:12px}
.kc-workspace-dialog .kc-workspace-use-model[disabled]{cursor:not-allowed}
.kc-workspace-catalog{padding-top:24px;border-top:1px solid #c3f7661e}
.kc-workspace-catalog>.kc-text-link{display:inline-block;font-size:12px;margin:0 0 14px}
.kc-workspace-catalog-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.65fr);gap:9px}
.kc-workspace-connection>summary{font-weight:600;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.kc-workspace-connection>summary:after{content:'+';font-size:20px;color:#a6d879}
.kc-workspace-connection[open]>summary:after{content:'−'}
.kc-workspace-dialog .kc-workspace-connection-reason{color:#d6e6c9}
@media(max-width:560px){.kc-workspace-catalog-tools{grid-template-columns:1fr}.kc-workspace-nav{gap:6px}.kc-workspace-nav button{flex:1 1 auto}.kc-workspace-included-heading{display:block}.kc-workspace-included-heading>.kc-workspace-tag{margin-top:9px}.kc-workspace-section-header{align-items:center}.kc-workspace-section-header button{font-size:11px}.kc-workspace-models{max-height:460px}}

.kc-cloud-active .kc-workspace-dialog{width:min(760px,calc(100vw - 32px));max-width:none}
@media(min-width:700px){.kc-workspace-included-list{grid-template-columns:repeat(2,minmax(0,1fr))}.kc-workspace-included-heading{display:block}.kc-workspace-included-heading>.kc-workspace-tag{margin-top:9px}}
@media(max-width:560px){.kc-cloud-active .kc-workspace-dialog{width:calc(100vw - 16px)}}
