/* result.css — Premium results screen */

/* ============ SHELL ============ */
.pm-results-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============ HERO ============ */
.pm-results-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #111827 100%);
  color: #f8fafc;
  box-shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.65);
}
.pm-results-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(59, 130, 246, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(139, 92, 246, 0.28),
      transparent 55%
    );
  pointer-events: none;
}
.pm-results-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 40px 40px;
  align-items: center;
}
@media (max-width: 780px) {
  .pm-results-hero-content {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

.pm-results-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  margin: 0 0 6px;
}
.pm-results-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.pm-results-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin: 10px 0 20px;
}

.pm-results-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.pm-chip--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pm-chip--band {
  color: #fff;
}
.pm-chip--expert {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.pm-chip--advanced {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}
.pm-chip--competent {
  background: linear-gradient(135deg, #059669, #10b981);
}
.pm-chip--moderate {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}
.pm-chip--developing {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.pm-results-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.pm-btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.7);
}
.pm-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(37, 99, 235, 0.8);
}
.pm-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
}
.pm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ============ SCORE RING ============ */
.pm-results-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.pm-score-ring {
  position: relative;
  width: 200px;
  height: 200px;
}
.pm-score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.pm-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 12;
}
.pm-ring-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 0.9s ease;
}
.pm-ring-fill--expert {
  stroke: #a855f7;
}
.pm-ring-fill--advanced {
  stroke: #3b82f6;
}
.pm-ring-fill--competent {
  stroke: #10b981;
}
.pm-ring-fill--moderate {
  stroke: #f59e0b;
}
.pm-ring-fill--developing {
  stroke: #ef4444;
}

.pm-score-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pm-score-pct {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.pm-score-pct span {
  font-size: 24px;
  font-weight: 600;
  margin-left: 2px;
  color: #cbd5e1;
}
.pm-score-label {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
}

/* ============ STAT CARDS ============ */
.pm-results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.pm-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.25);
}
.pm-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pm-stat-card--green .pm-stat-icon {
  background: #ecfdf5;
  color: #059669;
}
.pm-stat-card--red .pm-stat-icon {
  background: #fef2f2;
  color: #dc2626;
}
.pm-stat-card--gray .pm-stat-icon {
  background: #f1f5f9;
  color: #64748b;
}
.pm-stat-card--violet .pm-stat-icon {
  background: #f5f3ff;
  color: #7c3aed;
}

.pm-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.pm-stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* ============ SECTIONS ============ */
.pm-results-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-results-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.pm-results-section-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.pm-section-block {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px -18px rgba(15, 23, 42, 0.28);
}
.pm-section-block[open] {
  border-color: #cbd5e1;
}
.pm-section-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  user-select: none;
}
.pm-section-summary::-webkit-details-marker {
  display: none;
}

.pm-section-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pm-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #eff6ff;
  color: #2563eb;
}
.pm-section-block--green .pm-section-icon {
  background: #ecfdf5;
  color: #059669;
}
.pm-section-block--amber .pm-section-icon {
  background: #fffbeb;
  color: #d97706;
}
.pm-section-block--red .pm-section-icon {
  background: #fef2f2;
  color: #dc2626;
}

