:root {
  --navy: #1a3a6b;
  --navy-dark: #122850;
  --navy-light: #2a4f8f;
  --cyan: #00b4d8;
  --cyan-light: #e0f7fc;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(26, 58, 107, .10);
  --shadow-lg: 0 8px 32px rgba(26, 58, 107, .16);
  --font-body: "Sora", sans-serif;
  --font-prose: "Lora", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: var(--navy);
  text-decoration: none;
}

  a:hover {
    color: var(--cyan);
  }

/* ── HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: white;
  padding: 48px 24px 40px;
  position: relative;
  overflow: hidden;
}

  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-task {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-style {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-topic {
  background: rgba(0, 180, 216, 0.25);
  color: #7dd3fc;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.hero-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  font-family: var(--font-body);
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

  .hero-subtitle span {
    display: flex;
    align-items: center;
    gap: 5px;
  }

/* ── LAYOUT ── */
.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  align-items: start;
}

.content-col {
  min-width: 0;
}

.sidebar-col {
  min-width: 0;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-navy {
  background: var(--navy);
  color: white;
}

.icon-cyan {
  background: var(--cyan-light);
  color: var(--cyan);
}

.icon-green {
  background: var(--green-light);
  color: var(--green);
}

.card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.card-header p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 1px;
}

.card-body {
  padding: 24px;
}

/* ── QUESTION ── */
.question-prompt {
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-900);
  font-weight: 600;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--navy);
  margin-bottom: 12px;
}

.question-instruction {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── SCORE BANNER ── */
.score-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--radius);
  padding: 20px 24px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.score-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(0, 180, 216, 0.5);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.score-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.score-info h3 {
  font-size: 16px;
  font-weight: 700;
}

.score-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

.score-breakdown {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.score-sub {
  text-align: center;
}

  .score-sub .val {
    font-size: 20px;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
  }

  .score-sub .lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
    max-width: 64px;
  }

/* ── BAND BARS ── */
.band-bars {
  margin-bottom: 8px;
}

.band-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.band-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  width: 210px;
  flex-shrink: 0;
}

.band-track {
  flex: 1;
  height: 8px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}

.band-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.band-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.fill-blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.fill-green {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.fill-yellow {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.fill-orange {
  background: linear-gradient(90deg, #ea580c, #fb923c);
}

.fill-purple {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.essay-intro {
  font-size: 14pt;
  font-family: Arial, Helvetica, sans-serif;
  color: rgb(17, 17, 17);
  background-color: transparent;
  font-weight: 700;
  font-style: normal;
  text-decoration: none;
  vertical-align: baseline;
}

/* ── ESSAY ── */
.essay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.essay-stats {
  display: flex;
  gap: 16px;
}

.essay-stat {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

  .essay-stat strong {
    color: var(--navy);
    font-weight: 700;
  }

.essay-body {
  font-family: var(--font-prose);
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-700);
}

  .essay-body p {
    margin-bottom: 16px;
  }

    .essay-body p:last-child {
      margin-bottom: 0;
    }

.err-spell {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 2px solid #dc2626;
}

.err-grammar {
  background: #fef3c7;
  color: #92400e;
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 2px solid #d97706;
}

.err-vocab {
  background: #dbeafe;
  color: #1e40af;
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 2px solid #3b82f6;
}

/* ── SUMMARY ── */
.summary-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
}

  .summary-box p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--gray-700);
  }

/* ── MISTAKES TABLE ── */
.section-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

  .section-title-block h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
  }

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
}

.pill-red {
  background: var(--red-light);
  color: var(--red);
}

.pill-amber {
  background: var(--amber-light);
  color: var(--amber);
}

.pill-blue {
  background: #dbeafe;
  color: #1e40af;
}

.pill-green {
  background: var(--green-light);
  color: var(--green);
}

.mistake-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

  .mistake-table thead tr {
    background: var(--gray-100);
  }

  .mistake-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }

  .mistake-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
    line-height: 1.55;
  }

  .mistake-table tr:last-child td {
    border-bottom: none;
  }

  .mistake-table .wrong {
    color: var(--red);
    font-weight: 600;
  }

  .mistake-table .right {
    color: var(--green);
    font-weight: 600;
  }

.vocab-orig {
  color: var(--red);
  font-weight: 600;
}

.vocab-impr {
  color: #2563eb;
  font-weight: 600;
}

.mistake-table .expl {
  color: var(--gray-500);
}

/* ── CRITERIA ── */
.criteria-block {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.criteria-header {
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

  .criteria-header .band-badge {
    background: rgba(0, 180, 216, 0.3);
    color: var(--cyan);
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
  }

.criteria-body {
  padding: 18px 20px;
}

.criteria-sub-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.criteria-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 14px;
}

  .criteria-text:last-child {
    margin-bottom: 0;
  }

.criteria-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 12px 0;
}

/* ── ANSWER SECTION (4) ── */
.answer-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.answer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.task-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-light);
  color: var(--cyan);
  flex-shrink: 0;
}

.task-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-subtitle {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
}

.switch-container {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.switch-btn {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--white);
  color: var(--gray-500);
  transition: all 0.2s;
  font-family: var(--font-body);
}

  .switch-btn.active {
    background: var(--navy);
    color: white;
  }

  .switch-btn:not(.active):hover {
    background: var(--gray-50);
  }

