/* ──────────────────────────────────────────────────────────
   아이템 상세 도감 · 성좌 스탯 공식 · 다이스 보정치 분석 전용 스타일
   ────────────────────────────────────────────────────────── */

.stat-bonus-inline {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.12);
  border: 1px solid rgba(243, 201, 105, 0.25);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.inv-chip-btn {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.inv-chip-btn:hover {
  border-color: var(--border-gold);
  background: rgba(243, 201, 105, 0.1);
}

.inv-chip-btn.active {
  border-color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.16);
  box-shadow: 0 0 0 1px rgba(243, 201, 105, 0.25);
}

.inv-effect-mini {
  font-style: normal;
  font-size: 10.5px;
  color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.inspectable-item-chip {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inspectable-item-chip:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.inspectable-item-chip.active {
  border-color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.18);
  color: var(--text-main);
}

.inspector-micro-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 5px;
}

.entity-item-detail-slot {
  margin-top: 8px;
}

.inspector-detail-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(12, 14, 22, 0.92);
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inspector-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.inspector-card-head strong {
  font-size: 13px;
  color: var(--text-main);
}

.inspector-grade-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.14);
  border: 1px solid rgba(243, 201, 105, 0.28);
  margin-right: 5px;
}

.inspector-grade-badge.grade-relic {
  color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.35);
}

.inspector-close-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
}

.inspector-close-btn:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

.inspector-bonus-line {
  font-size: 11.5px;
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
}

.inspector-bonus-line strong {
  color: var(--text-main);
  font-weight: 600;
}

.inspector-desc-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.52;
}

.inspector-usage-foot {
  font-size: 11px;
  color: var(--accent-gold);
  padding-top: 4px;
  border-top: 1px dashed var(--border-subtle);
}

/* ── 상태 시트 내 다이스 보정치 분석 박스 ── */
.dice-modifier-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dice-mod-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.dice-mod-summary-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mod-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.mod-pill strong {
  color: inherit;
  font-weight: 700;
}

.mod-pill em {
  font-style: normal;
  color: var(--accent-crimson);
}

.mod-pill.tone-emerald {
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.09);
}

.mod-pill.tone-crimson {
  color: var(--accent-crimson);
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.09);
}

.dice-mod-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dice-mod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.dice-mod-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dice-mod-left strong {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.dice-mod-left span {
  font-size: 10.5px;
  color: var(--text-dim);
}

.dice-mod-val {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  min-width: 32px;
  text-align: center;
}

.dice-mod-val.pos {
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.12);
}

.dice-mod-val.neg {
  color: var(--accent-crimson);
  background: rgba(251, 113, 133, 0.12);
}

.dice-mod-val.zero {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

/* ── 1:1 캐릭터 챗 컴포저 실시간 보정치 프리뷰 바 ── */
.composer-mod-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.composer-mod-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  background: rgba(243, 201, 105, 0.07);
  border: 1px solid rgba(243, 201, 105, 0.2);
  color: var(--text-muted);
}

.composer-mod-bar strong {
  color: var(--accent-gold);
}

.cmod-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cmod-total,
.cmod-dc {
  white-space: nowrap;
}

.cmod-dc {
  font-size: 11px;
  color: var(--text-muted);
}

.cmod-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.cmod-tag {
  font-size: 10.5px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.cmod-tag.tone-gold {
  color: var(--accent-gold);
  border-color: rgba(243, 201, 105, 0.3);
}

.composer-relic-banner {
  padding: 6px 10px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.11);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--text-muted);
  line-height: 1.45;
}

.composer-relic-banner strong {
  color: var(--accent-indigo-light);
  margin-right: 4px;
}

/* ── 채팅 말풍선 확장형 다이스 수식 카드 ── */
.bubble-dice-wrap {
  margin-bottom: 6px;
}

.dice-badge-toggle {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 9px;
  font-size: 10.5px;
  text-align: left;
  max-width: 100%;
}

.dice-badge-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 5px;
  min-width: 0;
}

.db-roll,
.db-dc,
.db-outcome {
  white-space: nowrap;
}

.db-dc {
  opacity: 0.85;
}

.dice-badge-toggle:hover {
  filter: brightness(1.12);
}

.dice-expand-caret {
  font-style: normal;
  font-size: 10px;
  opacity: 0.88;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}

.dice-formula-drawer {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(9, 10, 15, 0.75);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
}

.roll-formula-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.rf-row strong {
  color: var(--text-main);
  font-weight: 600;
}

.rf-row.rf-relic strong {
  color: var(--accent-indigo-light);
}

.rf-row.rf-total {
  color: var(--accent-gold);
  font-weight: 600;
}

.rf-row.rf-total strong {
  color: var(--accent-gold);
}

.rf-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.rf-reason {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ── 창세 공방 하사 보정치 미리보기 배너 ── */
.ws-bestow-preview {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.24);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ws-bestow-preview strong {
  color: var(--accent-emerald);
}

/* ── NPC 장비 3슬롯 · 스탯 보정 · 장착/교체 컨트롤 ── */
.stat-eq-mod {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  margin-left: 3px;
}

.stat-eq-mod.pos {
  color: var(--accent-emerald);
}

.stat-eq-mod.neg {
  color: var(--accent-crimson);
}

.p-metric.over-cap {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.08);
}

.p-metric.over-cap strong {
  color: var(--accent-gold);
}

.chip-stat-mini {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-left: 4px;
  opacity: 0.92;
}

.chip-equip-tag {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.14);
  border: 1px solid rgba(243, 201, 105, 0.35);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
}

.inspector-stat-line {
  font-size: 11.5px;
  color: var(--accent-gold);
  background: rgba(243, 201, 105, 0.08);
  border: 1px solid rgba(243, 201, 105, 0.24);
  border-radius: 6px;
  padding: 4px 8px;
}

.inspector-stat-line strong {
  color: var(--text-main);
}

.inspector-equip-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-subtle);
}

.inspector-equip-bar .pill-select {
  flex: 1 1 160px;
  font-size: 11.5px;
}

.equip-reason-input {
  flex: 1 1 100%;
  width: 100%;
  font-size: 11.5px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-main);
}

.equip-reason-input::placeholder {
  color: var(--text-dim);
}

.equip-judgment-banner {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.equip-judgment-banner.is-accepted {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(16, 42, 34, 0.45);
}

.equip-judgment-banner.is-rejected {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(48, 18, 28, 0.45);
}

.ej-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ej-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ej-summary {
  color: var(--text-main);
  line-height: 1.4;
}

.ej-dialogue {
  color: var(--accent-gold);
  line-height: 1.45;
  padding-left: 4px;
}

.ej-thought {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 4px;
}
