@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));
@custom-variant data-open {
  &:where([data-state="open"]),
  &:where([data-open]:not([data-open="false"])) {
    @slot;
  }
}

@custom-variant data-closed {
  &:where([data-state="closed"]),
  &:where([data-closed]:not([data-closed="false"])) {
    @slot;
  }
}

@custom-variant data-disabled {
  &:where([data-disabled="true"]),
  &:where([data-disabled]:not([data-disabled="false"])) {
    @slot;
  }
}

@custom-variant data-horizontal {
  &:where([data-orientation="horizontal"]) {
    @slot;
  }
}

@custom-variant data-vertical {
  &:where([data-orientation="vertical"]) {
    @slot;
  }
}

@theme inline {
  --font-heading: var(--font-sans);
  --font-sans: var(--oomol-font-sans);
  --font-mono: var(--oomol-font-mono);
  --shadow-console-sm: var(--console-shadow-sm);
  --shadow-console-md: var(--console-shadow-md);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-info: var(--info);
  --color-warning: var(--warning);
  --color-brand-foreground: var(--brand-foreground);
  --color-brand: var(--brand);
  --color-destructive: var(--destructive);
  --color-reward: var(--reward);
  --color-success: var(--success);
  --color-visibility-private: var(--visibility-private);
  --color-visibility-public: var(--visibility-public);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --color-foreground: var(--foreground);
  --color-background: var(--background);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
}

:root {
  color-scheme: light;
  --oomol-font-sans:
    "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --oomol-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --console-shadow-sm:
    0 1px 2px color-mix(in oklch, black 5%, transparent), 0 0 1px color-mix(in oklch, black 8%, transparent);
  --console-shadow-md:
    0 2px 6px color-mix(in oklch, black 6%, transparent), 0 1px 2px color-mix(in oklch, black 8%, transparent);
  --background: rgb(255, 255, 255);
  --foreground: rgb(41, 41, 41);
  --card: rgb(255, 255, 255);
  --card-foreground: rgb(41, 41, 41);
  --popover: rgb(255, 255, 255);
  --popover-foreground: rgb(41, 41, 41);
  --primary: rgb(41, 41, 41);
  --primary-foreground: rgb(255, 255, 255);
  --secondary: rgb(246, 246, 246);
  --secondary-foreground: rgb(41, 41, 41);
  --muted: rgb(244, 244, 244);
  --muted-foreground: color-mix(in oklab, var(--foreground) 55%, transparent);
  --accent: rgb(240, 240, 240);
  --accent-foreground: rgb(41, 41, 41);
  --brand: rgb(124, 157, 255);
  --brand-foreground: rgb(255, 255, 255);
  --destructive: rgb(215, 50, 32);
  --info: rgb(59, 99, 251);
  --reward: rgb(252, 125, 0);
  --success: rgb(5, 131, 78);
  --warning: rgb(252, 125, 0);
  --visibility-private: rgb(59, 99, 251);
  --visibility-public: rgb(5, 131, 78);
  --border: rgb(233, 233, 233);
  --input: rgb(233, 233, 233);
  --ring: rgb(124, 157, 255);
  --chart-1: rgb(124, 157, 255);
  --chart-2: rgb(59, 99, 251);
  --chart-3: rgb(5, 131, 78);
  --chart-4: rgb(252, 125, 0);
  --chart-5: rgb(215, 50, 32);
  --radius: 0.5rem;
  --sidebar: rgb(248, 248, 248);
  --sidebar-foreground: rgb(41, 41, 41);
  --sidebar-primary: rgb(41, 41, 41);
  --sidebar-primary-foreground: rgb(255, 255, 255);
  --sidebar-accent: rgb(233, 233, 233);
  --sidebar-accent-foreground: rgb(41, 41, 41);
  --sidebar-border: rgb(233, 233, 233);
  --sidebar-ring: rgb(124, 157, 255);
}

