/* EPUB validator: the drop zone, the progress, the report and the repaired file, on top of /style.css and /tools/tools.css. */

.ev-title { max-width: 15em; margin-inline: auto; text-wrap: balance; }
.ev-title .gold-italic { display: block; }
.ev-lead { text-wrap: balance; }
.ev-h2, .ev-cta-title, .ev-verdict-line { text-wrap: balance; }
.ev-on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .ev-on-mouse { display: none; }
  .ev-on-touch { display: inline; }
}
/* the glass shine sits over the panel; its content goes above it */
.ev-pane, .ev-sum > *, .ev-twin-col > *, .ev-cta > *, .ev-check > *, .ev-honest > * { position: relative; }
.ev-sum .btn-glass { border-color: rgba(29, 42, 69, 0.14); }
.ev-card { padding: 18px; overflow: hidden; transition: box-shadow 0.4s var(--ease-out); }
.ev-card.is-drag:not([data-state="start"]) { box-shadow: var(--glass-shadow), 0 0 0 2px var(--gold-line), 0 0 0 8px rgba(168, 133, 76, 0.12); }
.ev-fixing { margin-top: 16px; }
.ev-fixing .ev-bar { width: 100%; margin-top: 0; }
.ev-fixing .status { margin-top: 4px; }
.ev-field input[aria-invalid="true"] { border-color: var(--bad); }
.ev-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ev-pane { min-width: 0; }
.anim .ev-pane.is-entering { animation: ev-in 0.5s var(--ease-out) both; }
@keyframes ev-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- the drop zone ---------- */
.ev-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 330px;
  padding: 34px 20px 30px;
  border-radius: 24px;
  border: 1.5px dashed rgba(168, 133, 76, 0.55);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 252, 245, 0.32));
  transition: border-color 0.35s var(--ease-out), background-color 0.35s, box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.ev-drop::after {   /* a warm glow that comes up when a file is held over the zone */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(70% 60% at 50% 40%, rgba(226, 196, 126, 0.32), transparent 70%);
  transition: opacity 0.4s var(--ease-out);
}
.ev-drop:hover { border-color: rgba(168, 133, 76, 0.85); }
.ev-drop.is-over {
  border-style: solid;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 6px rgba(168, 133, 76, 0.12), 0 28px 60px -30px rgba(125, 96, 48, 0.55);
  transform: scale(1.008);
}
.ev-drop.is-over::after { opacity: 1; }
.ev-art { position: relative; z-index: 1; width: 140px; height: 120px; margin-bottom: 6px; }
.ev-art svg { overflow: visible; }
.ev-page, .ev-badge { transform-box: fill-box; transition: transform 0.55s var(--ease-out); }
.ev-page { transform-origin: 50% 100%; }
.ev-page-back { transform: rotate(-9deg) translateX(-4px); }
.ev-page-mid { transform: rotate(5deg) translateX(3px); }
.ev-badge { transform-origin: 50% 50%; }
.ev-drop:hover .ev-page-back { transform: rotate(-13deg) translate(-8px, -1px); }
.ev-drop:hover .ev-page-mid { transform: rotate(8deg) translate(6px, -2px); }
.ev-drop:hover .ev-page-front { transform: translateY(-3px); }
.ev-drop.is-over .ev-page-back { transform: rotate(-16deg) translate(-12px, -3px); }
.ev-drop.is-over .ev-page-mid { transform: rotate(11deg) translate(10px, -4px); }
.ev-drop.is-over .ev-page-front { transform: translateY(-10px); }
.ev-drop.is-over .ev-badge { transform: scale(1.12) translateY(-4px); }
.ev-drop-title { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(1.7rem, 4.2vw, 2.15rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.ev-when-over { display: none; }
.ev-drop.is-over .ev-when-idle { display: none; }
.ev-drop.is-over .ev-when-over { display: inline; }
.ev-drop-sub, .ev-choose, .ev-drop-fine { transition: opacity 0.35s var(--ease-out); }
.ev-drop.is-over .ev-drop-sub, .ev-drop.is-over .ev-choose, .ev-drop.is-over .ev-drop-fine { opacity: 0.3; }
.ev-drop-sub { position: relative; z-index: 1; margin-top: 6px; font-size: 15px; color: var(--ink-mute); }
.ev-choose { position: relative; z-index: 1; margin-top: 18px; }
.btn.ev-choose:hover, .ev-btn:hover { transform: scale(1.03); }
.btn.ev-choose:active, .ev-btn:active { transform: scale(0.97); }
.ev-drop-fine { position: relative; z-index: 1; margin-top: 16px; font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-mute); }

.ev-promises { display: grid; gap: 10px; margin-top: 18px; padding: 0 4px; }
.ev-promises li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.ev-promise-i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--gold-deep); background: rgba(226, 196, 126, 0.22); box-shadow: inset 0 0 0 1px rgba(168, 133, 76, 0.3); }
.ev-sample-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 8px; margin-top: 16px; font-size: 14px; color: var(--ink-mute); }
.ev-link {
  min-height: 44px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 0.2s;
}
.ev-link:hover { color: var(--ink); }

