/* ================================================================
   bios-mod.online — Shared Stylesheet v2.1.0
   ================================================================
   Änderungen gegenüber v2.0.0:
     + 5-Layer-Shadow-System (--shadow-sm/shadow/shadow-md/lg/xl)
     + Dropdown-Komponente (Avatar-Menu)
     + Panel-Komponente (für AGESA/CSME in Datenbank)
     + Card-Hover lift zu --shadow-md
   ================================================================ */

/* ================================================================
   1. Design Tokens — Light (Default)
   ================================================================ */
:root {
  --bg:            #f8f9fb;
  --bg2:           #ffffff;
  --bg3:           #f1f3f5;
  --bg4:           #e9ecef;

  --fg:            #1a1e2c;
  --fg2:           #495067;
  --fg3:           #8b92a5;

  --accent:        #2563eb;
  --accent2:       #1d4ed8;
  --accent-bg:     rgba(37, 99, 235, 0.06);

  --green:         #16a34a;
  --green-bg:      rgba(22, 163, 74, 0.06);
  --green-border:  rgba(22, 163, 74, 0.20);

  --amber:         #d97706;
  --amber-bg:      rgba(217, 119, 6, 0.06);
  --amber-border:  rgba(217, 119, 6, 0.20);

  --red:           #dc2626;
  --red-bg:        rgba(220, 38, 38, 0.06);
  --red-border:    rgba(220, 38, 38, 0.20);

  --purple:        #7c3aed;
  --purple-bg:     rgba(124, 58, 237, 0.06);

  --teal:          #0d9488;
  --teal-bg:       rgba(13, 148, 136, 0.06);

  --border:        #e2e5ea;
  --border2:       #d1d5db;

  /* Vendor Colors */
  --v-asus:        #c21a1a; --v-asus-bg:     rgba(194, 26, 26, 0.06);
  --v-msi:         #9d1a1a; --v-msi-bg:      rgba(157, 26, 26, 0.06);
  --v-maxsun:      #3aae43; --v-maxsun-bg:   rgba(58, 174, 67, 0.06);
  --v-gigabyte:    #1e6fba; --v-gigabyte-bg: rgba(30, 111, 186, 0.06);
  --v-asrock:      #a37715; --v-asrock-bg:   rgba(163, 119, 21, 0.06);
  --v-colorful:    #c0382e; --v-colorful-bg: rgba(192, 56, 46, 0.06);
  --v-acer:        #2f7a2f; --v-acer-bg:     rgba(47, 122, 47, 0.06);
  --v-lenovo:      #1a4166; --v-lenovo-bg:   rgba(26, 65, 102, 0.06);
  --v-hp:          #1677c2; --v-hp-bg:       rgba(22, 119, 194, 0.06);
  --v-medion:      #c85214; --v-medion-bg:   rgba(200, 82, 20, 0.06);
  --v-default:     #8b92a5; --v-default-bg:  rgba(139, 146, 165, 0.06);

  /* Typography */
  --mono:          'SF Mono', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
  --sans:          'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     4px;

  /* === 5-LAYER SHADOW SYSTEM === */
  /* Layer 1 — minimal (list rows, subtle separation) */
  --shadow-sm:     0 1px 2px rgba(15, 23, 42, 0.04);
  /* Layer 2 — default (cards resting state) */
  --shadow:        0 1px 3px rgba(15, 23, 42, 0.06),
                   0 1px 2px rgba(15, 23, 42, 0.04);
  /* Layer 3 — lifted (card hover, active state) */
  --shadow-md:     0 4px 6px -1px rgba(15, 23, 42, 0.08),
                   0 2px 4px -2px rgba(15, 23, 42, 0.05);
  /* Layer 4 — floating (dropdowns, popovers) */
  --shadow-lg:     0 10px 15px -3px rgba(15, 23, 42, 0.10),
                   0 4px 6px -4px rgba(15, 23, 42, 0.06);
  /* Layer 5 — elevated (modals, hero cards) */
  --shadow-xl:     0 20px 25px -5px rgba(15, 23, 42, 0.12),
                   0 8px 10px -6px rgba(15, 23, 42, 0.08);

  /* Brand-colored shadow — für Primary-Buttons */
  --shadow-accent: 0 2px 8px rgba(37, 99, 235, 0.25);

  /* Layout */
  --content-max:   1280px;
  --topnav-height: 54px;

  --t-fast:        .15s ease;
  --t-med:         .25s ease;

  color-scheme: light;
}

/* ================================================================
   1b. Dark-Theme
   ================================================================ */
[data-theme="dark"] {
  --bg:            #0d1117;
  --bg2:           #161b22;
  --bg3:           #1c2128;
  --bg4:           #30363d;

  --fg:            #e6edf3;
  --fg2:           #b1bac4;
  --fg3:           #7d8590;

  --accent:        #58a6ff;
  --accent2:       #79b8ff;
  --accent-bg:     rgba(88, 166, 255, 0.12);

  --green:         #56d364;
  --green-bg:      rgba(86, 211, 100, 0.10);
  --green-border:  rgba(86, 211, 100, 0.25);

  --amber:         #e3b341;
  --amber-bg:      rgba(227, 179, 65, 0.10);
  --amber-border:  rgba(227, 179, 65, 0.25);

  --red:           #ff7b72;
  --red-bg:        rgba(255, 123, 114, 0.10);
  --red-border:    rgba(255, 123, 114, 0.25);

  --purple:        #bc8cff;
  --purple-bg:     rgba(188, 140, 255, 0.10);

  --teal:          #56d4d0;
  --teal-bg:       rgba(86, 212, 208, 0.10);

  --border:        #30363d;
  --border2:       #484f58;

  --v-asus:        #ff8787; --v-asus-bg:     rgba(255, 135, 135, 0.10);
  --v-msi:         #ff9d9d; --v-msi-bg:      rgba(255, 157, 157, 0.10);
  --v-maxsun:      #5fd168; --v-maxsun-bg:   rgba(95, 209, 104, 0.10);
  --v-gigabyte:    #5ba8ff; --v-gigabyte-bg: rgba(91, 168, 255, 0.10);
  --v-asrock:      #ffc98c; --v-asrock-bg:   rgba(255, 201, 140, 0.10);
  --v-colorful:    #ff8a82; --v-colorful-bg: rgba(255, 138, 130, 0.10);
  --v-acer:        #7ee787; --v-acer-bg:     rgba(126, 231, 135, 0.10);
  --v-lenovo:      #79c0ff; --v-lenovo-bg:   rgba(121, 192, 255, 0.10);
  --v-hp:          #85c5ff; --v-hp-bg:       rgba(133, 197, 255, 0.10);
  --v-medion:      #ffaa7f; --v-medion-bg:   rgba(255, 170, 127, 0.10);
  --v-default:     #8b949e; --v-default-bg:  rgba(139, 148, 158, 0.10);

  /* Dark-Mode Shadows: höhere Opacity weil weniger Kontrast */
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow:        0 1px 3px rgba(0, 0, 0, 0.40),
                   0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md:     0 4px 6px -1px rgba(0, 0, 0, 0.50),
                   0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg:     0 10px 15px -3px rgba(0, 0, 0, 0.60),
                   0 4px 6px -4px rgba(0, 0, 0, 0.40);
  --shadow-xl:     0 20px 25px -5px rgba(0, 0, 0, 0.70),
                   0 8px 10px -6px rgba(0, 0, 0, 0.50);

  --shadow-accent: 0 2px 8px rgba(88, 166, 255, 0.35);

  color-scheme: dark;
}

