/* 接口文档 Tab 专用样式（作用域隔离，不改全局 api-intel-* 基础定义） */
.api-intel-docs-shell {
  --docs-gap: 0.75rem;
  --docs-radius: 14px;
  --docs-section-bg: rgba(255, 255, 255, 0.42);
  --docs-section-line: rgba(14, 116, 144, 0.1);
  --docs-scroll-thumb: rgba(14, 116, 144, 0.28);
  --docs-title-size: 0.95rem;
  --docs-label-size: 0.78rem;
  --docs-control-h: 2.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.api-intel-docs-shell .docs-split.api-intel-split {
  gap: var(--docs-gap);
  align-items: start;
}

.api-intel-docs-shell .api-intel-card.docs-step {
  margin: 0;
  padding: 0.95rem 1.05rem 1.05rem;
  border-radius: var(--docs-radius);
  background: var(--aiintel-surface-glass, rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 14px 32px -26px rgba(15, 28, 46, 0.28);
}

.api-intel-docs-shell .docs-step__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.api-intel-docs-shell .docs-step__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14, 116, 144, 0.78);
}

.api-intel-docs-shell .docs-step__eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0891b2, #0f766e);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

.api-intel-docs-shell .docs-step__head h3 {
  margin: 0;
  font-size: var(--docs-title-size);
  font-weight: 780;
  letter-spacing: -0.01em;
  color: var(--aiintel-ink, #0f172a);
}

.api-intel-docs-shell .docs-step__head > .api-intel-muted {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.api-intel-docs-shell .docs-section {
  margin-top: 0.7rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border-radius: 12px;
  background: var(--docs-section-bg);
  border: 1px solid var(--docs-section-line);
}

.api-intel-docs-shell .docs-section:first-of-type {
  margin-top: 0;
}

.api-intel-docs-shell .docs-section__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aiintel-muted, #64748b);
}

.api-intel-docs-shell .docs-section .api-intel-grid-2 {
  margin-top: 0;
}

.api-intel-docs-shell .docs-field--span-2 {
  grid-column: 1 / -1;
}

.api-intel-docs-shell .api-intel-field {
  font-size: var(--docs-label-size);
}

.api-intel-docs-shell .api-intel-field input,
.api-intel-docs-shell .api-intel-field select {
  min-height: var(--docs-control-h);
  border-radius: 10px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.api-intel-docs-shell .api-intel-field input:focus,
.api-intel-docs-shell .api-intel-field select:focus {
  outline: none;
  border-color: rgba(14, 116, 144, 0.5);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}



.api-intel-docs-shell .docs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.api-intel-docs-shell .docs-cta-row .api-intel-btn--primary {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 18px -10px rgba(14, 116, 144, 0.7);
}

.api-intel-docs-shell .docs-scroll {
  margin-top: 0.55rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--docs-scroll-thumb) transparent;
}

.api-intel-docs-shell .docs-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.api-intel-docs-shell .docs-scroll::-webkit-scrollbar-thumb {
  background: var(--docs-scroll-thumb);
  border-radius: 999px;
}

.api-intel-docs-shell #api-intel-l5-sync-jobs.docs-scroll {
  max-height: 6rem;
}

.api-intel-docs-shell #api-intel-spec-list.docs-scroll {
  max-height: none;
  margin-top: 0.35rem;
  padding: 0.2rem;
  border: 1px solid rgba(14, 116, 144, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
  overflow: visible;
}
.api-intel-docs-shell #api-intel-spec-list.docs-scroll.is-empty {
  max-height: none;
  border: none;
  background: transparent;
  padding: 0;
}

.api-intel-docs-shell #api-intel-changes-watch.docs-scroll:empty {
  display: none;
}

.api-intel-docs-shell #api-intel-changes-watch.docs-scroll {
  max-height: 12rem;
  margin-top: 0.55rem;
}

.api-intel-docs-shell #api-intel-changes-list.docs-scroll {
  max-height: min(420px, 48vh);
  margin-top: 0.55rem;
}

.api-intel-docs-shell #api-intel-l5-map-box.docs-scroll {
  max-height: min(320px, 40vh);
  margin-top: 0.55rem;
  padding-right: 0.15rem;
}

.api-intel-docs-shell .api-intel-docs-shell__map .api-intel-row,
.api-intel-docs-shell #api-intel-spec-list .api-intel-row,
.api-intel-docs-shell #api-intel-changes-list .api-intel-row,
.api-intel-docs-shell #api-intel-changes-watch .api-intel-row {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(14, 116, 144, 0.12);
}

.api-intel-docs-shell .api-intel-fold {
  margin-top: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--docs-section-line);
  background: rgba(255, 255, 255, 0.34);
  padding: 0.15rem 0.7rem 0.55rem;
}

.api-intel-docs-shell .api-intel-fold > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--aiintel-ink-soft, #334155);
  padding: 0.55rem 0.15rem;
  list-style: none;
}

.api-intel-docs-shell .api-intel-fold > summary::-webkit-details-marker {
  display: none;
}

