/* ─── Components ─────────────────────────────────────────────── */

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 var(--sp-4); height: 38px;
  border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background var(--t-normal), color var(--t-normal), border-color var(--t-normal);
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn--primary { background: var(--c-blue-600); color: #fff; border-color: var(--c-blue-600); }
.btn--primary:hover { background: var(--c-blue-700); border-color: var(--c-blue-700); }
.btn--ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn--ghost:hover { border-color: var(--c-blue-600); color: var(--c-blue-600); }
.btn--danger  { background: var(--c-red-600); color: #fff; border-color: var(--c-red-600); }
.btn--danger:hover { background: var(--c-red-700); }
.btn--sm   { height: 34px; padding: 0 14px; font-size: var(--fs-sm); }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Inputs ──────────────────────────────────────────────────── */
.form-control {
  width: 100%; height: 38px;
  padding: 0 var(--sp-3);
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color var(--t-normal), background var(--t-theme);
  outline: none;
}
.form-control:focus        { border-color: var(--border-focus); }
.form-control::placeholder { color: var(--text-muted); }
.form-control--error       { border-color: var(--c-red-500); }

textarea.form-control {
  height: auto; min-height: 72px;
  padding: var(--sp-2) var(--sp-3);
  resize: vertical; line-height: 1.55;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* ── Form layout ─────────────────────────────────────────────── */
.form-grid  { display: grid; gap: var(--sp-4); }
.form-row   { display: grid; gap: 4px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-primary); letter-spacing: 0.3px; }
.form-error { font-size: var(--fs-xs); color: var(--c-red-600); min-height: 16px; }

/* ── Search ──────────────────────────────────────────────────── */
.search-wrap  { position: relative; flex: 1; min-width: 200px; }
.search-icon  { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }
.search-input {
  width: 100%; height: 36px;
  padding: 0 var(--sp-3) 0 34px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-input);
  outline: none;
  transition: border-color var(--t-normal), background var(--t-theme);
}
.search-input:focus        { border-color: var(--border-focus); background: var(--bg-card); }
.search-input::placeholder { color: var(--text-muted); }

/* ── Stat card ───────────────────────────────────────────────── */
.stat-card {
  background: var(--stat-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: background var(--t-theme), border-color var(--t-theme);
}
.stat-card__label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: var(--sp-2); }
.stat-card__value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-card__sub   { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap         { overflow-x: auto; }
.contacts-table     { width: 100%; border-collapse: collapse; }
.contacts-table thead tr { background: var(--thead-bg); transition: background var(--t-theme); }

.contacts-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-card);
  user-select: none;
}
.th-check   { width: 36px; padding-left: 20px; }
.th-actions { width: 130px; text-align: right; }
.th-sort    { cursor: pointer; transition: color var(--t-fast); }
.th-sort:hover          { color: var(--text-primary); }
.th-sort.sort-asc  .sort-arrow::after { content: ' ↑'; }
.th-sort.sort-desc .sort-arrow::after { content: ' ↓'; }
.sort-arrow { opacity: 0.35; font-size: 10px; }

.contacts-table tbody tr {
  border-bottom: 1px solid var(--border-card);
  transition: background var(--t-fast);
  cursor: pointer;
}
.contacts-table tbody tr:hover      { background: var(--bg-row-hover); }
.contacts-table tbody tr:last-child { border-bottom: none; }

.contacts-table td {
  padding: 13px 20px;
  font-size: var(--fs-base);
  color: var(--text-secondary);
  vertical-align: middle;
}
.td-name  { font-weight: 600; color: var(--text-primary); }
.td-muted { color: var(--text-muted); font-size: var(--fs-sm); }
.td-link  { color: var(--c-blue-600); }
.td-link:hover { text-decoration: underline; }

.cell-stack { display: flex; flex-direction: column; gap: 1px; }
.cell-main  { font-size: var(--fs-base); color: var(--text-primary); font-weight: 500; }
.cell-sub   { font-size: var(--fs-xs); color: var(--text-muted); }