/* ================================================================
   2. Reset + Base
   ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background: var(--bg);
  transition: background var(--t-med);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med), color var(--t-med);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ================================================================
   3. Top Navigation
   ================================================================ */
.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
}
.header .inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--topnav-height);
}
.header .logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 4px;
}
.header .logo-mark {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow-accent);
  /* SVG-Chip-Hintergrund erbt via fill="currentColor" */
  color: #0d1117;          /* Light-Mode: dunkler Chip auf heller Site */
}
[data-theme="dark"] .header .logo-mark {
  color: #f1f3f5;          /* Dark-Mode: heller Chip auf dunkler Site (invertiert) */
  box-shadow: none;        /* Accent-Shadow passt nicht zum hellen Chip im Dark-Mode */
}
.header .logo-mark svg { display: block; width: 26px; height: 26px; }
.header .logo span { color: var(--accent); }
.header .ver {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--fg2);
  font-family: var(--mono);
  font-weight: 600;
  background: var(--bg3);
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 12px;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: default;
  transition: background var(--t-fast), color var(--t-fast);
}
.header .ver:hover {
  background: var(--border);
  color: var(--fg);
}
.header .ver-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
  flex-shrink: 0;
}
.header .ver-num {
  display: inline-block;
}

.nav-link {
  font-size: 13px;
  color: var(--fg2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--t-fast);
}
.nav-link:hover { color: var(--fg); background: var(--bg3); }
.nav-link.on {
  color: var(--accent);
  background: var(--accent-bg);
}

.spacer { flex: 1; }

/* Theme-Toggle Button */
.theme-toggle {
  width: 32px;
  height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg2);
  cursor: pointer;
  font-family: inherit;
  transition: var(--t-fast);
  padding: 0;
  margin-left: 4px;
}
.theme-toggle:hover {
  background: var(--bg3);
  color: var(--fg);
  border-color: var(--border2);
}
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Auth Link (Non-Auth State) */
.auth-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.20);
  transition: var(--t-fast);
  margin-left: 8px;
}
[data-theme="dark"] .auth-link { border-color: rgba(88, 166, 255, 0.25); }
.auth-link:hover { background: var(--accent-bg); }

/* User-Pill (Auth-State, Dropdown-Trigger) */
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  background: var(--bg3);
  font-size: 12px;
  color: var(--fg2);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: var(--t-fast);
  margin-left: 8px;
}
.user-pill:hover { background: var(--bg4); color: var(--fg); }
.user-pill .dropdown-chevron {
  opacity: .5;
  margin-left: 2px;
  transition: transform var(--t-fast);
}
.dropdown.open .user-pill .dropdown-chevron { transform: rotate(180deg); opacity: 1; }

.avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.avatar-sm { width: 20px; height: 20px; font-size: 9px; }
.avatar-md { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 36px; height: 36px; font-size: 13px; }

/* ================================================================
   3b. Dropdown-Komponente
   ================================================================ */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  gap: 8px;
}
.dropdown-item:hover {
  background: var(--bg3);
  color: var(--fg);
}
.dropdown-item-danger { color: var(--red); }
.dropdown-item-danger:hover { background: var(--red-bg); color: var(--red); }
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* ================================================================
   4. Layout
   ================================================================ */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 24px 24px 60px;
}
/* v1.14.12: Modifier fuer Seiten die volle Viewport-Breite brauchen
   (aktuell nur database.php mit 2-Spalten-Layout). Der Header bleibt
   durch seine eigene max-width zentriert — nur der Main-Content dehnt
   sich. */
.wrap.wrap-wide {
  max-width: none;
  padding: 24px 32px 60px;
}
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}
.two-col .full-width { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .two-col { grid-template-columns: 1fr; }
}

.page-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.page-header .subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--fg3);
}

/* ================================================================
   5. Cards (mit neuem Shadow-System)
   ================================================================ */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.card-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-body { padding: 16px 20px; }

/* KI-Analyse Findings + Recommendations */
.ai-findings { display: flex; flex-direction: column; gap: 10px; }
.ai-finding {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: 6px;
  background: var(--bg2);
  padding: 10px 12px;
}
.ai-finding-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ai-finding-head strong {
  font-size: 13px;
  color: var(--fg);
  font-weight: 600;
}
.ai-finding-body {
  font-size: 12px;
  color: var(--fg2);
  line-height: 1.6;
}
.ai-finding-evidence {
  margin-top: 6px;
  padding: 6px 8px;
  background: var(--bg3);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg2);
  word-break: break-all;
}
.ai-finding-commands {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-finding-commands code {
  display: block;
  padding: 4px 8px;
  background: var(--bg3);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg);
  word-break: break-all;
}

.card-accent-left {
  border-left: 3px solid var(--accent);
}
.card-accent-left.v-asus     { border-left-color: var(--v-asus); }
.card-accent-left.v-msi      { border-left-color: var(--v-msi); }
.card-accent-left.v-maxsun   { border-left-color: var(--v-maxsun); }
.card-accent-left.v-gigabyte { border-left-color: var(--v-gigabyte); }
.card-accent-left.v-asrock   { border-left-color: var(--v-asrock); }
.card-accent-left.v-colorful { border-left-color: var(--v-colorful); }
.card-accent-left.v-acer     { border-left-color: var(--v-acer); }
.card-accent-left.v-lenovo   { border-left-color: var(--v-lenovo); }
.card-accent-left.v-hp       { border-left-color: var(--v-hp); }
.card-accent-left.v-medion   { border-left-color: var(--v-medion); }
.card-accent-left.v-default  { border-left-color: var(--v-default); }