.api-intel-docs-shell .api-intel-fold > summary::before {
  content: "›";
  display: inline-block;
  width: 1rem;
  color: rgba(14, 116, 144, 0.85);
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.api-intel-docs-shell .api-intel-fold[open] > summary::before {
  transform: rotate(90deg);
}

.api-intel-docs-shell .api-intel-toolbar {
  margin-bottom: 0.35rem;
}

.api-intel-docs-shell #api-intel-changes-meta:empty {
  display: none;
}

.api-intel-docs-shell #api-intel-changes-meta {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-intel-docs-shell #api-intel-changes-summary:empty {
  display: none;
}

.api-intel-docs-shell .docs-step--map .docs-section--manual {
  margin-top: 0.75rem;
}

@media (min-width: 1101px) {
  .api-intel-docs-shell .docs-split.api-intel-split {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.2fr);
    gap: 0.85rem;
  }

  .api-intel-docs-shell .api-intel-split__work {
    position: sticky;
    top: 8.25rem;
  }
}

@media (max-width: 1100px) {
  .api-intel-docs-shell .api-intel-split__work {
    position: static;
  }

  .api-intel-docs-shell #api-intel-spec-list.docs-scroll:not(.is-empty) {
    max-height: 10rem;
  }

  .api-intel-docs-shell #api-intel-changes-list.docs-scroll {
    max-height: min(360px, 42vh);
  }
}

.api-intel-docs-shell .docs-next-list {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: rgba(15, 28, 46, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.api-intel-docs-shell .docs-next-list strong {
  font-weight: 650;
}

.api-intel-docs-shell .docs-overview {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.06);
  border: 1px solid rgba(14, 116, 144, 0.12);
  line-height: 1.45;
}

.api-intel-docs-shell .api-intel-gap-ul,
.api-intel-docs-shell .api-intel-suggest-ol {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(15, 28, 46, 0.88);
}

.api-intel-docs-shell .api-intel-gap-ul {
  list-style: none;
  padding-left: 0;
}

.api-intel-docs-shell .api-intel-gap-tag {
  display: inline-block;
  min-width: 2.4em;
  margin-right: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.api-intel-docs-shell .api-intel-gap-tag.is-missing {
  color: #9f1239;
  background: rgba(244, 63, 94, 0.12);
}

.api-intel-docs-shell .api-intel-gap-tag.is-partial {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}

.api-intel-docs-shell #api-intel-docs-gap-list.docs-scroll {
  max-height: min(280px, 32vh);
  overflow: auto;
}

.api-intel-docs-shell .docs-split--direct .api-intel-split__work {
  min-width: 0;
}

@media (max-width: 760px) {
  .api-intel-docs-shell .api-intel-card.docs-step {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .api-intel-docs-shell .docs-cta-row .api-intel-btn {
    flex: 1 1 auto;
  }

  .api-intel-docs-shell .api-intel-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .api-intel-docs-shell .api-intel-field--inline input,
  .api-intel-docs-shell .api-intel-field--inline select {
    min-width: 0;
    width: 100%;
  }
}


/* —— nosync：文档区通栏强调建议阅读 —— */
.api-intel-docs-shell .docs-step--diff .docs-cta-row .api-intel-btn--primary {
  min-width: 7.5rem;
}

.api-intel-docs-shell .docs-step--map .docs-step__head h3 {
  font-size: 0.95rem;
}

.api-intel-docs-shell #api-intel-docs-suggestions {
  min-height: 4.5rem;
  max-height: min(280px, 36vh);
  overflow: auto;
}


/* 通栏文档区：建议为主阅读 */
.api-intel-docs-shell .docs-split--direct {
  align-items: stretch;
}
.api-intel-docs-shell .docs-step--diff #api-intel-docs-suggestions {
  min-height: 6rem;
}
.api-intel-docs-shell .docs-step--map {
  margin-top: 0.15rem;
}


/* —— 32：文档对照工作台（合并差异+对应关系） —— */
.api-intel-docs-shell .docs-coverage {
  --docs-cov-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.05rem;
  max-height: calc(100vh - 12rem);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--docs-scroll-thumb, rgba(100, 116, 139, 0.45)) transparent;
}

.api-intel-docs-shell .docs-coverage__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-shrink: 0;
}

.api-intel-docs-shell .docs-coverage__head-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.api-intel-docs-shell .docs-coverage__head-main h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  color: var(--aiintel-ink, #0f172a);
}

.api-intel-docs-shell .docs-coverage__head-main > .api-intel-muted {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.api-intel-docs-shell .docs-coverage__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  flex-shrink: 0;
}