.dark {
  color-scheme: dark;
  --console-shadow-sm:
    0 1px 2px color-mix(in oklch, black 22%, transparent), 0 0 1px color-mix(in oklch, white 10%, transparent);
  --console-shadow-md:
    0 2px 8px color-mix(in oklch, black 26%, transparent), 0 0 1px color-mix(in oklch, white 12%, transparent);
  --background: rgb(17, 17, 17);
  --foreground: rgb(235, 235, 235);
  --card: rgb(27, 27, 27);
  --card-foreground: rgb(235, 235, 235);
  --popover: rgb(34, 34, 34);
  --popover-foreground: rgb(235, 235, 235);
  --primary: rgb(235, 235, 235);
  --primary-foreground: rgb(17, 17, 17);
  --secondary: rgb(34, 34, 34);
  --secondary-foreground: rgb(235, 235, 235);
  --muted: rgb(34, 34, 34);
  --muted-foreground: color-mix(in oklab, var(--foreground) 64%, transparent);
  --accent: rgb(57, 57, 57);
  --accent-foreground: rgb(235, 235, 235);
  --brand: rgb(124, 157, 255);
  --brand-foreground: rgb(255, 255, 255);
  --destructive: rgb(223, 52, 34);
  --info: rgb(64, 105, 253);
  --reward: rgb(218, 159, 0);
  --success: rgb(6, 136, 80);
  --warning: rgb(218, 159, 0);
  --visibility-private: rgb(64, 105, 253);
  --visibility-public: rgb(6, 136, 80);
  --border: rgb(57, 57, 57);
  --input: rgb(57, 57, 57);
  --ring: rgb(124, 157, 255);
  --chart-1: rgb(124, 157, 255);
  --chart-2: rgb(64, 105, 253);
  --chart-3: rgb(6, 136, 80);
  --chart-4: rgb(218, 159, 0);
  --chart-5: rgb(223, 52, 34);
  --sidebar: rgb(27, 27, 27);
  --sidebar-foreground: rgb(235, 235, 235);
  --sidebar-primary: rgb(235, 235, 235);
  --sidebar-primary-foreground: rgb(17, 17, 17);
  --sidebar-accent: rgb(57, 57, 57);
  --sidebar-accent-foreground: rgb(235, 235, 235);
  --sidebar-border: rgb(57, 57, 57);
  --sidebar-ring: rgb(124, 157, 255);
}

@layer base {
  * {
    box-sizing: border-box;
    scrollbar-color: color-mix(in oklch, var(--muted-foreground) 32%, transparent) transparent;
    scrollbar-width: thin;
    @apply border-border outline-ring/50;
  }

  *:hover {
    scrollbar-color: color-mix(in oklch, var(--muted-foreground) 48%, transparent) transparent;
  }

  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background-color: color-mix(in oklch, var(--muted-foreground) 28%, transparent);
    background-clip: content-box;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  html[lang="zh-CN"] {
    --oomol-font-sans:
      "SF Pro SC", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Segoe UI", "Microsoft YaHei UI",
      "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  }

  html,
  body,
  #root {
    min-height: 100svh;
  }

  html {
    @apply font-sans;
  }

  body {
    @apply bg-background text-foreground;
    margin: 0;
  }

  body,
  button,
  input,
  textarea,
  select {
    font-family: inherit;
  }

  button,
  a,
  input,
  textarea,
  select {
    @apply transition-colors;
  }

  button {
    color: inherit;
  }

  button:hover {
    cursor: pointer;
  }

  a {
    color: inherit;
  }

  button:focus-visible,
  a:focus-visible,
  select:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--ring) 70%, transparent);
    outline-offset: 2px;
  }
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 680;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 660;
}

h3 {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 660;
}

.app-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100svh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 0;
  border-right: 1px solid var(--sidebar-border);
  background: var(--sidebar);
  color: var(--sidebar-foreground);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 6px;
}

.brand-mark,
.provider-icon,
.action-mark,
.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(255, 255, 255);
  object-fit: cover;
}

.brand-name {
  line-height: 1.2;
  font-weight: 680;
}

