/* ============================================================
   Elite Performance theme — faithful extraction from
   docs/web-style-reference/bootstrap.html (C-06, FR-10).
   The reference HTML remains the canonical style contract; this
   stylesheet plus the bundled woff2 fonts is the app's copy.
   ============================================================ */

/* ---- Bundled fonts (D-01): local-only, no runtime CDN ---- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/vendor/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/vendor/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/vendor/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/vendor/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('/vendor/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('/vendor/fonts/montserrat-latin-900-normal.woff2') format('woff2'); }

/* ============================================================
   Elite Performance design tokens
   ============================================================ */
:root {
  --ep-radius: 0.25rem;
  --ep-background: #05070d;
  --ep-foreground: #c6d3e0;
  --ep-card: #0d1622;
  --ep-primary: #1fa7e8;
  --ep-primary-foreground: #05070d;
  --ep-secondary: #0d1622;
  --ep-muted: #0d1622;
  --ep-muted-foreground: #6b7a8c;
  --ep-accent: #5cc8ff;
  --ep-destructive: #ff4d4f;
  --ep-border: rgba(31, 167, 232, 0.16);
  --ep-ring: #1fa7e8;
  --ep-ink: #05070d;
  --ep-titanium: #8a97a8;
  --ep-neon: #1fa7e8;
  --ep-neon-soft: #5cc8ff;

  --font-display: "Montserrat", sans-serif;
  --font-sans: "Inter", sans-serif;

  /* Bootstrap overrides */
  --bs-body-bg: var(--ep-background);
  --bs-body-color: var(--ep-foreground);
  --bs-body-font-family: var(--font-sans);
  --bs-border-color: var(--ep-border);
  --bs-primary: var(--ep-primary);
  --bs-primary-rgb: 31, 167, 232;
  --bs-link-color: var(--ep-primary);
  --bs-link-hover-color: var(--ep-neon-soft);
}

/* ============================================================
   Base
   ============================================================ */
