/* ──────────────────────────────────────────────────────────────
   Velour — Components
   12px card radius • 6px input/button radius • soft shadows
   ────────────────────────────────────────────────────────────── */

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4375rem;
  padding: 0.5625rem 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.08s ease, color 0.15s;
  box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-pop); }

/* Primary — deep green (the historical .btn-dark slot) */
.btn-dark,
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 1px 2px rgba(20,25,22,0.10);
}
.btn-dark:hover,
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-fg); }
.btn-dark:active,
.btn-primary:active { background: var(--primary-press); border-color: var(--primary-press); }

/* Coral accent */
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }

/* Soft semantic buttons (subtle bg, colored text) */
.btn-green {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
  box-shadow: none;
}
.btn-green:hover { background: rgba(46, 139, 92, 0.16); border-color: var(--success); color: var(--success); }

.btn-red {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
  box-shadow: none;
}
.btn-red:hover { background: rgba(200, 85, 61, 0.16); border-color: var(--danger); color: var(--danger); }

.btn-gold {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
  box-shadow: none;
}
.btn-gold:hover { background: rgba(176, 125, 58, 0.18); border-color: var(--warning); color: var(--warning); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.375rem; font-size: 0.9375rem; border-radius: var(--radius-input); }
.btn-full { width: 100%; }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.125rem;
  box-shadow: var(--shadow-sm);
}
.card-header {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.625rem;
}
.card-header-line { display: none; }   /* legacy spacer — design no longer uses it */

/* ── Stats grid ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat-sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.375rem; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.875rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 0.875rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-transform: none;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.625rem 0.75rem;
  color: var(--text);
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover { border-color: var(--muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-group textarea { resize: vertical; min-height: 84px; }
.form-group input[type="file"] {
  padding: 0.5rem 0.6875rem;
  background: var(--surface-2);
  border-style: dashed;
}
.form-hint  { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.form-value {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-input); padding: 0.625rem 0.75rem;
  font-size: 0.875rem; color: var(--muted);
}
.form-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
  margin-bottom: 0.875rem; margin-top: 1rem;
}
.form-section-label:first-child { margin-top: 0; }

/* ── Tables ───────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.table th {
  text-align: left; padding: 0.6875rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 0.8125rem 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover td { background: var(--surface-2); }

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.6875rem; font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-gold   { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.badge-green  { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.badge-blue   { background: var(--info-bg);    color: var(--info);    border-color: var(--info-border); }
.badge-red    { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }
.badge-purple { background: var(--purple-bg);  color: var(--purple);  border-color: rgba(111,79,168,0.24); }
.badge-dark   { background: var(--text);       color: var(--surface); border-color: var(--text); }
.badge-primary { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-border); }
.badge-accent  { background: var(--accent-bg);  color: var(--accent-hover); border-color: var(--accent-border); }
.badge-view   { background: var(--info-bg); color: var(--info); border-color: var(--info-border); font-size: 0.75rem; padding: 0.3125rem 0.75rem; }

/* Role tags (pill on topbar + auth) */
.role-tag-admin   { background: var(--accent-bg);  color: var(--accent-hover); border: 1px solid var(--accent-border); }
.role-tag-manager { background: var(--primary-bg); color: var(--primary);      border: 1px solid var(--primary-border); }
.role-tag-talent  { background: var(--info-bg);    color: var(--info);         border: 1px solid var(--info-border); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 2.5rem 1.5rem;
  color: var(--muted); font-size: 0.875rem;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card);
}

/* ── Cycle flow indicator ────────────────────────────────────── */
.cycle-flow { display: flex; align-items: center; gap: 0; margin: 0.875rem 0; }
.cycle-step { display: flex; align-items: center; gap: 0.4375rem; font-size: 0.75rem; color: var(--muted); }
.cycle-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.cycle-dot.done   { background: var(--success); }
.cycle-dot.active { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.cycle-line { flex: 1; height: 2px; background: var(--border); min-width: 1rem; border-radius: 2px; }
.cycle-line.done { background: var(--success); }

/* ── Receipt preview ─────────────────────────────────────────── */
.receipt-preview {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5625rem 0.75rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-input); font-size: 0.8125rem; color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Dispute flag ────────────────────────────────────────────── */
.dispute-flag {
  display: inline-flex; align-items: center; gap: 0.3125rem;
  font-size: 0.75rem; font-weight: 600;
  color: var(--danger);
  padding: 0.25rem 0.625rem;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-pill);
}