.brand-subtitle,
.muted-copy,
.detail-heading p,
.provider-row small,
.action-row small,
.field small {
  color: var(--muted-foreground);
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.sidebar > .brand {
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-nav {
  display: grid;
  align-content: start;
  min-height: 0;
  gap: 4px;
  overflow-y: auto;
  padding: 16px 12px;
}

.nav-item,
.provider-row,
.action-row,
.linked-row,
.chip {
  border: 0;
  background: transparent;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-lg);
  color: var(--sidebar-foreground);
  text-align: left;
  text-decoration: none;
  font-size: 14px;
}

.nav-item:hover,
.nav-item.active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.nav-item.active {
  font-weight: 560;
  box-shadow: none;
}

.sidebar-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 8px;
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
}

.language-select {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.language-select-label,
.theme-control > span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 620;
}

.language-select-trigger {
  width: 100%;
  height: 30px;
  background: var(--background);
  font-size: 13px;
  cursor: pointer;
}

.language-select-content {
  min-width: var(--radix-select-trigger-width);
}

.theme-control {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.theme-segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--muted);
}

.theme-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 26px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.theme-segment:hover,
.theme-segment.active {
  color: var(--foreground);
}

.theme-segment.active {
  background: var(--background);
  box-shadow: var(--console-shadow-sm);
}

.runtime-status {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.runtime-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.status-dot.ok {
  background: var(--success);
}

.status-dot.error {
  background: var(--destructive);
}

.main-region {
  min-width: 0;
  min-height: 100svh;
  overflow-x: hidden;
}

.main-region-browser {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  overflow: hidden;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
}

.shell-header-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.shell-header-title svg {
  flex: 0 0 auto;
  color: var(--foreground);
}

.shell-header-title h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 660;
}

.main {
  min-width: 0;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.overview-main {
  padding-bottom: 18px;
}

.main-browser {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-bottom: 28px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.page-header p {
  margin-top: 6px;
  color: var(--muted-foreground);
}

.page-loading {
  margin-top: 0;
}

.page-stack {
  display: grid;
  gap: 18px;
}

.main-browser > .page-stack {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.actions-page {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.page-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.actions-toolbar {
  align-items: stretch;
}

.runs-toolbar {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.select-filter {
  display: grid;
  grid-template-columns: auto minmax(180px, 240px);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.select-filter-label {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 620;
}

.select-filter-trigger {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.select-filter-content {
  min-width: var(--radix-select-trigger-width);
}

.select-filter:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 40%, transparent);
}

.runtime-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.runtime-strip div {
  display: grid;
  gap: 3px;
}

.runtime-strip span {
  color: var(--muted-foreground);
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}

.metric,
.detail-panel,
.table-panel,
.list-panel,
.doc-card,
.mcp-config-card,
.example-card,
.parameter-card,
.unlock-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--console-shadow-sm);
}

.metric {
  min-height: 76px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.metric span,
.info-block span {
  display: block;
  color: var(--muted-foreground);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.2;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.overview-capability-panel {
  grid-column: 1 / -1;
}

.overview-activity-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
}

.list-panel.overview-call-trend-panel,
.list-panel.overview-recent-calls-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: hidden;
  padding: 0;
}

.detail-panel.overview-capability-panel {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.overview-capability-panel .section-heading-row {
  min-height: 44px;
  margin-bottom: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.overview-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.overview-capability-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 164px;
  gap: 16px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.overview-capability-cell:active {
  background: var(--muted);
}

.overview-capability-cell + .overview-capability-cell {
  border-left: 1px solid var(--border);
}

.overview-capability-cell:hover {
  background: color-mix(in oklab, var(--muted) 56%, transparent);
}

.overview-capability-cell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
}

.overview-capability-cell-body {
  display: grid;
  min-width: 0;
}

.overview-capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--muted-foreground);
}

.overview-capability-icon-shell {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 120px;
  height: 36px;
}

.overview-capability-static-icon {
  position: absolute;
  inset: 0 auto auto 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.overview-capability-provider-icons {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  width: 120px;
}

.overview-capability-provider-icon {
  display: inline-flex;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.overview-capability-provider-icon + .overview-capability-provider-icon {
  margin-left: -8px;
}

.overview-capability-provider-icon:nth-child(2) {
  transform: translateX(-8px);
}

.overview-capability-provider-icon:nth-child(n + 3) {
  transform: translateX(-12px);
}

.overview-capability-provider-icon .provider-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--background);
  box-shadow: 0 0 0 1px var(--background);
}

.overview-capability-provider-icon .provider-icon-image {
  width: 24px;
  height: 24px;
}

.overview-capability-cell:hover .overview-capability-static-icon,
.overview-capability-cell:focus-visible .overview-capability-static-icon {
  opacity: 0;
  transform: scale(0.95);
}

.overview-capability-cell:hover .overview-capability-provider-icon,
.overview-capability-cell:focus-visible .overview-capability-provider-icon {
  opacity: 1;
  transform: translateX(0);
}

.overview-capability-label,
.overview-capability-meta,
.overview-capability-badge,
.overview-capability-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-capability-label,
.overview-capability-meta {
  color: var(--muted-foreground);
  font-size: 12px;
}

.overview-capability-value {
  margin-top: 8px;
  color: var(--foreground);
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.overview-capability-meta {
  margin-top: 4px;
}

.overview-capability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 58%;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
}

.overview-capability-badge.success {
  border-color: color-mix(in oklab, var(--success) 22%, var(--border));
  color: var(--success);
}

.overview-capability-badge.warning {
  border-color: color-mix(in oklab, var(--warning) 24%, var(--border));
  color: var(--warning);
}

.overview-call-trend-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 220px);
  align-items: start;
  gap: 18px;
  padding: 18px;
}

