/**
 * 制作台 · L5 峰组胶片 + P3 关系射线（P-css-i：卫星压线，去掉误入块）
 */

 * 制作台 · L5 峰组胶片 + P3 关系射线（P-css-g：从 ink-gag-studio.css 切出）
 * 加载：主 CSS / hub-cmd 之后。
 */

/* L5 峰组胶片 */
.igs-pl-film-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}
.igs-pl-film-head b { font-family: "Noto Serif SC", serif; font-size: 1rem; }
.igs-pl-film-head span { display: block; font-size: 0.72rem; color: var(--igs-muted); margin-top: 0.15rem; }
.igs-pl-film-schemes { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.igs-pl-film-schemes button {
  border: 1px solid var(--igs-line);
  background: transparent;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.igs-pl-film-schemes 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-film-leg {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  margin: 0.35rem 0 0.65rem;
  color: var(--igs-muted);
}
.igs-pl-film-leg span::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: -1px;
  border: 1px solid var(--igs-line);
}
.igs-pl-film-leg .bridge-empty::before { background: #e8e0d4; }
.igs-pl-film-leg .bridge-draft::before { background: #c9a227; }
.igs-pl-film-leg .bridge-shot::before { background: var(--igs-accent); }
.igs-pl-film-leg .bridge-lock::before { background: #3d5a80; }
.igs-pl-film-peak {
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem 0.7rem;
  margin-bottom: 0.55rem;
  background: #fff;
}
.igs-pl-film-peak.is-dim { opacity: 0.42; }
.igs-pl-film-peak header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.igs-pl-film-peak header strong { font-family: "Noto Serif SC", serif; }
.igs-pl-film-peak header span { font-size: 0.72rem; color: var(--igs-muted); }
.igs-pl-film-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0.1rem 0.45rem;
  scroll-snap-type: x proximity;
}
.igs-pl-film-card {
  flex: 0 0 7.2rem;
  scroll-snap-align: start;
  border: 1px solid var(--igs-line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 0.35rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.igs-pl-film-card.on { box-shadow: inset 0 0 0 2px var(--igs-accent); }
.igs-pl-film-card.is-trans { border-style: dashed; background: #f7f1e6; }
.igs-pl-film-card.bridge-empty { opacity: 0.72; }
.igs-pl-film-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #ebe3d6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.igs-pl-film-thumb img { width: 100%; height: 100%; object-fit: cover; }
.igs-pl-film-ph {
  font-size: 0.78rem;
  font-weight: 800;
  color: #8a7e6c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.igs-pl-bridge {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #e8e0d4;
}
.bridge-draft .igs-pl-bridge { background: #c9a227; }
.bridge-shot .igs-pl-bridge { background: var(--igs-accent); }
.bridge-lock .igs-pl-bridge { background: #3d5a80; }
.bridge-empty .igs-pl-bridge { background: #c4b8a8; }
.igs-pl-film-card em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--igs-accent);
  font-weight: 700;
}
.igs-pl-film-card b {
  font-size: 0.72rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.igs-pl-film-card span { font-size: 0.62rem; color: var(--igs-muted); }
.igs-pl-film-bridge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.55rem;
  padding: 0.35rem 0.5rem;
  border-left: 3px dashed #c9a227;
  color: var(--igs-muted);
  font-size: 0.72rem;
}
.igs-pl-film-bridge.empty { border-left-color: #c4b8a8; opacity: 0.75; }
.igs-pl-film-bridge .igs-pl-film-card { flex-basis: 6.4rem; }
.igs-pl-film-orphan {
  border: 1px dashed var(--igs-line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  margin-top: 0.35rem;
  background: #faf6ef;
}
.igs-pl-film-orphan header {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.igs-pl-film-orphan header span { font-size: 0.72rem; color: var(--igs-muted); }

/* P3 关系射线 / 断链 */
.igs-pl-ray-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
.igs-pl-ray-head b { font-family: "Noto Serif SC", serif; font-size: 1rem; }
.igs-pl-ray-head span { display: block; font-size: 0.72rem; color: var(--igs-muted); margin-top: 0.15rem; }
.igs-pl-ray-stage {
  border: 1px solid var(--igs-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #faf6ef 0%, #fffdf8 48%, #f3ebe0 100%);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.igs-pl-ray-up, .igs-pl-ray-down { text-align: center; }
.igs-pl-ray-up > em, .igs-pl-ray-down > em, .igs-pl-ray-side > em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--igs-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.igs-pl-ray-mid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin: 0.65rem 0;
}
@media (max-width: 900px) {
  .igs-pl-ray-mid { grid-template-columns: 1fr; }
}
.igs-pl-ray-hub {
  border: 2px solid var(--igs-accent);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem 0.85rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(20, 32, 28, 0.06);
}
.igs-pl-ray-hub strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 1.05rem;
  line-height: 1.3;
}
.igs-pl-ray-hub small { display: block; color: var(--igs-muted); font-size: 0.72rem; margin: 0.25rem 0 0.45rem; }
.igs-pl-ray-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}
.igs-pl-ray-side .igs-pl-ray-chips { justify-content: flex-start; }
.igs-pl-ray-chip {
  border: 1px solid var(--igs-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.igs-pl-ray-chip.static { cursor: default; background: #f3ebe0; }
.igs-pl-ray-chip.on { border-color: var(--igs-accent); background: color-mix(in srgb, var(--igs-accent) 12%, transparent); }
.igs-pl-ray-chip.warn, .igs-pl-ray-chip.yellow { border-color: #c9a227; color: #7a5d10; }
.igs-pl-ray-chip.red, .igs-pl-ray-chip.bad { border-color: #c45c28; color: #8a3418; }
.igs-pl-ray-chip.ok { border-color: var(--igs-accent); color: var(--igs-accent); }
.igs-pl-ray-chip.edge-pull { border-color: #5b7c99; }
.igs-pl-ray-chip.edge-schedule { border-color: var(--igs-accent); }
.igs-pl-ray-chip.edge-fulfill { border-color: #b0793a; }
.igs-pl-ray-chip.edge-cut { border-color: #6b5b95; }
.igs-pl-ray-chip.bridge-empty { opacity: 0.65; border-style: dashed; }
.igs-pl-ray-stat {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--igs-muted);
  padding: 0.15rem 0.4rem;
}
.igs-pl-ray-stat.warn { color: #8a6b1a; }
.igs-pl-ray-stat.bad { color: #c45c28; font-weight: 700; }
.igs-pl-ray-stat.ok { color: var(--igs-accent); }
.igs-pl-ray-arrow {
  text-align: center;
  font-size: 0.72rem;
  color: var(--igs-muted);
  margin: 0.35rem 0;
}
.igs-pl-ray-down-block { margin-bottom: 0.35rem; }
.igs-pl-ray-down-block > em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--igs-muted);
  margin-bottom: 0.25rem;
}
.igs-pl-ray-breaks h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--igs-muted);
}
.igs-pl-ray-breaks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-height: 280px;
  overflow: auto;
}
.igs-pl-break-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--igs-line);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
}
.igs-pl-break-item em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--igs-accent);
  letter-spacing: 0.04em;
}
.sev-red .igs-pl-break-item { border-left: 3px solid #c45c28; }
.sev-yellow .igs-pl-break-item { border-left: 3px solid #c9a227; }
.igs-pl-break-item b { font-size: 0.8rem; line-height: 1.35; }
.igs-pl-break-item span { font-size: 0.7rem; color: var(--igs-muted); }

/* 通表在线编辑 */
.igs-pl-matrix-hint { margin: 0 0 0.45rem; }
.igs-pl-slate-edit {
  border: 1px solid var(--igs-line);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.65rem 0.7rem;
  margin-bottom: 0.65rem;
  display: grid;
  gap: 0.4rem;
}
.igs-pl-slate-edit h4 {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: var(--igs-muted);
}
.igs-pl-slate-edit h4 small.warn { color: #c45c28; font-weight: 600; margin-left: 0.35rem; }
.igs-pl-slate-edit label {
  display: grid;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--igs-muted);
  font-weight: 600;
}
.igs-pl-slate-edit input,
.igs-pl-slate-edit textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--igs-line);
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  color: #2a241c;
  background: #fffdf8;
}
.igs-pl-slate-edit textarea { resize: vertical; min-height: 2.6rem; line-height: 1.4; }
.igs-pl-slate-edit input[readonly],
.igs-pl-slate-edit textarea[readonly] {
  background: #f3ebe0;
  color: #6a645a;
}
.igs-pl-slate-edit input[type="number"] { max-width: 6.5rem; }
.igs-pl-spec-list {
  border-top: 1px dashed var(--igs-line);
  padding-top: 0.45rem;
  margin-top: 0.15rem;
  display: grid;
  gap: 0.35rem;
}
.igs-pl-spec-list h5 {
  margin: 0;
  font-size: 0.72rem;
  color: var(--igs-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.igs-pl-spec-card {
  border: 1px solid var(--igs-line);
  border-radius: 8px;
  background: #faf6ef;
  padding: 0.35rem 0.5rem 0.55rem;
}
.igs-pl-spec-card summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--igs-accent);
  list-style: none;
}
.igs-pl-spec-card summary::-webkit-details-marker { display: none; }
.igs-pl-spec-card summary em {
  font-style: normal;
  font-weight: 500;
  color: var(--igs-muted);
  font-size: 0.68rem;
  margin-left: 0.35rem;
}
.igs-pl-spec-card[open] summary { margin-bottom: 0.35rem; }
.igs-pl-spec-card label { margin-top: 0.3rem; }
.igs-pl-spec-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}
@media (max-width: 900px) {
  .igs-pl-spec-roles { grid-template-columns: 1fr; }
}

