/**
 * 制作台 · 开制指挥台 v3 + 3D 资产卡（P-css-f：从 ink-gag-studio.css 切出）
 * 加载：主 CSS 之后。
 */

/* ========== 开制指挥台 v3 + 本镜视觉链（2026-08-03）· 主题令牌 + 全屏自适应 ========== */
.igs-hub--v3 .igs-hub-hero--cmd {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.55rem, 1.4vh, 0.85rem) clamp(0.75rem, 2vw, 1.25rem);
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(0.45rem, 1.2vh, 0.85rem) 0.15rem clamp(0.35rem, 0.9vh, 0.55rem);
}
.igs-hub-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.igs-hub-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--igs-elev) 92%, var(--igs-mist)),
    color-mix(in srgb, var(--igs-card) 88%, var(--igs-mist))
  );
  border: 1px solid var(--igs-line);
  color: var(--igs-ink);
}
.igs-hub-pill.soft {
  font-weight: 600;
  color: var(--igs-muted);
  background: color-mix(in srgb, var(--igs-ink) 5%, var(--igs-elev));
}
.igs-hub-hero--cmd h2 {
  margin: 0;
  font-family: var(--igs-serif);
  font-size: clamp(1.2rem, 2.4vw + 0.4vh, 1.75rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--igs-ink);
}
.igs-hub-hero-prog {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--igs-muted);
}
.igs-hub-hero-prog .igs-bar {
  flex: 1;
  max-width: 14rem;
  height: 0.35rem;
}
.igs-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.igs-hub-cta-continue {
  font-weight: 700;
  min-height: 2.35rem;
  padding: 0.45rem 1.1rem;
}

/* 连续长篇总览 · 写作指挥台 */
.igs-hub--continuous .igs-hub-stats--cont .igs-stat.is-muted {
  opacity: 0.72;
}
.igs-hub-cont-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(0.55rem, 1.4vw, 0.9rem);
  margin: clamp(0.35rem, 1vh, 0.65rem) 0;
}
.igs-hub-cont-panel {
  border: 1px solid var(--igs-line);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--igs-elev) 88%, var(--igs-card));
  padding: 0.65rem 0.75rem 0.75rem;
  min-height: 0;
}
.igs-hub-cont-panel .igs-hub-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.igs-hub-cont-panel .igs-hub-sec-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-family: var(--igs-serif);
}
.igs-hub-ch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(42vh, 22rem);
  overflow: auto;
}
.igs-hub-ch-row {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: color-mix(in srgb, var(--igs-ink) 3.5%, var(--igs-card));
  color: var(--igs-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.igs-hub-ch-row:hover {
  border-color: color-mix(in srgb, var(--igs-accent) 45%, var(--igs-line));
}
.igs-hub-ch-row.is-on {
  border-color: color-mix(in srgb, var(--igs-accent) 55%, var(--igs-line));
  background: color-mix(in srgb, var(--igs-accent) 10%, var(--igs-card));
}
.igs-hub-ch-row strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}
.igs-hub-ch-row .igs-muted-sm {
  flex-shrink: 0;
  font-size: 0.68rem;
}
.igs-hub-ch-empty {
  padding: 0.85rem 0.35rem 0.45rem;
  color: var(--igs-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.igs-hub-ch-empty .igs-btn {
  margin-top: 0.55rem;
}
.igs-hub-cont-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.igs-hub-cont-quick .igs-hub-portal {
  min-height: 4.2rem;
}
.igs-hub-cont-drama {
  margin-top: 0.35rem;
  border: 1px dashed color-mix(in srgb, var(--igs-ink) 16%, var(--igs-line));
  border-radius: 0.75rem;
  padding: 0.45rem 0.7rem 0.55rem;
  background: color-mix(in srgb, var(--igs-ink) 2.5%, var(--igs-elev));
}
.igs-hub-cont-drama summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--igs-muted);
  list-style: none;
}
.igs-hub-cont-drama summary::-webkit-details-marker {
  display: none;
}
.igs-hub-cont-drama[open] summary {
  color: var(--igs-ink);
  margin-bottom: 0.35rem;
}
@media (max-width: 900px) {
  .igs-hub-cont-grid {
    grid-template-columns: 1fr;
  }
  .igs-hub-cont-quick {
    grid-template-columns: 1fr;
  }
}

.igs-hub-stats--v3 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1vw, 0.55rem);
  margin: clamp(0.35rem, 1vh, 0.65rem) 0 clamp(0.25rem, 0.8vh, 0.45rem);
}
.igs-stat--btn {
  appearance: none;
  border: 1px solid var(--igs-line);
  border-radius: 0.75rem;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--igs-elev) 94%, var(--igs-mist)),
    color-mix(in srgb, var(--igs-card) 90%, var(--igs-mist))
  );
  padding: clamp(0.45rem, 1.1vh, 0.65rem) clamp(0.5rem, 1.2vw, 0.75rem);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, transform 0.12s;
}
.igs-stat--btn:hover {
  border-color: color-mix(in srgb, var(--igs-accent) 45%, var(--igs-line));
  transform: translateY(-1px);
}
.igs-stat--btn b {
  display: block;
  font-size: clamp(1.05rem, 1.8vw + 0.4vh, 1.25rem);
  font-family: var(--igs-serif);
  color: var(--igs-accent);
  line-height: 1.1;
}
.igs-stat--btn span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--igs-muted);
}
.igs-hub-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: clamp(0.45rem, 1.2vh, 0.85rem) 0 clamp(0.25rem, 0.8vh, 0.45rem);
}
.igs-hub-sec-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-family: var(--igs-serif);
  color: var(--igs-ink);
}
.igs-hub-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 1vw, 0.65rem);
}
.igs-hub-wf-lab {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--igs-accent);
  margin-bottom: 0.35rem;
}
.igs-hub-wf-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.igs-hub-portal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--igs-line);
  border-radius: 0.75rem;
  padding: clamp(0.4rem, 1vh, 0.55rem) clamp(0.5rem, 1.1vw, 0.65rem);
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--igs-elev);
}
.igs-hub-portal.tone-a {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--igs-accent) 14%, var(--igs-elev)),
    var(--igs-elev)
  );
}
.igs-hub-portal.tone-b {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--igs-mist) 55%, var(--igs-elev)),
    var(--igs-elev)
  );
}
.igs-hub-portal:hover {
  border-color: color-mix(in srgb, var(--igs-accent) 40%, var(--igs-line));
}
.igs-hub-portal-ico {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--igs-accent) 12%, var(--igs-elev));
  color: var(--igs-accent);
  font-size: 0.95rem;
}
.igs-hub-portal-body strong {
  display: block;
  font-size: 0.88rem;
  color: var(--igs-ink);
}
.igs-hub-portal-body .desc {
  display: block;
  font-size: 0.72rem;
  color: var(--igs-muted);
  margin-top: 0.1rem;
}
.igs-hub-portal-meta {
  font-size: 0.7rem;
  color: var(--igs-muted);
  white-space: nowrap;
}
.igs-hub-more-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.igs-hub-more-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid var(--igs-line);
  background: color-mix(in srgb, var(--igs-card) 88%, var(--igs-elev));
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-width: 5.5rem;
}
.igs-hub-more-chip b { font-size: 0.8rem; color: var(--igs-ink); }
.igs-hub-more-chip small { font-size: 0.68rem; color: var(--igs-muted); }
.igs-hub.is-launch-collapsed .igs-hub-more-wrap {
  display: none;
}
@supports (container-type: size) {
  @container igs-hub (max-width: 900px) {
    .igs-hub-workflow-grid {
      grid-template-columns: 1fr;
    }
    .igs-hub-stats--v3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @container igs-hub (max-height: 640px) {
    .igs-hub--v3 .igs-hub-hero-pills .igs-hub-pill.soft:nth-child(n + 3),
    .igs-hub--v3 .igs-hub-sub {
      display: none;
    }
    .igs-hub-stats--v3 {
      margin-top: 0.25rem;
    }
  }
}
.igs-hub-ep-dots {
  display: inline-flex;
  gap: 0.25rem;
  margin: 0 0.35rem;
}
.igs-hub-ep-dots .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--igs-ink) 18%, transparent);
}
.igs-hub-ep-dots .dot.on { background: var(--igs-accent); }
.igs-hub-ep-dots .dot.art.on { background: var(--igs-accent-2); }
.igs-tl-ep.is-next,
.igs-hub-ep.is-next {
  outline: 2px solid color-mix(in srgb, var(--igs-accent) 35%, transparent);
  outline-offset: 1px;
}
.igs-tl-art {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--igs-accent-2);
  margin-left: 0.15rem;
}

