/* Tour/B2C 밝은 패널 + B2B 다크 칩 혼용 시 가독성 */
[data-ikcta-comms-hub].panel,
[data-ikcta-comms-hub] {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

[data-ikcta-comms-hub] .ikcta-comms-hub__title,
[data-ikcta-comms-hub] > h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #0f172a;
}

[data-ikcta-comms-hub] .ikcta-comms__note,
[data-ikcta-comms-hub] .ikcta-comms__note.muted,
[data-ikcta-comms-hub] .muted.small {
  color: #334155 !important;
  opacity: 1 !important;
  font-size: 0.94rem;
}

[data-ikcta-comms-hub] .chip,
[data-ikcta-comms-hub] .ikcta-comms__autoChip {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border: 1px solid #94a3b8 !important;
  font-weight: 600;
}

[data-ikcta-comms-hub] .chip.is-on,
[data-ikcta-comms-hub] .ikcta-comms__autoChip.is-on {
  background: #dcfce7 !important;
  border-color: #16a34a !important;
  color: #14532d !important;
}

[data-ikcta-comms-hub] .chip.is-off,
[data-ikcta-comms-hub] .ikcta-comms__autoChip:not(.is-on) {
  background: #fef9c3 !important;
  border-color: #ca8a04 !important;
  color: #713f12 !important;
}

[data-ikcta-comms-hub] .ikcta-comms__bridgeSide,
[data-ikcta-comms-hub] .ikcta-comms__bridgeLbl,
[data-ikcta-comms-hub] .ikcta-comms__bridgeSelect,
[data-ikcta-comms-hub] label {
  color: #0f172a !important;
}

[data-ikcta-comms-hub] .ikcta-comms__voice .btn.ghost {
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid #64748b !important;
  font-weight: 600;
}

[data-ikcta-comms-hub] .ikcta-comms__voice .btn.ghost.is-active {
  background: #e0e7ff !important;
  border-color: #4f46e5 !important;
  color: #312e81 !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

[data-ikcta-comms-hub] .ikcta-comms__log {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-ikcta-comms-hub] .ikcta-comms__msg {
  color: #0f172a;
}

[data-ikcta-comms-hub] .ikcta-comms__composer textarea {
  color: #0f172a;
  background: #fff;
  border-color: #94a3b8;
}

.ikcta-comms {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 62vh;
}
.ikcta-comms__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ikcta-comms__status .chip {
  font-size: 0.78rem;
}
.ikcta-comms__status .chip.is-on {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
}
.ikcta-comms__status .chip.is-off {
  opacity: 0.75;
}
.ikcta-comms__voice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ikcta-comms__voice .btn.is-active {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}
.ikcta-comms__log {
  flex: 1;
  min-height: 280px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.04);
}
.ikcta-comms__msg {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ikcta-comms__msg--user {
  background: rgba(99, 102, 241, 0.12);
  margin-left: 12%;
}
.ikcta-comms__msg--assistant {
  background: rgba(34, 197, 94, 0.1);
  margin-right: 8%;
}
.ikcta-comms__msg--sys {
  opacity: 0.85;
  font-size: 0.82rem;
  border: 1px dashed rgba(100, 116, 139, 0.35);
}
.ikcta-comms__meta {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-top: 4px;
}
.ikcta-comms__composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.ikcta-comms__composer textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  font: inherit;
}
.ikcta-comms__note {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.ikcta-comms__bridge {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.06);
}
.ikcta-comms__autoRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.ikcta-comms__autoStatus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ikcta-comms__autoChip {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.65);
}
.ikcta-comms__autoChip.is-on {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.45);
}
.ikcta-comms__manualToggle {
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
}
.ikcta-comms__manual {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed rgba(99, 102, 241, 0.25);
}
.ikcta-comms__manual[hidden] {
  display: none !important;
}
.ikcta-comms__bridgeSides {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-right: 4px;
}
.ikcta-comms__bridgeSide {
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.ikcta-comms__bridgeLbl {
  font-size: 0.78rem;
  opacity: 0.85;
}
.ikcta-comms__bridgeSelect {
  font: inherit;
  font-size: 0.84rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: #fff;
}
.ikcta-comms__primary {
  margin-bottom: 2px;
}
.ikcta-comms__trans {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(100, 116, 139, 0.35);
  font-size: 0.86rem;
  opacity: 0.92;
}
.ikcta-comms__transLbl {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-right: 4px;
}
.ikcta-comms__transToggle {
  margin-top: 4px;
  font-size: 0.74rem;
  padding: 2px 6px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
