.reviewer-shell {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
}

.reviewer-sidebar {
  background: linear-gradient(180deg, rgba(5, 15, 28, .66), rgba(7, 18, 32, .38));
}

.reviewer-guide {
  display: none;
}

.reviewer-summary-cards {
  margin-bottom: 18px;
}

.case-item-meaning {
  color: #cfe1f6;
  font-size: .76rem;
  line-height: 1.38;
}

.case-item-action {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}

.case-item-action strong {
  color: #f6fbff;
}

.queue-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  color: #cce7ff;
  background: rgba(58, 179, 255, .13);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.queue-badge.manual_review,
.queue-badge.manual {
  color: #ffe09d;
  background: rgba(244, 184, 74, .14);
}

.queue-badge.no_suggested_action,
.queue-badge.none,
.queue-badge.reviewed {
  color: #d8e4f3;
  background: rgba(143, 172, 205, .14);
}

.queue-badge.supported {
  color: #91efbd;
  background: rgba(53, 208, 132, .13);
}

.reviewer-detail {
  width: 100%;
  max-width: 1320px;
}

.reviewer-workflow-center {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.workflow-hero-card {
  padding: 20px;
  border: 1px solid rgba(58, 179, 255, .28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 46, 75, .72), rgba(7, 18, 32, .72));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .20);
}

.workflow-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 18px;
  align-items: start;
}

.workflow-hero-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.workflow-hero-card p {
  color: var(--muted);
  line-height: 1.52;
}

.workflow-primary-action {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.workflow-primary-action .button {
  min-height: 38px;
}

.workflow-primary-note {
  color: #cce7ff !important;
  font-size: .82rem;
}

.workflow-progress {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.workflow-progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-progress-track::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 19px;
  height: 2px;
  background: rgba(143, 172, 205, .18);
}

.workflow-step {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.workflow-step-number {
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(58, 179, 255, .34);
  border-radius: 999px;
  color: #eaf5ff;
  background: #10233b;
  font-weight: 900;
}

.workflow-step.active .workflow-step-number {
  border-color: rgba(58, 179, 255, .85);
  background: rgba(58, 179, 255, .28);
  box-shadow: 0 0 0 5px rgba(58, 179, 255, .10);
}

.workflow-step.done .workflow-step-number {
  border-color: rgba(53, 208, 132, .55);
  background: rgba(53, 208, 132, .18);
}

.workflow-queue-card {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(143, 172, 205, .18);
  border-radius: 15px;
  background: rgba(5, 15, 28, .36);
}

.workflow-queue-card h3 {
  margin: 0;
  font-size: 1rem;
}

.workflow-queue-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workflow-queue-button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(12, 27, 46, .44);
  text-align: left;
}

.workflow-queue-button strong {
  color: #f5fbff;
  font-size: .84rem;
}

.workflow-queue-button span {
  font-size: .78rem;
}

.workflow-queue-button.active,
.workflow-queue-button:hover {
  border-color: rgba(58, 179, 255, .72);
  background: rgba(17, 93, 152, .22);
}

.workflow-queue-button.recommended {
  box-shadow: inset 3px 0 0 var(--blue);
}

.workflow-empty-note {
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(53, 208, 132, .24);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(53, 208, 132, .08);
  font-size: .83rem;
  line-height: 1.45;
}

.workflow-empty-note strong {
  color: #f5fbff;
}

.review-simple-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .55fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.plain-summary-card,
.next-step-card,
.case-decision-guidance {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(12, 27, 46, .56);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.plain-summary-card {
  padding: 18px;
}

.plain-summary-card h3,
.next-step-card h3,
.case-decision-guidance h3 {
  margin: 0 0 8px;
}

.plain-summary-card p,
.next-step-card p,
.simple-explain-list li,
.case-decision-guidance p,
.case-decision-choice span {
  color: var(--muted);
  line-height: 1.5;
}

.simple-explain-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.simple-explain-list li {
  padding: 9px 10px;
  border: 1px solid rgba(143, 172, 205, .16);
  border-radius: 11px;
  background: rgba(5, 15, 28, .34);
  font-size: .84rem;
}

.simple-explain-list strong {
  color: #fff;
}

.next-step-card {
  padding: 16px;
  border-color: rgba(58, 179, 255, .26);
  background: linear-gradient(145deg, rgba(21, 49, 78, .64), rgba(8, 19, 35, .58));
}

.next-step-card .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.next-step-card .button-row .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .78rem;
}

.case-decision-guidance {
  margin-bottom: 18px;
  padding: 18px;
  border-color: rgba(58, 179, 255, .26);
}

.case-decision-guidance.manual {
  border-color: rgba(244, 184, 74, .38);
  background: linear-gradient(145deg, rgba(60, 43, 14, .28), rgba(12, 27, 46, .56));
}

.case-decision-guidance.supported {
  border-color: rgba(53, 208, 132, .34);
  background: linear-gradient(145deg, rgba(13, 55, 37, .24), rgba(12, 27, 46, .56));
}

.case-decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.case-decision-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.case-decision-choice {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(143, 172, 205, .16);
  border-radius: 12px;
  background: rgba(5, 15, 28, .34);
}

.case-decision-choice strong {
  color: #fff;
}

.case-decision-choice span {
  font-size: .82rem;
}

.detail-metrics {
  margin-bottom: 0;
}

.suggestion-card {
  background: linear-gradient(145deg, rgba(9, 22, 39, .72), rgba(5, 15, 28, .48));
}

.suggestion-card.recommended {
  border-color: rgba(58, 179, 255, .38);
}

.suggestion-decision-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(58, 179, 255, .22);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(58, 179, 255, .08);
  font-size: .82rem;
  line-height: 1.45;
}

.suggestion-decision-box strong {
  color: #f6fbff;
}

.no-suggestion-card {
  padding: 14px;
  border: 1px solid rgba(143, 172, 205, .18);
  border-radius: 13px;
  background: rgba(5, 15, 28, .34);
}

.no-suggestion-card h4 {
  margin: 0 0 7px;
}

.no-suggestion-card p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}

.review-details-toggle {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 19, 35, .42);
}

.review-details-toggle > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  color: #f4fbff;
  font-weight: 850;
}

.review-details-toggle > summary span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.review-details-toggle > .panel {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(143, 172, 205, .16);
  border-radius: 0;
  background: transparent;
}

@media (max-width: 1120px) {
  .workflow-hero-grid,
  .review-simple-layout {
    grid-template-columns: 1fr;
  }
  .case-decision-choice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 950px) {
  .reviewer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .workflow-queue-buttons {
    grid-template-columns: 1fr;
  }
  .workflow-progress-track {
    grid-template-columns: 1fr;
  }
  .workflow-progress-track::before {
    display: none;
  }
}
