/* Smartworker admin — masters & workers */
.sw-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; flex-wrap:wrap; width:100%; max-width:100%; min-width:0; }
.sw-hero h1 { font-size:21px; font-weight:800; color:var(--text); display:flex; gap:10px; align-items:center; margin:0; }
.sw-hero h1 i { color:var(--accent2); }
.sw-hero p { font-size:13px; color:var(--text3); margin:6px 0 0; max-width:560px; line-height:1.45; }

.sw-bc { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:12px; color:var(--text3); margin-bottom:14px; }
.sw-bc a { color:var(--accent2); text-decoration:none; }
.sw-bc a:hover { text-decoration:underline; }

.sw-card { background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; margin-bottom:20px; max-width:100%; min-width:0; }
.sw-card-h { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.sw-card-h h2 { margin:0; font-size:15px; font-weight:800; color:var(--text); display:flex; gap:8px; align-items:center; }
.sw-share-hint { font-size:12px; color:var(--text3); font-weight:500; max-width:280px; text-align:right; line-height:1.35; }
@media (max-width:640px) {
  .sw-share-hint { text-align:left; max-width:none; width:100%; }
}

/* Smartworkers index — stats, insights, filters */
.sw-stats-section { margin-bottom:20px; }
.sw-stats-grid {
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:12px;
  margin-bottom:16px;
}
@media (max-width:1280px) {
  .sw-stats-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width:900px) {
  .sw-stats-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
.sw-stat-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid var(--border);
  background:linear-gradient(145deg, var(--surface) 0%, var(--bg3) 100%);
  box-shadow:0 2px 12px rgba(0,0,0,.12);
  transition:border-color .2s, transform .15s;
}
.sw-stat-card:hover { border-color:var(--border2); transform:translateY(-1px); }
.sw-stat-ico {
  width:40px; height:40px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-size:17px; flex-shrink:0;
}
.sw-stat-body { display:flex; flex-direction:column; gap:2px; min-width:0; }
.sw-stat-value { font-size:22px; font-weight:800; color:var(--text); line-height:1.1; letter-spacing:-.02em; }
.sw-stat-label { font-size:11px; font-weight:600; color:var(--text3); text-transform:uppercase; letter-spacing:.04em; line-height:1.25; }
.sw-stat-label-soft {
  text-transform:none;
  letter-spacing:.01em;
  font-weight:600;
}
.sw-stat-total .sw-stat-ico { background:rgba(253,104,2,.18); color:var(--accent2); }
.sw-stat-active .sw-stat-ico { background:rgba(0,214,143,.14); color:var(--green); }
.sw-stat-inactive .sw-stat-ico { background:rgba(255,77,109,.12); color:var(--red); }
.sw-stat-photos .sw-stat-ico { background:rgba(255,193,7,.12); color:#e6b422; }
.sw-stat-reviews .sw-stat-ico { background:rgba(255,184,0,.12); color:#ffb800; }
.sw-stat-geo .sw-stat-ico { background:rgba(56,189,248,.12); color:#38bdf8; }
.sw-stat-jobs .sw-stat-ico { background:rgba(167,139,250,.15); color:#a78bfa; }
.sw-stat-reg-today .sw-stat-ico { background:rgba(34,211,238,.14); color:#22d3ee; }
.sw-stat-reg-month .sw-stat-ico { background:rgba(52,211,153,.14); color:#34d399; }
.sw-stat-approved-today,
.sw-stat-approved-month {
  position:relative;
  overflow:hidden;
  border-color:rgba(0,214,143,.28);
}
.sw-stat-approved-today::before,
.sw-stat-approved-month::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg, #00d68f 0%, #34d399 100%);
  border-radius:3px 0 0 3px;
}
.sw-stat-approved-today:hover,
.sw-stat-approved-month:hover { border-color:rgba(0,214,143,.5); }
.sw-stat-approved-today .sw-stat-ico { background:rgba(0,214,143,.16); color:var(--green); }
.sw-stat-approved-month .sw-stat-ico { background:rgba(16,185,129,.16); color:#10b981; }
.sw-stat-sub-approved { color:var(--green); }
.sw-stat-sub-approved i { font-size:9px; }
.sw-stat-sub {
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:2px;
  font-size:10px;
  font-weight:600;
  color:var(--text3);
  line-height:1.2;
  text-transform:none;
  letter-spacing:0;
}

.sw-insight-row { margin-bottom:12px; }
.sw-insight-row:last-child { margin-bottom:0; }
.sw-insight-title {
  display:flex; align-items:center; gap:8px;
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  color:var(--text3); margin:0 0 8px;
}
.sw-chip-scroll {
  display:flex; flex-wrap:wrap; gap:8px;
  padding-bottom:2px;
}
.sw-insight-chip {
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px 6px 12px;
  border-radius:999px;
  font-size:12px; font-weight:600;
  text-decoration:none;
  color:var(--text2);
  background:var(--bg3);
  border:1px solid var(--border);
  transition:background .15s, border-color .15s, color .15s;
  max-width:100%;
}
.sw-insight-chip:hover {
  color:var(--text);
  border-color:var(--accent);
  background:rgba(253,104,2,.1);
}
.sw-insight-chip-dim:hover {
  border-color:rgba(56,189,248,.45);
  background:rgba(56,189,248,.08);
}
.sw-chip-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:min(200px, 72vw); }
.sw-chip-count {
  font-size:11px; font-weight:800;
  min-width:22px; text-align:center;
  padding:2px 7px; border-radius:999px;
  background:var(--surface); color:var(--accent2); border:1px solid var(--border);
}

.sw-filters-card { margin-bottom:20px; }
.sw-filters-grid {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
  margin-bottom:16px;
}
.sw-filters-actions {
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  padding-top:4px;
  border-top:1px solid var(--border);
}
.sw-dir-head { align-items:flex-start; }
.sw-dir-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.sw-dir-count {
  font-size:12px; color:var(--text3);
  padding:6px 12px;
  border-radius:999px;
  background:var(--bg3);
  border:1px solid var(--border);
}
.sw-dir-count strong { color:var(--text); font-weight:700; }
.sw-dir-count-filtered {
  border-color:rgba(253,104,2,.4);
  background:rgba(253,104,2,.1);
  color:var(--text2);
}
@media (max-width:800px) {
  .sw-filters-grid { grid-template-columns:1fr; }
  .sw-dir-meta { align-items:flex-start; width:100%; }
}

.sw-share-card .sw-card-b { padding-top:16px; }
.sw-share-url-row { display:flex; flex-wrap:wrap; gap:10px; align-items:stretch; margin-bottom:16px; }
.sw-share-url-input { flex:1; min-width:200px; font-size:12px; font-family:ui-monospace,monospace; color:var(--text2); }
.sw-share-copy-btn { flex-shrink:0; white-space:nowrap; }
.sw-share-label { margin:0 0 10px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text3); display:flex; align-items:center; gap:8px; }
.sw-share-icons { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.sw-share-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:10px;
  color:#fff; font-size:18px; text-decoration:none;
  transition:transform .15s, box-shadow .15s, opacity .15s;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.sw-share-icon:hover { transform:translateY(-2px); opacity:.95; color:#fff; }
.sw-share-icon i { line-height:1; }
.sw-si-fb { background:#1877f2; }
.sw-si-x { background:#000; border:1px solid var(--border2); }
.sw-si-li { background:#0a66c2; }
.sw-si-wa { background:#25d366; }
.sw-si-tg { background:#26a5e4; }
.sw-si-rd { background:#ff4500; }
.sw-si-pin { background:#e60023; }
.sw-si-mail { background:var(--bg3); color:var(--text2); border:1px solid var(--border); box-shadow:none; }
.sw-si-mail:hover { color:var(--text); border-color:var(--border2); }
.sw-card-b { padding:18px 20px; }

/* Settings masters — profession list search */
.sw-masters-list-head { align-items:flex-start; }
.sw-masters-list-meta { flex:1 1 auto; min-width:0; }
.sw-masters-search {
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:10px;
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:linear-gradient(145deg, var(--bg3) 0%, var(--surface) 100%);
}
.sw-masters-search-field {
  position:relative;
  flex:1 1 220px;
  min-width:0;
  display:flex;
  align-items:center;
  margin:0;
}
.sw-masters-search-field > i {
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text3);
  font-size:13px;
  pointer-events:none;
}
.sw-masters-search-input {
  width:100%;
  box-sizing:border-box;
  padding:11px 40px 11px 40px;
  font-size:14px;
  font-family:inherit;
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.sw-masters-search-input::placeholder { color:var(--text3); opacity:.9; }
.sw-masters-search-input:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-glow);
}
.sw-masters-search-clear {
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:8px;
  background:transparent;
  color:var(--text3);
  cursor:pointer;
  transition:background .15s, color .15s;
}
.sw-masters-search-clear:hover { background:rgba(255,255,255,.06); color:var(--text); }
.sw-masters-search-clear.is-hidden { display:none; }
.sw-masters-search-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  flex:0 0 auto;
}
.sw-masters-search-actions .sw-btn { min-height:42px; }
@media (max-width:520px) {
  .sw-masters-search { padding:10px; gap:8px; }
  .sw-masters-search-field { flex-basis:100%; }
  .sw-masters-search-actions { width:100%; }
  .sw-masters-search-actions .sw-btn { flex:1 1 auto; justify-content:center; }
}

.sw-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:10px; border:1px solid var(--border); width:100%; max-width:100%; min-width:0; }
.sw-table { width:100%; border-collapse:collapse; font-size:13px; }
.sw-table th { text-align:left; padding:11px 14px; background:var(--bg3); color:var(--text3); font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:11px; border-bottom:1px solid var(--border); white-space:nowrap; }
.sw-table td { padding:12px 14px; border-bottom:1px solid var(--border); color:var(--text2); vertical-align:middle; }
.sw-table tr:last-child td { border-bottom:none; }
.sw-table tr:hover td { background:rgba(255,255,255,.02); }

.sw-acts { display:flex; gap:6px; }
.sw-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:8px 14px; border-radius:10px; font-size:12px; font-weight:700; border:none; cursor:pointer; font-family:inherit; transition:.2s; text-decoration:none; }
.sw-btn:hover { transform:translateY(-1px); }
.sw-btn-accent { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; box-shadow:0 4px 14px var(--accent-glow); }
.sw-btn-ghost { background:var(--bg3); border:1px solid var(--border); color:var(--text2); }
.sw-btn-danger { background:rgba(255,77,109,.12); border:1px solid var(--red); color:var(--red); }
.sw-btn-sm { padding:6px 10px; font-size:11px; }

/* Action button loading state (admin forms) */
.sw-btn .sw-btn-icon {
  display:inline-flex;
  width:1.05em;
  justify-content:center;
  align-items:center;
}
.sw-btn.is-loading {
  opacity:.92;
  cursor:wait;
  pointer-events:none;
}
.sw-btn.is-loading .sw-btn-icon-default { display:none; }
.sw-btn.is-loading .sw-btn-icon-spinner { display:inline-flex; }
.sw-btn:not(.is-loading) .sw-btn-icon-spinner { display:none; }

.sw-form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.sw-form-group { margin-bottom:0; position:relative; }
.sw-form-group.full { grid-column:1 / -1; }
.sw-field-hint {
  font-size:12px;
  color:var(--text3);
  margin:0 0 8px;
  line-height:1.45;
}
.sw-field-hint-warn { color:var(--amber, #b45309); margin-top:8px; }
.sw-form-group-referral .sw-select {
  width:100%;
  max-width:100%;
}

/* Associate add form — full-width card, two columns of inputs */
.sw-associate-add-form.sw-form-grid {
  max-width:100%;
  align-items:start;
}
.sw-associate-form-actions {
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  padding-top:6px;
  margin-top:2px;
  border-top:1px solid var(--border);
}
.sw-label { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--text3); margin-bottom:6px; }
.sw-label-row { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.sw-label-row .sw-label { margin-bottom:0; }
.sw-master-add { flex-shrink:0; font-size:11px; padding:6px 10px; }
.sw-master-add i { font-size:10px; opacity:.9; }
.sw-input, .sw-select { width:100%; padding:10px 12px; font-size:13px; font-family:inherit; background:var(--bg3); border:1px solid var(--border); border-radius:10px; color:var(--text); outline:none; }
.sw-input:focus, .sw-select:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-glow); }

.sw-password-wrap { position:relative; width:100%; }
.sw-password-wrap .sw-input { padding-right:44px; }
.sw-password-toggle {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; padding:0; border:none; border-radius:8px;
  background:transparent; color:var(--text3); cursor:pointer;
  font-size:15px; line-height:1;
}
.sw-password-toggle:hover { color:var(--text); background:var(--bg2); }
.sw-password-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.sw-empty { text-align:center; padding:36px 20px; color:var(--text3); font-size:13px; }

.sw-dialog { border:none; border-radius:16px; padding:0; max-width:440px; width:calc(100% - 32px); background:var(--surface); color:var(--text); box-shadow:0 24px 80px rgba(0,0,0,.45); }
.sw-dialog::backdrop { background:rgba(0,0,0,.55); }
.sw-dlg-h { padding:18px 20px; border-bottom:1px solid var(--border); font-size:16px; font-weight:800; }
.sw-dlg-b { padding:20px; }
.sw-dlg-f { padding:14px 20px; border-top:1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; }

.sw-filter { max-width:min(280px, 100%); margin-bottom:14px; width:100%; }

.sw-check-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; max-height:220px; overflow-y:auto; padding:10px; background:var(--bg3); border-radius:10px; border:1px solid var(--border); }
.sw-check { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text2); cursor:pointer; }
.sw-check input { accent-color:var(--accent); }

.sw-photo-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--border); font-size:12px; }
.sw-photo-row:last-child { border-bottom:none; }
.sw-photo-thumb { width:48px; height:48px; border-radius:8px; object-fit:cover; border:1px solid var(--border); }

.sw-status { display:inline-flex; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:700; text-transform:capitalize; }
.sw-status-active { background:rgba(0,214,143,.15); color:var(--green); }
.sw-status-inactive { background:rgba(255,77,109,.12); color:var(--red); }
.sw-status-pending { background:rgba(250,204,21,.18); color:#b45309; }

.sw-muted { font-size:12px; color:var(--text3); opacity:.9; }
.sw-stat-pending .sw-stat-ico { background:rgba(250,204,21,.14); color:#b45309; }

/* Tom Select — dark UI (override default #fff, gradients, .full, input-active) */
.ts-wrapper {
  width: 100%;
  font-family: inherit;
}

/* Beat tom-select.default: .full .ts-control, gradients on .single, .input-active */
body.dark .ts-wrapper.single .ts-control,
body.dark .full .ts-wrapper.single .ts-control,
body.dark .ts-wrapper.single.input-active .ts-control {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background-color: var(--bg3) !important;
  background-image: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

body.dark .ts-wrapper.focus .ts-control {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

body.dark .ts-wrapper.single .ts-control input {
  color: var(--text) !important;
}
body.dark .ts-wrapper.single .ts-control input::placeholder {
  color: var(--text3);
  opacity: 1;
}

body.dark .ts-wrapper .item {
  color: var(--text);
}

/* Caret — visible on dark control */
body.dark .ts-wrapper.single .ts-control::after {
  border-color: var(--text2) transparent transparent transparent;
}
body.dark .ts-wrapper.single.dropdown-active .ts-control::after {
  border-color: transparent transparent var(--text2) transparent;
}

body.dark .ts-wrapper.disabled .ts-control {
  opacity: 0.55;
  background-color: var(--bg3) !important;
  background-image: none !important;
  cursor: not-allowed;
}

body.dark .ts-dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 2000;
  overflow: hidden;
  margin-top: 4px;
}

body.dark .ts-dropdown,
body.dark .ts-dropdown .ts-control,
body.dark .ts-dropdown .option {
  color: var(--text2);
}

body.dark .ts-dropdown .option {
  padding: 8px 12px;
}
body.dark .ts-dropdown .option:hover,
body.dark .ts-dropdown .active {
  background: var(--bg3);
  color: var(--text);
}
body.dark .ts-dropdown .option.selected {
  background: rgba(253, 104, 2, 0.15);
  color: var(--text);
}
body.dark .ts-dropdown .optgroup-header {
  background: var(--surface);
  color: var(--text3);
}
body.dark .ts-dropdown .optgroup {
  border-top-color: var(--border);
}
body.dark .ts-dropdown .no-results,
body.dark .ts-dropdown .create {
  color: var(--text3);
}

body.dark .plugin-clear_button .clear-button {
  opacity: 0.85;
  color: var(--text2);
}
body.dark .plugin-clear_button .clear-button:hover {
  color: var(--text);
}

.sw-select-loading::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -10px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent, #FD6802);
  border-radius: 50%;
  animation: sw-spin 0.65s linear infinite;
  pointer-events: none;
  z-index: 5;
}
.sw-select-loading .ts-wrapper,
.sw-select-loading > select {
  opacity: 0.55;
}
@keyframes sw-spin {
  to { transform: rotate(360deg); }
}

/* Also skilled as — search + checkbox list */
.sw-peer-search-input { margin-bottom: 10px; }
.sw-peer-check-scroll {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg3, rgba(0,0,0,.04));
}
.sw-peer-check-grid { margin: 0; }
.sw-peer-empty {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text3);
}

@media (max-width:800px) {
  .sw-form-grid { grid-template-columns:1fr; }
  .sw-check-grid { grid-template-columns:1fr; }
}

/* Main column + mobile — avoid viewport horizontal scroll */
#mainContent {
  min-width: 0;
  max-width: 100%;
}
.sw-share-url-input {
  min-width: 0;
}
@media (max-width: 720px) {
  .sw-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .sw-hero > div:last-child {
    width: 100%;
    justify-content: flex-start !important;
  }
  .sw-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sw-card-h {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 400px) {
  .sw-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Registration insights — mobile-first accordion + desktop table */
.sw-reg-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sw-reg-filters-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}
@media (min-width: 560px) {
  .sw-reg-filters-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sw-reg-search {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .sw-reg-filters {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
  }
  .sw-reg-filters-fields {
    flex: 1;
    grid-template-columns: minmax(130px, 0.9fr) minmax(150px, 1fr) minmax(180px, 1.4fr);
  }
  .sw-reg-search {
    grid-column: auto;
  }
}
.sw-reg-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  flex-shrink: 0;
}
.sw-reg-filter-actions .sw-btn {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  margin: 0;
}
@media (min-width: 960px) {
  .sw-reg-filter-actions {
    display: flex;
    flex-direction: row;
    width: auto;
    min-width: 200px;
  }
  .sw-reg-filter-actions .sw-btn {
    width: auto;
    min-width: 96px;
    flex: 1;
  }
}
@media (max-width: 559px) {
  .sw-reg-showing {
    display: block;
    width: 100%;
    margin-top: 4px;
  }
}

.sw-reg-prof-list { display: flex; flex-direction: column; gap: 12px; }
.sw-reg-prof-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  overflow: hidden;
}
.sw-reg-prof-head {
  list-style: none;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 14px 14px 12px;
  min-height: 56px;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sw-reg-prof-head::-webkit-details-marker { display: none; }
.sw-reg-rank {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(253,104,2,.15); color: var(--accent2);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sw-reg-prof-info { min-width: 0; }
.sw-reg-prof-name { display: block; font-size: 15px; line-height: 1.35; word-break: break-word; }
.sw-reg-cat { display: block; font-size: 11px; color: var(--text3); margin-top: 3px; line-height: 1.3; }
.sw-reg-prof-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sw-reg-chevron {
  font-size: 11px;
  color: var(--text3);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.sw-reg-prof-card[open] .sw-reg-chevron { transform: rotate(180deg); }
.sw-reg-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,214,143,.12);
  color: var(--green);
  line-height: 1;
  white-space: nowrap;
}
.sw-reg-count-num { font-size: 15px; font-weight: 800; line-height: 1; }
.sw-reg-count-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.sw-reg-prof-body {
  padding: 4px 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sw-reg-district-details {
  border-radius: 12px;
  background: rgba(0,0,0,.14);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sw-reg-district-details[open] > .sw-reg-district-head {
  border-bottom: 1px solid var(--border);
}
.sw-reg-district-head {
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sw-reg-district-head::-webkit-details-marker { display: none; }
.sw-reg-district-head > .fa-location-dot { color: #38bdf8; font-size: 13px; }
.sw-reg-district-name { min-width: 0; word-break: break-word; line-height: 1.35; }
.sw-reg-district-total {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(56,189,248,.15);
  color: #38bdf8;
  white-space: nowrap;
}
.sw-reg-district-chevron {
  font-size: 10px;
  color: var(--text3);
  transition: transform .2s ease;
}
.sw-reg-district-details[open] .sw-reg-district-chevron { transform: rotate(180deg); }
.sw-reg-area-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sw-reg-area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
}
.sw-reg-area-name { display: flex; align-items: center; gap: 8px; min-width: 0; word-break: break-word; line-height: 1.35; }
.sw-reg-area-name i { color: var(--text3); font-size: 10px; flex-shrink: 0; margin-top: 1px; }
.sw-reg-area-count {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent2);
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}
.sw-reg-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.sw-reg-page-label {
  font-size: 13px;
  min-width: 120px;
  text-align: center;
}
@media (min-width: 640px) {
  .sw-reg-pagination {
    justify-content: flex-end;
  }
}
.sw-reg-insights-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}
.sw-reg-mobile-scroll {
  overflow: visible;
  -webkit-overflow-scrolling: touch;
}
.sw-reg-table-scroll {
  max-height: min(52vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.sw-reg-compact-table {
  font-size: 12px;
}
.sw-reg-compact-table th {
  padding: 8px 10px;
  font-size: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}
.sw-reg-compact-table td {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.35;
}
.sw-reg-desktop-table { display: none; margin-top: 0; }
.sw-reg-desktop-table .sw-reg-prof-group-start td {
  border-top: 2px solid rgba(253, 104, 2, 0.35);
}
.sw-reg-desktop-table .sw-reg-td-prof {
  background: rgba(253, 104, 2, 0.06);
  min-width: 120px;
}
.sw-reg-desktop-table .sw-reg-td-cat {
  min-width: 100px;
}
.sw-reg-desktop-table .sw-reg-td-dist {
  min-width: 110px;
}
@media (min-width: 960px) {
  .sw-reg-prof-list { display: none; }
  .sw-reg-desktop-table { display: block; }
}
@media (max-width: 959px) {
  .sw-reg-insights-body .sw-reg-desktop-table { display: none !important; }
  .sw-reg-insights-body {
    padding-top: 4px;
  }
  .sw-card:has(.sw-reg-insights-body) .sw-card-b {
    padding: 14px 12px 16px;
  }
  .sw-reg-prof-head:active,
  .sw-reg-district-head:active {
    background: rgba(255,255,255,.03);
  }
  .sw-reg-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "label label"
      "prev next";
    gap: 10px;
    padding-bottom: 4px;
  }
  .sw-reg-page-label {
    grid-area: label;
    min-width: 0;
    width: 100%;
    margin-bottom: 2px;
  }
  .sw-reg-pagination .sw-btn:first-of-type { grid-area: prev; justify-content: center; }
  .sw-reg-pagination .sw-btn:last-of-type { grid-area: next; justify-content: center; }
  .sw-reg-pagination .sw-btn {
    min-height: 44px;
    width: 100%;
  }
}
@media (max-width: 380px) {
  .sw-reg-prof-head {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-areas:
      "rank info"
      "meta meta";
    row-gap: 8px;
  }
  .sw-reg-rank { grid-area: rank; width: 28px; height: 28px; }
  .sw-reg-prof-info { grid-area: info; }
  .sw-reg-prof-meta {
    grid-area: meta;
    justify-content: space-between;
    width: 100%;
  }
  .sw-reg-count-pill { flex: 1; max-width: max-content; }
}