.pm-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.pm-section-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.pm-section-summary-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pm-section-bar {
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.pm-section-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.pm-section-block--green .pm-section-bar span {
  background: linear-gradient(90deg, #10b981, #059669);
}
.pm-section-block--amber .pm-section-bar span {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.pm-section-block--red .pm-section-bar span {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.pm-section-pct {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
  min-width: 42px;
  text-align: right;
}
.pm-section-chev {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.pm-section-block[open] .pm-section-chev {
  transform: rotate(180deg);
}

.pm-section-body {
  padding: 0 22px 22px;
  border-top: 1px solid #f1f5f9;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ============ PART BLOCK ============ */
.pm-part-block {
  margin-top: 16px;
}
.pm-part-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.pm-part-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.pm-part-score {
  font-weight: 800;
  color: #2563eb;
  font-size: 13px;
}
.pm-part-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

/* ============ QUESTION ROW ============ */
.pm-qrow {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 14px 16px;
  transition: border 0.2s ease;
}
.pm-qrow--correct {
  border-left: 4px solid #10b981;
}
.pm-qrow--incorrect {
  border-left: 4px solid #ef4444;
}
.pm-qrow--subjective {
  border-left: 4px solid #6366f1;
}
.pm-qrow--skipped {
  border-left: 4px solid #cbd5e1;
}

.pm-qrow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pm-qrow-id {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.5px;
}
.pm-qrow-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pm-qrow--correct .pm-qrow-status {
  color: #059669;
}
.pm-qrow--incorrect .pm-qrow-status {
  color: #dc2626;
}
.pm-qrow--subjective .pm-qrow-status {
  color: #4f46e5;
}
.pm-qrow--skipped .pm-qrow-status {
  color: #94a3b8;
}

.pm-qrow-stem {
  color: #0f172a;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.pm-qrow-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px) {
  .pm-qrow-answers {
    grid-template-columns: 1fr;
  }
}
.pm-qrow-ans {
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pm-qrow-ans--you {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.pm-qrow-ans--correct {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.pm-qrow-ans-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.pm-qrow-ans-value {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.pm-qrow-ans--you .pm-qrow-ans-value {
  color: #1d4ed8;
}
.pm-qrow-ans--correct .pm-qrow-ans-value {
  color: #047857;
}

.pm-empty {
  color: #94a3b8;
  text-align: center;
  padding: 20px;
  font-size: 13px;
}

/* Small screens */
@media (max-width: 520px) {
  .pm-results-title {
    font-size: 34px;
  }
  .pm-score-ring {
    width: 160px;
    height: 160px;
  }
  .pm-score-pct {
    font-size: 38px;
  }
  .pm-section-summary {
    padding: 14px 16px;
  }
  .pm-section-bar {
    width: 80px;
  }
}
/* =========================================================
   AI SCORING MODAL
   ========================================================= */
.pm-scoring-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  padding: 20px;
}
.pm-scoring-modal.is-visible {
  display: flex;
}
.pm-scoring-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.5);
  animation: pmModalIn 0.25s ease-out;
}
@keyframes pmModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pm-scoring-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 5px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: pmSpin 0.9s linear infinite;
}
@keyframes pmSpin {
  to {
    transform: rotate(360deg);
  }
}
.pm-scoring-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.pm-scoring-status {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
  min-height: 20px;
}
.pm-scoring-progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.pm-scoring-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.pm-scoring-percent {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
  margin: 0 0 12px;
}
.pm-scoring-note {
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   AI WRITING EVALUATION CARD
   ========================================================= */
.pm-writing-result {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin: 12px 0;
}

.pm-writing-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-bottom: 1px solid #e2e8f0;
}
.pm-writing-result-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pm-writing-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.pm-writing-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.pm-writing-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}
.pm-writing-band {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 16px;
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
}
.pm-writing-band--expert {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.pm-writing-band--advanced {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}
.pm-writing-band--competent {
  background: linear-gradient(135deg, #059669, #10b981);
}
.pm-writing-band--moderate {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}
.pm-writing-band--developing {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.pm-writing-band-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.pm-writing-band-max {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 600;
}

.pm-writing-block {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}
.pm-writing-block:last-child {
  border-bottom: 0;
}
.pm-writing-block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .pm-writing-block--split {
    grid-template-columns: 1fr;
  }
}
.pm-writing-block-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-writing-block-title i {
  color: #2563eb;
}

.pm-writing-feedback {
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
  margin: 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
}

/* Criterion bars */
.pm-criteria-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pm-criterion-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.pm-criterion-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.pm-criterion-score {
  font-size: 14px;
  font-weight: 800;
}
.pm-criterion-score span {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 1px;
}
.pm-criterion-score--green {
  color: #059669;
}
.pm-criterion-score--blue {
  color: #2563eb;
}
.pm-criterion-score--amber {
  color: #d97706;
}
.pm-criterion-score--red {
  color: #dc2626;
}
.pm-criterion-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.pm-criterion-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.pm-criterion-fill--green {
  background: linear-gradient(90deg, #10b981, #059669);
}
.pm-criterion-fill--blue {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.pm-criterion-fill--amber {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.pm-criterion-fill--red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Strengths / Improvements */
.pm-writing-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pm-writing-subtitle--green {
  color: #059669;
}
.pm-writing-subtitle--amber {
  color: #d97706;
}
.pm-writing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-writing-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}
.pm-writing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.pm-writing-list--green li::before {
  background: #10b981;
}
.pm-writing-list--amber li::before {
  background: #f59e0b;
}

/* Collapsible details */
.pm-writing-details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.pm-writing-details-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  user-select: none;
}
.pm-writing-details-summary::-webkit-details-marker {
  display: none;
}
.pm-writing-details-summary i:first-child {
  margin-right: 6px;
  color: #2563eb;
}
.pm-writing-details-chev {
  transition: transform 0.2s ease;
  color: #94a3b8;
}
.pm-writing-details[open] .pm-writing-details-chev {
  transform: rotate(180deg);
}

.pm-writing-improved {
  padding: 16px 18px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-top: 1px solid #d1fae5;
}
.pm-writing-improved-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.pm-writing-improved-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #064e3b;
  white-space: pre-wrap;
  margin: 0;
}

.pm-writing-original {
  padding: 16px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.pm-writing-original-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  margin: 0;
}

/* Error cards */
.pm-error-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-error-card {
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.pm-error-card--grammar {
  border-left-color: #dc2626;
}
.pm-error-card--vocabulary {
  border-left-color: #7c3aed;
}
.pm-error-card--punctuation {
  border-left-color: #d97706;
}
.pm-error-card--structure {
  border-left-color: #2563eb;
}
.pm-error-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pm-error-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.pm-error-card--grammar .pm-error-badge {
  background: #fef2f2;
  color: #dc2626;
}
.pm-error-card--vocabulary .pm-error-badge {
  background: #f5f3ff;
  color: #7c3aed;
}
.pm-error-card--punctuation .pm-error-badge {
  background: #fffbeb;
  color: #d97706;
}
.pm-error-card--structure .pm-error-badge {
  background: #eff6ff;
  color: #2563eb;
}
.pm-error-num {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.pm-error-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .pm-error-compare {
    grid-template-columns: 1fr;
  }
  .pm-error-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
.pm-error-side {
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pm-error-side--wrong {
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.pm-error-side--right {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.pm-error-side-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.pm-error-side--wrong .pm-error-side-label {
  color: #b91c1c;
}
.pm-error-side--right .pm-error-side-label {
  color: #047857;
}
.pm-error-side-text {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.pm-error-side--wrong .pm-error-side-text {
  color: #991b1b;
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.4);
}
.pm-error-side--right .pm-error-side-text {
  color: #065f46;
  font-weight: 600;
}
.pm-error-arrow {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 16px;
}
.pm-error-why {
  font-size: 12.5px;
  line-height: 1.55;
  color: #475569;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pm-error-why i {
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 640px) {
  .pm-writing-result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .pm-writing-band {
    align-self: flex-start;
  }
  .pm-writing-block {
    padding: 16px;
  }
}