.api-intel-docs-shell .docs-coverage__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  min-width: 0;
}
.api-intel-docs-shell .docs-coverage__title-row > h3 {
  margin: 0;
  flex: 0 0 auto;
}
.api-intel-docs-shell .docs-coverage__metrics {
  flex-shrink: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(14, 116, 144, 0.1);
}
.api-intel-docs-shell .docs-coverage__metrics--inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.api-intel-docs-shell .docs-coverage__metrics--inline:has(#api-intel-l5-map-stats:empty) {
  display: none;
}
.api-intel-docs-shell .docs-coverage__stat-pills {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.api-intel-docs-shell .docs-stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 720;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  white-space: nowrap;
}
.api-intel-docs-shell .docs-stat-pill__k {
  opacity: 0.88;
  font-weight: 650;
}
.api-intel-docs-shell .docs-stat-pill__v {
  font-weight: 800;
  font-size: 0.78rem;
}
.api-intel-docs-shell .docs-stat-pill--ok {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.85);
  border-color: rgba(13, 148, 136, 0.28);
}
.api-intel-docs-shell .docs-stat-pill--mid {
  color: #b45309;
  background: rgba(254, 243, 199, 0.9);
  border-color: rgba(245, 158, 11, 0.35);
}
.api-intel-docs-shell .docs-stat-pill--miss {
  color: #be123c;
  background: rgba(255, 228, 230, 0.95);
  border-color: rgba(244, 63, 94, 0.28);
}
.api-intel-docs-shell .docs-stat-pill--mute {
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
}
.api-intel-docs-shell .docs-coverage__metrics-line {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.api-intel-docs-shell .docs-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.api-intel-docs-shell .docs-coverage__block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
}

.api-intel-docs-shell .docs-coverage__title {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--aiintel-muted, #64748b);
}

.api-intel-docs-shell .docs-coverage__insights {
  flex: 0 1 auto;
}

/* insights merged into gaps */

/* gap list height set below */

.api-intel-docs-shell .docs-coverage__matrix {
  flex: 1 1 auto;
  min-height: 0;
}

.api-intel-docs-shell .docs-coverage__matrix #api-intel-l5-map-box {
  flex: 1 1 auto;
  max-height: min(260px, 32vh);
  min-height: 7rem;
  overflow: auto;
  padding: 0.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.api-intel-docs-shell .docs-coverage__matrix .api-intel-l5-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.api-intel-docs-shell .docs-coverage__matrix .api-intel-l5-table th,
.api-intel-docs-shell .docs-coverage__matrix .api-intel-l5-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
}

.api-intel-docs-shell .docs-coverage__matrix .api-intel-l5-table th {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.96);
  font-weight: 700;
  color: #475569;
  z-index: 1;
}

.api-intel-docs-shell .docs-coverage__matrix .api-intel-l5-table tr:hover td {
  background: rgba(14, 116, 144, 0.04);
}

.api-intel-docs-shell .docs-coverage__manual {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.api-intel-docs-shell .docs-split--direct .api-intel-split__work {
  position: sticky;
  top: 8.25rem;
  align-self: start;
}

@media (max-width: 1100px) {
  .api-intel-docs-shell .docs-coverage {
    max-height: none;
    overflow: visible;
  }
  .api-intel-docs-shell .docs-split--direct .api-intel-split__work {
    position: static;
  }
  .api-intel-docs-shell .docs-coverage__head {
    flex-direction: column;
  }
  .api-intel-docs-shell .docs-coverage__head-actions {
    width: 100%;
  }
  .api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn {
    flex: 1 1 auto;
  }
}

/* —— 接口文档 Tab 内按钮颜色优化（仅 .api-intel-docs-shell，不影响全局） —— */
.api-intel-docs-shell .api-intel-btn {
  border-radius: 10px;
  font-weight: 700;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.api-intel-docs-shell .api-intel-btn--primary {
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 42%, #0e7490 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 18px -12px rgba(8, 145, 178, 0.75);
}

.api-intel-docs-shell .api-intel-btn--primary:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0e7490 48%, #0f766e 100%);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 20px -12px rgba(14, 116, 144, 0.8);
}

.api-intel-docs-shell .api-intel-btn--ghost {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(14, 116, 144, 0.26);
  color: #0f766e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.api-intel-docs-shell .api-intel-btn--ghost:hover {
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.42);
  color: #115e59;
}

.api-intel-docs-shell .api-intel-btn--compact {
  min-height: 2rem;
}

.api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn--primary {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 45%, #0f766e 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 18px -12px rgba(13, 148, 136, 0.7);
}

.api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn--primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 52%, #115e59 100%);
}

.api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn--ghost {
  background: rgba(240, 253, 250, 0.9);
  border-color: rgba(13, 148, 136, 0.28);
  color: #0f766e;
}

.api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn--ghost:hover {
  background: rgba(204, 251, 241, 0.95);
  border-color: rgba(13, 148, 136, 0.42);
  color: #115e59;
}

/* —— 接口文档 Flow 布局：上传/拉取二选一 → 对照项目 —— */
.api-intel-docs-shell.docs-shell--flow {
  gap: 0;
}

.api-intel-docs-shell .docs-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.api-intel-docs-shell .docs-flow__card {
  margin: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 16px 36px -28px rgba(15, 28, 46, 0.32);
}

.api-intel-docs-shell .docs-flow__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}

.api-intel-docs-shell .docs-flow__head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--aiintel-ink, #0f172a);
}



.api-intel-docs-shell .docs-flow__head strong {
  color: #0f766e;
  font-weight: 750;
}