.overview-call-trend-chart {
  width: 100%;
  height: 260px;
  min-width: 0;
}

.overview-call-trend-chart .recharts-cartesian-grid line {
  stroke: var(--border);
}

.overview-call-trend-chart .recharts-cartesian-axis-tick text {
  fill: var(--muted-foreground);
  font-size: 12px;
}

.overview-call-trend-chart .recharts-bar-rectangle path {
  shape-rendering: crispEdges;
}

.overview-call-trend-legend {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.overview-call-trend-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 10px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  color: inherit;
}

.overview-call-trend-legend-row span,
.overview-call-trend-legend-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-call-trend-legend-row > span:not(.overview-call-trend-swatch) {
  color: var(--muted-foreground);
}

.overview-call-trend-legend-row strong {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.overview-call-trend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.overview-recent-call-list {
  display: grid;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.overview-recent-call-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px 18px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.overview-recent-call-row + .overview-recent-call-row {
  border-top: 1px solid var(--border);
}

.overview-recent-call-row:hover {
  background: color-mix(in oklab, var(--muted) 56%, transparent);
}

.overview-recent-call-row:active {
  background: var(--muted);
}

.overview-recent-call-provider {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.overview-recent-call-provider .provider-icon,
.overview-recent-call-fallback-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
}

.overview-recent-call-provider .provider-icon-image {
  width: 28px;
  height: 28px;
}

.overview-recent-call-fallback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--muted-foreground);
}

.overview-recent-call-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.overview-recent-call-copy strong,
.overview-recent-call-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-recent-call-copy strong {
  color: var(--foreground);
  font-size: 15px;
  font-weight: 640;
}

.overview-recent-call-copy span {
  color: var(--muted-foreground);
  font-size: 13px;
}

.overview-recent-call-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.overview-recent-call-arrow {
  display: inline-flex;
  color: var(--muted-foreground);
}

@media (min-width: 1121px) {
  .overview-activity-grid {
    height: clamp(320px, calc(100svh - 418px), 740px);
  }

  .overview-call-trend-panel,
  .overview-recent-calls-panel,
  .overview-call-trend-body {
    min-height: 0;
  }

  .overview-call-trend-body {
    flex: 1;
  }

  .overview-activity-grid .overview-call-trend-chart {
    height: 100%;
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-capability-static-icon,
  .overview-capability-provider-icon,
  .overview-recent-call-row {
    transition: none;
  }
}

.split-view {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 0;
}

.actions-layout {
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  min-height: 0;
}

.list-panel {
  overflow: auto;
  max-height: calc(100svh - 194px);
}

.actions-list {
  max-height: 100%;
}

.provider-browser-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--console-shadow-sm);
}

