.ai-visual-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.ai-visual-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9d4c8;
  border-radius: 999px;
  padding: 6px 9px;
  color: #243039;
  background: #fffdf8;
  font-size: 11px;
  font-weight: 800;
}

.ai-visual-key i { width: 9px; height: 9px; border-radius: 50%; background: #c47a08; }
.ai-visual-key .is-evidence i { background: #2f7199; }
.ai-visual-key .is-confirmed i { background: #247f74; }

.task-ribbon.tone-claim { border-left-color: #c47a08; }
.task-ribbon.tone-evidence { border-left-color: #2f7199; }
.task-ribbon.tone-confirmed { border-left-color: #247f74; }

.pepper-hint-button {
  align-self: flex-start;
  margin-top: 5px;
  border: 1px solid #c8c2b4;
  border-radius: 999px;
  padding: 5px 9px;
  color: #19303a;
  background: #fffdf8;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.pepper-hint-button:disabled { opacity: .7; cursor: default; }
.pepper-hint-message { display: block !important; margin-top: 5px; color: #315766 !important; font-weight: 800; line-height: 1.25; }

.pepper-reasoning-replay .reasoning-replay-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}

.reasoning-replay-flow article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  border: 1px solid #d9d4c8;
  border-radius: 13px;
  padding: 12px;
  background: #fffdf8;
}

.reasoning-replay-flow article.is-claim { background: #f9e8b8; border-color: #c47a08; }
.reasoning-replay-flow article.is-evidence { background: #dceef7; border-color: #2f7199; }
.reasoning-replay-flow article.is-confirmed { background: #d8ebe4; border-color: #247f74; }
.reasoning-replay-flow article b { font-size: 12px; }
.reasoning-replay-flow article small { margin-top: 5px; color: #56636b; line-height: 1.25; }
.reasoning-replay-flow > i { align-self: center; font-style: normal; color: #6d777d; }

.pepper-transfer-open {
  align-self: center;
  border: 0;
  border-radius: 12px;
  padding: 13px 17px;
  background: #14242d;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.pepper-transfer-layer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 14px; }
.pepper-transfer-layer .case-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgb(10 20 25 / 72%); backdrop-filter: blur(5px); }
.transfer-challenge-modal { position: relative; width: min(520px, 100%); border-radius: 20px; padding: 24px; background: #fffdf8; box-shadow: 0 22px 70px rgb(0 0 0 / 32%); }
.transfer-challenge-modal > span { color: #247f74; font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.transfer-challenge-modal h2 { margin: 12px 0 16px; font-size: clamp(22px, 4vw, 32px); line-height: 1.05; }
.transfer-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid #d9d4c8; border-radius: 50%; background: #f7f3e9; font-size: 22px; cursor: pointer; }
.transfer-choice-list { display: grid; gap: 9px; }
.transfer-choice-list button { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; min-height: 54px; border: 2px solid #d8dadd; border-radius: 12px; padding: 9px; text-align: left; background: white; cursor: pointer; }
.transfer-choice-list i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e5e2d9; font-style: normal; font-weight: 900; }
.transfer-choice-list .is-right { border-color: #247f74; background: #e8f5f1; }
.transfer-choice-list .is-right i { color: white; background: #247f74; }
.transfer-choice-list .is-wrong { border-color: #a44a3d; background: #f8e5e1; }
.transfer-choice-list .is-wrong i { color: white; background: #a44a3d; }
.transfer-feedback { margin: 10px 0 0; border-radius: 10px; padding: 11px; line-height: 1.35; }
.transfer-feedback.is-right { color: #15584f; background: #d8ebe4; }
.transfer-feedback.is-wrong { color: #80382f; background: #f5d8d3; }
.transfer-done { width: 100%; margin-top: 10px; border: 0; border-radius: 11px; padding: 13px; background: #14242d; color: white; font-weight: 900; cursor: pointer; }

@media (max-width: 620px) {
  .ai-visual-key { gap: 5px; margin: 5px 0 8px; }
  .ai-visual-key span { padding: 4px 6px; font-size: 9px; }
  .pepper-reasoning-replay .reasoning-replay-flow { grid-template-columns: 1fr; gap: 5px; }
  .reasoning-replay-flow > i { transform: rotate(90deg); justify-self: center; font-size: 10px; }
  .reasoning-replay-flow article { min-height: 0; padding: 8px 10px; }
  .reasoning-replay-flow article small { margin-top: 2px; }
  .pepper-transfer-open { width: 100%; padding: 10px; }
  .transfer-challenge-modal { padding: 17px 13px 13px; border-radius: 16px; }
  .transfer-challenge-modal h2 { margin: 8px 34px 11px 0; font-size: 19px; }
  .transfer-choice-list button { min-height: 48px; font-size: 12px; }
}