/* 分集顶栏 · 本镜视觉 */
.igs-ep-toolbar--primary {
  align-items: center;
}
.igs-ep-toolbar--more[hidden],
.igs-ep-toolbar--more.is-collapsed {
  display: none !important;
}
.igs-ep-visual-dd {
  position: relative;
  display: inline-flex;
}
.igs-ep-visual-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 30;
  min-width: 8.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  border-radius: 0.65rem;
  border: 1px solid var(--igs-line);
  background: #fffdf8;
  box-shadow: 0 10px 28px rgba(20, 32, 28, 0.16);
}
.igs-ep-visual-menu[hidden] { display: none !important; }
.igs-ep-visual-menu button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.igs-ep-visual-menu button:hover {
  background: rgba(47, 107, 90, 0.1);
}

/* 本镜视觉链 */
.igs-kf-visual-chain {
  margin: 0.35rem 0 0.65rem;
  padding: 0.55rem 0.6rem 0.65rem;
  border: 1px solid var(--igs-line);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f7fbf8, #fffcf6);
}
.igs-kf-vc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.igs-kf-vc-head h4 {
  margin: 0;
  font-size: 0.9rem;
  font-family: var(--igs-serif);
}
.igs-kf-vc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.igs-kf-vc-card {
  border: 1px solid rgba(40, 36, 30, 0.12);
  border-radius: 0.65rem;
  padding: 0.45rem 0.5rem;
  background: #fff;
  min-width: 0;
}
.igs-kf-vc-card.is-empty {
  background: rgba(255, 255, 255, 0.55);
  border-style: dashed;
}
.igs-kf-vc-card.has-asset {
  border-color: rgba(47, 107, 90, 0.35);
}
.igs-kf-vc-lab {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--igs-accent);
}
.igs-kf-vc-stat {
  font-size: 0.8rem;
  margin: 0.15rem 0 0.35rem;
}
.igs-kf-vc-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 2.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.igs-kf-vc-thumb {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--igs-line);
  border-radius: 0.35rem;
  overflow: hidden;
  cursor: pointer;
  background: #efe8d8;
}
.igs-kf-vc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igs-kf-vc-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.igs-kf-jump-more {
  display: inline-block;
  position: relative;
}
.igs-kf-jump-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--igs-line);
  background: #fffcf6;
}
.igs-kf-jump-more > summary::-webkit-details-marker { display: none; }
.igs-kf-jump-more[open] > summary {
  border-color: rgba(47, 107, 90, 0.4);
}
.igs-kf-jump-more[open] {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

@media (max-width: 980px) {
  .igs-hub-stats--v3,
  .igs-hub-workflow-grid,
  .igs-kf-vc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .igs-hub-stats--v3,
  .igs-hub-workflow-grid,
  .igs-kf-vc-grid {
    grid-template-columns: 1fr;
  }
}

/* —— 人物表现库（动作 / 情绪 / 声音） + 图库：可纵向滚动 ——
 * 矩阵精修：stage-body/canvas 用 overflow:hidden 锁预览区；
 * 表现库/图库内容在 canvas 内变高，若仍 hidden 会被裁切且外层 flex:1 子项不会撑开 → 无法滚动。
 * 改为：主区 overflow-y:auto，stage-body/canvas 随内容增高。 */
.igs-m-shell.is-pose .igs-m-main.is-pose-main,
.igs-m-shell.is-gallery .igs-m-main {
  padding: 0.35rem 0.55rem 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.igs-m-shell.is-pose .igs-m-stage-body,
.igs-m-shell.is-gallery .igs-m-stage-body,
.igs-m-main:has(.igs-m-pose) .igs-m-stage-body,
.igs-m-main:has(.igs-master-gallery) .igs-m-stage-body,
.igs-m-main:has(.igs-m-acards) .igs-m-stage-body {
  flex: 0 0 auto;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
}
.igs-m-shell.is-pose .igs-m-canvas,
.igs-m-shell.is-gallery .igs-m-canvas,
.igs-m-main:has(.igs-m-pose) .igs-m-canvas,
.igs-m-main:has(.igs-master-gallery) .igs-m-canvas,
.igs-m-main:has(.igs-m-acards) .igs-m-canvas {
  /* 勿用 0 0 auto：会按内容收缩宽度，网格只能算出很少列，右侧留白 */
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}
.igs-m-pose {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}
.igs-m-pose-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(248, 245, 238, 0.95);
  border: 1px solid rgba(40, 36, 30, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(28, 24, 18, 0.06);
}
.igs-m-pose-toolbar .lead {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.igs-m-pose-toolbar .lead strong {
  font-family: var(--igs-serif);
  font-size: 1rem;
}
.igs-m-pose-toolbar .lead p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--igs-muted);
}
.igs-m-pose-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.igs-m-pose-q {
  flex: 1 1 10rem;
  min-width: 8rem;
  max-width: 16rem;
  min-height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--igs-line);
  padding: 0.25rem 0.55rem;
  background: #fff;
}
.igs-m-pose-upload {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
}
.igs-m-pose-upload.is-busy {
  opacity: 0.65;
  pointer-events: none;
}
.igs-m-pose-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--igs-muted);
}
.igs-m-pose-grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  /* auto-fit：吃掉右侧空轨；列随主区宽度变多，卡片 1fr 铺满 */
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.65rem;
}
@media (min-width: 1280px) {
  .igs-m-pose-grid {
    grid-template-columns: repeat(auto-fit, minmax(9.75rem, 1fr));
  }
}
@media (min-width: 1600px) {
  .igs-m-pose-grid {
    grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr));
  }
}
@media (max-width: 720px) {
  .igs-m-pose-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  }
}
.igs-m-tchip.is-model3d em {
  background: rgba(45, 125, 210, 0.18);
  color: #1a5f9e;
}
.igs-m-acards {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.15rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.igs-m-acards-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--igs-card, #fff) 88%, rgba(30, 90, 140, 0.12));
  border: 1px solid rgba(30, 90, 140, 0.14);
  position: sticky;
  top: 0;
  z-index: 6;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(20, 40, 60, 0.06);
}
.igs-m-acards-refs {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.igs-m-acards-thumb {
  display: flex;
  flex-direction: column;
  width: 4.4rem;
  padding: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #1c1a17;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
}
.igs-m-acards-thumb img {
  width: 100%;
  height: 3.4rem;
  object-fit: cover;
  display: block;
}
.igs-m-acards-thumb span {
  font-size: 0.68rem;
  line-height: 1.2;
  padding: 0.2rem 0.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1a5f9e;
}
.igs-m-acards-banner-main {
  flex: 1;
  min-width: 0;
}
.igs-m-acards-banner-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.igs-m-acards-banner-title strong {
  font-size: 0.95rem;
}
.igs-m-acards-stat {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a5f9e;
  background: rgba(26, 95, 158, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}
.igs-m-acards-banner-main > .igs-muted-sm {
  margin: 0.2rem 0 0.45rem;
}
.igs-m-acards-filters {
  margin: 0;
}
.igs-m-acards-viewrow {
  margin-top: 0.35rem;
  align-items: center;
}
.igs-m-acards-pipeline {
  margin: 0.55rem 0 0.35rem;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(28, 48, 72, 0.06);
  border: 1px solid rgba(26, 95, 158, 0.18);
  max-height: min(42vh, 28rem);
  overflow: auto;
}
.igs-m-acards-pipeline-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.45rem;
}
.igs-m-acards-pipeline-hd strong {
  font-size: 0.92rem;
}
.igs-m-acards-pipeline-fmt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}
.igs-m-acards-pipeline-fmt .is-ok {
  color: #1a6b45;
  font-weight: 600;
}
.igs-m-acards-pipeline-fmt .is-no {
  color: #9a3b2a;
  font-weight: 600;
}
.igs-m-acards-pipeline-note {
  margin: 0.15rem 0;
  font-size: 0.74rem;
  color: #5a554c;
  line-height: 1.4;
}
.igs-m-acards-pipeline-g {
  margin-top: 0.55rem;
}
.igs-m-acards-pipeline-g h4 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #2a4058;
}
.igs-m-acards-pipeline-g ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.igs-m-acards-pipeline-g li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
  font-size: 0.76rem;
  line-height: 1.35;
}
.igs-m-acards-pipeline-g li a {
  color: #155a9c;
  font-weight: 600;
  text-decoration: none;
}
.igs-m-acards-pipeline-g li a:hover {
  text-decoration: underline;
}
.igs-m-acards-pipeline-g li em {
  font-style: normal;
  color: #6a645c;
  flex: 1 1 8rem;
  min-width: 0;
}
.igs-m-acards-pipeline-g .igs-btn-ghost.tiny {
  padding: 0.1rem 0.4rem;
  font-size: 0.68rem;
}
.igs-m-acards-lb-btn {
  margin-left: 0.15rem;
  font-size: 0.78rem !important;
  padding: 0.28rem 0.65rem !important;
  white-space: nowrap;
}
.igs-m-acards-lb-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.igs-m-acards-refwall {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.igs-m-acards-refwall-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  padding: 0 0.15rem;
}
.igs-m-acards-refwall-hd strong {
  font-size: 0.92rem;
}
.igs-m-acards-refwall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem;
}
@media (min-width: 1100px) {
  .igs-m-acards-refwall-grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }
}
.igs-m-acards-refwall-cell {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(30, 40, 50, 0.14);
  border-radius: 0.55rem;
  overflow: hidden;
  background: #1c1a17;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.igs-m-acards-refwall-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 95, 158, 0.45);
  box-shadow: 0 8px 18px rgba(20, 40, 60, 0.14);
}
.igs-m-acards-refwall-cell.is-hero {
  border-color: rgba(180, 110, 40, 0.45);
}
.igs-m-acards-refwall-cell.is-plan {
  border-color: rgba(26, 95, 158, 0.35);
}
.igs-m-acards-refwall-cell img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background:
    linear-gradient(45deg, #2a2622 25%, transparent 25%),
    linear-gradient(-45deg, #2a2622 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2622 75%),
    linear-gradient(-45deg, transparent 75%, #2a2622 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #1a1816;
}
.igs-m-acards-refwall-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.3rem;
  padding: 0.28rem 0.35rem 0.32rem;
  background: rgba(255, 255, 255, 0.94);
  line-height: 1.2;
}
.igs-m-acards-refwall-meta em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  color: #1a5f9e;
}
.igs-m-acards-refwall-meta b {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2a2620;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-m-acards-refwall-meta i {
  font-style: normal;
  font-size: 0.64rem;
  color: #6a645c;
  margin-left: auto;
}
.igs-m-acards-grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
}
.igs-m-acard {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem 0.75rem;
  border-radius: 0.9rem;
  background: var(--igs-card);
  border: 1px solid rgba(40, 36, 30, 0.1);
  box-shadow: 0 8px 22px rgba(28, 24, 18, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.igs-m-acard:hover {
  border-color: rgba(26, 95, 158, 0.28);
  box-shadow: 0 10px 26px rgba(28, 24, 18, 0.08);
}
.igs-m-acard.is-ready {
  border-color: rgba(34, 140, 90, 0.28);
}
.igs-m-acard.is-stub {
  opacity: 0.96;
}
.igs-m-acard-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.igs-m-acard-head-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  align-items: center;
}
.igs-m-acard-id {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: #1a5f9e;
  padding: 0.12rem 0.4rem;
  border-radius: 0.35rem;
}
.igs-m-acard-name {
  font-size: 0.98rem;
  line-height: 1.25;
  flex: 1;
  min-width: 6rem;
}
.igs-m-acard-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  align-items: baseline;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.3;
}
.igs-m-acard-size {
  font-variant-numeric: tabular-nums;
  color: #0f4c81;
}
.igs-m-acard-size b {
  font-weight: 800;
}
.igs-m-acard-size i {
  font-style: normal;
  margin-left: 0.15rem;
  opacity: 0.75;
  font-size: 0.72rem;
}
.igs-m-acard-lib {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  opacity: 0.85;
}
.igs-m-acard-floors {
  color: #0f4c81;
  font-weight: 700;
  background: rgba(26, 95, 158, 0.1);
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
}
.igs-m-acard-ref-built.is-elev {
  width: 6.2rem;
}
.igs-m-acard-ref-built.is-elev img {
  height: 3.8rem;
  object-fit: cover;
}
.igs-m-acard-purpose {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.igs-m-acard-cap {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a4d18;
  background: rgba(180, 100, 40, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 0.35rem;
  line-height: 1.3;
}
.igs-m-acard-block {
  margin: 0;
}
.igs-m-acard-block-hd {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.igs-m-acard-block-hd h4,
.igs-m-acard-h {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a5f9e;
}
.igs-m-acard-block-hd em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 1.2rem;
  text-align: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(26, 95, 158, 0.12);
  color: #1a5f9e;
}
.igs-m-acard-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  margin: 0;
}
.igs-m-acard-dl-2 {
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}
@media (max-width: 520px) {
  .igs-m-acard-dl-2 {
    grid-template-columns: 1fr;
  }
}
.igs-m-acard-row {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.3rem;
  align-items: start;
  padding: 0.22rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.03);
  font-size: 0.78rem;
  line-height: 1.3;
}
.igs-m-acard-row.is-hard {
  background: rgba(26, 95, 158, 0.07);
  border: 1px solid rgba(26, 95, 158, 0.12);
}
.igs-m-acard-row dt {
  margin: 0;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.igs-m-acard-row.is-hard dt {
  color: #0f4c81;
}
.igs-m-acard-row dd {
  margin: 0;
  word-break: break-word;
}
.igs-m-acard-p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}
.igs-m-acard-subh {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
}
.igs-m-acard-more {
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(40, 36, 30, 0.08);
  padding: 0.15rem 0.45rem 0.2rem;
}
.igs-m-acard-more > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  padding: 0.35rem 0.1rem;
  user-select: none;
}
.igs-m-acard-more > summary::-webkit-details-marker {
  display: none;
}
.igs-m-acard-more > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.35rem;
  color: #1a5f9e;
  transition: transform 0.12s ease;
}
.igs-m-acard-more[open] > summary::before {
  transform: rotate(90deg);
}
.igs-m-acard-more-body {
  padding: 0.15rem 0 0.45rem;
}
.igs-m-acard-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.1rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(40, 36, 30, 0.1);
}
.igs-m-acards-pipeline-hy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin: 0.45rem 0 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(14, 116, 144, 0.08);
  border: 1px solid rgba(14, 116, 144, 0.2);
  font-size: 0.78rem;
}
.igs-m-acards-pipeline-hy strong {
  color: #0e7490;
}
.igs-m-acards-pipeline-hy a {
  color: #0f766e;
  font-weight: 600;
}
.igs-m-acards-pipeline-hy em {
  flex: 1 1 100%;
  opacity: 0.75;
  font-style: normal;
  font-size: 0.72rem;
}
.igs-m-acard-hy {
  flex: 1 1 100%;
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(14, 116, 144, 0.06);
  border: 1px solid rgba(14, 116, 144, 0.18);
}
.igs-m-acard-hy-hd {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
  align-items: center;
  margin-bottom: 0.3rem;
}
.igs-m-acard-hy-hd strong {
  font-size: 0.82rem;
  color: #0e7490;
}
.igs-m-acard-hy-link {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
}
.igs-m-acard-pre.is-hy {
  max-height: 6.5rem;
  background: rgba(255, 255, 255, 0.55);
}
.igs-m-acard-pre.is-hy-neg {
  max-height: 3.2rem;
  font-size: 0.7rem;
  opacity: 0.9;
}

