/* JKD's Automated Brochure Studio — shared stylesheet
   Vanilla CSS, no frameworks, no external fonts.
   Palette + type follow the JKD deck design system
   (JKD Weekly Training/Design_System.md): ink 231F20, navy 005686,
   cyan 00AEEF, grey card F2F2F2, pale card E4F4FC; Cambria heads, Calibri body. */

:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #fafafa;
  --border: #e2e2e2;
  --ink: #231f20;
  --text: #231f20;
  --text-body: #333333;
  --text-muted: #6e6e6e;
  --text-faint: #9b9b9b;

  --accent: #005686;
  --accent-dark: #00436a;
  --accent-light: #e4f4fc;
  --accent-contrast: #ffffff;
  --cyan: #00aeef;

  --danger: #b3261e;
  --danger-bg: #fdecea;
  --danger-border: #f3c6c2;

  --warning: #8a5a00;
  --warning-bg: #fdf1da;
  --warning-border: #f0d9a8;

  --success: #1f5c34;
  --success-bg: #e6f4ea;
  --success-border: #bfe3cb;

  --grey: #6e6e6e;
  --grey-bg: #f2f2f2;
  --grey-border: #dedede;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(20, 20, 20, 0.04), 0 10px 30px -12px rgba(20, 20, 20, 0.16);
  --shadow-card-hover: 0 2px 4px rgba(20, 20, 20, 0.06), 0 16px 40px -14px rgba(20, 20, 20, 0.20);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;

  --font: "Calibri", "Carlito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Cambria", "Caladea", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

/* ---------- Layout shells ---------- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.centered-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-narrow {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Brand lockup: district logo leads the wordmark, top-left.
   Deck proportion: logo ≈12% of canvas width → ~110px wide here. */
.wordmark-logo {
  height: 36px;
  width: auto;
  display: block;
}

.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.user-name {
  color: var(--text-muted);
  font-size: 14px;
}

.main {
  flex: 1;
  padding: var(--space-4) 0 var(--space-6);
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.wordmark-lg {
  font-size: 23px;
}

.login-logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-1);
}

/* The PropNex logo brands the auth card; the doc glyph is redundant there. */
.login-header .wordmark-icon {
  display: none;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.card-tight {
  padding: var(--space-3);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-primary:disabled {
  background: var(--grey-border);
  color: var(--text-faint);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  text-decoration: none;
}

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

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15.5px;
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.field label,
.field-label {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

.field-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.input,
.textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  width: 100%;
}

.textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}

.required-mark {
  color: var(--danger);
  margin-left: 2px;
}

/* ---------- Alerts ---------- */

.alert {
  display: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: var(--space-3);
  border: 1px solid transparent;
}

.alert.is-visible {
  display: block;
}

.alert-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

/* ---------- Login page ---------- */

.login-card {
  width: 100%;
  max-width: 380px;
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.login-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: -4px;
}

.login-form {
  text-align: left;
}

/* ---------- Dashboard ---------- */

.greeting {
  margin-bottom: var(--space-4);
}

.greeting h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.greeting p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* The primary CTA follows the deck's facilitation band: ink ground,
   white Cambria headline, cyan sub-line. */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--ink);
  color: var(--accent-contrast);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-4);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.cta-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.cta-card-text h2 {
  font-size: 20px;
  color: var(--accent-contrast);
  margin-bottom: 6px;
}

.cta-card-text p {
  color: var(--cyan);
  font-size: 14px;
  max-width: 46ch;
}

.cta-card-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.18);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.section-heading h2 {
  font-size: 16px;
}

