/* Shared styles for the IA and EE feedback reports. */

.report .card { max-width: 920px; margin-inline: auto; }
.report .card-header { border-bottom: 1px solid var(--border); padding-bottom: .85rem; margin-bottom: .85rem; }

/* --- Contexte (article IA / question de recherche EE) --- */
.report-context {
  border: 1px solid var(--border);
  background: var(--gray-50);
  border-radius: var(--r-md);
  padding: .95rem 1rem;
  margin-bottom: .85rem;
}
.report-chip-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .55rem; }
.report-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .55rem; border-radius: var(--r-pill);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  color: var(--text); font-size: var(--text-sm); line-height: 1.2;
}
.report-context-title { margin: .2rem 0 .25rem; font-size: var(--text-lg); line-height: 1.35; color: var(--text-strong); }
.report-context-title a { color: var(--text-strong); text-decoration: none; }
.report-context-title a:hover { text-decoration: underline; }
.report-context-meta { color: var(--gray-600); font-size: var(--text-sm); line-height: 1.35; }
.report-context-meta a { color: var(--info); text-decoration: none; }
.report-context-meta a:hover { text-decoration: underline; }

/* --- Callout (disclaimer prédictif) : INFO neutre --- */
.report-callout {
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  border: 1px solid var(--info-border);
  background: var(--info-bg);
  color: var(--info-fg);
  margin-bottom: .85rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* --- Encadré de contrôle (règle d'un an, etc.) --- */
.report-check {
  border: 1px solid var(--border); background: var(--white);
  border-radius: var(--r-md); padding: .85rem 1rem; margin: 0 0 .85rem;
}
.report-check-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.report-check-title { font-size: var(--text-sm); color: var(--text-strong); font-weight: 700; }
.report-pill {
  display: inline-flex; align-items: center; padding: .12rem .55rem;
  border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 800;
  border: 1px solid transparent; white-space: nowrap;
}
.report-pill--ok      { background: var(--success-bg); border-color: var(--success-border); color: var(--success-fg); }
.report-pill--bad     { background: var(--danger-bg);  border-color: var(--danger-border);  color: var(--danger-fg); }
.report-pill--unknown { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-fg); }
.report-check-text { color: var(--gray-700); font-size: var(--text-sm); line-height: 1.5; text-align: left; }
.report-check-meta { color: var(--text-muted); font-size: var(--text-xs); margin-top: .4rem; }

/* --- Panneau de score --- */
.report-score { text-align: center; margin-bottom: .25rem; }
.report-score-label { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .25rem; font-weight: 700; }
.report-score-value { font-size: 3.15rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: .35rem; }
.report-score-max { font-size: var(--text-sm); color: var(--text-muted); margin-left: .25rem; }
.report-meter {
  display: grid; gap: .35rem; width: 100%; max-width: 42rem; margin: .85rem 0 .5rem;
  color: var(--ed-muted, var(--text-muted)); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.report-meter-track { height: .65rem; overflow: hidden; border-radius: 1rem; background: var(--ed-line, var(--gray-200)); }
.report-meter-bar {
  display: block; height: 100%; border-radius: inherit; background: var(--ed-blue, var(--brand-700));
}
.report-result { font-size: var(--text-base); font-weight: 600; margin-top: .55rem; }
.report-result--bad   { color: var(--danger-fg); }
.report-result--okay  { color: #7e2304; }
.report-result--good  { color: var(--text); }
.report-result--great { color: var(--success-fg); }

/* Overall and criterion feedback */
.report-section-title { margin: 1.1rem 0 .5rem; }
.report-prose { white-space: pre-wrap; font-size: .97rem; line-height: var(--leading-relaxed); color: var(--text-strong); }
.report-criterion-feedback { margin-top: .65rem; }
.report-criterion-feedback p { margin: 0; white-space: pre-wrap; line-height: var(--leading-relaxed); color: var(--text-strong); }

/* actions en bas de rapport (EE) */
.report-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.25rem; }

/* --- Extras EE (boîte de note prédite + bandeau de fourchette) --- */
.report-grade {
  display: inline-block; min-width: 170px; padding: .65rem .95rem; margin: 0 0 .65rem;
  border-radius: var(--r-lg); background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.28); text-align: center;
}
.report-grade-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: #1d4ed8; font-weight: 800; margin-bottom: .18rem; }
.report-grade-value { font-size: 1.75rem; line-height: 1.05; font-weight: 800; color: #1d4ed8; font-variant-numeric: tabular-nums; }
.report-grade-value span { font-size: .96rem; color: var(--gray-600); font-weight: 700; margin-left: .18rem; }
.report-highlight {
  margin: .8rem auto .65rem; max-width: 920px; padding: .75rem .9rem; border-radius: var(--r-md);
  background: var(--info-bg); border: 1px solid var(--info-border); border-left: 4px solid var(--brand-700);
  color: var(--info-fg); font-size: 1.02rem; font-weight: 600; line-height: 1.55; text-align: left;
}
.report-note { margin: .35rem auto 0; max-width: 920px; font-size: var(--text-sm); line-height: 1.5; color: var(--gray-600); text-align: left; }

/* --- Tableaux de barème --- */
.report-rubric { margin-top: 1.15rem; }
.report-rubric-title { font-size: var(--text-lg); margin: 0 0 .65rem; color: var(--text-strong); font-weight: 700; }
.report-rubric-table { width: 100%; border: 1px solid var(--border); border-collapse: collapse; }
.report-rubric-table thead th {
  background: hsl(var(--brand-h) var(--brand-s) 75%); color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; border: 1px solid rgba(255,255,255,.25);
}
.report-rubric-table td, .report-rubric-table th { padding: .85rem .9rem; border: 1px solid var(--border); vertical-align: top; }
.report-rubric-table tbody td { background: hsl(var(--brand-h) var(--brand-s) 97% / .7); }
.report-rubric-row--active td { background: rgba(34,197,94,.18) !important; border-left: 4px solid rgba(22,163,74,.9); }
.report .report-rubric-table td.report-rubric-desc { text-align: justify; text-align-last: start; hyphens: auto; }
.report-rubric-mark { display: block; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-rubric-badge {
  display: inline-flex;
  margin-block-start: .3rem;
  padding: .13em .5em;
  border: 1px solid var(--success-border);
  border-radius: var(--r-pill);
  background: var(--success-bg);
  color: var(--success-fg);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.report-rubric-row--missing td { background: var(--warning-bg) !important; color: var(--warning-fg); font-weight: 700; }

/* --- Variantes de callout + sections (rapports RQ / Reflection) --- */
.report-callout-title { font-size: var(--text-sm); font-weight: 700; margin: 0 0 .35rem; }
.report-callout-body { font-size: var(--text-sm); line-height: 1.5; }
.report-callout--warning { background: var(--warning-bg); border-color: var(--warning-border); border-left-color: var(--warning); color: var(--warning-fg); }
.report-section { margin-top: 1.15rem; }
.report-section h3 { font-size: var(--text-lg); margin: 0 0 .65rem; color: var(--text-strong); }

/* --- Dimensions notées par étoiles (rapport RQ) --- */
.report-criteria-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .2rem; width: fit-content; max-width: 100%; }
.report-criteria-grid--article, .report-criteria-grid--rq { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
.report-criteria-grid--article .report-criterion-head, .report-criteria-grid--rq .report-criterion-head { flex-wrap: wrap; }
.report-criteria-grid--article .report-criterion-name, .report-criteria-grid--rq .report-criterion-name { white-space: normal; }
.report-criteria-grid--article .report-stars, .report-criteria-grid--rq .report-stars { flex-shrink: 0; white-space: nowrap; }
.report-criterion-card { width: 100%; min-width: 0; border: 1px solid var(--border); background: var(--white); border-radius: var(--r-md); padding: .6rem .7rem; display: flex; flex-direction: column; gap: .25rem; min-height: 62px; }
.report-criterion-card.is-pending { opacity: .65; background: var(--gray-50); }
.report-criterion-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex-wrap: nowrap; width: 100%; }
.report-criterion-name { color: var(--text-strong); font-size: var(--text-sm); font-weight: 700; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-criterion-rows { margin-top: .25rem; }
.report-criterion-row { display: grid; grid-template-columns: 190px 1fr; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--border); }
@media (max-width: 720px){ .report-criterion-row, .report-criteria-grid { grid-template-columns: 1fr; } }
.report-criterion-left { display: flex; flex-direction: column; gap: .35rem; }
.report-criterion-label { color: var(--text-strong); font-size: var(--text-sm); font-weight: 700; }
.report-criterion-text { font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-strong); white-space: pre-wrap; }
.report-criterion-error { margin-top: .65rem; border-radius: var(--r-md); padding: .7rem .85rem; border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-fg); font-size: var(--text-sm); line-height: 1.5; }
.report-stars { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .18rem; color: var(--ed-blue, var(--brand-700)); }
.report-stars .star { width: 1.12rem; height: 1.12rem; fill: none; stroke: currentColor; stroke-width: 1.65; }
.report-stars[data-rating-band="0"] { color: #596a76; }
.report-stars[data-rating-band="1"] { color: #8e3534; }
.report-stars[data-rating-band="2"] { color: #97502d; }
.report-stars[data-rating-band="3"] { color: #806019; }
.report-stars[data-rating-band="4"] { color: #315d83; }
.report-stars[data-rating-band="5"] { color: #306a51; }
.report-stars .star.is-filled { fill: currentColor; }
.report-rating-value,.report-rating-unavailable { margin-inline-start: .4rem; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; }

/* --- Reflection form (RPF) report --- */
.report-rpf-toggle-row { display: flex; justify-content: flex-start; gap: .6rem; flex-wrap: wrap; margin: 0 0 .75rem; }
.report-rpf-panel { border: 1px solid var(--border); background: var(--white); border-radius: var(--r-md); padding: .9rem 1rem; margin: 0 0 1rem; }
.report-rpf-text { color: var(--text-strong); font-size: .97rem; line-height: var(--leading-relaxed); text-align: left; white-space: pre-wrap; }
.report-stars-large { gap: .35rem; margin-top: .4rem; }
.report-stars-large .star { width: 1.35rem; height: 1.35rem; }
.report-stars-large .report-rating-value { display: none; }
.report-score-note { margin-top: .55rem; color: var(--text-muted); font-size: var(--text-sm); text-align: center; }
.report-dimensions-wrap { max-width: 720px; margin: 0 auto; }

/* --- Cartes de contrôle + badges (rapport d'article IA) --- */
.report-chip-muted { background: var(--gray-100); border-color: var(--border); color: var(--gray-600); }
.report-checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin-top: .85rem; }
@media (max-width: 720px){ .report-checks-grid { grid-template-columns: 1fr; } }
.report-check-card { text-align: left; border-radius: var(--r-md); padding: .75rem .85rem; border: 1px solid var(--border); background: var(--white); }
.report-check-card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .25rem; }
.report-check-card-right { display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
.report-check-card-title { color: var(--text-strong); font-size: var(--text-sm); margin: 0; font-weight: 700; }
.report-check-card-body { color: var(--gray-600); font-size: var(--text-sm); line-height: 1.4; }
.report-badge { display: inline-flex; align-items: center; justify-content: center; padding: .2rem .55rem; border-radius: var(--r-pill); font-size: var(--text-xs); border: 1px solid transparent; white-space: nowrap; }
.report-badge--ok { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.report-badge--bad { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-border); }
.report-badge--warn { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.report-badge--muted { background: var(--gray-100); color: var(--gray-600); border-color: var(--border); }

/* Reading feedback paragraphs. Titles and score labels retain their alignment. */
.report :is(.report-prose, .report-prose p, .report-prose li, .report-criterion-feedback p, .report-criterion-text, .report-rpf-text,
  .report-callout, .report-check-text, .report-check-card-body, .report-note, .report-score-note, .report-reference p, .report-context-meta) {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}

/* Coursework report hierarchy */
.report-feedback {
  --report-ink: var(--ed-ink, var(--text-strong));
  --report-text: var(--ed-text, var(--text));
  --report-muted: var(--ed-muted, var(--text-muted));
  --report-line: var(--ed-line, var(--border));
  --report-paper: var(--white);
  --report-tint: var(--ed-tint, var(--brand-50));
  --report-blue: var(--ed-blue, var(--brand-700));
  --report-hero: var(--ed-navy, var(--brand-900));
  --report-hero-muted: #dbe6ef;
  --report-green: #356452;
  --report-green-paper: #eef7f2;
  --report-radius: var(--ed-radius, var(--r-md));
  --report-padding: clamp(1rem, 2.6vw, 1.85rem);
}
.report-feedback .report-flow { display: grid; min-width: 0; gap: clamp(.85rem, 2vw, 1.4rem); }
.report-feedback .report-flow > * { min-width: 0; margin-block: 0; }
.report-feedback .report-overview { display: grid; gap: .9rem; align-items: stretch; }
.report-feedback .report-overview:has(> .report-score) { grid-template-columns: minmax(0, 1fr) minmax(14rem, .56fr); }
.site-main.report-feedback .report-overview > .report-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: var(--report-padding);
  border: 1px solid var(--report-hero);
  border-radius: var(--report-radius);
  background: var(--report-hero);
  color: var(--white);
  overflow-wrap: anywhere;
}
.site-main.report-feedback .report-overview .report-context-title {
  color: var(--white);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.site-main.report-feedback .report-overview .report-context a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.report-feedback .report-context-meta { margin-top: .5rem; color: var(--report-hero-muted); line-height: 1.55; }
.report-feedback .report-chip-row:empty { display: none; }
.report-feedback .report-context .report-chip {
  border-color: #74899b;
  background: transparent;
  color: var(--report-hero-muted);
  white-space: normal;
}
.report-feedback :is(.report-section, .report-dimensions-wrap) {
  padding: var(--report-padding);
  border: 1px solid var(--report-line);
  border-radius: var(--report-radius); background: var(--report-paper);
}
.report-feedback .report-dimensions-wrap { max-width: none; }
.report-feedback :is(.report-section,.report-dimensions-wrap) > :is(h2,h3) { margin: 0 0 .85rem; }
.report-feedback .report-summary {
  background: var(--report-green-paper);
  border-color: #b8cec3;
  border-inline-start: 4px solid var(--report-green);
}
.report-feedback .report-advice {
  background: #fbf6ea;
  border-color: #ded1b4;
  border-inline-start: 4px solid #9a7838;
  overflow-wrap: anywhere;
}
.report-feedback .report-advice ol { margin-block: .5rem 0; padding-inline-start: 1.7rem; }
.report-feedback .report-advice li + li { margin-top: .65rem; }
.report-feedback .report-advice li::marker { color: #705420; font-size: 1.1em; font-weight: 800; }
.report-feedback .report-reference {
  padding: .35rem 1rem;
  border: 1px solid var(--report-line);
  border-radius: var(--report-radius);
  background: var(--report-paper);
  overflow-wrap: anywhere;
}
.report-feedback :is(.report-reference, .report-rubric) summary {
  align-content: center;
  min-height: 44px;
  color: var(--report-blue);
  font-weight: 600;
  cursor: pointer;
  padding-block: .4rem;
  overflow-wrap: anywhere;
}
.report-feedback .report-rpf-text { margin-top: .65rem; }
.report-feedback .report-reference[open] { padding-bottom: 1rem; }
.site-main.report-feedback .report-overview .report-score {
  min-width: 0;
  margin: 0;
  padding: var(--report-padding);
  border: 1px solid var(--report-line);
  border-top: 4px solid var(--report-blue);
  border-radius: var(--report-radius);
  background: var(--report-paper);
  color: var(--report-ink);
  text-align: start;
  overflow-wrap: anywhere;
}
.report-feedback .report-score-label { color: var(--report-blue); text-transform: none; letter-spacing: 0; font-weight: 650; }
.report-feedback .report-score-value { color: var(--report-ink); font-size: clamp(2.15rem, 5.8vw, 3.4rem); font-weight: 700; margin-block: .55rem; }
.report-feedback .report-score-max { color: var(--report-muted); font-size: .45em; }
.report-feedback :is(.report-note,.report-score-note) { margin-inline: 0; color: var(--report-muted); }
.report-feedback .report-result { margin-bottom: 0; }
.site-main.report-feedback .report-flow > .report-callout:not(.report-callout--warning) {
  border-inline-start: 3px solid var(--report-line);
  background: transparent;
}
.report-feedback .report-callout strong { font-weight: 550; }

.report-feedback .report-carousel {
  --report-track-inset: clamp(18px, 7.5%, 5rem);
  --report-track-top: .375rem;
  --report-track-bottom: clamp(.85rem, 1.9vw, 1.45rem);
  border: 0;
  padding: 0;
  background: transparent;
}
.report-feedback .report-carousel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content auto;
  align-items: center;
  gap: .2rem clamp(.35rem, 1.15vw, .9rem);
  margin-bottom: .35rem;
  padding-inline: min(1.5rem, 2vw);
}
.report-feedback .report-carousel-header h2 { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.45rem); }
.report-carousel-controls { display: flex; align-items: center; gap: .2rem; }
.report-carousel-controls[hidden], .report-carousel-pagination[hidden] { display: none; }
.report-carousel-position {
  min-inline-size: 4ch;
  color: var(--report-muted);
  font-size: .875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.report-carousel-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--report-line);
  border-radius: 50%;
  background: var(--report-paper);
  color: var(--report-blue);
  cursor: pointer;
  font: 650 1.25rem/1 var(--ed-font, system-ui);
  transition: background-color .16s, color .16s, border-color .16s;
}
.report-carousel-arrow[aria-disabled="false"]:hover {
  border-color: var(--report-blue);
  background: var(--report-tint);
}
.report-carousel-arrow[aria-disabled="true"] { border-color: transparent; background: transparent; color: var(--report-muted); cursor: default; }
.report-carousel-arrow:focus-visible { outline: 2px solid var(--report-blue); outline-offset: 2px; }
.report-carousel-cards { display: grid; gap: .9rem; }
.report-carousel-slide { --report-card-tint: #eaf2f8; min-inline-size: 0; }

@media screen {
  .report-carousel[data-report-ready] .report-carousel-cards {
    --report-edge-fade: clamp(9px, 4.5%, 2.5rem);
    position: relative;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    gap: clamp(.5rem, 1.3vw, 1rem);
    padding: var(--report-track-top) var(--report-track-inset) var(--report-track-bottom);
    overflow: auto hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    mask-image:
      linear-gradient(to right, transparent, black var(--report-edge-fade), black calc(100% - var(--report-edge-fade)), transparent),
      linear-gradient(black calc(100% - .55rem), transparent);
    mask-composite: intersect;
  }
  .report-carousel[data-report-ready] .report-carousel-cards::-webkit-scrollbar { display: none; }
  .report-carousel[data-report-ready] .report-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
  .report-carousel-slide[data-report-side="active"] { z-index: 1; }
  .report-carousel-slide:is([data-report-side="previous"], [data-report-side="next"]) { cursor: pointer; }
  .report-carousel[data-report-ready] .report-criterion-panel {
    box-shadow: 0 1px 3px #263c5014, 0 .55rem 1.2rem -.45rem #263c503b;
    transition: transform .38s cubic-bezier(.2,.75,.25,1), opacity .26s;
  }
  .report-carousel[data-report-ready] .report-criterion-feedback {
    max-block-size: clamp(16rem, 52svh, 27rem);
    overflow: hidden auto;
  }
  .report-carousel[data-report-ready] .report-criterion-feedback:focus-visible {
    outline: 2px solid var(--report-blue);
    outline-offset: 2px;
  }
  .report-carousel[data-report-ready] .report-rubric .table-responsive {
    max-block-size: clamp(14rem, 46svh, 24rem);
    overflow: auto;
  }
  .report-carousel-slide:is([data-report-side="previous"], [data-report-side="next"]) .report-criterion-panel {
    opacity: .55;
    transform: perspective(65rem) translateY(.65rem) rotateY(var(--report-card-tilt)) scale(.94);
    transform-origin: var(--report-card-origin) top;
  }
  .report-carousel-slide[data-report-side="previous"] { --report-card-origin: right; --report-card-tilt: 9deg; }
  .report-carousel-slide[data-report-side="next"] { --report-card-origin: left; --report-card-tilt: -9deg; }
  @media (hover: hover) {
    .report-carousel-slide:is([data-report-side="previous"], [data-report-side="next"]):hover > .report-criterion-panel {
      opacity: .82;
    }
  }
  .report-carousel-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .report-carousel-jump {
    display: grid;
    place-items: center;
    flex: 0 1 auto;
    inline-size: clamp(24px, 5.7vw, 34px);
    min-inline-size: 24px;
    min-block-size: 44px;
    border: 0;
    border-radius: .5rem;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }
  .report-carousel-jump::before {
    content: "";
    width: .35rem;
    height: .35rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--report-blue) 78%, var(--report-paper));
    transition: width .26s, background-color .16s;
  }
  .report-carousel-jump:hover::before { background: var(--report-hero); }
  .report-carousel-jump[aria-current="true"]::before { width: min(1.25rem, 80%); background: var(--report-blue); }
  .report-carousel-jump:focus-visible { outline: 2px solid var(--report-blue); outline-offset: -3px; }
}
@media (max-width: 40rem) {
  .report-feedback .report-carousel-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 0;
  }
  .report-feedback .report-carousel-header h2 { grid-column: 1 / -1; }
  .report-carousel-pagination { justify-content: flex-start; }
}

.report-feedback .report-criterion-panel {
  min-width: 0;
  padding: clamp(.85rem, 2.6vw, 1.75rem);
  border: 1px solid var(--report-line);
  border-radius: 1rem;
  background: var(--report-paper);
  background: linear-gradient(145deg, var(--report-card-tint), color-mix(in srgb, var(--report-card-tint) 40%, var(--report-paper)));
}
.report-feedback .report-criterion-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}
.report-feedback .report-criterion-panel > header h3 {
  flex: 1 1 11rem;
  min-width: 0;
  margin: 0;
  color: var(--report-ink);
  font-size: clamp(1.23rem, 2.7vw, 1.72rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.report-feedback .report-criterion-key {
  display: block;
  margin-bottom: .28rem;
  color: var(--report-blue);
  font-size: .82rem;
  letter-spacing: 0;
  font-weight: 650;
}
.report-criterion-rating { min-width: 0; max-width: 100%; }
.report-criterion-rating .report-stars {
  justify-content: center;
  gap: .22rem;
  max-width: 100%;
  padding: .55rem .72rem;
  border: 1px solid color-mix(in srgb, currentColor 24%, white);
  border-radius: .7rem;
  background: color-mix(in srgb, currentColor 7%, white);
}
.report-criterion-rating .report-stars .star { width: 1.08rem; height: 1.08rem; }
.report-criterion-rating .report-rating-value {
  margin-inline: 0 .3rem;
  order: -1;
  font-size: 1.45rem;
  line-height: 1.05;
}
.report-criterion-rating .report-rating-unavailable { margin: 0; color: var(--report-muted); font-size: .875rem; }
.report-feedback .report-mark {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  padding: .4rem .8rem .46rem;
  border-radius: .7rem;
  background: linear-gradient(145deg, var(--report-blue), var(--report-hero));
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.report-feedback .report-mark span { color: var(--report-hero-muted); font-size: .58em; font-weight: 600; }
.report-feedback .report-mark--pending { font-size: .875rem; }
.report-feedback .report-criterion-panel .report-criterion-feedback {
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px solid var(--report-line);
}
.report-feedback .report-criterion-panel .report-criterion-feedback p { max-width: 72ch; text-wrap: pretty; }
.report-criterion-feedback p:has(> br) { white-space: normal; }
.report-feedback .report-carousel > .report-score-note { margin: .8rem .4rem .15rem; text-align: center; }
.report-feedback details.report-rubric {
  margin-top: .65rem;
  padding-inline: .8rem;
  border: 1px solid var(--report-line);
  border-radius: var(--report-radius);
  background: var(--report-paper);
}
.report-feedback details.report-rubric summary:hover { color: var(--report-ink); text-decoration: underline; text-underline-offset: .22em; }
.report-feedback .report-rubric .table-responsive { max-width: 100%; margin-bottom: .8rem; overflow-x: auto; }
.report-carousel .report-rubric .table-responsive { overscroll-behavior-inline: contain; }
.report-feedback .report-rubric-table thead th { background: var(--report-tint); color: var(--report-ink); border-color: var(--report-line); text-transform: none; }
.report-rubric-table thead th:first-child { width: 1%; white-space: nowrap; }
.report-feedback .report-rubric-table .report-rubric-desc { overflow-wrap: anywhere; }
.report-feedback .report-rubric-table tbody td { background: var(--report-paper); border-color: var(--report-line); }
.report-feedback .report-rubric-row--active td { background: var(--report-green-paper) !important; border-inline-start: 1px solid var(--report-line); }
.report-feedback .report-rubric-row--active td:first-child { border-inline-start: 3px solid var(--report-green); }
.report-feedback :is(.report-check-card-head,.report-check-header,.report-criterion-head) { flex-wrap: wrap; }
.report-feedback .report-criterion-name { flex-basis: 7rem; white-space: normal; overflow: visible; }
.report-feedback :is(.report-check, .report-check-card) { padding: .85rem 1rem; background: var(--report-paper); border-color: var(--report-line); }
.report-feedback .report-criterion-card { padding: .75rem .9rem; background: var(--report-paper); }
.report-feedback .report-criteria-grid { width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.report-feedback .report-criterion-rows { margin: 0; }
.report-feedback .report-criterion-row { grid-template-columns: minmax(9rem, 1fr) minmax(0, 3.4fr); gap: .65rem 1.5rem; }
.report-feedback .report-criterion-label { margin: 0; }
.report-feedback :is(.report-prose, .report-prose p, .report-prose li, .report-criterion-feedback p, .report-criterion-text, .report-advice li) {
  color: var(--report-text);
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.report-feedback .report-actions { justify-content: flex-start; }
@media (max-width: 42rem) {
  .report-feedback .report-overview:has(> .report-score), .report-feedback .report-criterion-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .report-feedback details.report-rubric { padding-inline: .55rem; }
  .report-feedback .report-rubric-table,
  .report-feedback .report-rubric-table :is(tbody, tr, td) { display: block; }
  .report-feedback .report-rubric-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .report-feedback .report-rubric-table tbody tr + tr { border-top: 1px solid var(--report-line); }
  .report-feedback .report-rubric-table tbody td { padding: .6rem .65rem; border: 0; }
  .report-feedback .report-rubric-table tbody td:first-child:not([colspan]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .55rem;
    padding-bottom: .25rem;
  }
  .report-feedback .report-rubric-table tbody .report-rubric-desc { padding-top: 0; text-align: start; }
  .report-feedback .report-rubric-badge { margin-block-start: 0; }
  .report-feedback .report-rubric-table tbody .report-rubric-row--active td { border-inline-start: 3px solid var(--report-green); }
}
@media print {
  .site-main.report-feedback .report-overview > .report-context,
  .site-main.report-feedback .report-overview .report-context-title,
  .report-feedback .report-context :is(.report-chip, .report-context-meta),
  .report-feedback .report-mark, .report-feedback .report-mark span { background: var(--white); color: var(--report-ink); }
  .report-carousel :is(.report-carousel-controls, .report-carousel-pagination) { display: none; }
  .report-feedback .report-criterion-panel { background: var(--report-paper); break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  .report-carousel .report-criterion-panel,
  .report-carousel-arrow, .report-carousel-jump::before { transition: none; }
}
@media (forced-colors: active) {
  .report-meter-track,.report-meter-bar { forced-color-adjust: none; }
  .report-meter-track { border: 1px solid CanvasText; background: Canvas; }
  .report-meter-bar { background: Highlight; }
  .report-carousel[data-report-ready] .report-carousel-cards { mask-image: none; }
  .report-carousel-jump::before { border: 1px solid CanvasText; }
  .report-carousel-jump[aria-current="true"]::before { border-color: Highlight; }
  .report-carousel-jump:focus-visible { outline-color: Highlight; }
}