/* —— 步骤1：标题行右侧放置导入方式 —— */
.api-intel-docs-shell .docs-flow__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1.1rem;
  min-width: 0;
}
.api-intel-docs-shell .docs-flow__title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(100%, 28rem);
}
.api-intel-docs-shell .docs-flow__title-block > h3 {
  margin: 0;
  line-height: 1.25;
}
.api-intel-docs-shell .docs-flow__hint-corner {
  margin: 0;
  align-self: flex-end; /* 贴在「导入接口文档」右下角 */
  max-width: 100%;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #94a3b8;
  text-align: right;
}
.api-intel-docs-shell .docs-source--inline {
  display: inline-flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0 0.4rem 0 0; /* 距卡片右内缘留缝 */
  padding: 0;
  border: 0; /* fieldset 有边框时 legend 会压在边框上盖住选项 */
  background: transparent;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
}
.api-intel-docs-shell .docs-source--inline .docs-source__legend {
  float: none !important;
  display: inline-block !important;
  align-items: unset;
  justify-content: unset;
  position: static !important;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  line-height: 1.35;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  white-space: nowrap;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  cursor: default;
  pointer-events: none;
  user-select: none;
}
.api-intel-docs-shell .docs-source--inline .docs-source__options {
  flex-wrap: nowrap;
  gap: 0.2rem;
  min-height: 0;
  padding: 0.22rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(204, 251, 241, 0.55) 0%, rgba(255, 255, 255, 0.92) 55%);
  border: 1px solid rgba(13, 148, 136, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 18px -12px rgba(13, 148, 136, 0.4),
    0 0 0 3px rgba(13, 148, 136, 0.07);
}
.api-intel-docs-shell .docs-source--inline .docs-source__opt {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  gap: 0;
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.api-intel-docs-shell .docs-source--inline .docs-source__opt:hover {
  color: #0f766e;
  background: rgba(204, 251, 241, 0.55);
}
.api-intel-docs-shell .docs-source--inline .docs-source__opt:has(input:checked) {
  color: #fff;
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 52%, #0f766e 100%);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 6px 14px -8px rgba(13, 148, 136, 0.75);
}
.api-intel-docs-shell .docs-source--inline .docs-source__opt:has(input:checked):hover {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 55%, #115e59 100%);
}
.api-intel-docs-shell .docs-source--inline .docs-source__dot {
  display: none;
}
.api-intel-docs-shell .docs-source--inline .docs-source__text {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .api-intel-docs-shell .docs-flow__title-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .api-intel-docs-shell .docs-source--inline {
    margin-right: 0.25rem;
    max-width: calc(100% - 0.25rem);
  }
  .api-intel-docs-shell .docs-source--inline .docs-source__options {
    flex-wrap: wrap;
  }
}









@keyframes docsModeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.api-intel-docs-shell .docs-flow__more {
  margin-top: 0.25rem;
}

.api-intel-docs-shell .docs-flow__saved {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(14, 116, 144, 0.16);
}

.api-intel-docs-shell .docs-flow__saved-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.45rem;
  padding-right: 0.15rem;
}
.api-intel-docs-shell .docs-flow__saved-copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.65rem;
}
.api-intel-docs-shell .docs-spec-viewall {
  flex: 0 0 auto;
  align-self: center;
  margin: 0.1rem 0.45rem 0 0;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.78));
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.api-intel-docs-shell .docs-spec-viewall:hover {
  border-color: rgba(15, 118, 110, 0.38);
  background: linear-gradient(180deg, #ffffff, rgba(204, 251, 241, 0.9));
  color: #115e59;
  box-shadow: 0 6px 14px -10px rgba(13, 148, 136, 0.55);
}
.api-intel-docs-shell .docs-spec-viewall:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.22);
}
.api-intel-docs-shell .docs-spec-viewall[hidden] {
  display: none !important;
}

.api-intel-docs-shell .docs-flow__saved-head .docs-section__title {
  margin: 0;
}

.api-intel-docs-shell .docs-flow__hint {
  margin: 0;
  font-size: 0.74rem;
}

.api-intel-docs-shell .docs-flow__compare {
  position: relative;
}

.api-intel-docs-shell .docs-flow__compare.is-spotlight {
  box-shadow:
    0 0 0 2px rgba(8, 145, 178, 0.28),
    0 18px 40px -28px rgba(14, 116, 144, 0.45);
  transition: box-shadow 0.35s ease;
}

.api-intel-docs-shell .docs-flow__results {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.75rem;
}
.api-intel-docs-shell .docs-flow__results--single {
  display: block;
}
@media (max-width: 900px) {
  .api-intel-docs-shell .docs-flow__results {
    grid-template-columns: 1fr;
  }
}

/* Hide legacy split remnants if any remain in cache */
.api-intel-docs-shell.docs-shell--flow .docs-split {
  display: contents;
}


.api-intel-docs-shell .docs-upload-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.api-intel-docs-shell .docs-upload-compact__pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 14rem;
  margin: 0;
  cursor: pointer;
}

