:root {
  --bg: #08021b;
  --panel: #12102a;
  --panel-2: #181633;
  --border: #2b2751;
  --text: #f4f0ff;
  --muted: #98a0c3;
  --primary: #7547ff;
  --primary-2: #9b4dff;
  --success: #00d094;
  --danger: #ff3166;
  --warning: #f9bf22;
  --input: #111a31;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top right, #1d0c4a 0, #08021b 42%, #050111 100%);
  color: var(--text);
}

button, input, select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(12, 10, 31, .86);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 0 32px rgba(117, 71, 255, .45);
}

.brand strong {
  display: block;
  letter-spacing: .08em;
}

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

nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 13px 14px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.nav-item.active, .nav-item:hover {
  background: rgba(117, 71, 255, .18);
  color: var(--text);
  border-color: rgba(117, 71, 255, .35);
}

.env-card {
  margin-top: 32px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.env-card small,
.env-card span {
  color: var(--muted);
}

.env-card strong.ok { color: var(--success); }
.env-card strong.error { color: var(--danger); }

.main {
  padding: 28px;
  overflow: hidden;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.45;
}

.top-actions {
  display: flex;
  gap: 12px;
}

.view { display: none; }
.view.active { display: block; }

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--border);
  background: rgba(18, 16, 42, .88);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.15);
}

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

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.stat strong {
  font-size: 32px;
  color: var(--success);
}

label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 8px;
}

select, input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}

select:focus, input:focus {
  border-color: var(--primary);
}

.wallet-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wallet-box div, .mini-info {
  border: 1px solid var(--border);
  background: rgba(17, 26, 49, .65);
  border-radius: 14px;
  padding: 12px;
}

.wallet-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.wallet-box strong {
  font-size: 18px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 12px 16px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.btn.primary {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--primary), #4c32ff);
  box-shadow: 0 12px 24px rgba(117, 71, 255, .24);
}

.btn.secondary {
  background: #1d2942;
  border-color: #263c62;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.btn.danger {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--danger), #c9184a);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.action-card {
  min-height: 230px;
}

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

.section-title {
  margin: 8px 0 20px;
}

.console-card {
  margin-top: 24px;
}

pre {
  max-height: 360px;
  overflow: auto;
  background: #050915;
  border: 1px solid var(--border);
  color: #d5e4ff;
  border-radius: 16px;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.item {
  border: 1px solid var(--border);
  background: rgba(17, 26, 49, .6);
  border-radius: 14px;
  padding: 12px;
}

.item strong {
  display: block;
  margin-bottom: 4px;
}

.item small {
  color: var(--muted);
  display: block;
  word-break: break-word;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(117, 71, 255, .18);
  color: #b8a7ff;
  margin-top: 6px;
}

.badge.success {
  background: rgba(0, 208, 148, .14);
  color: var(--success);
}

.badge.danger {
  background: rgba(255, 49, 102, .14);
  color: var(--danger);
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .grid.stats, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
}

/* v6.59 — Player 360 observability */
.player-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  border-color: rgba(0, 208, 148, .25);
  background: linear-gradient(135deg, rgba(0, 208, 148, .12), rgba(117, 71, 255, .08));
}