* { border-color: var(--ep-border); }
html { scroll-behavior: smooth; }
body {
  background-color: var(--ep-background);
  color: var(--ep-foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(31, 167, 232, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(92, 200, 255, 0.12), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: #fff;
}

/* Section helpers */
.section { padding: 5rem 0; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .28em;
  color: var(--ep-primary);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: .01em; color: #fff;
}

/* ============================================================
   Signature neon utilities
   ============================================================ */
.neon-text {
  color: var(--ep-neon);
  text-shadow: 0 0 24px rgba(31, 167, 232, 0.45);
}
.text-chrome {
  background: linear-gradient(180deg, #ffffff 0%, #b6c2d1 45%, #6e7c8d 55%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.neon-border {
  border: 1px solid var(--ep-neon);
  box-shadow: 0 0 0 1px rgba(31, 167, 232, 0.18), 0 0 28px -8px rgba(31, 167, 232, 0.65);
}
.bg-grid-lines {
  background-image:
    linear-gradient(rgba(31, 167, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 167, 232, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
}
.corner-ticks { position: relative; }
.corner-ticks::before,
.corner-ticks::after,
.corner-ticks > .tick-bl,
.corner-ticks > .tick-br {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: rgba(31, 167, 232, 0.7);
}
.corner-ticks::before { left: 8px; top: 8px; border-left: 1px solid; border-top: 1px solid; }
.corner-ticks::after  { right: 8px; top: 8px; border-right: 1px solid; border-top: 1px solid; }
.corner-ticks > .tick-bl { left: 8px; bottom: 8px; border-left: 1px solid; border-bottom: 1px solid; }
.corner-ticks > .tick-br { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }

.pulse-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ep-primary); box-shadow: 0 0 8px var(--ep-neon);
  animation: ep-pulse 2.5s ease-in-out infinite;
}
@keyframes ep-pulse { 0%,100% { opacity:.55 } 50% { opacity:1 } }

@keyframes ep-scan { 0% { transform: translateX(-100%) } 100% { transform: translateX(100%) } }
.scan-line {
  position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--ep-primary), transparent);
  animation: ep-scan 6s linear infinite; opacity: .7;
}

/* ============================================================
   Navbar
   ============================================================ */
.ep-navbar {
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ep-border);
}
.ep-navbar .nav-link {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .24em;
  color: var(--ep-muted-foreground) !important; transition: color .3s ease;
}
.ep-navbar .nav-link:hover,
.ep-navbar .nav-link.active { color: #fff !important; }
.ep-brand { font-family: var(--font-display); font-weight: 900; letter-spacing: .14em; color: #fff; }
.ep-brand .accent { color: var(--ep-primary); }

/* ============================================================
   Buttons
   ============================================================ */
.btn { border-radius: var(--ep-radius); }
.btn-primary {
  --bs-btn-bg: var(--ep-primary);
  --bs-btn-border-color: var(--ep-primary);
  --bs-btn-color: var(--ep-primary-foreground);
  --bs-btn-hover-bg: var(--ep-neon-soft);
  --bs-btn-hover-border-color: var(--ep-neon-soft);
  --bs-btn-active-bg: var(--ep-neon-soft);
  --bs-btn-active-border-color: var(--ep-neon-soft);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: .78rem;
}
.btn-primary:hover { box-shadow: 0 0 24px -4px var(--ep-neon); }
.btn-outline-primary {
  --bs-btn-color: var(--ep-primary);
  --bs-btn-border-color: var(--ep-primary);
  --bs-btn-hover-bg: var(--ep-primary);
  --bs-btn-hover-border-color: var(--ep-primary);
  --bs-btn-hover-color: var(--ep-primary-foreground);
  --bs-btn-active-bg: var(--ep-primary);
  --bs-btn-active-border-color: var(--ep-primary);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: .78rem;
}
.btn-outline-primary:hover { box-shadow: 0 0 24px -4px var(--ep-neon); }

/* ============================================================
   Cards
   ============================================================ */
.ep-card {
  background-color: var(--ep-card);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  color: var(--ep-foreground);
}
.ep-card-glow {
  border-color: var(--ep-primary);
  box-shadow: 0 0 0 1px rgba(31, 167, 232, 0.35), 0 0 40px -10px rgba(31, 167, 232, 0.6);
}
.ep-card .card-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: #fff;
}
/* Catalog card image (10-013 FR-02/C-04): fixed aspect, cover-fit — an SVG
   asset or a missing-file degradation both keep the card layout intact. */
.ep-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--ep-border);
}
/* Spec list on catalog cards / state recaps (10-013): dense, readable rows. */
.ep-spec-list {
  display: grid;
  gap: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Badges
   ============================================================ */
.badge.bg-primary { color: var(--ep-primary-foreground); }
.ep-badge-outline {
  background: transparent; color: var(--ep-primary);
  border: 1px solid var(--ep-primary); border-radius: 999px;
}

/* ============================================================
   Forms
   ============================================================ */
.form-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .24em;
  color: var(--ep-muted-foreground); margin-bottom: .5rem;
}
.form-label .req { color: var(--ep-primary); }
.form-control, .form-select, .form-control:disabled {
  background-color: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--ep-border);
  color: #fff;
  border-radius: var(--ep-radius);
}
.form-control::placeholder { color: rgba(107, 122, 140, 0.6); }
.form-control:focus, .form-select:focus {
  background-color: rgba(5, 7, 13, 0.6);
  border-color: var(--ep-primary);
  color: #fff;
  box-shadow: 0 0 20px -6px var(--ep-neon);
  outline: none;
}
.form-select option { background-color: var(--ep-card); color: #fff; }
.input-group-text {
  background-color: var(--ep-card);
  border: 1px solid var(--ep-border);
  color: var(--ep-primary);
}
.form-check-input {
  background-color: var(--ep-background);
  border-color: var(--ep-border);
}
.form-check-input:checked {
  background-color: var(--ep-primary);
  border-color: var(--ep-primary);
}
.form-check-input:focus { box-shadow: 0 0 12px -4px var(--ep-neon); border-color: var(--ep-primary); }

/* ============================================================
   Tables
   ============================================================ */
.ep-table {
  --bs-table-bg: var(--ep-card);
  --bs-table-color: var(--ep-foreground);
  --bs-table-border-color: var(--ep-border);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  overflow: hidden;
}
.ep-table thead th {
  background-color: rgba(31, 167, 232, 0.06);
  color: var(--ep-primary);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
  border-bottom: 1px solid var(--ep-border);
}
.ep-table tbody td { color: #fff; border-color: var(--ep-border); }
.ep-table > :not(caption) > * > * { padding: .9rem 1rem; }
.ep-table.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: rgba(31, 167, 232, 0.08); }

/* ============================================================
   Accordion / Tabs / Lists
   ============================================================ */
.accordion-item {
  background-color: var(--ep-card);
  border: 1px solid var(--ep-border);
}
.accordion-button {
  background-color: var(--ep-card);
  color: #fff;
  font-family: var(--font-display); font-weight: 700;
}
.accordion-button:not(.collapsed) {
  background-color: rgba(31, 167, 232, 0.08);
  color: var(--ep-primary);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(31, 167, 232, 0.25); border-color: var(--ep-primary); }
.accordion-body { color: var(--ep-foreground); }

.nav-tabs { border-bottom: 1px solid var(--ep-border); }
.nav-tabs .nav-link {
  color: var(--ep-muted-foreground);
  border: 0; border-bottom: 2px solid transparent;
  border-radius: 0;
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 600;
}
.nav-tabs .nav-link:hover { color: #fff; border-color: transparent; }
.nav-tabs .nav-link.active {
  color: var(--ep-primary);
  background: transparent;
  border-bottom: 2px solid var(--ep-primary);
}

.list-group.ep-list {
  --bs-list-group-bg: var(--ep-card);
  --bs-list-group-color: var(--ep-foreground);
  --bs-list-group-border-color: var(--ep-border);
  border-radius: var(--ep-radius);
}
.list-group.ep-list .list-group-item .bi { color: var(--ep-primary); }

/* Progress */
.progress { background-color: var(--ep-background); border: 1px solid var(--ep-border); }
.progress-bar { background-color: var(--ep-primary); box-shadow: 0 0 12px -2px var(--ep-neon); }

/* Pagination */
.ep-pagination .page-link {
  background-color: var(--ep-card);
  border-color: var(--ep-border);
  color: var(--ep-foreground);
}
.ep-pagination .page-link:hover { background-color: rgba(31, 167, 232, 0.15); color: #fff; }
.ep-pagination .page-item.active .page-link {
  background-color: var(--ep-primary);
  border-color: var(--ep-primary);
  color: var(--ep-primary-foreground);
}

/* Dropdown menu */
.dropdown-menu {
  background-color: var(--ep-card);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
}
.dropdown-item { color: var(--ep-foreground); }
.dropdown-item:hover, .dropdown-item:focus {
  background-color: rgba(31, 167, 232, 0.15);
  color: #fff;
}
.dropdown-divider { border-color: var(--ep-border); }
.dropdown-item-text { color: var(--ep-muted-foreground); }

/* Modal */
.modal-content {
  background-color: var(--ep-card);
  border: 1px solid rgba(31, 167, 232, 0.4);
  border-radius: var(--ep-radius);
  box-shadow: 0 0 60px -10px rgba(31, 167, 232, 0.5);
}
.modal-header, .modal-footer { border-color: var(--ep-border); }

/* Alert */
.ep-alert {
  background-color: rgba(31, 167, 232, 0.08);
  border: 1px solid var(--ep-border);
  border-left: 3px solid var(--ep-primary);
  color: var(--ep-foreground);
  border-radius: var(--ep-radius);
}
.alert-danger, .alert-info, .alert-warning, .alert-success {
  --bs-alert-bg: rgba(31, 167, 232, 0.08);
  border: 1px solid var(--ep-border);
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Footer */
.ep-footer { border-top: 1px solid var(--ep-border); background: var(--ep-background); }
.ep-footer a { color: var(--ep-muted-foreground); text-decoration: none; }
.ep-footer a:hover { color: var(--ep-primary); }

/* Marquee */
.ep-marquee { overflow: hidden; border-top: 1px solid var(--ep-border); border-bottom: 1px solid var(--ep-border); background: rgba(5,7,13,0.6); padding: 1.4rem 0; }
.ep-marquee .track { display: flex; gap: 2.5rem; width: max-content; animation: ep-marquee 28s linear infinite; }
.ep-marquee .word { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 1.6rem; }
@keyframes ep-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ============================================================
   10-011 Web refresh: authenticated dashboard shell — private
   area layer ported from docs/web-style-reference/
   private-area-bootstrap.html (FR-02, FR-05; no runtime CDN —
   the tokens/classes below are the reference's, served locally).
   Guest pages keep the public look above; the shell lives here.
   ============================================================ */

/* ---- additional design tokens (reference :root) ---- */
:root {
  --ep-border-strong: rgba(31, 167, 232, 0.45);
  --ep-border-hover: rgba(31, 167, 232, 0.6);
  --ep-good: #22c55e;
  --ep-warn: #eab308;
  --ep-crit: #ef4444;
  --ep-neon-glow: 0 0 32px -6px var(--ep-primary);
  --ep-card-glow: 0 0 36px -14px var(--ep-primary);
  --ep-font-display: "Montserrat", sans-serif;
  --ep-font-sans: "Inter", sans-serif;
}

:focus-visible { outline: 2px solid rgba(31, 167, 232, 0.7); outline-offset: 1px; }
.min-w-0 { min-width: 0; }

/* ---- decorative backdrop ---- */
.ep-fx { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.ep-fx-blob-a {
  position: absolute; top: -10rem; left: 33%;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(31, 167, 232, 0.15); filter: blur(140px);
}
.ep-fx-blob-b {
  position: absolute; right: 0; bottom: 0;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(31, 167, 232, 0.1); filter: blur(120px);
}
.ep-fx-grid {
  position: absolute; inset: 0; opacity: 0.07;
  background-image:
    linear-gradient(var(--ep-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--ep-border) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- shell grid ---- */
.ep-shell {
  position: relative; z-index: 10;
  display: flex; max-width: 1700px; margin: 0 auto;
}
.ep-main { flex: 1 1 0; min-width: 0; }

/* ---- sidebar (offcanvas drawer < 992px, static column >= 992px) ---- */
.offcanvas.offcanvas-start.ep-sidebar { width: min(86vw, 20rem); }
.ep-sidebar {
  border-right: 1px solid var(--ep-border);
  background: rgba(13, 22, 34, 0.95);
  backdrop-filter: blur(20px);
}
.ep-sidebar .offcanvas-body { padding: 0; }
@media (min-width: 992px) {
  .ep-sidebar.offcanvas-lg {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 17rem !important;
    flex: 0 0 auto;
    overflow-y: auto;
    background: rgba(13, 22, 34, 0.4) !important;
    border-right: 1px solid var(--ep-border) !important;
    backdrop-filter: blur(20px);
    transition: none;
  }
}

.ep-logo {
  display: inline-flex; align-items: center; gap: 0.625rem;
  text-decoration: none;
}
.ep-logo-mark {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--ep-border-strong);
  color: var(--ep-primary);
  font-family: var(--ep-font-display); font-weight: 900; font-size: 0.8rem;
  box-shadow: inset 0 0 12px rgba(31, 167, 232, 0.25);
}
.ep-logo-text {
  font-family: var(--ep-font-display);
  font-weight: 900; text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.08em; line-height: 1.1; color: #fff;
}
.ep-logo-text small {
  display: block; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.34em; color: var(--ep-primary);
}

.ep-nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.75rem 1.5rem; }
.ep-nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; border: 0; border-radius: 0;
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.ep-nav-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.ep-nav-link.active {
  background: rgba(31, 167, 232, 0.15); color: #fff;
  box-shadow: inset 2px 0 0 var(--ep-primary);
}
.ep-nav-link i.bi { font-size: 1rem; color: rgba(31, 167, 232, 0.6); flex: 0 0 auto; }
.ep-nav-link.active i.bi { color: var(--ep-primary); }
.ep-nav-title {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}
.ep-nav-title.ep-nav-title-head { color: rgba(255, 255, 255, 0.4); }
.ep-back-home {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.45); text-decoration: none;
  transition: color 0.15s ease;
}
.ep-back-home:hover { color: var(--ep-primary); }

/* ---- sticky header ---- */
.ep-header {
  position: sticky; top: 0; z-index: 1030;
  border-bottom: 1px solid var(--ep-border);
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1rem;
}
@media (min-width: 576px) { .ep-header { padding: 0.75rem 1.5rem; } }
.ep-menu-btn {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
  border: 1px solid var(--ep-border); border-radius: 0;
  color: rgba(255, 255, 255, 0.7); background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ep-menu-btn:hover { border-color: var(--ep-border-hover); color: var(--ep-primary); }
.ep-crumb {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45); white-space: nowrap;
}
.ep-crumb a { color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.15s ease; }
.ep-crumb a:hover { color: var(--ep-primary); }
.ep-crumb .bi { font-size: 0.75rem; color: rgba(255, 255, 255, 0.25); }
.ep-user {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--ep-border); border-radius: 0;
  background: rgba(13, 22, 34, 0.6);
  padding: 0.25rem 0.75rem;
}
.ep-user-avatar {
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--ep-border-strong);
  background: rgba(31, 167, 232, 0.1);
  font-size: 10px; font-weight: 700; color: var(--ep-primary);
}
.ep-user-name { font-size: 0.75rem; font-weight: 600; color: #fff; }
.ep-page-title {
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1;
  font-size: 1.5rem; margin: 0; color: #fff;
}
@media (min-width: 576px) { .ep-page-title { font-size: 1.875rem; } }
.ep-page-sub { margin: 0.25rem 0 0; font-size: 11px; color: rgba(255, 255, 255, 0.45); }

/* ---- panel grid gutter ---- */
.g-ep { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }

/* ---- content panels (corner-gradient ::after from the reference) ---- */
.ep-panel {
  position: relative;
  border: 1px solid var(--ep-border);
  background: rgba(13, 22, 34, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 2px;
  padding: 1rem;
  /* height: 100%; */
}
.ep-panel::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 0 0 / 1px 10px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 0 0 / 10px 1px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 100% 0 / 1px 10px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 100% 0 / 10px 1px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 0 100% / 1px 10px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 0 100% / 10px 1px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 100% 100% / 1px 10px,
    linear-gradient(rgba(31,167,232,0.7) 0 0) no-repeat 100% 100% / 10px 1px;
}
.ep-panel-flush { padding: 0; overflow: hidden; }
.ep-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.ep-panel-title {
  display: flex; align-items: center; gap: 0.5rem; min-width: 0;
  margin: 0; font-family: var(--ep-font-sans);
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; color: rgba(255, 255, 255, 0.7);
}
.ep-panel-title::before {
  content: ""; display: inline-block; flex: 0 0 auto;
  width: 2px; height: 12px;
  background: var(--ep-primary);
  box-shadow: 0 0 8px var(--ep-primary);
}

/* ---- badges ---- */
.ep-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.375rem; border: 1px solid; border-radius: 2px;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}
.ep-badge-neutral { border-color: var(--ep-border); background: rgba(5, 7, 13, 0.5); color: rgba(255, 255, 255, 0.6); }
.ep-badge-primary { border-color: var(--ep-border-strong); background: rgba(31, 167, 232, 0.1); color: var(--ep-primary); }
.ep-badge-good { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.1); color: var(--ep-good); }
.ep-badge-warn { border-color: rgba(234, 179, 8, 0.5); background: rgba(234, 179, 8, 0.1); color: var(--ep-warn); }

/* ---- stat cards (dashboard summary) ---- */
.ep-stat { display: flex; align-items: center; gap: 0.75rem; }
.ep-stat i.bi { font-size: 1.25rem; color: var(--ep-primary); flex: 0 0 auto; }
.ep-stat-label {
  margin: 0; font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-stat-value {
  margin: 0; font-family: var(--ep-font-display);
  font-size: 1.25rem; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- quick links (admin dashboard) ---- */
.ep-quick {
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid rgba(31, 167, 232, 0.16); border-radius: 2px;
  background: rgba(13, 22, 34, 0.5); padding: 1rem;
  text-decoration: none; transition: all 0.15s ease;
}
.ep-quick:hover { border-color: var(--ep-border-hover); box-shadow: var(--ep-card-glow); }
.ep-quick i.bi { font-size: 1.25rem; color: var(--ep-primary); flex: 0 0 auto; }
.ep-quick-title {
  display: block; font-size: 11px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.18em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-quick-sub {
  display: block; font-size: 10px; color: rgba(255, 255, 255, 0.45);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- data cells ---- */
.ep-cell {
  min-width: 0; border: 1px solid var(--ep-border);
  background: rgba(5, 7, 13, 0.5); border-radius: 2px;
  padding: 0.375rem 0.5rem;
}
.ep-cell-label {
  margin: 0; font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-cell-value {
  margin: 0; font-size: 11px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-cell-hl .ep-cell-value { color: var(--ep-primary); }

/* ---- unknown-heartbeat serial cell (10-012 FR-04) ---- */
/* The point of the queue page: the serial must be catchable in one gesture.
   user-select:all → a single click selects the ENTIRE serial (contiguous,
   no partial selection); monospace + nowrap keep it visually whole. The copy
   button (.ep-copy) is progressive enhancement — the selectable text is the
   no-JS path (20-012 §3.6). */
.ep-serial {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  white-space: nowrap;
  user-select: all;
  -webkit-user-select: all;
  color: #fff;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--ep-border);
  border-radius: 2px;
  padding: 0.2rem 0.45rem;
}
.ep-copy { padding: 0.1rem 0.4rem; line-height: 1.2; }
.ep-copy-done { color: var(--ep-primary) !important; border-color: var(--ep-primary) !important; }
.ep-queue-link { white-space: nowrap; }

/* ==========================================================================
   10-028: catalog detail modal + item evaluations + the brand mark image.
   ONE inline vanilla script per page drives these; everything renders
   server-side without JS (NFR-02).
   ========================================================================== */

/* The brand mark <img> replaces the old inline-SVG/letter marks (FR-02). */
.ep-mark-img {
  border-radius: 4px;
  object-fit: cover;
  background: #fff;
}
.ep-logo-mark .ep-mark-img {
  border-radius: 4px;
}

/* Catalog cards as buttons (the reference anatomy). */
a.ep-catalog-card {
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
a.ep-catalog-card:hover {
  border-color: rgba(31, 167, 232, .6);
  box-shadow: 0 0 36px -14px rgba(31, 167, 232, .55);
}
.ep-card-sub {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ep-primary, #1fa7e8);
}
.ep-badge {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 600;
}
.ep-badge-primary {
  background: rgba(31, 167, 232, .12);
  border-color: rgba(31, 167, 232, .55);
  color: var(--ep-primary, #1fa7e8);
}

/* The detail modal overlay (JS mode) + the static full-page variant. */
.ep-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(2, 8, 16, .78);
  overflow-y: auto;
  padding: 2rem 1rem;
}
.ep-modal-overlay.open {
  display: block;
}
.ep-modal-box {
  max-width: 820px;
  margin: 0 auto;
}
.ep-modal-static {
  max-width: 820px;
  margin: 0 auto 3rem;
}
.ep-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .14);
  opacity: .88;
}

/* Spec cells (the reference "Cell" anatomy). */
.ep-cell {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 8, 16, .5);
  border-radius: 2px;
  padding: .45rem .6rem;
  height: 100%;
}
.ep-cell-label {
  display: block;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.ep-cell-value {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-cell-hl {
  color: var(--ep-primary, #1fa7e8);
}

/* Sub-panels inside the modal (evaluation + reference laps). */
.ep-subpanel {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  background: rgba(2, 8, 16, .35);
  padding: 1rem;
  margin-bottom: 1rem;
}
.ep-subpanel-title {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .75rem;
}
.ep-label {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* The star rating rows (the enhanced selects; no-JS keeps the <select>). */
.ep-rate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 8, 16, .5);
  border-radius: 2px;
  padding: .5rem .75rem;
  margin-bottom: .5rem;
}
.ep-rate-label {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.ep-rate-select {
  max-width: 6rem;
}
.ep-stars {
  display: inline-flex;
  gap: .15rem;
}
.ep-star {
  background: none;
  border: 0;
  padding: 0 .1rem;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.ep-star.bi-star-fill {
  color: var(--ep-primary, #1fa7e8);
  text-shadow: 0 0 12px rgba(31, 167, 232, .55);
}
.ep-stars-static .ep-star {
  cursor: default;
}
.ep-overall-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border: 1px solid rgba(31, 167, 232, .5);
  background: rgba(31, 167, 232, .07);
  border-radius: 2px;
  padding: .5rem .75rem;
  margin-bottom: .75rem;
  color: var(--ep-primary, #1fa7e8);
}

/* The car modal's lap-time rows. */
.ep-lap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(2, 8, 16, .5);
  border-radius: 2px;
  padding: .6rem .75rem;
  margin-bottom: .5rem;
}
.ep-lap-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ep-lap-sub {
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.ep-lap-time {
  font-size: 1.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--ep-primary, #1fa7e8);
}
