/**
 * 制作台 · 书标 / 章节卡 / 资料库 / AI 侧栏整体（P-css-j：从 ws-chat）
 */

/* —— 顶栏书标 —— */
.igs-nv-chrome__mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(120% 100% at 20% 15%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, #1f7a5e 0%, #145a45 55%, #0f4636 100%);
  color: #f3faf6;
  box-shadow:
    0 6px 16px rgba(20, 90, 70, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex: 0 0 auto;
}
.igs-nv-chrome__mark .igs-ws-ico {
  width: 1.15rem;
  height: 1.15rem;
}
.igs-nv-chrome__titles .igs-muted-sm {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.igs-nv-chrome__titles .igs-muted-sm .igs-ws-ico {
  width: 11px;
  height: 11px;
  color: #1a6b52;
  opacity: 0.85;
}
.igs-nv-chrome {
  background:
    linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(255, 253, 248, 0.94)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(26, 107, 82, 0.018) 11px,
      rgba(26, 107, 82, 0.018) 12px
    );
  border-bottom-color: rgba(26, 107, 82, 0.14);
}
.igs-nv-chrome__views {
  background: linear-gradient(180deg, #e8f2ec, #e2ebe6);
  box-shadow: inset 0 1px 2px rgba(20, 40, 30, 0.06);
}
.igs-nv-chrome__view .igs-ws-ico {
  width: 13px;
  height: 13px;
  opacity: 0.88;
}
.igs-nv-chrome__view.is-on .igs-ws-ico {
  opacity: 1;
}
.igs-nv-chrome__cand {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 107, 82, 0.28);
  background: linear-gradient(180deg, #fff, #f3faf6);
  padding: 0.32rem 0.7rem;
  font-weight: 650;
  color: #145a45;
}
.igs-nv-chrome__cand:hover {
  border-color: rgba(26, 107, 82, 0.5);
  background: #eef8f2;
}
.igs-nv-chrome__refs-full-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  background: rgba(26, 107, 82, 0.1);
  border: 1px solid rgba(26, 107, 82, 0.18);
  color: #1a3d2c;
  font-weight: 650;
}

/* —— 章节卡片 —— */
.igs-nv-ch-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0.85rem;
  border: 1px solid rgba(26, 70, 55, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 247, 0.94) 55%, rgba(238, 245, 241, 0.98) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 14px rgba(20, 40, 30, 0.04);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.14s, background 0.16s;
}
.igs-nv-ch-card__glow {
  position: absolute;
  inset: auto -20% -45% 35%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(47, 155, 106, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
.igs-nv-ch-card > *:not(.igs-nv-ch-card__glow) {
  position: relative;
  z-index: 1;
}
.igs-nv-ch-card:hover {
  border-color: rgba(26, 107, 82, 0.38);
  box-shadow: 0 8px 22px rgba(20, 70, 50, 0.1);
  transform: translateY(-2px);
  background:
    linear-gradient(165deg, #fff 0%, rgba(236, 248, 241, 0.98) 100%);
}
.igs-nv-ch-card.is-active {
  border-color: #1a6b52;
  background:
    linear-gradient(160deg, rgba(232, 246, 239, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow:
    0 0 0 2px rgba(26, 107, 82, 0.16),
    0 10px 24px rgba(26, 107, 82, 0.12);
}
.igs-nv-ch-card.is-active .igs-nv-ch-card__glow {
  opacity: 1;
  background: radial-gradient(closest-side, rgba(26, 107, 82, 0.22), transparent 70%);
}
.igs-nv-ch-card__ico {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.35rem;
  background: rgba(26, 107, 82, 0.12);
  color: #1a6b52;
}
.igs-nv-ch-card__ico .igs-ws-ico {
  width: 11px;
  height: 11px;
}
.igs-nv-ch-card__heat {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(196, 120, 40, 0.12);
  color: #9a5a18;
  font-weight: 700;
}
.igs-nv-ch-card__heat .igs-ws-ico {
  width: 11px;
  height: 11px;
  color: #c47a20;
}
.igs-nv-ch-card__title {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #1a3228;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .igs-nv-ch-card__title {
    background: linear-gradient(90deg, #1a3228, #245a45);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  .igs-nv-ch-card.is-active .igs-nv-ch-card__title {
    background: linear-gradient(90deg, #0f4636, #1a6b52);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.igs-nv-ch-card__meta {
  gap: 0.4rem 0.7rem;
}
.igs-nv-ch-card__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(26, 50, 40, 0.04);
}
.igs-nv-ch-card__meta .igs-ws-ico {
  width: 11px;
  height: 11px;
  color: #3a6b58;
}
.igs-nv-ch-card.is-twin {
  border-color: rgba(26, 107, 82, 0.32);
  background:
    linear-gradient(165deg, rgba(230, 245, 238, 0.95), rgba(255, 255, 255, 0.96));
}
.igs-nv-ch-card.is-test {
  border-style: dashed;
  border-color: rgba(180, 120, 40, 0.45);
  background:
    linear-gradient(165deg, rgba(255, 248, 236, 0.96), rgba(255, 253, 248, 0.98));
}
.igs-nv-ch-card.is-test .igs-nv-ch-card__ico {
  background: rgba(196, 120, 40, 0.14);
  color: #9a5a18;
}

/* —— 资料库 —— */
.igs-nv-refs {
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(47, 155, 106, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(247, 251, 248, 0.5), transparent 40%);
}
.igs-nv-refs__list {
  background:
    linear-gradient(180deg, #f7fbf8, #fffefb);
  border-color: rgba(26, 107, 82, 0.14);
  box-shadow: 0 8px 22px rgba(20, 40, 30, 0.05);
}
.igs-nv-refs__list-hd {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.igs-nv-refs__list-hd strong {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.78rem;
  color: #1a3d2c;
  letter-spacing: 0.04em;
}
.igs-nv-refs__list-hd .igs-ws-ico {
  width: 13px;
  height: 13px;
  color: #1a6b52;
}
.igs-nv-ref-item {
  border: 1px solid rgba(26, 70, 55, 0.08);
  background: linear-gradient(180deg, #fff, #f9fcfa);
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
}
.igs-nv-ref-item:hover {
  border-color: rgba(26, 107, 82, 0.28);
  transform: translateX(1px);
}
.igs-nv-ref-item.is-on {
  border-color: rgba(26, 107, 82, 0.45);
  background: linear-gradient(135deg, rgba(232, 246, 239, 0.98), #fff);
  box-shadow: inset 3px 0 0 #1a6b52;
}
.igs-nv-ref-item span { color: #4a6356; }
.igs-nv-refs__main {
  background:
    linear-gradient(180deg, #fffefb, #fff);
  border-color: rgba(26, 107, 82, 0.14);
  box-shadow: 0 8px 24px rgba(20, 40, 30, 0.04);
}
.igs-nv-ref-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: 0.5rem auto;
  border-radius: 1rem;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(47, 155, 106, 0.1), transparent 65%),
    linear-gradient(180deg, #f5faf7, #fff);
  border: 1px dashed rgba(26, 107, 82, 0.28);
}
.igs-nv-ref-empty__badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.65rem;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  color: #f3faf6;
  box-shadow: 0 8px 18px rgba(20, 90, 70, 0.25);
}
.igs-nv-ref-empty__badge .igs-ws-ico {
  width: 1.35rem;
  height: 1.35rem;
}
.igs-nv-ref-empty h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: #1a3228;
}
.igs-nv-ref-ai {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(26, 107, 82, 0.26);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(47, 155, 106, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(236, 250, 242, 0.98), rgba(255, 253, 248, 0.95));
  box-shadow: 0 10px 28px rgba(20, 70, 50, 0.07);
}
.igs-nv-ref-ai__hd-title {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.igs-nv-ref-ai__badge {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  color: #f3faf6;
  box-shadow: 0 4px 12px rgba(20, 90, 70, 0.22);
  flex: 0 0 auto;
}
.igs-nv-ref-ai__badge .igs-ws-ico {
  width: 14px;
  height: 14px;
}
.igs-nv-ref-ai__hd-title strong {
  display: block;
  font-size: 0.95rem;
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: #123528;
}
.igs-nv-ref-ai__hd-title span {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.7rem;
  color: #4a6356;
}
.igs-nv-ref-viral {
  margin-bottom: 0;
  padding: 0.85rem 0.95rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(180, 90, 40, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 248, 240, 0.95), rgba(255, 252, 247, 0.92));
}
.igs-nv-ref-viral .igs-nv-ref-ai__badge {
  background: rgba(196, 92, 40, 0.14);
  color: #a04a22;
}
.igs-nv-ref-viral__form input[type='file'] {
  font-size: 0.78rem;
}

.igs-nv-ref-mode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0.65rem;
}
.igs-nv-ref-mode-chip {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(60, 90, 70, 0.22);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  color: #2a4a3a;
  cursor: pointer;
}
.igs-nv-ref-mode-chip.is-on {
  border-color: rgba(45, 120, 80, 0.45);
  background: rgba(220, 245, 232, 0.95);
  font-weight: 600;
  color: #1a5a38;
}
.igs-nv-ref-mode-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.igs-nv-ref-cast-brief textarea {
  width: 100%;
  min-height: 4.2rem;
  margin-bottom: 0.35rem;
}
.igs-nv-ref-cast-brief .igs-btn-ghost {
  font-size: 0.72rem;
}
.igs-nv-ref-ai__msg[data-nv-ref-analyze-msg] {
  animation: igs-nv-ref-pulse 1.2s ease-in-out infinite;
}
@keyframes igs-nv-ref-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.igs-nv-ref-image {
  margin-bottom: 0;
  padding: 0.85rem 0.95rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(45, 100, 140, 0.22);
  background:
    linear-gradient(165deg, rgba(240, 248, 255, 0.95), rgba(255, 252, 247, 0.92));
}
.igs-nv-ref-image .igs-nv-ref-ai__badge {
  background: rgba(45, 100, 140, 0.14);
  color: #2a5a7a;
}
.igs-nv-ref-image__form input[type='file'] {
  font-size: 0.78rem;
}
.igs-nv-ref-ai__preset {
  background: linear-gradient(180deg, #fff, #f4faf7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.igs-nv-ref-ai__cand {
  position: relative;
  border-radius: 0.65rem;
  border: 1px solid rgba(26, 107, 82, 0.16);
  background:
    linear-gradient(180deg, #fffefb, #f8fcfa);
  box-shadow: 0 2px 8px rgba(20, 40, 30, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.igs-nv-ref-ai__cand:hover {
  border-color: rgba(26, 107, 82, 0.35);
  box-shadow: 0 6px 16px rgba(20, 70, 50, 0.08);
}
.igs-nv-ref-ai__cand header {
  align-items: flex-start;
  gap: 0.45rem;
}
.igs-nv-ref-ai__cand-ico {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: rgba(26, 107, 82, 0.12);
  color: #1a6b52;
  flex: 0 0 auto;
}
.igs-nv-ref-ai__cand-ico .igs-ws-ico {
  width: 13px;
  height: 13px;
}
.igs-nv-ref-ai__cand header > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.igs-nv-ref-ai__go .igs-btn,
.igs-nv-ref-ai__go button {
  background: linear-gradient(135deg, #1f7a5e, #145a45);
  border-color: transparent;
  color: #f3faf6;
  box-shadow: 0 4px 12px rgba(20, 90, 70, 0.22);
}

/* —— AI 侧栏整体 —— */
.igs-nv-ai-rail {
  border-color: rgba(26, 107, 82, 0.18);
  background:
    radial-gradient(80% 40% at 0% 0%, rgba(47, 155, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #f4faf7 0%, #fffefb 38%, #fff 100%);
  box-shadow: -6px 0 24px rgba(20, 40, 30, 0.05);
}
.igs-nv-ai-rail__hd {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(244, 250, 247, 0.55));
  border-bottom-color: rgba(26, 107, 82, 0.12);
}
.igs-nv-ai-rail__badge {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, rgba(31, 122, 94, 0.18), rgba(20, 90, 70, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.igs-nv-ai-rail.is-tab-chat .igs-nv-ai-rail__badge,
.igs-nv-ai-rail.is-tab-cands .igs-nv-ai-rail__badge,
.igs-nv-ai-rail.is-tab-analysis .igs-nv-ai-rail__badge {
  box-shadow: 0 4px 12px rgba(20, 90, 70, 0.22);
}
.igs-nv-ai-rail__hd strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0.02em;
  color: #123528;
}
.igs-nv-ai-tabs {
  background: linear-gradient(180deg, #eaf4ef, #f5f9f6);
  border-bottom-color: rgba(26, 107, 82, 0.12);
}
.igs-nv-ai-tab.is-on {
  background: linear-gradient(160deg, #1f7a5e, #145a45);
  box-shadow: 0 3px 10px rgba(26, 107, 82, 0.24);
}


/* ═══════════════════════════════════════════════════════════
   换岗大屏 · 岗位说明弹窗精修 v1.0.147
   ═══════════════════════════════════════════════════════════ */

.igs-ws-role-switch-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.igs-ws-role-switch-btn__ico {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.22);
}
.igs-ws-role-switch-btn__ico .igs-ws-ico {
  width: 12px;
  height: 12px;
}
.igs-ws-role-switch-btn__go {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}
.igs-ws-role-switch-btn.is-ghost {
  border: 1px dashed rgba(26, 107, 82, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: #145a45;
}
.igs-ws-role-switch-btn.is-ghost:hover:not(:disabled) {
  border-style: solid;
  background: #eef8f2;
}

.igs-ws-switch-modal {
  position: fixed;
  inset: 0;
  z-index: 12060;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(80% 60% at 50% 20%, rgba(31, 122, 94, 0.18), transparent 55%),
    rgba(12, 22, 18, 0.52);
  backdrop-filter: blur(6px);
  animation: igs-ws-switch-in 0.18s ease-out;
}
@keyframes igs-ws-switch-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.igs-ws-switch-modal__panel {
  width: min(920px, 100%);
  max-height: min(90vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(26, 107, 82, 0.22);
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(47, 155, 106, 0.12), transparent 55%),
    linear-gradient(165deg, #f4faf7 0%, #fffefb 42%, #fff 100%);
  box-shadow:
    0 28px 64px rgba(12, 28, 22, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: igs-ws-switch-panel-in 0.22s ease-out;
}
@keyframes igs-ws-switch-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.igs-ws-switch-modal__hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(26, 107, 82, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 250, 247, 0.35));
}
.igs-ws-switch-modal__hd-main {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}
.igs-ws-switch-modal__badge {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  color: #f3faf6;
  box-shadow: 0 8px 18px rgba(20, 90, 70, 0.28);
  flex: 0 0 auto;
}
.igs-ws-switch-modal__badge .igs-ws-ico {
  width: 1.2rem;
  height: 1.2rem;
}
.igs-ws-switch-modal__hd strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  color: #123528;
}
.igs-ws-switch-modal__hd span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #4a6356;
  line-height: 1.4;
}
.igs-ws-switch-modal__hd-acts {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.igs-ws-switch-modal__x {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 999px !important;
}
.igs-ws-switch-modal__needs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  padding: 0.65rem 1.1rem 0.35rem;
  border-bottom: 1px solid rgba(26, 107, 82, 0.08);
}
.igs-ws-switch-modal__needs-lab {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1f7a5e;
  margin-right: 0.15rem;
}
.igs-ws-switch-need {
  appearance: none;
  border: 1px solid rgba(26, 107, 82, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #145a45;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.igs-ws-switch-need:hover:not(:disabled) {
  border-color: rgba(26, 107, 82, 0.45);
  background: #eef8f2;
}
.igs-ws-switch-need.is-on {
  border-color: transparent;
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  color: #f4faf7;
  box-shadow: 0 6px 14px rgba(20, 90, 70, 0.22);
}
.igs-ws-switch-modal__lanes {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.55rem 1.05rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.igs-ws-switch-lane {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.igs-ws-switch-lane__hd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.15rem 0.15rem 0;
}
.igs-ws-switch-lane__hd strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #123528;
  letter-spacing: 0.02em;
}
.igs-ws-switch-lane__hd span {
  font-size: 0.74rem;
  color: #5a7266;
  line-height: 1.35;
}
.igs-ws-switch-modal__grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
}
.igs-ws-switch-modal__grid.is-lane {
  flex: none;
  overflow: visible;
  padding: 0;
  gap: 0.55rem;
}
.igs-ws-switch-card__forbid {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #9a4a3a;
  font-weight: 600;
}
.igs-ws-agent-guide__lane {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #145a45;
  background: rgba(31, 122, 94, 0.12);
  vertical-align: middle;
}
.igs-ws-switch-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  text-align: left;
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(26, 107, 82, 0.16);
  background:
    linear-gradient(165deg, #fff 0%, #f7fbf8 100%);
  box-shadow: 0 2px 8px rgba(20, 40, 30, 0.04);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s, background 0.14s;
}
.igs-ws-switch-card:hover:not(:disabled) {
  border-color: rgba(26, 107, 82, 0.4);
  box-shadow: 0 10px 24px rgba(20, 70, 50, 0.1);
  transform: translateY(-2px);
  background: linear-gradient(165deg, #fff 0%, #eef8f2 100%);
}
.igs-ws-switch-card.is-on {
  border-color: #1a6b52;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(47, 155, 106, 0.16), transparent 55%),
    linear-gradient(165deg, #e8f6ef 0%, #fff 100%);
  box-shadow:
    0 0 0 2px rgba(26, 107, 82, 0.14),
    0 12px 28px rgba(26, 107, 82, 0.12);
}
.igs-ws-switch-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.igs-ws-switch-card__mark {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(31, 122, 94, 0.16), rgba(20, 90, 70, 0.08));
  color: #1a6b52;
  flex: 0 0 auto;
}
.igs-ws-switch-card.is-on .igs-ws-switch-card__mark {
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  color: #f3faf6;
  box-shadow: 0 4px 12px rgba(20, 90, 70, 0.22);
}
.igs-ws-switch-card__mark .igs-ws-ico {
  width: 1.1rem;
  height: 1.1rem;
}
.igs-ws-switch-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}
.igs-ws-switch-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
}
.igs-ws-switch-card__title strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1rem;
  color: #123528;
  letter-spacing: 0.01em;
}
.igs-ws-switch-card__badge {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
}
.igs-ws-switch-card__badge.is-now {
  background: #1a6b52;
  color: #f3faf6;
}
.igs-ws-switch-card__badge.is-def {
  background: rgba(196, 120, 40, 0.14);
  color: #9a5a18;
}
.igs-ws-switch-card__one {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #2a4034;
}
.igs-ws-switch-card__when {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #5a7064;
}
.igs-ws-switch-card__go {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  background: rgba(26, 107, 82, 0.08);
  color: #1a6b52;
  opacity: 0.75;
}
.igs-ws-switch-card.is-on .igs-ws-switch-card__go {
  background: rgba(26, 107, 82, 0.16);
  opacity: 1;
}
.igs-ws-switch-card__go .igs-ws-ico {
  width: 12px;
  height: 12px;
}
.igs-ws-switch-modal__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem 0.95rem;
  border-top: 1px solid rgba(26, 107, 82, 0.12);
  background: rgba(255, 255, 255, 0.55);
}
.igs-ws-switch-modal__ft p {
  margin: 0;
  font-size: 0.72rem;
  color: #5a7064;
}
@media (max-width: 720px) {
  .igs-ws-switch-modal__grid {
    grid-template-columns: 1fr;
  }
  .igs-ws-switch-modal__panel {
    max-height: 92vh;
  }
}

/* 岗位说明 / 模板弹窗放大精修 */
.igs-ws-tpl-modal {
  padding: 1.25rem;
  background:
    radial-gradient(80% 60% at 50% 18%, rgba(31, 122, 94, 0.16), transparent 55%),
    rgba(12, 22, 18, 0.5);
  backdrop-filter: blur(5px);
}
.igs-ws-tpl-modal__panel {
  width: min(1040px, 100%);
  max-height: min(90vh, 820px);
  border-radius: 1.05rem;
  background:
    radial-gradient(90% 45% at 0% 0%, rgba(47, 155, 106, 0.1), transparent 50%),
    linear-gradient(165deg, #f5faf7 0%, #fffefb 40%, #fff 100%);
  box-shadow: 0 28px 64px rgba(12, 28, 22, 0.32);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.igs-ws-tpl-modal__panel.is-guide {
  width: min(1180px, 100%);
  max-height: min(94vh, 920px);
}
.igs-ws-tpl-modal__hd {
  padding: 1rem 1.15rem 0.75rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(26, 107, 82, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 250, 247, 0.4));
}
.igs-ws-tpl-modal__hd-main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.igs-ws-tpl-modal__badge {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  color: #f3faf6;
  box-shadow: 0 6px 14px rgba(20, 90, 70, 0.24);
  flex: 0 0 auto;
}
.igs-ws-tpl-modal__badge .igs-ws-ico {
  width: 1.1rem;
  height: 1.1rem;
}
.igs-ws-tpl-modal__hd strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.12rem;
}
.igs-ws-tpl-modal__ctx,
.igs-ws-tpl-modal__tabs,
.igs-ws-agent-guide,
.igs-ws-tpl-modal__sub,
.igs-ws-tpl-modal__grid {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}
.igs-ws-tpl-modal__ctx {
  margin-top: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(26, 107, 82, 0.07);
  border: 1px solid rgba(26, 107, 82, 0.12);
}
.igs-ws-tpl-modal__tabs {
  gap: 0.4rem;
  padding: 0.15rem 0 0.25rem;
}
.igs-ws-tpl-modal__tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 999px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.igs-ws-tpl-modal__tab.is-on {
  background: linear-gradient(145deg, #1f7a5e, #145a45);
  border-color: transparent;
  color: #f3faf6;
  box-shadow: 0 3px 10px rgba(20, 90, 70, 0.22);
}
.igs-ws-tpl-modal__grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.7rem;
  padding-bottom: 1.1rem;
  overflow: auto;
}
.igs-ws-tpl-modal__card {
  border-radius: 0.8rem;
  border-color: rgba(26, 107, 82, 0.16);
  background: linear-gradient(180deg, #fff, #f8fcfa);
  box-shadow: 0 2px 8px rgba(20, 40, 30, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.igs-ws-tpl-modal__card:hover {
  border-color: rgba(26, 107, 82, 0.35);
  box-shadow: 0 8px 20px rgba(20, 70, 50, 0.08);
  transform: translateY(-1px);
}
.igs-ws-agent-guide {
  border-radius: 0.85rem;
  box-shadow: 0 4px 14px rgba(20, 40, 30, 0.04);
}
.igs-ws-agent-guide__lead {
  font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════════════════
   视口密度适配 · 电脑分辨率阶梯（布局结构不变）v1.0.150
   data-igs-vp: laptop | hd | fhd | qhd | uw | compact（矮窗）
   ═══════════════════════════════════════════════════════════ */

html[data-igs-vp='fhd'],
html[data-igs-vp='hd'],
html[data-igs-vp='laptop'],
html[data-igs-vp='compact'] {
  --igs-density-pad: 0.92;
}
html[data-igs-vp='qhd'],
html[data-igs-vp='uw'] {
  --igs-density-pad: 1;
}

/* —— FHD ~1920：略收顶栏/弹窗 —— */
html[data-igs-vp='fhd'] .igs-nv-chrome {
  padding: 0.45rem 0.7rem;
  gap: 0.45rem 0.65rem;
}
html[data-igs-vp='fhd'] .igs-nv-chrome__titles strong {
  font-size: 1rem;
}
html[data-igs-vp='fhd'] .igs-nv-chrome__mark {
  width: 2.1rem;
  height: 2.1rem;
}

/* —— HD / 笔记本宽（≤1600 或矮屏）—— */
html[data-igs-vp='hd'] .igs-nv-chrome,
html[data-igs-vp='laptop'] .igs-nv-chrome,
html[data-igs-vp='compact'] .igs-nv-chrome {
  padding: 0.38rem 0.55rem;
  gap: 0.35rem 0.5rem;
}
html[data-igs-vp='hd'] .igs-nv-chrome__titles strong,
html[data-igs-vp='laptop'] .igs-nv-chrome__titles strong,
html[data-igs-vp='compact'] .igs-nv-chrome__titles strong {
  font-size: 0.95rem;
}
html[data-igs-vp='hd'] .igs-nv-chrome__mark,
html[data-igs-vp='laptop'] .igs-nv-chrome__mark,
html[data-igs-vp='compact'] .igs-nv-chrome__mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.55rem;
}
html[data-igs-vp='hd'] .igs-nv-chrome__view,
html[data-igs-vp='laptop'] .igs-nv-chrome__view,
html[data-igs-vp='compact'] .igs-nv-chrome__view {
  padding: 0.28rem 0.65rem;
  font-size: 0.76rem;
}
html[data-igs-vp='hd'] .igs-nv-chrome__ico,
html[data-igs-vp='laptop'] .igs-nv-chrome__ico,
html[data-igs-vp='compact'] .igs-nv-chrome__ico {
  width: 1.75rem;
  height: 1.75rem;
}
html[data-igs-vp='hd'] .igs-nv-chrome__ico.has-lab,
html[data-igs-vp='laptop'] .igs-nv-chrome__ico.has-lab,
html[data-igs-vp='compact'] .igs-nv-chrome__ico.has-lab {
  width: auto !important;
  height: auto !important;
  min-height: 1.75rem;
  min-width: 1.75rem;
}
html[data-igs-vp='hd'] .igs-nv-ai-rail,
html[data-igs-vp='laptop'] .igs-nv-ai-rail,
html[data-igs-vp='compact'] .igs-nv-ai-rail {
  min-width: 17.5rem;
}
html[data-igs-vp='hd'] .igs-nv-ai-rail__hd,
html[data-igs-vp='laptop'] .igs-nv-ai-rail__hd,
html[data-igs-vp='compact'] .igs-nv-ai-rail__hd {
  padding: 0.5rem 0.65rem 0.35rem;
}
html[data-igs-vp='hd'] .igs-nv-ai-rail__hd strong,
html[data-igs-vp='laptop'] .igs-nv-ai-rail__hd strong,
html[data-igs-vp='compact'] .igs-nv-ai-rail__hd strong {
  font-size: 0.88rem;
}
html[data-igs-vp='hd'] .igs-nv-ai-tab,
html[data-igs-vp='laptop'] .igs-nv-ai-tab,
html[data-igs-vp='compact'] .igs-nv-ai-tab {
  padding: 0.3rem 0.2rem;
  font-size: 0.7rem;
}
html[data-igs-vp='hd'] .igs-ws-bar__log,
html[data-igs-vp='laptop'] .igs-ws-bar__log,
html[data-igs-vp='compact'] .igs-ws-bar__log,
html[data-igs-vp='hd'] .igs-nv-ai-rail .igs-ws-bar__log,
html[data-igs-vp='laptop'] .igs-nv-ai-rail .igs-ws-bar__log,
html[data-igs-vp='compact'] .igs-nv-ai-rail .igs-ws-bar__log {
  min-height: 10rem;
}
html[data-igs-vp='hd'] .igs-nv-ch-card,
html[data-igs-vp='laptop'] .igs-nv-ch-card,
html[data-igs-vp='compact'] .igs-nv-ch-card {
  padding: 0.55rem 0.65rem;
  gap: 0.28rem;
}
html[data-igs-vp='hd'] .igs-nv-ch-card__title,
html[data-igs-vp='laptop'] .igs-nv-ch-card__title,
html[data-igs-vp='compact'] .igs-nv-ch-card__title {
  font-size: 0.9rem;
}

/* 换岗 / 岗位说明弹窗：矮屏吃满可视，不改双列结构（仅收 padding） */
html[data-igs-vp='hd'] .igs-ws-switch-modal,
html[data-igs-vp='laptop'] .igs-ws-switch-modal,
html[data-igs-vp='compact'] .igs-ws-switch-modal,
html[data-igs-vp='hd'] .igs-ws-tpl-modal,
html[data-igs-vp='laptop'] .igs-ws-tpl-modal,
html[data-igs-vp='compact'] .igs-ws-tpl-modal {
  padding: 0.65rem;
}
html[data-igs-vp='hd'] .igs-ws-switch-modal__panel,
html[data-igs-vp='laptop'] .igs-ws-switch-modal__panel,
html[data-igs-vp='compact'] .igs-ws-switch-modal__panel {
  width: min(860px, 100%);
  max-height: min(92vh, 700px);
  border-radius: 0.95rem;
}
html[data-igs-vp='hd'] .igs-ws-switch-modal__hd,
html[data-igs-vp='laptop'] .igs-ws-switch-modal__hd,
html[data-igs-vp='compact'] .igs-ws-switch-modal__hd {
  padding: 0.75rem 0.85rem 0.55rem;
}
html[data-igs-vp='hd'] .igs-ws-switch-modal__hd strong,
html[data-igs-vp='laptop'] .igs-ws-switch-modal__hd strong,
html[data-igs-vp='compact'] .igs-ws-switch-modal__hd strong {
  font-size: 1.05rem;
}
html[data-igs-vp='hd'] .igs-ws-switch-modal__grid,
html[data-igs-vp='laptop'] .igs-ws-switch-modal__grid,
html[data-igs-vp='compact'] .igs-ws-switch-modal__grid {
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
}
html[data-igs-vp='hd'] .igs-ws-switch-card,
html[data-igs-vp='laptop'] .igs-ws-switch-card,
html[data-igs-vp='compact'] .igs-ws-switch-card {
  padding: 0.65rem 0.7rem;
  gap: 0.5rem;
}
html[data-igs-vp='hd'] .igs-ws-switch-card__one,
html[data-igs-vp='laptop'] .igs-ws-switch-card__one,
html[data-igs-vp='compact'] .igs-ws-switch-card__one {
  font-size: 0.74rem;
  line-height: 1.4;
}
html[data-igs-vp='hd'] .igs-ws-switch-card__when,
html[data-igs-vp='laptop'] .igs-ws-switch-card__when,
html[data-igs-vp='compact'] .igs-ws-switch-card__when {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-igs-vp='hd'] .igs-ws-tpl-modal__panel,
html[data-igs-vp='laptop'] .igs-ws-tpl-modal__panel,
html[data-igs-vp='compact'] .igs-ws-tpl-modal__panel {
  width: min(960px, 100%);
  max-height: min(92vh, 740px);
}
html[data-igs-vp='hd'] .igs-ws-tpl-modal__panel.is-guide,
html[data-igs-vp='laptop'] .igs-ws-tpl-modal__panel.is-guide,
html[data-igs-vp='compact'] .igs-ws-tpl-modal__panel.is-guide {
  width: min(1040px, 100%);
  max-height: min(94vh, 780px);
}
html[data-igs-vp='hd'] .igs-ws-tpl-modal__hd,
html[data-igs-vp='laptop'] .igs-ws-tpl-modal__hd,
html[data-igs-vp='compact'] .igs-ws-tpl-modal__hd {
  padding: 0.75rem 0.85rem 0.55rem;
}
html[data-igs-vp='hd'] .igs-ws-agent-guide,
html[data-igs-vp='laptop'] .igs-ws-agent-guide,
html[data-igs-vp='compact'] .igs-ws-agent-guide {
  padding: 0.55rem 0.65rem;
  margin-top: 0.4rem;
}
html[data-igs-vp='hd'] .igs-ws-tpl-modal__grid,
html[data-igs-vp='laptop'] .igs-ws-tpl-modal__grid,
html[data-igs-vp='compact'] .igs-ws-tpl-modal__grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.5rem;
  padding-bottom: 0.85rem;
}

/* compact：更矮/更窄（常见 1366×768 / 1080 缩放后） */
html[data-igs-vp='compact'] .igs-ws-switch-modal__badge,
html[data-igs-vp='compact'] .igs-ws-tpl-modal__badge {
  width: 2rem;
  height: 2rem;
}
html[data-igs-vp='compact'] .igs-nv-refs {
  min-height: 0;
  padding: 0.35rem 0.5rem 0.65rem;
}
html[data-igs-vp='compact'] .igs-nv-studio.is-refs-full .igs-nv-refs,
html[data-igs-vp='compact'] .igs-nv-studio.igs-nv-studio--novelRefs .igs-nv-refs {
  min-height: calc(100vh - 6.2rem);
}

/* 无 JS 时的媒体回退（布局同样不改） */
@media (max-width: 1600px), (max-height: 900px) {
  :root {
    --igs-ws-rail: var(--igs-ws-rail-user, clamp(17.5rem, 28vw, 23rem));
    --igs-chat-side-w: var(--igs-chat-side-user, clamp(17.5rem, 28vw, 23rem));
  }
  .igs-nv-chrome {
    padding: 0.4rem 0.6rem;
  }
  .igs-ws-switch-modal,
  .igs-ws-tpl-modal {
    padding: 0.75rem;
  }
  .igs-ws-switch-modal__panel {
    max-height: min(92vh, 720px);
  }
  .igs-ws-tpl-modal__panel.is-guide {
    max-height: min(94vh, 800px);
  }
}
@media (max-width: 1366px), (max-height: 800px) {
  :root {
    --igs-ws-rail: var(--igs-ws-rail-user, clamp(17.5rem, 32vw, 21rem));
  }
  .igs-nv-ai-rail {
    min-width: 17.5rem;
  }
  .igs-nv-ai-rail .igs-ws-bar__log {
    min-height: 9rem;
  }
  .igs-ws-switch-card__when {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 1280px) and (min-width: 961px) {
  /* 仍双栏：舞台优先，侧栏按变量 */
  .igs-nv-studio.is-ai-open .igs-nv-studio__body {
    gap: 0.45rem;
  }
}
@media (max-height: 900px) {
  .igs-ws-switch-modal__ft {
    padding: 0.5rem 0.85rem 0.65rem;
  }
  .igs-ws-agent-guide__ex pre {
    max-height: 6rem;
    overflow: auto;
  }
}


/* —— 大窗搜索（草稿/AI结果） —— */
.igs-modal-search {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid rgba(26, 50, 40, 0.1);
  background: linear-gradient(180deg, #f4faf7, #fffef9);
}
.igs-modal-search[hidden] { display: none !important; }
.igs-modal-search__lab {
  font-size: 0.68rem;
  font-weight: 750;
  color: #145a45;
  letter-spacing: 0.04em;
}
.igs-modal-search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 8rem;
  border: 1px solid rgba(26, 107, 82, 0.28);
  border-radius: 0.55rem;
  padding: 0.32rem 0.6rem;
  font: inherit;
  font-size: 0.86rem;
  background: #fff;
  color: #1c2420;
}
.igs-modal-search input[type="search"]:focus {
  outline: 2px solid rgba(26, 107, 82, 0.28);
  border-color: rgba(26, 107, 82, 0.45);
}
.igs-modal-search__count {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 650;
  color: #5a6a62;
  min-width: 3.5rem;
}
mark.igs-pm-hit {
  background: rgba(255, 214, 102, 0.85);
  color: inherit;
  padding: 0 0.08em;
  border-radius: 0.15rem;
}
mark.igs-pm-hit.is-current {
  background: #1a6b52;
  color: #f3faf6;
  box-shadow: 0 0 0 2px rgba(26, 107, 82, 0.25);
}

