@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Enterprise palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, .09);
  --primary-ring: rgba(37, 99, 235, .18);
  --navy: #243b53;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #667085;
  --text-faint: #98a2b3;
  --border: #e7ebf3;
  --border-strong: #cbd5e1;
  --success-bg: #e6f1eb;
  --success-fg: #2e8b57;
  --warning-bg: #faf3e6;
  --warning-fg: #d99a2b;
  --danger-bg: #fae9e9;
  --danger-fg: #d64545;
  --neutral-bg: #f1f5f9;
  --neutral-fg: #475569;
  --info-bg: #eef2ff;
  --info-fg: #4338ca;

  /* Accent set -- used for stat-card icon badges / top accent bars */
  --accent-blue-bg: #eaf1ff;   --accent-blue-fg: #2563eb;
  --accent-green-bg: #e6f7ee;  --accent-green-fg: #16a34a;
  --accent-purple-bg: #f2ecff; --accent-purple-fg: #7c3aed;
  --accent-orange-bg: #fef3e6; --accent-orange-fg: #d97706;
  --accent-red-bg: #fdeaea;    --accent-red-fg: #dc2626;
  --accent-slate-bg: #eef1f6;  --accent-slate-fg: #475569;

  /* Sidebar palette -- light theme, blue accent on the active item */
  --sidebar-bg: #ffffff;
  --sidebar-active: var(--primary-soft);
  --sidebar-active-text: var(--primary);
  --sidebar-text: #5b6778;
  --sidebar-text-strong: #0f172a;
  --sidebar-text-muted: #94a3b8;
  --sidebar-hover-bg: #f2f5fa;
  --sidebar-border: #eef1f6;

  /* Table-row / hover tint */
  --row-hover-bg: #f3f6fd;
  --table-head-bg: #f8fafc;

  /* Spacing scale */
  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 40px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
  --transition: 170ms ease;

  /* Shared field metrics -- every text input/select across the app lines up */
  --field-h: 40px;
  --field-pad-x: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Accessible, visible-only-for-keyboard focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Subtle, professional scrollbars (WebKit + Firefox) */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--border-strong); border-radius: 999px; border: 2px solid var(--surface); }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-faint); }

.app-shell { display: flex; align-items: stretch; min-height: 100vh; }

/* ------------------------------------------------------------ */
/* Sidebar */
/* ------------------------------------------------------------ */

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--sidebar-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: var(--sp-4) var(--sp-3);
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--sidebar-border);
}

.sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 0 6px var(--sp-4); margin-bottom: var(--sp-2); border-bottom: 1px solid var(--sidebar-border); }

.sidebar__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.sidebar__logo { max-height: 34px; max-width: 100%; display: block; }

.sidebar__title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; color: var(--sidebar-text-strong); }
.sidebar__subtitle { font-size: 11px; color: var(--sidebar-text-muted); margin-top: 1px; }

.sidebar__nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px var(--sp-2) 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background-color var(--transition), color var(--transition);
}

.sidebar__link:hover { background: var(--sidebar-hover-bg); color: var(--sidebar-text-strong); }

.sidebar__link--active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
  font-weight: 600;
}

.sidebar__icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; opacity: .75; flex-shrink: 0; }
.sidebar__link--active .sidebar__icon, .sidebar__link:hover .sidebar__icon { opacity: 1; }

.sidebar__section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--sidebar-text-muted);
  padding: var(--sp-3) 14px 6px;
}
.sidebar__section-label:first-child { padding-top: var(--sp-1); }

.sidebar__welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 2px var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--sidebar-border);
}
.sidebar__welcome-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.sidebar__welcome-avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-green-fg);
  border: 2px solid var(--sidebar-bg);
}
.sidebar__welcome-text { min-width: 0; }
.sidebar__welcome-hint { font-size: 10.5px; color: var(--sidebar-text-muted); line-height: 1.3; }
.sidebar__welcome-name { font-size: 13px; font-weight: 700; color: var(--sidebar-text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__welcome-role { font-size: 10.5px; color: var(--sidebar-text-muted); }

.sidebar__foot {
  font-size: 11px;
  color: var(--sidebar-text-muted);
  padding: var(--sp-2) 12px;
  margin-top: var(--sp-1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--sidebar-border);
  line-height: 1.6;
}
.sidebar__foot strong { display: block; color: var(--sidebar-text-strong); font-size: 13px; margin-top: 2px; }

.sidebar__job {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: var(--sp-2) 2px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--sidebar-hover-bg);
  border: 1px solid var(--sidebar-border);
  font-size: 11px;
}

.sidebar__job[hidden] { display: none; }

.sidebar__job a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--sidebar-text);
  text-decoration: none;
}

