/* Agent workspace improvements, scoped to the existing agent page. */
.agents-page-head .page-head-stat{display:flex;align-items:flex-end;gap:8px;flex-direction:column}.agent-workspace{display:block!important}.agent-view-library .agent-builder-card,html[data-enlaza-agent-view="library"] .agent-builder-card{display:none!important}.agent-view-editor .agent-library,html[data-enlaza-agent-view="editor"] .agent-library{display:none!important}.agent-workspace .agent-library{width:100%;margin:0}.agent-workspace .agent-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px}.agent-card{padding:22px!important;border-radius:16px!important;box-shadow:none!important;border:1px solid #e3e7ee!important;display:flex;flex-direction:column}.agent-card.selected{border-color:#b9b0f5!important}.agent-card-top{margin-bottom:16px}.agent-card-copy h3{font-size:21px;margin:0 0 6px}.agent-card-copy>strong{font-size:12px;color:#5e697a;font-weight:600}.agent-card .agent-purpose{font-size:13px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:12px 0}.agent-card .agent-meta{font-size:11px;gap:6px;margin:10px 0 18px}.agent-card .readiness{display:none!important}.agent-card .agent-controls{margin-top:auto;padding-top:16px;border-top:1px solid #eef0f4;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.agent-card .agent-controls .button{font-size:12px;padding:9px 12px;min-height:36px}.agent-card .agent-controls>a:first-child{background:#f4f1ff;color:#5141ce;border-color:#e1dcfb}.agent-builder-card .follow-up-editor{display:none!important}.agent-builder-card .blueprint-note{background:#f8f9fc;border:1px solid #e8ebf1;border-radius:12px;padding:14px 16px;margin:20px 0;font-size:12px;line-height:1.6}.agent-builder-card .blueprint-note strong{font-size:13px}.integration-readiness{padding:22px!important;border:1px solid #e2e6ee!important;border-radius:16px!important;background:#fff!important;margin:22px 0!important;box-shadow:none!important}.integration-readiness-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.integration-readiness-head .eyebrow{font-size:10px;letter-spacing:.1em}.integration-readiness-head h3{font-size:19px;line-height:1.3;margin:5px 0 6px}.integration-readiness-head p{font-size:12px!important;color:#738094!important;max-width:440px;margin:0!important;line-height:1.6}.integration-readiness-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.integration-readiness-list>article{padding:16px!important;background:#fff!important;border:1px solid #e5e8ef!important;border-radius:12px!important;min-width:0;display:flex;flex-direction:column;gap:12px!important;box-shadow:none!important}.integration-readiness-list>article.ready{border-color:#cce6d8!important;background:#fcfffd!important}.integration-readiness-title{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;align-items:center!important;gap:10px!important}.integration-readiness-title>div{min-width:0}.integration-readiness-title strong{font-size:13px!important;font-weight:650}.integration-readiness-title small{font-size:11px!important;color:#778295!important;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.integration-readiness-title>.chip{grid-column:2;justify-self:start;margin:0;font-size:10px;padding:4px 7px;line-height:1.4;border:0!important;background:#f2f3f8;color:#6b7284}.integration-readiness-title>.chip.success{background:#edf9f1;color:#287248}.integration-readiness-mark{width:32px!important;height:32px!important;border:1px solid #edf0f5!important;background:#fafbfe!important;border-radius:9px!important;display:grid!important;place-items:center!important;align-self:start}.integration-readiness-mark img{width:22px;height:22px;object-fit:contain}.integration-readiness-mark .bot-app-mark{background:transparent!important;border:0!important;width:26px;height:26px}.integration-readiness-steps{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin:0!important;font-size:10px!important}.integration-readiness-steps>span{font-size:10px!important;display:flex;gap:4px;align-items:center;color:#7d8696}.integration-readiness-steps>span.complete{color:#397457}.integration-readiness-steps i{width:auto!important;height:auto!important;display:inline!important;background:transparent!important;font-style:normal}.integration-readiness-actions{display:flex;align-items:center;gap:8px;margin-top:auto!important;padding-top:0!important}.integration-readiness-actions .button{font-size:11px!important;min-height:32px!important;padding:7px 11px!important;border-radius:8px!important;background:#f6f4ff!important;border:1px solid #e5defc!important;color:#5745d5!important;width:auto!important}.integration-readiness-actions .button:disabled{background:#f5f6f8!important;color:#8b93a0!important;border-color:#e9ecf1!important;cursor:not-allowed;opacity:.75}.integration-ready-check{font-size:11px;color:#397457}.integration-readiness-list>article>p{font-size:11px;line-height:1.5;margin:0}.call-access-editor{padding:20px!important;border:1px solid #e3e7ee!important;background:#fff!important;border-radius:16px!important;margin-top:22px!important}.call-access-editor-head h3{font-size:17px}.call-access-editor-head p{font-size:12px;line-height:1.6;max-width:520px}.call-access-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.call-access-options label{padding:14px!important;border-radius:10px!important;background:#fafbfe}.call-access-options label.selected{background:#f7f4ff!important;border-color:#bfb3f4!important}.call-access-numbers{margin-top:16px}.call-access-numbers textarea{font-size:13px!important;line-height:1.6;min-height:94px;border-radius:10px}.call-access-footer .button{font-size:12px;min-height:36px;padding:9px 14px}.enlaza-agent-page-action{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;background:#5b4cf0;color:#fff!important;font-size:12px;font-weight:650;text-decoration:none}.agent-library .agent-list-head{margin-bottom:18px}.agent-library .agent-list-head h2{font-size:18px}.agent-library .agent-list-head .eyebrow{font-size:10px}@media(max-width:700px){.integration-readiness-list{grid-template-columns:1fr!important}.integration-readiness{padding:16px!important}.integration-readiness-head{gap:8px}.integration-readiness-head>.chip{font-size:10px;white-space:nowrap}.agents-page-head{align-items:flex-start!important;gap:16px!important}.agents-page-head .page-head-stat{align-items:flex-start}.call-access-options{grid-template-columns:1fr}.agent-card{padding:18px!important}}@media(prefers-reduced-motion:no-preference){.agent-card{transition:border-color .16s ease,box-shadow .16s ease}.agent-card:hover{border-color:#c9c2ed!important;box-shadow:0 4px 20px #24244108!important}}

/* A shared roster surface, rather than separate agent cards. */
.agent-workspace .agent-library .agent-list-head{display:flex;align-items:center;justify-content:space-between;margin:0;padding:22px 26px;background:#131b2e;color:#f5f7ff;border:1px solid #131b2e;border-radius:16px 16px 0 0;gap:16px}
.agent-workspace .agent-library .agent-list-head h2{font-size:18px;font-weight:600;letter-spacing:-.025em;margin:4px 0 0;color:#f5f7ff}
.agent-workspace .agent-library .agent-list-head .eyebrow{color:#a7b4d1;font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.agent-workspace .agent-library .agent-list-head .chip{background:#243049;border:1px solid #35415b;color:#d5dff2;font-size:11px;padding:6px 10px;border-radius:7px;font-variant-numeric:tabular-nums}
.agent-workspace .agent-library .agent-card-grid{display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid #e1e6ee;border-top:0;border-radius:0 0 16px 16px;overflow:hidden}
.agent-workspace .agent-library .agent-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:12px 22px;padding:26px!important;margin:0!important;min-width:0;border:0!important;border-bottom:1px solid #e8ecf2!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;align-items:start}
.agent-workspace .agent-library .agent-card:last-child{border-bottom:0!important}
.agent-workspace .agent-library .agent-card:hover{background:#fafbff!important;box-shadow:none!important}
.agent-workspace .agent-library .agent-card-top{display:contents;margin:0}
.agent-workspace .agent-library .agent-avatar{grid-column:1;grid-row:1 / 3;width:54px;height:54px;border-radius:14px;background:linear-gradient(145deg,#1c2944,#34456a);border:1px solid #405172;box-shadow:inset 0 1px 0 #ffffff20;color:#ecf2ff;display:grid;place-items:center;font-size:23px;font-weight:500;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;position:relative}
.agent-workspace .agent-library .agent-card:nth-child(even) .agent-avatar{background:linear-gradient(145deg,#34264d,#57416f);border-color:#70568b}
.agent-workspace .agent-library .agent-card-top>.chip{grid-column:3;grid-row:1;justify-self:end;align-self:start;display:inline-flex;align-items:center;gap:7px;border:1px solid #e5e9f0;background:#f4f6fa;color:#58677b;border-radius:6px;padding:5px 9px;font-size:10px;line-height:1.4;font-weight:600;margin:0}
.agent-workspace .agent-library .agent-card-top>.chip::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.agent-workspace .agent-library .agent-card-top>.chip.success{color:#207250;background:#eff8f3;border-color:#dceee3}
.agent-workspace .agent-library .agent-card-copy{grid-column:2;grid-row:1;min-width:0}
.agent-workspace .agent-library .agent-card-copy h3{font-size:22px;line-height:1.2;letter-spacing:-.035em;font-weight:650;color:#172339;margin:0 0 7px}
.agent-workspace .agent-library .agent-card-copy>strong{display:block;color:#596780;font-size:12px;line-height:1.5;font-weight:500}
.agent-workspace .agent-library .agent-purpose{font-size:12px;color:#7a8596;line-height:1.65;margin:10px 0 0;max-width:630px;-webkit-line-clamp:2}
.agent-workspace .agent-library .agent-meta{grid-column:2;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin:0;min-width:0;font-size:10px;color:#78849a;line-height:1.5}
.agent-workspace .agent-library .agent-meta>span{padding:0;background:transparent;border:0;border-radius:0}
.agent-workspace .agent-library .agent-meta>span:first-child{flex-basis:100%;color:#596780}
.agent-workspace .agent-library .agent-meta>span+span{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.agent-workspace .agent-library .agent-controls{grid-column:3;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:7px;border:0;margin:0;padding:0;align-self:end;max-width:260px}
.agent-workspace .agent-library .agent-controls .button{font-size:11px;line-height:1.4;padding:9px 12px;min-height:36px;border-radius:7px;box-shadow:none;background:#fff;color:#536078;border:1px solid #e1e6ee;white-space:nowrap;text-decoration:none}
.agent-workspace .agent-library .agent-controls>a:first-child{background:#5144d9;color:#fff;border-color:#5144d9;font-weight:600}
.agent-workspace .agent-library .agent-controls>a:first-child:hover{background:#4437c2;border-color:#4437c2}
.agent-workspace .agent-library .agent-delete-control .button{background:transparent;border-color:transparent;color:#8790a0;padding:9px 7px}
.agent-workspace .agent-library .agent-delete-control .button:hover{background:#fff2f3;color:#ad3d4d}
.agent-workspace .agent-library .agent-delete-control .button:disabled{opacity:.55;cursor:wait}
.agent-workspace .agent-library .agent-controls .button:focus-visible{outline:3px solid #b5aafb;outline-offset:3px}
.agent-workspace .agent-library .agent-control-error{max-width:220px;font-size:11px;white-space:normal}
.agent-workspace .agent-library .agent-empty{padding:32px;margin:0;color:#6d7a8f;font-size:13px}
@media(max-width:900px){.agent-workspace .agent-library .agent-card{grid-template-columns:46px minmax(0,1fr) auto;gap:12px 16px;padding:22px!important}.agent-workspace .agent-library .agent-avatar{width:46px;height:46px;font-size:20px}.agent-workspace .agent-library .agent-controls{grid-column:2 / 4;grid-row:3;justify-content:flex-start;max-width:none}.agent-workspace .agent-library .agent-meta{grid-column:2 / 4}.agent-workspace .agent-library .agent-card-copy h3{font-size:20px}}
@media(max-width:520px){.agent-workspace .agent-library .agent-list-head{padding:18px}.agent-workspace .agent-library .agent-card{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:20px 18px!important}.agent-workspace .agent-library .agent-avatar{width:40px;height:40px;border-radius:11px;font-size:18px;grid-row:1}.agent-workspace .agent-library .agent-card-top>.chip{grid-column:2;grid-row:2;justify-self:start}.agent-workspace .agent-library .agent-card-copy{grid-column:2;grid-row:1}.agent-workspace .agent-library .agent-purpose{-webkit-line-clamp:3;font-size:12px}.agent-workspace .agent-library .agent-meta{grid-column:2;grid-row:3;gap:5px 10px}.agent-workspace .agent-library .agent-controls{grid-column:1 / 3;grid-row:4;justify-content:flex-start;padding-top:4px;gap:8px}.agent-workspace .agent-library .agent-controls .button{min-height:40px;padding:10px 13px}.agent-workspace .agent-library .agent-delete-control{margin-left:auto}}
.agent-workspace .agent-library{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.agent-workspace .agent-library .agent-list-head>.muted{color:#b6c2d9;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;white-space:nowrap}
.agent-workspace .agent-library .agent-meta>span{color:inherit;font-size:10px}
.agent-workspace .agent-library .agent-purpose{min-height:0}