/* ---------- working ---------- */
/* the drop zone turns into the progress: same surface, same size */
.ev-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 330px;
  padding: 30px 16px;
  border-radius: 24px;
  border: 1.5px solid rgba(168, 133, 76, 0.38);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 252, 245, 0.32));
}
.ev-busy-art { width: 64px; height: 64px; }
.anim .ev-ring { transform-origin: 32px 32px; animation: ev-spin 1.3s linear infinite; }
@keyframes ev-spin { to { transform: rotate(360deg); } }
.ev-busy-name { margin-top: 18px; max-width: 100%; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.ev-bar { position: relative; width: min(100%, 420px); height: 6px; margin-top: 18px; border-radius: 99px; background: rgba(29, 42, 69, 0.08); overflow: hidden; }
.ev-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #b08a45, #e2c47e); transition: width 0.35s var(--ease-out); }
.anim .ev-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: ev-sheen 1.4s ease-in-out infinite; }
@keyframes ev-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ev-busy-step { margin-top: 12px; font-size: 14px; color: var(--ink-mute); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- the report: the summary card ----------
   The book, the verdict and the action, in one card that fits on a laptop screen. */
.ev-sum { border-radius: 24px; padding: 20px 18px 20px; outline: none; }
.ev-report-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ev-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ev-kicker .eyebrow { font-size: 11.5px; }
.ev-book-meta { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--ink-mute); font-variant-numeric: lining-nums; }
.ev-book-meta span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ev-book-meta span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-line); }
.ev-book { margin-top: 4px; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 600; line-height: 1.14; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; outline: none; }
.ev-book-file { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-mute); min-width: 0; }
.ev-book-file svg { flex: none; }
.ev-book-file span { overflow-wrap: anywhere; }
.ev-nw { white-space: nowrap; }

