/* Engine health vs baseline — teaser card + popup */
.eh-teaser {
  --eh-c: #22c55e;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem 1rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1rem;
  border-radius: 18px;
  color: #e6edf7;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56, 189, 248, .18), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(168, 85, 247, .16), transparent 55%),
    linear-gradient(160deg, #0b1324, #0f1a33);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 18px 40px rgba(2, 8, 23, .28);
  overflow: hidden;
}
.eh-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: eh-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
.eh-teaser-ring {
  --p: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(closest-side, #0d1730 78%, transparent 80% 100%),
    conic-gradient(var(--eh-c) calc(var(--p) * 1%), rgba(148, 163, 184, .18) 0);
  transition: --p 1s ease;
}
.eh-teaser-ring b { font-size: 1.45rem; font-weight: 900; line-height: 1; color: #fff; }
.eh-teaser-ring small { font-size: .68rem; color: #9fb0c8; margin-top: .2rem; }
.eh-teaser-copy .kicker { margin: 0; color: #7dd3fc; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.eh-teaser-copy h3 { margin: .15rem 0 .25rem; font-size: 1.08rem; font-weight: 900; color: #fff; }
.eh-teaser-copy p { margin: 0; font-size: .82rem; line-height: 1.7; color: #b8c6da; }
.eh-teaser-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 800;
  font-size: .92rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed 55%, #db2777);
  box-shadow: 0 10px 26px rgba(124, 58, 237, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.eh-teaser-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(124, 58, 237, .45); }
.eh-teaser-btn svg { width: 18px; height: 18px; }
.act-health {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ---------- Dialog ---------- */
.eh-dialog {
  width: min(1120px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: #e6edf7;
  background: #070d1a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.eh-dialog::backdrop { background: rgba(3, 7, 18, .72); backdrop-filter: blur(6px); }
.eh-dialog[open] { animation: eh-pop .35s cubic-bezier(.2, .9, .3, 1.2); }
.eh-shell {
  position: relative;
  max-height: 94vh;
  overflow-y: auto;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(600px 300px at 50% 110%, rgba(16, 185, 129, .12), transparent 60%),
    #070d1a;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.eh-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 420px);
  pointer-events: none;
}
.eh-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.3rem;
  background: rgba(7, 13, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.eh-top-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .4);
  flex: none;
}
.eh-top-icon svg { width: 24px; height: 24px; color: #fff; }
.eh-top h2 { margin: 0; font-size: 1.1rem; font-weight: 900; color: #fff; }
.eh-top p { margin: .1rem 0 0; font-size: .78rem; color: #94a3b8; }
.eh-close {
  margin-inline-start: auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .7);
  color: #cbd5e1;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.eh-close:hover { background: #1e293b; color: #fff; }
.eh-body { position: relative; padding: 1.2rem 1.3rem 1.5rem; display: grid; gap: 1.1rem; }

.eh-hero { display: grid; grid-template-columns: 300px 1fr; gap: 1.1rem; }
.eh-card {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(15, 23, 42, .55));
  border: 1px solid rgba(148, 163, 184, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.eh-card h3 { margin: 0 0 .7rem; font-size: .95rem; font-weight: 900; color: #f1f5f9; display: flex; align-items: center; gap: .45rem; }
.eh-card h3 small { font-weight: 600; font-size: .74rem; color: #94a3b8; }

.eh-gauge-card { display: grid; justify-items: center; text-align: center; padding-top: 1.2rem; }
.eh-gauge { position: relative; width: 230px; height: 230px; }
.eh-gauge svg { width: 100%; height: 100%; transform: rotate(135deg); overflow: visible; }
.eh-gauge .track { fill: none; stroke: rgba(148, 163, 184, .14); stroke-width: 16; stroke-linecap: round; }
.eh-gauge .ticks { fill: none; stroke: rgba(148, 163, 184, .28); stroke-width: 6; stroke-dasharray: 1.2 9.1; }
.eh-gauge .value { fill: none; stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 10px var(--eh-glow, rgba(34, 197, 94, .55))); }
.eh-gauge-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.eh-gauge-center b { font-size: 3.1rem; font-weight: 900; line-height: 1; color: #fff; letter-spacing: -.02em; }
.eh-gauge-center b sup { font-size: 1.1rem; margin-inline-start: .15rem; color: #94a3b8; }
.eh-gauge-center > span { margin-top: .35rem; font-size: .8rem; color: #94a3b8; }
.eh-grade {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .2rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: .9rem;
}
.eh-grade::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.eh-g-excellent { color: #4ade80; background: rgba(34, 197, 94, .14); }
.eh-g-good { color: #a3e635; background: rgba(132, 204, 22, .14); }
.eh-g-fair { color: #fbbf24; background: rgba(245, 158, 11, .14); }
.eh-g-poor { color: #f87171; background: rgba(239, 68, 68, .14); }
.eh-g-nodata { color: #94a3b8; background: rgba(148, 163, 184, .14); }
.eh-gauge-meta { margin-top: .7rem; font-size: .75rem; color: #94a3b8; line-height: 1.8; }

.eh-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .8rem; }
.eh-count { padding: .6rem .5rem; border-radius: 14px; text-align: center; background: rgba(2, 6, 23, .5); border: 1px solid rgba(148, 163, 184, .12); }
.eh-count b { display: block; font-size: 1.35rem; font-weight: 900; }
.eh-count span { font-size: .72rem; color: #94a3b8; }
.eh-count.normal b { color: #4ade80; }
.eh-count.watch b { color: #fbbf24; }
.eh-count.bad b { color: #f87171; }
.eh-count.nodata b { color: #64748b; }

.eh-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.eh-spec { padding: .55rem .7rem; border-radius: 12px; background: rgba(2, 6, 23, .45); border: 1px solid rgba(148, 163, 184, .1); }
.eh-spec span { display: block; font-size: .68rem; color: #7c8ba1; margin-bottom: .15rem; }
.eh-spec b { font-size: .84rem; font-weight: 800; color: #e2e8f0; }
.eh-coverage { margin-top: .8rem; display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: #94a3b8; }
.eh-coverage-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(148, 163, 184, .16); overflow: hidden; }
.eh-coverage-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #818cf8); width: 0; transition: width 1.2s ease; }

.eh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.eh-cat {
  --c: #22c55e;
  --p: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .7rem;
  border-radius: 16px;
  background: rgba(2, 6, 23, .45);
  border: 1px solid rgba(148, 163, 184, .1);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
  transition: border-color .15s ease, transform .15s ease;
}
.eh-cat:hover, .eh-cat.on { border-color: var(--c); transform: translateY(-1px); }
.eh-cat-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #0b1324 74%, transparent 76% 100%),
    conic-gradient(var(--c) calc(var(--p) * 1%), rgba(148, 163, 184, .16) 0);
  font-size: .8rem;
  font-weight: 900;
  color: #fff;
}
.eh-cat b { display: block; font-size: .8rem; font-weight: 800; color: #e2e8f0; }
.eh-cat small { font-size: .7rem; color: #7c8ba1; }

.eh-ai {
  overflow: hidden;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(124, 58, 237, .22), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 39, .9), rgba(15, 23, 42, .7));
  border-color: rgba(167, 139, 250, .28);
}
.eh-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #ddd6fe;
  background: rgba(124, 58, 237, .25);
  border: 1px solid rgba(167, 139, 250, .35);
}
.eh-ai-badge i { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; animation: eh-pulse 1.6s ease-in-out infinite; }
.eh-ai-summary { margin: .2rem 0 .8rem; font-size: .95rem; line-height: 2; color: #e2e8f0; }
.eh-ai-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.eh-ai-col { padding: .7rem .8rem; border-radius: 14px; background: rgba(2, 6, 23, .45); border: 1px solid rgba(148, 163, 184, .1); }
.eh-ai-col h4 { margin: 0 0 .45rem; font-size: .8rem; font-weight: 900; display: flex; align-items: center; gap: .35rem; }
.eh-ai-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.eh-ai-col li { position: relative; padding-inline-start: 1rem; font-size: .82rem; line-height: 1.8; color: #cbd5e1; }
.eh-ai-col li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.eh-ai-col.good { --dot: #4ade80; }
.eh-ai-col.good h4 { color: #86efac; }
.eh-ai-col.warn { --dot: #fbbf24; }
.eh-ai-col.warn h4 { color: #fcd34d; }
.eh-ai-col.rec { --dot: #60a5fa; }
.eh-ai-col.rec h4 { color: #93c5fd; }
.eh-ai-verdict {
  margin-top: .8rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  font-weight: 800;
  font-size: .88rem;
  color: #f5f3ff;
  background: linear-gradient(90deg, rgba(124, 58, 237, .35), rgba(37, 99, 235, .2));
  border: 1px solid rgba(167, 139, 250, .3);
}
.eh-shimmer { display: grid; gap: .55rem; }
.eh-shimmer span {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(148, 163, 184, .1), rgba(148, 163, 184, .25), rgba(148, 163, 184, .1));
  background-size: 200% 100%;
  animation: eh-shimmer 1.3s linear infinite;
}
.eh-shimmer span:nth-child(2) { width: 88%; }
.eh-shimmer span:nth-child(3) { width: 72%; }
.eh-shimmer span:nth-child(4) { width: 80%; }
.eh-ai-retry { margin-top: .6rem; font: inherit; font-size: .8rem; padding: .4rem .9rem; border-radius: 10px; border: 1px solid rgba(167, 139, 250, .4); background: transparent; color: #ddd6fe; cursor: pointer; }

.eh-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.eh-filters button {
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(2, 6, 23, .4);
  color: #cbd5e1;
  cursor: pointer;
}
.eh-filters button.on { background: #e2e8f0; color: #0f172a; border-color: #e2e8f0; }
.eh-params { display: grid; gap: .5rem; }
.eh-param {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(220px, 2fr) 110px 110px;
  gap: .8rem;
  align-items: center;
  padding: .7rem .85rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, .42);
  border: 1px solid rgba(148, 163, 184, .08);
  border-inline-start: 3px solid var(--st, #475569);
  animation: eh-rise .45s ease both;
}
.eh-param.st-normal { --st: #22c55e; }
.eh-param.st-watch { --st: #f59e0b; }
.eh-param.st-bad { --st: #ef4444; }
.eh-param.st-nodata { --st: #475569; opacity: .62; }
.eh-param-name b { display: block; font-size: .84rem; font-weight: 800; color: #f1f5f9; }
.eh-param-name small { font-size: .7rem; color: #7c8ba1; }
.eh-param-name code { font-family: ui-monospace, Consolas, monospace; font-size: .68rem; color: #93c5fd; background: rgba(59, 130, 246, .14); padding: .05rem .35rem; border-radius: 5px; margin-inline-end: .3rem; }
.eh-bar { position: relative; direction: ltr; height: 30px; }
.eh-bar-track { position: absolute; left: 0; right: 0; top: 11px; height: 8px; border-radius: 999px; background: rgba(239, 68, 68, .35); overflow: hidden; }
.eh-bar-warn, .eh-bar-ok { position: absolute; top: 0; bottom: 0; }
.eh-bar-warn { background: rgba(245, 158, 11, .55); }
.eh-bar-ok { background: linear-gradient(90deg, #16a34a, #4ade80, #16a34a); }
.eh-bar-nom { position: absolute; top: 8px; width: 2px; height: 14px; margin-left: -1px; background: rgba(255, 255, 255, .7); border-radius: 2px; }
.eh-bar-val {
  position: absolute;
  top: 3px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--st, #94a3b8);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 0 14px var(--st, #94a3b8);
  transition: left 1.2s cubic-bezier(.2, .8, .2, 1);
}
.eh-bar-lbl { position: absolute; top: 21px; font-size: .62rem; color: #64748b; transform: translateX(-50%); white-space: nowrap; }
.eh-param-val { text-align: center; }
.eh-param-val b { font-size: 1.05rem; font-weight: 900; color: #fff; }
.eh-param-val small { display: block; font-size: .68rem; color: #7c8ba1; direction: ltr; }
.eh-pill { display: inline-block; padding: .22rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.eh-pill.normal { color: #4ade80; background: rgba(34, 197, 94, .14); }
.eh-pill.watch { color: #fbbf24; background: rgba(245, 158, 11, .14); }
.eh-pill.bad { color: #f87171; background: rgba(239, 68, 68, .16); }
.eh-pill.nodata { color: #94a3b8; background: rgba(148, 163, 184, .12); }
.eh-param-st { text-align: center; }
.eh-param-st small { display: block; margin-top: .25rem; font-size: .66rem; color: #7c8ba1; }
.eh-param-advice { grid-column: 1 / -1; margin: -.2rem 0 0; font-size: .76rem; line-height: 1.8; color: #fcd34d; }
.eh-param.st-bad .eh-param-advice { color: #fca5a5; }

.eh-dtcs { display: flex; flex-wrap: wrap; gap: .45rem; }
.eh-dtc { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: .82rem; padding: .3rem .7rem; border-radius: 10px; color: #fecaca; background: rgba(239, 68, 68, .16); border: 1px solid rgba(239, 68, 68, .35); }
.eh-ok-line { color: #86efac; font-size: .84rem; }
.eh-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.eh-notes li { font-size: .78rem; color: #94a3b8; line-height: 1.8; padding-inline-start: 1rem; position: relative; }
.eh-notes li::before { content: "•"; position: absolute; inset-inline-start: 0; color: #60a5fa; }
.eh-disclaimer { font-size: .74rem; line-height: 1.9; color: #7c8ba1; border-top: 1px dashed rgba(148, 163, 184, .2); padding-top: .8rem; }
.eh-empty { padding: 2.5rem 1rem; text-align: center; color: #94a3b8; }
.eh-loading { display: grid; place-items: center; gap: .8rem; padding: 4rem 1rem; color: #94a3b8; }
.eh-spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(148, 163, 184, .2); border-top-color: #818cf8; animation: eh-spin .9s linear infinite; }

@keyframes eh-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes eh-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes eh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes eh-pulse { 50% { opacity: .35; } }
@keyframes eh-spin { to { transform: rotate(360deg); } }
@keyframes eh-sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

@media (max-width: 900px) {
  .eh-hero { grid-template-columns: 1fr; }
  .eh-ai-cols { grid-template-columns: 1fr; }
  .eh-param { grid-template-columns: 1fr 1fr; }
  .eh-param .eh-bar { grid-column: 1 / -1; order: 3; }
  .eh-param .eh-param-advice { order: 4; }
}
@media (max-width: 560px) {
  .eh-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .eh-shell { height: 100dvh; max-height: 100dvh; }

  .eh-top { gap: .5rem; padding: .5rem .65rem; padding-top: calc(.5rem + env(safe-area-inset-top)); }
  .eh-top-icon { width: 30px; height: 30px; border-radius: 9px; }
  .eh-top-icon svg { width: 17px; height: 17px; }
  .eh-top > div:not(.eh-top-icon) { min-width: 0; }
  .eh-top h2 { font-size: .88rem; }
  .eh-top p { font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eh-close { width: 30px; height: 30px; border-radius: 9px; font-size: 1.05rem; }

  .eh-body { padding: .55rem .5rem 1rem; gap: .5rem; }
  .eh-hero { gap: .5rem; }
  .eh-card { padding: .55rem .6rem; border-radius: 13px; }
  .eh-card h3 { margin: 0 0 .4rem; font-size: .78rem; gap: .3rem; flex-wrap: wrap; }
  .eh-card h3 small { font-size: .6rem; line-height: 1.5; }

  .eh-gauge-card {
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto 1fr;
    justify-items: start;
    align-items: center;
    column-gap: .65rem;
    text-align: start;
    padding-top: .55rem;
  }
  .eh-gauge { width: 112px; height: 112px; grid-row: 1 / span 2; }
  .eh-gauge .track, .eh-gauge .value { stroke-width: 18; }
  .eh-gauge .value { filter: drop-shadow(0 0 5px var(--eh-glow, rgba(34, 197, 94, .55))); }
  .eh-gauge-center b { font-size: 1.65rem; }
  .eh-gauge-center b sup { font-size: .65rem; }
  .eh-gauge-center > span { margin-top: .15rem; font-size: .52rem; max-width: 70px; text-align: center; line-height: 1.4; }
  .eh-grade { margin-top: 0; padding: .16rem .6rem; font-size: .74rem; align-self: end; }
  .eh-grade::before { width: 6px; height: 6px; }
  .eh-gauge-meta { margin-top: .3rem; font-size: .62rem; line-height: 1.65; align-self: start; }

  .eh-counts { grid-template-columns: repeat(4, 1fr); gap: .3rem; margin-bottom: .5rem; }
  .eh-count { padding: .32rem .15rem; border-radius: 10px; }
  .eh-count b { font-size: 1rem; line-height: 1.3; }
  .eh-count span { font-size: .58rem; display: block; line-height: 1.3; }

  .eh-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .28rem; }
  .eh-spec { padding: .3rem .4rem; border-radius: 8px; min-width: 0; }
  .eh-spec span { font-size: .56rem; margin-bottom: .05rem; }
  .eh-spec b { display: block; font-size: .68rem; line-height: 1.45; overflow-wrap: anywhere; }
  .eh-coverage { margin-top: .45rem; gap: .4rem; font-size: .62rem; }
  .eh-coverage-bar { height: 5px; }

  .eh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
  .eh-cat { gap: .4rem; padding: .35rem .4rem; border-radius: 10px; min-width: 0; }
  .eh-cat-ring { width: 32px; height: 32px; font-size: .64rem; }
  .eh-cat > span:last-child { min-width: 0; }
  .eh-cat b { font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eh-cat small { font-size: .58rem; }

  .eh-ai-badge { padding: .12rem .45rem; font-size: .6rem; }
  .eh-ai-summary { margin: .1rem 0 .45rem; font-size: .76rem; line-height: 1.8; }
  .eh-ai-cols { gap: .35rem; }
  .eh-ai-col { padding: .45rem .55rem; border-radius: 10px; }
  .eh-ai-col h4 { margin: 0 0 .25rem; font-size: .7rem; }
  .eh-ai-col ul { gap: .2rem; }
  .eh-ai-col li { font-size: .7rem; line-height: 1.65; padding-inline-start: .8rem; }
  .eh-ai-col li::before { width: 5px; height: 5px; top: .65em; }
  .eh-ai-verdict { margin-top: .45rem; padding: .45rem .6rem; border-radius: 10px; font-size: .74rem; }

  .eh-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .3rem;
    margin: 0 -.6rem .45rem;
    padding: 0 .6rem .15rem;
    scrollbar-width: none;
  }
  .eh-filters::-webkit-scrollbar { display: none; }
  .eh-filters button { flex: none; font-size: .64rem; padding: .24rem .6rem; }

  .eh-params { gap: .3rem; }
  .eh-param {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .1rem .5rem;
    padding: .38rem .5rem .3rem;
    border-radius: 10px;
    border-inline-start-width: 3px;
  }
  .eh-param-name { min-width: 0; }
  .eh-param-name b { font-size: .72rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eh-param-name small { font-size: .56rem; }
  .eh-param-name code { font-size: .54rem; padding: 0 .25rem; margin-inline-end: .2rem; }
  .eh-param-val { text-align: end; line-height: 1.2; }
  .eh-param-val b { font-size: .8rem; }
  .eh-param-val small { font-size: .54rem; }
  .eh-param-st { line-height: 1.2; }
  .eh-pill { padding: .1rem .4rem; font-size: .58rem; }
  .eh-param-st small { margin-top: .1rem; font-size: .52rem; }
  .eh-param .eh-bar { height: 20px; }
  .eh-bar-track { top: 5px; height: 5px; }
  .eh-bar-nom { top: 3px; height: 9px; }
  .eh-bar-val { top: 1px; width: 11px; height: 11px; margin-left: -5.5px; border-width: 2px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), 0 0 8px var(--st, #94a3b8); }
  .eh-bar-lbl { top: 11px; font-size: .52rem; }
  .eh-param-advice { margin: 0; font-size: .64rem; line-height: 1.6; }

  .eh-dtcs { gap: .3rem; }
  .eh-dtc { font-size: .68rem; padding: .18rem .5rem; border-radius: 8px; }
  .eh-ok-line { font-size: .7rem; margin: 0; }
  .eh-notes { gap: .2rem; }
  .eh-notes li { font-size: .66rem; line-height: 1.65; padding-inline-start: .8rem; }
  .eh-disclaimer { font-size: .6rem; line-height: 1.75; padding-top: .5rem; margin: 0; }
  .eh-loading { padding: 3rem 1rem; font-size: .8rem; }
}
.eh-drive-strip {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin: 0 0 .8rem; padding: .65rem .8rem; border-radius: 14px;
  background: linear-gradient(90deg, rgba(14, 165, 233, .16), rgba(124, 58, 237, .12));
  border: 1px solid rgba(56, 189, 248, .28); color: #e2e8f0; font-size: .82rem;
}
.eh-drive-strip b { color: #7dd3fc; }
.eh-drive-top { display: flex; gap: .9rem; align-items: center; margin-bottom: .7rem; }
.eh-drive-ring {
  width: 92px; height: 92px; flex: none; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(closest-side, #0b1324 68%, transparent 70% 100%),
    conic-gradient(#38bdf8 calc(var(--p) * 1%), rgba(148, 163, 184, .18) 0);
}
.eh-drive-ring b { font-size: 1.15rem; color: #fff; }
.eh-drive-ring small { display: block; color: #94a3b8; font-size: .68rem; }
.eh-drive-status { margin: 0 0 .4rem; color: #cbd5e1; font-size: .84rem; }
.eh-drive-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.eh-drive-flags em { font-style: normal; font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; }
.eh-drive-flags em.ok { color: #86efac; background: rgba(34, 197, 94, .14); }
.eh-drive-flags em.watch { color: #fcd34d; background: rgba(245, 158, 11, .14); }
.eh-drive-flags em.bad { color: #fca5a5; background: rgba(239, 68, 68, .16); }
.eh-drive-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; margin-bottom: .7rem; }
.eh-drive-chip { padding: .45rem .55rem; border-radius: 12px; background: rgba(2, 6, 23, .45); border: 1px solid rgba(148, 163, 184, .1); }
.eh-drive-chip span { display: block; color: #94a3b8; font-size: .68rem; }
.eh-drive-chip b { color: #f8fafc; font-size: .86rem; }
.eh-drive-metrics { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.eh-drive-metrics button {
  font: inherit; font-size: .74rem; font-weight: 800; padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .2); background: transparent; color: #cbd5e1; cursor: pointer;
}
.eh-drive-metrics button.on { background: #e2e8f0; color: #0f172a; border-color: #e2e8f0; }
.eh-drive-svg { width: 100%; height: auto; display: block; background: rgba(2, 6, 23, .35); border-radius: 14px; }
.eh-drive-scale { display: flex; justify-content: space-between; color: #64748b; font-size: .68rem; margin: .25rem .2rem .6rem; direction: ltr; }
.eh-drive-empty { margin: 0; color: #94a3b8; line-height: 1.9; font-size: .86rem; }
.eh-drive-ai { font: inherit; font-weight: 800; padding: .7rem 1rem; border-radius: 14px; border: 0; cursor: pointer; color: #0f172a; background: linear-gradient(90deg, #7dd3fc, #c4b5fd); }
.eh-drive-ai-box { margin-top: .4rem; }
@media (max-width: 700px) {
  .eh-drive-chips { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .eh-teaser::after, .eh-dialog[open], .eh-param, .eh-shimmer span { animation: none; }
  .eh-gauge .value, .eh-bar-val, .eh-coverage-bar i { transition: none; }
}