.api-intel-docs-shell .docs-upload-compact__pick input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.api-intel-docs-shell .docs-upload-compact__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.15rem;
  padding: 0 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(14, 116, 144, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 750;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.api-intel-docs-shell .docs-upload-compact__pick:hover .docs-upload-compact__btn {
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(14, 116, 144, 0.42);
}

.api-intel-docs-shell .docs-upload-compact__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #64748b;
}

.api-intel-docs-shell .docs-upload-compact .api-intel-btn--primary {
  flex-shrink: 0;
}

/* —— 步骤1 合并：上传 + 拉取并排 —— */




/* —— 步骤2：无文档仅大空态 —— */
.api-intel-docs-shell .docs-flow__compare.is-empty {
  padding: 0;
  min-height: 18rem;
  display: flex;
  align-items: stretch;
}

.api-intel-docs-shell .docs-compare-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  padding: 2.25rem 1.5rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224, 242, 254, 0.75), transparent 60%),
    rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(14, 116, 144, 0.22);
}

.api-intel-docs-shell .docs-compare-empty[hidden] {
  display: none !important;
}

.api-intel-docs-shell .docs-compare-empty__inner {
  max-width: 28rem;
  text-align: center;
}

.api-intel-docs-shell .docs-compare-empty__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(14, 116, 144, 0.72);
}

.api-intel-docs-shell .docs-compare-empty__title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--aiintel-ink, #0f172a);
}

.api-intel-docs-shell .docs-compare-empty__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

.api-intel-docs-shell .docs-compare-body[hidden] {
  display: none !important;
}

.api-intel-docs-shell .docs-flow__compare:not(.is-empty) {
  padding: 1.05rem 1.15rem 1.15rem;
}

@media (max-width: 900px) {

  .api-intel-docs-shell .docs-compare-empty {
    min-height: 14rem;
    padding: 1.75rem 1.1rem;
  }
}

/* —— 按钮合并后的紧凑上传 —— */
.api-intel-docs-shell .docs-upload-compact--one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
.api-intel-docs-shell .docs-upload-compact--one .docs-upload-compact__name {
  font-size: 0.78rem;
  color: #64748b;
}

/* —— 步骤1：来源单选 + 动态面板 —— */
.api-intel-docs-shell .docs-source {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.api-intel-docs-shell .docs-source__legend {
  float: left;
  margin: 0 0.85rem 0 0;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 750;
  color: #334155;
  line-height: 2rem;
}

.api-intel-docs-shell .docs-source__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  min-height: 2rem;
}

.api-intel-docs-shell .docs-source__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
}

.api-intel-docs-shell .docs-source__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.api-intel-docs-shell .docs-source__dot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid rgba(14, 116, 144, 0.35);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.api-intel-docs-shell .docs-source__dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #0f766e);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.api-intel-docs-shell .docs-source__opt:hover .docs-source__dot {
  border-color: rgba(8, 145, 178, 0.55);
}

.api-intel-docs-shell .docs-source__opt:has(input:checked) {
  color: #0f766e;
  font-weight: 750;
}

.api-intel-docs-shell .docs-source__opt:has(input:checked) .docs-source__dot {
  border-color: #0891b2;
}

.api-intel-docs-shell .docs-source__opt:has(input:checked) .docs-source__dot::after {
  transform: scale(1);
}

.api-intel-docs-shell .docs-source__opt:has(input:focus-visible) .docs-source__dot {
  outline: 2px solid rgba(8, 145, 178, 0.45);
  outline-offset: 2px;
}

.api-intel-docs-shell .docs-source-panels {
  min-width: 0;
}

.api-intel-docs-shell .docs-source-panel {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(14, 116, 144, 0.12);
  animation: docsModeIn 0.2s ease;
}

.api-intel-docs-shell .docs-source-panel.is-active {
  display: flex;
}

.api-intel-docs-shell .docs-source-panel[hidden] {
  display: none !important;
}


@media (max-width: 720px) {
  .api-intel-docs-shell .docs-source__legend {
    float: none;
    display: block;
    margin: 0 0 0.45rem;
    line-height: 1.3;
  }
}

/* —— flow9 safety: source selector must always show —— */
.api-intel-docs-shell .docs-source:not(.docs-source--inline),
.api-intel-docs-shell .docs-source-panels {
  display: block;
}
.api-intel-docs-shell .docs-source__options {
  display: flex;
}
.api-intel-docs-shell .docs-source--inline {
  display: inline-flex !important;
}
.api-intel-docs-shell .docs-source-panel.is-active {
  display: flex !important;
}
.api-intel-docs-shell .docs-source-panel.is-active[hidden] {
  display: flex !important;
}

/* —— YApi 四字段同一行 —— */
.api-intel-docs-shell .docs-yapi-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(5.5rem, 0.7fr) minmax(5.5rem, 0.7fr) minmax(0, 1.4fr);
  gap: 0.55rem 0.65rem;
  align-items: end;
  min-width: 0;
}
.api-intel-docs-shell .docs-yapi-row__field {
  margin: 0;
  min-width: 0;
}
.api-intel-docs-shell .docs-yapi-row__field input {
  width: 100%;
  min-width: 0;
}
@media (max-width: 900px) {
  .api-intel-docs-shell .docs-yapi-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .api-intel-docs-shell .docs-yapi-row {
    grid-template-columns: 1fr;
  }
}

