/* ─────────────────────────────────────────────────────────────────────────────
   Cometa CRM — main.css
   Internal-tool aesthetic: clean, readable, workflow-first.
───────────────────────────────────────────────────────────────────────────── */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; }

/* ── Variables ─────────────────────────────────────── */
:root {
  --c-bg:           #f0f2f5;
  --c-surface:      #ffffff;
  --c-sidebar:      #16192a;
  --c-sidebar-hover:  rgba(255,255,255,0.07);
  --c-sidebar-active: rgba(255,255,255,0.12);
  --c-primary:      #3d56e0;
  --c-primary-dim:  #eef0fd;
  --c-primary-hover:#2f46cb;
  --c-success:      #16a34a;
  --c-success-dim:  #dcfce7;
  --c-warning:      #b45309;
  --c-warning-dim:  #fef3c7;
  --c-danger:       #dc2626;
  --c-danger-dim:   #fee2e2;
  --c-text:         #0f172a;
  --c-text-secondary: #334155;
  --c-muted:        #64748b;
  --c-border:       #e2e8f0;
  --c-divider:      #f1f5f9;
  --c-hover:        #f8fafc;
  --sidebar-w:      220px;
  --topbar-h:       52px;
  --radius-sm:      4px;
  --radius:         6px;
  --radius-lg:      8px;
  --shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 1px 3px rgba(0,0,0,.07), 0 4px 14px rgba(0,0,0,.04);
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Mono', monospace;
  --transition:     0.12s ease;
}

/* ── Base ──────────────────────────────────────────── */
html { height: 100%; }
body {
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--c-bg);
  color: var(--c-text);
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--c-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar__logo {
  padding: 0 1.125rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  gap: 0.5rem;
}

.sidebar__logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  display: inline-block;
  flex-shrink: 0;
}

.sidebar__section {
  padding: 1.125rem 0.75rem 0.25rem;
}

.sidebar__section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0 0.375rem;
  display: block;
  margin-bottom: 0.125rem;
}

.sidebar__nav {
  list-style: none;
  padding: 0.125rem 0 0.5rem;
}

.sidebar__nav li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.625rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.sidebar__nav li a .nav-icon {
  font-size: 0.9rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.65;
}

.sidebar__nav li a:hover {
  background: var(--c-sidebar-hover);
  color: rgba(255,255,255,0.88);
}

.sidebar__nav li a.active {
  background: var(--c-sidebar-active);
  color: #fff;
  font-weight: 500;
}

.sidebar__nav li a.active .nav-icon { opacity: 1; }

.sidebar__footer {
  margin-top: auto;
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar__user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.125rem 0.25rem 0.375rem;
}

