.compact-review-head {
  min-height: 86px;
  background: #fff;
  border-top: 3px solid #1d2028;
  border-left: 3px solid #df4b49;
  padding: 13px 16px;
}
.compact-review-head h2 { font-size: 19px; margin: 4px 0; }
.compact-review-head p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 540px; }
.listen-audio {
  border: 1px solid #20232a;
  background: #20232a;
  color: #fff;
  height: 36px;
  padding: 0 15px;
  font: 700 11px inherit;
  white-space: nowrap;
}
.listen-audio:hover { background: #df4b49; border-color: #df4b49; }
.compact-scorecard {
  min-height: 92px;
  margin-top: 12px;
  padding: 13px 16px;
  grid-template-columns: 82px minmax(0, 1fr) 135px;
  gap: 15px;
}
.score-value { display: flex; align-items: baseline; justify-content: center; border-right: 1px solid var(--line); }
.score-value strong { font: 500 36px Georgia, serif; line-height: 1; }
.score-value small { font-size: 10px; color: #8a938f; margin-left: 2px; }
.compact-scorecard .score-copy { padding-right: 14px; min-width: 0; }
.compact-scorecard .score-copy h3 { font-size: 13px; margin: 3px 0; }
.compact-scorecard .score-copy p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analysis-details { margin-top: 10px; background: #fff; border: 1px solid #dfe0e3; }
.analysis-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; }
.analysis-details > summary::-webkit-details-marker { display: none; }
.analysis-details > summary span { display: flex; align-items: center; gap: 13px; }
.analysis-details > summary b { font-size: 12px; }
.analysis-details > summary small { font-size: 9px; color: #8b8e94; }
.analysis-details > summary > i { font-style: normal; font-size: 20px; font-weight: 300; transition: .2s; }
.analysis-details[open] > summary { border-bottom: 1px solid #e2e3e6; }
.analysis-details[open] > summary > i { transform: rotate(45deg); }
.details-content { padding: 0 14px 14px; }
.details-content > .five-steps,
.details-content > .script-analysis,
.details-content > .objection-analysis { margin-left: 0; margin-right: 0; }
.player[hidden] { display: none; }
.player { height: 58px; }
.play { width: 32px; height: 32px; }
@media (max-width: 820px) {
  .compact-review-head { align-items: flex-start; gap: 12px; }
  .compact-review-head p { white-space: normal; }
  .listen-audio { height: 34px; }
  .compact-scorecard { grid-template-columns: 70px 1fr; }
  .compact-scorecard .metrics { grid-column: 1 / 3; }
  .analysis-details > summary span { display: block; }
  .analysis-details > summary small { display: block; margin-top: 4px; }
  .details-content { padding: 0 8px 8px; }
}

.app { grid-template-columns: 285px minmax(560px, 1fr) !important; }
.review { padding-right: 40px; }
.compact-review-head { gap: 18px; }
.case-heading { min-width: 0; flex: 1; }
.review-actions { display: flex; align-items: stretch; gap: 7px; }
.review-actions button { height: 36px; padding: 0 14px; font: 700 10px inherit; white-space: nowrap; }
.analysis-action { border: 1px solid #df2529; background: #df2529; color: #fff; }
.analysis-action:disabled { opacity: .55; cursor: wait; }
.feedback-action { border: 1px solid #20232a; background: #fff; color: #20232a; }
.feedback-action.done { border-color: #4c876e; background: #edf6f1; color: #27664f; }
.feedback-state { font-style: normal; font-size: 8px; font-weight: 700; padding: 2px 5px; margin-left: auto; }
.feedback-state.done { background: #e7f3ed; color: #2f745a; }
.feedback-state.pending { background: #f1f1f2; color: #888b91; }
.call-meta .feedback-state + .score { margin-left: 0; }
.player { right: 0 !important; }
.feedback-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(18, 20, 25, .58); }
.feedback-modal[hidden] { display: none; }
.feedback-dialog { width: min(520px, 100%); background: #fff; border-top: 4px solid #1d2028; padding: 23px; box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.feedback-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; }
.feedback-dialog h2 { font: 500 23px Georgia, "Yu Mincho", serif; margin: 5px 0 0; }
.feedback-dialog .help { margin: 10px 0 16px; }
.feedback-dialog .note textarea { height: 150px; }
.feedback-dialog .save { background: #1b1e25; border-radius: 0; }
.feedback-dialog .saved { margin-bottom: 0; }
@media (max-width: 720px) {
  .feedback-modal { place-items: end stretch; padding: 0; }
  .feedback-dialog { width: 100%; max-height: min(88dvh, 720px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 4px solid #1d2028; border-radius: 16px 16px 0 0; box-shadow: 0 -16px 45px rgba(0, 0, 0, .24); }
  .feedback-dialog > header { position: sticky; top: -18px; z-index: 2; margin: -18px -16px 0; padding: 18px 16px 10px; background: #fff; }
  .feedback-dialog h2 { font-size: 20px; }
  .feedback-dialog .close-modal { width: 44px; height: 44px; padding: 0; font-size: 18px; }
  .feedback-dialog .help { margin: 4px 0 12px; }
  .feedback-dialog .note { padding: 12px; }
  .feedback-dialog .note textarea { height: 118px; min-height: 118px; font-size: 16px; line-height: 1.6; }
  .feedback-dialog .quick { margin: 12px 0; }
  .feedback-dialog .quick div { display: flex; flex-wrap: wrap; gap: 7px; }
  .feedback-dialog .quick button { min-height: 38px; padding: 8px 10px; font-size: 11px; }
  .feedback-dialog .save { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); z-index: 2; height: 50px; margin: 4px 0 0; box-shadow: 0 -10px 18px #fff; font-size: 14px; }
  .feedback-dialog .saved { margin: 8px 0 0; }
}

@media (max-width: 1050px) {
  .app { grid-template-columns: 250px minmax(0, 1fr) !important; }
  .review-actions { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 820px) {
  .app { display: block !important; }
  .review { padding-right: 14px; }
  .compact-review-head { display: block; }
  .review-actions { margin-top: 13px; justify-content: flex-start; }
  .review-actions button { flex: 1; padding: 0 8px; }
}

.integrated-details { margin-top: 12px; border: 0; background: transparent; }
.integrated-details > summary.compact-scorecard {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 135px 170px;
  margin-top: 0;
  cursor: pointer;
  list-style: none;
}
.integrated-details > summary.compact-scorecard::-webkit-details-marker { display: none; }
.integrated-details[open] > summary { border-bottom: 1px solid #dfe0e3; }
.integrated-details .details-content { background: #fff; border: 1px solid #dfe0e3; border-top: 0; }
.detail-toggle {
  align-self: stretch;
  border-left: 1px solid #dfe0e3;
  padding-left: 15px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 170px;
}
.detail-toggle b { font-size: 11px; white-space: nowrap; word-break: keep-all; }
.detail-toggle i { flex: 0 0 auto; font-style: normal; font-size: 21px; transition: .2s; }
.integrated-details[open] .detail-toggle i { transform: rotate(45deg); }

@media (max-width: 820px) {
  .integrated-details > summary.compact-scorecard { grid-template-columns: 70px minmax(0, 1fr) 150px; }
  .integrated-details > summary .metrics { grid-column: 1 / 3; }
  .detail-toggle { grid-column: 3; grid-row: 1 / 3; min-width: 150px; }
}
@media (max-width: 620px) {
  .integrated-details > summary.compact-scorecard { grid-template-columns: 70px minmax(0, 1fr); }
  .detail-toggle { grid-column: 1 / 3; grid-row: auto; min-width: 0; border-left: 0; border-top: 1px solid #dfe0e3; padding: 9px 0 0; }
}