/* Row actions (visible on hover) */
.row-actions { display: flex; gap: var(--sp-1); justify-content: flex-end; opacity: 0; transition: opacity var(--t-normal); }
.contacts-table tbody tr:hover .row-actions { opacity: 1; }

.row-btn {
  height: 26px; padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer; border: 1.5px solid;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.row-btn--edit { background: var(--c-purple-50); color: var(--badge-purple-text); border-color: var(--c-purple-100); }
.row-btn--edit:hover { background: var(--c-purple-600); color: #fff; border-color: var(--c-purple-600); }
.row-btn--del  { background: var(--c-red-50); color: var(--c-red-700); border-color: var(--c-red-100); }
.row-btn--del:hover  { background: var(--c-red-600); color: #fff; border-color: var(--c-red-600); }

/* ── Type badges ─────────────────────────────────────────────── */
.type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.type-badge__dot { width: 6px; height: 6px; border-radius: var(--r-full); flex-shrink: 0; }

.badge--score-mentors   { background: var(--c-blue-50);   color: var(--badge-blue-text);   } .badge--score-mentors   .type-badge__dot { background: var(--c-blue-500);   }
.badge--score-clients   { background: var(--c-green-50);  color: var(--badge-green-text);  } .badge--score-clients   .type-badge__dot { background: var(--c-green-500);  }
.badge--qc-students     { background: var(--c-purple-50); color: var(--badge-purple-text); } .badge--qc-students     .type-badge__dot { background: var(--c-purple-500); }
.badge--qc-faculty      { background: var(--c-orange-50); color: var(--badge-orange-text); } .badge--qc-faculty      .type-badge__dot { background: var(--c-orange-500); }
.badge--nywib-members   { background: var(--c-amber-50);  color: var(--badge-amber-text);  } .badge--nywib-members   .type-badge__dot { background: var(--c-amber-500);  }
.badge--nywib-events    { background: var(--c-pink-50);   color: var(--badge-pink-text);   } .badge--nywib-events    .type-badge__dot { background: var(--c-pink-500);   }

/* ── Pagination ──────────────────────────────────────────────── */
.pag-info     { font-size: var(--fs-sm); color: var(--text-muted); }
.pag-btns     { display: flex; gap: 3px; }
.pag-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-default);
  background: var(--bg-card);
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--t-normal);
}
.pag-btn:hover:not(:disabled)  { border-color: var(--c-blue-600); color: var(--c-blue-600); }
.pag-btn--active                { background: var(--c-blue-600); border-color: var(--c-blue-600); color: #fff; }
.pag-btn:disabled               { opacity: 0.3; cursor: default; pointer-events: none; }
.pag-ellipsis                   { display: flex; align-items: center; padding: 0 3px; font-size: var(--fs-sm); color: var(--text-muted); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  padding: 56px var(--sp-6); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
.empty-state__icon { font-size: 32px; opacity: 0.2; }
.empty-state__text { font-size: var(--fs-md); color: var(--text-muted); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-5);
  backdrop-filter: blur(4px);
}

.modal-panel {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-card);
  width: 100%; max-width: 540px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: background var(--t-theme);
}