.provider-browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.provider-browser-header h2 {
  font-size: 14px;
  line-height: 1.35;
}

.provider-collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.provider-filter-list {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
}

.provider-result-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.provider-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background-color 160ms ease;
}

.provider-card:hover {
  background: color-mix(in oklab, var(--muted) 54%, transparent);
}

.provider-card-main {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.provider-card-title-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
}

.provider-card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 560;
}

.provider-status-badges {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  max-width: 100%;
}

.provider-status-badges .badge {
  gap: 4px;
}

.provider-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 72px;
  max-width: 168px;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  text-decoration: none;
  font-size: 13px;
  font-weight: 560;
}

.provider-card-action-muted {
  color: var(--muted-foreground);
}

.provider-card:hover .provider-card-action-muted {
  color: var(--foreground);
}

.provider-card-action span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-show-more {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  padding: 12px;
}

.provider-empty-row {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 280px;
  padding: 20px;
}

.list-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.list-panel-header div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.list-panel-header strong {
  font-size: 13px;
  line-height: 1.3;
}

.list-panel-header span {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 12px;
}

.pinned-action {
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.pinned-action > span {
  display: block;
  padding: 8px 12px 0;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 620;
}

.pinned-action .action-row {
  border-bottom: 0;
  background: transparent;
}

.detail-panel {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  padding: 24px;
}

.table-panel {
  overflow: auto;
}

.table-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.provider-row,
.action-row,
.linked-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.provider-row:last-child,
.action-row:last-child,
.linked-row:last-child {
  border-bottom: 0;
}

.provider-row:hover,
.provider-row.active,
.action-row:hover,
.action-row.active,
.linked-row:hover {
  background: var(--accent);
}

.action-row.active {
  background: var(--accent);
  box-shadow: none;
}

.provider-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 700;
}

.provider-icon.large {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
}

.provider-icon-image {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.provider-icon-css-icon {
  width: 22px;
  height: 22px;
}

.provider-icon.large .provider-icon-image {
  width: 28px;
  height: 28px;
}

.provider-icon.large .provider-icon-css-icon {
  width: 28px;
  height: 28px;
}

.row-main,
.action-row-main,
.linked-row span {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.action-row .action-row-main {
  gap: 4px;
}

.row-main span,
.action-row strong,
.linked-row strong,
.linked-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-row-meta {
  font-size: 12px;
}

.action-row {
  justify-content: space-between;
}

.linked-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.provider-row > .badge,
.linked-row > .badge,
.action-status-row .badge {
  flex: 0 0 auto;
  width: fit-content;
}

.badge,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
  white-space: nowrap;
}

.badge.success {
  border-color: color-mix(in oklab, var(--success) 22%, var(--border));
  background: var(--background);
  color: var(--success);
}

.badge.warning {
  border-color: color-mix(in oklab, var(--warning) 24%, var(--border));
  background: var(--background);
  color: var(--warning);
}

.badge.error {
  border-color: color-mix(in oklab, var(--destructive) 24%, var(--border));
  background: var(--background);
  color: var(--destructive);
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.detail-heading h2,
.detail-heading p {
  overflow-wrap: anywhere;
}

.provider-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.provider-detail-header .badge {
  flex: 0 0 auto;
}

.provider-detail-page {
  display: grid;
  gap: 16px;
}

.provider-detail-route-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 2px;
}

.provider-detail-title-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.provider-detail-heading-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.provider-detail-heading-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
}

.provider-detail-heading-title h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.25;
}

.provider-detail-heading-title .provider-status-badges {
  flex: 0 0 auto;
}

.provider-detail-description {
  margin: 0;
  max-width: 680px;
  color: color-mix(in oklab, var(--foreground) 68%, transparent);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.provider-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  gap: 6px;
}