/* ── Notifications ───────────────────────────────────────────── */
.notif-item {
  display: flex; gap: 0.875rem; padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--primary-bg); }
.notif-item:hover { background: var(--surface-2); }
.notif-indicator {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 0.4375rem;
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.notif-indicator.read { background: var(--faint); box-shadow: none; }
.notif-text { font-size: 0.875rem; line-height: 1.5; flex: 1; color: var(--text); }
.notif-time { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* ── Messages ────────────────────────────────────────────────── */
.msg-thread {
  display: flex; flex-direction: column; gap: 0.875rem;
  padding: 1.25rem; max-height: 460px; overflow-y: auto;
}
.msg-bubble { max-width: 76%; }
.msg-bubble.mine   { align-self: flex-end; }
.msg-bubble.theirs { align-self: flex-start; }
.msg-text {
  font-size: 0.875rem; padding: 0.625rem 0.9375rem;
  border-radius: 14px; line-height: 1.5;
}
.msg-bubble.mine   .msg-text { background: var(--primary); color: var(--primary-fg); border-bottom-right-radius: 4px; }
.msg-bubble.theirs .msg-text { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.msg-meta { font-size: 0.6875rem; color: var(--muted); margin-top: 0.3rem; }
.msg-bubble.mine .msg-meta { text-align: right; }
.msg-input-row { display: flex; gap: 0.5rem; padding: 0.875rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.msg-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-input); padding: 0.5625rem 0.75rem;
  color: var(--text); outline: none; font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.msg-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

/* ── Checklist ───────────────────────────────────────────────── */
.checklist-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6875rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.checklist-item:last-child { border-bottom: none; }
.check-icon {
  width: 1.375rem; height: 1.375rem; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.check-done { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.check-pend { background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--faint); }

/* ── Modal ────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(20, 25, 22, 0.45); z-index: 200;
  align-items: center; justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.875rem;
  width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 1.25rem; font-size: 1.25rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ── Calendar ────────────────────────────────────────────────── */
.cal-wrap { max-width: 520px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--text); }
.cal-arrow {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  width: 2rem; height: 2rem; border-radius: var(--radius-input);
  cursor: pointer; font-size: 0.8125rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
}
.cal-arrow:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name {
  text-align: center; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); padding: 0.4rem 0; text-transform: uppercase;
}
.cal-cell {
  text-align: center; font-size: 0.8125rem;
  padding: 0.5rem 0.2rem; border-radius: var(--radius-input);
  min-height: 2.125rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  color: var(--text);
}
.cal-cell.empty   { background: transparent; pointer-events: none; }
.cal-cell.today   { background: var(--surface); border: 1px solid var(--primary); color: var(--primary); font-weight: 600; }
.cal-cell.payout  { background: var(--primary); color: var(--primary-fg); font-weight: 600; }
.cal-cell.today.payout { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.cal-legend { display: flex; gap: 1.25rem; margin-top: 0.875rem; font-size: 0.8125rem; color: var(--muted); }
.cal-legend-dot {
  width: 0.625rem; height: 0.625rem; border-radius: 50%;
  display: inline-block; margin-right: 0.4rem; vertical-align: middle;
}
.upcoming-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.upcoming-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border-radius: var(--radius-input);
  padding: 0.6875rem 0.875rem; border: 1px solid var(--border);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.upcoming-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.upcoming-day {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--accent-hover); width: 2rem; text-align: center; line-height: 1;
}
.upcoming-info { flex: 1; }
.upcoming-sub  { font-size: 0.75rem; color: var(--muted); }

/* ── Proof thumbnails + lightbox ─────────────────────────────── */
.proof-thumb {
  display: inline-block;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.proof-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.proof-thumb:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: scale(1.04); }
.proof-thumb:focus-visible { outline: none; box-shadow: var(--shadow-pop); }

.proof-pdf-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; font-weight: 600;
  padding: 0.375rem 0.625rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  text-decoration: none;
}
.proof-pdf-link:hover { border-color: var(--primary); color: var(--primary); }

.proof-lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.proof-lightbox[hidden] { display: none; }
.proof-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 25, 22, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.proof-lightbox-img {
  position: relative;
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.proof-lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.proof-lightbox-close:hover { background: var(--surface-2); }

/* ── Tutorial card (links to YouTube etc.) ──────────────────── */
.tutorial-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tutorial-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.tutorial-card-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--danger);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.tutorial-card-label { font-weight: 600; font-size: 0.9375rem; }
.tutorial-card-meta  { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* ── Callout (highlighted tip block) ─────────────────────────── */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin: 0.75rem 0;
}
.callout-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.callout-body {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

/* ── Tips card (dashboard help content) ─────────────────────── */
.tips-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tips-toggle {
  display: flex; align-items: center; gap: 0.625rem;
  width: 100%;
  background: var(--surface-2);
  border: none; border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.tips-toggle:hover { background: var(--surface-3); }
.tips-chevron {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.15s;
}
.tips-card[data-open="true"] .tips-chevron { transform: rotate(180deg); }
.tips-body {
  display: none;
  padding: 0.5rem 1.25rem 1.25rem;
}
.tips-card[data-open="true"] .tips-body { display: block; }
.tips-body details {
  border-top: 1px solid var(--border);
  padding: 0.625rem 0;
}
.tips-body details:first-of-type { border-top: none; }
.tips-body summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.375rem 0;
  list-style: none;
}
.tips-body summary::-webkit-details-marker { display: none; }
.tips-body summary::before {
  content: '▸ ';
  display: inline-block;
  margin-right: 0.375rem;
  color: var(--primary);
  transition: transform 0.15s;
}
.tips-body details[open] summary::before {
  transform: rotate(90deg);
}
.tips-body ul {
  margin: 0.5rem 0 0 0.25rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.tips-body ul li { margin-bottom: 0.375rem; }
.tips-body ul li strong { color: var(--text); }

/* ── Walkthrough modal ──────────────────────────────────────── */
.walkthrough-backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(20, 25, 22, 0.55); }
.walkthrough { padding: 0 !important; }
.walkthrough-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-press) 100%);
  color: var(--primary-fg);
  padding: 1.5rem 1.875rem 1.25rem;
}
.walkthrough-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4375rem;
}
.walkthrough-title {
  font-size: 1.4375rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.015em; color: var(--primary-fg);
}
.walkthrough-progress {
  margin-top: 1rem;
  display: flex; align-items: center; gap: 0.875rem;
}
.wt-progress-bar {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px; overflow: hidden;
}
.wt-progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 999px; transition: width 0.3s ease;
}
.wt-progress-label {
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.walkthrough-body { padding: 1.625rem 1.875rem 0.5rem; max-height: 60vh; overflow-y: auto; }
.wt-step-title {
  font-size: 1.125rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.wt-step-desc {
  font-size: 0.9375rem; color: var(--muted);
  line-height: 1.55; margin-bottom: 1.25rem;
}

/* Tips step (read-only prose) */
.wt-tips-eyebrow {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.wt-tips-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.wt-tip-h4 {
  font-size: 0.9375rem; font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}
.wt-tip-h4:first-child { margin-top: 0; }
.wt-tip-p {
  font-size: 0.875rem; color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.wt-tip-p:last-child { margin-bottom: 0; }
.wt-tour-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.875rem;
}
.wt-tour-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.9375rem; line-height: 1.5;
}
.wt-tour-list li strong { color: var(--text); }
.wt-tour-dot {
  flex-shrink: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
  margin-top: 0.5625rem;
  box-shadow: 0 0 0 4px var(--primary-bg);
}
.wt-cta-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.125rem 1.25rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-card);
}
.wt-cta-icon { font-size: 1.75rem; line-height: 1; }
.wt-cta-text strong { display: block; color: var(--text); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.wt-cta-text p { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin: 0; }
.walkthrough-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 1.125rem 1.875rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  background: var(--surface-2);
}
.wt-footer-right { display: flex; gap: 0.5rem; align-items: center; }