/* —— 网址拉取：收紧按钮上方空白，空任务列表不占位 —— */
.api-intel-docs-shell .docs-source-panel {
  gap: 0.55rem;
}
.api-intel-docs-shell .docs-source-panel .docs-cta-row {
  margin-top: 0;
}
.api-intel-docs-shell .docs-source-panel .api-intel-field {
  margin-bottom: 0;
}
.api-intel-docs-shell #api-intel-l5-sync-jobs:empty {
  display: none !important;
  margin: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.api-intel-docs-shell #api-intel-l5-sync-jobs.docs-scroll:not(:empty) {
  margin-top: 0.35rem;
  max-height: 6rem;
}

/* —— spec retention badges —— */
.api-intel-docs-shell .docs-spec-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: middle;
}
.api-intel-docs-shell .docs-spec-badge--raw {
  color: #0f766e;
  background: rgba(165, 243, 252, 0.55);
  border: 1px solid rgba(8, 145, 178, 0.28);
}
.api-intel-docs-shell .docs-spec-badge--slim {
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* —— docs compare path sync：本机项目在左、开始对照在右，同一行 —— */
.api-intel-docs-shell .docs-coverage__head-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  max-width: min(100%, 36rem);
  min-width: 0;
  width: auto;
}
.api-intel-docs-shell .docs-compare-path {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}
.api-intel-docs-shell .docs-compare-path__label {
  display: inline;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
}
.api-intel-docs-shell .docs-compare-path input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn--primary {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .api-intel-docs-shell .docs-coverage__head-actions {
    width: 100%;
    max-width: 100%;
  }
  .api-intel-docs-shell .docs-coverage__head-actions .api-intel-btn {
    flex: 0 0 auto;
  }
}

/* —— 已保存文档：紧凑单行表 + 区内滚动 —— */
.api-intel-docs-shell .docs-spec-count {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.85);
  border: 1px solid rgba(13, 148, 136, 0.28);
  vertical-align: middle;
}
.api-intel-docs-shell .docs-spec-count:empty,
.api-intel-docs-shell .docs-spec-count[hidden] {
  display: none;
}
.api-intel-docs-shell .docs-spec-empty {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}
.api-intel-docs-shell .docs-spec-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.api-intel-docs-shell .docs-spec-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.3rem;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  border-bottom: 1px solid rgba(14, 116, 144, 0.08);
  min-width: 0;
}
.api-intel-docs-shell .docs-spec-item:last-child {
  border-bottom: none;
}
.api-intel-docs-shell .docs-spec-item:hover {
  background: rgba(240, 253, 250, 0.72);
}
.api-intel-docs-shell .docs-spec-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--aiintel-ink, #0f172a);
}
.api-intel-docs-shell .docs-spec-item__count,
.api-intel-docs-shell .docs-spec-item__time {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.api-intel-docs-shell .docs-spec-item__ops {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
}
.api-intel-docs-shell .docs-spec-item__del {
  justify-self: end;
}
@media (max-width: 720px) {
  .api-intel-docs-shell .docs-spec-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .api-intel-docs-shell .docs-spec-item__count {
    display: none;
  }
  .api-intel-docs-shell .docs-spec-item__time {
    grid-column: 1;
    grid-row: 2;
  }
  .api-intel-docs-shell .docs-spec-item__ops {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* —— 已保存文档 · 查看全部弹层（玻璃质感） —— */
.api-intel-spec-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: var(--aiintel-font, inherit);
}
.api-intel-spec-modal[hidden] {
  display: none !important;
}
.api-intel-spec-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.16), transparent 55%),
    rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.api-intel-spec-modal__panel {
  position: relative;
  width: min(46rem, calc(100% - 2rem));
  max-height: min(82vh, 40rem);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 250, 252, 0.68) 48%, rgba(240, 253, 250, 0.55) 100%);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(15, 118, 110, 0.04) inset,
    0 32px 72px -28px rgba(15, 23, 42, 0.48),
    0 12px 28px -18px rgba(13, 148, 136, 0.22);
}
.api-intel-spec-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.45rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.12));
}
.api-intel-spec-modal__eyebrow {
  margin: 0 0 0.32rem;
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 118, 110, 0.78);
}
.api-intel-spec-modal__head h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.25;
}
.api-intel-spec-modal__x {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: -0.05rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  color: #64748b;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.api-intel-spec-modal__x:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(148, 163, 184, 0.4);
  color: #0f172a;
  transform: scale(1.04);
}
.api-intel-spec-modal__meta {
  margin: 0.5rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.62rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  color: #0f766e;
  background: rgba(204, 251, 241, 0.45);
  border: 1px solid rgba(13, 148, 136, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.api-intel-spec-modal__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 9.5rem 3.6rem;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.58rem 1.45rem;
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.88);
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.api-intel-spec-modal__cols span:nth-child(2),
.api-intel-spec-modal__cols span:nth-child(3) {
  text-align: right;
}
.api-intel-spec-modal__cols span:nth-child(4) {
  text-align: center;
}
.api-intel-spec-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 0.45rem 0.65rem 0.85rem;
  border: none;
  border-radius: 0;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}