/* 3D 资产卡 · 紧凑浏览 / 素材链接 / 预览抽屉 */
.igs-m-acards-sortrow {
  margin-top: 0.25rem;
}
.igs-m-acards-browse-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
@media (min-width: 900px) {
  .igs-m-acards-browse-layout.has-preview {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  }
}
.igs-m-acards-browse {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.6rem, 1fr));
  gap: 0.45rem;
}
.igs-m-acards-browse-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(40, 36, 30, 0.12);
  background: var(--igs-card, #fff);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.igs-m-acards-browse-cell:hover {
  border-color: rgba(26, 95, 158, 0.4);
  box-shadow: 0 6px 16px rgba(28, 24, 18, 0.08);
  transform: translateY(-1px);
}
.igs-m-acards-browse-cell.is-on {
  border-color: #1a5f9e;
  box-shadow: 0 0 0 2px rgba(26, 95, 158, 0.22);
}
.igs-m-acards-browse-cell.is-ready {
  border-color: rgba(34, 140, 90, 0.35);
}
.igs-m-acards-browse-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #1a1816;
}
.igs-m-acards-browse-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igs-m-acards-browse-thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a847a;
  font-size: 0.72rem;
}
.igs-m-acards-browse-thumb.is-empty i {
  font-style: normal;
}
.igs-m-acards-browse-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.igs-m-acards-browse-meta em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #1a5f9e;
}
.igs-m-acards-browse-meta b {
  font-size: 0.74rem;
  font-weight: 600;
  color: #2a2620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-m-acards-browse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.igs-m-acards-browse-tags i {
  font-style: normal;
  font-size: 0.62rem;
  padding: 0.05rem 0.25rem;
  border-radius: 0.25rem;
  background: rgba(40, 36, 30, 0.06);
  color: #5a544c;
}
.igs-m-acards-browse-tags i.is-hero {
  background: rgba(180, 110, 40, 0.14);
  color: #9a4d18;
}
.igs-m-acards-browse-tags i.is-links {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
  font-weight: 700;
}
.igs-m-acards-preview {
  position: sticky;
  top: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(26, 95, 158, 0.22);
  background: var(--igs-card, #fff);
  box-shadow: 0 10px 28px rgba(28, 24, 18, 0.08);
  min-height: 12rem;
  overflow: hidden;
}
.igs-m-acards-preview-empty {
  padding: 1.1rem 1rem;
  color: #5a544c;
}
.igs-m-acards-preview-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #1a5f9e;
}
.igs-m-acards-preview-empty p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.igs-m-acards-preview-inner {
  padding: 0.7rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.igs-m-acards-preview-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.igs-m-acards-preview-hd > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}