.provider-service-id {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

.provider-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-detail-layout {
  display: grid;
  gap: 16px;
}

.provider-detail-card {
  max-height: none;
  overflow: visible;
  padding: 0;
}

.provider-panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.provider-panel-title-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.provider-panel-title-row p {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.provider-connection-card > .auth-method-control,
.provider-connection-card > .connection-form,
.provider-inline-oauth-settings,
.provider-detail-card > .tag-list,
.provider-detail-card > .linked-list,
.provider-detail-card > .muted-copy {
  margin: 16px;
}

.provider-connection-card > .auth-method-control {
  margin-bottom: 0;
}

.provider-inline-oauth-settings {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.provider-inline-oauth-settings > h3 {
  margin: 0;
}

.connection-form {
  max-width: 760px;
}

.provider-not-found-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.action-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.action-status-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 420px;
}

.action-command-row {
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.detail-spacer {
  flex: 1;
}

.detail-description {
  margin: 0 0 18px;
  max-width: 760px;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.info-block {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}

.info-block svg {
  color: var(--muted-foreground);
}

.info-block strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-summary-grid {
  margin-bottom: 24px;
}

.provider-summary-grid .info-block {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
}

.provider-summary-grid .info-block svg {
  grid-row: 1 / span 2;
}

.provider-summary-grid .info-block strong {
  font-size: 16px;
  line-height: 1.25;
}

.panel-section {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.panel-section h3 {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.oauth-client-settings {
  display: grid;
  gap: 12px;
}

.oauth-client-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}

.oauth-client-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.oauth-client-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.oauth-client-title svg {
  flex: 0 0 auto;
  color: var(--muted-foreground);
}

.oauth-client-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.35;
}

.oauth-client-description,
.oauth-client-id {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.oauth-client-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "SF Mono", ui-monospace, "Cascadia Code", "Roboto Mono", monospace;
}

.oauth-client-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.oauth-client-editor {
  padding-top: 2px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 13px;
  font-weight: 620;
}

.button-row,
.section-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-row.tight {
  gap: 8px;
}

.section-heading-row {
  justify-content: space-between;
  margin-bottom: 12px;
}

.chip:hover {
  background: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-strip.inline {
  flex: 1.2;
  min-width: 280px;
  max-height: 82px;
  overflow: auto;
  padding: 0;
  border-bottom: 0;
}

.chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  cursor: pointer;
}

.chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.auth-method-control {
  width: fit-content;
  margin-bottom: 14px;
}

.action-mark,
.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
}

.parameter-card,
.example-card {
  min-width: 0;
  margin-top: 12px;
  padding: 14px;
}

.parameter-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 660;
  list-style: none;
}

.parameter-card summary::-webkit-details-marker {
  display: none;
}

.parameter-card[open] summary {
  margin-bottom: 12px;
}

.parameter-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.parameter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.parameter-row:last-child {
  border-bottom: 0;
}

.parameter-row strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.parameter-row p {
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}

.parameter-meta {
  color: var(--muted-foreground);
  font-size: 12px;
  white-space: nowrap;
}

.tab-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

pre,
.run-json-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.example-card pre,
.result-box {
  overflow: auto;
  max-height: 320px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--foreground);
  color: var(--background);
}

.token-result pre {
  max-height: none;
}

.result-panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.result-panel.ok {
  border-color: color-mix(in oklab, var(--success) 28%, var(--border));
}

.result-panel.error {
  border-color: color-mix(in oklab, var(--destructive) 28%, var(--border));
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
}

.result-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-panel .result-box {
  max-height: 420px;
  border-radius: 0 0 8px 8px;
}

.loading-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.run-action-dialog,
.token-dialog {
  display: grid;
  grid-template-rows: auto auto;
  max-height: min(820px, calc(100svh - 32px));
}

.run-action-dialog-header,
.token-dialog-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.run-action-dialog-header [data-slot="dialog-description"] {
  margin-top: 4px;
}

.run-action-dialog-body,
.token-dialog-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.run-action-dialog-body.has-result {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: min(700px, calc(100svh - 150px));
  overflow: hidden;
}

.run-action-dialog-body .run-json-input {
  height: clamp(112px, 24svh, 180px);
  min-height: 112px;
  resize: vertical;
}

.run-action-dialog-body .button-row,
.run-action-dialog-body .loading-panel {
  margin-top: 0;
}

.run-action-dialog-body .loading-panel {
  grid-row: 3;
}

.run-action-dialog-body .result-panel {
  grid-row: 4;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.run-action-dialog-body .result-box {
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.access-panel {
  display: grid;
  gap: 16px;
}

.access-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.access-panel .detail-heading {
  margin-bottom: 0;
}

.access-panel-header > [data-slot="button"] {
  justify-self: end;
}

.token-dialog-form {
  display: grid;
  gap: 14px;
}

.table-footer {
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table-actions {
  width: 1%;
  white-space: nowrap;
}

th {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 620;
}

tr:last-child td {
  border-bottom: 0;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.resources-layout {
  display: grid;
  gap: 14px;
}

.mcp-config-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 24px;
  padding: 18px;
}

.mcp-config-summary {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  min-width: 0;
}

.mcp-config-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mcp-config-heading h2 {
  margin: 1px 0 5px;
  font-size: 16px;
}

.mcp-config-heading p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.mcp-config-field {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.mcp-config-field > span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 620;
}

.mcp-endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: color-mix(in oklab, var(--muted) 58%, transparent);
}

.mcp-endpoint code {
  flex: 1;
  min-width: 0;
  overflow: auto;
  font-family: var(--oomol-font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.mcp-config-code {
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in oklab, var(--muted) 58%, transparent);
}

.mcp-config-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 4px 6px 4px 14px;
  border-bottom: 1px solid var(--border);
}

.mcp-config-code-header strong {
  font-size: 13px;
}

.mcp-config-code pre {
  min-height: 192px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  font-family: var(--oomol-font-mono);
  font-size: 12px;
  line-height: 1.55;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.doc-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 172px;
  padding: 18px;
  text-decoration: none;
}

.doc-card p {
  color: var(--muted-foreground);
  line-height: 1.5;
}

.doc-card > svg {
  position: absolute;
  right: 18px;
  top: 18px;
  color: var(--muted-foreground);
}

.empty-state,
.inline-error {
  display: grid;
  place-items: center;
  gap: 8px;
  border-radius: 8px;
  color: var(--muted-foreground);
}

.empty-state {
  min-height: 180px;
  padding: 24px;
  background: color-mix(in oklab, var(--muted) 58%, transparent);
  text-align: center;
}

.empty-state > svg {
  color: var(--muted-foreground);
}

.empty-state strong {
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.3;
}

.empty-state p {
  max-width: 40ch;
  font-size: 13px;
  line-height: 1.45;
}

.empty-state.no-icon {
  align-content: center;
  gap: 4px;
}

.empty-state.compact {
  grid-template-columns: auto minmax(0, 1fr);
  place-items: initial;
  align-items: center;
  min-height: 124px;
  gap: 4px 12px;
  padding: 18px 16px;
  background: transparent;
  text-align: left;
}

.empty-state.compact > svg {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
}

.empty-state.compact.no-icon {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 160px;
  padding-inline: 24px;
  text-align: center;
}

.empty-state.success > svg {
  border-color: color-mix(in oklab, var(--success) 24%, var(--border));
  background: color-mix(in oklab, var(--success) 10%, var(--background));
  color: var(--success);
}

.inline-error {
  --inline-error-border: var(--border);
  --inline-error-background: var(--card);
  --inline-error-foreground: var(--foreground);

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-color: var(--inline-error-border);
  background: var(--inline-error-background);
  color: var(--inline-error-foreground);
  line-height: 1.45;
  text-align: left;
}

@supports (color: color-mix(in oklab, black, white)) {
  .inline-error {
    --inline-error-border: color-mix(in oklab, var(--destructive) 32%, var(--border));
    --inline-error-background: color-mix(in oklab, var(--destructive) 9%, var(--card));
    --inline-error-foreground: color-mix(in oklab, var(--destructive) 82%, var(--foreground));
  }
}

.inline-error [data-slot="alert-description"] {
  color: inherit;
}

.inline-error svg {
  flex: 0 0 auto;
  margin-top: 1px;
  opacity: 0.9;
}

.unlock-screen {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background: var(--background);
}

.unlock-panel {
  display: grid;
  gap: 22px;
  width: min(420px, 100%);
  padding: 22px;
}

.unlock-panel .brand {
  padding: 0;
}

.unlock-submit {
  display: grid;
  grid-template-columns: 16px auto 16px;
  column-gap: 6px;
  justify-content: center;
}

.unlock-submit[data-loading="true"]:disabled {
  opacity: 1;
}

.unlock-button-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.unlock-button-spinner.idle {
  visibility: hidden;
}

.unlock-button-spinner.spin {
  opacity: 0;
  animation:
    unlock-spinner-reveal 1ms linear 180ms forwards,
    spin 0.9s linear 180ms infinite;
}

.unlock-status .inline-error {
  margin-bottom: 0;
}

.spin {
  animation: spin 0.9s linear infinite;
}

@keyframes unlock-spinner-reveal {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 760px) {
  .provider-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-card {
    border-right: 1px solid var(--border);
  }

  .provider-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (min-width: 1180px) {
  .provider-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .provider-card:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .provider-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .overview-capability-grid {
    grid-template-columns: 1fr;
  }

  .overview-capability-cell + .overview-capability-cell {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .overview-call-trend-body {
    grid-template-columns: 1fr;
  }

  .overview-call-trend-legend {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 1120px) {
  .overview-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    align-self: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar > .brand {
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    gap: 4px;
    min-width: 0;
    padding: 0;
  }

  .nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .nav-item span {
    white-space: nowrap;
  }

  .sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-top: 0;
  }

  .language-select {
    display: block;
    min-width: 128px;
  }

  .language-select-label,
  .theme-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-select-trigger {
    height: 32px;
  }

  .theme-control {
    display: block;
  }

  .theme-segmented-control {
    width: 104px;
  }

  .runtime-status {
    display: none;
  }

  .main {
    display: block;
    width: calc(100% - 32px);
    height: auto;
    overflow: visible;
    padding: 24px 0 40px;
  }

  .main-region,
  .main-region-browser {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .shell-header {
    position: static;
    padding: 0 16px;
  }

  .page-header,
  .page-toolbar,
  .split-view,
  .content-grid,
  .mcp-config-card,
  .docs-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: start;
  }

  .provider-detail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-detail-route-header,
  .provider-panel-title-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .provider-detail-actions {
    justify-content: flex-start;
  }

  .metrics,
  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-panel {
    max-height: none;
  }

  .detail-panel {
    max-height: none;
  }

  .access-panel-header {
    grid-template-columns: 1fr;
  }

  .access-panel-header > [data-slot="button"] {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: hidden;
  }

  .brand {
    padding: 0;
  }

  .main {
    width: calc(100% - 24px);
    padding: 18px 0 32px;
  }

  .shell-header {
    padding: 0 12px;
  }

  h1 {
    font-size: 24px;
  }

  .metrics,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .button-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .provider-browser-header,
  .provider-collection-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .provider-card {
    align-items: flex-start;
  }

  .provider-card-title-row {
    display: grid;
    gap: 6px;
  }

  .provider-status-badges {
    flex-wrap: wrap;
  }

  .provider-card-action {
    min-width: 0;
    max-width: 112px;
    padding-top: 8px;
  }

  .oauth-client-summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .oauth-client-summary [data-slot="button"] {
    justify-self: start;
  }

  .oauth-client-actions {
    justify-content: flex-start;
  }

  [data-slot="button"] {
    min-width: 0;
    max-width: 100%;
  }

  .filter-strip.inline,
  .select-filter {
    min-width: 0;
  }

  .select-filter {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 12px;
  }

  .action-detail-header {
    display: grid;
  }

  .action-status-row {
    justify-content: flex-start;
    max-width: none;
  }

  .provider-row,
  .action-row,
  .linked-row {
    align-items: flex-start;
  }

  .parameter-row {
    grid-template-columns: 1fr;
  }

  .table-panel {
    overflow-x: auto;
  }

  th,
  td {
    white-space: nowrap;
  }
}