.eyebrow {
  display: block;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.grid.six-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat.compact {
  padding: 16px;
}

.stat.compact strong {
  font-size: 20px;
}

@media (max-width: 1280px) {
  .grid.six-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .player-hero { align-items: stretch; flex-direction: column; }
  .grid.six-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* v6.60.40 — Journey QA inbox/email panel */
.journey-qa-panel{margin-top:18px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);border-radius:24px;padding:18px;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.journey-qa-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.journey-qa-header strong{display:block;color:#fff;font-size:16px;font-weight:900}.journey-qa-header p{margin:4px 0 0;color:rgba(226,232,240,.72);font-size:13px;line-height:1.5}.journey-qa-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.journey-qa-badge{border:1px solid rgba(34,211,238,.25);background:rgba(34,211,238,.12);color:#a5f3fc;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900}.journey-qa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.journey-qa-grid section{border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.14);border-radius:18px;padding:14px}.journey-qa-grid h4{margin:0 0 10px;color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.16em}.journey-qa-delivery{display:flex;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.035);padding:12px;margin-bottom:10px}.journey-qa-delivery.is-unread{border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.08)}.journey-qa-delivery strong{display:block;color:#fff;font-size:13px}.journey-qa-delivery p{margin:4px 0;color:rgba(226,232,240,.8);font-size:12px;line-height:1.45}.journey-qa-delivery small{color:rgba(148,163,184,.85);font-size:11px}.journey-qa-status{align-self:flex-start;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:5px 8px;color:#e2e8f0;font-size:11px;font-weight:900;text-transform:uppercase}.journey-qa-status.delivered,.journey-qa-status.sent{border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.12);color:#bbf7d0}.journey-qa-status.queued{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.12);color:#fde68a}.journey-qa-status.failed{border-color:rgba(248,113,113,.35);background:rgba(248,113,113,.12);color:#fecaca}.journey-qa-empty{color:rgba(148,163,184,.9);font-size:13px;line-height:1.55}@media(max-width:900px){.journey-qa-grid{grid-template-columns:1fr}}


/* v6.63 Game Interaction Event Engine */
.runtime-events-panel {
  margin-top: 18px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(8, 16, 32, 0.78);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.runtime-events-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.runtime-events-header strong { display:block; color:#e0faff; font-weight: 900; }
.runtime-events-header span { display:block; color:#91b7cf; font-size:12px; margin-top:4px; }
.runtime-events-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-items:center; }
.runtime-events-actions > span { border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.05); border-radius:999px; padding:6px 10px; color:#dff7ff; font-weight:800; }
.runtime-events-actions .warn { color:#fecaca; border-color:rgba(248,113,113,.28); background:rgba(248,113,113,.12); }
.runtime-events-list { display:grid; gap:8px; }
.runtime-event-row { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.035); border-radius:16px; padding:12px; }
.runtime-event-row strong { display:block; color:#fff; font-size:13px; }
.runtime-event-row span, .runtime-event-row small { display:block; color:#9fb4cc; font-size:11px; margin-top:3px; }
.runtime-event-status { border-radius:999px; padding:6px 10px; font-size:10px; font-weight:900; text-transform:uppercase; color:#cffafe; border:1px solid rgba(34,211,238,.25); background:rgba(34,211,238,.10); }
.runtime-event-status.registered { color:#bbf7d0; border-color:rgba(34,197,94,.28); background:rgba(34,197,94,.12); }
.runtime-event-status.failed, .runtime-event-status.received_forward_failed { color:#fecaca; border-color:rgba(248,113,113,.28); background:rgba(248,113,113,.12); }
.runtime-event-empty { color:#91b7cf; font-size:13px; margin:0; }
@media (max-width: 900px) { .runtime-events-header, .runtime-event-row { flex-direction: column; } .runtime-events-actions { justify-content:flex-start; } }


/* v6.63 — True Embed Layout Recovery
   Restores full-size Widget/Game Runtime if previous patches miss these classes. */
.true-embed-runtime {
  display: grid;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.true-embed-notice {
  border: 1px solid rgba(34, 211, 238, .22);
  background: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(117, 71, 255, .08));
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.true-embed-notice strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.true-embed-notice p {
  margin: 0;
  color: #b8c6ff;
}

.true-embed-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 260px;
}

.true-embed-notice-actions span {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.true-embed-notice-actions .btn,
.true-embed-frame-header .btn {
  width: auto;
  min-width: unset;
}

.true-embed-frame-shell {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(9, 13, 31, .92);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
  width: 100%;
  min-width: 0;
}

.true-embed-frame-header {
  min-height: 72px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(135deg, rgba(20, 27, 52, .98), rgba(10, 14, 31, .98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.true-embed-frame-header strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}

.true-embed-frame-header span {
  display: block;
  color: #b5c4ff;
  font-size: 14px;
  line-height: 1.35;
}

.true-embed-frame-header a {
  color: #22d3ee;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.true-embed-frame-header a:hover {
  text-decoration: underline;
}

.true-embed-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: #070b18;
}

.widget-runtime-frame {
  height: 900px;
  min-height: 820px;
}

.game-runtime-frame {
  height: 940px;
  min-height: 860px;
}

.true-embed-placeholder {
  min-height: 240px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
  border-radius: 26px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
}

.true-embed-placeholder strong {
  color: #fff;
  font-size: 18px;
}

.true-embed-placeholder p {
  max-width: 720px;
  margin: 8px auto 0;
  color: #aebbf1;
}

.embed-diagnostic {
  margin: 12px 0;
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}

.embed-diagnostic.warn {
  background: rgba(249, 115, 22, .16);
  border: 1px solid rgba(249, 115, 22, .35);
}

.embed-diagnostic.ok {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .30);
}

.embed-diagnostic strong { color: #fff; }
.embed-diagnostic span, .embed-diagnostic small { color: #d7ddff; }
.embed-diagnostic code {
  display: block;
  overflow: auto;
  border-radius: 10px;
  background: rgba(0,0,0,.38);
  padding: 8px 10px;
  color: #67e8f9;
  white-space: nowrap;
}

.runtime-events-panel {
  border: 1px solid rgba(34,211,238,.18);
  background: rgba(11, 18, 42, .88);
  border-radius: 24px;
  padding: 18px;
}

.runtime-events-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.runtime-events-header strong {
  color: #fff;
  display: block;
}

.runtime-events-header span {
  color: #aebbf1;
  display: block;
  font-size: 13px;
}

.runtime-events-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.runtime-events-actions > span {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.runtime-events-actions .warn {
  color: #fbbf24;
}

.runtime-events-list {
  display: grid;
  gap: 10px;
}

.runtime-event-row {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.runtime-event-row strong {
  color: #fff;
  display: block;
}

.runtime-event-row span,
.runtime-event-row small {
  display: block;
  color: #9ca8d3;
  font-size: 12px;
}

.runtime-event-status {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(34,211,238,.10);
  color: #67e8f9;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.runtime-event-status.registered {
  background: rgba(16,185,129,.14);
  color: #86efac;
}

.runtime-event-status.failed,
.runtime-event-status.forward_failed {
  background: rgba(244,63,94,.14);
  color: #fda4af;
}

.runtime-event-empty {
  margin: 0;
  color: #aebbf1;
}

@media (max-width: 900px) {
  .true-embed-notice,
  .true-embed-frame-header,
  .runtime-events-header {
    align-items: stretch;
    flex-direction: column;
  }

  .true-embed-notice-actions,
  .runtime-events-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .widget-runtime-frame {
    height: 820px;
  }

  .game-runtime-frame {
    height: 860px;
  }
}


.reward-resolution-panel {
  margin-top: 18px;
  border: 1px solid rgba(34, 197, 94, .22);
  background: linear-gradient(135deg, rgba(16, 185, 129, .10), rgba(15, 23, 42, .72));
  border-radius: 24px;
  padding: 18px;
}
.reward-resolution-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(2,6,23,.36);
  border-radius: 16px;
}
.reward-resolution-row strong { display: block; color: #fff; font-size: 14px; }
.reward-resolution-row span { display: block; color: #bfdbfe; font-size: 12px; margin-top: 3px; }
.reward-resolution-row small { display: block; color: #64748b; font-size: 11px; margin-top: 3px; word-break: break-word; }
.reward-resolution-status {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}
.reward-resolution-status.credited,
.reward-resolution-status.credited_local_fallback { color: #bbf7d0; background: rgba(34,197,94,.14); border-color: rgba(74,222,128,.35); }
.reward-resolution-status.skipped { color: #cbd5e1; background: rgba(148,163,184,.10); border-color: rgba(148,163,184,.25); }
.reward-resolution-status.failed { color: #fecdd3; background: rgba(244,63,94,.14); border-color: rgba(251,113,133,.35); }

/* v6.63 — Multi-player Gamification QA */
.multiplayer-qa-panel {
  margin-top: 18px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(8, 13, 31, .96));
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.multiplayer-player-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.035);
}
.multiplayer-player-row + .multiplayer-player-row { margin-top: 10px; }
.multiplayer-player-row strong { display: block; color: #fff; font-size: 15px; }
.multiplayer-player-row span { display: block; color: #a5b4fc; margin-top: 4px; font-size: 13px; }
.multiplayer-player-row small { display: block; color: #94a3b8; margin-top: 6px; font-size: 12px; }
.qa-status-strip {
  margin: 14px 0;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(34, 211, 238, .08);
  color: #bae6fd;
  font-size: 13px;
  font-weight: 800;
}
.qa-status-strip.attention {
  border-color: rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .10);
  color: #fde68a;
}
.runtime-events-actions .ok {
  border: 1px solid rgba(16, 185, 129, .35);
  background: rgba(16, 185, 129, .14);
  color: #a7f3d0;
}

.runtime-event-row.has-error {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.075);
}
.runtime-event-error {
  display: block;
  margin-top: 6px;
  color: #fbbf24;
  font-weight: 800;
}

.segmentation-qa-panel { margin-top: 1.25rem; border: 1px solid rgba(34,211,238,.22); border-radius: 24px; background: rgba(8,20,35,.72); padding: 1.25rem; }
.segmentation-qa-panel .has-error { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.qa-status-strip.passed { color: #bbf7d0; border-color: rgba(16,185,129,.35); }
.qa-status-strip.attention { color: #fde68a; border-color: rgba(245,158,11,.35); }
.runtime-events-actions .ok { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.1); color: #bbf7d0; }

/* v6.65 — Failure Center + Retry */
.failure-center-panel {
  border-color: rgba(248, 113, 113, .24);
  background: linear-gradient(135deg, rgba(127, 29, 29, .22), rgba(15, 23, 42, .88));
}
.failure-center-row-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 210px;
}
.compact-select {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,6,23,.62);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}
.runtime-event-status.critical {
  background: rgba(244,63,94,.16);
  color: #fecdd3;
}
.runtime-event-status.warning {
  background: rgba(245,158,11,.14);
  color: #fde68a;
}
.runtime-event-status.info {
  background: rgba(34,211,238,.10);
  color: #a5f3fc;
}
.runtime-event-error {
  color: #fecaca !important;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .failure-center-row-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

/* v6.66 — Outbox Reliability + Retry Queue */
.outbox-reliability-panel {
  border-color: rgba(34, 211, 238, .24);
  background: linear-gradient(135deg, rgba(8, 47, 73, .28), rgba(15, 23, 42, .88));
}
.runtime-event-status.pending,
.runtime-event-status.processing,
.runtime-event-status.retrying {
  background: rgba(245,158,11,.14);
  color: #fde68a;
}
.runtime-event-status.sent,
.runtime-event-status.completed {
  background: rgba(16,185,129,.16);
  color: #bbf7d0;
}
.runtime-event-status.dead_letter {
  background: rgba(244,63,94,.18);
  color: #fecdd3;
}
.runtime-event-row.retrying {
  border-color: rgba(245,158,11,.32);
  background: rgba(245,158,11,.07);
}
.runtime-event-row.dead_letter {
  border-color: rgba(244,63,94,.34);
  background: rgba(244,63,94,.08);
}
.runtime-event-row.sent,
.runtime-event-row.completed {
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.06);
}

/* v6.66.1 — Outbox simulate feedback */
.outbox-reliability-action {
  border: 1px solid rgba(34, 211, 238, .18);
  background: rgba(34, 211, 238, .08);
  border-radius: 16px;
  padding: 10px 12px;
}
.outbox-reliability-action strong,
.outbox-reliability-action span,
.outbox-reliability-action small {
  display: block;
}
.outbox-reliability-action strong {
  color: #e0faff;
  font-size: 12px;
  font-weight: 900;
}
.outbox-reliability-action span {
  color: #c7e8ff;
  font-size: 12px;
  margin-top: 3px;
}
.outbox-reliability-action small {
  color: #8fb4ca;
  font-size: 11px;
  margin-top: 3px;
}
.outbox-reliability-action.success {
  border-color: rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .10);
}
.outbox-reliability-action.error {
  border-color: rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .12);
}
.outbox-reliability-action.error strong,
.outbox-reliability-action.error span {
  color: #fecaca;
}
.outbox-reliability-action.loading {
  border-color: rgba(251, 191, 36, .28);
  background: rgba(251, 191, 36, .10);
}

/* v6.67 — Real Email Provider Adapter */
.email-provider-panel {
  border-color: rgba(56, 189, 248, .24);
  background: linear-gradient(135deg, rgba(12, 74, 110, .28), rgba(15, 23, 42, .9));
}
.email-provider-test-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(130px, .45fr));
  margin-top: 12px;
}
.email-provider-test-row label,
.email-provider-test-row > div {
  border: 1px solid rgba(125, 211, 252, .16);
  background: rgba(15, 23, 42, .42);
  border-radius: 16px;
  padding: 10px 12px;
}
.email-provider-test-row small,
.email-provider-test-row strong {
  display: block;
}
.email-provider-test-row small {
  color: #bae6fd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.email-provider-test-row input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  margin-top: 6px;
  outline: none;
}
.email-provider-test-row strong {
  color: #e0f2fe;
  font-size: 13px;
  margin-top: 6px;
}
.email-provider-test-row strong.ok { color: #bbf7d0; }
.email-provider-test-row strong.warn { color: #fde68a; }
.email-provider-test-row strong.danger { color: #fecaca; }
.email-provider-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.email-provider-summary span {
  border: 1px solid rgba(125, 211, 252, .15);
  background: rgba(14, 165, 233, .08);
  border-radius: 999px;
  color: #dff6ff;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
}
.email-provider-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}
.email-provider-check {
  align-items: flex-start;
  border: 1px solid rgba(125, 211, 252, .14);
  background: rgba(15, 23, 42, .44);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr auto;
  margin-bottom: 8px;
  padding: 10px 12px;
}
.email-provider-check strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}
.email-provider-check span {
  color: #bfdbfe;
  font-size: 11px;
  grid-column: 1 / -1;
}
.email-provider-check em {
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  padding: 4px 7px;
  text-transform: uppercase;
}
.email-provider-check.passed em,
.runtime-event-status.dry_run {
  background: rgba(16, 185, 129, .14);
  color: #bbf7d0;
}
.email-provider-check.warning em,
.runtime-event-status.queued {
  background: rgba(245, 158, 11, .14);
  color: #fde68a;
}
.email-provider-check.failed em,
.runtime-event-status.failed {
  background: rgba(244, 63, 94, .18);
  color: #fecdd3;
}
.runtime-event-row.dry_run,
.runtime-event-row.queued {
  border-color: rgba(245, 158, 11, .28);
  background: rgba(245, 158, 11, .06);
}
.runtime-event-row.failed {
  border-color: rgba(244, 63, 94, .34);
  background: rgba(244, 63, 94, .08);
}
@media (max-width: 900px) {
  .email-provider-test-row,
  .email-provider-grid {
    grid-template-columns: 1fr;
  }
}

/* v6.68 — Inbox / Notification Center */
.notification-center-panel {
  border-color: rgba(52, 211, 153, .24);
  background: linear-gradient(135deg, rgba(6, 78, 59, .24), rgba(15, 23, 42, .9));
}
.notification-center-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.notification-center-summary span {
  border: 1px solid rgba(110, 231, 183, .16);
  background: rgba(16, 185, 129, .08);
  border-radius: 999px;
  color: #d1fae5;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
}
.notification-center-row {
  align-items: flex-start;
  border: 1px solid rgba(110, 231, 183, .14);
  background: rgba(15, 23, 42, .42);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}
.notification-center-row strong,
.notification-center-row span,
.notification-center-row small {
  display: block;
}
.notification-center-row strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}
.notification-center-row span {
  color: #bbf7d0;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}
.notification-center-row small {
  color: #86efac;
  font-size: 11px;
  margin-top: 4px;
  opacity: .82;
}
.notification-center-row.unread {
  border-color: rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .07);
}
.notification-center-row.clicked {
  border-color: rgba(52, 211, 153, .35);
  background: rgba(52, 211, 153, .08);
}
.notification-center-row.expired,
.notification-center-row.failed {
  border-color: rgba(248, 113, 113, .34);
  background: rgba(248, 113, 113, .08);
}
.notification-center-actions {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 190px;
}
.runtime-event-status.unread {
  background: rgba(251, 191, 36, .14);
  color: #fde68a;
}
.runtime-event-status.read,
.runtime-event-status.delivered {
  background: rgba(56, 189, 248, .14);
  color: #bae6fd;
}
.runtime-event-status.clicked {
  background: rgba(16, 185, 129, .16);
  color: #bbf7d0;
}
.runtime-event-status.expired {
  background: rgba(244, 63, 94, .18);
  color: #fecdd3;
}
@media (max-width: 900px) {
  .notification-center-row {
    grid-template-columns: 1fr;
  }
  .notification-center-actions {
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
  }
}

/* v6.69 — Player Wallet & Bonus Ledger QA */
.wallet-ledger-panel {
  border-color: rgba(167, 139, 250, 0.32);
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.30), rgba(15, 23, 42, 0.72));
}

.wallet-ledger-summary,
.wallet-ledger-proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wallet-ledger-summary {
  margin-top: 0.75rem;
}

.wallet-ledger-summary span,
.wallet-ledger-proof {
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #ede9fe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
}

.wallet-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.45);
  padding: 0.85rem;
}

.wallet-ledger-row > div {
  min-width: 0;
}

.wallet-ledger-row strong,
.wallet-ledger-row span,
.wallet-ledger-row small {
  display: block;
}

.wallet-ledger-row strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.wallet-ledger-row span {
  color: rgba(237, 233, 254, 0.86);
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.wallet-ledger-row small {
  color: rgba(226, 232, 240, 0.65);
  font-size: 0.70rem;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-ledger-proofs {
  margin-top: 0.55rem;
}

.wallet-ledger-proof.ok {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.10);
  color: #bbf7d0;
}

.wallet-ledger-proof.missing {
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.10);
  color: #fecdd3;
}

/* v6.70 — Real Platform Adapter v1 */
.real-platform-adapter-panel {
  border-color: rgba(34, 211, 238, 0.32);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.76));
}

.real-adapter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.real-adapter-summary span {
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #cffafe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
}

.real-adapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.real-adapter-grid h4 {
  color: #e0f2fe;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.real-adapter-check,
.real-adapter-endpoint {
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.44);
  margin-bottom: 0.45rem;
  padding: 0.72rem;
}

.real-adapter-check strong,
.real-adapter-check span,
.real-adapter-check em,
.real-adapter-endpoint strong,
.real-adapter-endpoint span,
.real-adapter-endpoint small {
  display: block;
}

.real-adapter-check strong,
.real-adapter-endpoint strong {
  color: #ffffff;
  font-size: 0.84rem;
}

.real-adapter-check span,
.real-adapter-endpoint span {
  color: rgba(207, 250, 254, 0.82);
  font-size: 0.74rem;
  margin-top: 0.22rem;
}

.real-adapter-check em,
.real-adapter-endpoint small {
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 0.28rem;
  text-transform: uppercase;
}

.real-adapter-check.passed,
.real-adapter-endpoint.ready {
  border-color: rgba(16, 185, 129, 0.28);
}

.real-adapter-check.failed,
.real-adapter-endpoint.missing {
  border-color: rgba(244, 63, 94, 0.30);
}

@media (max-width: 900px) {
  .real-adapter-grid {
    grid-template-columns: 1fr;
  }
}

/* v6.71 — Security + Tenant Isolation Hardening */
.tenant-isolation-panel {
  border-color: rgba(45, 212, 191, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92));
}

.tenant-isolation-check,
.tenant-role-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  margin-bottom: 8px;
}

.tenant-isolation-check strong,
.tenant-role-row strong {
  display: block;
  color: #f8fafc;
  font-size: 12px;
}

.tenant-isolation-check span,
.tenant-role-row span {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 4px;
}

.tenant-isolation-check small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tenant-isolation-check em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.tenant-isolation-check.passed em,
.tenant-role-row.passed {
  border-color: rgba(34, 197, 94, 0.34);
}

.tenant-isolation-check.passed em {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.tenant-isolation-check.warning em {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.tenant-isolation-check.failed em,
.tenant-isolation-check.critical em {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.tenant-recommendations {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.5;
}

/* v6.72 — Commercial Audit & Evidence Pack */
.audit-evidence-pack-panel {
  border-color: rgba(168, 85, 247, 0.32);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.28), rgba(15, 23, 42, 0.88));
}

.audit-evidence-pack-panel .runtime-events-actions span {
  border-color: rgba(216, 180, 254, 0.24);
  color: #f3e8ff;
}

.audit-evidence-pack-panel .real-adapter-summary span {
  border-color: rgba(168, 85, 247, 0.24);
  color: #f3e8ff;
}

.audit-evidence-pack-panel .runtime-event-row {
  border-color: rgba(168, 85, 247, 0.18);
}

/* v6.75 — Supabase Schema Consolidation */
.schema-consolidation-panel {
  border-color: rgba(56, 189, 248, 0.32);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.22), rgba(15, 23, 42, 0.9));
}

.schema-consolidation-panel .runtime-events-actions span {
  border-color: rgba(125, 211, 252, 0.24);
  color: #e0f2fe;
}

.schema-consolidation-panel .real-adapter-summary span {
  border-color: rgba(56, 189, 248, 0.24);
  color: #e0f2fe;
}

.schema-consolidation-panel .tenant-isolation-check,
.schema-consolidation-panel .tenant-role-row {
  border-color: rgba(56, 189, 248, 0.16);
}

/* v6.75.1 — Runtime Store Backfill + Cutover */
.runtime-backfill-panel {
  border-color: rgba(45, 212, 191, 0.28);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(15, 23, 42, 0.72));
}
.runtime-backfill-panel .runtime-events-header strong {
  color: #ccfbf1;
}
.runtime-backfill-panel .tenant-isolation-check.cutover_active,
.runtime-backfill-panel .tenant-isolation-check.backfilled {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.08);
}
.runtime-backfill-panel .tenant-isolation-check.pending {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(245, 158, 11, 0.08);
}

/* v6.73.2 — Performance & Embed Optimization */
.embed-performance-panel {
  border-color: rgba(14, 165, 233, 0.32);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18), rgba(15, 23, 42, 0.86));
}

.embed-performance-panel .runtime-events-header strong {
  color: #e0f2fe;
}

.embed-performance-panel .runtime-events-actions span,
.embed-performance-panel .real-adapter-summary span {
  border-color: rgba(125, 211, 252, 0.24);
  color: #e0f2fe;
}

.embed-performance-panel .tenant-isolation-check.passed,
.embed-performance-panel .tenant-role-row.passed {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(16, 185, 129, 0.08);
}

.embed-performance-panel .tenant-isolation-check.warning,
.embed-performance-panel .tenant-role-row.warning {
  border-color: rgba(251, 191, 36, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.embed-performance-panel .tenant-isolation-check.failed,
.embed-performance-panel .tenant-role-row.failed {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(239, 68, 68, 0.08);
}
