:root {
  --bg: #000000;
  --panel: #0b0b0b;
  --panel-2: #101010;
  --card: #121212;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.72);
  --muted-2: rgba(255,255,255,0.58);
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.14);
  --gold: #d4af37;
  --gold-soft: #e6c75a;
  --danger: #ff4d4d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 26px rgba(0,0,0,0.55);
  --shadow-btn: 0 6px 16px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 14px 24px 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header (identisch Tool-Basis) ===== */
.r4x-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px 6px 16px;
  border-bottom: 3px solid var(--gold);
}

.r4x-header--dark {
  background: #000000;
}

.r4x-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.r4x-logo {
  width: 2cm;
  height: 2cm;
  object-fit: contain;
}

.r4x-header-main-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.r4x-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 30% 30%, #444 0, #000 40%, #000 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 3px 8px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.08s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05);
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  filter: brightness(0.97);
}

.r4x-header-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hamburger-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.08s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #000000;
}

.hamburger-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.hamburger-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #000000;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  padding: 8px 0;
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  z-index: 20;
}

.hamburger-menu.open {
  display: block;
}

.hamburger-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
}

.hamburger-menu a:hover {
  background: #202020;
}

@media (max-width: 768px) {
  .r4x-header {
    padding: 8px 10px 6px 10px;
    gap: 10px;
  }

  .r4x-nav {
    gap: 4px;
  }

  .nav-btn {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .r4x-logo {
    width: 1.6cm;
    height: 1.6cm;
  }
}

/* ===== Tool UI ===== */
.toolbar {
  background: linear-gradient(180deg, rgba(212,175,55,0.10) 0%, rgba(0,0,0,0) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 14px 10px 14px;
}

.toolbar-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tool-name {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.tool-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.55);
  color: var(--text);
  outline: none;
}

.search:focus {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  user-select: none;
}

.btn:hover { border-color: rgba(212,175,55,0.35); }

.btn:active { transform: translateY(1px); }

.btn--gold {
  border-color: rgba(212,175,55,0.6);
  background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.22), rgba(0,0,0,0.60) 55%, rgba(0,0,0,0.70) 100%);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

/* Smaller button variant (used in Active Filter header) */
.btn--mini {
  padding: 7px 10px;
  font-size: 0.82rem;
}

/* Reset button is moved into the Active Filter box when filters are active */
.controls #reset { display: none; }

.btn[aria-pressed="true"] {
  border-color: rgba(212,175,55,0.9);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}

.status-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.count {
  color: var(--muted);
  font-size: 0.85rem;
}

.count.is-filtered {
  color: rgba(255,255,255,0.92);
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.40);
  background: rgba(212,175,55,0.10);
  color: rgba(212,175,55,0.95);
  font-size: 0.74rem;
  font-weight: 800;
}

.legend {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.legend b { color: var(--text); font-weight: 800; }

.chips-row {
  margin-top: 12px;
}

.row-label {
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-bottom: 6px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

.chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-nav {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.45);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}

.chip-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Drag-to-scroll hint on desktop */
#useCaseChips {
  flex: 1 1 auto;
  cursor: grab;
}

#useCaseChips.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* Use-Case Chips: Native Scrollbar verstecken, Gold-Indikator bleibt sichtbar */
#useCaseChips {
  padding-bottom: 2px;
  scrollbar-width: none; /* Firefox */
}
#useCaseChips::-webkit-scrollbar { height: 0px; }


.scroll-indicator { margin-top: 6px; padding: 0 2px; }
.scroll-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  overflow: hidden;
}
.scroll-thumb {
  height: 100%;
  width: 42px;
  border-radius: 999px;
  background: rgba(212,175,55,0.80);
  transform: translateX(0);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.scroll-thumb.is-dragging { cursor: grabbing; }

.scroll-indicator.is-static .scroll-thumb { width: 100%; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover { border-color: rgba(212,175,55,0.60); }

.chip[aria-pressed="true"] {
  border-color: rgba(212,175,55,0.95);
  background: rgba(212,175,55,0.14);
}

.chip--all {
  border-color: var(--line-2);
}

.active-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  font-size: 0.82rem;
}

.pill button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.18) 100%), var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
}