.igs-m-acards-preview-hd strong {
  font-size: 0.95rem;
}
.igs-m-acards-preview-media {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #1a1816;
  cursor: zoom-in;
}
.igs-m-acards-preview-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}
.igs-m-acards-preview-media.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  color: #8a847a;
  cursor: default;
  background: #f3f0ea;
}
.igs-m-acards-preview-metrics {
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
}
.igs-m-acards-preview-metrics b {
  color: #0f4c81;
}
.igs-m-acards-preview-purpose {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #334155;
}
.igs-m-acards-preview-acts {
  margin-top: 0.15rem;
}
.igs-m-acard-links {
  margin: 0.15rem 0 0.25rem;
  padding: 0.4rem 0.45rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(14, 116, 144, 0.05);
  border: 1px solid rgba(14, 116, 144, 0.16);
}
.igs-m-acard-links .igs-m-acard-block-hd {
  margin-bottom: 0.3rem;
}
.igs-m-acard-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.igs-m-acard-link-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  line-height: 1.3;
}
.igs-m-acard-link-kind {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
}
.igs-m-acard-link-item a {
  color: #0f4c81;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-m-acard-link-item a:hover {
  text-decoration: underline;
}
.igs-m-acard-link-empty {
  margin: 0;
  font-size: 0.76rem;
  color: #6a645c;
}
.igs-m-acard-link-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(14, 116, 144, 0.25);
}
.igs-m-acard-link-form input,
.igs-m-acard-link-form select {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(40, 36, 30, 0.18);
  background: #fff;
}
.igs-m-acard.is-flash {
  animation: igs-acard-flash 1.4s ease;
}
@keyframes igs-acard-flash {
  0%, 100% { box-shadow: 0 8px 22px rgba(28, 24, 18, 0.05); }
  25%, 60% { box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.35), 0 10px 26px rgba(28, 24, 18, 0.1); }
}