.sidebar__job a:hover { color: var(--sidebar-text-strong); }

.sidebar__job-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5b93f;
  flex-shrink: 0;
  animation: sidebar-job-pulse 1.4s ease-in-out infinite;
}

.sidebar__job--done .sidebar__job-dot { background: var(--success-fg); animation: none; }
.sidebar__job--error .sidebar__job-dot { background: #ef5b52; animation: none; }

@keyframes sidebar-job-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.sidebar__job #sidebar-job-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar__job button {
  border: none;
  background: none;
  color: var(--sidebar-text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
}

.sidebar__job button:hover { color: var(--sidebar-text-strong); }

/* ------------------------------------------------------------ */
/* Main content */
/* ------------------------------------------------------------ */

.main-area { flex: 1; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 60px;
  padding: 0 var(--sp-5);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__spacer { flex: 1; }
.topbar__signout-form { margin: 0; }
.topbar__signout { height: 34px; padding: 0 var(--sp-2); }

.page-head { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.page-head h1 { margin: 0 0 5px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
.page-head p { margin: 0; color: var(--text-muted); font-size: 13px; }

.page { max-width: 1440px; margin: 0 auto; padding: var(--sp-4) var(--sp-5) 64px; }

/* ------------------------------------------------------------ */
/* KPI / stat cards */
/* ------------------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  box-shadow: var(--shadow);
  font-family: inherit;
  text-align: left;
  width: 100%;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue-fg);
}

.stat-card--green::before { background: var(--accent-green-fg); }
.stat-card--orange::before { background: var(--accent-orange-fg); }
.stat-card--red::before { background: var(--accent-red-fg); }
.stat-card--slate::before { background: var(--accent-slate-fg); }
.stat-card--purple::before { background: var(--accent-purple-fg); }

.stat-card--static { cursor: default; }
.stat-card:not(.stat-card--static):hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card:not(.stat-card--static):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.stat-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-2);
  background: var(--accent-blue-bg);
  color: var(--accent-blue-fg);
}
.stat-card--green .stat-card__icon { background: var(--accent-green-bg); color: var(--accent-green-fg); }
.stat-card--orange .stat-card__icon { background: var(--accent-orange-bg); color: var(--accent-orange-fg); }
.stat-card--red .stat-card__icon { background: var(--accent-red-bg); color: var(--accent-red-fg); }
.stat-card--slate .stat-card__icon { background: var(--accent-slate-bg); color: var(--accent-slate-fg); }
.stat-card--purple .stat-card__icon { background: var(--accent-purple-bg); color: var(--accent-purple-fg); }

.stat-card__value { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-card__label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; letter-spacing: .01em; }

/* ------------------------------------------------------------ */
/* Toolbar */
/* ------------------------------------------------------------ */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.toolbar__spacer { flex: 1; }

.search-field {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.search-field__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: var(--field-h);
  padding: 0 var(--field-pad-x) 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder { color: var(--text-faint); }
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

.btn {
  border: none;
  border-radius: var(--radius-sm);
  height: var(--field-h);
  padding: 0 var(--sp-3);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn--outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn--outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn--primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(42, 64, 158, .25);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 10px rgba(42, 64, 158, .28); }

.row-count { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--sp-2); }

.filter-select {
  height: var(--field-h);
  padding: 0 var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.filter-select:hover { border-color: var(--border-strong); }

.sort-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.sort-link:hover { color: var(--primary); }
.sort-link__arrow { font-size: 9px; opacity: .55; }
.sort-link--active .sort-link__arrow { opacity: 1; color: var(--primary); }

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

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-4) 0; }
.pagination a, .pagination span { font-size: 13px; padding: 7px 13px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); transition: background-color var(--transition); }
.pagination a:hover { background: var(--neutral-bg); }
.pagination .pagination__current { background: var(--primary); color: white; font-weight: 600; }
.pagination .pagination__disabled { color: var(--text-faint); }

.filter-dropdown { position: relative; }

.filter-count {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 6px;
  margin-left: 2px;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  min-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-1);
  z-index: 20;
}

.filter-option {
  display: block;
  padding: 10px var(--sp-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 120ms ease;
}

.filter-option input { display: none; }

.filter-option:hover { background: var(--neutral-bg); }
.filter-option:has(input:checked) { background: var(--primary); color: #fff; font-weight: 600; }

.filter-clear {
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.filter-clear:hover { color: var(--primary-dark); }

/* ------------------------------------------------------------ */
/* Table */
/* ------------------------------------------------------------ */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow);
}

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.table thead th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--table-head-bg);
  padding: 11px var(--sp-3);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.table tbody td {
  padding: 11px var(--sp-3);
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
  color: var(--text);
}

.table tbody tr { transition: background-color 120ms ease; }
.table tbody tr:hover { background: var(--row-hover-bg); }
.table tbody tr[hidden] { display: none; }
.table tbody tr:last-child td { border-bottom: none; }

.col-index, .cell-index { width: 48px; color: var(--text-faint); text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }

.cell-name { font-weight: 600; color: var(--text); overflow-wrap: break-word; }
.cell-country { color: var(--text); overflow-wrap: break-word; }
.cell-country--unresolved { color: var(--text-faint); font-style: italic; }

.frn-value { font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--text); overflow-wrap: anywhere; }