.sidebar__user-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sidebar__user-role { flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   LAYOUT SHELL
════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── Topbar ────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--c-muted);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.topbar__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.topbar__user {
  font-size: 0.8rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar__user strong {
  color: var(--c-text-secondary);
  font-weight: 500;
}

/* ── Page body ─────────────────────────────────────── */
.page-body {
  padding: 1.375rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Page header ───────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

.page-header__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-header__subtitle {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: 0.25rem;
}

.page-header__subtitle a {
  color: var(--c-primary);
  text-decoration: none;
}

.page-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

/* ════════════════════════════════════════════════════
   FLASH MESSAGES
════════════════════════════════════════════════════ */
.flash-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem 0;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: flash-in 0.16s ease;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash--success { background: var(--c-success-dim); border-color: #86efac; color: #14532d; }
.flash--error   { background: var(--c-danger-dim);  border-color: #fca5a5; color: #7f1d1d; }
.flash--warning { background: var(--c-warning-dim); border-color: #fcd34d; color: #78350f; }
.flash--info    { background: var(--c-primary-dim); border-color: #a5b4fc; color: #1e1b4b; }

.flash__icon { flex-shrink: 0; font-size: 0.875rem; line-height: 1.5; }
.flash__body { flex: 1; }

.flash__close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.4;
  padding: 0 0.125rem;
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}
.flash__close:hover { opacity: 0.85; }

/* ════════════════════════════════════════════════════
   CARDS & SURFACES
════════════════════════════════════════════════════ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card__header {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
}

.card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-secondary);
  letter-spacing: -0.005em;
}

.card__body { padding: 1.125rem; }

/* ── Stats grid ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.125rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-card__label {
  font-size: 0.6875rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.stat-card__value {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--c-text);
}

.stat-card__delta {
  font-size: 0.725rem;
  color: var(--c-muted);
  margin-top: 0.125rem;
}

.stat-card__delta.up   { color: var(--c-success); }
.stat-card__delta.down { color: var(--c-danger); }

/* ════════════════════════════════════════════════════
   TABLES
════════════════════════════════════════════════════ */
.table-wrapper {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-border);
  gap: 0.625rem;
  background: var(--c-surface);
}

.table-toolbar__left,
.table-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

thead th {
  background: var(--c-divider);
  padding: 0.5rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

tbody td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--c-divider);
  vertical-align: middle;
  color: var(--c-text-secondary);
}

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

tbody tr:hover td {
  background: var(--c-hover);
  color: var(--c-text);
}

.td-muted { color: var(--c-muted); }

.td-actions {
  text-align: right;
  white-space: nowrap;
  padding-right: 0.875rem;
}

/* Primary link column */
td a.row-link, tbody td a.fw-500 {
  color: var(--c-text);
  font-weight: 500;
  text-decoration: none;
}
td a.row-link:hover, tbody td a.fw-500:hover {
  color: var(--c-primary);
  text-decoration: underline;
}

/* ── Score pill ─────────────────────────────────────── */
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.375rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.score-pill--high { background: #dcfce7; color: #14532d; }
.score-pill--mid  { background: #fef3c7; color: #78350f; }
.score-pill--low  { background: #fee2e2; color: #7f1d1d; }
.score-pill--none { background: var(--c-divider); color: var(--c-muted); }

/* ── Empty state ───────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 0.625rem;
  text-align: center;
}

.empty-state__icon {
  font-size: 1.5rem;
  opacity: 0.2;
  margin-bottom: 0.25rem;
}

.empty-state__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
}

.empty-state__body {
  font-size: 0.8rem;
  color: var(--c-muted);
  max-width: 26rem;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════
   BADGES & STATUS PILLS
════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.175rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.4;
}

.badge--dot::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Lead status */
.badge--new          { background: #e0e7ff; color: #3730a3; }
.badge--contacted    { background: #dbeafe; color: #1d4ed8; }
.badge--qualified    { background: #d1fae5; color: #065f46; }
.badge--proposal     { background: #fef3c7; color: #92400e; }
.badge--won          { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.badge--lost         { background: #fee2e2; color: #7f1d1d; }
.badge--disqualified { background: #f1f5f9; color: #64748b; }

/* Generic */
.badge--info         { background: #dbeafe; color: #1e3a5f; }

/* Campaign / import status */
.badge--draft        { background: #f1f5f9; color: #475569; }
.badge--active       { background: #d1fae5; color: #065f46; border: 1px solid #86efac; }
.badge--paused       { background: #fef3c7; color: #92400e; }
.badge--completed    { background: #e0e7ff; color: #3730a3; }
.badge--archived     { background: #f1f5f9; color: #94a3b8; }
.badge--pending      { background: #f1f5f9; color: #64748b; }
.badge--processing   { background: #dbeafe; color: #1d4ed8; }
.badge--done         { background: #d1fae5; color: #065f46; }
.badge--failed       { background: #fee2e2; color: #7f1d1d; }

/* User role */
.badge--admin        { background: #ede9fe; color: #4c1d95; }
.badge--manager      { background: #dbeafe; color: #1e3a5f; }
.badge--staff        { background: #f1f5f9; color: #475569; }

/* ════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  background: var(--c-primary);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.btn:hover {
  background: var(--c-primary-hover);
  box-shadow: 0 1px 3px rgba(61,86,224,.25);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--sm {
  padding: 0.275rem 0.625rem;
  font-size: 0.75rem;
}

.btn--primary { background: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-hover); }

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

.btn--danger { background: var(--c-danger); }
.btn--danger:hover { background: #b91c1c; box-shadow: 0 1px 3px rgba(220,38,38,.25); }

.btn--icon {
  padding: 0.375rem;
  aspect-ratio: 1;
}

/* ════════════════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════════════════ */
.form-control,
.input {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--c-text);
  background: var(--c-surface);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  font-family: var(--font);
  line-height: 1.5;
}

.form-control:focus,
.input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(61,86,224,0.1);
}

.form-control::placeholder,
.input::placeholder { color: var(--c-muted); opacity: 0.7; }

.input--sm {
  padding: 0.275rem 0.625rem;
  font-size: 0.75rem;
  width: auto;
}

select.form-control,
select.input { cursor: pointer; }

textarea.form-control,
textarea.input { line-height: 1.55; resize: vertical; }

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-secondary);
}

/* Validation states */
.input--error,
.form-control--error {
  border-color: var(--c-danger);
  background: #fff8f8;
}

.input--error:focus,
.form-control--error:focus {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.field-error {
  font-size: 0.75rem;
  color: var(--c-danger);
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.field-error::before { content: '↑'; font-size: 0.625rem; }

.field-hint {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* Form section divider inside cards */
.form-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 0.875rem;
}

/* ════════════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════════ */
.text-muted    { color: var(--c-muted); }
.text-sm       { font-size: 0.75rem; }
.text-xs       { font-size: 0.6875rem; }
.text-mono     { font-family: var(--font-mono); font-size: 0.8em; }
.fw-500        { font-weight: 500; }
.fw-600        { font-weight: 600; }
.fw-700        { font-weight: 700; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex-center   { display: flex; align-items: center; gap: 0.5rem; }
.gap-1         { gap: 0.25rem; }
.gap-2         { gap: 0.5rem; }
.mt-1          { margin-top: 0.25rem; }
.mt-2          { margin-top: 0.5rem; }

/* ════════════════════════════════════════════════════
   LOGIN PAGE  (standalone, no sidebar)
════════════════════════════════════════════════════ */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--c-bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}

.login-card__logo {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.login-card__subtitle {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-bottom: 1.875rem;
}

/* ════════════════════════════════════════════════════
   LEAD WORKSPACE  (3-column layout on detail page)
════════════════════════════════════════════════════ */
.lead-workspace {
  display: grid;
  grid-template-columns: 268px 1fr 252px;
  grid-template-areas: "left centre right";
  gap: 1rem;
  align-items: start;
}

.lead-workspace__left   { grid-area: left;   display: flex; flex-direction: column; gap: 1rem; }
.lead-workspace__centre { grid-area: centre; display: flex; flex-direction: column; gap: 1rem; }
.lead-workspace__right  { grid-area: right;  display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 1120px) {
  .lead-workspace {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "centre right"
      "left   left";
  }
}

@media (max-width: 720px) {
  .lead-workspace {
    grid-template-columns: 1fr;
    grid-template-areas: "right" "centre" "left";
  }
}

/* ── Compose (activity log form) ──────────────────── */
.activity-compose { overflow: hidden; }

.compose-tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-divider);
  gap: 0;
}

.compose-tab {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--c-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  font-family: var(--font);
}

.compose-tab:hover { color: var(--c-text); }
.compose-tab--active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  background: var(--c-surface);
}

/* ── Activity timeline ────────────────────────────── */
.activity-timeline { display: flex; flex-direction: column; }

.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--c-divider);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-icon {
  flex-shrink: 0;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  background: var(--c-primary-dim);
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  margin-top: 0.075rem;
}

.timeline-icon--call             { background: #dcfce7; color: #16a34a; border-color: #86efac; }
.timeline-icon--email            { background: #dbeafe; color: #2563eb; border-color: #93c5fd; }
.timeline-icon--meeting          { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.timeline-icon--status_change    { background: #f3e8ff; color: #7c3aed; border-color: #c4b5fd; }
.timeline-icon--follow_up_scheduled { background: #fce7f3; color: #be185d; border-color: #f9a8d4; }
.timeline-icon--note             { background: var(--c-primary-dim); color: var(--c-primary); }

.timeline-body  { flex: 1; min-width: 0; }

.timeline-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.timeline-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--c-text);
}

.timeline-meta {
  font-size: 0.775rem;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.timeline-content {
  font-size: 0.8125rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--c-text-secondary);
  background: var(--c-divider);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
}

/* ── Detail section rows ──────────────────────────── */
.detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-row__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}

.detail-row__value {
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
}

/* ════════════════════════════════════════════════════
   IMPORT TAB PANELS
════════════════════════════════════════════════════ */
.import-tab-panel { animation: fade-in 0.12s ease; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
