/* ═════════════════════════════════════════════════════════════════════
   SPECTRA /// SENDER — Session access & replay
   Sender-specific: floating session popup + full session modal.
   Every other modal uses the shared .modal-backdrop / .modal grammar.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Session popup — floating window ─────────────────────────────── */
.session-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--card-bg-solid);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 240;
  display: none;
  flex-direction: column;
  animation: sessionPopupIn 0.24s var(--ease-out);
  overflow: hidden;
}
.session-popup.show { display: flex; }
.session-popup.minimized { height: 44px; overflow: hidden; }
@keyframes sessionPopupIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.session-popup .sp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--product) 10%, var(--card-bg-solid)), var(--card-bg-solid));
  border-bottom: 1px solid var(--border);
  cursor: move;
  flex-shrink: 0;
}
.session-popup .sp-head .sp-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-bright);
  font-weight: 500;
  min-width: 0;
}
.session-popup .sp-head .sp-title svg {
  width: 14px; height: 14px;
  stroke-width: 1.85;
  color: var(--product);
  flex-shrink: 0;
}
.session-popup .sp-head .sp-title .sp-sid {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-popup .sp-head .sp-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--product-soft);
  border: 1px solid var(--product-line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--product);
  font-weight: 700;
}
.session-popup .sp-head .sp-live .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--product);
  box-shadow: 0 0 6px var(--product);
  animation: pipPulse 1.6s infinite;
}
.session-popup .sp-head .sp-btn {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--fg-mute);
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  border: none;
}
.session-popup .sp-head .sp-btn:hover { background: var(--card-bg); color: var(--fg-bright); }
.session-popup .sp-head .sp-btn svg { width: 12px; height: 12px; stroke-width: 2.2; }
.session-popup .sp-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Mini sandbox inside popup */
.sandbox-mini {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
}
.sandbox-mini .sb-chrome {
  padding: 6px 10px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #dee2e6;
}
.sandbox-mini .sb-chrome .dots { display: flex; gap: 4px; }
.sandbox-mini .sb-chrome .dots span { width: 8px; height: 8px; border-radius: 50%; }
.sandbox-mini .sb-chrome .dots span:nth-child(1) { background: #ff5f57; }
.sandbox-mini .sb-chrome .dots span:nth-child(2) { background: #febc2e; }
.sandbox-mini .sb-chrome .dots span:nth-child(3) { background: #28c840; }
.sandbox-mini .sb-chrome .sb-url {
  flex: 1;
  padding: 3px 8px;
  background: #fff;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sandbox-mini .sb-frame {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.sandbox-mini .sb-frame .sb-field {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: #1a1a1a;
  position: relative;
}
.sandbox-mini .sb-frame .sb-field.focused {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.sandbox-mini .sb-frame .sb-field.focused::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 14px;
  background: var(--product);
  animation: senderCaret 1s steps(2) infinite;
}
@keyframes senderCaret { 50% { opacity: 0; } }
.sandbox-mini .sb-frame .sb-btn {
  padding: 7px 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 5px;
  font-size: 11px;
  text-align: center;
  font-weight: 600;
}
.sandbox-mini .sb-keys {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 5;
}
.sandbox-mini .sb-keys .k {
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  min-width: 16px;
  text-align: center;
}
.sandbox-mini .sb-keys .k.hl {
  background: var(--product);
  color: #0a0d10;
  box-shadow: 0 0 10px var(--product-glow);
}

.sp-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-capture .sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg-mute);
}
.sp-capture .sc-chip.hit {
  background: var(--product-soft);
  color: var(--product);
  border-color: var(--product-line);
}
.sp-capture .sc-chip.hit svg { width: 10px; height: 10px; stroke-width: 2.4; }

.sp-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

/* ── Full session modal ─────────────────────────────────────────── */
.session-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.session-modal.show { display: flex; animation: fadeIn 0.15s ease; }
.session-modal .sm-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1120px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.24s var(--ease-out);
}
.sm-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--product) 6%, var(--card-bg-solid)), var(--card-bg-solid) 40%);
}
.sm-head .sm-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg-bright);
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.sm-head .sm-title svg {
  width: 15px; height: 15px;
  stroke-width: 1.85;
  color: var(--product);
}
.sm-head .sm-title .sm-sid { color: var(--product); }
.sm-head .sm-title .sm-meta { color: var(--fg-mute); font-size: 11px; }
.sm-head .sm-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--product-soft);
  border: 1px solid var(--product-line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--product);
  font-weight: 700;
}
.sm-head .sm-live .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--product);
  box-shadow: 0 0 6px var(--product);
  animation: pipPulse 1.6s infinite;
}
.sm-head .sm-live.off {
  background: var(--card-bg);
  color: var(--fg-mute);
  border-color: var(--border);
}
.sm-head .sm-live.off .dot {
  background: var(--fg-faint);
  box-shadow: none;
  animation: none;
}
.sm-head .sm-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  color: var(--fg-mute);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.sm-head .sm-close:hover { background: var(--red-soft); color: var(--red); }