/* Card-Hover-Lift: wenn die Card auch ein Link ist (a.card, a.bios-card) */
a.card:hover, a.bios-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border2);
  transform: translateY(-1px);
  color: inherit;
}

/* ================================================================
   6. Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: var(--sans);
  transition: var(--t-fast);
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent2); color: #fff; }
.btn-green    { background: var(--green); color: #fff; }
.btn-green:hover { background: #15803d; color: #fff; }
[data-theme="dark"] .btn-green:hover { background: #6fda7f; }
.btn-outline  { background: var(--bg2); color: var(--fg2); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg3); color: var(--fg); }
.btn-disabled { background: var(--bg4); color: var(--fg3); cursor: not-allowed; opacity: 0.6; pointer-events: none; }
.btn-download { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.btn-download:hover { background: rgba(22, 163, 74, 0.12); }
.btn-sm { padding: 6px 14px; font-size: 12px; }

.btns, .btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ================================================================
   7. Pills + Badges
   ================================================================ */
.pill {
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}
.pill-blue   { background: var(--accent-bg); color: var(--accent); }
.pill-green  { background: var(--green-bg); color: var(--green); }
.pill-amber  { background: var(--amber-bg); color: var(--amber); }
.pill-red    { background: var(--red-bg); color: var(--red); }
.pill-teal   { background: var(--teal-bg); color: var(--teal); }
.pill-purple { background: var(--purple-bg); color: var(--purple); }
.pill-stat   { background: var(--bg3); color: var(--fg2); }
.pill-gray   { background: var(--bg3); color: var(--fg3); }  /* v2.0.3: neutraler Pill fuer EXPO unbekannt / kein EXPO */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 700;
}
.badge-pass { background: var(--green-bg); color: var(--green); padding: 2px 8px; border-radius: 3px; }
.badge-fail { background: var(--red-bg);   color: var(--red);   padding: 2px 8px; border-radius: 3px; }
.badge-warn { background: var(--amber-bg); color: var(--amber); padding: 2px 8px; border-radius: 3px; }
.badge-info { background: var(--accent-bg); color: var(--accent); padding: 2px 8px; border-radius: 3px; }

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-left: 4px;
  flex-shrink: 0;
}
.status-dot--verified   { background: var(--green); }
.status-dot--unverified { background: var(--amber); }

/* ================================================================
   8. Meta-Grid
   ================================================================ */
.meta-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}
.meta-grid .lbl { color: var(--fg3); }
.meta-grid .val { font-family: var(--mono); font-size: 12px; }

/* ----------------------------------------------------------------
   SMU-Block (v1.14.36) — AMD-spezifische SMU-Firmware-Anzeige.
   Eingebettet in CPU & Microcode-Card unter dem meta-grid.
   ---------------------------------------------------------------- */
.smu-block {
  border-top: 1px solid var(--border);
  margin: 16px -20px 0;
  padding: 16px 20px 4px;
}
.smu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.smu-header-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--fg3);
}
.smu-header-sep,
.smu-header-count {
  font-size: 11px;
  color: var(--fg3);
}
.smu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.smu-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.smu-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.smu-codename {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.smu-arch-pill {
  background: var(--bg4, var(--border));
  color: var(--fg2);
  font-size: 10px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}
.smu-marketing {
  font-size: 12px;
  color: var(--fg2);
  margin-bottom: 10px;
}
.smu-version-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.smu-version-label {
  font-size: 10px;
  color: var(--fg3);
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.smu-version-value {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--fg);
}

/* ================================================================
   9. Alerts, Code-Block, Back-Link, Empty
   ================================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 13px;
}
.alert-success { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.alert-error   { background: var(--red-bg);   border: 1px solid var(--red-border);   color: var(--red); }
.alert-info    { background: var(--accent-bg); border: 1px solid rgba(37, 99, 235, 0.2); color: var(--accent); }
.alert-warn    { background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
  overflow-x: auto;
  margin: 10px 0;
  white-space: pre-wrap;
}

.back, .back-link {
  font-size: 13px;
  color: var(--fg3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-weight: 500;
}
.back:hover, .back-link:hover { color: var(--accent); }

.empty {
  text-align: center;
  padding: 24px;
  color: var(--fg3);
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.empty a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ================================================================
   10. Vendor-Bar + Vendor-Chip
   ================================================================ */
.vendor-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--v-default);
  margin-bottom: 12px;
}
.vendor-bar.vb-asus     { border-left-color: var(--v-asus); }
.vendor-bar.vb-msi      { border-left-color: var(--v-msi); }
.vendor-bar.vb-maxsun   { border-left-color: var(--v-maxsun); }
.vendor-bar.vb-gigabyte { border-left-color: var(--v-gigabyte); }
.vendor-bar.vb-asrock   { border-left-color: var(--v-asrock); }
.vendor-bar.vb-colorful { border-left-color: var(--v-colorful); }
.vendor-bar.vb-acer     { border-left-color: var(--v-acer); }
.vendor-bar.vb-lenovo   { border-left-color: var(--v-lenovo); }
.vendor-bar.vb-hp       { border-left-color: var(--v-hp); }
.vendor-bar.vb-medion   { border-left-color: var(--v-medion); }
.vendor-bar.vb-default  { border-left-color: var(--v-default); }
.vendor-bar img { height: 22px; width: auto; }
.vendor-bar .vb-count { margin-left: auto; font-size: 12px; color: var(--fg3); font-weight: 500; }

/* Vendor-Chip */
.vchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--v-default-bg);
  border-radius: 6px;
  flex-shrink: 0;
  padding: 4px;
}
.vchip img { max-width: 100%; max-height: 100%; }
.vchip svg { max-width: 100%; max-height: 100%; display: block; }
/* v1.14.13: vchip nutzt currentColor in den SVGs. Farbe pro Vendor
   setzt den Logo-Ton und passt sich automatisch an Light/Dark Mode an,
   weil --v-xxx in beiden Themes definiert ist. */