.igs-m-acard-prompt {
  flex: 1;
  min-width: 8rem;
  margin: 0;
}
.igs-m-acard-prompt summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: #475569;
  list-style: none;
}
.igs-m-acard-prompt summary::-webkit-details-marker {
  display: none;
}
.igs-m-acard-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.74rem;
  line-height: 1.4;
  max-height: 11rem;
  overflow: auto;
  padding: 0.45rem;
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.04);
  margin: 0.3rem 0 0;
}
.igs-m-acard-copy {
  flex-shrink: 0;
}
.igs-m-acard-ref-panel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.igs-m-acard-ref-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}
.igs-m-acard-ref-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 4.6rem;
}
.igs-m-acard-ref-chip.is-on .igs-m-acard-ref-thumb {
  outline: 2px solid #1a5f9e;
  outline-offset: 1px;
}
.igs-m-acard-ref-thumb {
  display: block;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  cursor: zoom-in;
  background: #1c1a17;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.igs-m-acard-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igs-m-acard-ref-editbtn {
  border: 0;
  background: transparent;
  color: #1a5f9e;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.05rem;
  cursor: pointer;
  line-height: 1.2;
}
.igs-m-acard-ref-editbtn:hover {
  text-decoration: underline;
}
.igs-m-acard-ref-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 0.45rem;
  border: 1.5px dashed rgba(26, 95, 158, 0.4);
  background: rgba(26, 95, 158, 0.06);
  color: #1a5f9e;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  user-select: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.igs-m-acard-ref-add:hover {
  background: rgba(26, 95, 158, 0.12);
  border-color: rgba(26, 95, 158, 0.65);
}
.igs-m-acard-ref-add.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.igs-m-acard-ref-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
  align-self: center;
  padding: 0.35rem 0.2rem;
}
.igs-m-acard-ref {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(26, 95, 158, 0.22);
  background: rgba(26, 95, 158, 0.05);
}
.igs-m-acard-ref-media {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  overflow: hidden;
  cursor: zoom-in;
  background: #1c1a17;
}
.igs-m-acard-ref-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.igs-m-acard-ref-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.igs-m-acard-ref-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a5f9e;
}
.igs-m-acards-orphan {
  margin-top: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(180, 100, 40, 0.35);
  background: rgba(180, 100, 40, 0.05);
}
.igs-m-acards-orphan .igs-m-acard-block-hd h4 {
  color: #9a4d18;
}
.igs-m-acards-orphan .igs-m-acard-block-hd em {
  background: rgba(180, 100, 40, 0.15);
  color: #9a4d18;
}
.igs-m-acards-orphan > .igs-muted-sm {
  margin: 0 0 0.45rem;
}
.igs-m-pose-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--igs-card);
  border: 1px solid rgba(40, 36, 30, 0.1);
  box-shadow: 0 8px 22px rgba(28, 24, 18, 0.06);
}
.igs-m-pose-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #1c1a17;
}
.igs-m-pose-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.igs-m-pose-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(244, 236, 220, 0.72);
  background: linear-gradient(145deg, #2a2620 0%, #1a1814 100%);
}
.igs-m-pose-card.is-pending {
  opacity: 0.92;
}
.igs-m-tchip.is-all em {
  font-weight: 800;
}
.igs-m-pose-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem 0.65rem;
}
.igs-m-pose-note-lab {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--igs-muted);
}
.igs-m-pose-note {
  width: 100%;
  resize: vertical;
  min-height: 2.6rem;
  border-radius: 0.45rem;
  border: 1px solid var(--igs-line);
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--igs-ink);
  background: #fff;
}
.igs-m-pose-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.igs-m-pose-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--igs-accent) 12%, transparent);
  color: #1a5c45;
  font-size: 0.72rem;
  font-weight: 600;
}
.igs-m-pose-tag button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 0.1rem;
  opacity: 0.7;
}
.igs-m-pose-tag button:hover {
  opacity: 1;
}
.igs-m-pose-tag-in {
  flex: 1 1 5rem;
  min-width: 4.5rem;
  min-height: 1.7rem;
  border: 1px dashed var(--igs-line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  background: transparent;
}
.igs-m-pose-acts {
  display: flex;
  gap: 0.35rem;
}
.igs-m-pose-acts .igs-btn-ghost {
  flex: 1;
  min-height: 1.85rem;
  font-size: 0.72rem;
}
.igs-m-pose-acts .igs-btn-ghost.is-danger {
  color: #a65c2e;
}
.igs-m-pose-move-lab {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--igs-muted);
  margin: 0.15rem 0 0.35rem;
}
.igs-m-pose-move {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--igs-line);
  border-radius: 0.4rem;
  padding: 0.28rem 0.45rem;
  background: #fff;
  color: var(--igs-ink);
}
.igs-m-tchip.is-lobby {
  border-color: color-mix(in srgb, var(--igs-accent) 35%, var(--igs-line));
  background: color-mix(in srgb, var(--igs-accent) 8%, transparent);
}
.igs-m-tchip.is-danger {
  color: #a65c2e;
  border-color: rgba(166, 92, 46, 0.35);
}
.igs-hair-group-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}
.igs-hair-group-row .igs-master-item {
  flex: 1;
  min-width: 0;
}
.igs-hair-group-row .igs-hair-del-group {
  flex: 0 0 auto;
  align-self: center;
  font-size: 0.68rem;
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
}
.igs-master-item.is-lobby {
  border-color: color-mix(in srgb, var(--igs-accent) 28%, var(--igs-line));
}
.igs-m-pose-badge {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--igs-accent);
  background: color-mix(in srgb, var(--igs-accent) 10%, transparent);
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
}

/* —— 发型/服装图库侧栏分组 —— */
.igs-costume-lib-list,
.igs-hair-lib-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.15rem 0 0.6rem;
}
.igs-costume-lib-hint {
  margin: 0 0.2rem 0.25rem;
  line-height: 1.35;
}
.igs-costume-lib-list .igs-master-item.is-costume-group {
  align-items: flex-start;
}
.igs-costume-g-ico {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--igs-serif);
  font-size: 1.1rem;
  color: var(--igs-accent);
  background: color-mix(in srgb, var(--igs-accent) 10%, transparent);
}
.igs-costume-add-group {
  margin-top: 0.25rem;
  align-self: stretch;
}

/* —— 表现库 / 场景图库入口条 —— */
.igs-m-gallery-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0.35rem 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--igs-accent) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--igs-accent) 35%, transparent);
}
.igs-m-gallery-cta .igs-btn {
  min-height: 2.1rem;
}

