/* Simple Dark UI for the Viagogo dashboard */
:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #e6edf3;
  --muted: rgba(230, 237, 243, 0.7);
  --accent: #2dd4bf;
  --accent2: #60a5fa;
  --warn: #fbbf24;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, rgba(96, 165, 250, 0.18), transparent),
    radial-gradient(1200px 800px at 80% 20%, rgba(45, 212, 191, 0.14), transparent),
    var(--bg);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.topbarSticky {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, 0.75);
  padding: 10px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.titleLink {
  display: inline-block;
}

.brand .title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand .subtitle {
  font-size: 12px;
  color: var(--muted);
}

.searchRow {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.searchWrap {
  position: relative;
  min-width: 280px;
  flex: 1 1 280px;
  max-width: 420px;
}

.searchInput {
  width: 100%;
  min-width: 0;
}

.suggestPanel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #111a2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-height: min(360px, 55vh);
  overflow-y: auto;
  padding: 6px;
}

.suggestItem {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.suggestItem:hover,
.suggestItem:focus-visible,
.suggestItemActive {
  background: var(--panel2);
  outline: none;
}

.suggestMain {
  min-width: 0;
  flex: 1;
}

.suggestTitle {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mkBadge {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.mkBadgeVgg {
  background: rgba(45, 212, 191, 0.25);
  border: 1px solid rgba(45, 212, 191, 0.75);
  color: #2dd4bf;
}

.mkBadgeStubhub {
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.78);
  color: #c084fc;
}

.suggestSub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.suggestKpis {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
}

.suggestKpi {
  color: var(--accent);
}

.suggestKpi24 {
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
}

.input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  min-width: 260px;
  height: 42px;
}

.btn {
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnIcon {
  width: 42px;
  min-width: 42px;
  font-size: 20px;
  padding: 0;
}

.btn.secondary {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.30);
}

.btn.fifa26 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(45, 212, 191, 0.22));
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn.fifa26:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(45, 212, 191, 0.35));
}

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

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

@media (max-width: 1000px) {
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .searchRow {
    justify-content: stretch;
  }
  .searchWrap {
    max-width: none;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.kpiValue {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.kpiSub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.eventItem {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.08s ease, box-shadow 0.08s ease;
}

.eventItem:hover {
  transform: translateY(-1px);
  background: var(--panel2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.eventItem:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.5);
  outline-offset: 2px;
}

.eventItemInner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.eventMain {
  flex: 1 1 180px;
  min-width: 0;
}

.eventTitle {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.eventSub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.eventStats {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-shrink: 0;
}

.statBlock {
  text-align: right;
}

.statVal {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1.1;
}

.stat24 .statVal {
  color: var(--accent2);
}

.statLbl {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 7rem;
}

.eventId {
  font-weight: 800;
  font-size: 14px;
}

.eventMeta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

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

.tableWrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.02);
}

thead th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

canvas {
  width: 100% !important;
  height: 320px !important;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.30);
}

.muted {
  color: var(--muted);
}

.globalStats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.globalStats .pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border);
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}

.modalCard {
  width: min(520px, 100%);
  background: #111a2e;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.modalActions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.homeColumns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

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

.homePanel {
  padding: 0;
  overflow: hidden;
}

.homePanelTitle {
  margin: 0;
  padding: 14px 14px 10px 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.homeTableWrap {
  border: none;
  border-radius: 0;
}

.homeTable thead th.num,
.homeTable tbody td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.homeTable td.accent24 {
  color: var(--accent2);
  font-weight: 800;
}

.homeCellTitle {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.homeCellSub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
}

.homeRow {
  cursor: pointer;
}

.homeRow:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.45);
  outline-offset: -2px;
}