.api-intel-spec-modal__body::-webkit-scrollbar {
  width: 5px;
}
.api-intel-spec-modal__body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.api-intel-spec-modal .docs-spec-table {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
}
.api-intel-spec-modal .docs-spec-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 9.5rem 3.6rem;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.api-intel-spec-modal .docs-spec-item:hover {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.28);
}
.api-intel-spec-modal .docs-spec-item__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #0f172a;
}
.api-intel-spec-modal .docs-spec-item__count,
.api-intel-spec-modal .docs-spec-item__time {
  justify-self: end;
  font-size: 0.76rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.api-intel-spec-modal .docs-spec-item__count {
  color: #0f766e;
  font-weight: 680;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(204, 251, 241, 0.4);
  border: 1px solid rgba(13, 148, 136, 0.14);
}
.api-intel-spec-modal .docs-spec-item__ops {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
}
.api-intel-spec-modal .docs-spec-item__del {
  justify-self: center;
  min-height: 1.75rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.api-intel-spec-modal .docs-spec-item__del:hover {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(255, 241, 242, 0.72);
  color: #e11d48;
}
.api-intel-spec-modal__empty {
  margin: 2.8rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
}
@media (max-width: 720px) {
  .api-intel-spec-modal__cols {
    display: none;
  }
  .api-intel-spec-modal .docs-spec-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .api-intel-spec-modal .docs-spec-item__count {
    display: none;
  }
  .api-intel-spec-modal .docs-spec-item__time {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .api-intel-spec-modal .docs-spec-item__ops {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
  }
}

/* —— 删除确认浮窗：玻璃态 —— */
.docs-spec-popconfirm {
  z-index: 10080;
  width: max-content;
  min-width: 11.25rem;
  max-width: 15.5rem;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.48) 55%, rgba(255, 241, 242, 0.38) 100%);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(244, 63, 94, 0.06) inset,
    0 18px 40px -18px rgba(15, 23, 42, 0.42),
    0 8px 16px -12px rgba(225, 29, 72, 0.18);
}
.docs-spec-popconfirm[hidden] {
  display: none !important;
}
.docs-spec-popconfirm.is-open {
  display: block;
  position: fixed;
  z-index: 10120;
}
.docs-spec-popconfirm::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.15rem;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  transform: rotate(45deg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: -1px -1px 0 rgba(255, 255, 255, 0.35) inset;
}
.docs-spec-popconfirm.is-above::before {
  top: auto;
  bottom: -6px;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.docs-spec-popconfirm__text {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 680;
  color: #0f172a;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.docs-spec-popconfirm__text span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0;
}
.docs-spec-popconfirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.docs-spec-popconfirm__actions .api-intel-btn--ghost {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.45);
  color: #64748b;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.docs-spec-popconfirm__actions .api-intel-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
}
.docs-spec-popconfirm__actions .api-intel-btn--danger {
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(225, 29, 72, 0.7);
}
.docs-spec-popconfirm__actions .api-intel-btn--danger:hover {
  background: linear-gradient(180deg, #f43f5e 0%, #be123c 100%);
  border-color: transparent;
}

.docs-spec-popconfirm--tab.is-open {
  display: block;
  position: fixed;
  z-index: 10120;
  pointer-events: auto;
}

/* 步骤2：当前文档摘要已移除；指标条无内容时不占位 */
.api-intel-docs-shell #api-intel-docs-overview {
  display: none !important;
}

/* —— 对照结果：待补缺口主显 + 全部对应默认折叠 —— */
/* gaps title removed */



/* —— 待补缺口：摘要一行 + 接口胶囊网格 —— */
.api-intel-docs-shell .docs-coverage__gap-blurb {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.75), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(244, 63, 94, 0.16);
  line-height: 1.45;
  font-size: 0.8rem;
  color: #9f1239;
  max-height: none;
  overflow: visible;
}
.api-intel-docs-shell .docs-coverage__gap-blurb-lead {
  margin: 0;
}
.api-intel-docs-shell .docs-coverage__gap-blurb-lead strong {
  color: #e11d48;
  font-weight: 800;
}
.api-intel-docs-shell .docs-gap-chipgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin: 0;
  padding: 0;
}
.api-intel-docs-shell .docs-gap-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.api-intel-docs-shell .docs-gap-chip:hover {
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 0 6px 14px -10px rgba(225, 29, 72, 0.45);
}
.api-intel-docs-shell .docs-gap-chip.is-partial {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.9);
}
.api-intel-docs-shell .docs-gap-chip__method {
  flex: 0 0 auto;
  min-width: 2.6rem;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, #e11d48);
}
.api-intel-docs-shell .docs-gap-chip.is-partial .docs-gap-chip__method {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.api-intel-docs-shell .docs-gap-chip__path {
  min-width: 0;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 650;
  color: #0f172a;
  background: transparent;
  padding: 0;
  border: 0;
}
.api-intel-docs-shell .docs-gap-chipgrid__more {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
}
.api-intel-docs-shell .docs-coverage__gaps #api-intel-docs-gap-list {
  max-height: none;
}