.ev-verdict { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(29, 42, 69, 0.09); min-width: 0; }
.ev-seal { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; box-shadow: 0 10px 22px -12px rgba(29, 42, 69, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.ev-seal svg { width: 22px; height: 22px; }
.is-bad .ev-seal { background: linear-gradient(150deg, #b0463a, var(--bad)); }
.is-warn .ev-seal { background: linear-gradient(150deg, #a2701b, var(--warn)); }
.is-good .ev-seal { background: linear-gradient(150deg, #c9a05a, #8a6a2f); }
.ev-verdict-text { min-width: 0; }
.ev-verdict-line { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.ev-verdict-sub { margin-top: 3px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.anim .ev-sum .ev-seal { animation: ev-pop 0.6s var(--ease-out) 0.12s both; }
@keyframes ev-pop { from { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.06); } }
.ev-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 6px; font-size: 13.5px; color: var(--ink-mute); }
.ev-compare b { font-weight: 600; color: var(--ink); }
.ev-compare .ev-arrow { color: var(--gold-line); }

.ev-action { margin-top: 16px; }
.ev-fields { display: grid; gap: 10px; }
.ev-field label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.ev-field input, .ev-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--field-brd);
  background: var(--field-bg);
  box-shadow: inset 0 1px 2px rgba(29, 42, 69, 0.06);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s, background-color 0.2s;
}
.ev-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.ev-field input:hover, .ev-field select:hover { border-color: rgba(29, 42, 69, 0.3); }
.ev-field input:focus-visible, .ev-field select:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-radius: 13px; background-color: #fff; }
.ev-action .f-hint { margin-top: 6px; font-size: 12.5px; }
.ev-cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ev-action > .ev-cta-row:first-child, .ev-action > .status + .ev-cta-row { margin-top: 0; }
.ev-action > .status + .ev-cta-row { margin-top: 14px; }
.ev-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-btn { transition: transform 0.2s var(--ease-out), box-shadow 0.2s, opacity 0.2s; }
.ev-btn svg { margin-right: 8px; }
.ev-btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.ev-fine { font-size: 13px; line-height: 1.55; color: var(--ink-mute); text-wrap: pretty; }
.ev-verdict-sub, .ev-why, .ev-do, .ev-note { text-wrap: pretty; }
.ev-fname { font-weight: 600; color: var(--ink-soft); overflow-wrap: anywhere; }
.ev-download { max-width: 100%; }
.ev-download span { overflow: hidden; text-overflow: ellipsis; }
.ev-note { margin-top: 14px; border-radius: 14px; padding: 11px 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); background: rgba(226, 196, 126, 0.16); box-shadow: inset 0 0 0 1px rgba(168, 133, 76, 0.26); }
.ev-note strong { color: var(--ink); font-weight: 600; }

/* ---------- the report: the panel ----------
   Tabs on top, then a list of a bounded height that scrolls inside, with a soft fade
   at the top and the bottom only when there is more to see. */
@property --ev-ft { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ev-fb { syntax: "<length>"; inherits: false; initial-value: 0px; }
.ev-panel {
  margin-top: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px -32px rgba(29, 42, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ev-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-bottom: 1px solid rgba(29, 42, 69, 0.07); }
.ev-panel-title { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ev-panel-title .ev-tab-n { background: var(--bad); color: #fff; }

/* the tabs: a segmented control, a white pill slides under the chosen one */
.ev-tabs {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: rgba(29, 42, 69, 0.055);
  box-shadow: inset 0 1px 2px rgba(29, 42, 69, 0.07);
}
.ev-ink {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n, 3));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px -10px rgba(29, 42, 69, 0.55), 0 0 0 1px rgba(168, 133, 76, 0.2);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}
.ev-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.ev-tab:hover { color: var(--ink); }
.ev-tab[aria-selected="true"] { color: var(--ink); }
.ev-tab:focus-visible { outline-offset: -2px; border-radius: 999px; }
.ev-tab .l-short { display: none; }
.ev-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); }
.t-error .ev-dot, .ev-dot.t-error { background: var(--bad); }
.t-warning .ev-dot, .ev-dot.t-warning { background: var(--warn); }
.t-good .ev-dot { background: var(--ok); }
.t-done .ev-dot { background: var(--gold-line); }
.ev-tab-n {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(29, 42, 69, 0.07);
  font-variant-numeric: lining-nums tabular-nums;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.ev-tab[aria-selected="true"] .ev-tab-n { color: #fff; background: var(--ink-soft); }
.t-error[aria-selected="true"] .ev-tab-n { background: var(--bad); }
.t-warning[aria-selected="true"] .ev-tab-n { background: var(--warn); }
.t-good[aria-selected="true"] .ev-tab-n { background: var(--ok); }
.t-done[aria-selected="true"] .ev-tab-n { background: var(--gold-deep); }
.ev-tab.is-zero:not([aria-selected="true"]) { color: rgba(92, 101, 128, 0.75); }
.ev-tab.is-zero[aria-selected="true"] .ev-tab-n { color: var(--ink-soft); background: rgba(29, 42, 69, 0.1); }
.ev-tab.is-zero .ev-dot { opacity: 0.4; }

/* the list: a bounded height, a thin gold scrollbar, fades only where there is more */
.ev-scroll {
  position: relative;
  max-height: min(500px, 62vh);
  overflow-y: auto;
  overflow-anchor: none;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 133, 76, 0.5) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ev-ft), #000 calc(100% - var(--ev-fb)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--ev-ft), #000 calc(100% - var(--ev-fb)), transparent 100%);
  transition: --ev-ft 0.3s var(--ease-out), --ev-fb 0.3s var(--ease-out);
}
.ev-scroll.has-above { --ev-ft: 26px; }
.ev-scroll.has-below { --ev-fb: 48px; }
.ev-scroll::-webkit-scrollbar { width: 6px; }
.ev-scroll::-webkit-scrollbar-track { background: transparent; }
.ev-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(168, 133, 76, 0.45); }
.ev-tp { outline: none; border-radius: 16px; }
.ev-tp:focus-visible { box-shadow: inset 0 0 0 2px var(--gold-deep); }

/* one row per kind of problem */
.ev-rows { display: flex; flex-direction: column; }
.ev-row { position: relative; border-radius: 15px; transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.ev-row + .ev-row::before { content: ""; position: absolute; top: 0; left: 50px; right: 14px; height: 1px; background: rgba(29, 42, 69, 0.075); transition: opacity 0.3s; }
.ev-row.is-open::before, .ev-row.is-open + .ev-row::before { opacity: 0; }
.ev-row.is-open { background: rgba(255, 255, 255, 0.78); box-shadow: 0 14px 30px -24px rgba(29, 42, 69, 0.55), inset 0 0 0 1px rgba(168, 133, 76, 0.22); }
.ev-row-h { font: inherit; }
.ev-row-btn {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto 16px;
  grid-template-areas: "sev title meta chev";
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  min-height: 56px;
  padding: 9px 14px;
  border-radius: 15px;
  text-align: left;
  transition: background-color 0.25s var(--ease-out);
}
button.ev-row-btn:hover { background: rgba(255, 255, 255, 0.6); }
.ev-row.is-open button.ev-row-btn:hover { background: transparent; }
.ev-row-btn:focus-visible { outline-offset: -2px; border-radius: 15px; }
.ev-sev { grid-area: sev; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--ink-mute); }
.ev-sev svg { width: 14px; height: 14px; }
.sev-error .ev-sev { background: var(--bad); }
.sev-warning .ev-sev { background: var(--warn); }
.sev-done .ev-sev { color: var(--gold-deep); background: rgba(226, 196, 126, 0.3); box-shadow: inset 0 0 0 1px rgba(168, 133, 76, 0.38); }
.sev-done .ev-sev svg { width: 12px; height: 12px; }
.ev-row-title {
  grid-area: title;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ev-row.is-open .ev-row-title { -webkit-line-clamp: unset; line-clamp: none; }
.ev-row-meta { grid-area: meta; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.ev-row-meta:empty { display: none; }
.ev-row-n { font-size: 13px; font-weight: 500; color: var(--ink-mute); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
/* "Auto-fix" and "Repaired" stay quiet (most rows have them); "Needs you" stands out */
.ev-flag { display: inline-flex; align-items: center; gap: 5px; height: 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.ev-flag svg { flex: none; }
.f-auto { color: var(--gold-deep); }
.f-done { color: #3f5f39; }
.f-done svg { color: var(--ok); }
.f-you { padding: 0 10px 0 8px; border-radius: 999px; color: var(--ink); background: rgba(29, 42, 69, 0.075); box-shadow: inset 0 0 0 1px rgba(29, 42, 69, 0.1); }
.ev-row-n + .ev-flag::before { content: ""; width: 3px; height: 3px; margin-right: 5px; border-radius: 50%; background: var(--gold-line); }
.ev-row-n + .f-you::before { display: none; }
.ev-chev { grid-area: chev; justify-self: center; width: 8px; height: 8px; margin-top: -4px; border-right: 1.6px solid var(--gold-deep); border-bottom: 1.6px solid var(--gold-deep); transform: rotate(45deg); transition: transform 0.4s var(--ease-out); }
.ev-row.is-open .ev-chev { transform: translateY(5px) rotate(-135deg); }
.ev-row.is-past .ev-sev { opacity: 0.5; }
.ev-row.is-still .ev-row-btn { cursor: default; }
.ev-row.is-still .ev-row-btn::after { content: ""; grid-area: chev; }
.anim .ev-row.is-entering { animation: ev-rise 0.45s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes ev-rise { from { opacity: 0; transform: translateY(8px); } }

/* an open row */
.ev-row-inner { padding: 0 18px 16px 50px; }
.ev-why { font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); }
.ev-do { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.ev-do strong { color: var(--ink); font-weight: 600; }
.ev-where { margin-top: 12px; }
.ev-where-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ev-where-head.is-code { justify-content: flex-start; margin-bottom: 0; }
.ev-where-t { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.ev-code { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); background: rgba(29, 42, 69, 0.06); white-space: nowrap; }
.ev-places { display: grid; grid-template-columns: minmax(0, 1fr); padding: 4px 0; border-radius: 12px; background: rgba(246, 241, 230, 0.7); box-shadow: inset 0 0 0 1px rgba(29, 42, 69, 0.06); }
.ev-places li { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 6px 12px; }
.ev-places li + li { border-top: 1px solid rgba(29, 42, 69, 0.05); }
.p-path { min-width: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 12.5px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.p-dir { color: var(--ink-mute); }
.p-book { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.p-d { min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ink-mute); overflow-wrap: anywhere; }
.ev-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 8px; }
.ev-more-n { font-size: 13px; font-style: italic; color: var(--ink-mute); }
.ev-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(29, 42, 69, 0.12);
  box-shadow: 0 6px 14px -12px rgba(29, 42, 69, 0.5);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), color 0.2s;
}
.ev-copy svg { flex: none; color: var(--gold-deep); }
.ev-copy svg + svg { display: none; }
.ev-copy:hover { background: #fff; border-color: rgba(168, 133, 76, 0.5); }
.ev-copy:active { transform: scale(0.97); }
.ev-copy.is-done { color: #3f5f39; border-color: rgba(77, 115, 69, 0.35); }
.ev-copy.is-done svg { display: none; }
.ev-copy.is-done svg + svg { display: block; color: var(--ok); }

/* looks good: small ticks on two columns, then the neutral notes */
.ev-good { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; padding: 4px 10px; }
.ev-good li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid rgba(29, 42, 69, 0.06); font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ev-tick { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0; border-radius: 50%; color: var(--ok); background: rgba(77, 115, 69, 0.13); }
.ev-sub-h { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); }
.ev-empty { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 120px; padding: 20px; text-align: left; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.ev-empty strong { color: var(--ink); font-weight: 600; }
.ev-empty-i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--gold-deep); background: rgba(226, 196, 126, 0.26); box-shadow: inset 0 0 0 1px rgba(168, 133, 76, 0.34); }

/* ---------- reference sections ---------- */
.ev-head { max-width: 46rem; margin: 0 auto; }
.ev-h2 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-top: 14px; }
.ev-head-lead { margin-top: 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.ev-checks { display: grid; gap: 14px; margin-top: 34px; }
.ev-check { border-radius: 22px; padding: 22px 22px 20px; transition: transform 0.45s var(--ease-out); }
.ev-check:hover { transform: translateY(-3px); }
.ev-check h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.ev-check p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.ev-twin { display: grid; gap: 16px; }
.ev-twin-col { border-radius: 24px; padding: 26px 22px; }
.ev-twin-col h3 { margin-top: 10px; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.ev-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ev-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.ev-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; }
.ev-list-yes li::before { background: rgba(226, 196, 126, 0.3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 L6.6 11.4 L12.5 4.8' fill='none' stroke='%237d6030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: inset 0 0 0 1px rgba(168, 133, 76, 0.35); }
.ev-list-keep li::before { background: rgba(29, 42, 69, 0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='4' y='7' width='8' height='6' rx='1.4' fill='none' stroke='%231d2a45' stroke-width='1.4'/%3E%3Cpath d='M5.8 7 V5.6 a2.2 2.2 0 0 1 4.4 0 V7' fill='none' stroke='%231d2a45' stroke-width='1.4'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ev-honest { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; border-radius: 22px; padding: 20px 22px; }
.ev-honest svg { flex: none; margin-top: 2px; }
.ev-honest p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.ev-honest strong { color: var(--ink); font-weight: 600; }
.ev-cta { border-radius: 32px; padding: 40px 22px 36px; text-align: center; }
.ev-cta-mark { margin: 0 auto; }
.ev-cta-title { margin-top: 16px; font-size: clamp(2.1rem, 5vw, 3.3rem); }
.ev-cta p { max-width: 34rem; margin: 14px auto 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.ev-cta .cta-row { margin-top: 26px; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  .ev-card { padding: 22px; }
  .ev-drop { min-height: 380px; padding: 44px 32px 36px; }
  .ev-promises { grid-template-columns: repeat(3, auto); justify-content: center; gap: 10px 26px; }
  .ev-sum { padding: 24px 26px 24px; }
  .ev-fields { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .ev-fields.is-one { grid-template-columns: minmax(0, 26rem); }
  .ev-cta-row { flex-direction: row; align-items: center; gap: 12px 18px; }
  .ev-cta-row .ev-buttons { flex: none; }
  .ev-cta-row .ev-fine { flex: 1 1 16rem; max-width: 30rem; }
  .ev-cta-row.is-stacked { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ev-cta-row.is-stacked .ev-fine { flex: none; max-width: 46rem; }
  /* the paths line up in one column, the details in the next, close to the longest path */
  .ev-places { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .ev-places li { grid-template-columns: subgrid; gap: 2px 28px; align-items: baseline; }
  @supports not (grid-template-columns: subgrid) { .ev-places li { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
  .ev-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-cta { padding: 52px 40px 46px; }
}
.ev-good li:last-child { border-bottom: 0; }
@media (min-width: 760px) {
  .ev-good { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-good li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .ev-card { padding: 28px; }
  .ev-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ev-twin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-twin-col { padding: 30px 30px 28px; }
}
@media (max-width: 639px) {
  .ev-card { padding: 12px; }
  .ev-drop, .ev-busy { min-height: 300px; padding-left: 16px; padding-right: 16px; }
  .ev-sum { padding: 18px 16px; border-radius: 22px; }
  .ev-verdict { align-items: flex-start; gap: 12px; }
  .ev-seal { width: 40px; height: 40px; }
  .ev-seal svg { width: 19px; height: 19px; }
  .ev-buttons .btn { width: 100%; }
  .ev-compare { flex-direction: column; align-items: flex-start; gap: 0; }
  .ev-compare .ev-arrow { display: none; }

  .ev-panel { margin-top: 12px; border-radius: 20px; }
  .ev-panel-head { padding: 8px; }
  .ev-tabs { display: grid; width: 100%; }
  .ev-tab { flex-direction: column-reverse; gap: 1px; min-height: 52px; padding: 4px 4px; font-size: 12px; line-height: 1.2; }
  .ev-tab .ev-dot { display: none; }
  .ev-tab .l-long { display: none; }
  .ev-tab .l-short { display: inline; }
  .ev-tab .l-long:only-of-type { display: inline; }
  .ev-tab-n { min-width: 0; height: auto; padding: 0; background: none; font-size: 17px; color: var(--ink-soft); }
  .ev-tab[aria-selected="true"] .ev-tab-n { background: none; color: var(--ink); }
  .t-error[aria-selected="true"] .ev-tab-n { background: none; color: var(--bad); }
  .t-warning[aria-selected="true"] .ev-tab-n { background: none; color: var(--warn); }
  .t-good[aria-selected="true"] .ev-tab-n { background: none; color: var(--ok); }
  .t-done[aria-selected="true"] .ev-tab-n { background: none; color: var(--gold-deep); }
  .ev-tab.is-zero[aria-selected="true"] .ev-tab-n { background: none; color: var(--ink-soft); }
  .ev-ink { border-radius: 16px; }
  .ev-tabs { border-radius: 20px; }

  .ev-scroll { max-height: 60vh; padding: 4px; }
  .ev-row-btn { grid-template-columns: 22px minmax(0, 1fr) 14px; grid-template-areas: "sev title chev" "sev meta chev"; align-items: start; align-content: center; gap: 2px 11px; min-height: 56px; padding: 11px 10px 10px; }
  .ev-flag { height: 20px; }
  .ev-row-n { line-height: 20px; }
  .ev-sev { width: 22px; height: 22px; margin-top: 0; }
  .ev-sev svg { width: 13px; height: 13px; }
  .ev-chev { align-self: center; }
  .ev-row-title { font-size: 14.5px; line-height: 1.4; -webkit-line-clamp: 3; line-clamp: 3; }
  .ev-row-meta { justify-content: flex-start; gap: 8px; }
  .ev-row + .ev-row::before { left: 43px; right: 10px; }
  .ev-row-inner { padding: 2px 14px 14px 14px; }
  .ev-why, .ev-do { font-size: 14px; }
  .ev-copy { width: 100%; justify-content: center; }
  .ev-more-n { width: 100%; }
}
@media (hover: none) {
  .ev-check:hover { transform: none; }
  .btn.ev-choose:hover, .ev-btn:hover { transform: none; }
  button.ev-row-btn:hover { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-page, .ev-badge, .ev-drop, .ev-ink, .ev-chev, .ev-row, .ev-scroll { transition: none; }
}
