/* Hold the Rope brand touches layered over the stock Madmin theme.
   Loaded after Madmin's own stylesheets so these rules win the cascade.
   Palette mirrors the portal (app/assets/tailwind/application.css). */

:root {
  --htr-deep: #04383c;        /* deep teal: navbar, headings */
  --htr-teal: #1f7580;        /* lighter teal: links, primary actions */
  --htr-accent: #fe0201;      /* brand red: sparing accent */
  --htr-teal-tint: rgb(31 117 128 / 0.07);
  --htr-teal-tint-strong: rgb(31 117 128 / 0.14);

  --primary-color: var(--htr-teal); /* links + .btn-primary inherit this */
}

/* ── Top bar ─────────────────────────────────────────────────────────── */
#navbar {
  background-color: var(--htr-deep);
  border-bottom: none;
  box-shadow: inset 0 -3px 0 var(--htr-accent); /* thin brand-red underline */
  padding: 0 1rem;
}

#navbar,
#navbar a,
#hamburger-menu {
  color: #ffffff;
}

#navbar a:hover {
  background-color: transparent;
}

.madmin-logo {
  display: block;
  height: 1.75rem;
  width: auto;
}

/* Right side of the top bar: label + sign out */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-right form {
  margin: 0;
}

.navbar-label {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Who you are signed in as. Name over email, so the row stays one line tall. */
.navbar-user {
  border-left: 1px solid rgb(255 255 255 / 0.25);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding-left: 1rem;
}

.navbar-user__name {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.navbar-user__email {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.7rem;
}

@media (max-width: 640px) {
  .navbar-label,
  .navbar-user__email {
    display: none;
  }

  .navbar-user {
    border-left: 0;
    padding-left: 0;
  }
}

.navbar-signout {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 0.375rem;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
}

.navbar-signout:hover {
  background: rgb(255 255 255 / 0.12);
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
#sidebar {
  background-color: #f7fafa; /* faint teal-tinted panel */
}

/* Branded, grouped section headers (the parent menu items). */
#sidebar nav h4 {
  color: var(--htr-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 1.1rem 0 0.25rem;
  padding: 0 0.5rem;
}

/* The very first header shouldn't push off the top. */
#sidebar nav h4:first-of-type {
  margin-top: 0.25rem;
}

#sidebar nav a:hover {
  background-color: var(--htr-teal-tint);
}

/* Brand-tinted active navigation item with a teal left accent. */
#sidebar nav a.active {
  background-color: var(--htr-teal-tint-strong);
  color: var(--htr-deep);
  box-shadow: inset 3px 0 0 var(--htr-teal);
}

/* Sidebar footer credit */
#sidebar footer .footer-credit {
  color: var(--light-text-color);
  font-size: 0.8rem;
  margin: 0;
  padding: 0.5rem;
}
#sidebar footer .footer-credit a {
  color: var(--light-text-color);
  display: inline;
  padding: 0;
}
#sidebar footer .footer-credit a:hover {
  color: var(--htr-teal);
  text-decoration: underline;
}

#sidebar footer .footer-timezone {
  color: var(--light-text-color);
  font-size: 0.72rem;
  margin: 0;
  padding: 0 0.5rem 0.5rem;
  opacity: 0.8;
}

/* ── Page headings ───────────────────────────────────────────────────── */
.header h1 {
  color: var(--htr-deep);
}

/* ── Tables (every index) ────────────────────────────────────────────── */
table th,
table th.label {
  background-color: var(--htr-teal-tint);
}

table th a {
  color: var(--htr-deep);
  font-weight: 600;
}