.vchip.vchip-asus     { background: var(--v-asus-bg);     color: var(--v-asus); }
.vchip.vchip-msi      { background: var(--v-msi-bg);      color: var(--v-msi); }
.vchip.vchip-maxsun   { background: var(--v-maxsun-bg);   color: var(--v-maxsun); }
.vchip.vchip-gigabyte { background: var(--v-gigabyte-bg); color: var(--v-gigabyte); }
.vchip.vchip-asrock   { background: var(--v-asrock-bg);   color: var(--v-asrock); }
.vchip.vchip-colorful { background: var(--v-colorful-bg); color: var(--v-colorful); }
.vchip.vchip-acer     { background: var(--v-acer-bg);     color: var(--v-acer); }
.vchip.vchip-lenovo   { background: var(--v-lenovo-bg);   color: var(--v-lenovo); }
.vchip.vchip-hp       { background: var(--v-hp-bg);       color: var(--v-hp); }
.vchip.vchip-medion   { background: var(--v-medion-bg);   color: var(--v-medion); }
.vchip-sm { width: 24px; height: 24px; padding: 3px; }
.vchip-md { width: 32px; height: 32px; padding: 4px; }
.vchip-lg { width: 44px; height: 44px; padding: 6px; }
/* v1.14.14: vchip-xl wurde vom 52x52 Kreis zum 88x48 Wide Pill — damit
   schmale Wordmark-Logos (ASRock 5:1, Gigabyte 7.7:1) genug horizontale
   Flaeche bekommen und nicht auf 6-10px Hoehe zusammenschrumpfen. */
.vchip-xl { width: 88px; height: 48px; padding: 10px 14px; border-radius: 10px; }
.vchip-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9px;
  color: var(--fg);
}
.vchip-sm .vchip-text { font-size: 8px; }
.vchip-lg .vchip-text { font-size: 11px; }
.vchip-xl .vchip-text { font-size: 13px; }

/* ================================================================
   11. Metric-Tile
   ================================================================ */
.metric-tile {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.metric-tile-label {
  font-size: 9px;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.metric-tile-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 2px;
  font-family: var(--mono);
}
.metric-tile-value-mono { font-family: var(--mono); font-size: 13px; line-height: 1.3; }
.metric-tile-sub { font-size: 10px; color: var(--fg3); margin-top: 2px; }
.metric-tile-sub.danger  { color: var(--red); }
.metric-tile-sub.success { color: var(--green); }
.metric-tile-sub.warning { color: var(--amber); }
.metric-tile-value.danger  { color: var(--red); }
.metric-tile-value.success { color: var(--green); }
.metric-tile-value.warning { color: var(--amber); }
.metric-tile.compact { padding: 8px 10px; }
.metric-tile.compact .metric-tile-value { font-size: 15px; }

.metric-grid    { display: grid; gap: 8px; }
.metric-grid-2  { grid-template-columns: repeat(2, 1fr); }
.metric-grid-3  { grid-template-columns: repeat(3, 1fr); }
.metric-grid-4  { grid-template-columns: repeat(4, 1fr); }
.metric-grid-6  { grid-template-columns: repeat(6, 1fr); }
.metric-grid-8  { grid-template-columns: repeat(8, 1fr); }
@media (max-width: 900px) {
  .metric-grid-8 { grid-template-columns: repeat(4, 1fr); }
  .metric-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .metric-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   11b. Info-Panel (AGESA/CSME in Datenbank)
   ================================================================ */
.info-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.info-panel.v-amd   { border-left-color: var(--red); }
.info-panel.v-intel { border-left-color: var(--accent); }

.info-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg3);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
}
.info-panel-header:hover { background: var(--bg4); }
.info-panel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
}
.info-panel-subtitle {
  font-size: 11px;
  color: var(--fg3);
  font-weight: 500;
}
.info-panel-toggle {
  color: var(--fg3);
  font-size: 12px;
  transition: transform var(--t-fast);
}
.info-panel[open] .info-panel-toggle { transform: rotate(180deg); }
.info-panel-body {
  padding: 12px 16px;
}
.info-panel:not([open]) .info-panel-body { display: none; }

.changelog-entry {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-severity {
  width: 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.changelog-severity.critical { background: var(--red); }
.changelog-severity.high     { background: var(--red); }
.changelog-severity.security { background: var(--red); }
.changelog-severity.medium   { background: var(--amber); }
.changelog-severity.low      { background: var(--accent); }
.changelog-severity.info     { background: var(--fg3); }
.changelog-content { flex: 1; min-width: 0; }
.changelog-title {
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}
.changelog-meta {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--fg3);
  align-items: center;
}

/* ================================================================
   12. Hero + Stats-Banner
   ================================================================ */
.hero-v2 {
  text-align: center;
  padding: 56px 24px 36px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-v2 .eyebrow {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-v2 h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-v2 h1 .hl {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-v2 p {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 24px;
}
.hero-v2 .actions {
  display: flex; gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   Stats-Banner (v2 — icon-basiert, passt sich N Kacheln an)
   Kein starres 5-Spalten-Grid mehr — das Flex-Layout verteilt sich
   gleichmaessig, egal ob 3, 4 oder 5 Metriken vorhanden sind.
   ================================================================ */
/* ================================================================
   12. Stats Dashboard (v1.0.1 — modernized from stats-banner)
   ================================================================
   Design-Prinzipien:
   - Jede Karte hat eine vertikale Akzent-Linie links (unique Farbe)
   - Icon in subtil-gradiertem Kreis
   - Grosse Zahl mit Tabular-Nums fuer bessere Ausrichtung
   - Context-Zeile unter Wert fuer Sekundaer-Information
   - Hover: Lift-Effekt + Border-Glow
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.stat-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px 18px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* Vertikale Akzent-Linie links */
.stat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--stat-accent, var(--accent));
  opacity: 0.85;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12), var(--shadow);
  border-color: var(--stat-accent, var(--accent));
}

/* Accent-Farben pro Karten-Typ */
.stat-card--accent { --stat-accent: var(--accent); }
.stat-card--amber  { --stat-accent: var(--amber); }
.stat-card--green  { --stat-accent: var(--green); }
.stat-card--red    { --stat-accent: var(--red); }

.stat-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.stat-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--stat-accent, var(--accent));
  /* Fallback fuer aeltere Browser ohne color-mix */
  background: rgba(73, 98, 246, 0.10);
}
@supports (background: color-mix(in srgb, red, blue)) {
  .stat-card-icon {
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--stat-accent) 18%, transparent),
      color-mix(in srgb, var(--stat-accent) 6%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stat-accent) 12%, transparent);
  }
}
.stat-card-icon svg {
  width: 20px;
  height: 20px;
}
.stat-card-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.stat-card-value {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--fg);
  letter-spacing: -1px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.stat-card-context {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.4;
}

/* Vendor-Dots: kleine farbige Punkte vor AMD/Intel Labels */
.stat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-dot--amd   { background: #ed1c24; }
.stat-dot--intel { background: #0071c5; }
.stat-sep { color: var(--border); }

/* Pulsierender Punkt fuer "letzter Upload" - Live-Signal */
.stat-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.stat-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: stat-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0.6;
}
@keyframes stat-pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0;   }
}
/* Respektiert prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .stat-pulse::after { animation: none; }
  .stat-card:hover { transform: none; }
}

/* Mobile: Karten untereinander */
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card-value { font-size: 32px; }
}

