/* RRP Console 커스텀 스타일 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0e14; }
::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a5568; }

.card {
  background: #10151f;
  border: 1px solid #2d3748;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #63b3ed;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #2d3748;
  padding-bottom: 0.4rem;
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-feasible { background: #22543d; color: #9ae6b4; }
.badge-partial  { background: #744210; color: #fbd38d; }
.badge-infeasible { background: #742a2a; color: #feb2b2; }
.badge-clarify { background: #44337a; color: #d6bcfa; }

.blink { animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.progress-track {
  width: 100%;
  height: 8px;
  background: #1a202c;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2f855a, #34d399);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-bar.orch-bar {
  background: linear-gradient(90deg, #6b46c1, #a78bfa);
}

pre.prompt-box {
  background: #0a0e14;
  border: 1px dashed #4a5568;
  border-radius: 0.4rem;
  padding: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  color: #cbd5e0;
  max-height: 360px;
  overflow-y: auto;
}
table.spec-table { width: 100%; font-size: 0.8rem; }
table.spec-table td { padding: 0.3rem 0.5rem; border-bottom: 1px solid #1a202c; }
table.spec-table td:first-child { color: #718096; width: 30%; }

/* 오케스트레이션 */
.tier-chip {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid;
}
.tier-s { background: #1c3a2a; color: #9ae6b4; border-color: #2f855a; }
.tier-a { background: #1a3540; color: #90cdf4; border-color: #2c7a9c; }
.tier-x { background: #2d2440; color: #d6bcfa; border-color: #6b46c1; }

.orch-module {
  background: #0c1119;
  border: 1px solid #232b38;
  border-left: 3px solid #4a5568;
  border-radius: 0.4rem;
  padding: 0.8rem;
  margin-bottom: 0.8rem;
}
.orch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .orch-grid { grid-template-columns: 1fr; } }
.sub-title { font-size: 0.7rem; font-weight: 700; color: #a0aec0; margin-bottom: 0.3rem; }
.deliv-chip {
  display: inline-block;
  background: #1a202c;
  border: 1px solid #2d3748;
  border-radius: 0.3rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  color: #cbd5e0;
}
.tc-item {
  background: #0a0e14;
  border: 1px solid #1f2733;
  border-radius: 0.3rem;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  color: #cbd5e0;
}
.harness-box {
  background: #0a0e14;
  border: 1px dashed #4a5568;
  border-radius: 0.3rem;
  padding: 0.5rem 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: #a0aec0;
}
.harness-box b { color: #718096; display: inline-block; min-width: 70px; }

/* 블록3: 내보내기 버튼 */
.export-btn {
  background: #131a24;
  border: 1px solid #2d3748;
  color: #63b3ed;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.export-btn:hover {
  background: #1a2332;
  border-color: #4299e1;
  color: #90cdf4;
}

/* ===================== 블록A: 고객 검수 공유 모달 + 대시보드 ===================== */
.share-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 200; overflow-y: auto;
}
.share-modal-backdrop.hidden { display: none; }
.share-modal {
  background: #161b22; border: 1px solid #2a3140; border-radius: 12px;
  width: 100%; max-width: 520px; padding: 20px;
}
.share-input {
  background: #1c2230; border: 1px solid #2a3140; border-radius: 8px;
  color: #e6edf3; padding: 9px 11px; width: 100%; outline: none; font-size: 14px;
}
.share-input:focus { border-color: #58a6ff; }
.share-input.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; }
.share-btn {
  background: #58a6ff; color: #0b1220; font-weight: 700; border: none;
  border-radius: 8px; padding: 10px 16px; cursor: pointer; transition: filter .15s;
}
.share-btn:hover { filter: brightness(1.08); }
.share-btn:disabled { opacity: .5; cursor: not-allowed; }
.share-btn-ghost {
  background: transparent; border: 1px solid #2a3140; color: #8b949e;
  border-radius: 8px; padding: 9px 14px; cursor: pointer; transition: all .15s;
}
.share-btn-ghost:hover { border-color: #58a6ff; color: #58a6ff; }
.share-divider { height: 1px; background: #2a3140; margin: 16px 0; }
.share-issued { background: #0f1622; border: 1px solid #1f6f3f; border-radius: 8px; padding: 12px; }
.copy-row { display: flex; gap: 6px; }
.copy-btn {
  background: #1c2230; border: 1px solid #2a3140; color: #8b949e;
  border-radius: 8px; padding: 0 12px; cursor: pointer; transition: all .15s;
}
.copy-btn:hover { border-color: #58a6ff; color: #58a6ff; }

.dash-stat {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12px;
}
.dash-stat.green { background: rgba(126,231,135,.15); color: #7ee787; }
.dash-stat.warn  { background: rgba(240,160,32,.15);  color: #f0a020; }
.dash-stat.red   { background: rgba(248,81,73,.15);   color: #f85149; }
.dash-stat.gray  { background: rgba(139,148,158,.15); color: #8b949e; }
.dash-list { max-height: 320px; overflow-y: auto; }
.dash-cmt {
  background: #1c2230; border: 1px solid #2a3140; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px;
}
.dash-cmt.resolved { opacity: .55; }
.resolve-btn {
  background: transparent; border: 1px solid #2a3140; color: #8b949e;
  border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.resolve-btn:hover { border-color: #7ee787; color: #7ee787; }
.resolve-btn.done { border-color: #f0a020; color: #f0a020; }

/* ===== 블록1+3: 개선버전 생성 + 버전 계보 타임라인 ===== */
.improve-box {
  background: rgba(107,70,193,.08);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.improve-btn {
  background: linear-gradient(90deg, #6b46c1, #a78bfa);
  color: #fff; border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: opacity .15s, filter .15s;
}
.improve-btn:hover:not(:disabled) { filter: brightness(1.12); }
.improve-btn:disabled { opacity: .4; cursor: not-allowed; }

.ver-timeline {
  border: 1px solid #2a3140; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 12px; background: rgba(13,17,23,.4);
}
.ver-title { font-size: 12px; color: #a78bfa; font-weight: 600; margin-bottom: 8px; }
.ver-node { position: relative; padding-left: 18px; padding-bottom: 10px; }
.ver-node:last-child { padding-bottom: 0; }
.ver-node::before {
  content: ''; position: absolute; left: 4px; top: 12px; bottom: -2px;
  width: 1px; background: #2a3140;
}
.ver-node:last-child::before { display: none; }
.ver-dot {
  position: absolute; left: 0; top: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: #2a3140; border: 1px solid #3a4350;
}
.ver-node.latest .ver-dot { background: #a78bfa; border-color: #c4b5fd; box-shadow: 0 0 6px rgba(167,139,250,.6); }
.ver-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.ver-tag { color: #e6edf3; font-weight: 700; }
.ver-now { background: rgba(167,139,250,.2); color: #c4b5fd; border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 600; }
.ver-metric { color: #7ee787; }
.ver-when { color: #6b7280; margin-left: auto; font-size: 11px; }
.ver-note { font-size: 12px; color: #9da7b3; margin-top: 2px; }
