/* CastleFX Admin — Mobile-First Stylesheet */

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0D2053;
  --navy-mid:  #1B3A6B;
  --wine:      #8E1244;
  --wine-dark: #6b0e34;
  --gold:      #C9A84C;
  --green:     #2e7d32;
  --red:       #c62828;
  --bg:        #f0f2f5;
  --surface:   #ffffff;
  --border:    #d4d8e0;
  --text:      #1E2832;
  --muted:     #6B7280;
  --auto-bg:   #fffbe6;
  --auto-border: #C9A84C;
  --input-h:   44px;
  --radius:    6px;
  --shadow:    0 1px 4px rgba(0,0,0,.12);
}

body {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--navy-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ────────────────────────────────────────────────────────── */
.admin-nav {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.admin-nav__brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}

.admin-nav__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.admin-nav__links a {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.admin-nav__links a:hover { color: #fff; text-decoration: underline; }

/* ── Page Container ─────────────────────────────────────────────── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.page--wide {
  max-width: 1100px;
}

/* ── Page Heading ───────────────────────────────────────────────── */
.page-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ── Card ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.card__header {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card__body {
  padding: 16px;
}

.card__header--wine { background: var(--wine); }
.card__header--mid  { background: var(--navy-mid); }

/* ── Form Controls ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  height: var(--input-h);
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(27,58,107,.12);
}

textarea {
  height: auto;
  min-height: 100px;
  padding: 10px 12px;
  resize: vertical;
}

select { cursor: pointer; }

/* Auto-calculated fields */
.input--auto {
  background: var(--auto-bg);
  border-color: var(--auto-border);
  color: #6b5400;
}

.auto-hint {
  font-size: 11px;
  color: var(--gold);
  margin-top: 3px;
}

/* Two-column rate grid on tablet+ */
.rate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

/* ── Traffic Light Radio ────────────────────────────────────────── */
.tl-group {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.tl-option {
  flex: 1;
  position: relative;
}

.tl-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tl-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--input-h);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  transition: all .15s;
}

.tl-option input:checked + .tl-label.tl-label--red {
  background: #fdecea;
  border-color: var(--red);
  color: var(--red);
}

.tl-option input:checked + .tl-label.tl-label--green {
  background: #e8f5e9;
  border-color: var(--green);
  color: var(--green);
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tl-dot--red   { background: var(--red); }
.tl-dot--green { background: var(--green); }

/* ── Event Picker ───────────────────────────────────────────────── */
.event-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.event-row {
  display: grid;
  grid-template-columns: 1fr 80px 36px;
  gap: 8px;
  align-items: center;
}

.event-row select { font-size: 13px; }

.event-row input[type="time"] {
  padding: 0 8px;
  font-size: 13px;
}

.btn-remove {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-remove:hover { background: #fdecea; border-color: var(--red); color: var(--red); }

.btn-add-event {
  height: 36px;
  padding: 0 14px;
  border: 1px dashed var(--navy-mid);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy-mid);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-add-event:hover { background: rgba(27,58,107,.06); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}

.btn--primary {
  background: var(--wine);
  color: #fff;
}

.btn--primary:hover { background: var(--wine-dark); color: #fff; }

.btn--secondary {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn--secondary:hover { background: rgba(13,32,83,.06); }

.btn--full { width: 100%; }

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Login Page ─────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--navy);
}

.login-card {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-img {
  height: 48px;
  width: auto;
}

.login-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
}

.login-error {
  background: #fdecea;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* ── Preview Page ───────────────────────────────────────────────── */
.preview-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 20px;
}

.preview-tab {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  margin-bottom: -2px;
  background: transparent;
  transition: all .15s;
}

.preview-tab.is-active {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--navy);
  border-bottom-color: var(--surface);
}

.preview-panel { display: none; }
.preview-panel.is-active { display: block; }

.preview-frame {
  width: 100%;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.confirm-bar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 2px solid var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,.10);
  margin-top: 20px;
}

.confirm-bar__note {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

/* ── Success Page ───────────────────────────────────────────────── */
.success-wrap {
  text-align: center;
  padding: 48px 0;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.success-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.success-detail {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-title {
  color: var(--red);
}

/* ── Page Heading Row (heading + CTA on same line) ───────────────── */
.page-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-heading-row .page-heading { margin-bottom: 0; }

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* ── Filter Bar ──────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.filter-bar select,
.filter-bar input[type="text"] {
  height: 38px;
  min-width: 0;
  flex: 1;
  max-width: 240px;
  font-size: 13px;
}

.filter-clear {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* ── Subscriber Stats Row ─────────────────────────────────────────── */
.sub-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sub-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  text-align: center;
  min-width: 90px;
}

.sub-stat--total {
  border-color: var(--navy-mid);
  background: #f0f4ff;
}

.sub-stat__num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.sub-stat__lbl {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Subscriber Table ─────────────────────────────────────────────── */
.sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sub-table thead th {
  text-align: left;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  background: #f8f9fb;
}

.sub-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.sub-table tbody tr:last-child td { border-bottom: none; }

.sub-table tbody tr:hover { background: #f8f9fb; }

.sub-row--inactive { opacity: .55; }

.sub-name { font-weight: 600; color: var(--text); }
.sub-email { font-size: 12px; color: var(--muted); margin-top: 1px; }
.sub-phone { font-size: 12px; color: var(--muted); }

/* ── List Badge ──────────────────────────────────────────────────── */
.list-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

.list-badge--daily_exporter  { background: #e3f2fd; color: #1565c0; }
.list-badge--daily_importer  { background: #fce4ec; color: #ad1457; }
.list-badge--weekly_exporter { background: #e8f5e9; color: #2e7d32; }
.list-badge--weekly_importer { background: #fff3e0; color: #e65100; }

/* ── Type Badge ──────────────────────────────────────────────────── */
.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.type-badge--client  { background: #EAF3DE; color: #3B6D11; }
.type-badge--prospect { background: #E6F1FB; color: #185FA5; }

/* ── Status Badge ────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge--active   { background: #e8f5e9; color: #2e7d32; }
.status-badge--inactive { background: #f3f3f3; color: #999; }

/* ── SMS Zone Tags ───────────────────────────────────────────────── */
.sub-zones { white-space: nowrap; }

.zone-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  background: #e3f2fd;
  color: #1565c0;
  margin-right: 2px;
}

.zone-tag--none { background: #f3f3f3; color: #aaa; }

/* ── Subscriber Table Action Links ───────────────────────────────── */
.sub-actions { white-space: nowrap; }

.action-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: underline;
  padding: 0;
  margin-right: 10px;
  font-family: inherit;
}

.action-link--warn { color: var(--red); }
.action-link--ok   { color: var(--green); }
.action-link:hover { opacity: .75; }

/* ── Empty State ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.empty-state p { margin-bottom: 16px; }

/* ── Subscriber Form — Zone Checkboxes ───────────────────────────── */
.zone-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.zone-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.zone-checkbox__label { line-height: 1.4; }

/* ── Field Hint ──────────────────────────────────────────────────── */
.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Form Error Banner ───────────────────────────────────────────── */
.form-error-banner {
  background: #fdecea;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* ── Weekly Form — Section Dividers ─────────────────────────────── */
.weekly-section { padding: 12px 0; }
.weekly-section:first-child { padding-top: 0; }

.weekly-section__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.weekly-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0 16px;
}

/* ── Traffic Light — Yellow variant ─────────────────────────────── */
.tl-dot--yellow { background: #f9a825; }

.tl-option input:checked + .tl-label.tl-label--yellow {
  background: #fff8e1;
  border-color: #f9a825;
  color: #6d4c00;
}

/* ── Traffic Light — small variant (MT1 table) ───────────────────── */
.tl-label--sm {
  height: 34px;
  font-size: 12px;
  padding: 0 8px;
  gap: 5px;
}

/* ── Fixed traffic light indicator (0% tier is always red) ──────── */
.tl-fixed {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.tl-fixed--red { background: #fdecea; color: var(--red); }

/* ── Medium Term I Tiers Grid ────────────────────────────────────── */
.mt1-grid { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.mt1-grid__header {
  display: grid;
  grid-template-columns: 60px 1fr 160px;
  gap: 8px;
  background: #f0f2f5;
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mt1-grid__row {
  display: grid;
  grid-template-columns: 60px 1fr 160px;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.mt1-grid__row:last-child { border-bottom: none; }

.mt1-grid__pct {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.mt1-grid__rate .form-group { margin-bottom: 0; }
.mt1-grid__rate input { height: 36px; font-size: 13px; }

.mt1-tl-group {
  display: flex;
  gap: 6px;
}

.mt1-tl-group .tl-option { flex: 1; }

/* ── Analysis Paragraph Blocks ───────────────────────────────────── */
.analysis-para { border-left: 3px solid var(--navy); padding-left: 12px; }

.analysis-para__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Weekly Preview Page ─────────────────────────────────────────── */
.preview-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-meta__sep { opacity: .5; }

.preview-frame-wrap { padding: 0; overflow: hidden; }

.preview-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ── Util ───────────────────────────────────────────────────────── */
.mt-4  { margin-top:  4px; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.text-muted { color: var(--muted); font-size: 12px; }

/* ── Scoreboard — admin detail view ─────────────────────────────── */
.table-scroll { overflow-x: auto; }

.sb-summary-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--surface);
}

.sb-summary-strip__cell {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-summary-strip__cell:last-child { border-right: none; }
.sb-summary-strip__cell--green { background: #f0fdf4; }
.sb-summary-strip__cell--red   { background: #fef2f2; }
.sb-summary-strip__cell--gray  { background: #f9fafb; }

.sb-summary-strip__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.sb-summary-strip__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.sb-summary-strip__cell--green .sb-summary-strip__value { color: #15803d; }
.sb-summary-strip__cell--red   .sb-summary-strip__value { color: #b91c1c; }

.sb-summary-strip__pct {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

/* Scoreboard detail table */
.sb-table { font-size: 13px; }
.sb-table__date    { white-space: nowrap; font-weight: 600; color: var(--navy); }
.sb-table__rate    { font-family: monospace; font-size: 13px; white-space: nowrap; }
.sb-table__section { font-size: 12px; color: var(--muted); }
.sb-table__time    { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Outcome status badges */
.status-badge {
  display: inline-block;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge--target { background: #dcfce7; color: #15803d; }
.status-badge--stop   { background: #fee2e2; color: #b91c1c; }
.status-badge--nohit  { background: #f3f4f6; color: #6B7280; }
.status-badge--open   { background: #fffbe6; color: #92400e; }

/* Exporter / Importer list badges for scoreboard */
.list-badge--exp { background: #dbeafe; color: #1e40af; }
.list-badge--imp { background: #fce7f3; color: #9d174d; }

/* ── Track Record — public page ──────────────────────────────────── */
body.public-page { background: #f8f8f5; }

.public-header {
  background: var(--navy);
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
}
.public-header__inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.public-header__brand {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
}
.public-header__brand:hover { text-decoration: none; opacity: .85; }
.public-header__title {
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

.page-wrap--public { max-width: 900px; }

.tr-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.tr-intro__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.tr-intro__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 12px;
}
.tr-intro__disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* Filter bar variant for public page */
.filter-bar--public {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  box-shadow: none;
  align-items: center;
}
.filter-bar__label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* 2-column card grid */
.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .tr-grid { grid-template-columns: 1fr; }
}

.tr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tr-card__header {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.tr-card__header--exp { background: #1e40af; }
.tr-card__header--imp { background: #9d174d; }

.tr-card__body { padding: 16px 18px; }
.tr-card__empty { font-size: 13px; color: var(--muted); font-style: italic; }

.tr-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0ea;
  font-size: 14px;
}
.tr-stat-row:last-child { border-bottom: none; }
.tr-stat-row__label { color: var(--text); }
.tr-stat-row__value { font-weight: 700; color: var(--navy); }
.tr-stat-row__value em { font-weight: 400; font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.tr-stat-row--target .tr-stat-row__value { color: #15803d; }
.tr-stat-row--stop   .tr-stat-row__value { color: #b91c1c; }
.tr-stat-row--nohit  .tr-stat-row__value { color: var(--muted); }

.tr-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
}

/* Coming-soon / insufficient-data state */
.tr-coming-soon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 24px;
}
.tr-coming-soon__icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
  opacity: .6;
}
.tr-coming-soon__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.tr-coming-soon__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 14px;
}
.tr-coming-soon__progress {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 10px;
}
.tr-coming-soon__return {
  font-size: 13px;
  color: var(--muted);
}

.public-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
}
.public-footer__link { color: var(--navy-mid); }
