.tool-catalog { position: relative; z-index: 1; color: #16033a; background: transparent; padding: 48px 0 0; scroll-margin-top: 130px; }
.tool-catalog * { box-sizing: border-box; }
.tc-pin { width: min(1240px,calc(100% - 96px)); margin: auto; }
.tc-heading { margin-bottom: 24px; }
[data-soceo-agent-home] .tc-heading h2 { margin: 0 0 9px; font: 600 25px/1.2 "Bricolage Grotesque",Inter,sans-serif; letter-spacing: -.025em; color: #16033a; }
.tc-heading p { margin: 0; font: 12px/1.5 Inter,sans-serif; color: #665a76; }
.tc-group-title { display: flex; gap: 18px; align-items: center; margin: 40px 0 18px; color: #16033a; font: 600 17px/1.3 Inter,sans-serif; letter-spacing: -.02em; }
.tc-group-title::after { content: ""; flex: 1; height: 1px; background: #e6dfed; }
.tc-group:first-child .tc-group-title { margin-top: 8px; }
.tc-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tc-card { display: flex; align-items: center; gap: 12px; min-height: 90px; min-width: 0; padding: 16px; border-radius: 12px; background: #f7f4fb; backface-visibility: hidden; transform-origin: center; }
.tc-logo { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: #fff; border-radius: 10px; }
.tc-logo img { width: 25px; height: 25px; object-fit: contain; }
.tc-logo > span { color: #7839ee; font: 600 11px Inter,sans-serif; }
.tc-card-text { min-width: 0; }
.tc-card strong { display: block; color: #16033a; font: 600 13px/1.4 Inter,sans-serif; }
.tc-caption { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.tc-caption :is(s,small) { color: #665a76; font: 10px/1.5 Inter,sans-serif; text-decoration-color: #9f92ae; }
.tc-oauth { color: #6728d4; font: 500 9px/1.4 Inter,sans-serif; }
.tc-navigation { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; min-height: 46px; margin-bottom: 12px; padding-bottom: 6px; }
.tc-position { display: flex; align-items: baseline; gap: 7px; min-width: 0; color: #665a76; font: 500 11px/1.5 Inter,sans-serif; }
.tc-position-number { color: #6728d4; font-weight: 650; font-variant-numeric: tabular-nums; }
.tc-position-total { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.tc-position-label { overflow: hidden; margin-left: 8px; color: #16033a; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tc-step-controls { display: flex; flex-shrink: 0; gap: 4px; }
.tc-step-controls button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #ddd2ec; border-radius: 8px; background: transparent; color: #6728d4; cursor: pointer; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.tc-step-controls button:hover:not(:disabled) { border-color: #b697e5; background: #eee6fa; }
.tc-step-controls button:active:not(:disabled) { background: #e5d8f7; }
.tc-step-controls button:disabled { color: #a59aac; border-color: #eee8f4; cursor: default; }
.tc-step-controls button svg, #mcp .tc-step-controls button svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-progress { position: absolute; inset: auto 0 0; height: 2px; overflow: hidden; background: #e8e0f1; }
.tc-progress span { display: block; height: 100%; background: #7839ee; transform: scaleX(var(--tc-position,0)); transform-origin: left; }
.tc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tc-tabs { position: relative; display: none; }
.tc-more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0 30px; text-align: center; }
.tc-more p { margin: 0; font: 14px/1.5 Inter,sans-serif; color: #665a76; }
.tc-more a { display: inline-flex; gap: 12px; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 18px; border: 1px solid #d7c6ed; border-radius: 8px; color: #6728d4; font: 500 13px/20px Inter,sans-serif; text-decoration: none; }
.tc-more a svg, #mcp .tc-more a svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-more a:hover { background: #eee6fa; }
.tc-more small { display: block; max-width: 65ch; margin: 0; color: #665a76; font: 11px/1.6 Inter,sans-serif; }
.tool-catalog :is(a,button):focus-visible { outline: 3px solid #7839ee; outline-offset: 4px; }
.tool-catalog[data-tc-mode="drum"] { padding: 0; }
.tool-catalog[data-tc-mode="drum"] .tc-pin { position: sticky; top: 0; height: 100svh; padding-top: 140px; padding-bottom: 32px; }
.tool-catalog[data-tc-mode="drum"] .tc-window { height: calc(100svh - 245px); overflow: clip; mask-image: linear-gradient(transparent,#000 8%,#000 90%,transparent); }
.tool-catalog[data-tc-mode="drum"] .tc-track { will-change: transform; }
.tool-catalog[data-tc-mode="tabs"] .tc-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 22px 0; padding: 5px 3px 12px; scrollbar-width: thin; scrollbar-color: #c6b2e7 transparent; }
.tc-tabs button { flex-shrink: 0; min-height: 44px; padding: 9px 13px; border: 1px solid #ddd2ec; border-radius: 8px; background: transparent; color: #665a76; font: 500 12px Inter,sans-serif; }
.tc-tabs button[aria-selected="true"] { background: #7839ee; border-color: #7839ee; color: white; }
.tc-group[hidden] { display: none; }
@media (max-width: 1100px) { .tc-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .tc-card { padding: 13px; } }
@media (max-width: 900px) { .tc-pin { width: calc(100% - 48px); } .tc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .tool-catalog { padding: 65px 0; } }
@media (max-width: 540px) { .tc-pin { width: calc(100% - 40px); } .tc-grid { grid-template-columns: 1fr; gap: 9px; } .tc-card { min-height: 75px; padding: 13px 15px; } .tc-card strong { font-size: 14px; } .tc-caption :is(s,small) { font-size: 11px; } .tc-group-title { font-size: 16px; } }

/* Connections is a workspace tab. Native scrolling stays inside its viewport. */
#mcp .mcp-interface--connections { display: block; padding: 0; min-height: 0; background: transparent; }
#mcp .mcp-interface--connections[hidden] { display: none; }
#mcp[data-mcp-active="connections"] :is(.mcp-context-footer,.mcp-motion-controls) { display: none; }
#mcp .tool-catalog[data-tc-embedded] { padding: 22px 26px 0; height: auto; }
#mcp .tool-catalog[data-tc-embedded] .tc-pin { position: relative; top: auto; width: 100%; height: auto; padding: 0; }
#mcp .tool-catalog[data-tc-embedded] .tc-heading { margin-bottom: 14px; }
#mcp .tool-catalog[data-tc-embedded] .tc-heading h2 { margin: 0 0 7px; font-size: 22px; }
#mcp .tool-catalog[data-tc-embedded] .tc-heading p { font-size: 11px; }
#mcp .tool-catalog[data-tc-embedded] .tc-navigation { flex-shrink: 0; margin-bottom: 4px; }
#mcp .tool-catalog[data-tc-embedded] .tc-step-controls button { width: 44px; min-height: 44px; padding: 0; }
#mcp .tool-catalog[data-tc-embedded] .tc-tabs { flex-shrink: 0; margin-block: 10px 6px; }
#mcp .tool-catalog[data-tc-embedded] .tc-tabs button { min-height: 44px; padding: 9px 13px; border: 1px solid #ddd2ec; border-radius: 8px; color: #665a76; font: 500 12px Inter,sans-serif; }
#mcp .tool-catalog[data-tc-embedded] .tc-tabs button[aria-selected="true"] { background: var(--mcp-accent); border-color: var(--mcp-accent); color: #fff; }
#mcp .tool-catalog[data-tc-embedded] .tc-window { height: clamp(300px,calc(100svh - 550px),380px); overflow-x: hidden; overflow-y: auto; padding: 16px 8px 16px 0; scrollbar-width: thin; scrollbar-color: #bca4de transparent; }
#mcp[data-mcp-window="fixed"] .tool-catalog[data-tc-embedded] { height: 100%; padding-bottom: 22px; }
#mcp[data-mcp-window="fixed"] .tool-catalog[data-tc-embedded] .tc-pin { display: flex; flex-direction: column; height: 100%; }
#mcp[data-mcp-window="fixed"] .tool-catalog[data-tc-embedded] .tc-heading { flex-shrink: 0; }
#mcp[data-mcp-window="fixed"] .tool-catalog[data-tc-embedded] .tc-window { flex: 1; min-height: 0; height: auto; }
#mcp .tool-catalog[data-tc-embedded] .tc-track { will-change: auto; }
#mcp .tool-catalog[data-tc-embedded] .tc-window:focus-visible { outline: 2px solid var(--mcp-accent); outline-offset: -2px; border-radius: 8px; }
#mcp .tool-catalog[data-tc-embedded] .tc-group-title { max-width: none; margin: 25px 0 14px; font: 600 15px/1.4 Inter,sans-serif; }
#mcp .tool-catalog[data-tc-embedded] .tc-group:first-child .tc-group-title { margin-top: 0; }
#mcp .tool-catalog[data-tc-embedded] .tc-grid { gap: 12px; }
#mcp .tool-catalog[data-tc-embedded] .tc-card { min-height: 82px; padding: 13px; border: 1px solid #e5e0ec; background: #fff; transition: border-color 180ms ease-out, background-color 180ms ease-out; }
#mcp .tool-catalog[data-tc-embedded] .tc-card:hover { border-color: #bda1e5; background: #fbf9ff; }
#mcp .tool-catalog[data-tc-embedded] .tc-caption :is(s,small) { font-size: 11px; }
#mcp .tool-catalog[data-tc-embedded] .tc-more { padding: 28px 0 18px; }
@media (max-width: 700px) {
  #mcp .mcp-tabs { padding: 0 8px; }
  #mcp .mcp-tab { flex-direction: column; gap: 5px; padding: 12px 4px; min-height: 80px; }
  #mcp .mcp-tab strong { font-size: 12px; }
  #mcp .mcp-tab small { font-size: 9px; }
  #mcp .tool-catalog[data-tc-embedded] { padding: 20px 16px 0; }
  #mcp .tool-catalog[data-tc-embedded] .tc-window { height: 370px; }
  #mcp .tool-catalog[data-tc-embedded] .tc-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-catalog :is(.tc-card,.tc-step-controls button) { transition: none !important; }
}
[data-ss-reduced] .tool-catalog :is(.tc-card,.tc-step-controls button) { transition: none !important; }