/* Dark-Mode-Feinschliff */
[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5), var(--shadow);
}

/* ================================================================
   12b. Stats Banner (legacy - fuer dashboard.php und andere Seiten)
   ================================================================ */
.stats-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
}
.stats-banner-cell {
  flex: 1 1 0;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  transition: background .15s ease;
}
.stats-banner-cell:hover {
  background: var(--bg3);
}
.stats-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(73, 98, 246, 0.10);
  color: var(--accent);
}
@supports (background: color-mix(in srgb, red, blue)) {
  .stats-banner-icon {
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 15%, transparent),
      color-mix(in srgb, var(--accent) 6%, transparent));
  }
}
.stats-banner-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
.stats-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}
.stats-banner-value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--fg);
  letter-spacing: -.5px;
}
.stats-banner-label {
  font-size: 11px;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 2px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .stats-banner-cell { flex: 1 1 100%; }
}

/* ================================================================
   13. BIOS-Card
   ================================================================ */
.bios-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow);
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.bios-card.card-accent-left { padding-left: 13px; }
.bios-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.bios-card-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bios-card-ident-text { min-width: 0; }
.bios-card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bios-card-sub {
  font-size: 11px;
  color: var(--fg3);
  font-family: var(--mono);
  margin-top: 2px;
}
.bios-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--fg3);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

/* ================================================================
   14. Datenbank-Row
   ================================================================ */
.db-table {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.db-thead {
  display: grid;
  grid-template-columns: 32px 220px 140px 120px 90px 80px 110px 60px 100px 24px;
  gap: 10px;
  padding: 10px 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fg3);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.db-row {
  display: grid;
  grid-template-columns: 32px 220px 140px 120px 90px 80px 110px 60px 100px 24px;
  gap: 10px;
  padding: 7px 16px;
  padding-left: 13px;
  font-size: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast);
  text-decoration: none;
  color: inherit;
}
.db-row:hover { background: var(--bg3); color: inherit; }
.db-row:last-child { border-bottom: none; }
.db-row.v-asus     { border-left-color: var(--v-asus); }
.db-row.v-msi      { border-left-color: var(--v-msi); }
.db-row.v-maxsun   { border-left-color: var(--v-maxsun); }
.db-row.v-gigabyte { border-left-color: var(--v-gigabyte); }
.db-row.v-asrock   { border-left-color: var(--v-asrock); }
.db-row.v-colorful { border-left-color: var(--v-colorful); }
.db-row.v-acer     { border-left-color: var(--v-acer); }
.db-row.v-lenovo   { border-left-color: var(--v-lenovo); }
.db-row.v-hp       { border-left-color: var(--v-hp); }
.db-row.v-medion   { border-left-color: var(--v-medion); }
.db-row.v-default  { border-left-color: var(--v-default); }

.db-row-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-row-sub {
  font-size: 10px;
  color: var(--fg3);
  margin-top: 1px;
}
.db-row-r { text-align: right; }
.db-row-chevron {
  color: var(--fg3);
  font-size: 10px;
  text-align: center;
}

.mono         { font-family: var(--mono); }
.danger-text  { color: var(--red);   font-weight: 600; }
.warn-text    { color: var(--amber); font-weight: 600; }
.success-text { color: var(--green); font-weight: 600; }
.muted-text   { color: var(--fg3); }

/* ================================================================
   15. Diff-Row
   ================================================================ */
.diff-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.diff-picker-swap { display: flex; align-items: center; justify-content: center; }
.diff-picker-swap button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}
.diff-picker-swap button:hover { background: var(--bg3); color: var(--fg); }
@media (max-width: 800px) {
  .diff-picker { grid-template-columns: 1fr; }
  .diff-picker-swap button { transform: rotate(90deg); }
}

.diff-thead {
  display: grid;
  grid-template-columns: 24px 1fr 160px 120px 120px 110px;
  gap: 12px;
  padding: 10px 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fg3);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.diff-row {
  display: grid;
  grid-template-columns: 24px 1fr 160px 120px 120px 110px;
  gap: 12px;
  padding: 10px 16px;
  padding-left: 13px;
  font-size: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}
.diff-row:last-child { border-bottom: none; }
.diff-row-changed { background: var(--amber-bg); border-left-color: var(--amber); }
.diff-row-only-a  { border-left-color: var(--v-asus); }
.diff-row-only-b  { border-left-color: var(--v-msi); }

.diff-row-marker { font-weight: 700; font-size: 13px; text-align: center; }
.diff-row-changed .diff-row-marker { color: var(--amber); }
.diff-row-only-a .diff-row-marker  { color: var(--v-asus); }
.diff-row-only-b .diff-row-marker  { color: var(--v-msi); }

.diff-row-name { font-weight: 600; color: var(--fg); }
.diff-row-sub  { font-size: 10px; color: var(--fg3); margin-top: 1px; }