table tbody tr:hover {
  background-color: rgb(31 117 128 / 0.04);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn.btn-primary:hover {
  background-color: var(--htr-deep);
}

/* ── Scope tabs (e.g. the content review queue) ──────────────────────── */
.scopes .btn.btn-secondary.active {
  background-color: var(--htr-teal);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px var(--htr-teal);
}

/* ── Dashboard metric cards ──────────────────────────────────────────── */
.metrics {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metrics .metric {
  border-top: 3px solid var(--htr-teal);
}

.metrics .metric p {
  color: var(--htr-deep);
}

/* ── Status badges ───────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: middle;
}

.status-badge--muted     { background: #eef1f2; color: #566; }
.status-badge--review    { background: #fef3c7; color: #92600a; }
.status-badge--scheduled { background: #e0edf7; color: #1d4e79; }
.status-badge--changes   { background: #fde9d3; color: #9a4a12; }
.status-badge--rejected  { background: #fde2e1; color: #9b1c1a; }
.status-badge--published { background: rgba(31, 117, 128, 0.14); color: var(--htr-deep); }

.dot { color: #c3cccd; margin: 0 0.15rem; }

/* ── Content review queue (index) ────────────────────────────────────── */
.scope-count {
  display: inline-block;
  margin-left: 0.4rem;
  min-width: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--htr-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.scopes .btn.btn-secondary.active .scope-count { background: #fff; color: var(--htr-teal); }

.queue-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(31, 117, 128, 0.06);
  border: 1px solid rgba(31, 117, 128, 0.2);
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: var(--htr-deep);
}
.queue-bulk form { margin: 0; }

.content-queue { list-style: none; margin: 1rem 0 0; padding: 0; }
.content-queue li { margin-bottom: 0.6rem; }

.content-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.content-card:hover {
  border-color: var(--htr-teal);
  box-shadow: 0 2px 8px rgba(4, 56, 60, 0.08);
}

.content-card__thumb {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 4rem;
  border-radius: 0.4rem;
  overflow: hidden;
  background: var(--htr-deep);
}
.content-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.4rem;
  font-weight: 700;
}

.content-card__body { flex: 1 1 auto; min-width: 0; }
.content-card__top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.content-card__type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a9799;
}
.content-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--htr-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-card__meta { margin: 0.15rem 0 0; font-size: 0.85rem; color: #556; }
.content-card__activity { margin: 0.1rem 0 0; font-size: 0.8rem; color: #8a9799; }
.content-card__chevron { flex: 0 0 auto; color: #c3cccd; font-size: 1.6rem; line-height: 1; }

.content-empty {
  margin-top: 2rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #8a9799;
  background: #fafbfb;
  border: 1px dashed #dde3e4;
  border-radius: 0.7rem;
}
.content-empty__title { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; color: var(--htr-deep); }
.content-empty p { margin: 0; }

/* ── Review workspace (show) ─────────────────────────────────────────── */
.review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.review__eyebrow { margin: 10px 0 0.25rem; font-size: 0.8rem; color: #8a9799; }
.review__eyebrow a { color: var(--htr-teal); }
.review__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 1.5rem;
  color: var(--htr-deep);
}
.review__sub { margin: 0.3rem 0 0; font-size: 0.9rem; color: #556; }
.review__tools { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 10px; }

.review__grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.review__grid--lower { margin-top: 1.5rem; grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .review__grid, .review__grid--lower { grid-template-columns: 1fr; }
}

.review__section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a9799;
}
.review__hint { margin: -0.4rem 0 1rem; font-size: 0.85rem; color: #8a9799; }

.preview-frame {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.preview-frame iframe { display: block; width: 100%; height: 640px; border: 0; }

/* Decision blocks (approve / request changes / reject) */
.decision {
  padding: 1rem;
  margin-bottom: 0.9rem;
  background: #fafafa;
  border: 1px solid #eef0f0;
  border-radius: 0.6rem;
}
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}
.decision-grid .decision { margin-bottom: 0; }
@media (max-width: 900px) {
  .decision-grid { grid-template-columns: 1fr; }
}
.decision--approve { background: rgba(31, 117, 128, 0.06); border-color: rgba(31, 117, 128, 0.25); }
.decision--reject { background: rgba(254, 2, 1, 0.03); border-color: rgba(254, 2, 1, 0.15); }
.decision h3 {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}
.decision__divider {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}
.decision__form { display: flex; flex-direction: column; gap: 0.5rem; }
.decision__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  resize: vertical;
}
.decision__input:focus { outline: none; border-color: var(--htr-teal); box-shadow: 0 0 0 1px var(--htr-teal); }
.decision .btn, .decision form { width: 100%; }

/* Non-actionable status notes (scheduled / published / rejected / draft) */
.status-note {
  padding: 1rem 1.15rem;
  background: #fafbfb;
  border: 1px solid #eef0f0;
  border-left: 3px solid #cbd5d6;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #445;
}
.status-note p { margin: 0 0 0.75rem; }
.status-note p:last-child { margin-bottom: 0; }
.status-note--scheduled { border-left-color: #1d4e79; }
.status-note--published { border-left-color: var(--htr-teal); }
.status-note--changes { border-left-color: #9a4a12; }
.status-note--rejected { border-left-color: var(--htr-accent); }
.status-note blockquote {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: 0.4rem;
  color: #333;
  font-style: italic;
}

/* Curated details list */
.detail-list { margin: 0; border: 1px solid #eef0f0; border-radius: 0.6rem; overflow: hidden; }
.detail-list > div { display: flex; border-bottom: 1px solid #f2f4f4; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list > div:nth-child(odd) { background: #fafbfb; }
.detail-list dt {
  flex: 0 0 40%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #667;
}
.detail-list dd { margin: 0; padding: 0.55rem 0.85rem; font-size: 0.88rem; color: var(--htr-deep); }

/* Workflow history timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; display: flex; gap: 0.75rem; padding-bottom: 1rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background: var(--htr-teal);
  box-shadow: 0 0 0 3px rgba(31, 117, 128, 0.15);
}
.timeline__item:not(:last-child) .timeline__dot::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: #e3e8e8;
}
.timeline__label { margin: 0; font-weight: 600; font-size: 0.9rem; color: var(--htr-deep); }
.timeline__meta { margin: 0.1rem 0 0; font-size: 0.8rem; color: #8a9799; }
.timeline__note {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0.65rem;
  background: #fafbfb;
  border-left: 2px solid #dde3e4;
  border-radius: 0.3rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #445;
}

/* ── Partners: index table, profile, and form ───────────────────────── */
.type-pill {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid #d5dbdc;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #556;
  background: #fff;
}

.partner-table td { vertical-align: middle; }
.partner-table__name { font-weight: 600; color: var(--htr-deep); }
.partner-table th.num, .partner-table td.num { text-align: right; white-space: nowrap; }
.partner-table__actions { white-space: nowrap; }
.partner-table__actions a { margin-left: 0.5rem; }
.partner-table__actions a:first-child { margin-left: 0; }

.metrics--compact { margin: 0 0 1.5rem; }
.metrics--compact .metric { padding: 0.85rem 1rem; }
.metrics--compact .metric h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: #8a9799; margin: 0 0 0.35rem; }
.metrics--compact .metric p { font-size: 1.35rem; font-weight: 700; margin: 0; }

.detail-muted { color: #9aa4a5; font-size: 0.82rem; }

.entity-list { list-style: none; margin: 0; padding: 0; border: 1px solid #eef0f0; border-radius: 0.6rem; overflow: hidden; }
.entity-list li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.85rem; border-bottom: 1px solid #f2f4f4; }
.entity-list li:last-child { border-bottom: 0; }
.entity-list li:nth-child(odd) { background: #fafbfb; }
.entity-list__name { font-weight: 600; color: var(--htr-deep); }
.entity-list__meta { font-size: 0.82rem; color: #8a9799; }

/* Curated partner form */
.form-fieldset {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
}
.form-fieldset legend {
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--htr-deep);
}
.form-fieldset__optional { font-weight: 400; color: #9aa4a5; }
.form-fieldset__hint { margin: 0 0 1rem; font-size: 0.85rem; color: #6b7280; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group--check { display: flex; align-items: center; gap: 0.5rem; }
.form-group--check input { width: auto; }
.form-group--check label { margin: 0; }
.form-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Stack labels above inputs inside the curated partner form */
.form-fieldset .form-group:not(.form-group--check) { display: block; margin-bottom: 1rem; }
.form-fieldset .form-group:not(.form-group--check) > label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #445;
}
.form-fieldset .form-group:last-child { margin-bottom: 0; }
.form-fieldset input[type="text"],
.form-fieldset input[type="email"],
.form-fieldset input[type="number"],
.form-fieldset textarea,
.form-fieldset select {
  width: 100%;
  box-sizing: border-box;
}
.form-fieldset .form-description { margin-top: 0.3rem; font-size: 0.8rem; color: #8a9799; }

/* ── Users: support-oriented index + ledger amounts ─────────────────── */
.user-table td { vertical-align: middle; }
.user-table__email { font-weight: 600; color: var(--htr-deep); }
.user-table__actions { white-space: nowrap; }
.user-table__actions a { margin-left: 0.5rem; }
.user-table__actions a:first-child { margin-left: 0; }

.ledger-amount { font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 0.35rem; }
.ledger-amount--in { color: #1f7580; }
.ledger-amount--out { color: #9a4a12; }

/* ── Donation show: Stripe reference disclosure ─────────────────────── */
.stripe-refs { margin-top: 1.5rem; }
.stripe-refs summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a9799;
}
.stripe-refs summary:hover { color: var(--htr-teal); }
.stripe-refs .detail-list { margin-top: 0.75rem; max-width: 640px; }
.stripe-refs dd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; word-break: break-all; }

/* ── Dashboard: attention callouts ──────────────────────────────────── */
.dashboard-section-title {
  margin: 1.75rem 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8a9799;
}
.dashboard-section-title:first-of-type { margin-top: 1rem; }

.callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 20px;
}

.callout {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #d5dbdc;
  border-radius: 0.7rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.callout:hover { box-shadow: 0 2px 10px rgba(4, 56, 60, 0.1); transform: translateY(-1px); }

.callout__count {
  flex: 0 0 auto;
  min-width: 2.5rem;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #b6bfc0;
  text-align: center;
}
.callout__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.callout__label { font-size: 1rem; font-weight: 600; color: var(--htr-deep); }
.callout__hint { font-size: 0.82rem; color: #8a9799; margin-top: 0.1rem; }
.callout__chevron { flex: 0 0 auto; color: #c3cccd; font-size: 1.6rem; line-height: 1; }

/* Actionable state: brand-red accent + solid count so it pulls the eye. */
.callout--active {
  border-left-color: var(--htr-accent);
  background: rgba(254, 2, 1, 0.02);
}
.callout--active .callout__count { color: var(--htr-accent); }
.callout--active:hover { border-color: rgba(254, 2, 1, 0.4); }

.dashboard-footnote { margin-top: 1.25rem; font-size: 0.88rem; color: #667; }

/* Note shown in place of the New button on admin-read-only resources (projects, missionaries) */
.create-elsewhere {
  font-size: 0.85rem;
  color: #8a9799;
  font-style: italic;
  white-space: nowrap;
}

/* ── Collapsible sidebar sections ────────────────────────────────────── */
.nav-section { margin-top: 1.1rem; }
.nav-section:first-of-type { margin-top: 0.25rem; }

.nav-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0.15rem 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--htr-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.12s, color 0.12s;
}
.nav-section__header:hover { opacity: 1; color: var(--htr-teal); }

.nav-section__chevron::before {
  content: "\25B8"; /* ▸ */
  display: inline-block;
  font-size: 0.6rem;
  transition: transform 0.15s ease;
}
.nav-section:not(.is-collapsed) .nav-section__chevron::before { transform: rotate(90deg); }

.nav-section.is-collapsed .nav-section__items { display: none; }

/* ── Dashboard: quick-create row ─────────────────────────────────────── */
.dashboard-create {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.dashboard-create__primary {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: var(--htr-teal);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(4, 56, 60, 0.15);
  transition: background 0.12s, transform 0.12s;
}
.dashboard-create__primary:hover {
  background: var(--htr-deep);
  color: #fff;
  transform: translateY(-1px);
}

.dashboard-create__or {
  margin: 0 0.15rem;
  font-size: 0.85rem;
  color: #8a9799;
}

/* ── Quiz answer breakdown on the content review page ─────────────────── */
.quiz-report__block {
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
  padding-top: 1rem;
}

.quiz-report__block:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.quiz-report__question {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.quiz-report__question span {
  color: #6b7280;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.quiz-report__row {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(6rem, 12rem) 1fr auto;
  margin-bottom: 0.5rem;
}

.quiz-report__label {
  font-size: 0.85rem;
}

.quiz-report__bar {
  background: #f1f5f5;
  border-radius: 9999px;
  display: block;
  height: 0.5rem;
  overflow: hidden;
}

.quiz-report__fill {
  background: #14707a;
  border-radius: 9999px;
  display: block;
  height: 100%;
}

.quiz-report__count {
  color: #6b7280;
  font-size: 0.8rem;
  white-space: nowrap;
}