.customer-table, .dashboard-table { table-layout: fixed; }
.dashboard-table .cell-active, .dashboard-table .cell-frn, .dashboard-table .cell-rmd { white-space: nowrap; }
.filters-list { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }

.row-clickable { cursor: pointer; }
.row-clickable:hover { background: var(--row-hover-bg); }
.row-clickable:hover .cell-name { color: var(--primary); }

.back-link { display: inline-block; margin-bottom: var(--sp-2); font-size: 13px; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--primary); }

.messages { padding: var(--sp-4) var(--sp-5) 0; }
.message-banner { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; margin-bottom: var(--sp-2); border: 1px solid transparent; }
.message-banner--success { background: var(--success-bg); color: var(--success-fg); border-color: rgba(46, 139, 87, .15); }
.message-banner--error { background: var(--danger-bg); color: var(--danger-fg); border-color: rgba(214, 69, 69, .15); }
.message-banner--warning { background: var(--warning-bg); color: var(--warning-fg); border-color: rgba(217, 154, 43, .15); }

.detail-tabs {
  display: flex;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.detail-tabs__btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--sp-2) var(--sp-2);
  margin-bottom: -1px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.detail-tabs__btn:hover { color: var(--text); }
.detail-tabs__btn.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.detail-panel--wide { margin-bottom: var(--sp-3); }

.detail-panel__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-3); }
.detail-panel__header .detail-panel__title { margin-bottom: 0; }
.run-check-status { display: flex; align-items: center; gap: var(--sp-2); font-size: 12.5px; color: var(--text-muted); margin: -6px 0 var(--sp-2); overflow-wrap: anywhere; }
.run-check-status[hidden] { display: none; }
.run-check-status--error { color: var(--danger-fg); background: var(--danger-bg); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); margin-top: var(--sp-2); }
.run-check-status--running { background: var(--neutral-bg); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); margin-top: var(--sp-2); }

.run-check-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  border: 2px solid var(--neutral-fg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: run-check-spin 0.7s linear infinite;
}
@keyframes run-check-spin { to { transform: rotate(360deg); } }

.badge--live { background: var(--primary-soft); color: var(--primary); }

.search-run-row { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.search-run-row__input {
  flex: 1;
  height: var(--field-h);
  font-size: 13.5px;
  padding: 0 var(--field-pad-x);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-run-row__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-4);
  min-width: 0;
}

.detail-panel__title { margin: 0 0 var(--sp-3); font-size: 14px; font-weight: 600; color: var(--text); }
.detail-empty { color: var(--text-muted); font-size: 13.5px; margin: 0; }