.homeEmpty {
  padding: 12px 14px 14px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.btnStar {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btnStar:hover {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.btnStar.btnStarOn {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.12);
}

.archiveSearchBlock {
  margin-bottom: 16px;
  padding: 14px 16px;
}

.archiveSearchTitle {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 800;
}

.archiveSearchHint {
  margin: 0 0 12px 0;
  font-size: 12px;
  line-height: 1.4;
}

.archiveSearchRow {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.archiveSearchRow .searchWrap {
  flex: 1 1 280px;
  max-width: 480px;
}

/* Event page: sales table toolbar, sortable headers, pager */
.salesToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.salesField {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.salesFieldGrow {
  flex: 1 1 220px;
}

.salesFieldLbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.salesSelect,
.salesInput {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
  height: 40px;
  font-size: 14px;
}

.salesSelect {
  min-width: 120px;
  cursor: pointer;
}

.salesInput {
  width: 100%;
  min-width: 160px;
}

.salesInput::placeholder {
  color: rgba(230, 237, 243, 0.45);
}

.thSortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.12s ease, background 0.12s ease;
}

.thSortable:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.thSortable .sortInd {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  opacity: 0.85;
  min-width: 0.75em;
}

.salesPager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 14px;
}

.btnPager {
  min-width: 100px;
}

.salesPageNumbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btnPageNum {
  min-width: 40px;
  padding-left: 10px;
  padding-right: 10px;
  font-weight: 600;
}

.btnPageNum.btnPageActive {
  background: rgba(45, 212, 191, 0.28);
  border-color: rgba(45, 212, 191, 0.55);
  color: var(--text);
}

.salesEllipsis {
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}

.salesFooterMeta {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.salesLoadMoreRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}

/* -------------------- FIFA26 / WM 2026 Übersicht -------------------- */
.fifa26Header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
  margin-bottom: 14px;
}

.fifa26HeaderMain {
  flex: 1 1 320px;
  min-width: 0;
}

.fifa26Title {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fifa26Subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.fifa26List {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fifa26Card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.fifa26CardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fifa26MatchTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: var(--warn);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fifa26GroupTag {
  display: inline-flex;
  align-items: center;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.32);
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fifa26MatchTitle {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fifa26MatchTitle a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.fifa26MatchTitle a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.fifa26Meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

/**
 * KPI-Stack: Viagogo + StubHub stehen untereinander, dieselben vier Spalten
 * (Tickets gesamt | Tickets 24h | Ø Preis | Ø Preis 24h) sind exakt vertikal ausgerichtet,
 * damit Werte Zeile für Zeile direkt verglichen werden können.
 */
.fifa26KpisStack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.fifa26KpiBlock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  display: grid;
  /* Zeile 1: Kopfzeile (Plattform + externer Link) über die volle Breite.
     Zeile 2: vier KPI-Spalten untereinander mit dem Block darunter (Vergleichbarkeit). */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  align-items: start;
}

@media (max-width: 560px) {
  .fifa26KpiBlock:not(.info) {
    grid-template-columns: 1fr;
  }
  .fifa26KpiBlock:not(.info) .fifa26Kpi {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 6px;
  }
  .fifa26KpiBlock:not(.info) > .fifa26Kpi:nth-child(2) {
    border-top: none;
    padding-top: 0;
  }
}

.fifa26KpiBlockHead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
}

.fifa26KpiBlock.viagogo .fifa26KpiBlockHead {
  color: var(--accent);
  border-bottom-color: rgba(45, 212, 191, 0.22);
}

.fifa26KpiBlock.stubhub .fifa26KpiBlockHead {
  color: #c084fc;
  border-bottom-color: rgba(168, 85, 247, 0.25);
}

@media (max-width: 560px) {
  .fifa26KpiBlockHead {
    flex-wrap: wrap;
  }
}

.fifa26KpiHeadLink {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

.fifa26KpiHeadLink:hover {
  border-bottom-style: solid;
}

.fifa26ExtBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px 3px 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.fifa26KpiBlock.viagogo .fifa26ExtBtn {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: var(--accent);
}

.fifa26KpiBlock.stubhub .fifa26ExtBtn {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.fifa26ExtBtn:hover {
  filter: brightness(1.15);
  border-color: rgba(255, 255, 255, 0.55);
}

.fifa26KpiBlock.info {
  grid-template-columns: 1fr;
  align-items: stretch;
  background: rgba(168, 85, 247, 0.04);
}

.fifa26KpiInfo {
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  padding: 4px 0 2px;
  line-height: 1.4;
}

.fifa26KpiBlock.viagogo {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.05);
}

.fifa26KpiBlock.stubhub {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.05);
}

.fifa26Kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fifa26KpiLbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.fifa26KpiVal {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fifa26KpiVal.dim {
  color: var(--muted);
  font-weight: 700;
}

.fifa26KpiVal.accent24 {
  color: var(--accent2);
}

.fifa26PriceTrend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.fifa26PriceTrendHead {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.fifa26PriceTrend canvas {
  width: 100% !important;
  height: 200px !important;
}

.fifa26PriceTrendEmpty {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}

/* Versteckte StubHub-Marketing-Shortlist (zinnkasten-7f) */
.zk7fWrap {
  max-width: 1400px;
}

.zk7fIntro {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.zk7fToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.zk7fToolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.zk7fToolbar select,
.zk7fToolbar input {
  min-width: 120px;
}

.zk7fSummary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.zk7fStat {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.zk7fStatLbl {
  font-size: 11px;
  color: var(--muted);
}

.zk7fStatVal {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.zk7fTableWrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}

table.zk7fTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.zk7fTable th,
.zk7fTable td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.zk7fTable th.num,
.zk7fTable td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.zk7fTable thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.zk7fTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.zk7fScore {
  display: inline-block;
  min-width: 2.2em;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.zk7fScore.high {
  background: rgba(45, 212, 191, 0.2);
  color: var(--accent);
}

.zk7fScore.mid {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warn);
}

.zk7fScore.low {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.zk7fAction {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.zk7fAction.attack {
  background: rgba(96, 165, 250, 0.2);
  color: var(--accent2);
}

.zk7fAction.defend {
  background: rgba(251, 191, 36, 0.18);
  color: var(--warn);
}

.zk7fAction.boost {
  background: rgba(45, 212, 191, 0.2);
  color: var(--accent);
}

.zk7fAction.watch,
.zk7fAction.hold {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.zk7fShareBar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  min-width: 72px;
  background: rgba(255, 255, 255, 0.08);
}

.zk7fShareBar span:first-child {
  background: rgba(45, 212, 191, 0.85);
}

.zk7fShareBar span:last-child {
  background: rgba(96, 165, 250, 0.75);
  flex: 1;
}

.zk7fWrap .titleRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zk7fInfoBtn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: pointer;
}

.zk7fInfoBtn:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(45, 212, 191, 0.12);
}

.zk7fModalCard {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
}

.zk7fModalTitle {
  margin: 0 0 12px 0;
  font-size: 18px;
}

.zk7fModalBody h3 {
  margin: 16px 0 8px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.zk7fModalBody h3:first-child {
  margin-top: 0;
}

.zk7fGlossary {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.zk7fGlossary dt {
  font-weight: 700;
  margin-top: 8px;
}

.zk7fGlossary dt:first-child {
  margin-top: 0;
}

.zk7fGlossary dd {
  margin: 4px 0 0 0;
  color: var(--muted);
}

.zk7fHelpList {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.zk7fHelpP {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.zk7fSortBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.zk7fSortBtn:hover,
.zk7fSortBtn.active {
  color: var(--accent);
}

.zk7fSortIcon {
  font-size: 9px;
  opacity: 0.9;
  min-width: 1em;
}

.zk7fTable th .zk7fSortBtn {
  width: 100%;
  justify-content: inherit;
}

.zk7fTable th.num .zk7fSortBtn {
  justify-content: flex-end;
}

.zk7fCompareBanner {
  margin: 0 0 12px 0;
  font-size: 13px;
}

.zk7fMetricCell {
  min-width: 148px;
  font-size: 12px;
  line-height: 1.45;
}

.zk7fMetricRatio {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.zk7fMetricRaw {
  font-size: 11px;
}

.zk7fDelta {
  font-weight: 600;
  color: var(--muted);
}

.zk7fDelta.up {
  color: var(--accent);
}

.zk7fDelta.down {
  color: var(--accent2);
}

.zk7fModalBody code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

