/* OPC 工作区 + Gate 进度 UI（pan 页 Tab 扩展，不影响网盘检索） */
.pan-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pan-mode-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 208, 0.25);
  background: rgba(0, 0, 0, 0.2);
  color: #94a3b8;
  font-size: 0.88rem;
  cursor: pointer;
}
.pan-mode-tab--active {
  color: #0a0e1a;
  background: #00ffd0;
  border-color: #00ffd0;
  font-weight: 600;
}
.is-hidden { display: none !important; }

.opc-ws-head { margin-bottom: 14px; }
.opc-ws-title { margin: 0 0 6px; font-size: 1.35rem; color: #00ffd0; }
.opc-ws-desc { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #94a3b8; }
.opc-ws-desc strong { color: #cbd5e1; }
.opc-ws-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.opc-ws-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 208, 0.3);
  background: rgba(0, 255, 208, 0.08);
  color: #eaf6fb;
  cursor: pointer;
  font-size: 0.86rem;
}
.opc-ws-btn--primary { background: rgba(0, 255, 208, 0.2); color: #00ffd0; font-weight: 600; }
.opc-ws-btn--sm { padding: 5px 10px; font-size: 0.8rem; }
.opc-ws-btn:hover { border-color: #00ffd0; }
.opc-ws-btn--link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.opc-ws-links {
  margin: 8px 0 0;
  font-size: 0.82rem;
}
.opc-ws-links a { color: #7dd3fc; margin-right: 8px; }
.opc-ws-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  min-height: 420px;
}
@media (max-width: 720px) {
  .opc-ws-layout { grid-template-columns: 1fr; }
}
.opc-ws-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opc-ws-file {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.82rem;
}
.opc-ws-file--active {
  border-color: rgba(0, 255, 208, 0.5);
  background: rgba(0, 255, 208, 0.12);
}
.opc-ws-file-name { flex: 1; word-break: break-all; }
.opc-ws-file-badge {
  font-size: 0.68rem;
  color: #00ffd0;
  border: 1px solid rgba(0, 255, 208, 0.35);
  border-radius: 999px;
  padding: 1px 6px;
}
.opc-ws-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.opc-ws-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.opc-ws-editor-head span { color: #00ffd0; font-weight: 600; font-size: 0.9rem; }
.opc-ws-editor-btns { display: flex; gap: 6px; }
.opc-ws-textarea {
  flex: 1;
  min-height: 280px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  resize: vertical;
}
.opc-ws-gate-panel { margin-top: 4px; }
.opc-ws-toast {
  margin: 0;
  font-size: 0.82rem;
  color: #00ffd0;
}

/* Gate 进度卡片（通用） */
.opc-gate-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.opc-gate-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.opc-gate-card-title { font-size: 0.88rem; font-weight: 600; color: #c4b5fd; }
.opc-gate-card-pct { font-size: 0.82rem; color: #00ffd0; font-weight: 700; }
.opc-gate-card-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.opc-gate-card-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #00ffd0);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.opc-gate-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.opc-gate-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}
.opc-gate-item:last-child { border-bottom: none; }
.opc-gate-item--done .opc-gate-item-label { color: #86efac; }
.opc-gate-item-label { color: #cbd5e1; }
.opc-gate-item-stat { color: #94a3b8; font-variant-numeric: tabular-nums; }
.opc-gate-item-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.opc-gate-item-bar div {
  height: 100%;
  background: rgba(0, 255, 208, 0.55);
  border-radius: 999px;
}

.opc-ws-interview-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
}
.opc-ws-interview-title { margin: 0 0 6px; font-size: 0.95rem; color: #e2e8f0; }
.opc-ws-interview-desc { margin: 0 0 10px; font-size: 0.78rem; color: #94a3b8; }
.opc-ws-interview-form { display: grid; gap: 8px; margin-bottom: 10px; }
.opc-ws-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
  font-size: 0.82rem;
}
.opc-ws-input--area { resize: vertical; min-height: 56px; }
.opc-ws-interview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.opc-ws-interview-list li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.opc-ws-interview-empty { color: #64748b; }
