/* Site presentation overrides for the deployed pricing component. */
/* Pricing filters, including the mobile sheet. Keep protocol metadata intact. */
aside:has(button[title='480p']) > div.space-y-1 > div:last-child {
  display: none;
}
aside:has(button[title='480p']) button[title='按量计费'],
aside:has(button[title='480p']) button[title='Token-based'],
aside:has(button[title='480p']) button[title='Task-based'],
aside:has(button[title='480p']) button[title='vip'] {
  display: none;
}
aside:has(button[title='480p']) button[title] {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 6px;
}
aside:has(button[title='480p']) [data-slot='collapsible-trigger'] {
  padding-block: 14px;
}
div.relative:has(> div > header > h1):has(> div > div > main) > div[aria-hidden] {
  display: none;
}

@scope (div.relative.mx-auto:has(> header > h1):has(> div > main)) {
  :scope {
    max-width: 1480px;
    padding: 88px 32px 56px;
    letter-spacing: 0;
  }
  :scope > header {
    max-width: 720px;
    padding-top: 16px;
    margin-bottom: 32px;
  }
  header > h1 { font-size: 32px; line-height: 1.3; letter-spacing: 0; }
  header > p { font-size: 14px; margin-top: 10px; }
  header > p + p { display: none; }
  header > div { max-width: 560px; margin-top: 22px; }
  header input { height: 44px; border-radius: 8px; }
  :scope > div { gap: 24px; }
  aside { border: 0; border-right: 1px solid var(--border); border-radius: 0; padding: 0 20px 0 0; }
  aside > div:first-child p { display: none; }
  aside [data-slot='collapsible'] { padding-bottom: 12px; }
  aside [data-slot='collapsible-trigger'] { padding-block: 12px; }
  main > div:first-child { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 16px; }
  main > div:has(> .grid > .group:has(h3)) > .grid { gap: 16px; }
  .group:has(> div h3) {
    position: relative;
    min-height: 178px;
    padding: 18px;
    border-radius: 8px;
    background: var(--background);
    box-shadow: 0 2px 8px rgb(0 0 0 / 2%);
  }
  .group:has(> div h3):hover { border-color: var(--primary); }
  .group:has(> div h3) > div:first-child { display: contents; }
  .group:has(> div h3) > div:first-child > div:first-child {
    width: 100%;
    gap: 12px;
    padding-right: 112px;
  }
  .group:has(> div h3) > div:first-child > div:first-child > div:first-child {
    width: 38px; height: 38px; border-radius: 8px; background: transparent;
  }
  h3 {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
  }
  h3 + div { margin-top: 6px; font-size: 14px; }
  .group:has(> div h3) > div:first-child > div:last-child {
    position: absolute; right: 16px; top: 16px; gap: 6px;
  }
  .group:has(> div h3) > div:first-child > div:last-child button {
    min-height: 32px; border-radius: 6px;
  }
  .group:has(> div h3) > p {
    display: -webkit-box; min-height: 40px; margin-top: 13px; margin-bottom: 14px;
    overflow: hidden; font-size: 13px; line-height: 1.6;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .group:has(> div h3) > div:last-child {
    display: flex; flex-direction: row; align-items: center; gap: 12px; margin-top: auto;
    padding-right: 0;
  }
  .group:has(> div h3) [data-slot='status-badge'] { padding: 0; font-size: 12px; }
  .group:has(> div h3) > div:last-child > div:first-child > span:first-child { font-size: 12px; }
  .yunhui-second-price {
    margin-top: 5px !important;
    color: var(--foreground) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }
  .yunhui-per-second-card [title='按秒计费'] {
    color: #d946ef;
    font-weight: 650;
  }
  .yunhui-per-second-card [title='按次计费'] {
    color: #d946ef;
    font-weight: 650;
  }
  /* These three models charge per request, not per million tokens. */
  .group:has(> div h3) > div:last-child > div:last-child > span[class*='foreground/50'] { display: none; }
  @media (min-width: 1280px) {
    :scope > div { grid-template-columns: 260px minmax(0, 1fr); }
  }
  @media (min-width: 1024px) and (max-width: 1279px) {
    main > div:has(> .grid > .group:has(h3)) > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (max-width: 767px) {
    :scope { padding: 72px 16px 32px; }
    :scope > header { padding-top: 12px; margin-bottom: 24px; }
    header > h1 { font-size: 28px; }
    header > p { font-size: 13px; }
    header > div { margin-top: 18px; }
    .group:has(> div h3) { min-height: 178px; padding: 18px; }
    h3 { font-size: 14px; }
    main > div:first-child { padding-bottom: 12px; }
  }
}
.yunhui-hidden-filter,
col.yunhui-hidden-column,
th[data-column-id='plugin'],
td[data-column-id='plugin'],
.yunhui-task-model-source {
  display: none !important;
}

th.yunhui-task-model-header {
  position: relative;
  color: transparent !important;
  font-size: 0 !important;
}

th.yunhui-task-model-header::after {
  content: '模型';
  color: var(--foreground);
  font-size: 12px;
}

td.yunhui-task-model-cell {
  color: transparent !important;
  font-size: 0 !important;
}

td.yunhui-task-model-cell > * {
  display: none !important;
}

td.yunhui-task-model-cell::before {
  content: attr(data-yunhui-model);
  display: inline-flex;
  max-width: 220px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
  padding: 3px 9px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark td.yunhui-task-model-cell::before {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}