.diff-value {
  font-family: var(--mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  display: inline-block;
  white-space: nowrap;
}
.diff-value-a { background: rgba(194, 26, 26, 0.10); color: var(--v-asus); }
.diff-value-b { background: rgba(37, 99, 235, 0.10); color: var(--accent); }
[data-theme="dark"] .diff-value-a { background: rgba(255, 135, 135, 0.15); }
[data-theme="dark"] .diff-value-b { background: rgba(88, 166, 255, 0.15); }
.diff-value-muted   { background: var(--bg3); color: var(--fg2); font-weight: 500; }
.diff-value-missing { color: var(--fg3); font-style: italic; font-family: inherit; }

/* ================================================================
   16. Vendor × Platform Matrix
   ================================================================ */
.matrix {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.matrix-row {
  display: grid;
  grid-template-columns: 150px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
}
.matrix-row:last-child { border-bottom: none; }
.matrix-cell {
  padding: 10px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--mono);
  border-right: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.matrix-cell:last-child { border-right: none; }
.matrix-cell:hover { filter: brightness(0.95); }
[data-theme="dark"] .matrix-cell:hover { filter: brightness(1.15); }

.matrix-header {
  background: var(--bg3);
  padding: 10px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--fg3);
  font-weight: 600;
  font-family: var(--sans);
}
.matrix-label {
  background: var(--bg2);
  justify-content: flex-start;
  gap: 10px;
  font-size: 12px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-weight: 600;
}
.matrix-empty { color: var(--fg3); font-weight: 400; font-family: var(--sans); }
.matrix-sum   { background: var(--bg3); font-weight: 700; }
.matrix-low   { background: transparent; }
.matrix-mid   { background: rgba(37, 99, 235, 0.08); color: var(--accent); }
.matrix-high  { background: rgba(37, 99, 235, 0.20); color: var(--accent); font-weight: 700; }
[data-theme="dark"] .matrix-mid  { background: rgba(88, 166, 255, 0.15); }
[data-theme="dark"] .matrix-high { background: rgba(88, 166, 255, 0.30); }

/* ================================================================
   17. Activity-Feed + Notifications
   ================================================================ */
.activity-feed {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.activity-item:last-child { border-bottom: none; }
.activity-item-text { flex: 1; min-width: 0; color: var(--fg2); line-height: 1.45; }
.activity-item-text strong { font-weight: 600; color: var(--fg); }
.activity-item-text em     { font-style: normal; color: var(--fg); }
.activity-item-time { color: var(--fg3); font-size: 11px; flex-shrink: 0; }

.notif-list {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.notif-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid var(--border);
  font-size: 12px;
}
.notif-item:last-child { border-bottom: none; }
.notif-info    { border-left-color: var(--accent); }
.notif-success { border-left-color: var(--green); }
.notif-warn    { border-left-color: var(--amber); }
.notif-danger  { border-left-color: var(--red); }
.notif-title { font-weight: 600; line-height: 1.3; color: var(--fg); }
.notif-body  { font-size: 11px; color: var(--fg2); line-height: 1.4; margin-top: 2px; }
.notif-time  { font-size: 10px; color: var(--fg3); margin-top: 3px; }

/* ================================================================
   18. Quick-Action
   ================================================================ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.quick-action {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  transition: var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.quick-action:hover {
  background: var(--bg3);
  border-color: var(--border2);
  color: var(--fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.quick-action-icon {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--accent);
  line-height: 1;
}
.quick-action-label { font-size: 11px; font-weight: 600; }

/* ================================================================
   19. ROM-Hero, Verify-Status, File-Info, Similar-List
   ================================================================ */
.rom-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--v-default);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.rom-hero.v-asus     { border-left-color: var(--v-asus); }
.rom-hero.v-msi      { border-left-color: var(--v-msi); }
.rom-hero.v-maxsun   { border-left-color: var(--v-maxsun); }
.rom-hero.v-gigabyte { border-left-color: var(--v-gigabyte); }
.rom-hero.v-asrock   { border-left-color: var(--v-asrock); }
.rom-hero.v-colorful { border-left-color: var(--v-colorful); }
.rom-hero.v-acer     { border-left-color: var(--v-acer); }
.rom-hero.v-lenovo   { border-left-color: var(--v-lenovo); }
.rom-hero.v-hp       { border-left-color: var(--v-hp); }
.rom-hero.v-medion   { border-left-color: var(--v-medion); }
.rom-hero-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.rom-hero-left { display: flex; gap: 16px; align-items: flex-start; }
.rom-hero-badges {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rom-hero-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.rom-hero-meta { font-size: 13px; color: var(--fg2); line-height: 1.5; }
.rom-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 12px;
  color: var(--fg3);
}

.verify-status {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.verify-status.unverified { background: var(--amber-bg); border-color: var(--amber-border); }
.verify-status.failed     { background: var(--red-bg);   border-color: var(--red-border); }
.verify-status-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.verify-status-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.verify-status.unverified .verify-status-icon { background: var(--amber); }
.verify-status.failed .verify-status-icon { background: var(--red); }
.verify-status-title { font-size: 13px; font-weight: 700; color: var(--green); }
.verify-status.unverified .verify-status-title { color: var(--amber); }
.verify-status.failed .verify-status-title { color: var(--red); }
.verify-status-body { font-size: 11px; color: var(--fg2); line-height: 1.5; }
.verify-status-time { font-size: 10px; color: var(--fg3); margin-top: 4px; }

.info-list { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.info-list-row { display: flex; justify-content: space-between; gap: 10px; }
.info-list-row > span:first-child { color: var(--fg3); flex-shrink: 0; }
.info-list-row > span:last-child {
  color: var(--fg);
  text-align: right;
  font-family: var(--mono);
  word-break: break-all;
  min-width: 0;
}

.similar-list { display: flex; flex-direction: column; gap: 4px; }
.similar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  text-decoration: none;
  color: var(--fg);
  transition: background var(--t-fast);
}
.similar-item:hover { background: var(--bg3); color: var(--fg); }
.similar-item-text { flex: 1; min-width: 0; }
.similar-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.similar-item-sub { font-size: 10px; color: var(--fg3); font-family: var(--mono); }

.breadcrumb {
  font-size: 11px;
  color: var(--fg3);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--fg3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb > span:last-child { color: var(--fg); font-weight: 500; }

/* ================================================================
   20. Filter-Bar + Chips
   ================================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.filter-bar-sep { width: 1px; height: 20px; background: var(--border); }
.filter-bar-label { font-size: 11px; color: var(--fg3); }

.chip-toggle {
  display: inline-flex;
  gap: 2px;
  background: var(--bg3);
  border-radius: 6px;
  padding: 2px;
}
.chip-toggle button, .chip-toggle a {
  padding: 5px 12px;
  font-size: 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--fg2);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: var(--t-fast);
}
.chip-toggle button:hover, .chip-toggle a:hover { color: var(--fg); }
.chip-toggle .on {
  background: var(--bg2);
  color: var(--fg);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  color: var(--fg2);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: var(--t-fast);
}
.chip:hover { border-color: var(--border2); color: var(--fg); }
.chip.on, .chip-active {
  background: var(--accent-bg);
  border-color: transparent;
  color: var(--accent);
  font-weight: 600;
}
.chip-count { color: var(--fg3); margin-left: 3px; font-weight: 400; }
.chip-remove { margin-left: 3px; opacity: .6; }

.input {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 12px;
  background: var(--bg2);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-width: 0;
}
.input::placeholder { color: var(--fg3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

.select {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 28px 7px 12px;
  background: var(--bg2);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%238b92a5' d='M3 4.5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ================================================================
   21. Pagination
   ================================================================ */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  font-size: 12px;
  color: var(--fg3);
}
.pagination-pages { display: flex; gap: 4px; }
.pagination-page {
  padding: 5px 12px;
  font-size: 12px;
  background: var(--bg2);
  color: var(--fg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: var(--t-fast);
}
.pagination-page:hover { background: var(--bg3); color: var(--fg); }
.pagination-page.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ================================================================
   22. Donate-Banner
   ================================================================ */
.donate-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--fg3);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: .2s;
  margin-left: 8px;
}
.donate-footer-link:hover { color: #eab308; border-color: #eab308; background: rgba(234, 179, 8, 0.06); }
.donate-footer-link .heart { color: #ef4444; font-size: 13px; }

.donate-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.donate-banner .d-icon { font-size: 22px; flex-shrink: 0; }
.donate-banner .d-text { flex: 1; min-width: 0; }
.donate-banner .d-main { font-size: 13px; font-weight: 600; color: var(--fg); }
.donate-banner .d-sub  { font-size: 11px; color: var(--fg3); margin-top: 2px; }
.donate-banner .d-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: #ff5e5b;
  transition: .2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.donate-banner .d-btn:hover {
  background: #e54542;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   Footer
   ================================================================ */
.footer, .site-footer {
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: var(--fg3);
}
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--fg3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   23. Utilities
   ================================================================ */
.mt-1 { margin-top:  8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--fg3); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.text-mono  { font-family: var(--mono); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-between-base { display: flex; justify-content: space-between; align-items: baseline; }
.stack-v { display: flex; flex-direction: column; gap: 16px; }
.stack-v-sm { display: flex; flex-direction: column; gap: 8px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nowrap { white-space: nowrap; }

/* =====================================================================
 * Memory-Features-Card (v2.0.4) — EXPO-Generation + DIMM-Typen
 * Bios.php-Detail-Seite, nur AMD-ROMs.
 *
 * v2.0.4: AMD-EXPO-Badge als Hero-Element in der Card. Pure CSS —
 * kein Bild, keine Font-Dependency. Orange-Gradient ist AMD-Markenzeichen
 * und bleibt in Dark-Mode identisch (bewusst nicht themed).
 * ===================================================================== */
.memory-features-card .card-head { gap: 10px; align-items: center; }

.memory-features-card .pill-sm {
  font-size: 10px; padding: 2px 6px; font-weight: 600;
}

/* ---- AMD EXPO Badge ---- */
.expo-badge {
  width: 240px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.expo-badge-banner {
  background: linear-gradient(135deg, #f26522 0%, #e8391e 50%, #ae1a1a 100%);
  padding: 10px 14px 11px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* v1.10.10: Intel XMP-Badge-Variante — analog zum AMD-EXPO-Banner aber mit
   Intel-Brand-Blau-Gradient. Hell-Cyan -> Intel-Blau -> Tiefblau, matcht
   das offizielle Intel XMP 3.0 Logo. Override greift weil .xmp-badge-intel
   im selben Selector-Kontext ist und spezifischer ist als nur .expo-badge-banner. */
.xmp-badge-intel .expo-badge-banner {
  background: linear-gradient(135deg, #00a4e0 0%, #0071c5 50%, #003e7e 100%);
}
/* Auf orangem AMD-Banner hatte das "Intel"-Wordmark einen Inline-Style
   `background:#0071c5` zur Hervorhebung. Auf dem jetzt blauen XMP-Banner
   wuerde Blau-auf-Blau verschwinden. Wir uebersteuern den Inline-Style
   mit einem subtilen halbtransparenten Pill — genug Lesbarkeit ohne
   Kontrast-Bruch zum Banner. */
.xmp-badge-intel .expo-badge-amd {
  background: rgba(255, 255, 255, 0.18) !important;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.expo-badge-banner::before {
  content: "";
  position: absolute;
  top: -30%; right: -15%;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.expo-badge-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px; position: relative;
}
.expo-badge-logo {
  display: flex; flex-direction: column; line-height: 1;
}
.expo-badge-amd {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  opacity: 0.9; margin-bottom: 2px;
}
.expo-badge-wordmark {
  font-size: 20px; font-weight: 900; letter-spacing: -0.01em;
}
.expo-badge-version {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 9px; border-radius: 16px;
  letter-spacing: 0.02em;
}
.expo-badge-tagline {
  font-size: 9px; font-weight: 500;
  margin-top: 5px; opacity: 0.9;
  text-transform: uppercase; letter-spacing: 0.08em;
  position: relative;
  white-space: nowrap;
}
.expo-badge-body {
  padding: 10px 14px 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.expo-badge-status-label {
  font-size: 11px; color: var(--fg3);
  text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 600;
}
.expo-badge-status-value {
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 5px;
}
.expo-badge-status-icon { width: 13px; height: 13px; }

/* Status-Farben je nach EXPO-Generation */
.expo-status-active  .expo-badge-status-value { color: var(--green); }
.expo-status-partial .expo-badge-status-value { color: var(--amber); }
.expo-status-base    .expo-badge-status-value { color: var(--accent); }
.expo-status-none    .expo-badge-status-value { color: var(--fg3); }

.memory-notes {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.memory-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: var(--fg2); line-height: 1.5;
}
.memory-note-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  color: var(--amber); margin-top: 2px;
}

.memory-evidence {
  margin-top: 12px; font-size: 12px;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.memory-evidence > summary {
  cursor: pointer; font-weight: 600; color: var(--fg2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0; list-style: none;
  user-select: none;
}
.memory-evidence > summary::-webkit-details-marker { display: none; }
.memory-evidence-arrow {
  display: inline-block; font-family: var(--mono); color: var(--fg3);
  transition: transform var(--t-fast, 150ms) ease;
}
.memory-evidence[open] > summary .memory-evidence-arrow {
  transform: rotate(90deg);
}
.memory-evidence-count {
  color: var(--fg3); font-weight: 400; font-size: 11px;
}
.memory-evidence-list {
  margin-top: 8px; display: flex; flex-direction: column; gap: 4px;
}
.memory-evidence-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 10px; background: var(--bg3); border-radius: 6px;
  font-size: 12px;
}
.memory-tier {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.memory-tier-1 { background: var(--accent-bg); color: var(--accent); }
.memory-tier-2 { background: var(--green-bg);  color: var(--green); }
.memory-tier-3 { background: var(--border); color: var(--fg2); }

.memory-evidence-type {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg3); background: transparent;
  padding: 0;
}
.memory-evidence-value {
  font-weight: 600; color: var(--fg);
}
.memory-evidence-count-badge {
  font-family: var(--mono); font-size: 10px;
  background: var(--bg2); color: var(--fg3);
  padding: 1px 6px; border-radius: 3px;
  border: 1px solid var(--border);
}
.memory-evidence-note {
  color: var(--fg2); font-style: italic; font-size: 11.5px;
  margin-left: auto;
}

/* Dark-Mode wird durch --border / --bg3 / --accent-bg Variablen
   automatisch mit umgeschaltet — keine spezifischen Overrides noetig. */

/* =====================================================================
 * Memory Features v1.10.27 — ULL-Panel, Capability-Matrix, Vendor-Discovery
 * =====================================================================
 *
 * v1.10.27 (Platform): Erweitert die Memory-Features-Card um vier neue
 * Komponenten, die rechts neben der bestehenden AMD-EXPO-Badge liegen:
 *
 *   1) ull-panel              — ULL-Status (active/capable/absent)
 *   2) capability-matrix      — Module-Geometry-Capabilities (4 Cells)
 *   3) vendor-discovery       — PMIC/CKD/RCD-Vendor-Erkennung
 *   4) evidence-summary       — kompakte Confidence-Bar mit Tier-Typen
 *
 * Layout: 2-Spalten-Grid (240px EXPO-Badge | 1fr feature-stack), bricht
 * unter 720px Container-Breite zu Single-Column um.
 * ===================================================================== */

/* ---- Two-Column Memory Layout ---- */
.mem-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 720px) {
  .mem-layout { grid-template-columns: 1fr; }
}
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---- Section-Header inside feature-stack ---- */
.section-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- ULL-Status-Panel ---- */
.ull-panel {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg3);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.ull-panel.is-active   { background: var(--green-bg);  border-color: var(--green-border); }
.ull-panel.is-capable  { background: var(--amber-bg);  border-color: var(--amber-border); }
.ull-panel.is-absent   { background: var(--bg3);       border-color: var(--border); }

.ull-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ull-panel.is-active  .ull-icon-wrap { background: var(--green); color: #fff; box-shadow: 0 0 0 4px var(--green-bg); }
.ull-panel.is-capable .ull-icon-wrap { background: var(--amber); color: #fff; box-shadow: 0 0 0 4px var(--amber-bg); }
.ull-panel.is-absent  .ull-icon-wrap { background: var(--bg4);   color: var(--fg3); }

.ull-text { flex: 1; min-width: 0; }
.ull-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ull-tagline {
  font-size: 11.5px;
  color: var(--fg2);
  line-height: 1.45;
}
.ull-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ull-panel.is-active   .ull-status-pill { background: var(--green); color: #fff; }
.ull-panel.is-capable  .ull-status-pill { background: var(--amber); color: #fff; }
.ull-panel.is-absent   .ull-status-pill { background: var(--bg4); color: var(--fg3); }

/* ---- DIMM-Pills-Row ---- */
.dimm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dimm-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 120px;
}

/* ---- Module-Geometry Capability-Matrix ---- */
.capability-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.cap-cell {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 11px 13px 10px;
  background: var(--bg2);
  position: relative;
}
.cap-cell.cap-on {
  background: var(--green-bg);
  border-color: var(--green-border);
}
.cap-cell.cap-off {
  background: var(--bg);
  opacity: 0.55;
}
.cap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}
.cap-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cap-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.cap-on  .cap-icon { color: var(--green); }
.cap-off .cap-icon { color: var(--fg3); }
.cap-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.cap-cell.cap-off .cap-value { color: var(--fg3); }
.cap-detail {
  font-size: 10.5px;
  color: var(--fg2);
  margin-top: 2px;
  line-height: 1.35;
}
.cap-cell.cap-off .cap-detail { color: var(--fg3); }

/* ---- Cap-Info-Button (Click-Popover-Trigger, NEU v1.10.29) ---- */
.cap-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--fg3);
  cursor: pointer;
  transition: color .12s ease, background .12s ease, transform .12s ease;
  flex-shrink: 0;
}
.cap-info svg { width: 14px; height: 14px; }
.cap-info:hover {
  color: var(--accent, #3b82f6);
  background: var(--bg2);
}
.cap-info:focus-visible {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: 1px;
}
.cap-info:active { transform: scale(0.92); }
.cap-cell.cap-off .cap-info { color: var(--fg3); }
.cap-cell.cap-off .cap-info:hover { color: var(--fg2); }

/* ---- Cap-Info-Modal (NEU v1.10.29) ---- */
.cap-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.cap-modal[hidden] { display: none; }
.cap-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.cap-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg, #fff);
  color: var(--fg, #0f172a);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 22px 24px 20px;
  transform: translateY(8px) scale(0.98);
  transition: transform .18s ease;
}
.cap-modal.is-open .cap-modal-content {
  transform: translateY(0) scale(1);
}
.cap-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--fg2);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.cap-modal-close svg { width: 16px; height: 16px; }
.cap-modal-close:hover {
  background: var(--bg2);
  color: var(--fg);
}
.cap-modal-close:focus-visible {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: 1px;
}
.cap-modal-title {
  margin: 0 32px 14px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cap-modal-section {
  margin-top: 14px;
}
.cap-modal-section:first-of-type { margin-top: 0; }
.cap-modal-section-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: 4px;
}
.cap-modal-section p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg);
}
/* Status-Sektion farbig markieren je nachdem ob im UI sichtbar oder nicht */
.cap-modal-status-section {
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 16px;
}
.cap-modal-status-section.is-on {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.20);
}
.cap-modal-status-section.is-off {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
}
.cap-modal-status-section .cap-modal-section-head {
  margin-bottom: 4px;
}
.cap-modal-status-section.is-on  .cap-modal-section-head { color: rgb(21, 128, 61); }
.cap-modal-status-section.is-off .cap-modal-section-head { color: rgb(180, 83, 9); }

@media (max-width: 480px) {
  .cap-modal-content { padding: 18px 18px 16px; }
  .cap-modal-title { font-size: 16px; }
}

/* ---- Vendor-Discovery (PMIC/CKD/RCD) ---- */
.vendor-discovery {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  padding: 14px;
  background: var(--bg2);
}
.vendor-discovery-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vendor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vendor-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(124, 58, 237, 0.18);
  font-weight: 600;
}
.vendor-chip.vendor-empty {
  background: var(--bg3);
  color: var(--fg3);
  border-color: var(--border);
  font-family: var(--sans);
  font-style: italic;
}

/* ---- Evidence-Summary-Bar (kompakte Confidence-Anzeige) ---- */
.evidence-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg);
  font-size: 12px;
  color: var(--fg2);
  flex-wrap: wrap;
}
.evidence-summary .conf-bar {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--bg4);
  overflow: hidden;
  min-width: 80px;
}
.evidence-summary .conf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 3px;
}
.evidence-summary .conf-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
}
.evidence-summary .signal-count {
  font-size: 11px;
  color: var(--fg3);
}
.evidence-summary .signal-count strong {
  color: var(--fg);
  font-weight: 700;
}

/* ---- Memory-Note "good" Variante (gruener Haken) ---- */
.memory-note.note-good .memory-note-icon { color: var(--green); }
.memory-note.note-warn .memory-note-icon { color: var(--amber); }