.section-heading a {
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- Job list ---------- */

.job-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.job-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.job-item-main {
  min-width: 0;
}

.job-item-title {
  font-weight: 650;
  font-size: 15px;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-item-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.job-item-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.empty-state-icon {
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}

.empty-state p:first-of-type {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 14px;
}

/* ---------- Status pill ---------- */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill.status-queued {
  background: var(--grey-bg);
  color: var(--grey);
  border-color: var(--grey-border);
}

.status-pill.status-generating {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.status-pill.status-ready {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.status-pill.status-failed {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.status-pill.status-generating .dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Create page ---------- */

.form-section {
  margin-bottom: var(--space-4);
}

/* Eyebrow label, per the deck: small caps, letterspaced, navy on light. */
.form-section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

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

.slot {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: var(--surface);
}

.slot-full {
  grid-column: 1 / -1;
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.slot-label {
  font-size: 14px;
  font-weight: 650;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-required {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-optional {
  background: var(--grey-bg);
  color: var(--grey);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover {
  border-color: var(--accent);
}

.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.dropzone.has-file {
  cursor: default;
}

.dropzone-icon {
  color: var(--text-faint);
  margin-bottom: 6px;
}

.dropzone.is-dragover .dropzone-icon,
.dropzone.has-file .dropzone-icon {
  color: var(--accent);
}

.dropzone-text {
  font-size: 13.5px;
  color: var(--text-muted);
}

.dropzone-text strong {
  color: var(--accent);
  font-weight: 650;
}

.dropzone-hint {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 3px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid #bfe4f7;
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  max-width: 100%;
}

.chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.chip-remove {
  border: none;
  background: rgba(0, 67, 106, 0.12);
  color: var(--accent-dark);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.chip-remove:hover {
  background: rgba(0, 67, 106, 0.24);
}

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  border: none;
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.thumb-remove:hover {
  background: rgba(20, 20, 20, 0.8);
}

.thumb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
  background: var(--surface-2);
}

/* Viewing notes tabs */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 10px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.tab-btn.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.08);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

/* Test-run checkbox row */

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
}

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

.checkbox-row-text label {
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  display: block;
  margin-bottom: 2px;
}

.checkbox-row-text p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Progress bar */

.progress-wrap {
  display: none;
  margin-top: var(--space-2);
}

.progress-wrap.is-visible {
  display: block;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  background: var(--grey-bg);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* ---------- Job status page ---------- */

.job-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.job-header h1 {
  font-size: 22px;
}

.job-header p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}

.status-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

.status-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.status-hero-icon.status-queued { background: var(--grey-bg); color: var(--grey); }
.status-hero-icon.status-generating { background: var(--warning-bg); color: var(--warning); }
.status-hero-icon.status-ready { background: var(--success-bg); color: var(--success); }
.status-hero-icon.status-failed { background: var(--danger-bg); color: var(--danger); }

.status-hero-icon.status-generating {
  animation: pulse-ring 1.6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 90, 0, 0.18); }
  50% { box-shadow: 0 0 0 12px rgba(138, 90, 0, 0); }
}

.status-hero h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.status-hero p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 42ch;
}

.outputs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-2);
}

.output-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.output-item-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-item-size {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.error-box {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-top: var(--space-3);
}

.log-details {
  margin-top: var(--space-2);
}

.log-details summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
}

.log-pre {
  background: var(--ink);
  color: #cfeafb;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

.job-footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Misc ---------- */

.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-0 { margin-bottom: 0; }

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--grey-bg) 25%, #fafafa 37%, var(--grey-bg) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (max-width: 520px) {
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-item-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---------- Auth switch link (login/signup cross-links) ---------- */

.auth-switch-link {
  text-align: center;
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--text-muted);
}

/* Small screens: the logo outranks the name — shrink the text first,
   then drop it entirely and leave the brand mark standing. */
@media (max-width: 560px) {
  .topbar .wordmark {
    font-size: 15px;
  }

  .wordmark-logo {
    height: 28px;
  }
}

@media (max-width: 420px) {
  .topbar .wordmark span {
    display: none;
  }

  .wordmark-logo {
    height: 32px;
  }
}

/* ---------- Alerts: warning/info variant ---------- */

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

/* ---------- Signup success state ---------- */

.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signup-success h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.signup-success p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.signup-success .btn {
  margin-top: var(--space-2);
}

/* ---------- Dashboard CTA row (primary + secondary card) ---------- */

.cta-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  margin-bottom: var(--space-4);
}

.cta-row .cta-card {
  margin-bottom: 0;
  flex: 1 1 0;
  min-width: 0;
}

.cta-card-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.cta-card-secondary .cta-card-text h2 {
  color: var(--text);
}

.cta-card-secondary .cta-card-text p {
  color: var(--text-muted);
}

.cta-card-secondary .cta-card-arrow {
  background: var(--accent-light);
  color: var(--accent);
}

@media (max-width: 720px) {
  .cta-row {
    flex-direction: column;
  }
}

/* ---------- Admin / Team page ---------- */

.status-pill.status-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

.status-pill.status-approved {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.status-pill.status-rejected {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

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

.btn-ghost.btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn-ghost:disabled,
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.user-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.user-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.user-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.user-card-name {
  font-weight: 650;
  font-size: 15.5px;
}

.user-card-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cea-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}

.cea-compare-col {
  min-width: 0;
}

.cea-compare-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.cea-compare-value {
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.cea-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.cea-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cea-meta-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.cea-meta-value {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .cea-compare,
  .cea-meta-grid {
    grid-template-columns: 1fr;
  }
}

.cea-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  border: 1px solid transparent;
}

.cea-verify-badge.is-verified {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.cea-verify-badge.is-unverified {
  background: var(--grey-bg);
  color: var(--grey);
  border-color: var(--grey-border);
}

.user-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.user-card-error {
  margin-bottom: 0;
}

.collapsible-section {
  margin-bottom: var(--space-3);
}

.collapsible-section summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 650;
  padding: 10px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapsible-section summary::-webkit-details-marker {
  display: none;
}

.collapsible-section summary::before {
  content: "▸";
  color: var(--text-faint);
  font-size: 12px;
  transition: transform 0.15s ease;
  display: inline-block;
}

.collapsible-section[open] summary::before {
  transform: rotate(90deg);
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.user-row-main {
  min-width: 0;
}

.user-row-name {
  font-weight: 650;
  font-size: 14.5px;
}

.user-row-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