/* —— 场景总览：三槽+图库同屏 —— */
.igs-master-gallery.is-scene-board .igs-gallery-board-q {
  width: min(100%, 18rem);
  border: 1px solid #d5ccb8;
  border-radius: 0.55rem;
  padding: 0.38rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  background: #fffdf8;
}
.igs-master-gallery.is-scene-board .igs-gallery-side {
  align-items: flex-end;
  gap: 0.45rem;
}
.igs-master-gallery.is-scene-board .igs-gallery-sec-hd {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.igs-master-gallery.is-scene-board .igs-gallery-sec-jump {
  margin-left: auto;
  font-size: 0.72rem;
}
.igs-master-gallery.is-scene-board .is-pose-sec {
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(45, 70, 58, 0.18);
}
.igs-master-gallery.is-scene-board .igs-gallery-empty-hint {
  padding: 0.35rem 0.15rem 0.55rem;
}
.igs-master-gallery.is-scene-board .igs-gallery-loading {
  padding: 0.35rem 0.25rem;
}

/* 场景/道具 · 关联多小说 */
.igs-novel-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.35rem 0 0.55rem;
  padding: 0.25rem 0;
}
.igs-novel-link {
  margin: 0.55rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--igs-accent) 22%, var(--igs-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--igs-accent) 5%, transparent);
}
.igs-novel-link.is-empty {
  opacity: 0.85;
}
.igs-novel-link-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}
.igs-novel-link-lab {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--igs-ink);
}
.igs-novel-link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.igs-novel-chip {
  appearance: none;
  border: 1px solid var(--igs-line);
  background: #fff;
  color: var(--igs-ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}
.igs-novel-chip:hover {
  border-color: color-mix(in srgb, var(--igs-accent) 45%, var(--igs-line));
}
.igs-novel-chip.on {
  border-color: color-mix(in srgb, var(--igs-accent) 55%, var(--igs-line));
  background: color-mix(in srgb, var(--igs-accent) 14%, transparent);
  color: var(--igs-accent);
}
.igs-novel-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
  vertical-align: middle;
}
.igs-novel-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--igs-accent);
  background: color-mix(in srgb, var(--igs-accent) 12%, transparent);
  padding: 0.06rem 0.3rem;
  border-radius: 4px;
  max-width: 3.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-novel-badge.is-any {
  color: var(--igs-muted);
  background: rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

/* —— 小说书架 / 透析·策划页内选书 / 标准预览 (v136) —— */
.igs-modal-md {
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 1rem 1.15rem;
  background: #fbf7ef;
  border-top: 1px solid var(--igs-line);
  font-size: 0.92rem;
  line-height: 1.65;
}
.igs-nv-lib-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.igs-novel-page {
  overflow: auto;
  min-height: 0;
}
.igs-nv-library {
  padding: 0.25rem 0 1.5rem;
}
.igs-nv-lib-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.igs-nv-lib-head h2 { margin: 0 0 0.35rem; font-family: "Noto Serif SC", serif; }
.igs-nv-lib-head p { margin: 0; color: var(--igs-muted); font-size: 0.88rem; max-width: 42rem; }
.igs-nv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.15rem;
}
.igs-nv-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--igs-line);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(40, 36, 28, 0.06);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.igs-nv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(40, 36, 28, 0.1);
}
.igs-nv-card.is-work { border-color: color-mix(in srgb, var(--igs-accent) 45%, var(--igs-line)); }
.igs-nv-card.is-browse { box-shadow: 0 0 0 2px color-mix(in srgb, var(--igs-accent) 25%, transparent), 0 14px 32px rgba(40, 36, 28, 0.1); }
.igs-nv-card-cover {
  position: relative;
  height: 148px;
  overflow: hidden;
  isolation: isolate;
}
.igs-nv-card-cover__art,
.igs-nv-card-cover__shade {
  position: absolute;
  inset: 0;
}
.igs-nv-card-cover__art {
  background-image: var(--nv-cover-img, none);
  background-size: cover;
  background-position: center;
}
.igs-nv-card-cover__shade {
  background: linear-gradient(180deg, transparent 35%, rgba(10, 14, 12, 0.55) 100%);
}
.igs-nv-card-cover__mark {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff8ef;
  background: rgba(20, 28, 24, 0.42);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.igs-nv-card-cover__title {
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: "Noto Serif SC", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff8ef;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* 青藤小江湖 · 藤蔓校园 */
.igs-nv-card--vine .igs-nv-card-cover__art {
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(120, 190, 150, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 75%, rgba(40, 90, 70, 0.5), transparent 50%),
    linear-gradient(145deg, #1f4d3d 0%, #2f6b55 42%, #6a9a6a 78%, #d8c49a 100%);
}
.igs-nv-card--vine .igs-nv-card-cover__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(-18deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 15px),
    radial-gradient(circle at 70% 28%, rgba(255,255,255,0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 60%, rgba(255,255,255,0.14) 0 1.5px, transparent 2.5px);
  opacity: 0.9;
}
.igs-nv-card--vine .igs-nv-card-cover__art::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 70%;
  left: -10%;
  bottom: -18%;
  background:
    radial-gradient(ellipse 40% 55% at 20% 40%, rgba(30, 80, 55, 0.55), transparent 70%),
    radial-gradient(ellipse 35% 50% at 55% 55%, rgba(45, 100, 70, 0.45), transparent 70%),
    radial-gradient(ellipse 30% 45% at 85% 50%, rgba(25, 70, 50, 0.4), transparent 70%);
}

/* 少女狂想记 · 都市心事滤镜（暖珊瑚，非紫） */
.igs-nv-card--dream .igs-nv-card-cover__art {
  background:
    radial-gradient(ellipse 80% 60% at 78% 18%, rgba(255, 210, 160, 0.65), transparent 50%),
    radial-gradient(ellipse 70% 55% at 18% 80%, rgba(220, 90, 90, 0.35), transparent 55%),
    linear-gradient(160deg, #3a2a32 0%, #8a4050 38%, #e08a6a 72%, #f2d3a8 100%);
}
.igs-nv-card--dream .igs-nv-card-cover__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(255,255,255,0.35) 0 18px, transparent 19px),
    radial-gradient(circle at 70% 55%, rgba(255,255,255,0.22) 0 28px, transparent 30px),
    radial-gradient(circle at 48% 72%, rgba(255, 230, 180, 0.35) 0 12px, transparent 13px),
    repeating-linear-gradient(105deg, transparent 0 22px, rgba(255,255,255,0.04) 22px 23px);
}
.igs-nv-card--dream .igs-nv-card-cover__art::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 18%;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  box-shadow: 0 0 0 10px rgba(255,255,255,0.06), inset 0 0 20px rgba(255, 200, 140, 0.25);
}

/* 少年狂想记 · 输出快乐远途 */
.igs-nv-card--quest .igs-nv-card-cover__art,
.igs-nv-card--happy-quest .igs-nv-card-cover__art {
  background:
    radial-gradient(ellipse 65% 50% at 80% 25%, rgba(245, 200, 66, 0.65), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 70%, rgba(59, 167, 224, 0.5), transparent 55%),
    linear-gradient(150deg, #1a3a58 0%, #3ba7e0 38%, #ff8a3d 72%, #f5c842 100%);
}
.igs-nv-card--quest .igs-nv-card-cover__art::before,
.igs-nv-card--happy-quest .igs-nv-card-cover__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.1) 48%, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,0.03) 18px 19px),
    radial-gradient(circle at 35% 40%, rgba(255,255,255,0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 28%, rgba(255,255,255,0.18) 0 1.5px, transparent 2.5px);
}
.igs-nv-card--quest .igs-nv-card-cover__art::after,
.igs-nv-card--happy-quest .igs-nv-card-cover__art::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 18%;
  width: 58%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  box-shadow: 0 -18px 0 -1px rgba(255,255,255,0.12), 0 14px 0 -1px rgba(255,255,255,0.1);
  transform: rotate(-8deg);
}

.igs-nv-card-body {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
  display: flex;
  flex-direction: column;
}
.igs-nv-card-body header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}
.igs-nv-card-body h3 {
  margin: 0;
  font-size: 1.12rem;
  font-family: "Noto Serif SC", serif;
}
.igs-nv-card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.igs-nv-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.05);
  color: var(--igs-muted);
}
.igs-nv-tag.work { background: color-mix(in srgb, var(--igs-accent) 14%, transparent); color: var(--igs-accent); font-weight: 700; }
.igs-nv-author {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6a4a2e;
}
.igs-nv-card--dream .igs-nv-author { color: #8a3d48; }
.igs-nv-card--quest .igs-nv-author,
.igs-nv-card--happy-quest .igs-nv-author { color: #2f6a88; }
.igs-nv-card--vine .igs-nv-author { color: #2a5c48; }
.igs-nv-sub { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--igs-muted); }
.igs-nv-syn {
  margin: 0.55rem 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #2a241c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.igs-nv-prog { margin: 0.35rem 0 0.75rem; }
.igs-nv-prog-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
}
.igs-nv-prog-row.mute { color: var(--igs-muted); }
.igs-nv-prog-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.igs-nv-prog-track i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--igs-accent), #3d9a7a);
  border-radius: 99px;
}
.igs-nv-card--dream .igs-nv-prog-track i {
  background: linear-gradient(90deg, #b85a4a, #e08a6a);
}
.igs-nv-card--quest .igs-nv-prog-track i,
.igs-nv-card--happy-quest .igs-nv-prog-track i {
  background: linear-gradient(90deg, #3ba7e0, #f5c842);
}
.igs-nv-card-body footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}
.igs-nv-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.igs-nv-reader-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.igs-nv-reader-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.igs-nv-reader-syn {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  background: color-mix(in srgb, var(--igs-mist) 35%, var(--igs-elev));
  border: 1px solid var(--igs-line);
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--igs-muted);
}

