/* Shared styles for the promoter portal */

/* --- Design tokens --- */
:root {
  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #64748b;
  --text-muted:     #94a3b8;

  /* Borders */
  --border:        #e2e8f0;
  --border-subtle: #f1f5f9;

  /* Surfaces */
  --surface:       #ffffff;
  --surface-muted: #fafbfc;
  --bg:            #f6f9fc;

  /* Type scale */
  --text-xs:   0.7rem;
  --text-sm:   0.8rem;
  --text-base: 0.875rem;
  --text-lg:   1.25rem;

  /* Spacing scale (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-12: 48px;
}

/* --- Layout --- */
.pd-wrap { max-width: 960px; margin: 0 auto; padding: var(--space-4) 12px; }
@media (min-width: 640px) { .pd-wrap { padding: var(--space-8); } }

/* --- Typography --- */
.pd-heading { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; }
.pd-sub { font-size: var(--text-base); color: var(--text-secondary); margin-top: var(--space-1); margin-bottom: var(--space-7); }
.pd-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }

.pd-section-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.pd-submission-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pd-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pd-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.pd-section-sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* --- Links --- */
.pd-view-all {
  font-size: var(--text-sm); color: var(--text-secondary); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: var(--border);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.pd-view-all:hover { color: var(--text-primary); text-decoration-color: var(--text-muted); }

/* --- Back link --- */
.pd-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-sm); color: var(--text-muted); text-decoration: none;
  margin-bottom: var(--space-5); transition: color 0.15s;
}
.pd-back:hover { color: var(--text-primary); }
.pd-back svg { width: 12px; height: 12px; flex-shrink: 0; }

/* --- Empty state --- */
.pd-empty {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: var(--space-12) var(--space-8); text-align: center; font-size: var(--text-base); color: var(--text-muted);
}

/* --- Venue list --- */
.pd-venue-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pd-venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  color: inherit;
  text-decoration: none;
  transition: background 0.1s;
}

.pd-venue-row:last-child { border-bottom: none; }
.pd-venue-row:hover { background: var(--surface-muted); }

.pd-venue-row-main {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.pd-venue-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-venue-location {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.pd-venue-arrow {
  color: var(--text-muted);
  font-size: var(--text-base);
  flex-shrink: 0;
}

/* --- Status badges --- */
.badge-active {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #dcfce7; color: #166534;
}
.badge-inactive {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: var(--border-subtle); color: var(--text-secondary);
}
.badge-archived {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #fef3c7; color: #92400e;
}
.badge-expired {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: var(--border-subtle); color: var(--text-muted);
}
.badge-draft {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: var(--border-subtle); color: var(--text-muted);
}
.badge-queued {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #fef9c3; color: #854d0e;
}
.badge-done {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #dcfce7; color: #166534;
}
.badge-imported {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #dbeafe; color: #1e40af;
}
.badge-error {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #fee2e2; color: #991b1b;
}
.badge-cancelled {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: var(--border-subtle); color: var(--text-muted);
}
.badge-ready {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #dcfce7; color: #166534;
}
.badge-manual {
  display: inline-flex; align-items: center;
  padding: 2px var(--space-2); border-radius: 4px;
  font-size: var(--text-xs); font-weight: 500;
  background: #f3e8ff; color: #6b21a8;
}

/* --- Buttons --- */
.pd-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-primary); color: #fff;
  border: none; border-radius: 6px;
  font-size: var(--text-sm); font-weight: 500;
  padding: 10px 20px; cursor: pointer;
  letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap; transition: background 0.15s;
}
.pd-btn:hover { background: #1e293b; }
.pd-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.pd-import-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-secondary);
  border: 1.5px dashed var(--border); border-radius: 6px;
  font-size: var(--text-sm); font-weight: 500;
  padding: 10px 20px; cursor: pointer;
  letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap; transition: border-color 0.15s, color 0.15s;
}
.pd-import-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.pd-import-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.pd-date-label {
  font-size: var(--text-sm); color: var(--text-muted);
}

.pd-submitted-date {
  font-size: var(--text-sm); color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.pd-btn-pending {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-sm); font-weight: 500;
  color: #c2410c; background: none; border: none;
  cursor: pointer; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: color 0.15s;
}
.pd-btn-pending:hover { color: #9a3412; }
.pd-btn-pending svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Submission list --- */
.sub-code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.sub-venue { font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.sub-show-url {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-sm);
}
.sub-image-link {
  font-size: var(--text-sm); color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: var(--border);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block; transition: color 0.15s, text-decoration-color 0.15s;
}
.sub-image-link:hover { color: var(--text-secondary); text-decoration-color: var(--text-muted); }

/* --- Alerts --- */
.pd-alert {
  font-size: var(--text-sm); padding: 11px 16px;
  border-radius: 6px; margin-bottom: var(--space-5);
  display: flex; align-items: flex-start; gap: 10px;
}
.pd-alert-icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }
.pd-alert-body { flex: 1; }
.pd-alert-error {
  background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  border-left: 3px solid #f87171;
}
.pd-alert-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
  border-left: 3px solid #4ade80;
}
.pd-alert-warning {
  background: #fefce8; border: 1px solid #fde68a; color: #854d0e;
  border-left: 3px solid #fbbf24;
}