.modal__head { padding: var(--sp-6) var(--sp-6) 0; flex-shrink: 0; }
.modal__title { font-size: var(--fs-xl); font-weight: 700; color: var(--text-primary); }
.modal__sub   { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; }
.modal__body  { padding: var(--sp-5) var(--sp-6); overflow-y: auto; flex: 1; }
.modal__foot  {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-card);
  display: flex; gap: var(--sp-2); flex-shrink: 0;
}
.modal__foot .btn:first-child { flex: 1; }
.modal__foot .btn:last-child  { flex: 2; }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: var(--sp-5); right: var(--sp-5);
  z-index: 999;
  display: flex; flex-direction: column; gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  background: var(--bg-sidebar);
  color: #fff;
  padding: 11px 16px 11px 14px;
  border-radius: var(--r-lg);
  font-size: var(--fs-base); font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--sp-2);
  pointer-events: all;
  animation: toast-in 0.2s ease forwards;
}
@keyframes toast-in  { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to   { opacity: 0; transform: translateX(14px); } }
.toast--leaving { animation: toast-out 0.2s ease forwards; }
.toast__icon {
  width: 20px; height: 20px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.toast--success .toast__icon { background: var(--c-green-500); }
.toast--error   .toast__icon { background: var(--c-red-500); }
.toast--info    .toast__icon { background: var(--c-blue-500); }

/* ── Drop zone ───────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-5);
  text-align: center; cursor: pointer;
  background: var(--bg-muted);
  transition: border-color var(--t-normal), background var(--t-normal);
}
.drop-zone:hover, .drop-zone--over { border-color: var(--c-blue-600); background: var(--c-blue-50); }
.drop-zone__icon  { width: 36px; height: 36px; color: var(--text-muted); margin: 0 auto var(--sp-3); }
.drop-zone__title { font-size: var(--fs-base); font-weight: 500; color: var(--text-primary); }
.drop-zone__hint  { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }

/* ── Info box ────────────────────────────────────────────────── */
.info-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7;
  transition: background var(--t-theme);
}
.info-box strong { color: var(--text-primary); }
.type-chip {
  display: inline-block; background: var(--border-card);
  border-radius: var(--r-sm); padding: 1px 7px; margin: 2px;
  font-size: 11px; color: var(--text-secondary);
}

/* ── Detail rows ─────────────────────────────────────────────── */
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px var(--sp-3);
  background: var(--bg-muted); border-radius: var(--r-md);
  font-size: var(--fs-base); gap: var(--sp-4);
  transition: background var(--t-theme);
}
.detail-row__label { color: var(--text-muted); flex-shrink: 0; }
.detail-row__value { color: var(--text-primary); text-align: right; }
.notes-block {
  background: var(--bg-muted); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-base); color: var(--text-secondary);
  line-height: 1.7; white-space: pre-wrap; word-break: break-word;
  transition: background var(--t-theme);
}

/* ── Form sections ───────────────────────────────────────────── */
.form-section { }
.form-section__title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-card);
}
.form-section__grid  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
.form-section__stack { display: grid; gap: var(--sp-3); }

/* ── Status pill ─────────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.status-pill--active   { background: var(--c-green-50);  color: var(--badge-green-text); }
.status-pill--inactive { background: var(--c-gray-100, #f3f4f6); color: var(--text-muted); }

/* ── Detail section title ────────────────────────────────────── */
.detail-section-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-2);
}

/* ── Type selector (contact form) ────────────────────────────── */
.type-selector {
  display: grid;
  gap: var(--sp-3);
}

.type-group__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--sp-2);
}

.type-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-default);
  background: var(--bg-input);
  cursor: pointer;
  transition: all var(--t-normal);
  user-select: none;
}

.type-option:hover {
  border-color: var(--c-blue-500);
  background: var(--c-blue-50);
}

.type-option--selected {
  border-color: var(--c-blue-600) !important;
  background: var(--c-blue-50) !important;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.type-option__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.type-option__label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* ── User management modal ───────────────────────────────────── */
.um-section {
  margin-bottom: var(--sp-5);
}

.um-section__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border-card);
  margin-bottom: var(--sp-3);
}

.um-section__head--warning { color: var(--badge-amber-text); border-color: var(--c-amber-100); }
.um-section__head--success  { color: var(--badge-green-text); border-color: var(--c-green-100); }
.um-section__head--danger   { color: var(--c-red-700);        border-color: var(--c-red-100);   }

.um-list { display: grid; gap: var(--sp-2); }

.um-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  background: var(--bg-muted);
  border-radius: var(--r-lg);
  transition: opacity var(--t-normal);
}