.section-divider { border: none; border-top: 1px solid #eef1f6; margin: var(--sp-3) 0; }

.lookup-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 10px;
  color: var(--text-faint);
}
.lookup-empty__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--neutral-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--text-faint);
}
.lookup-empty svg { margin-bottom: 10px; opacity: .75; }
.lookup-empty__icon svg { margin-bottom: 0; opacity: 1; }
.lookup-empty__title { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.lookup-empty__hint { margin: 0; font-size: 12.5px; color: var(--text-faint); }

.detail-fields { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.detail-fields > div { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 13.5px; border-bottom: 1px solid #eef1f6; padding-bottom: var(--sp-2); }
.detail-fields > div:last-child { border-bottom: none; padding-bottom: 0; }
.detail-fields dt { color: var(--text-muted); }
.detail-fields dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; }
.detail-fields a { color: var(--primary); text-decoration: none; }
.detail-fields a:hover { text-decoration: underline; }

.detail-fields--plain > div { border-bottom: none; padding-bottom: 0; }

.detail-fields.detail-fields--grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
.detail-fields.detail-fields--grid > div {
  flex-direction: column; align-items: flex-start; gap: 4px;
  border-bottom: none; padding-bottom: 0;
}
.detail-fields.detail-fields--grid dt { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.detail-fields.detail-fields--grid dd { text-align: left; font-weight: 600; }
@media (max-width: 560px) { .detail-fields.detail-fields--grid { grid-template-columns: 1fr; } }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.stat-tile { background: var(--neutral-bg); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.stat-tile__label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 4px; }
.stat-tile__value { display: block; font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

.stat-tile--icon { display: flex; align-items: flex-start; gap: 10px; padding: 12px; }
.stat-tile__icon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.stat-tile__icon svg { width: 16px; height: 16px; }
.stat-tile--icon .stat-tile__body { display: block; min-width: 0; }
.stat-tile--icon .stat-tile__label { margin-bottom: 2px; }
.stat-tile--icon .stat-tile__value { font-size: 13.5px; }

.detail-panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid #eef1f6;
  font-size: 12.5px;
  color: var(--text-muted);
}
.detail-panel__footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.detail-panel__footer a:hover { text-decoration: underline; }

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

.documents-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-4);
}

.upload-form { display: flex; align-items: center; gap: var(--sp-2); }
.upload-form input[type="file"] { font-size: 12.5px; max-width: 180px; }

.remove-form { display: inline; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
}
.link-btn:hover { text-decoration: underline; }
.link-btn--danger { color: var(--danger-fg); }

.btn--small { height: 30px; padding: 0 var(--sp-2); font-size: 12.5px; }

.kyc-panel { margin-top: var(--sp-3); }
.kyc-panel__header-right { display: flex; align-items: center; gap: var(--sp-3); }
.kyc-panel .detail-empty { margin-bottom: var(--sp-3); }
.kyc-panel .table { margin-bottom: var(--sp-4); }
.kyc-panel__subtitle { margin: 0 0 var(--sp-3); font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.add-kyc-toggle { position: relative; }
.add-kyc-toggle summary {
  list-style: none;
  display: inline-flex;
}
.add-kyc-toggle summary::-webkit-details-marker { display: none; }
.add-kyc-toggle[open] summary { border-color: var(--primary); color: var(--primary); }

.kyc-add-form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: var(--sp-3);
  min-width: 260px;
}
.kyc-add-form input[type="text"],
.kyc-add-form input[type="file"] {
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.candidate-picker {
  background: var(--neutral-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
}
.candidate-picker .detail-empty { margin-bottom: var(--sp-2); }
.candidate-picker__form { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: flex-end; }
.candidate-picker__label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; }
.candidate-picker__label span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }

/* ============================================================
   GitHub reference translation (aiautomation1205/latika-compliance,
   FccCustomerCheck.jsx / RmdCustomerCheck.jsx) -- scoped to its own
   "gh-" namespace so it never touches the stat-tiles/detail-fields
   classes still used elsewhere (standalone tool pages, IPR card).
   ============================================================ */
.gh-card__head { margin-bottom: var(--sp-3); }
.gh-card__subtitle { font-size: 12px; color: var(--text-muted); margin: 3px 0 0; }

.gh-search-context { font-size: 12px; color: var(--text-muted); margin: 0 0 var(--sp-2); }
.gh-search-context strong { color: var(--text); font-weight: 700; }

.gh-search-row { display: flex; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-2); }
.gh-search-row__input {
  flex: 1;
  height: var(--field-h);
  padding: 0 var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.gh-error-banner { background: var(--danger-bg); color: var(--danger-fg); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm); font-size: 13px; margin-bottom: var(--sp-3); }
.gh-empty-note { color: var(--text-muted); font-size: 13px; margin: 0 0 var(--sp-3); }