.igs-dx-picker, .igs-pl-picker { max-width: 960px; }
.igs-dx-picker-head, .igs-pl-picker > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.igs-dx-picker-head h2, .igs-pl-picker h2 {
  margin: 0 0 0.35rem;
  font-family: "Noto Serif SC", serif;
}
.igs-dx-picker-head p, .igs-pl-picker > header p {
  margin: 0;
  color: var(--igs-muted);
  font-size: 0.88rem;
  max-width: 36rem;
}
.igs-dx-guide, .igs-pl-guide {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  background: #f7f1e6;
}
.igs-dx-guide ol, .igs-pl-guide-steps {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.55;
}
.igs-dx-guide-docs, .igs-pl-guide-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.igs-dx-guide-docs--side {
  margin-top: 1rem;
  flex-direction: column;
}
.igs-dx-novel-cards, .igs-pl-season-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.igs-dx-novel-card, .igs-pl-season-card {
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  background: #fffdf8;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.igs-dx-novel-card:hover, .igs-pl-season-card:hover { border-color: var(--igs-accent); }
.igs-dx-novel-card.on, .igs-pl-season-card.on {
  border-color: var(--igs-accent);
  background: color-mix(in srgb, var(--igs-accent) 8%, transparent);
}
.igs-dx-novel-card strong, .igs-pl-season-card strong { font-family: "Noto Serif SC", serif; }
.igs-dx-novel-card span, .igs-pl-season-card span { font-size: 0.8rem; color: var(--igs-muted); }
.igs-dx-novel-card em, .igs-pl-season-card em { font-size: 0.72rem; color: #6a5a48; font-style: normal; }
.igs-dx-explain, .igs-pl-explain {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.8rem;
  background: color-mix(in srgb, var(--igs-accent) 6%, transparent);
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.igs-dx-explain p, .igs-pl-explain p { margin: 0.2rem 0; }
.igs-pl-guide header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}
.igs-pl-guide-lead { margin: 0 0 0.5rem; font-size: 0.86rem; color: #3a3228; }
.igs-pl-guide-doc {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--igs-line);
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
  max-width: 280px;
}
.igs-pl-guide-doc:hover { border-color: var(--igs-accent); }
.igs-pl-guide-doc b { font-size: 0.84rem; }
.igs-pl-guide-doc span { font-size: 0.75rem; color: var(--igs-muted); line-height: 1.4; }
.igs-pl-guide-doc em { font-size: 0.68rem; color: var(--igs-accent); font-style: normal; }
.igs-pl-guide-note { margin: 0.65rem 0 0; font-size: 0.78rem; color: var(--igs-muted); }
.igs-pl-guide-note .ok { color: var(--igs-accent); }
.igs-pl-guide-note .warn { color: #c9a227; }
.igs-pl-guide-note .bad { color: #c45c28; }
.igs-pl-guide-toggle {
  margin-bottom: 0.75rem;
  border: 1px dashed var(--igs-line);
  background: transparent;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--igs-accent);
}

/* —— 编剧架构台 P0 (v137) —— */
.igs-pl-mode-tabs {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.15rem;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
}
.igs-pl-mode-tabs button {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--igs-muted);
}
.igs-pl-mode-tabs button.on {
  background: #fffdf8;
  color: var(--igs-accent);
  font-weight: 700;
}
.igs-pl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
}
.igs-pl-crumb {
  border: 0;
  background: transparent;
  color: var(--igs-accent);
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  font-weight: 600;
}
.igs-pl-crumb:hover { background: color-mix(in srgb, var(--igs-accent) 10%, transparent); }
.igs-pl-crumb.on, .igs-pl-crumb-cur { color: #2a241c; font-style: normal; font-weight: 700; }
.igs-pl-arch {
  display: grid;
  grid-template-columns: var(--igs-pl-left, 15rem) 0.4rem minmax(0, 1fr) 0.4rem var(--igs-pl-dock, 20rem);
  gap: 0;
  column-gap: 0;
  align-items: stretch;
  min-height: 420px;
  flex: 1 1 auto;
}
@media (max-width: 1100px) {
  .igs-pl-arch {
    grid-template-columns: 1fr;
  }
  .igs-pl-arch > .igs-pl-resize {
    display: none;
  }
}
.igs-pl-arch-tree, .igs-pl-arch-dock-col, .igs-pl-arch-main {
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  background: #fffdf8;
  padding: 0.65rem 0.75rem;
  max-height: min(72vh, 780px);
  overflow: auto;
  min-width: 0;
}
.igs-pl-arch-tree {
  width: auto;
}
.igs-pl-arch-tree h3, .igs-pl-arch-dock-col h3 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--igs-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.igs-pl-tree-root {
  width: 100%;
  text-align: left;
  border: 1px solid var(--igs-line);
  background: #f3ebe0;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.igs-pl-tree-root.on { border-color: var(--igs-accent); background: color-mix(in srgb, var(--igs-accent) 10%, transparent); }
.igs-pl-tree-root b { display: block; font-family: "Noto Serif SC", serif; }
.igs-pl-tree-root small { color: var(--igs-muted); font-size: 0.72rem; }
.igs-pl-tree-sl { margin-bottom: 0.35rem; border-left: 3px solid var(--sl, var(--igs-accent)); padding-left: 0.25rem; }
.igs-pl-tree-sl-row { display: flex; gap: 0.15rem; align-items: stretch; }
.igs-pl-tree-twist {
  border: 0;
  background: transparent;
  width: 1.2rem;
  cursor: pointer;
  color: var(--igs-muted);
  flex: 0 0 auto;
}
.igs-pl-tree-sl-btn {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.15rem 0.35rem;
  align-items: center;
}
.igs-pl-tree-sl-btn:hover, .igs-pl-tree-sl-btn.on { background: color-mix(in srgb, var(--igs-accent) 8%, transparent); }
.igs-pl-tree-sl-btn em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sl, var(--igs-accent));
}
.igs-pl-tree-sl-btn b { font-size: 0.82rem; grid-column: 3; }
.igs-pl-tree-sl-btn small { grid-column: 3; color: var(--igs-muted); font-size: 0.68rem; }
.igs-pl-tree-eps { display: flex; flex-direction: column; gap: 0.15rem; margin: 0.2rem 0 0.4rem 1.3rem; }
.igs-pl-tree-ep {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.25rem 0.35rem;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.78rem;
}
.igs-pl-tree-ep:hover, .igs-pl-tree-ep.on { background: #f3ebe0; }
.igs-pl-tree-ep.is-pri b { color: var(--igs-accent); }
.igs-pl-tree-ep span { color: var(--igs-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.igs-pl-arch-views {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}
.igs-pl-arch-views button {
  border: 1px solid var(--igs-line);
  background: transparent;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.igs-pl-arch-views button.on {
  border-color: var(--igs-accent);
  background: color-mix(in srgb, var(--igs-accent) 10%, transparent);
  color: var(--igs-accent);
  font-weight: 700;
}
.igs-pl-arch-views--seg .igs-pl-arch-views__lab {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--igs-muted);
  align-self: center;
}
.igs-pl-swim-wrap, .igs-pl-matrix-wrap { overflow: auto; }
.igs-pl-swim {
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.72rem;
  min-width: 100%;
}
.igs-pl-swim th.corner {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #f7f1e6;
  text-align: left;
  padding: 0.35rem 0.5rem;
  min-width: 7.5rem;
}
.igs-pl-swim thead th {
  background: #f7f1e6;
  padding: 0.2rem;
  font-weight: 600;
}
.igs-pl-swim thead th.on { background: color-mix(in srgb, var(--igs-accent) 15%, transparent); }
.igs-pl-swim thead button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  color: #3a3228;
  padding: 0.25rem 0.2rem;
}
.igs-pl-swim tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fffdf8;
  text-align: left;
  padding: 0;
  vertical-align: middle;
  min-width: 7.5rem;
}
.igs-pl-swim tr.sl-on th, .igs-pl-swim tr.sl-on td.cell { outline: 1px solid color-mix(in srgb, var(--sl) 40%, transparent); }
.igs-pl-swim-lab {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  border-left: 3px solid var(--sl, var(--igs-accent));
}
.igs-pl-swim-lab em { display: block; font-style: normal; font-size: 0.65rem; color: var(--sl); font-weight: 700; }
.igs-pl-swim-lab b { display: block; font-size: 0.78rem; }
.igs-pl-swim-lab small { color: var(--igs-muted); font-size: 0.65rem; }
.igs-pl-swim td.empty {
  background: rgba(0,0,0,0.03);
  min-width: 2.2rem;
  height: 2.4rem;
}
.igs-pl-swim td.cell {
  padding: 0;
  min-width: 2.2rem;
}
.igs-pl-swim td.cell button {
  width: 100%;
  height: 2.4rem;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-size: 0.62rem;
  font-weight: 700;
}
.igs-pl-swim td.pri button { background: color-mix(in srgb, var(--sl, var(--igs-accent)) 35%, #fffdf8); color: #14201c; }
.igs-pl-swim td.sec button { background: color-mix(in srgb, var(--sl, var(--igs-accent)) 14%, #fffdf8); color: #5a4a38; }
.igs-pl-swim td.cell.on button { box-shadow: inset 0 0 0 2px var(--igs-accent); }
.igs-pl-swim-leg { margin: 0.5rem 0 0; }

.igs-pl-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.igs-pl-matrix th, .igs-pl-matrix td {
  border-bottom: 1px solid var(--igs-line);
  padding: 0.45rem 0.4rem;
  text-align: left;
  vertical-align: top;
}
.igs-pl-matrix th { background: #f7f1e6; font-size: 0.72rem; position: sticky; top: 0; }
.igs-pl-matrix tr.on { background: color-mix(in srgb, var(--igs-accent) 8%, transparent); }
.igs-pl-matrix td button { border: 0; background: transparent; cursor: pointer; color: var(--igs-accent); padding: 0; }
.igs-pl-matrix .mute { color: var(--igs-muted); font-size: 0.7rem; margin-top: 0.15rem; }
.igs-pl-matrix td:nth-child(3),
.igs-pl-matrix td:nth-child(4),
.igs-pl-matrix td:nth-child(5) {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.igs-pl-arch-dock header { margin-bottom: 0.5rem; }
.igs-pl-arch-dock h3 { margin: 0 0 0.35rem; font-family: "Noto Serif SC", serif; font-size: 1rem; }
.igs-pl-arch-dock h4 { margin: 0.75rem 0 0.35rem; font-size: 0.78rem; color: var(--igs-muted); }
.igs-pl-arch-dl { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.25rem 0.5rem; font-size: 0.82rem; margin: 0; }
.igs-pl-arch-dl dt { color: var(--igs-muted); }
.igs-pl-arch-dl dd { margin: 0; }
.igs-pl-peak-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.igs-pl-peak-chip {
  border: 1px solid var(--igs-line);
  background: #f3ebe0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
  max-width: 100%;
}
.igs-pl-peak-chip em { font-style: normal; font-size: 0.65rem; color: var(--igs-accent); font-weight: 700; }
.igs-pl-peak-chip b { font-size: 0.8rem; }
.igs-pl-peak-chip span { font-size: 0.68rem; color: var(--igs-muted); }
.igs-pl-peak-chip.on {
  border-color: var(--igs-accent);
  background: color-mix(in srgb, var(--igs-accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--igs-accent) 25%, transparent);
}

.igs-pl-peak-lane header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}
.igs-pl-peak-lane header b {
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
}
.igs-pl-peak-lane header span {
  font-size: 0.75rem;
  color: var(--igs-muted);
}
.igs-pl-lane-bar {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-height: 4.2rem;
  width: 100%;
  margin-bottom: 0.35rem;
}
.igs-pl-lane-seg {
  flex-grow: 0;
  flex-shrink: 1;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid var(--igs-line);
  padding: 0.35rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  overflow: hidden;
  text-align: left;
}
.igs-pl-lane-seg.nail,
.igs-pl-lane-seg.hook,
.igs-pl-lane-seg.trans {
  background: #f3ebe0;
  color: #6a645a;
  font-size: 0.68rem;
  align-items: center;
  text-align: center;
}
.igs-pl-lane-seg.trans { opacity: 0.75; font-size: 0.62rem; }
.igs-pl-lane-seg.peak {
  background: color-mix(in srgb, var(--igs-accent) 14%, #fffdf8);
  cursor: pointer;
  border-color: color-mix(in srgb, var(--igs-accent) 35%, var(--igs-line));
}
.igs-pl-lane-seg.peak.light-yellow {
  background: color-mix(in srgb, #c9a227 18%, #fffdf8);
  border-color: color-mix(in srgb, #c9a227 40%, var(--igs-line));
}
.igs-pl-lane-seg.peak.light-red {
  background: color-mix(in srgb, #c45c28 16%, #fffdf8);
  border-color: color-mix(in srgb, #c45c28 40%, var(--igs-line));
}
.igs-pl-lane-seg.peak.on {
  box-shadow: inset 0 0 0 2px var(--igs-accent);
}
.igs-pl-lane-seg.peak em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--igs-accent);
}
.igs-pl-lane-seg.peak b {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.igs-pl-lane-seg.peak span {
  font-size: 0.65rem;
  color: var(--igs-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.igs-pl-lane-detail {
  margin-top: 0.65rem;
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border-left: 4px solid var(--igs-accent);
}
.igs-pl-lane-detail.light-yellow { border-left-color: #c9a227; }
.igs-pl-lane-detail.light-red { border-left-color: #c45c28; }
.igs-pl-lane-detail header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.igs-pl-lane-detail header strong { font-family: "Noto Serif SC", serif; }
.igs-pl-lane-detail header em { font-style: normal; font-weight: 800; color: var(--igs-accent); }
.igs-pl-lane-detail p { margin: 0.25rem 0; font-size: 0.82rem; line-height: 1.45; }

.igs-pl-ab {
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.igs-pl-ab-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--igs-line);
  background: #f7f1e6;
}
.igs-pl-ab-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--igs-muted);
}
.igs-pl-ab-tabs button.on {
  background: #fff;
  color: var(--igs-accent);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--igs-accent);
}
.igs-pl-ab-tabs button.ready:not(.on)::after {
  content: "·";
  color: var(--igs-accent);
  margin-left: 0.15rem;
}
.igs-pl-ab-body { padding: 0.55rem 0.65rem 0.7rem; }
.igs-pl-ab-body.empty p { margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--igs-muted); }
.igs-pl-ab-body header strong {
  display: block;
  font-size: 0.85rem;
  font-family: "Noto Serif SC", serif;
}
.igs-pl-ab-body header small {
  display: block;
  font-size: 0.65rem;
  color: var(--igs-muted);
  word-break: break-all;
  margin-top: 0.15rem;
}
.igs-pl-ab-excerpt {
  margin: 0.45rem 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #3d453e;
  max-height: 6.5rem;
  overflow: auto;
}
.igs-pl-ab-toc {
  margin: 0 0 0.45rem;
  padding-left: 1rem;
  font-size: 0.72rem;
  color: #5a4a38;
  max-height: 7rem;
  overflow: auto;
}
.igs-pl-ab-toc .lv3 { margin-left: 0.55rem; list-style: circle; }