/* Flash banner — attached beneath the header, full-width */
.pd-flash {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 12px 24px;
}
.pd-flash .pd-alert-title {
  font-weight: 600;
  margin-bottom: 2px;
}
.pd-flash .pd-alert-messages { margin: 0; padding: 0; list-style: none; }
.pd-flash .pd-alert-messages li + li { margin-top: 1px; }

/* --- Table (desktop) --- */
.pd-table-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; display: none;
}
@media (min-width: 640px) { .pd-table-wrap { display: block; } }

.pd-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.pd-table--giveaways { table-layout: fixed; }
.pd-table thead tr { border-bottom: 1px solid var(--border); }
.pd-table th {
  text-align: left; padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.07em; text-transform: uppercase;
}
.pd-table th.right { text-align: right; }
.pd-table td { padding: 14px var(--space-5); color: var(--text-secondary); vertical-align: middle; }
.pd-table--giveaways th { padding: var(--space-3) var(--space-3); }
.pd-table--giveaways td { padding: 14px var(--space-3); }
.pd-table td.primary { font-weight: 400; color: var(--text-primary); }
.pd-table td.right { text-align: right; font-variant-numeric: tabular-nums; }
.pd-table td.muted { color: var(--text-muted); }
.pd-table tbody tr { border-bottom: 1px solid var(--border-subtle); }
.pd-table tbody tr:last-child { border-bottom: none; }
.pd-table tbody tr:hover { background: var(--surface-muted); }
.pd-table tbody tr.expired { background: #f8fafc; }
.pd-table tbody tr.expired:hover { background: var(--border-subtle); }

.pd-show-link {
  color: var(--text-secondary); font-weight: 400;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border);
  transition: color 0.15s, text-decoration-color 0.15s;
}
.pd-table .pd-show-link {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pd-show-link:hover { color: var(--text-primary); text-decoration-color: var(--text-muted); }
.pd-confirmed { font-variant-numeric: tabular-nums; color: var(--text-primary); }
.pd-limit { color: var(--text-muted); font-weight: 400; }
.pd-arrow { color: var(--text-muted); text-decoration: none; font-size: var(--text-base); }
.pd-arrow:hover { color: var(--text-secondary); }

.pd-submit-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 5px; border: 1px solid var(--border);
  font-size: var(--text-xs); font-weight: 500; color: var(--text-secondary);
  background: var(--surface); text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.pd-submit-btn:hover {
  border-color: var(--text-muted); color: var(--text-primary);
  background: var(--surface-muted);
}

/* --- Mobile cards --- */
.pd-cards { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .pd-cards { display: none; } }

.pd-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px var(--space-4); text-decoration: none; display: block; color: inherit;
}
.pd-card:hover { border-color: var(--text-muted); }
.pd-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: 2px; }
.pd-card-show {
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-base); font-weight: 400; color: var(--text-primary);
}
.pd-card-sub {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 2px;
}
.pd-card-stats { display: flex; gap: var(--space-5); border-top: 1px solid var(--border-subtle); padding-top: 10px; }
.pd-card-stat-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1px; }
.pd-card-stat-value { font-size: var(--text-base); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pd-cards-footer { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); background: var(--surface-muted); border-radius: 8px; text-align: center; }
.pd-card.expired { background: #f8fafc; }
.pd-card-expiry { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 10px; }
.pd-card-expiry--expired { color: var(--text-muted); }

/* --- Venue sub-label --- */
.pd-venue-sub {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); margin-top: 2px;
}