.card-sub {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag--gold {
  border-color: rgba(212,175,55,0.45);
  color: rgba(255,255,255,0.92);
}

.tag--risk {
  border-color: rgba(255,77,77,0.55);
  color: rgba(255,255,255,0.92);
}

.tag--hint {
  border-color: rgba(255,77,77,0.35);
  background: rgba(255,77,77,0.06);
  color: rgba(255,255,255,0.88);
}

.card-body {
  margin-top: 10px;
  flex: 1 1 auto;
}

.fit {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.tag-row {
  display: grid;
  /* Give label column enough width so texts like "Anwendungsfälle" don't overflow into chips */
  grid-template-columns: 128px 1fr;
  gap: 8px;
  align-items: start;
}

.tag-row .lbl {
  color: var(--muted-2);
  font-size: 0.78rem;
  padding-top: 2px;
}

.tag-row .vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.link-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.link:hover { border-color: rgba(212,175,55,0.35); }

.empty {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--muted);
  background: var(--panel);
}

.ftr {
  max-width: 1200px;
  margin: 18px auto 10px auto;
  padding: 0 14px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.ftr a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.ftr a:hover { border-bottom-color: rgba(212,175,55,0.6); }

/* ===== Dialogs ===== */
.dialog {
  width: min(900px, calc(100vw - 24px));
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: var(--radius-lg);
  background: #050505;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  padding: 0;
}

.dialog::backdrop {
  background: rgba(0,0,0,0.72);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--line);
}

.dialog-title {
  font-weight: 900;
  font-size: 1.1rem;
}

.dialog-meta {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-btn:hover { border-color: rgba(212,175,55,0.45); }

.dialog-body {
  padding: 12px 14px 14px 14px;
}

.section {
  margin-top: 12px;
}

.section h3 {
  margin: 0 0 6px 0;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.risk-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.risk-list li { margin: 6px 0; }
.risk-list li.risk-note { color: var(--muted); }
.risk-list li.risk-note strong { font-weight: 700; }

.risk-scope-label{
  margin-top: 2px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.2px;
}

.risk-list--muted{
  color: rgba(255,255,255,0.65);
}

.btn--small{
  padding: 8px 12px;
  font-size: 0.86rem;
}


.steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.dialog-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-links a {
  text-decoration: none;
}

.filters-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.filter-box .t {
  font-weight: 800;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pills button {
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 9px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.pills button[aria-pressed="true"] {
  border-color: rgba(212,175,55,0.85);
  color: rgba(255,255,255,0.95);
  background: rgba(212,175,55,0.10);
}

.dialog-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0 auto;
  max-width: 780px;
  border: 1px solid rgba(255,77,77,0.55);
  background: #0b0505;
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: none;
  z-index: 50;
}

.toast strong { display: block; }

.toast .small { color: var(--muted-2); font-size: 0.84rem; margin-top: 2px; }

.toast.show { display: block; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { padding: 10px 10px 18px 10px; }
  .tool-sub { display: block; font-size: 0.86rem; line-height: 1.35; max-width: none; }
  .grid { grid-template-columns: 1fr; }
  /* Tags in Cards: Label über Chips (kein Overlap) */
  .tag-row { grid-template-columns: 1fr; gap: 4px; }
  .tag-k { padding-top: 0; line-height: 1.15; word-break: break-word; }
  .filters-grid { grid-template-columns: 1fr; }

  /* Mobile: Content zuerst, Controls kompakt */
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .controls .btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .controls .count {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 0.78rem;
    padding-right: 2px;
  }

  .legend {
    font-size: 0.74rem;
    gap: 8px;
  }

  .legend-dot { width: 8px; height: 8px; }

  /* Lange Chips dürfen umbrechen, sonst sprengen sie Mobile */
  .tag {
    white-space: normal;
    max-width: 100%;
    line-height: 1.15;
  }

  /* Card Buttons: immer sauber innerhalb der Card */
  .card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-content: initial; }
  .card-actions .btn { width: 100%; min-width: 0; }
}

/* ===== Aliases für v3 HTML Klassen ===== */
.ver {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(255,255,255,0.92);
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(0,0,0,0.45);
}

.chip-strip { margin-top: 12px; padding: 10px 10px 6px 10px; border: 1px solid rgba(212,175,55,0.18); border-radius: var(--radius-md); background: rgba(255,255,255,0.02); }
.chip-label { font-size: 0.82rem; color: rgba(255,255,255,0.78); margin-bottom: 6px; font-weight: 800; letter-spacing: 0.2px; }

/* Backwards: allow older class names too */
.chips-row { margin-top: 12px; }
.row-label { font-size: 0.82rem; color: var(--muted-2); margin-bottom: 6px; }

.active { margin-top: 10px; }
.active-filters { margin-top: 10px; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid var(--line-2);
}

.legend-dot--gold { background: rgba(212,175,55,0.9); }
.legend-dot--red { background: rgba(255,77,77,0.9); }

/* ===== Dialog Aliases für v3 HTML ===== */
.dialog-sub { margin-top: 4px; color: var(--muted-2); font-size: 0.86rem; }

/* Detail meta line (under title) */
#dMeta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  align-items:center;
}
#dMeta .meta-item{white-space:nowrap;}
#dMeta .meta-sep{opacity:.35; margin:0 2px;}

@media (max-width: 560px){
  #dMeta{flex-direction:column; align-items:flex-start; gap:6px;}
  #dMeta .meta-item{white-space:normal;}
  #dMeta .meta-sep{display:none;}
}

.filter-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.filter-title {
  font-weight: 800;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.filter-help {
  margin-top: -4px;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dialog--detail { width: min(980px, calc(100vw - 24px)); }

.detail { }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-box {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(0,0,0,0.25);
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wallet-col {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(0,0,0,0.18);
}

.wallet-k {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.wallet-v {
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

@media (max-width: 640px) {
  .wallet-grid { grid-template-columns: 1fr; }
}

/* Detail: visuelle Priorität wie Demo-Modus (dezent, aber klar) */
.detail-box--narrative {
  /* Blau */
  border-color: rgba(90,150,255,0.28);
  background: linear-gradient(180deg, rgba(90,150,255,0.10), rgba(0,0,0,0.35));
}

.detail-box--short {
  /* Blau */
  border-color: rgba(90,150,255,0.28);
  background: linear-gradient(180deg, rgba(90,150,255,0.08), rgba(0,0,0,0.35));
}

.detail-box--sectors {
  /* Lila */
  border-color: rgba(175,120,255,0.28);
  background: linear-gradient(180deg, rgba(175,120,255,0.09), rgba(0,0,0,0.35));
}

.detail-box--why {
  /* Grün */
  border-color: rgba(120,235,170,0.30);
  background: linear-gradient(180deg, rgba(120,235,170,0.08), rgba(0,0,0,0.35));
}

.detail-box--wallets {
  /* Braun */
  border-color: rgba(205,155,110,0.30);
  background: linear-gradient(180deg, rgba(205,155,110,0.07), rgba(0,0,0,0.30));
}

.detail-box--usecases {
  border-color: rgba(255,190,110,0.18);
  background: linear-gradient(180deg, rgba(255,190,110,0.05), rgba(0,0,0,0.30));
}

.detail-box--contra {
  /* Rot */
  border-color: rgba(255,110,110,0.28);
  background: linear-gradient(180deg, rgba(255,110,110,0.06), rgba(0,0,0,0.35));
}

.detail-box--fit {
  /* Grün */
  border-color: rgba(120,235,170,0.30);
  background: linear-gradient(180deg, rgba(120,235,170,0.08), rgba(0,0,0,0.35));
}

.detail-box--notfit {
  border-color: rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
}

.detail-box--risk {
  border-color: rgba(255,77,77,0.35);
  background: linear-gradient(180deg, rgba(255,77,77,0.07), rgba(0,0,0,0.35));
}

.detail-box--use {
  border-color: rgba(212,175,55,0.22);
  background: rgba(0,0,0,0.25);
}

.detail-box--steps {
  /* Neutral-Blau (eigener Ton) */
  border-color: rgba(150,180,255,0.18);
  background: linear-gradient(180deg, rgba(150,180,255,0.05), rgba(0,0,0,0.30));
}

.detail-box--links {
  /* Türkis (eigener Ton) */
  border-color: rgba(90,255,220,0.22);
  background: linear-gradient(180deg, rgba(90,255,220,0.06), rgba(0,0,0,0.30));
}

/* Risiko: Toggle für allgemeine Grundlagen stärker sichtbar */
.risk-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(212,175,55,0.10), rgba(0,0,0,0.25));
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

.risk-toggle__label { text-align: left; }

.risk-toggle__caret {
  font-size: 1.05rem;
  opacity: 0.9;
  transform: translateY(1px);
  transition: transform 0.15s ease;
}

.risk-toggle[aria-expanded="true"] .risk-toggle__caret {
  transform: rotate(180deg);
}

.global-risks {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.20);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.detail-k {
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}

.detail-v { color: var(--muted); line-height: 1.5; }

.link-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 640px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ===== Card Aliases für v3 JS Klassen ===== */
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; margin-top: 6px; }
.card-right { display: flex; align-items: center; gap: 8px; }

.tag--meta {
  color: var(--muted-2);
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.2;
}
.tag--muted { color: var(--muted-2); border-color: rgba(255,255,255,0.12); }

.card-fit {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-wrap { margin-top: 10px; display: grid; gap: 8px; }
.tag-k {
  color: var(--muted-2);
  font-size: 0.78rem;
  padding-top: 2px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.tag-v {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.card-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}
.link-pill:hover { border-color: rgba(212,175,55,0.35); }
.link-pill[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.fav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}
.fav:hover { border-color: rgba(212,175,55,0.45); }
.fav[aria-pressed="true"] { border-color: rgba(212,175,55,0.75); }

/* Backwards support */
.meta { justify-content: flex-end; }
.fit { }


/* ===== Active filter tokens ===== */
.active-none { color: var(--muted-2); font-size: 0.84rem; }

.active-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.active-hint {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 600;
}

.active-tokens {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-tokens .token {
  margin: 0;
  border: 1px solid rgba(212,175,55,0.30);
  background: rgba(0,0,0,0.32);
}

.active-title {
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  font-weight: 900;
}
.active.active--on {
  position: relative;
  display: block;
  padding: 12px 12px 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(212,175,55,0.55);
  background: linear-gradient(180deg, rgba(212,175,55,0.14), rgba(0,0,0,0.22));
  box-shadow: 0 0 0 1px rgba(212,175,55,0.18) inset, 0 10px 24px rgba(0,0,0,0.35);
}

.active--on::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 8px;
  background: rgba(212,175,55,0.85);
}
.token {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.86);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 6px;
  margin-top: 6px;
}
.active { display: flex; flex-wrap: wrap; align-items: center; }
.empty-box { display: flex; flex-direction: column; gap: 6px; }
.empty .small { color: var(--muted-2); font-size: 0.86rem; }


/* Nach oben Button */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(212,175,55,0.45);
  color: rgba(212,175,55,0.95);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  z-index: 9999;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover { background: rgba(0,0,0,0.88); }
.to-top:active { transform: translateY(0) scale(0.98); }


/* ===== Reifegrad (Karte) ===== */
.maturity-row{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.maturity-label{
  font-size: 0.78rem;
  color: var(--muted-2);
  font-weight: 700;
  white-space: nowrap;
}
.maturity-bar{
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.maturity-seg{
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}
.maturity-seg.is-active{ border-color: rgba(255,255,255,0.22); }
.maturity--Etabliert .maturity-seg.is-active{ background: rgba(72, 199, 142, 0.55); border-color: rgba(72,199,142,0.55); }
.maturity--Wachstum .maturity-seg.is-active{ background: rgba(212,175,55,0.70); border-color: rgba(212,175,55,0.60); }
.maturity--Neu_Experimentell .maturity-seg.is-active{ background: rgba(255, 153, 102, 0.65); border-color: rgba(255,153,102,0.55); }

/* ===== Detail Meta Line unter Narrativ ===== */
.detail-v--meta{
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.86rem;
}
.detail-v--meta + .detail-v--meta{ margin-top: 6px; }


/* ===========================
   R4X dApps Radar (classic schema, modernized)
   =========================== */

.page-wrap { padding-top: 12px; padding-bottom: 28px; }

.tool-hero {
  background: linear-gradient(180deg, rgba(212,175,55,0.10) 0%, rgba(0,0,0,0) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px 16px;
}

.tool-hero__top h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

.tool-hero__sub {
  margin: 8px 0 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;

  max-width: 72ch;
}

.wallet-tip{
  margin-top: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-md);
  background: rgba(212,175,55,0.05);
  color: var(--muted);
}
.wallet-tip strong{ color: var(--gold); }
.wallet-tip__text{ margin-top: 6px; }


.hint-box{
  margin-top: 12px;
  padding: 12px 12px;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-md);
  background: rgba(212,175,55,0.05);
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}
.hint-box strong{ color: var(--gold); }
.hint-box__text{ margin-top: 6px; }

.bottom-hint{ margin-top: 18px; }
.bottom-hint .hint-box{ margin-top: 0; }

.header-bottom { margin-top: 14px; }
.search-wrap{
  display:flex;
  align-items:center;
  gap: 10px;
}
#search{
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  outline: none;
}
#search::placeholder{ color: rgba(255,255,255,0.55); }
#search:focus{ border-color: rgba(212,175,55,0.55); box-shadow: 0 0 0 4px rgba(212,175,55,0.10); }
.match-count{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.filters{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.filter-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.45);
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  user-select: none;
  transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.filter-btn:hover{ border-color: rgba(212,175,55,0.35); filter: brightness(1.03); }
.filter-btn:active{ transform: translateY(1px); filter: brightness(0.98); }

.filter-btn[aria-pressed="true"]{
  border-color: rgba(212,175,55,0.75);
  box-shadow: 0 0 0 1px inset rgba(212,175,55,0.35);
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 18px 2px 22px 2px;
}

.card{
  border: 1px solid var(--line);
  /* Karten sollen sich leicht vom Hintergrund abheben */
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 176px;
}
.card:hover{
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 0 0 1px inset rgba(212,175,55,0.20), 0 14px 28px rgba(0,0,0,0.40);
}

.card-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.card-title{
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.card-desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.info{
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.55);
  background: rgba(212,175,55,0.06);
  color: var(--gold);
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.info:hover{ box-shadow: 0 0 0 1px inset rgba(212,175,55,0.35); }

.pill-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-list li{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  padding: 6px 10px;
}

.links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.links .link{
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255,255,255,0.86);
  font-weight: 700;
  font-size: 12px;
}
.links .link:hover{
  border-color: rgba(212,175,55,0.45);
  color: var(--gold);
}

.footer-disclaimer{
  margin-top: 6px;
  padding: 10px 2px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted-2);
}
.footer-disclaimer strong{ color: var(--gold); }

/* Modal */
dialog#infoModal{
  width: min(920px, 92vw);
  border: none;
  padding: 0;
  background: transparent;
}
dialog#infoModal::backdrop{
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(2px);
}
.modal{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.modal-header{
  display:grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items:start;
  gap: 8px 12px;
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-header h3{
  margin: 0;
  font-size: 18px;
  color: var(--text);
  grid-column: 1;
  grid-row: 1;
}
.modal-subtitle{
  margin: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.modal .close{
  grid-column: 2;
  grid-row: 1;
  align-self:start;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.modal .close:hover{ border-color: rgba(212,175,55,0.35); }
#modalBody{
  padding: 14px;
  color: var(--muted);
  line-height: 1.55;
}
#modalBody h4{
  margin: 14px 0 8px 0;
  color: var(--text);
}
#modalBody p{ margin: 8px 0; }
#modalBody .list{ margin: 6px 0 0 0; padding-left: 18px; }
#modalBody .list li{ margin: 4px 0; }
#modalBody .links{ margin-top: 12px; }

/* Modal wallet callout */
.modal-wallet{
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: var(--radius-md);
  background: rgba(212,175,55,0.05);
  padding: 10px 10px;
  margin: 10px 0 12px 0;
}
.modal-wallet strong{ color: var(--gold); }

/* Card CTA buttons */
.links .link-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 12px;
  background: rgba(0,0,0,0.35);
  cursor: pointer;
}
.links .link-btn:hover{
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

.links .link-btn.details{
  border: 1px solid rgba(212,175,55,0.55);
  background: rgba(212,175,55,0.06);
  color: var(--gold);
}
.links .link-btn.details:hover{
  border-color: rgba(212,175,55,0.75);
  background: rgba(212,175,55,0.09);
  color: var(--gold-soft);
}

/* Details layout */
.detail-meta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 10px 0;
}
.meta-item{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px 12px;
}

/* Farbige Detailbereiche (dezente Tints) */
.meta-item.meta-blue{
  border-color: rgba(90,150,255,0.32);
  background: linear-gradient(180deg, rgba(90,150,255,0.11), rgba(0,0,0,0.32));
}

.meta-label{
  font-size: 12px;
  color: rgba(255,255,255,0.66);
  font-weight: 700;
  margin-bottom: 2px;
}
.meta-value{
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  font-weight: 800;
}

.detail-desc{
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0 0 12px 0;
}

.detail-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.detail-section{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 12px;
}

.detail-section.section-green{
  border-color: rgba(120,235,170,0.32);
  background: linear-gradient(180deg, rgba(120,235,170,0.08), rgba(0,0,0,0.34));
}

.detail-section.section-brown{
  border-color: rgba(205,155,110,0.34);
  background: linear-gradient(180deg, rgba(205,155,110,0.08), rgba(0,0,0,0.32));
}

.detail-section h4{
  margin: 0 0 8px 0;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2px;
}

.detail-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.detail-links .link{
  font-size: 12px;
}


/* Wallet Bereich: Standard nur wenn kein Farb-Marker gesetzt ist */
.detail-section.modal-wallet:not(.section-brown){
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(212,175,55,0.05);
}

/* Wallet Empfehlung: flaches Layout (kein "Kachel in Kachel") */
.wallet-grid--flat{
  gap: 0;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.18);
}

.wallet-col--flat{
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 12px;
}

.wallet-col--flat + .wallet-col--flat{
  border-left: 1px solid rgba(255,255,255,0.10);
}

.wallet-label{
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.78);
}

.wallet-name{
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
}

.wallet-why{
  margin-top: 6px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .wallet-col--flat + .wallet-col--flat{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
}

@media (max-width: 820px){
  .detail-meta{ grid-template-columns: 1fr; }
  .detail-grid{ grid-template-columns: 1fr; }
}

/* Scroll to top */
#scrollTopBtn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.60);
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
#scrollTopBtn.show{ display: inline-flex; }
#scrollTopBtn:hover{
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 1px inset rgba(212,175,55,0.35), 0 6px 18px rgba(212,175,55,0.12);
}

/* Mobile */
@media (max-width: 640px){
  .tool-hero{ padding: 14px 12px 12px 12px; }
  .tool-hero__top h1{ font-size: 1.02rem; }
  .search-wrap{ flex-wrap: wrap; gap: 8px; }
  #search{ flex: 1 1 100%; min-width: 0; }
  .fav-only{ flex: 1 1 auto; }
  .match-count{ margin-left: auto; }
  .filters{ gap: 8px; }
  .filter-btn{ font-size: 0.82rem; padding: 8px 10px; }
  .grid{ grid-template-columns: 1fr; }
}

.fav-only{ white-space: nowrap; }

/* Hidden override for consistent toggle */
[hidden]{display:none !important;}


/* Active filters box, compact like Blockchain Navigator */
.active{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(212,175,55,.28);
  background: radial-gradient(1200px 400px at 15% 0%, rgba(212,175,55,.10), rgba(0,0,0,0) 55%),
              linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.02));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  position: relative;
  overflow: hidden;
}

.active::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background: linear-gradient(180deg, rgba(212,175,55,.85), rgba(212,175,55,0));
  opacity:.9;
}

.active-head{ padding: 12px 14px 12px 16px; }
.active-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.active-title{
  font-weight:800;
  letter-spacing:.2px;
  font-size: .95rem;
  color: var(--text);
}

.active-hint{
  margin-top: 2px;
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  line-height: 1.35;
}

.active-tokens{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.active .token{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.22);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  font-size: .85rem;
}

.active .btn{
  height: 34px;
  padding: 0 12px;
  font-size: .9rem;
}

@media (max-width: 520px){
  .active-row{ align-items:flex-start; }
  .active .btn{ white-space: nowrap; }
}