.sm-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 2px;
  flex-shrink: 0;
  overflow-x: auto;
}
.sm-tab {
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
}
.sm-tab svg { width: 12px; height: 12px; stroke-width: 2; }
.sm-tab:hover { color: var(--fg-dim); }
.sm-tab.active { color: var(--product); border-bottom-color: var(--product); }

.sm-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
}
.sm-pane {
  flex: 1;
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 0;
}
.sm-pane.active { display: flex; }

.sm-live-wrap {
  flex: 1;
  padding: 20px;
  display: flex;
  gap: 18px;
  overflow: hidden;
  min-height: 0;
}
.sm-sandbox-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sm-side-col {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 900px) {
  .sm-live-wrap { flex-direction: column; }
  .sm-side-col { width: 100%; }
}

.sm-sandbox {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.sm-sandbox .sb-chrome {
  padding: 8px 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sm-sandbox .sb-chrome .dots { display: flex; gap: 5px; }
.sm-sandbox .sb-chrome .dots span { width: 10px; height: 10px; border-radius: 50%; }
.sm-sandbox .sb-chrome .dots span:nth-child(1) { background: #ff5f57; }
.sm-sandbox .sb-chrome .dots span:nth-child(2) { background: #febc2e; }
.sm-sandbox .sb-chrome .dots span:nth-child(3) { background: #28c840; }
.sm-sandbox .sb-chrome .sb-url {
  flex: 1;
  padding: 5px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sm-sandbox .sb-chrome .sb-url .lock {
  width: 12px; height: 12px;
  color: var(--product);
  flex-shrink: 0;
}
.sm-sandbox .sb-chrome .sb-url .url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-sandbox .sb-chrome .sb-url .url .host { color: var(--fg-bright); }
.sm-sandbox .sb-chrome .sb-url .url .path { color: var(--fg-mute); }
.sm-sandbox .sb-frame {
  flex: 1;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 40px 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-height: 320px;
}
.sm-sandbox .sb-frame .sb-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.sm-sandbox .sb-frame .sb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 22px;
}
.sm-sandbox .sb-frame .sb-brand .mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.sm-sandbox .sb-frame h3 {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.sm-sandbox .sb-frame p.sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 22px;
}
.sm-sandbox .sb-field { margin-bottom: 14px; }
.sm-sandbox .sb-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 5px;
}
.sm-sandbox .sb-field input {
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #1a1a1a;
  outline: none;
  font-family: var(--mono);
}
.sm-sandbox .sb-field.focused input {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.sm-sandbox .sb-submit {
  width: 100%;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.sm-keys {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  padding: 7px 14px;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 5;
  align-items: center;
}
.sm-keys .k {
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
  font-weight: 500;
}
.sm-keys .k.hl {
  background: var(--product);
  color: #0a0d10;
  box-shadow: 0 0 12px var(--product-glow);
}

.sm-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sm-panel .sp-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-panel .sp-head svg { width: 12px; height: 12px; stroke-width: 2; color: var(--product); }
.sm-panel .sp-body {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.55;
}

.sm-capture {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sm-capture .sc-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  background: var(--bg-3);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11.5px;
}
.sm-capture .sc-row .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 600;
}
.sm-capture .sc-row .v {
  color: var(--fg-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}
.sm-capture .sc-row .v.revealed { cursor: pointer; }

.sm-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.sm-action svg { width: 13px; height: 13px; stroke-width: 1.9; color: var(--fg-mute); flex-shrink: 0; }
.sm-action:hover { background: var(--card-bg); color: var(--fg-bright); }
.sm-action:hover svg { color: var(--product); }
.sm-action.danger { color: var(--red); }
.sm-action.danger svg { color: var(--red); }
.sm-action.danger:hover { background: var(--red-soft); }

.sm-replay-wrap {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  min-height: 0;
}
.sm-replay-canvas {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1d24 0%, #0f1116 100%);
  flex-shrink: 0;
}
.sm-replay-canvas .rc-placeholder {
  width: 90%;
  height: 90%;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: relative;
}
.sm-replay-canvas .rc-placeholder .rp-row { display: flex; gap: 10px; margin-bottom: 12px; }
.sm-replay-canvas .rc-placeholder .rp-bar { height: 6px; border-radius: 3px; background: #e5e7eb; }
.sm-replay-canvas .rc-placeholder .rp-bar.brand { background: #2563eb; width: 30%; height: 8px; }
.sm-replay-canvas .rc-placeholder .rp-bar.w80 { width: 80%; }
.sm-replay-canvas .rc-placeholder .rp-bar.w60 { width: 60%; }

.sm-replay-timeline {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sm-replay-controls { display: flex; align-items: center; gap: 8px; }
.sm-replay-controls .time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.sm-replay-controls .time .cur { color: var(--fg-bright); font-weight: 500; }
.sm-replay-controls .spacer { flex: 1; }
.sm-replay-controls .speed {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--border-hi);
  color: var(--fg-dim);
  cursor: pointer;
  letter-spacing: 0.04em;
  background: transparent;
}
.sm-replay-track {
  position: relative;
  height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  overflow: hidden;
}
.sm-replay-density {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 4px 0;
  opacity: 0.4;
}
.sm-replay-density .bar {
  flex: 1;
  background: var(--product);
  border-radius: 1px 1px 0 0;
}
.sm-replay-markers {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 0; right: 0;
  pointer-events: none;
}
.sm-replay-marker {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  border-radius: 1px;
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.15s;
}
.sm-replay-marker:hover { width: 5px; }
.sm-replay-marker.keystroke { background: var(--product); }
.sm-replay-marker.form      { background: var(--green); }
.sm-replay-marker.click     { background: var(--amber); }
.sm-replay-marker.nav       { background: var(--purple); }
.sm-replay-marker.capture   { background: var(--red); }
.sm-replay-marker.download  { background: var(--blue); }
.sm-replay-playhead {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.sm-replay-playhead::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
.sm-replay-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-dim);
}
.sm-replay-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.sm-replay-legend .sw { width: 8px; height: 8px; border-radius: 2px; }
.sm-replay-events {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding: 8px 16px 0;
  margin: 0 -16px;
}
.sm-replay-event {
  display: grid;
  grid-template-columns: 70px 90px 1fr;
  gap: 12px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11.5px;
  align-items: center;
  cursor: pointer;
  transition: background 0.1s;
}
.sm-replay-event:hover { background: var(--card-bg); }
.sm-replay-event.active { background: var(--product-soft); }
.sm-replay-event .t { color: var(--fg-mute); }
.sm-replay-event .type {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}
.sm-replay-event.keystroke .type { color: var(--product); }
.sm-replay-event.form      .type { color: var(--green); }
.sm-replay-event.click     .type { color: var(--amber); }
.sm-replay-event.nav       .type { color: var(--purple); }
.sm-replay-event.capture   .type { color: var(--red); }
.sm-replay-event.download  .type { color: var(--blue); }
.sm-replay-event .d { color: var(--fg-dim); }

.sm-logs-wrap { flex: 1; overflow: auto; padding: 20px; }
.sm-logs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 11.5px;
}
.sm-logs-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.sm-logs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-2);
}
.sm-logs-table tbody tr:hover { background: var(--card-bg); }