.gh-select-row { display: flex; gap: var(--sp-3); align-items: flex-end; margin-bottom: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.gh-select-row__form { display: flex; gap: var(--sp-3); align-items: flex-end; flex-wrap: wrap; width: 100%; }
.gh-select-row .gh-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; }
.gh-select-row .gh-field span { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.gh-select-row select { padding: 0 var(--sp-2); height: var(--field-h); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; min-width: 260px; width: 100%; }

.gh-status-row { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.gh-status-row .gh-error-text { font-size: 12px; color: var(--danger-fg); }

.gh-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.gh-field-grid .gh-field { display: flex; flex-direction: column; gap: 3px; }
.gh-field-grid .gh-field label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.gh-field-grid .gh-field strong { font-size: 13px; font-weight: 600; word-break: break-word; }
@media (max-width: 560px) { .gh-field-grid { grid-template-columns: 1fr; } }

.gh-record-link { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; margin-top: 2px; }
.gh-record-link:hover { text-decoration: underline; }

.gh-result-name { font-size: 14px; font-weight: 700; color: var(--text); }

/* .btn isn't display:flex by default, so an icon glyph placed inline before
   a button's text label (search/refresh icons on the FCC Compliance / RMD
   Database pages) needs its own gap -- scoped to .rmd-icon so no other
   button anywhere else picks this up. */
.btn .rmd-icon { vertical-align: -2px; margin-right: 6px; }

.gh-attachment { margin-top: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); }
.gh-attachment__label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }

.gh-screenshot-evidence { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.gh-screenshot-evidence .screenshot-capture-row { margin: 0; }
.gh-screenshot-history { margin-top: var(--sp-2); width: 100%; }
.gh-screenshot-history__row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: 6px 0; border-top: 1px solid var(--border); font-size: 13px; }
.gh-screenshot-history__when { color: var(--text-muted); min-width: 190px; }
.gh-screenshot-diff { margin: 0 0 var(--sp-2); padding-left: 18px; font-size: 12.5px; color: var(--text-muted); }

.candidate-picker__form select {
  flex: 1;
  min-width: 240px;
  height: var(--field-h);
  font-size: 13.5px;
  padding: 0 var(--field-pad-x);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.doc-list { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid #eef1f6; }
.doc-row:last-child { border-bottom: none; }
.doc-row__icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.doc-row__icon svg { width: 16px; height: 16px; }
.doc-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-row__title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.doc-row__hint { font-size: 12px; color: var(--text-muted); }
.doc-row__actions { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-3); }
.doc-row__actions form { display: contents; }
@media (max-width: 620px) {
  .doc-row { flex-wrap: wrap; }
  .doc-row__actions { flex-basis: 100%; justify-content: flex-end; }
}

.icon-link {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--primary);
  text-decoration: none; cursor: pointer; background: none; border: none; padding: 0;
}
.icon-link:hover { text-decoration: underline; }
.icon-link svg { width: 13px; height: 13px; flex: 0 0 auto; }
.icon-link--danger { color: var(--danger-fg); }
.icon-link input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.kyc-progress { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.kyc-progress__bar { width: 100px; height: 6px; border-radius: 3px; background: var(--neutral-bg); overflow: hidden; }
.kyc-progress__fill { height: 100%; background: var(--primary); border-radius: 3px; }

.identifiers-form { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; }
.identifiers-form label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.identifiers-form input[type="text"] {
  height: var(--field-h); font-size: 13.5px; padding: 0 var(--field-pad-x);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}

.kyc-numbers-form { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; }
.kyc-numbers-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-muted); }
.kyc-numbers-form input[type="text"] {
  height: var(--field-h);
  font-size: 13.5px;
  padding: 0 var(--field-pad-x);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 180px;
}

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