.um-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-blue-500), var(--c-blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.um-row__info   { flex: 1; min-width: 0; }
.um-row__name   { font-size: var(--fs-base); font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.um-row__email  { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-row__date   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.um-row__actions{ display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.um-badge {
  font-size: 10px; font-weight: 700; padding: 1px 7px;
  border-radius: var(--r-full);
}
.um-badge--admin { background: var(--c-purple-50); color: var(--badge-purple-text); }
.um-badge--you   { background: var(--c-blue-50);   color: var(--badge-blue-text);   }

.um-btn {
  height: 28px; padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer; border: 1.5px solid;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.um-btn--approve {
  background: var(--c-green-50); color: var(--badge-green-text);
  border-color: var(--c-green-100);
}
.um-btn--approve:hover { background: var(--c-green-600); color: #fff; border-color: var(--c-green-600); }

.um-btn--reject {
  background: var(--c-amber-50); color: var(--badge-amber-text);
  border-color: var(--c-amber-100);
}
.um-btn--reject:hover { background: var(--c-amber-600); color: #fff; border-color: var(--c-amber-600); }

.um-btn--delete {
  background: var(--c-red-50); color: var(--c-red-700);
  border-color: var(--c-red-100);
}
.um-btn--delete:hover { background: var(--c-red-600); color: #fff; border-color: var(--c-red-600); }

.um-btn--ghost {
  background: var(--bg-card); color: var(--text-secondary);
  border-color: var(--border-default);
}
.um-btn--ghost:hover { border-color: var(--c-blue-600); color: var(--c-blue-600); }

/* ── Column mapping table (import step 2) ────────────────────── */
.mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.mapping-table thead th {
  padding: 7px 10px;
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--thead-bg);
  border-bottom: 1px solid var(--border-card);
}

.mapping-table tbody tr {
  border-bottom: 1px solid var(--border-card);
  transition: background var(--t-fast);
}

.mapping-table tbody tr:last-child { border-bottom: none; }
.mapping-table tbody tr:hover      { background: var(--bg-muted); }

.mapping-row--required .mapping-field {
  color: var(--badge-amber-text);
  font-weight: 600;
}

.mapping-field {
  padding: 7px 10px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  min-width: 120px;
}

.mapping-arrow {
  padding: 7px 6px;
  color: var(--text-muted);
  font-size: 16px;
}

.mapping-select {
  padding: 4px 10px;
  min-width: 180px;
}

.form-control--sm {
  height: 32px;
  font-size: var(--fs-xs);
  padding: 0 28px 0 8px;
}

.mapping-preview {
  padding: 7px 10px;
  max-width: 160px;
  overflow: hidden;
}

.mapping-preview__val {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  background: var(--bg-muted);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapping-preview__empty {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.mapping-req {
  color: var(--c-amber-500);
  font-weight: 700;
  margin-left: 2px;
}

/* ── Type management panel ───────────────────────────────────── */
.tm-org {
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.tm-org__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-card);
}

.tm-org__name {
  flex: 1;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}

.tm-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tm-dot--sm { width: 7px; height: 7px; }

.tm-types {
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-type {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.tm-type:hover { background: var(--bg-muted); }

.tm-type__label {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.tm-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.tm-org__head:hover .tm-actions,
.tm-type:hover .tm-actions { opacity: 1; }

.tm-btn {
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all var(--t-fast);
}

.tm-btn:hover { border-color: var(--c-blue-600); color: var(--c-blue-600); }

.tm-btn--red:hover { border-color: var(--c-red-500); color: var(--c-red-500); background: var(--c-red-50); }

.tm-add-type {
  margin-top: var(--sp-1);
  padding: 5px var(--sp-2);
  border: 1.5px dashed var(--border-default);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tm-add-type:hover {
  border-color: var(--c-blue-500);
  color: var(--c-blue-600);
  background: var(--c-blue-50);
}

.tm-form {
  padding: var(--sp-2);
}

.tm-form__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.tm-form__prefix {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.tm-empty {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  padding: var(--sp-4);
  text-align: center;
}

/* Colour swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.color-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), border-color var(--t-fast);
}

.color-swatch:hover { transform: scale(1.15); }
.color-swatch--active { border-color: var(--text-primary) !important; transform: scale(1.1); }
