.eval-shell {
  max-width: 1180px;
  padding-top: 28px;
  padding-bottom: 64px;
}
.eval-shell .panel {
  border-radius: 24px;
  box-shadow: 0 10px 36px rgba(67, 44, 12, .045), 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.eval-nav, .eval-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.eval-nav {
  padding: 0 4px 20px;
  margin-bottom: 8px;
  font-size: .78rem;
  color: var(--muted);
}
.eval-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.eval-nav a:hover { color: #8a5d13; }
.eval-nav > span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, .55);
  font-size: .69rem;
  letter-spacing: .03em;
}
.eval-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 46px 42px !important;
  background: linear-gradient(120deg, #fffaf2 12%, #f0e3cf 100%);
}
.eval-hero::before, .eval-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(196, 138, 46, .22);
  border-radius: 36px;
  transform: rotate(-22deg);
  pointer-events: none;
}
.eval-hero::before { right: -40px; top: -135px; box-shadow: 0 0 0 24px rgba(196, 138, 46, .025), 0 0 0 48px rgba(196, 138, 46, .025); }
.eval-hero::after { right: -100px; bottom: -190px; width: 380px; height: 380px; }
.eval-hero .section-label { color: #8a5d13; font-size: .7rem; letter-spacing: .12em; }
.eval-hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 1.04;
  margin: 12px 0 18px;
}
.eval-hero > p:last-child { max-width: 70ch; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.75; }
#evalStatus, #evalContent > * { margin-top: 24px; }
.eval-shell [hidden] { display: none; }
.eval-heading { margin-bottom: 26px; align-items: flex-end; }
.eval-heading .section-label { margin-bottom: 9px; font-size: .67rem; }
.eval-heading h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
#evalDataset { margin: 0; max-width: 34ch; font-size: .73rem; line-height: 1.6; }
.eval-summary, .eval-decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.eval-summary article, .eval-decisions article, .eval-source {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .55);
  overflow-wrap: anywhere;
}
.eval-summary article { position: relative; overflow: hidden; padding: 26px; }
.eval-summary article::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: rgba(28, 26, 23, .16); }
.eval-summary article:nth-child(2) {
  background: linear-gradient(145deg, #edf4eb, #f6f8ee);
  border-color: rgba(47, 107, 73, .22);
}
.eval-summary article:nth-child(2)::before { background: var(--green); }
.eval-summary article:nth-child(2) > strong { color: var(--green); }
.eval-summary article:nth-child(3) { background: linear-gradient(145deg, rgba(196, 138, 46, .08), rgba(255, 255, 255, .5)); }
.eval-summary article:nth-child(3)::before { background: var(--gold); }
.eval-summary .section-label { font-size: .66rem; letter-spacing: .11em; }
.eval-summary strong {
  display: block;
  margin: 21px 0 12px;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.eval-summary article > span:not(.section-label) { font-size: .8rem; }
.eval-summary small { display: inline-block; margin-top: 9px; }
.eval-summary small, .eval-decisions p, .eval-source p { color: var(--muted); font-size: .78rem; line-height: 1.6; }
#evalScope { margin: 20px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); font-size: .76rem; line-height: 1.7; }
.eval-filter { gap: 6px; }
.eval-filter > span { font-size: .68rem; }
.eval-filter select { min-width: 164px; border-radius: 11px; padding: 10px 13px; font-size: .8rem; }
.eval-case-list { display: grid; gap: 10px; }
.eval-case { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: rgba(255, 255, 255, .32); transition: border-color .18s ease, box-shadow .18s ease; }
.eval-case:hover { border-color: rgba(196, 138, 46, .5); }
.eval-case[open] { border-color: rgba(196, 138, 46, .42); box-shadow: 0 4px 16px rgba(67, 44, 12, .035); background: rgba(255, 251, 245, .9); }
.eval-case > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 20px 22px;
  list-style: none;
}
.eval-case > summary::-webkit-details-marker { display: none; }
.eval-case > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); flex: 0 0 6px; transition: transform .18s ease; }
.eval-case[open] > summary::before { transform: rotate(45deg); }
.eval-case > summary strong { flex: 1; font-size: .85rem; font-weight: 500; line-height: 1.5; }
.eval-case > summary .eval-pill { flex-shrink: 0; }
.eval-case-body { padding: 0 22px 22px; display: grid; gap: 16px; }
.eval-case-body > p { margin: 0; font-size: .82rem; line-height: 1.65; }
.eval-case-body > p.field-hint { font-size: .69rem; border-top: 1px solid var(--line); padding-top: 18px; }
.eval-case-body > p:nth-of-type(3) { padding: 17px 18px; background: var(--gold-soft); border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; }
.eval-pill { display: inline-block; background: #efe8dc; border-radius: 999px; padding: 5px 9px; font-size: .65rem; font-weight: 700; line-height: 1.35; }
.eval-pill.good { color: #245131; background: #e2eee3; }
.eval-pill.bad { color: #832f2d; background: #f9e5e1; }
.eval-decisions { gap: 10px; }
.eval-decisions article { padding: 18px; border-radius: 12px; }
.eval-decisions article > .field-hint { font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.eval-decisions article:first-child { background: rgba(196, 138, 46, .055); }
.eval-decisions strong { display: block; margin: 11px 0; font-size: .87rem; }
.eval-decisions p { margin: 12px 0 0; }
.eval-sources { display: grid; gap: 8px; padding-top: 3px; }
.eval-sources > summary { color: #80520f; cursor: pointer; font-size: .76rem; font-weight: 500; }
.eval-source { margin-top: 8px; padding: 18px; border-radius: 12px; }
.eval-source > strong { font-size: .79rem; }
.eval-source p { margin: 6px 0; font-size: .73rem; }
.eval-source blockquote { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--gold); font-size: .83rem; line-height: 1.65; }
.eval-shell code { overflow-wrap: anywhere; font-size: .85em; }
.eval-method > summary { cursor: pointer; font-size: .88rem; font-weight: 500; }
#evalMethod { margin-top: 22px; padding-top: 4px; border-top: 1px solid var(--line); }
#evalMethod p { font-size: .79rem; line-height: 1.75; color: var(--muted); }
.eval-shell :is(a, summary, select):focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 800px) {
  .eval-hero { padding: 34px 28px !important; }
  .eval-summary { gap: 10px; }
  .eval-summary article { padding: 20px; }
  .eval-summary strong { font-size: 2.3rem; }
}
@media (max-width: 640px) {
  .eval-shell { width: calc(100% - 28px); padding-top: 20px; }
  .eval-nav { gap: 12px; font-size: .73rem; }
  .eval-nav > span { font-size: .6rem; }
  .eval-shell .panel { padding: 20px; border-radius: 20px; }
  .eval-hero { padding: 28px 23px !important; }
  .eval-hero h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .eval-hero > p:last-child { font-size: .82rem; }
  .eval-hero .section-label { max-width: 25ch; line-height: 1.6; }
  .eval-heading { gap: 18px; margin-bottom: 20px; }
  .eval-heading h2 { font-size: 2rem; }
  .eval-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .eval-summary article { padding: 18px 15px; }
  .eval-summary strong { font-size: 2.25rem; margin-top: 17px; }
  .eval-summary small { font-size: .68rem; }
  .eval-summary article:last-child { grid-column: 1 / -1; }
  .eval-summary article:last-child strong { display: inline-block; margin: 0 0 0 14px; font-size: 1.7rem; }
  .eval-summary article:last-child small { display: block; }
  .eval-filter { width: 100%; }
  .eval-filter select { width: 100%; }
  .eval-decisions { grid-template-columns: 1fr; }
  .eval-case > summary { gap: 10px; padding: 16px 13px; flex-wrap: wrap; }
  .eval-case > summary strong { min-width: 140px; font-size: .8rem; }
  .eval-case > summary .eval-pill { font-size: .61rem; }
  .eval-case-body { padding: 0 14px 18px; gap: 14px; }
  .eval-case-body > p { font-size: .78rem; }
  .eval-case-body > p.field-hint { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .eval-case, .eval-case > summary::before { transition: none; }
}