/* --- Pagination --- */
.pd-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-5); gap: var(--space-2); }
.pd-pagination-info { font-size: var(--text-sm); color: var(--text-muted); }
.pd-pagination-btn { font-size: var(--text-sm); color: var(--text-secondary); text-decoration: none; padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.pd-pagination-btn--disabled { font-size: var(--text-sm); color: var(--text-muted); padding: 6px 14px; border: 1px solid var(--border-subtle); border-radius: 6px; }

/* --- Reward submission forms --- */
.rs-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.rs-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.rs-input {
  display: block;
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

textarea.rs-input {
  min-height: 112px;
  resize: vertical;
}

.rs-input::-moz-placeholder { color: var(--text-muted); }

.rs-input::placeholder { color: var(--text-muted); }

.rs-input:focus {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(148,163,184,0.15);
}

.rs-input.error { border-color: #fca5a5; }

.rs-error {
  font-size: var(--text-xs);
  color: #dc2626;
  margin-top: 4px;
}

.rs-file-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.rs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rs-card--padded {
  padding: var(--space-8);
}

.rs-card--shell {
  overflow: hidden;
}

.rs-card-body {
  padding: var(--space-6);
}

.rs-card-meta {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.rs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding: 5px 0;
}

.rs-meta-row + .rs-meta-row { border-top: 1px solid var(--border-subtle); }
.rs-meta-key { color: var(--text-muted); }
.rs-meta-val { color: var(--text-secondary); font-weight: 500; }

.rs-image-preview {
  margin-top: var(--space-3);
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--surface-muted);
}

.rs-image-preview--narrow { max-width: 280px; }
.rs-image-preview--wide { max-width: 320px; }

.rs-image-preview img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Reward detail (giveaway show page) --- */
.rd-header { margin-bottom: 28px; }
.rd-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 4px; }
.rd-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.2; }
.rd-venue { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: 12px; }
.rd-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rd-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 4px;
  font-size: var(--text-sm); font-weight: 500;
  background: var(--surface-muted); border: 1px solid var(--border); color: var(--text-secondary);
  white-space: nowrap;
}
.rd-chip-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 4px;
  font-size: var(--text-sm); font-weight: 500;
  background: var(--surface-muted); border: 1px solid var(--border); color: var(--text-secondary);
  text-decoration: none; white-space: nowrap; transition: border-color 0.15s, color 0.15s;
}
.rd-chip-link:hover { border-color: var(--text-muted); color: var(--text-primary); }
.rd-badge-active { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: var(--text-xs); font-weight: 600; background: #dcfce7; color: #166534; white-space: nowrap; flex-shrink: 0; }
.rd-badge-inactive { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px; font-size: var(--text-xs); font-weight: 600; background: var(--border-subtle); color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; }

.rd-section { margin-bottom: 20px; }
.rd-section-note { margin: 6px 0 0; font-size: var(--text-sm); color: var(--text-muted); }

.rd-strip { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; display: grid; overflow: hidden; }
.rd-strip.cols-4 { grid-template-columns: repeat(4, 1fr); }
.rd-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 540px) {
  .rd-strip.cols-4 { grid-template-columns: 1fr; }
  .rd-strip.cols-4 .rd-cell { display: flex; align-items: center; justify-content: space-between; border-right: none; border-bottom: 1px solid var(--border); }
  .rd-strip.cols-4 .rd-cell:last-child { border-bottom: none; }
  .rd-strip.cols-4 .rd-cell-label { margin-bottom: 0; }
  .rd-strip.cols-4 .rd-cell-value { font-size: 1.2rem; }
}
.rd-cell { padding: 10px 12px; border-right: 1px solid var(--border); }
@media (min-width: 640px) { .rd-cell { padding: 16px 20px; } }
.rd-cell:last-child { border-right: none; }
.rd-cell-label { font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); letter-spacing: 0.02em; margin-bottom: 6px; }
.rd-cell-label-note { display: block; margin-top: 2px; font-size: 0.65rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.rd-cell-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.rd-cell-value.tbd { font-size: 1.3rem; color: var(--border); }
.rd-cell-soon { display: inline-block; margin-top: 5px; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; }

.rd-comments { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rd-comment { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 640px) { .rd-comment { padding: 14px 20px; gap: 12px; } }
.rd-comment:last-child { border-bottom: none; }
.rd-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--border-subtle); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 700; flex-shrink: 0; border: 1px solid var(--border); }
.rd-comment-body { flex: 1; min-width: 0; }
.rd-comment-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.rd-comment-user { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.rd-comment-time { font-size: var(--text-xs); color: var(--text-muted); }
.rd-comment-text { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.45; }
.rd-user-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 640px) { .rd-user-row { padding: 12px 20px; gap: 12px; } }
.rd-user-row:last-child { border-bottom: none; }
.rd-user-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.rd-user-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-user-handle { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; }
.rd-user-time { font-size: var(--text-xs); color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* Confirmed pairs table */
.rd-table-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  overflow-x: auto; margin-top: 10px;
}
.rd-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.rd-table thead tr { border-bottom: 1px solid var(--border); }
.rd-table th {
  text-align: left; padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.07em; text-transform: uppercase;
}
.rd-table th.right { text-align: right; }
.rd-table td { padding: 10px var(--space-4); vertical-align: middle; }
.rd-table td.right { text-align: right; }
.rd-table tbody tr { border-bottom: 1px solid var(--border-subtle); }
.rd-table tbody tr:nth-child(even) { background: var(--surface-muted); }
.rd-table tbody tr:last-child { border-bottom: none; }
.rd-table .rd-tc-avatar { width: 36px; padding-right: 0; }
.rd-table .rd-tc-name { color: var(--text-primary); }
.rd-table .rd-tc-handle { color: var(--text-muted); }
.rd-table .rd-tc-date { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rd-tc-mobile-count { display: none; font-size: var(--text-xs); color: var(--text-muted); }
@media (max-width: 639px) {
  .rd-table .rd-tc-avatar,
  .rd-table .rd-tc-family,
  .rd-table .rd-tc-given,
  .rd-table .rd-tc-handle,
  .rd-table .rd-tc-tickets { display: none; }
  .rd-tc-mobile-count { display: inline; }
}
