/**
 * 制作台 · 候选分栏 / 向导浮窗 / 本章规划（P-css-j：从 ws-chat）
 */

/* —— 候选草稿台 · 左右分栏（列表不被正文淹没） —— */
.igs-nv-ai-cands.is-desk {
  container-type: inline-size;
  container-name: igs-cands;
}
.igs-nv-cands.is-desk.is-split {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.igs-nv-cands__chrome-acts {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
}
.igs-nv-cands.is-split > .igs-nv-cands__body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 40%) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(90, 70, 40, 0.1);
}
.igs-nv-cands__listpane {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.4rem 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-right: 1px solid rgba(90, 70, 40, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(247, 243, 234, 0.55));
}
.igs-nv-cands__readpane {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.45rem 0.55rem 0.65rem;
  background: rgba(255, 254, 250, 0.92);
}
.igs-nv-cands.is-split .igs-nv-cands__dock {
  flex: 0 0 auto;
  border-top: 1px solid rgba(90, 70, 40, 0.12);
  background: linear-gradient(180deg, #faf6ef, #fffef9);
  padding: 0.35rem 0.45rem 0.45rem;
  max-height: min(42vh, 22rem);
  overflow: auto;
}
.igs-nv-cand-focus.is-compact {
  margin: 0;
  padding: 0.55rem 0.6rem 0.65rem;
  border-style: solid;
  border-color: rgba(26, 107, 82, 0.18);
  background: linear-gradient(165deg, #f7fbf9 0%, #fff 55%);
}
.igs-nv-cand-focus.is-empty {
  display: grid;
  place-items: center;
  min-height: 8rem;
  color: #7a6a58;
  font-size: 0.86rem;
  border: 1px dashed rgba(90, 70, 40, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 252, 247, 0.7);
}
.igs-nv-cand-excerpt {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.25rem;
  padding: 0;
  border: 1px solid rgba(26, 50, 40, 0.12);
  border-radius: 0.7rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.igs-nv-cand-excerpt:hover {
  border-color: rgba(26, 107, 82, 0.35);
  box-shadow: 0 6px 18px rgba(20, 90, 70, 0.1);
}
.igs-nv-cand-excerpt pre {
  margin: 0;
  padding: 0.55rem 0.65rem 0.35rem;
  max-height: 9.5rem;
  overflow: hidden;
  white-space: pre-wrap;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #1c2420;
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.igs-nv-cand-excerpt__cta {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.4rem 0.65rem 0.5rem;
  font-size: 0.74rem;
  font-weight: 750;
  color: #145a45;
  background: rgba(26, 107, 82, 0.07);
  border-top: 1px solid rgba(26, 107, 82, 0.1);
}
.igs-nv-cand-compare-hint {
  margin: 0.25rem 0 0.35rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  background: rgba(154, 107, 47, 0.1);
  color: #6a4a22;
  font-size: 0.72rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.igs-nv-writer-target {
  margin: 0.15rem 0 0.3rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(45, 90, 70, 0.22);
  border-radius: 0.65rem;
  background: rgba(236, 247, 241, 0.92);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.igs-nv-writer-target__lab {
  font-size: 0.72rem;
  font-weight: 750;
  color: #2d5a48;
  width: 100%;
}
.igs-nv-writer-target__btn {
  border: 1px solid rgba(45, 90, 70, 0.28);
  background: #fff;
  color: #2d5a48;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}
.igs-nv-writer-target__btn.is-on {
  background: #145a45;
  border-color: #145a45;
  color: #fff;
}
.igs-nv-writer-target__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.igs-nv-writer-target__tip {
  width: 100%;
  font-size: 0.68rem;
  color: #3d6a58;
  line-height: 1.35;
}
.igs-nv-writer-target__tip.is-muted {
  opacity: 0.85;
}
.igs-nv-rewrite-base__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(45, 90, 70, 0.12);
  color: #2d5a48;
  font-size: 0.72rem;
  font-weight: 650;
}
.igs-nv-cand-gen__abase.is-section {
  border-color: rgba(45, 90, 70, 0.28);
  background: rgba(236, 247, 241, 0.9);
}
.igs-nv-cand-gen__abase {
  margin: 0.2rem 0 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(154, 107, 47, 0.28);
  border-radius: 0.65rem;
  background: rgba(255, 248, 232, 0.92);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.igs-nv-cand-gen__abase.is-need-pick,
.igs-nv-cand-gen__abase.is-flash,
.igs-nv-writer-continue.is-need-base,
.igs-nv-writer-continue.is-flash {
  border-color: rgba(180, 110, 30, 0.55);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35), 0 6px 18px rgba(120, 70, 10, 0.12);
}
.igs-nv-cand-gen__abase .igs-nv-rewrite-base {
  margin: 0;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.igs-nv-cand-gen__abase .igs-nv-rewrite-base__lab {
  font-weight: 750;
  color: #6a4a22;
  width: 100%;
}
.igs-nv-rewrite-base__tip {
  width: 100%;
  font-size: 0.7rem;
  color: #6a4a22;
  line-height: 1.35;
  margin-top: 0.1rem;
}
.igs-nv-rewrite-base__tip.is-muted {
  color: #7a6a58;
  opacity: 0.9;
}
.igs-nv-rewrite-base.is-need-pick .igs-nv-rewrite-base__btn.is-pulse {
  animation: igs-abase-pulse 1.4s ease-in-out infinite;
}
@keyframes igs-abase-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 120, 90, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(45, 120, 90, 0.18); }
}
.igs-nv-cand-abase-hint {
  margin: 0.35rem 0 0.15rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 248, 232, 0.85);
  border: 1px solid rgba(154, 107, 47, 0.2);
  font-size: 0.72rem;
  color: #6a4a22;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.igs-nv-cand-abase-hint.is-soft {
  background: rgba(230, 245, 238, 0.7);
  border-color: rgba(45, 120, 90, 0.18);
  color: #2d5a48;
}
.igs-nv-cand-gen__abase .igs-nv-rewrite-base.is-pending .igs-nv-rewrite-base__lab::after {
  content: '（覆盖后请点选）';
  font-weight: 600;
  opacity: 0.85;
  margin-left: 0.2rem;
}
.igs-nv-cand-gen__tools {
  margin: 0.15rem 0 0.35rem;
  border: 1px solid rgba(26, 50, 40, 0.1);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.igs-nv-cand-gen__tools > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.38rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a6a62;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  user-select: none;
}
.igs-nv-cand-gen__tools > summary::-webkit-details-marker { display: none; }
.igs-nv-cand-gen__tools[open] > summary {
  border-bottom: 1px solid rgba(26, 50, 40, 0.08);
  color: #145a45;
}
.igs-nv-cand-gen__tools > *:not(summary) {
  padding: 0.35rem 0.45rem;
}
.igs-nv-cand-gen.is-compose .igs-ws-bar__compose.is-cands-compose textarea,
.igs-nv-cand-gen.is-compose .igs-ws-bar__compose.is-cands-compose .igs-ws-chat-input {
  min-height: 3.6rem;
  max-height: 8rem;
}
@container igs-cands (max-width: 440px) {
  .igs-nv-cands.is-split > .igs-nv-cands__body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(7.5rem, 34%) minmax(0, 1fr);
  }
  .igs-nv-cands__listpane {
    border-right: 0;
    border-bottom: 1px solid rgba(90, 70, 40, 0.12);
    max-height: none;
  }
}




/* 大屏弹窗顶栏操作（复制 + 关闭） */
.igs-modal-head-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex-shrink: 0;
}


/* 左侧单元/章定位 + 正文视图选中色 */
.igs-nv-ch-card.is-active.is-sec-locked {
  border-color: #b07a28;
  background: linear-gradient(160deg, rgba(255, 246, 230, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 0 0 2px rgba(176, 122, 40, 0.2), 0 8px 20px rgba(176, 122, 40, 0.1);
}
.igs-nv-ch-badge.is-locus {
  background: rgba(26, 107, 82, 0.16);
  color: #145a45;
  font-weight: 750;
}
.igs-nv-ch-badge.is-locus-sec {
  background: rgba(176, 122, 40, 0.2);
  color: #8a5a18;
  font-weight: 750;
}
.igs-nv-ch-block.is-active-unit {
  outline: 2px solid rgba(26, 107, 82, 0.22);
  outline-offset: 2px;
  border-radius: 0.85rem;
}
.igs-nv-ch-block.is-sec-locked {
  outline-color: rgba(176, 122, 40, 0.35);
}
.igs-nv-locate-body {
  display: flex;
  width: calc(100% - 0.5rem);
  margin: 0.25rem 0.25rem 0.35rem;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px dashed rgba(26, 107, 82, 0.45);
  background: rgba(232, 246, 239, 0.95);
  color: #145a45;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.igs-nv-locate-body:hover {
  background: #145a45;
  color: #fff;
  border-style: solid;
}
.igs-nv-locate-body.is-in-fold {
  width: calc(100% - 0.7rem);
  margin: 0.2rem 0.35rem 0.4rem;
}
.igs-nv-sec-item.is-active {
  border-color: #b07a28 !important;
  background: linear-gradient(90deg, rgba(255, 244, 220, 0.98), rgba(255, 252, 245, 0.95)) !important;
  box-shadow: inset 3px 0 0 #b07a28;
  font-weight: 700;
}
.igs-nv-body-view-btn {
  border: 1px solid rgba(90, 70, 40, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #5a4a38;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.igs-nv-body-view-btn.is-reading.is-on {
  background: #145a45;
  border-color: #145a45;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(20, 90, 69, 0.25);
}
.igs-nv-body-view-btn.is-disk.is-on {
  background: #8a5a18;
  border-color: #8a5a18;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(138, 90, 24, 0.28);
}
.igs-nv-body-view-btn.is-ab.is-on {
  background: linear-gradient(90deg, #8a5a18 0%, #8a5a18 48%, #145a45 52%, #145a45 100%);
  border-color: #5a4a28;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(90, 70, 40, 0.25);
}
.igs-nv-body-view-btn:not(.is-on):hover {
  border-color: rgba(26, 107, 82, 0.4);
  background: rgba(232, 246, 239, 0.9);
}

/* —— 制作台向导机器人浮窗（v1.0.192） —— */
.igs-sg {
  position: fixed;
  right: 1rem;
  /* 默认贴底；有底栏快捷导航时再上抬，与「目录/分享/聊天」竖向错开 */
  bottom: 1rem;
  z-index: 12100;
  font-family: inherit;
  pointer-events: none;
}
body.igs-on-novel:not(.igs-nv-reading-lean) .igs-sg,
body.igs-on-dialysis .igs-sg,
body.igs-on-planning .igs-sg {
  bottom: var(--igs-sg-clearance, calc(2.65rem + env(safe-area-inset-bottom, 0px) + 0.7rem));
}
/* 登录台未解锁时不显示，避免被门禁层挡住误以为点不动 */
body.igs-locked .igs-sg {
  display: none !important;
}
/* 设置关闭：完全不占位，避免挡 AI 发送 */
.igs-sg.is-pref-hidden,
.igs-sg[hidden] {
  display: none !important;
}
.igs-sg > * {
  pointer-events: auto;
}
.igs-sg__fab {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 107, 82, 0.35);
  background: linear-gradient(165deg, #1a6b52, #145a45);
  color: #f7fff9;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(20, 60, 45, 0.28);
  cursor: pointer;
}
.igs-sg__fab:hover {
  filter: brightness(1.06);
}
.igs-sg__fab-ico {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.95rem;
  line-height: 1;
}
.igs-sg.is-open .igs-sg__fab {
  margin-bottom: 0.45rem;
}
.igs-sg__panel {
  position: fixed;
  right: 1rem;
  bottom: 4.25rem;
  width: min(22.5rem, calc(100vw - 1.5rem));
  height: min(70vh, 36rem);
  display: none;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(26, 50, 40, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 250, 247, 0.96));
  box-shadow: 0 16px 40px rgba(20, 36, 30, 0.18);
  overflow: hidden;
  z-index: 1;
}
body.igs-on-novel:not(.igs-nv-reading-lean) .igs-sg__panel,
body.igs-on-dialysis .igs-sg__panel,
body.igs-on-planning .igs-sg__panel {
  bottom: calc(var(--igs-sg-clearance, 3.35rem) + 3.1rem);
}
.igs-sg.is-open .igs-sg__panel {
  display: flex !important;
}
.igs-sg.is-collapsed .igs-sg__panel {
  display: none !important;
}
.igs-sg__hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem 0.55rem;
  border-bottom: 1px solid rgba(26, 50, 40, 0.08);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.igs-sg__hd:active {
  cursor: grabbing;
}
.igs-sg__hd strong {
  display: block;
  font-size: 0.92rem;
  color: #143528;
}
.igs-sg__hd em {
  font-style: normal;
  font-size: 0.68rem;
  color: #5a6c64;
}
.igs-sg__hd-acts {
  display: inline-flex;
  gap: 0.2rem;
}
.igs-sg__icon-btn {
  border: 0;
  background: rgba(26, 107, 82, 0.08);
  color: #145a45;
  border-radius: 0.45rem;
  padding: 0.22rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
}
.igs-sg__icon-btn.is-close {
  background: rgba(160, 60, 40, 0.12);
  color: #8a3a28;
}
.igs-sg__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.4rem 0.65rem;
  background: rgba(26, 107, 82, 0.04);
}
.igs-sg__tabs button {
  border: 0;
  background: transparent;
  padding: 0.4rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #5a6c64;
  cursor: pointer;
}
.igs-sg__tabs button.is-on {
  background: #fff;
  color: #145a45;
  box-shadow: 0 1px 4px rgba(20, 40, 30, 0.08);
}
.igs-sg__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.igs-sg__log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.65rem 0.75rem;
}
.igs-sg__empty {
  text-align: left;
  color: #2a3a32;
  font-size: 0.82rem;
  line-height: 1.45;
}
.igs-sg__empty p {
  margin: 0 0 0.45rem;
}
.igs-sg__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.igs-sg__chips button {
  border: 1px solid rgba(26, 107, 82, 0.22);
  background: rgba(255, 255, 255, 0.85);
  color: #145a45;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
.igs-sg__msg {
  margin-bottom: 0.65rem;
}
.igs-sg__msg.is-user {
  text-align: right;
}
.igs-sg__bubble {
  display: inline-block;
  max-width: 95%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.igs-sg__msg.is-user .igs-sg__bubble {
  background: rgba(26, 107, 82, 0.14);
  color: #0f3d2e;
  border-bottom-right-radius: 0.25rem;
}
.igs-sg__msg.is-assistant .igs-sg__bubble {
  background: #fff;
  border: 1px solid rgba(26, 50, 40, 0.1);
  color: #24332c;
  border-bottom-left-radius: 0.25rem;
}
.igs-sg__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.igs-sg__acts--pipe {
  margin: 0.55rem 0 0.35rem;
}
.igs-sg__go {
  padding: 0.65rem 0.75rem 0.9rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.igs-sg__go section h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #1a6b52;
}
.igs-sg__act {
  border: 1px solid rgba(26, 107, 82, 0.2);
  background: #fff;
  color: #145a45;
  border-radius: 0.4rem;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
}
.igs-sg__act.is-pri {
  background: rgba(26, 107, 82, 0.12);
  border-color: rgba(26, 107, 82, 0.35);
}
.igs-sg__compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem 0.7rem;
  border-top: 1px solid rgba(26, 50, 40, 0.08);
  background: rgba(255, 255, 255, 0.65);
}
.igs-sg__compose textarea,
.igs-sg__compose input {
  width: 100%;
  border: 1px solid rgba(26, 50, 40, 0.14);
  border-radius: 0.55rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  resize: vertical;
  background: #fff;
}
.igs-sg__compose button[type='submit'] {
  align-self: end;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.45rem 0.75rem;
  background: #1a6b52;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}
.igs-sg__compose button[type='submit']:disabled {
  opacity: 0.45;
}
.igs-sg__compose.is-inline {
  padding: 0;
  border: 0;
  background: transparent;
  flex: 1;
}
.igs-sg__tpl-tools {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.35rem;
  border-bottom: 1px solid rgba(26, 50, 40, 0.07);
}
.igs-sg__tpl-tools label {
  font-size: 0.72rem;
  color: #5a6c64;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.igs-sg__tpl-tools select {
  flex: 1;
  border-radius: 0.4rem;
  border: 1px solid rgba(26, 50, 40, 0.14);
  padding: 0.25rem 0.4rem;
  font: inherit;
}
.igs-sg__tpl {
  padding: 0.55rem 0.5rem;
  margin-bottom: 0.45rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(26, 50, 40, 0.1);
  background: #fff;
}
.igs-sg__tpl header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}
.igs-sg__tpl header b {
  font-size: 0.74rem;
  color: #145a45;
}
.igs-sg__tpl header span {
  font-size: 0.78rem;
  font-weight: 650;
  color: #24332c;
}
.igs-sg__tpl p {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  color: #6a7c74;
}
.igs-sg__hint {
  font-size: 0.72rem;
  color: #6a7c64;
  margin: 0.35rem 0;
}
@media (max-width: 520px) {
  .igs-sg {
    right: 0.55rem;
    bottom: 0.55rem;
  }
  body.igs-on-novel:not(.igs-nv-reading-lean) .igs-sg,
  body.igs-on-dialysis .igs-sg,
  body.igs-on-planning .igs-sg {
    bottom: var(--igs-sg-clearance, calc(2.65rem + env(safe-area-inset-bottom, 0px) + 0.55rem));
  }
  .igs-sg__panel {
    height: min(78vh, 34rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .igs-sg__fab {
    box-shadow: 0 2px 8px rgba(20, 60, 45, 0.2);
  }
}

/* 连续长篇 · 本章规划台（提纲，非章节设定本） */
.igs-ws-cont-plan {
  margin: 0.55rem 0.75rem 0.75rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border: 1px solid rgba(46, 90, 70, 0.22);
  border-radius: 0.65rem;
  background: linear-gradient(165deg, rgba(236, 248, 240, 0.95), rgba(255, 252, 247, 0.92));
}
.igs-ws-cont-plan.is-empty {
  border-style: dashed;
  background: rgba(255, 252, 247, 0.75);
}
.igs-ws-cont-plan__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #3d6a52;
  font-weight: 600;
}
.igs-ws-cont-plan__hero h4 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
  color: #2a3a2e;
}
.igs-ws-cont-plan__hero p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5a4a3a;
}
.igs-ws-cont-plan__steps {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.78rem;
  color: #4a3a28;
  line-height: 1.55;
}
.igs-ws-cont-plan__meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0.65rem 0 0.5rem;
  font-size: 0.72rem;
}
.igs-ws-cont-plan__meter > span {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(120, 100, 80, 0.1);
  color: #7a6a58;
}
.igs-ws-cont-plan__meter > span.is-on {
  background: rgba(46, 120, 80, 0.18);
  color: #1f5a38;
  font-weight: 600;
}
.igs-ws-cont-plan__meter > em {
  font-style: normal;
  color: #6a5a48;
}
.igs-ws-cont-plan__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.igs-ws-cont-plan .igs-ws-sec-index {
  margin: 0.35rem 0 0;
}

.igs-ws-cont-plan__goal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.55rem 0 0.35rem;
}
.igs-ws-cont-plan__goal > span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3d6a52;
}
.igs-ws-cont-plan__goal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(46, 90, 70, 0.28);
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  resize: vertical;
  background: #fff;
  color: #2a3a2e;
}
.igs-ws-cont-plan .igs-ws-peak-rail {
  margin: 0.45rem 0 0.35rem;
}