.answer-top-bar {
  padding: 10px 20px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  display: grid;
  grid-auto-flow: column;
}

.question-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gray-500);
}

  .info-pill svg {
    width: 14px;
    height: 14px;
    stroke: var(--gray-400);
    flex-shrink: 0;
  }

.sep {
  color: var(--gray-300);
}

.essay-content {
  font-family: var(--font-prose);
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray-700);
  padding: 20px;
}

  .essay-content p {
    margin-bottom: 16px;
  }

    .essay-content p:last-child {
      margin-bottom: 0;
    }

.highlight-spelling {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 2px solid #dc2626;
}

.highlight-grammar {
  background: #fef3c7;
  color: #92400e;
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 2px solid #d97706;
}

.highlight-vocab {
  background: #dbeafe;
  color: #1e40af;
  border-radius: 2px;
  padding: 0 2px;
  cursor: help;
  border-bottom: 2px solid #3b82f6;
}

/* ── SIDEBAR ── */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-card-header {
  padding: 14px 18px;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-card-body {
  padding: 18px;
}

.cta-card {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

  .cta-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .cta-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
  }

  .cta-card .btn-cta {
    display: block;
    background: var(--cyan);
    color: var(--navy-dark);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.1s;
    margin-bottom: 10px;
    text-decoration: none;
  }

    .cta-card .btn-cta:hover {
      opacity: 0.9;
      transform: translateY(-1px);
      color: var(--navy-dark);
    }

  .cta-card .btn-outline {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
  }

    .cta-card .btn-outline:hover {
      background: rgba(255, 255, 255, 0.1);
      color: white;
    }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
}

  .stat-row:last-child {
    border-bottom: none;
  }

  .stat-row .stat-lbl {
    color: var(--gray-500);
  }

  .stat-row .stat-val {
    font-weight: 700;
    color: var(--navy);
  }

.related-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
  font-size: 13px;
  color: var(--gray-700);
  transition: color 0.2s;
  cursor: pointer;
}

  .related-item:last-child {
    border-bottom: none;
  }

  .related-item:hover {
    color: var(--navy);
  }

  .related-item .ri-badge {
    flex-shrink: 0;
    background: var(--cyan-light);
    color: var(--navy);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 1px;
  }

/* ── TIP BOX ── */
.tip-box {
  background: var(--cyan-light);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #0369a1;
  line-height: 1.6;
}

  .tip-box .tip-icon {
    flex-shrink: 0;
    font-size: 16px;
  }

/* ── STATE MESSAGES ── */
.state-message {
  text-align: center;
  padding: 60px 24px;
  font-size: 16px;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
}

  .state-message.error {
    color: var(--red);
  }

/* ── MID-PAGE CTA ── */
.mid-cta {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

  .mid-cta::before {
    content: "";
    position: absolute;
    right: 0;
    top: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.18) 0%, transparent 70%);
    pointer-events: none;
    overflow: hidden;
  }

.mid-cta-text h3 {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}

.mid-cta-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 480px;
}

.mid-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cta-primary {
  background: var(--cyan);
  color: var(--navy-dark);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

  .btn-cta-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: var(--navy-dark);
  }

.btn-cta-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.9);
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

  .btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
  }

/* ── FOOTER ── */
.footer-strip {
  background: var(--cyan);
  padding: 56px 24px;
  text-align: center;
}

  .footer-strip h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 12px;
  }

  .footer-strip p {
    color: rgba(15, 35, 71, 0.75);
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
  }

.footer-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-navy {
  background: var(--navy);
  color: white;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
  text-decoration: none;
}

  .btn-navy:hover {
    background: var(--navy-dark);
  }

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
  text-decoration: none;
}

  .btn-outline-navy:hover {
    background: rgba(26, 58, 107, 0.08);
  }

.essays-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.essays-col {
  min-width: 0;
}

/* ── ESSAY CARD ── */
.essay-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  margin-bottom: 14px;
  transition: all 0.22s;
  display: block;
  cursor: pointer;
}

  .essay-card:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--sh-lg);
  }

.essay-card-inner {
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.essay-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--gray-300);
  flex-shrink: 0;
  width: 26px;
  text-align: right;
  margin-top: 2px;
}

.essay-main {
  flex: 1;
  min-width: 0;
}

.essay-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.topic-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--cyan-light);
  color: var(--cyan-mid);
}

.meta-pill {
  font-size: 11px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 3px;
}

.model-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--amber-lt);
  color: var(--amber);
}

.essay-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.72;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.essay-snippet {
  font-family: var(--prose);
  font-size: 14.5px;
  color: var(--gray-500);
  line-height: 1.78;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.essay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.essay-scores {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.band-chip {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.band-50 {
  background: var(--red-lt);
  color: #b91c1c;
}

.band-60 {
  background: var(--amber-lt);
  color: #92400e;
}

.band-65 {
  background: #fef9c3;
  color: #854d0e;
}

.band-70 {
  background: #dcfce7;
  color: #15803d;
}

.band-75 {
  background: #dbeafe;
  color: #1d4ed8;
}

.band-80 {
  background: #ede9fe;
  color: #5b21b6;
}

.btn-read {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.essay-card:hover .btn-read {
  background: var(--navy);
  color: white;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-col {
    order: -1;
  }

  .score-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .band-name {
    width: 140px;
    font-size: 11px;
  }
}
