/* Connectry Eval: only what the admin's grammar lacks. Status tones come from admin.css (--s-ok, --s-warn, --s-danger). */
button.row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.row.click[aria-current="true"] { background: var(--active); border-radius: 10px; }
.h1 .pv-tag, .lead .pv-tag, .row .pv-tag { margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
/* Spacing the mockup set inline; the page policy allows no style attributes. */
.ev-sprite { position: absolute; }
.rnav.ev-first { margin-top: 14px; }
.ev-who { min-width: 0; }
.sect.ev-group { margin-top: 12px; }

/* Rail: the later section, shown but not a link. */
.rnav .ev-later { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--faint); font-size: 14px; font-weight: 500; cursor: default; opacity: .7; }
.rnav .ev-later svg { flex: none; width: 18px; height: 18px; }
.rnav .ev-later .pv-tag { margin-left: auto; }
@media (max-width: 760px) { .bottom-tabs { grid-template-columns: repeat(5, 1fr); } }

/* Set version stamp and the hidden marker. */
.ev-stamp { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12px; line-height: 18px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.row .ev-stamp { margin-left: 6px; vertical-align: 1px; }
.sh-head .act { flex-wrap: wrap; justify-content: flex-end; }
.ev-hidbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 28px; font-size: 13px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--s-warn) 18%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--s-warn) 45%, transparent); }
.ev-hidbar i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-warn); }

/* The trace: six steps of the harness in a row. */
.ev-trace { padding-bottom: 20px; }
.ev-trace .sect { align-items: center; }
.ev-verdict { margin: 4px 0 16px; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--ink); }
.ev-verdict.info { font-size: 15px; font-weight: 400; color: var(--muted); }
.ev-steps { display: grid; grid-template-columns: 1fr 1.25fr 1.45fr 1fr 1fr .85fr; gap: 18px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.ev-step { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-card); background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.ev-step:not(:last-child)::after { content: ""; position: absolute; top: 20px; right: -13px; width: 7px; height: 7px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg); }
.ev-step.bad { background: color-mix(in srgb, var(--s-danger) 9%, transparent); box-shadow: inset 0 0 0 1.5px var(--s-danger); }
.ev-step.warn { background: color-mix(in srgb, var(--s-warn) 12%, transparent); box-shadow: inset 0 0 0 1.5px var(--s-warn); }
.ev-step.after .ev-what { opacity: .72; }
.ev-sh { display: flex; align-items: center; gap: 8px; }
.ev-sh h3 { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--ink); }
.ev-n { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 500; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.ev-cap { font-size: 12px; line-height: 16px; color: var(--faint); }
.ev-state .st { min-width: 0; font-size: 12px; }
.ev-what { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--body); min-width: 0; overflow-wrap: anywhere; }
.ev-what small { font-size: 12px; color: var(--faint); }
.ev-what .st { min-width: 0; }
.ev-big { font-size: 17px; line-height: 22px; font-weight: 500; color: var(--ink); }
.ev-q { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.ev-note, .ev-reason { color: var(--body); }
.ev-count { margin-top: auto; padding-top: 4px; }
.ev-count .st { align-items: flex-start; font-size: 12px; font-weight: 400; color: var(--muted); white-space: normal; }
.ev-count .st i { margin-top: 5px; }
.ev-mem { padding: 8px 10px; border-radius: var(--radius-tile); background: var(--panel-hover); box-shadow: inset 0 0 0 1px var(--line); }
.ev-mem.right { box-shadow: inset 0 0 0 1.5px var(--acc); }
.ev-mem p { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ev-tag { display: block; margin-bottom: 2px; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ev-mem.right .ev-tag { color: var(--acc); }
.ev-hits { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ev-hits li { display: flex; gap: 8px; padding: 5px 6px; border-radius: 8px; }
.ev-hits li.right { background: var(--active); box-shadow: inset 0 0 0 1.5px var(--acc); }
.ev-hits li p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.ev-hits li em { display: block; font-style: normal; font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ev-hits li.right em { color: var(--acc); }
.ev-hits li.flag em { color: var(--ink); }
.ev-rk { flex: none; width: 14px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ev-miss { font-weight: 500; color: var(--ink); }
.ev-ans { margin: 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--acc); color: var(--ink); font-size: 14px; line-height: 20px; }

/* Where it went wrong, in the question list. */
.ev-where { color: var(--ink); font-weight: 500; }
.ev-where.bad::before, .ev-where.warn::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 2px; background: var(--s-danger); }
.ev-where.warn::before { background: var(--s-warn); }
.ev-passed summary { cursor: pointer; list-style: none; align-items: center; }
.ev-passed summary::-webkit-details-marker { display: none; }
.ev-more { font-size: 13px; color: var(--muted); }
.ev-passed[open] .ev-more { color: var(--ink); }
.ev-passed > .rows { margin-top: 6px; padding-bottom: 8px; }

/* Trend: a dashed line where the set version changed. */
.ev-trend { position: relative; }
.ev-vmark { position: absolute; top: 24px; height: 176px; left: calc(44px + (100% - 56px) * var(--f)); border-left: 1.5px dashed var(--muted); pointer-events: none; }
.ev-vmark span { position: absolute; top: -22px; left: 6px; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--muted); }
.sw.ev-vk { width: 0; height: 12px; border-radius: 0; background: none; border-left: 1.5px dashed var(--muted); }
.cn small { font-size: 12px; color: var(--faint); font-weight: 400; }

/* Narrower screens: the six steps stack top to bottom, arrows point down. */
@media (max-width: 1180px) {
  .ev-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ev-step:not(:last-child)::after { top: auto; bottom: -15px; right: auto; left: 22px; transform: rotate(135deg); }
}
@media (max-width: 760px) {
  .ev-hidbar { padding: 8px 16px; }
  .ev-vmark span { display: none; }
  .row .ev-stamp { display: none; }
}