.api-intel-docs-shell .docs-coverage__matrix-fold {
  margin-top: 0.75rem;
  padding: 0.15rem 0.85rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  background: rgba(255, 255, 255, 0.4);
}
.api-intel-docs-shell .docs-coverage__matrix-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0.15rem;
  user-select: none;
}
.api-intel-docs-shell .docs-coverage__matrix-summary::-webkit-details-marker {
  display: none;
}
.api-intel-docs-shell .docs-coverage__matrix-summary::before {
  content: "›";
  display: inline-block;
  width: 0.9rem;
  color: #0f766e;
  font-weight: 800;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}
.api-intel-docs-shell .docs-coverage__matrix-fold[open] > .docs-coverage__matrix-summary::before {
  transform: rotate(90deg);
}
.api-intel-docs-shell .docs-coverage__matrix-summary .docs-coverage__title {
  margin: 0;
  display: inline;
  font-size: 0.84rem;
}
.api-intel-docs-shell .docs-coverage__matrix-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}
.api-intel-docs-shell .docs-coverage__matrix-fold #api-intel-l5-map-box {
  max-height: min(240px, 28vh);
  min-height: 0;
  margin-top: 0.15rem;
  overflow: auto;
}
.api-intel-docs-shell .docs-coverage__insights {
  display: none !important;
}

/* gap count removed */

.api-intel-docs-shell .docs-gap-chip.is-get .docs-gap-chip__method {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}
.api-intel-docs-shell .docs-gap-chip.is-post .docs-gap-chip__method {
  background: linear-gradient(135deg, #34d399, #059669);
}
.api-intel-docs-shell .docs-gap-chip.is-put .docs-gap-chip__method,
.api-intel-docs-shell .docs-gap-chip.is-patch .docs-gap-chip__method {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.api-intel-docs-shell .docs-gap-chip.is-delete .docs-gap-chip__method {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}
.api-intel-docs-shell .docs-coverage__matrix-idle {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.78rem;
}

/* 待补缺口标题文案已下线 */
.api-intel-docs-shell .docs-coverage__gaps-head,
.api-intel-docs-shell #api-intel-docs-gap-count,
.api-intel-docs-shell .docs-coverage__gaps-sub {
  display: none !important;
}


/* gap chips removed 2026-09-18: details live in 全部对应关系 */
.docs-gap-list,
.docs-gap-chipgrid,
.docs-gap-chip { display: none !important; }


/* 2026-09-18: 全部对应关系 + 高级 同时展开不重叠 */
.api-intel-docs-shell #api-intel-docs-compare-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  flex: 0 0 auto;
}

/* 关键 details 不要用 flex:1+min-height:0，否则展开内容溢出盖住后面的「高级」 */
.api-intel-docs-shell details.docs-coverage__matrix,
.api-intel-docs-shell details.docs-coverage__matrix-fold {
  display: block;
  flex: 0 0 auto !important;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow: hidden; /* 表格只在内部滚动，不画到高级区上 */
}

.api-intel-docs-shell .docs-coverage__matrix-fold #api-intel-l5-map-box,
.api-intel-docs-shell .docs-coverage__matrix #api-intel-l5-map-box,
.api-intel-docs-shell #api-intel-l5-map-box.docs-scroll {
  display: block;
  flex: none !important;
  max-height: min(240px, 28vh) !important;
  min-height: 0 !important;
  overflow: auto !important;
  margin-top: 0.15rem;
}

.api-intel-docs-shell details.docs-coverage__manual,
.api-intel-docs-shell .docs-coverage__manual,
.api-intel-docs-shell .docs-section--manual {
  display: block;
  flex: 0 0 auto !important;
  position: relative;
  z-index: 2;
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
  scroll-margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  isolation: isolate;
}

.api-intel-docs-shell details.docs-coverage__manual[open] {
  overflow: visible;
}

/* 2026-09-18 wheel-chain: 步骤2顶/底把滚轮交给外层页面 */
.api-intel-docs-shell .docs-coverage {
  overscroll-behavior: auto;
}


/* 2026-09-18: 开始对照暂禁用 */
.api-intel-docs-shell .docs-compare-rebuild-wrap {
  display: inline-flex;
  vertical-align: middle;
  cursor: not-allowed;
}
.api-intel-docs-shell #api-intel-l5-map-rebuild:disabled,
.api-intel-docs-shell #api-intel-l5-map-rebuild.is-disabled,
.api-intel-docs-shell #api-intel-l5-map-rebuild[aria-disabled="true"] {
  opacity: 0.55;
  filter: grayscale(0.35);
  cursor: not-allowed;
  box-shadow: none !important;
  pointer-events: none; /* 让外层 wrap 接收悬停，以显示 title */
}
.api-intel-docs-shell .docs-compare-rebuild-wrap:hover #api-intel-l5-map-rebuild {
  opacity: 0.5;
  filter: grayscale(0.45);
}