.ticket-form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.ticket-form__field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.ticket-form__field--wide { grid-column: 1 / -1; }
.ticket-form select,
.ticket-form textarea {
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ticket-form select { height: var(--field-h); }
.ticket-form select:focus,
.ticket-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.ticket-form__actions { grid-column: 1 / -1; display: flex; gap: var(--sp-2); margin-top: var(--sp-1); }

.table-empty {
  padding: 48px var(--sp-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.table-empty svg { color: var(--text-faint); margin-bottom: var(--sp-2); }
.table-empty p { margin: 0; }

/* ------------------------------------------------------------ */
/* Status badges */
/* ------------------------------------------------------------ */

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
  letter-spacing: .01em;
}

.badge--good { background: var(--success-bg); color: var(--success-fg); }
.badge--bad { background: var(--danger-bg); color: var(--danger-fg); }
.badge--warn { background: var(--warning-bg); color: var(--warning-fg); }
.badge--neutral { background: var(--neutral-bg); color: var(--neutral-fg); }
.badge--info { background: var(--info-bg); color: var(--info-fg); }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .page, .page-head { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  .search-field { width: 100%; }
}

/* ============================================================
   Modal overlay (Customers tab: Add Customer / Import Customers)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--sp-3);
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.modal__header h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.modal__subtitle { margin: 3px 0 0; font-size: 12.5px; color: var(--text-muted); }
.modal__close {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition), color var(--transition);
}
.modal__close:hover { color: var(--text); background: var(--neutral-bg); }
.modal__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.modal__body .gh-field { display: flex; flex-direction: column; gap: 8px; }
.modal__body .gh-field span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.modal__required { color: var(--danger-fg); }
.modal__input {
  height: 46px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.modal__input::placeholder { color: var(--text-faint); }
.modal__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.modal__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-1); }
#import-file-input { font-size: 13.5px; }

/* ============================================================
   Customer Profile -- scoped overrides only (never touches the
   shared .detail-panel/.gh-field-grid/.badge/.detail-tabs rules
   used by other pages such as the Customers list, /fcc/, /rmd/,
   or the Dashboard). Everything below is prefixed with
   .customer-profile, the wrapper added around customer_detail.html's
   own header+main.
   ============================================================ */

.customer-profile .page-head h1 { font-size: 24px; font-weight: 700; color: var(--text); }

.customer-profile .detail-panel {
  padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-4);
  margin-bottom: var(--sp-3);
}
.customer-profile .detail-panel__title { font-size: 16px; font-weight: 700; color: #1e293b; }

/* A card's last direct child (a field grid, empty note, status row, etc.)
   already sits inside the card's own bottom padding -- without this, its
   own trailing margin stacks on top of that padding and leaves a
   noticeably larger gap than any other side of the card. */
.customer-profile .detail-panel > *:last-child { margin-bottom: 0; }

/* Label-above-value everywhere in Overview, instead of the plain
   .detail-fields' side-by-side row -- matches the field-block layout
   used in the FCC/RMD/IPR tabs' .gh-field-grid so the whole profile
   reads consistently, and keeps a label from ever running straight
   into its value. */
.customer-profile .detail-fields > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.customer-profile .detail-fields dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.customer-profile .detail-fields dd {
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.5;
}

.customer-profile .gh-field-grid { gap: 14px 28px; }
.customer-profile .gh-field-grid .gh-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.customer-profile .gh-field-grid .gh-field strong { font-size: 14px; font-weight: 500; color: #1e293b; line-height: 1.5; }

/* Soft pill badges on this page only -- other pages keep the existing
   rounded-rectangle .badge look. */
.customer-profile .badge {
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.customer-profile .detail-tabs__btn { padding: 0 var(--sp-3) var(--sp-2); font-weight: 500; }
.customer-profile .detail-tabs__btn.is-active { font-weight: 600; }

.cp-risk-panel .detail-panel__header { margin-bottom: var(--sp-2); }
.cp-risk-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cp-risk-badge--low { background: #e6f4ea; color: #137333; }
.cp-risk-badge--medium { background: #fef3c7; color: #b45309; }
.cp-risk-badge--high { background: var(--danger-bg); color: var(--danger-fg); }
.cp-risk-factors { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #1e293b; }
.cp-risk-factors li { line-height: 1.5; }

/* The status strip now lives in the page header (see .cp-page-head), so it
   shows above the tabs on every tab, not just Overview. */
.cp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cp-page-head__main { min-width: 0; }

.cp-status-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
  flex: 0 0 auto;
}
.cp-status-strip__actions { display: flex; justify-content: flex-end; gap: var(--sp-3); }
.cp-status-strip__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2); }
.cp-download-btn {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}
.cp-download-btn:hover { color: var(--primary-dark); }

@media (max-width: 720px) {
  .cp-page-head { flex-direction: column; }
  .cp-status-strip, .cp-status-strip__badges { align-items: flex-start; justify-content: flex-start; }
}

.cp-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-2);
}
.cp-snapshot-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-2) 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-snapshot-tile__label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.cp-snapshot-tile .badge { align-self: flex-start; }

@media (max-width: 900px) {
  .cp-snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cp-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Traffic tab -- plain inline status text (no boxed background,
   unlike the shared .run-check-status--error banner used elsewhere)
   and a simple numbered country list.
   ============================================================ */
.rw-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 var(--sp-3);
}
.rw-status[hidden] { display: none; }
.rw-status--error { color: var(--danger-fg); }

.rw-section {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.rw-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin: 0 0 var(--sp-3);
}

.rw-country-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-4);
}
.rw-country-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.rw-country-list__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
}
.rw-country-list__name { font-weight: 600; }

@media (max-width: 560px) {
  .rw-country-list { grid-template-columns: 1fr; }
}