@media (max-width: 540px) {
  .walkthrough-header { padding: 1.25rem 1.25rem 1rem; }
  .walkthrough-body   { padding: 1.25rem 1.25rem 0.5rem; }
  .walkthrough-footer { padding: 1rem 1.25rem 1.25rem; flex-direction: column-reverse; align-items: stretch; }
  .wt-footer-right    { justify-content: space-between; }
}

/* ── AnyDesk display card (talent dashboard) ────────────────── */
.anydesk-display-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-press) 100%);
  color: var(--primary-fg);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
}
.anydesk-display-label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.375rem;
}
.anydesk-display-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.625rem; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-fg);
  user-select: text;
}
/* Global ::selection (base.css) uses primary text color — on this card that
   washes out against the green gradient; keep selection readable here. */
.anydesk-display-card ::selection {
  background: rgba(255, 255, 255, 0.5);
  color: #0a2418;
}
.anydesk-display-card ::-moz-selection {
  background: rgba(255, 255, 255, 0.5);
  color: #0a2418;
}
.anydesk-id-copy-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.anydesk-id-copy-row .anydesk-display-id {
  min-width: 0;
  word-break: break-word;
}
.anydesk-display-card .anydesk-copy-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--primary-fg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.anydesk-display-card .anydesk-copy-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--primary-fg);
}
.anydesk-display-card .anydesk-copy-btn:disabled {
  opacity: 0.85;
  cursor: default;
}
.anydesk-display-meta {
  font-size: 0.8125rem; color: rgba(255,255,255,0.75);
  margin-top: 0.25rem;
}
.anydesk-display-card .btn-accent {
  background: var(--accent); color: var(--accent-fg);
  border-color: var(--accent); font-weight: 600;
}
.anydesk-display-card .btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ── Tab bar ─────────────────────────────────────────────────── */
.tab-bar {
  display: flex; gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.tab-link {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-link:hover { color: var(--text); }
.tab-link.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

/* ── Banner ──────────────────────────────────────────────────── */
.banner {
  border-radius: var(--radius-card);
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.75rem;
  border: 1px solid transparent;
}
.banner-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.banner-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-border); }
.banner-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.banner-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }

/* ── Table pager ─────────────────────────────────────────────── */
.table-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.8125rem;
}
.table-pager-info {
  color: var(--muted);
  font-size: 0.75rem;
}
.table-pager-btns {
  display: flex; gap: 0.25rem; align-items: center; flex-wrap: wrap;
}
.table-pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.875rem; height: 1.875rem;
  padding: 0 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  color: var(--text);
  font-size: 0.8125rem; font-weight: 500;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.table-pager-btn:hover:not(:disabled):not(.is-active) {
  background: var(--surface-hover, var(--surface-2));
}
.table-pager-btn.is-active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}
.table-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.table-pager-ellipsis {
  color: var(--muted);
  padding: 0 0.25rem;
  font-size: 0.875rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .card        { padding: 1.125rem; }

  /* Page headers: title + subtitle + action buttons stack; text wraps. */
  .page-header { margin-bottom: 1.25rem; padding-bottom: 0.875rem; gap: 0.5rem; }
  .page-header > div { min-width: 0; }
  .page-title    { font-size: 1.25rem !important; }
  .page-subtitle { font-size: 0.8125rem; }
  .page-header-actions { width: 100%; }

  /* Stat cards: tighter padding, allow long money values to wrap. */
  .stat-card { padding: 0.875rem; }
  .stat-value {
    font-size: 1.25rem;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .stat-label { font-size: 0.625rem; }
  .stat-sub   { font-size: 0.6875rem; }

  /* Tighter table density so more columns fit before scrolling. */
  .table th,
  .table td   { padding: 0.5rem 0.5rem; font-size: 0.8125rem; }
  .table th   { font-size: 0.625rem; }

  /* Pager wraps cleanly on narrow screens. */
  .table-pager { padding: 0.5rem; gap: 0.375rem; }
  .table-pager-info { width: 100%; text-align: center; }
  .table-pager-btn  { min-width: 1.625rem; height: 1.625rem; padding: 0 0.4rem; font-size: 0.75rem; }

  /* Modals fill the viewport width with safe padding. */
  .modal { width: calc(100vw - 1.5rem); max-width: calc(100vw - 1.5rem) !important; }

  /* Cycle / pair cards align their action buttons under the meta. */
  .cycle-card-header { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .cycle-amount      { font-size: 1.125rem; }
  .cycle-actions     { flex-wrap: wrap; }

  /* Banners reflow when they have icons + text + buttons. */
  .banner { flex-wrap: wrap; }

  /* Page-level body horizontal padding shrinks. */
  .content-inner { padding: 0; }

  /* Inline grid layouts (used liberally in EJS templates) collapse to one
     column on phones so two-up cards or 3-up form rows don't overflow. */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 400px) {
  .stats-grid  { grid-template-columns: 1fr; }
  .table-pager-btns { width: 100%; justify-content: center; }
}
