@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ═══════════════════════════════════════════════
   Honeybee - Main Stylesheet
   Theme: Maroon / Deep Red
   Font: Plus Jakarta Sans
   ═══════════════════════════════════════════════ */

:root {
  --primary-dark:    #2D0A0A;
  --primary-mid:     #6B1A1A;
  --primary:         #8B2020;
  --primary-light:   #B03030;
  --primary-bright:  #D94040;
  --accent:          #E8A0A0;

  --success:         #16a34a;
  --success-dark:    #15803d;
  --success-bg:      #dcfce7;
  --success-border:  #86efac;

  --tier-paid-bg:    #dcfce7;
  --tier-paid-fg:    #166534;
  --tier-paid-border:#86efac;
  --tier-paid-icon:  #16a34a;
  --tier-paid-accent:#15803d;

  --bg:              #EBEBED;
  --surface:         #F2F2F3;
  --border:          #D8CCCC;
  --border-light:    #E0DADA;

  --text-dark:       #140606;
  --text-body:       #2E1212;
  --text-muted:      #5A3D3D;
  --text-light:      #8A6565;

  --green:           var(--primary-mid);
  --green-bg:        #F0E6E6;
  --amber:           var(--text-muted);
  --amber-bg:        var(--border-light);
  --red:             var(--primary-dark);
  --red-bg:          #E8D4D4;
  --blue:            var(--primary);
  --blue-bg:         #EFE4E4;
  --gray-soft:       #E0DADA;
  --gray-mid:        #8A6565;
  --gray-strong:     #5A3D3D;

  --radius-sm:       6px;
  --radius-md:       8px;
  --radius-lg:       10px;
  --btn-radius:      8px;
  --chip-radius:     6px;
  --shadow:          0 2px 12px rgba(45,10,10,0.10);
  --shadow-hover:    0 6px 24px rgba(45,10,10,0.16);
  --row-hover-bg:    #E8EAED;
  --jobs-toolbar-block: 2.75rem;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --icon-theme: var(--primary);

  /* Logo palette — three listing products (dark maroon · light maroon · light grey) */
  --product-vacancy:       #2D0A0A;
  --product-vacancy-hover: #4A1515;
  --product-vacancy-soft:  rgba(45, 10, 10, 0.08);
  --product-gig:           #B03030;
  --product-gig-hover:     #8B2020;
  --product-gig-soft:      rgba(176, 48, 48, 0.1);
  --product-skills:        #D1D1D6;
  --product-skills-hover:  #B8B8BE;
  --product-skills-fg:     #2D0A0A;
  --product-skills-border: #B8B8BE;
}
html.dark {
  --icon-theme: var(--accent);
  --product-vacancy:       #8B2020;
  --product-vacancy-hover: #B03030;
  --product-vacancy-soft:  rgba(139, 32, 32, 0.22);
  --product-gig:           #D94040;
  --product-gig-hover:     #E86060;
  --product-gig-soft:      rgba(217, 64, 64, 0.18);
  --product-skills:        #9CA3AF;
  --product-skills-hover:  #B8BEC8;
  --product-skills-fg:     #140606;
  --product-skills-border: #B8BEC8;
}
html {
  color-scheme: light;
}
html.dark {
  color-scheme: dark;
}

/* ── Reset ───────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero h1, .section-heading, .form-header h1, .inbox-header h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Header ──────────────────────────────────── */
.site-header {
  padding: 0 2rem;
  height: 76px;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s, box-shadow 0.25s;
}

html:not(.dark) .site-header {
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border), 0 2px 10px rgba(45, 10, 10, 0.06);
}

html.dark .site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

/* ── Header layout ───────────────────────────── */
.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}
.header-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.header-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
html.dark .header-back-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}
html.dark .header-back-btn:hover {
  border-color: var(--accent);
  color: white;
}
html.dark .site-header .header-back-btn {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

/* ── Logo ────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
  padding: 0.35rem 0;
}
.site-logo-img {
  display: block;
  height: 2.45rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
html:not(.dark) .site-logo-img {
  filter: contrast(1.12) saturate(1.08);
}
.site-logo-dark { display: none; }
html.dark .site-logo-light { display: none; }
html.dark .site-logo-dark { display: block; }
html.dark .site-logo {
  padding: 0.35rem 0;
  background: none;
  border: none;
  box-shadow: none;
}
.site-logo-text { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

/* ── Logo (desktop + mobile) ─────────────────── */
.site-logo-mobile { display: none !important; }

@media (max-width: 900px) {
  .site-logo-desktop { display: none !important; }
  .site-logo-mobile { display: block !important; }
  html:not(.dark) .site-logo-dark.site-logo-mobile { display: none !important; }
  html.dark .site-logo-light.site-logo-mobile { display: none !important; }
  .site-logo-img { height: 2.1rem; max-width: 140px; }
}

/* ── User menu ───────────────────────────────── */
.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-menu-trigger {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  overflow: visible;
  transition: border-color 0.2s, transform 0.15s;
  z-index: 1;
}

html:not(.dark) .user-menu-trigger {
  border-color: var(--border);
  background: var(--bg);
}

.user-menu-trigger:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.user-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-avatar-initials {
  font-size: 13px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
}

html:not(.dark) .user-avatar-initials {
  color: var(--primary);
}

.user-menu-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  z-index: 3;
  pointer-events: none;
}

html:not(.dark) .user-menu-badge {
  border-color: #fff;
  background: var(--primary-bright);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: 340px;
  max-width: calc(100vw - 2rem);
  max-height: min(85vh, 640px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  z-index: 300;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.user-menu-panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.user-menu-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-menu-meta strong {
  color: var(--text-dark);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-meta span {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-links {
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  border-bottom: 1px solid var(--border-light);
}

.user-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.user-menu-links a:hover {
  background: var(--border-light);
  color: var(--primary);
}

.user-menu-notifications {
  padding: 0.75rem 1rem;
  max-height: 340px;
  overflow-y: auto;
}

.notify-group { margin-bottom: 0.75rem; }
.notify-group:last-child { margin-bottom: 0; }

.notify-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}

.notify-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}

.notify-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.notify-row:hover {
  background: var(--border-light);
}
.notify-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  background: var(--border-light);
  color: var(--primary);
}
.notify-row-setup .notify-row-icon {
  background: var(--green-bg);
  color: var(--primary-mid);
}
.notify-row-activity .notify-row-icon {
  background: var(--blue-bg);
  color: var(--primary);
}
.notify-row-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.notify-row-text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notify-row-text small {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notify-row-badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notify-total-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
}
.user-menu-notify-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.user-menu-notify-scroll {
  max-height: min(50vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.user-menu-panel-compact .user-menu-notify-scroll {
  max-height: min(50vh, 320px);
  flex: 1;
  min-height: 0;
}
.job-save-btn-block {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  gap: 8px;
  padding: 0.65rem 1rem;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}
.job-save-btn-block:hover,
.job-save-btn-block.is-saved {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--green-bg);
}
.user-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.user-notify-list li + li {
  margin-top: 2px;
}
.notify-group + .notify-group {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-light);
}
html.dark .notify-row:hover { background: #1f2335; }
html.dark .notify-row-text strong { color: var(--text-dark); }
html.dark .notify-row-icon { background: #2a1515; color: var(--accent); }

.notify-item:hover { background: var(--row-hover-bg); }

.notify-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.notify-item-setup .notify-icon {
  background: var(--amber-bg);
  color: var(--amber);
}

.notify-item-activity .notify-icon {
  background: var(--blue-bg);
  color: var(--blue);
}

.notify-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.notify-body strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.notify-body span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.notify-body time {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

.user-menu-pill-sm {
  font-size: 9px;
  padding: 2px 6px;
  align-self: center;
  margin-left: 0;
}

.user-menu-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.user-menu-empty i { color: var(--primary); }

.user-menu-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.user-menu-pill {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
}

.user-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-notify-list a {
  display: block;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
}

.user-notify-list a:hover {
  background: var(--bg);
  border-color: var(--border-light);
}

.user-notify-list strong {
  display: block;
  color: var(--text-dark);
  font-size: 13px;
}

.user-notify-list span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.user-notify-list time {
  display: block;
  color: var(--text-light);
  font-size: 11px;
  margin-top: 2px;
}

.user-menu-empty {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.user-menu-footer {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border-light);
}

.user-menu-footer .logout-form {
  display: block;
  width: 100%;
}

.user-menu-footer .btn-logout-themed {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Compact user menu */
.user-menu-panel-compact { width: 300px; }
.user-menu-panel[hidden] { display: none !important; }
.user-menu-header-compact {
  padding: 0.65rem 1rem;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-light);
}
.user-menu-header-compact .user-menu-meta span {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.user-menu-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.user-menu-links-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0;
}
.user-menu-links-list a,
.user-menu-links-list .user-menu-toggle-link,
.user-menu-links-list .user-menu-theme-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  border-radius: var(--radius-sm);
  min-height: auto;
  color: var(--text-body);
  text-decoration: none;
  position: relative;
}
.user-menu-attention-link.has-attention {
  background: var(--border-light);
}
.user-menu-buzz-breakdown {
  margin: 0 0.75rem 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--green-bg, #F0E6E6);
  border: 1px solid var(--primary-light);
}
.user-menu-buzz-breakdown-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
}
.user-menu-buzz-breakdown-title i {
  color: var(--icon-theme);
}
.user-menu-buzz-total {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}
.user-menu-buzz-breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.user-menu-buzz-breakdown-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 13px;
}
.buzz-breakdown-label {
  font-weight: 700;
  color: var(--text-dark);
}
.buzz-breakdown-count {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.user-menu-inline-count {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  font-size: 12px;
}
html.dark .user-menu-buzz-breakdown {
  background: rgba(139, 32, 32, 0.28);
  border-color: #c96a6a;
}
html.dark .user-menu-buzz-breakdown-title {
  color: #f8f9fc;
}
html.dark .buzz-breakdown-label {
  color: #e8eaed;
}
html.dark .buzz-breakdown-count,
html.dark .user-menu-inline-count {
  color: var(--accent);
}
.user-menu-link-badge {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
html:not(.dark) .user-menu-link-badge {
  background: var(--primary-bright);
}
.user-menu-links-list a:hover,
.user-menu-links-list .user-menu-toggle-link:hover {
  background: var(--border-light);
  color: var(--primary);
}
.user-menu-links-list a i,
.user-menu-links-list .user-menu-toggle-link > i {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  margin: 0;
  color: var(--primary);
}
.user-menu-links-grid a em.user-menu-pill {
  font-style: normal;
  margin-left: 0.15rem;
}
.user-menu-buzz {
  padding: 0.55rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
}
.user-menu-buzz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}
.user-menu-buzz-head i { margin-right: 0.3rem; }
.user-notify-list-compact { list-style: none; margin: 0; padding: 0; }
.user-notify-list-compact li + li { margin-top: 0.15rem; }
.notify-item-compact {
  padding: 0.4rem 0.35rem;
  align-items: center;
}
.notify-item-compact .notify-body {
  flex: 1;
  min-width: 0;
}
.notify-item-count {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.notify-item-compact .notify-body strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notify-item-compact .notify-icon {
  width: 24px;
  height: 24px;
  font-size: 11px;
}
.user-menu-buzz-more {
  display: block;
  margin-top: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
}
.user-menu-buzz-more:hover { text-decoration: underline; }
.user-menu-empty-compact {
  margin: 0;
  padding: 0.35rem 0;
  font-size: 12px;
}

/* Ad slots */
.partner-slot {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.partner-slot-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 0.35rem 0.65rem 0;
}
.partner-slot-inner { padding: 0.5rem 0.65rem 0.65rem; }
.partner-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 90px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--border-light);
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}
.partner-slot-placeholder i { font-size: 1.25rem; opacity: 0.55; }
.partner-slot-placeholder small { font-size: 10px; opacity: 0.65; }
.partner-slot-cta { margin-top: 0.35rem; }
.partner-slot-dimensions {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.partner-slot-live { line-height: 0; }
.partner-slot-creative-link { display: block; border-radius: 8px; overflow: hidden; }
.partner-slot-creative-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.partner-slot-medium .partner-slot-placeholder { min-height: 200px; }
.draft-limit-banner {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
}
.draft-limit-banner i { margin-right: 0.35rem; }
.mobile-tip-ad-stack { display: none; }
.ad-desktop-only { /* shown on desktop; hidden on mobile in @media block below */ }
.partner-slot-banner .partner-slot-placeholder { min-height: 72px; flex-direction: row; gap: 0.5rem; }
.partner-slot-card {
  grid-column: 1 / -1;
  margin: 0.25rem 0;
}
.partner-slot-card .partner-slot-placeholder {
  min-height: 72px;
  flex-direction: row;
  gap: 0.65rem;
}
.hero-ad-strip { max-width: 728px; margin: 1rem auto 0; }
.sidebar-partner-slot-bottom { margin-top: 1rem; }

/* Category honeycomb chips (sidebar) */
.category-filter-form { margin: 0; }
.category-honeycomb-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.category-honeycomb-hint i { color: var(--primary); opacity: 0.85; }
.category-honeycomb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}
.category-honeycomb-parents {
  display: contents;
}
.category-honeycomb-subs {
  margin-top: 0.65rem;
  padding: 0.55rem 0.5rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--border-light);
  border: 1px solid var(--border);
}
.category-honeycomb-subs-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.category-honeycomb-sub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cat-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  line-height: 1.35;
  text-align: left;
}
.cat-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.cat-chip-all {
  flex-shrink: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cat-chip-sub {
  font-size: 10px;
  padding: 0.22rem 0.55rem;
}
.cat-chip-any {
  font-style: italic;
  opacity: 0.92;
}
.sidebar-panel-categories {
  border-style: dashed;
}
.cat-chip-custom {
  border-style: dashed;
}
.category-honeycomb-custom {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}
.category-honeycomb-custom label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.category-custom-row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}
.category-custom-row input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
}
.category-honeycomb-custom .hint {
  margin: 0.35rem 0 0;
  font-size: 11px;
}

/* Job list pagination */
.jobs-pagination {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.jobs-pagination-summary {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  text-align: center;
}
.jobs-pagination-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}
.jobs-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.jobs-page-btn:hover:not(.jobs-page-btn-disabled):not(.jobs-page-btn-active) {
  border-color: var(--primary-light);
  color: var(--primary);
}
.jobs-page-btn-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.jobs-page-btn-disabled {
  opacity: 0.45;
  cursor: default;
}
.jobs-page-ellipsis {
  padding: 0 0.25rem;
  color: var(--text-light);
  font-size: 13px;
}
.footer-ad-strip { max-width: 728px; margin: 0 auto 1rem; }
.honeypot-ad-strip { margin-bottom: 1.25rem; }

/* ── Profile settings (dashboard) ────────────── */
.profile-settings-card {
  display: block;
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.profile-pro-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  color: white;
  flex-wrap: wrap;
}
.profile-pro-hero .profile-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}
.profile-pro-hero .profile-avatar-preview .user-avatar-initials {
  font-size: 32px;
  color: white;
}
.profile-pro-hero-meta { flex: 1; min-width: 180px; }
.profile-pro-hero-meta h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: white;
}
.profile-pro-hero-meta p {
  font-size: 13px;
  opacity: 0.88;
  margin-bottom: 0.65rem;
}
.profile-pro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.profile-pro-hero .avatar-upload-label {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
.profile-pro-hero .account-type-badge {
  margin-top: 0;
}
.profile-pro-body { padding: 1.25rem 1.75rem 1.75rem; }
.profile-pro-sections { display: flex; flex-direction: column; gap: 1.5rem; }
.profile-pro-block {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.profile-pro-block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}
.profile-pro-block-title i { color: var(--icon-theme); }
.profile-pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1rem;
}
.profile-pro-grid .field-full { grid-column: 1 / -1; }
.profile-pro-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .profile-pro-grid { grid-template-columns: 1fr; }
  .profile-pro-hero { flex-direction: column; text-align: center; }
  .profile-pro-hero-actions { justify-content: center; }
  .profile-pro-body { padding: 1rem; }
}

.profile-avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.profile-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-preview .user-avatar-initials {
  font-size: 28px;
  color: var(--primary);
}

.avatar-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.avatar-upload-label input {
  display: none;
}

.register-workspace-hint {
  margin: -0.35rem 0 1rem;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.avatar-crop-note {
  margin: 0.35rem 0 0;
  font-size: 12px;
}

.avatar-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.avatar-crop-modal[hidden] {
  display: none !important;
}

.avatar-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.avatar-crop-dialog {
  position: relative;
  width: min(100%, 380px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow-lg);
}

.avatar-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.avatar-crop-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.avatar-crop-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-soft, #f3f4f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
}

.avatar-crop-hint {
  margin: 0 0 0.75rem;
  font-size: 12px;
  color: var(--text-muted);
}

.avatar-crop-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

#avatar-crop-canvas {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
}

#avatar-crop-canvas:active {
  cursor: grabbing;
}

.avatar-crop-zoom-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 13px;
  margin-bottom: 0.85rem;
}

.avatar-crop-zoom-label input {
  flex: 1;
}

.avatar-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

body.avatar-crop-open {
  overflow: hidden;
}

.register-avatar-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.register-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}

.register-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.register-avatar-preview i {
  font-size: 22px;
  color: var(--text-light);
}

/* ── Role & tier pickers ─────────────────────── */
.role-picker, .tier-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 520px) {
  .role-picker, .tier-picker { grid-template-columns: 1fr; }
}

.role-card, .tier-card {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.role-card input, .tier-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.role-card-inner, .tier-card-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.role-card-inner i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.role-card-inner strong, .tier-card-inner strong {
  color: var(--text-dark);
  font-size: 14px;
}

.role-card-inner small, .tier-card-inner small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.role-card input:checked + .role-card-inner,
.tier-card input:checked + .tier-card-inner {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.12);
  background: var(--surface);
}

/* Post form — listing kind picker (gig / vacancy / skills) */
.listing-post-kind-wrap {
  margin-bottom: 1.1rem;
}
.listing-post-kind-lead {
  margin: 0 0 0.65rem;
}
.listing-post-kind-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 720px) {
  .listing-post-kind-picker {
    grid-template-columns: 1fr;
  }
}
.listing-post-kind-card {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-md, 10px);
  border: 2px solid var(--border-light);
  background: var(--bg);
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  position: relative;
}
.listing-post-kind-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.listing-post-kind-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 5, 5, 0.06);
}
label.listing-post-kind-gig:has(input:checked) {
  border-color: var(--product-gig);
  background: rgba(58, 58, 58, 0.05);
}
label.listing-post-kind-vacancy:has(input:checked) {
  border-color: var(--product-vacancy);
  background: rgba(139, 32, 32, 0.05);
}
.listing-post-kind-talent.is-selected,
.listing-post-kind-talent.is-locked {
  border-color: var(--product-vacancy);
  background: rgba(139, 32, 32, 0.04);
}
.listing-post-kind-muted {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}
.listing-post-kind-link:hover {
  text-decoration: none;
  color: var(--text-dark);
}
.listing-post-kind-icon {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.listing-post-kind-gig .listing-post-kind-icon {
  background: var(--product-gig-soft);
  color: var(--product-gig);
}
.listing-post-kind-vacancy .listing-post-kind-icon {
  background: var(--product-vacancy-soft);
  color: var(--product-vacancy);
}
.listing-post-kind-talent .listing-post-kind-icon {
  background: var(--product-skills);
  color: var(--product-skills-fg);
  border: 1px solid var(--product-skills-border);
}
.listing-post-kind-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.listing-post-kind-copy strong {
  font-size: 0.9rem;
  line-height: 1.25;
}
.listing-post-kind-copy small {
  font-size: 0.75rem;
  color: var(--text-muted, var(--text-light));
  line-height: 1.35;
}
@media (max-width: 640px) {
  .listing-post-kind-copy small {
    display: none;
  }
  .listing-post-kind-lead {
    font-size: 0.85rem;
  }
}
html.dark .listing-post-kind-gig .listing-post-kind-icon { color: #fecaca; }
html.dark .listing-post-kind-talent .listing-post-kind-icon {
  background: var(--product-skills);
  color: var(--product-skills-fg);
  border-color: var(--product-skills-border);
}

.auth-card-wide { max-width: 480px; width: 100%; }
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-body-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-page-footer {
  padding: 1.25rem 1rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
}
.auth-page-footer .site-footer-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}
html:not(.dark) .auth-page-footer .site-footer-links a {
  color: var(--primary-dark);
}
html.dark .auth-page-footer .site-footer-links a {
  color: var(--accent);
}
.auth-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.auth-logo-wrap .site-logo-img { height: 2.4rem; }

/* Phone number quick-add modal */
.phone-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 5, 5, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 400;
}
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
}
.phone-modal[hidden] { display: none !important; }
.phone-modal-backdrop[hidden] { display: none !important; }
.phone-modal-card {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
}
.phone-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.phone-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.35rem;
}
.phone-modal-lead {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.phone-modal-error {
  font-size: 13px;
  color: var(--red);
  margin: 0 0 0.75rem;
}
body.phone-modal-open { overflow: hidden; }

.tier-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0.75rem 0 1.25rem;
  padding: 0.65rem 0.85rem;
  line-height: 1.5;
  background: var(--gray-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-light);
}

.badge.tier-free { background: var(--gray-soft); color: var(--gray-strong); }
.badge.tier-paid { background: var(--tier-paid-bg); color: var(--tier-paid-fg); border: 1px solid var(--tier-paid-border); }
.badge-listing-kind {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.badge-listing-hiring {
  background: var(--product-vacancy-soft);
  color: var(--product-vacancy);
  border: 1px solid rgba(45, 10, 10, 0.18);
}
.badge-listing-gig {
  background: var(--product-gig-soft);
  color: var(--product-gig-hover);
  border: 1px solid rgba(176, 48, 48, 0.22);
}
.badge-listing-talent,
.badge-tier-talent {
  background: var(--product-skills);
  color: var(--product-skills-fg);
  border: 1px solid var(--product-skills-border);
}
.badge-tier-free-card {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-tier-paid-card {
  background: var(--tier-paid-bg);
  color: var(--tier-paid-fg);
  border: 1px solid var(--tier-paid-border);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-tier-paid-card i {
  color: var(--tier-paid-icon);
}
.job-card-rich.listing-kind-hiring.card-tier-free {
  border-left: 4px solid #9ca3af;
}
.job-card-rich.listing-kind-hiring.card-tier-paid {
  border-left: 4px solid var(--tier-paid-icon);
  box-shadow: 0 1px 0 rgba(22, 163, 74, 0.1);
}
.talent-card.listing-kind-talent {
  border-left: 4px solid #7c3aed;
  position: relative;
}
.listing-kind-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 12px;
  color: var(--text-muted);
}
.listing-kind-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tier-picker-prominent {
  margin-bottom: 0.5rem;
}
.tier-card-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.tier-card-paid .tier-card-icon {
  background: var(--tier-paid-bg);
  color: var(--tier-paid-icon);
}
.tier-card input:checked + .tier-card-inner .tier-card-icon {
  background: var(--primary);
  color: #fff;
}
.tier-card-paid input:checked + .tier-card-inner .tier-card-icon {
  background: var(--tier-paid-icon);
  color: #fff;
}
.dashboard-post-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
html.dark .badge-tier-free-card { background: rgba(55, 65, 81, 0.5); color: #e5e7eb; border-color: #6b7280; }
html.dark .badge-tier-paid-card {
  background: #14532d;
  color: #bbf7d0;
  border-color: #22c55e;
}
html.dark .badge-tier-paid-card i {
  color: #4ade80;
}
html.dark .badge-listing-hiring {
  background: var(--product-vacancy-soft);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.25);
}
html.dark .badge-listing-gig {
  background: var(--product-gig-soft);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.22);
}
html.dark .badge-listing-talent {
  background: var(--product-skills);
  color: var(--product-skills-fg);
  border-color: var(--product-skills-border);
}

.account-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
}
.account-type-employer { background: var(--primary); color: white; }
.account-type-job_seeker { background: var(--blue-bg); color: var(--blue); }
.account-type-both { background: var(--primary); color: white; border: 1px solid var(--blue); }

.dashboard-role-badges { margin-top: 0.65rem; }
.welcome-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; }
.optional { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.salary-label { font-size: 13px; font-weight: 600; color: var(--primary); }
.salary-label-muted { color: var(--text-muted); font-weight: 500; font-style: italic; }

/* ── Draft banner (non-blocking) ── */
.draft-banner {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  background: var(--blue-bg);
}
.draft-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-body);
}
.draft-banner-inner i { color: var(--blue); font-size: 1.1rem; }
.draft-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.draft-banner-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}
.draft-banner-delete { color: var(--text-muted); border-color: var(--border); }
html.dark .draft-banner-delete,
html.dark .draft-btn-danger {
  background: rgba(255, 255, 255, 0.04);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}
html.dark .draft-banner-delete:hover,
html.dark .draft-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  border-color: #f87171;
}
.user-menu-email { display: block; font-size: 12px; color: var(--text-light); }

/* ── Searchable category combobox ── */
.category-combobox { position: relative; z-index: 2; }
.category-search-input { width: 100%; }
.category-field:focus-within { z-index: 5; }
.category-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  z-index: 400;
}
.category-suggestions li {
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  cursor: pointer;
}
.category-suggestions li:hover,
.category-suggestions li:focus {
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  outline: none;
}
.category-suggestions li.category-suggestion-other {
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.15rem;
  padding-bottom: 0.55rem;
}
.category-suggestions li.category-suggestion-sub {
  font-size: 13px;
  padding-left: 1.1rem;
}

.role-card-wide .role-card-inner { min-height: auto; }

@media (max-width: 768px) {
  .draft-banner-inner { flex-direction: column; align-items: flex-start; }
  .draft-banner-actions { margin-left: 0; width: 100%; }
}

.social-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) { .social-fields-grid { grid-template-columns: 1fr; } }

.profile-social-preview {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.profile-social-preview a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
}
.profile-social-preview a:hover { background: var(--bg); }

.password-settings-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.drafts-container .draft-row {
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.35rem;
  gap: 0.65rem;
}
.drafts-container .draft-card-thumb {
  width: 40px;
  height: 40px;
}
.draft-card-body-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.drafts-container .draft-card-body-inline .draft-card-title {
  font-size: 13px;
  margin: 0;
}
.drafts-container .draft-card-meta {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
}
.draft-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.draft-delete-form {
  margin: 0;
}
.draft-delete-btn {
  min-width: 36px;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}
html.dark .draft-row,
html.dark .draft-card {
  background: #1f2335;
  border-color: #5a6578;
}
html.dark .draft-card-title {
  color: #f8f9fc;
}
html.dark .draft-delete-btn {
  background: #dc2626 !important;
  border-color: #f87171 !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}
html.dark .draft-delete-btn:hover {
  background: #ef4444 !important;
  border-color: #fca5a5 !important;
  color: #fff !important;
}
html.dark .draft-delete-btn i {
  color: #fff !important;
}
html.dark .listing-card-actions .draft-delete-btn,
html.dark .job-owner-toolbar .draft-delete-btn,
html.dark .draft-card-actions .draft-delete-btn {
  background: #dc2626 !important;
  border: 1.5px solid #f87171 !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
}
html.dark .listing-card-actions .draft-delete-btn:hover,
html.dark .job-owner-toolbar .draft-delete-btn:hover,
html.dark .draft-card-actions .draft-delete-btn:hover {
  background: #ef4444 !important;
  border-color: #fca5a5 !important;
}
html.dark .listing-card-actions .draft-delete-btn i,
html.dark .job-owner-toolbar .draft-delete-btn i,
html.dark .draft-card-actions .draft-delete-btn i {
  color: #fff !important;
  opacity: 1;
}

.filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.filter-banner a { color: var(--primary); text-decoration: none; font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
}
.empty-state h3 { color: var(--text-dark); margin-bottom: 0.5rem; }
.empty-state p { font-size: 14px; margin-bottom: 1.25rem; }

.auth-social-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-social-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  font-size: 18px;
  color: var(--text-light);
}

.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 32, 32, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary-light);
}
.badge-pending i { color: var(--primary); font-size: 0.85em; }
.badge-reviewed { background: rgba(59, 130, 246, 0.12); color: var(--primary-mid); border: 1px solid var(--primary-light); }
.badge-shortlisted { background: var(--green-bg); color: var(--primary); border: 1px solid var(--primary-light); }
.badge-rejected { background: var(--red-bg); color: var(--primary-dark); border: 1px solid #e8c4c4; }
.badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--green-bg);
  color: var(--primary);
  border: 1px solid var(--primary-light);
  font-size: 10px;
  font-weight: 700;
}
.badge-favourited {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(139, 32, 32, 0.1);
  color: var(--primary-mid);
  border: 1px solid var(--primary-light);
  font-size: 10px;
  font-weight: 700;
}
.badge-pinned i,
.badge-favourited i { color: var(--primary); font-size: 9px; }
.saved-job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.job-card-wrap.is-pinned .job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.job-card-icon-action[data-action="pin"].is-active i { color: var(--primary); }
.job-card-icon-action[data-action="favorite"].is-active i { color: var(--primary); }
.badge[class*="badge-"] i,
.employer-type-badge i,
.job-owner-toolbar-label i,
.section-heading i {
  color: var(--primary);
}
.stat-value.stat-gray { color: var(--primary-mid); }

/* ── Auth: password toggle & login methods ───── */
.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field-wrap .password-input {
  width: 100%;
  padding-right: 2.75rem;
}
.password-field-wrap .password-input::-ms-reveal,
.password-field-wrap .password-input::-ms-clear {
  display: none;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}
.password-toggle:hover { color: var(--primary); }

.auth-method-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-credentials {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}
.auth-credentials .field + .field {
  margin-top: 0.85rem;
}
.auth-panel-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.phone-row, .email-provider-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.phone-row select {
  flex: 0 0 130px;
  min-width: 0;
}
.phone-row input, .email-local-input {
  flex: 1;
  min-width: 0;
}
.email-at { color: var(--text-muted); font-weight: 600; }
.email-domain-select { flex: 0 0 120px; }

.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.social-login-grid-compact {
  grid-template-columns: repeat(5, 1fr);
  max-width: 220px;
  margin: 0 auto;
}
.social-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.social-login-grid-compact .social-login-btn {
  padding: 10px;
  aspect-ratio: 1;
}
.social-login-btn:hover { border-color: var(--primary); color: var(--primary); }
.social-facebook:hover { border-color: var(--primary-mid); color: var(--primary-mid); }
.social-twitter:hover { border-color: var(--text-muted); color: var(--text-muted); }
.social-instagram:hover { border-color: var(--primary-light); color: var(--primary-light); }
.social-tiktok:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.social-google:hover { border-color: var(--primary); color: var(--primary); }
.social-yahoo:hover { border-color: #6001d2; color: #6001d2; }
.social-login-grid-auth {
  max-width: 140px;
  grid-template-columns: repeat(2, 1fr);
}
.social-login-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0 auto;
}
.social-login-row .social-login-btn {
  padding: 10px;
  aspect-ratio: 1;
  min-width: 44px;
  min-height: 44px;
}
.social-login-row .social-login-btn i,
.social-login-grid-compact .social-login-btn i {
  font-size: 1.65rem;
  line-height: 1;
}
.social-login-strip-centered .social-login-grid-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  max-width: none;
  width: fit-content;
  margin: 0 auto;
  grid-template-columns: unset;
}

.social-login-strip { text-align: center; margin-bottom: 1rem; }
.social-login-strip-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.social-login-strip-centered .social-login-grid-single {
  display: flex;
  justify-content: center;
  max-width: 56px;
  margin: 0 auto;
}
.social-login-btn-full {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.auth-google-block { margin-bottom: 0.25rem; }
.account-type-locked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem 0;
}
.social-login-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0 1.25rem;
  font-size: 12px;
  color: var(--text-light);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ── Dashboard layout ────────────────────────── */
.dashboard-page {
  margin-top: 0;
  margin-bottom: 3rem;
  padding-top: 2.5rem;
}
.dashboard-office-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.dashboard-office-label i {
  color: var(--primary);
}
.dashboard-welcome-combined {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  color: white;
  box-shadow: var(--shadow);
}
.dashboard-welcome-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}
.dashboard-welcome-first {
  border: 2px solid var(--primary-light);
}
.dashboard-welcome-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.dashboard-welcome-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.dashboard-welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard-welcome-avatar .user-avatar-initials {
  font-size: 1.25rem;
  color: white;
}
.dashboard-welcome-body {
  flex: 1;
  min-width: 0;
}
.dashboard-welcome-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.dashboard-welcome-body p {
  font-size: 14px;
  opacity: 0.88;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.dashboard-welcome-combined .dashboard-section-hint {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  opacity: 1;
}
.dashboard-welcome-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.dashboard-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.dashboard-welcome-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.dashboard-welcome-actions .btn-white {
  color: var(--primary-dark);
  font-size: 12px;
  padding: 6px 12px;
}
.account-type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.account-type-card {
  cursor: pointer;
  margin: 0;
  position: relative;
}
.account-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.account-type-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 72px;
  padding: 0.65rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.account-type-card-inner i {
  font-size: 1.1rem;
  color: var(--primary);
}
.account-type-card-inner strong {
  font-size: 12px;
  color: var(--text-dark);
}
.account-type-card-inner small {
  font-size: 10px;
  color: var(--text-muted);
}
.account-type-card input:checked + .account-type-card-inner {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.1);
}
.account-type-card-both {
  grid-column: 1 / -1;
}
.account-type-card-both .account-type-card-inner {
  flex-direction: row;
  min-height: 52px;
  justify-content: flex-start;
  padding: 0.65rem 1rem;
  gap: 0.65rem;
}
.dashboard-msg-auto-dismiss {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.profile-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.settings-profile-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.settings-profile-intro-text .section-heading {
  margin: 0;
}
.profile-settings-head .section-heading {
  margin: 0;
}
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  color: white;
}
.dashboard-msg { margin-bottom: 1rem; }
.dashboard-section { margin-bottom: 1.75rem; }
.dashboard-divider {
  height: 1px;
  background: var(--border-light);
  margin: 2rem 0;
}
.welcome-banner-first {
  border: 2px solid var(--primary-light);
}
.welcome-banner-first h2 {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Nav links ───────────────────────────────── */
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: white; }

html:not(.dark) .nav-links a {
  color: var(--text-body);
}
html:not(.dark) .nav-links a:hover {
  background: var(--border-light);
  color: var(--primary);
}

.logout-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.logout-form .btn-logout-themed {
  font-family: inherit;
  cursor: pointer;
}

.btn-logout-themed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary);
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-logout-themed:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
html.dark .btn-logout-themed {
  background: rgba(139, 58, 58, 0.15);
  border-color: var(--primary-light, #c45c5c);
  color: var(--accent, #f5d0d0);
}
html.dark .btn-logout-themed:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

html:not(.dark) .btn-logout {
  color: var(--text-body);
  border-color: var(--border);
}
html:not(.dark) .btn-logout:hover {
  background: var(--border-light);
  color: var(--primary);
}

html:not(.dark) .dark-toggle {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-body);
}
html:not(.dark) .dark-toggle:hover {
  background: var(--border-light);
}

html.dark .nav-links a {
  color: var(--text-body);
}
html.dark .nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark);
}
html.dark .dark-toggle {
  background: #1f2335;
  border-color: var(--border);
  color: var(--text-dark);
}
html.dark .dark-toggle:hover {
  background: #252b3d;
  border-color: var(--primary-light);
  color: #fff;
}
html.dark .btn-logout {
  color: var(--text-body);
  border-color: var(--border);
}
html.dark .btn-logout:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dark);
}

html:not(.dark) .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}
html:not(.dark) .nav-links a[href="/accounts/register/"] {
  color: var(--primary) !important;
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-full { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

button:not(.hamburger):not(.user-menu-close):not(.header-back-btn):not(.dark-toggle):not(.featured-scroll-btn):not(.password-toggle):not(.chat-attach-remove),
input[type="button"],
input[type="submit"],
input[type="reset"] {
  border-radius: var(--btn-radius);
}

.btn-primary  { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); opacity: 1; }
.btn-outline  { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); opacity: 1; }
.btn-white    { background: white; color: var(--primary); }
.btn-white:hover { background: #f8f8f8; opacity: 1; }
.btn-success  { background: var(--success); color: white; }
.btn-success:hover { background: var(--success-dark); opacity: 1; }
.btn-info     { background: var(--blue-bg); color: var(--blue); }
.btn-warning  { background: #FEF9C3; color: var(--amber); }
.btn-danger   { background: var(--red-bg); color: var(--red); }
.btn-search   { background: var(--primary); color: white; padding: 12px 28px; font-size: 15px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: background 0.2s; }
html.dark .btn-danger,
html.dark .btn-danger:hover {
  background: rgba(248, 113, 113, 0.18) !important;
  color: #fecaca !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important;
}
html.dark .btn-outline,
html.dark .btn-outline:hover {
  color: var(--text-dark) !important;
  border-color: rgba(248, 216, 120, 0.45) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.btn-search:hover { background: var(--primary-light); }
.btn-search-icon {
  padding: 0;
  width: 52px;
  min-width: 52px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-search-go {
  border-radius: 50% !important;
  width: 46px;
  min-width: 46px;
  height: 46px;
  margin: 1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.btn-search-go i {
  font-size: 15px;
  color: white;
}
.btn-logout   { background: transparent; color: rgba(255,255,255,0.85); border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--radius-sm); padding: 5px 14px; font-size: 14px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-logout:hover { background: rgba(255,255,255,0.12); color: white; }

/* ── Dark mode toggle ────────────────────────── */
.dark-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 0;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.dark-toggle i {
  font-size: 16px;
  line-height: 1;
}
.dark-toggle:hover { background: rgba(255,255,255,0.2); }

/* ── Hamburger (mobile only) ─────────────────── */
.hamburger {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  min-height: 2px;
  max-height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  font-size: 0;
  line-height: 0;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
  color: white;
  text-align: center;
  padding: 3.5rem 1.5rem 2.75rem;
  position: relative;
  overflow: hidden;
}
.hero-landing {
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(45, 10, 10, 0.82) 0%,
    rgba(107, 26, 26, 0.72) 45%,
    rgba(45, 10, 10, 0.78) 100%
  );
  z-index: 0;
}
.hero-overlay-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% 8%, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.hero-headline-block {
  text-align: center;
}
.hero-compact {
  padding: 2.75rem 1.5rem 2rem;
}
.hero-compact .hero-headline-block {
  margin-bottom: 1rem;
}
.hero-compact .hero-cta-row {
  margin-bottom: 1.15rem;
}
.hero-compact .hero-count {
  margin-top: 0.85rem;
  margin-bottom: 0;
}
.hero h1 {
  font-size: 2.55rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero h1 span { color: var(--accent); }
.hero-purpose {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.97);
  margin-bottom: 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.hero-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  margin: 1.15rem 0 0.85rem;
}
.hero .hero-trust-stats {
  margin-top: 0.85rem;
  margin-bottom: 0;
}
/* Popular searches removed — trust stats sit directly at hero bottom */
.hero .hero-trust-stats {
  margin-top: 1rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.btn-hero-find,
.btn-hero-post,
.btn-hero-both {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 128px;
  padding: 0.58rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-hero-find:hover,
.btn-hero-post:hover,
.btn-hero-both:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  opacity: 1;
}
.btn-hero-find {
  background: #22c55e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-hero-find:hover { background: #16a34a; color: #fff; }
.btn-hero-post {
  background: #ef4444;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-hero-post:hover { background: #dc2626; color: #fff; }
.btn-hero-post-secondary {
  background: #f97316;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-hero-post-secondary:hover { background: #ea580c; color: #fff; }
.btn-hero-both {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  min-width: 0;
  font-size: 13px;
  padding: 0.58rem 0.95rem;
}
.btn-hero-both:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  border-color: #fff;
}
/* Hero Find/Post CTAs keep light-mode colours in dark theme */
html.dark .hero-landing .btn-hero-find {
  background: #22c55e;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
html.dark .hero-landing .btn-hero-find:hover {
  background: #16a34a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
html.dark .hero-landing .btn-hero-post {
  background: #ef4444;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
html.dark .hero-landing .btn-hero-post:hover {
  background: #dc2626;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
html.dark .hero-landing .btn-hero-both {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
html.dark .hero-landing .btn-hero-both:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  border-color: #fff;
}
html.dark .hero-journey-link:hover {
  color: #f5d0d0;
  background: rgba(139, 32, 32, 0.35);
}
html.dark .hero-popular-chip:hover {
  color: #f0c8c8;
  background: rgba(139, 32, 32, 0.4);
  border-color: var(--accent);
}
html.dark .hero-landing .hero-popular-chip:hover,
html.dark .hero-landing button.hero-popular-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero-trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.1rem;
}
.hero-trust-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}
.hero-trust-stat i { opacity: 0.9; font-size: 10px; }
.hero-trust-stat strong { font-weight: 800; color: #fff; }
.hero-popular-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.hero-popular-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.15rem;
}
.hero-popular-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-body);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hero-popular-chip:hover {
  background: var(--green-bg);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.hero-journeys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  text-align: left;
}
.hero-journey-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-journey-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-journey-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero-journey-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.hero-journey-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.hero-journey-link i {
  width: 16px;
  opacity: 0.9;
  font-size: 12px;
}
.hero-filters {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}
.hero-tagline {
  font-size: 13px;
  opacity: 0.82;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.hero p { font-size: 15px; opacity: 0.88; margin-bottom: 1.75rem; }

.search-form {
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin: 0 auto;
  align-items: stretch;
}
.search-form-hero {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-md);
  padding: 6px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.search-field-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
}
.search-field-icon {
  position: absolute;
  left: 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}
.search-field-loading {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: homeSearchSpin 0.7s linear infinite;
}
@keyframes homeSearchSpin {
  to { transform: rotate(360deg); }
}
/* ── Search clear (X) button ── */
.search-clear-btn {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s, transform 0.1s;
  z-index: 5;
  padding: 0;
}
.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-50%) scale(1.1);
}
.search-clear-btn[hidden] { display: none !important; }
/* Shift loading spinner left when clear btn might show */
.search-form-hero .search-field-loading { right: 2.2rem; }
/* Give the input enough right padding so text doesn't hide behind the X */
.search-form-hero input[type="search"] { padding-right: 2.4rem; }
.search-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 42px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  color: #fff;
  border: none;
  background: transparent;
  box-shadow: none;
}
.hero-search-glass {
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
}
.search-form-live {
  gap: 0;
}
.search-form-live .search-field-wrap {
  width: 100%;
}
.search-form-live input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
.search-form-live input[type="search"]::-webkit-search-decoration,
.search-form-live input[type="search"]::-webkit-search-cancel-button,
.search-form-live input[type="search"]::-webkit-search-results-button,
.search-form-live input[type="search"]::-webkit-search-results-decoration,
.search-form-live input[type="search"]::-webkit-list-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-form-glass.search-form-live {
  padding: 4px 6px;
}
.search-form-glass.search-form-live .search-field-wrap input {
  border-radius: calc(var(--radius-md) - 2px);
}
.live-results-search.search-form-live .search-field-icon {
  color: var(--text-muted);
}
.live-results-search.search-form-live input[type="search"] {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 15px;
}
.live-results-search.search-form-live input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.1);
}
.search-form-glass {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: var(--radius-md);
  padding: 6px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.search-form-glass:focus-within {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.search-form-glass .btn-search {
  flex-shrink: 0;
  width: 42px;
  height: 46px;
  min-width: 42px;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-form-glass .btn-search:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}
/* Hero search glass keeps light-mode glass effect in dark theme */
html.dark .hero-landing .hero-search-glass {
  background: transparent !important;
}
html.dark .hero-landing .search-form-glass {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
html.dark .hero-landing .search-form-glass:focus-within {
  border-color: rgba(255, 255, 255, 0.48) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
html.dark .hero-landing .search-form-glass .btn-search {
  background: transparent;
  border: none;
  color: #fff;
}
html.dark .hero-landing .search-form-glass .btn-search:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.location-intel {
  margin-top: 0.85rem;
  padding-top: 0;
  border-top: none;
}
.location-near-you {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
}
.location-near-you-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
}
.location-near-you-main > i {
  color: var(--accent);
}
.location-near-you-label {
  font-weight: 700;
  color: #fff;
}
.location-near-you-place {
  font-weight: 600;
  color: var(--accent);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
}
.location-radius-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
button.hero-chip-btn {
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hero-landing .hero-popular-chip.is-active,
.hero-landing button.hero-popular-chip.is-active {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(232, 160, 160, 0.35);
}
html.dark .hero-landing .hero-popular-chip.is-active,
html.dark .hero-landing button.hero-popular-chip.is-active {
  color: #fff;
}

/* Employer features (homepage) */
.employer-features-section {
  padding: 2.25rem 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-light);
}
.employer-features-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.employer-features-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.support-setup-steps,
.job-payment-step-list {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.support-setup-steps li,
.job-payment-step-list li {
  margin-bottom: 0.45rem;
}
.btn-white-muted {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
.employer-features-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 0.25rem;
}
.employer-features-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.25rem;
}
.employer-features-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}
.employer-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}
.employer-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.employer-feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.employer-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.employer-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.employer-feature-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Dashboard brain strip (mirrors homepage) */
.dashboard-hiring-toolkit {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.dashboard-hiring-toolkit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.dashboard-hiring-toolkit-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.25rem;
}
.dashboard-toolkit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}
.dashboard-toolkit-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dashboard-toolkit-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}
.dashboard-hiring-toolkit + .dashboard-seeker-toolkit {
  margin-top: 0.85rem;
}
.dashboard-hiring-toolkit-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.intel-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}
.intel-hub-toolbar .page-local-back {
  margin-bottom: 0;
}
.intel-hub-mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.intel-hub-mail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.employer-hub-tabs .seeker-hub-tab {
  flex: 1 1 calc(25% - 0.35rem);
}
.employer-match-groups {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.employer-match-group {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.employer-match-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}
.employer-match-people {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.employer-match-people li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 13px;
}
.employer-match-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-bg, #fbf0f0);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.employer-match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.employer-match-name {
  font-weight: 700;
  color: var(--text-dark);
}
.employer-match-score {
  margin-left: auto;
  width: 32px;
  height: 32px;
  font-size: 11px;
}
html.dark .employer-match-group {
  background: var(--bg);
  border-color: var(--border);
}
.dashboard-near-you-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--green-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
}
.dashboard-near-you-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--text-body);
}
.dashboard-near-you-main i {
  color: var(--primary);
}
.dashboard-trust-strip {
  margin-bottom: 1.25rem;
}
.dashboard-trust-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .dashboard-toolkit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Mobile homepage: search + CTAs only — chips & stats move below fold on desktop */
  .hero-compact {
    padding: 1.75rem 1rem 1.25rem;
  }
  .hero-compact .hero-headline-block {
    margin-bottom: 0.75rem;
  }
  .hero-compact .hero-cta-row {
    margin-bottom: 0.85rem;
  }
  .hero-compact h1 {
    font-size: 1.45rem;
    line-height: 1.2;
  }
  .hero-search-glass {
    margin-top: 0;
  }
}
@media (max-width: 560px) {
  .dashboard-toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Donate slot */
.donate-slot {
  margin: 0;
}
.donate-slot-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(135deg, var(--tier-paid-bg) 0%, var(--surface) 100%);
  border: 1px solid var(--tier-paid-border);
  border-radius: var(--radius-md);
}
.donate-slot-link {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.donate-slot-link:hover {
  border-color: var(--tier-paid-icon);
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.14);
  color: inherit;
}
.donate-slot-link:focus-visible {
  outline: 2px solid var(--tier-paid-icon);
  outline-offset: 2px;
}
.donate-slot-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tier-paid-icon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.donate-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 700;
  box-sizing: border-box;
  pointer-events: none;
  background: var(--tier-paid-icon);
  border-color: var(--tier-paid-icon);
}
.donate-slot-btn:hover {
  background: var(--tier-paid-fg);
  border-color: var(--tier-paid-fg);
}
.donate-slot-copy strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.donate-slot-copy p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Global save / action feedback toasts */
.honeybee-toast-root {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(92vw, 420px);
  pointer-events: none;
}
.honeybee-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.honeybee-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.honeybee-toast-success {
  background: var(--success-bg);
  color: var(--success-dark);
  border: 1px solid var(--success-border);
}
.honeybee-toast-success i {
  color: var(--success);
}
.honeybee-toast-error {
  background: var(--red-bg);
  color: var(--primary-dark);
  border: 1px solid #f5c2c7;
}
.honeybee-toast-info {
  background: #eef4ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.honeybee-toast i { margin-top: 0.1rem; flex-shrink: 0; }
@media (max-width: 768px) {
  .honeybee-toast-root {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    transform: none;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
  }
  body.bottom-nav-collapsed .honeybee-toast-root {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
  .honeybee-toast {
    align-items: center;
    text-align: left;
    padding: 0.65rem 0.85rem;
    font-size: 13px;
  }
  .apply-success-flash {
    width: 100%;
    max-width: none;
    text-align: left;
  }
  .apply-success-flash .msg-success {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }
}

/* Settings — member search privacy */
.settings-privacy-card {
  margin-bottom: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-light);
  background: var(--surface);
}
.settings-privacy-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}
.settings-privacy-head-text {
  min-width: 0;
}
.settings-privacy-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.settings-privacy-icon i {
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}
.settings-privacy-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.settings-privacy-lead {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.settings-privacy-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--card-bg, #fff);
  position: relative;
}
.settings-privacy-switch {
  width: 44px;
  height: 24px;
  min-width: 44px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: background 0.2s ease;
}
.settings-privacy-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.settings-privacy-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.settings-privacy-toggle input:checked + .settings-privacy-switch {
  background: var(--primary);
}
.settings-privacy-toggle input:checked + .settings-privacy-switch::after {
  transform: translateX(20px);
}
.settings-privacy-toggle input:focus-visible + .settings-privacy-switch {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
html.dark .settings-privacy-toggle {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .settings-privacy-copy,
html.dark .settings-privacy-copy strong,
html.dark .settings-privacy-detail {
  color: var(--text-body);
}
html.dark .settings-privacy-detail strong {
  color: var(--text-dark);
}
html.dark .settings-privacy-footnote {
  color: var(--text-muted);
}
html.dark .settings-privacy-lead {
  color: var(--text-muted);
}
html.dark .settings-privacy-title {
  color: var(--text-dark);
}
html.dark .discovery-pref-label,
html.dark .discovery-pref-label strong {
  color: var(--text-body);
}
html.dark .discovery-pref-label small {
  color: var(--text-muted);
}
.settings-privacy-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}
.settings-privacy-copy strong {
  color: var(--text-dark);
  font-size: 15px;
}
.settings-privacy-footnote,
.settings-discovery-save-hint,
.settings-inline-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.settings-inline-note-icon {
  width: 1rem;
  min-width: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
}
.settings-inline-note-icon i {
  font-size: 0.85rem;
  line-height: 1;
}
.settings-privacy-pref-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.settings-privacy-pref-row.is-saved .settings-privacy-toggle {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(139, 32, 32, 0.12);
}
.settings-privacy-pref-toggle {
  width: 100%;
}
.settings-privacy-detail {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.45;
}
.settings-privacy-detail-muted {
  font-size: 12px;
  margin-top: 0.35rem;
}
.settings-privacy-info-card {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
}
.settings-privacy-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
.settings-privacy-info-block {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.settings-privacy-info-block h3 {
  margin: 0 0 0.4rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.settings-privacy-info-block h3 i {
  color: var(--primary);
  font-size: 0.85rem;
}
.settings-privacy-info-block p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
html.dark .settings-privacy-info-block {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .settings-privacy-info-block h3 {
  color: var(--text-dark);
}
html.dark .settings-privacy-info-block p {
  color: var(--text-body);
}

/* Support / donate page */
.support-page { max-width: 640px; margin: 0 auto 3rem; }
.support-hero {
  text-align: center;
  padding: 1.5rem 1.25rem;
  margin: 0.75rem 0 1rem;
}
.support-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.support-hero h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.support-hero p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.support-section { padding: 1.15rem 1.25rem; margin-bottom: 0.85rem; }
.support-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.support-mpesa-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--green-bg);
  margin: 0.65rem 0;
}
.support-mpesa-number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
}
.support-note { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* Advertise / sponsors page */
.advertise-page { max-width: 720px; margin: 0 auto 3rem; }
.advertise-hero {
  text-align: center;
  padding: 1.5rem 1.25rem;
  margin: 0.75rem 0 1rem;
}
.advertise-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.advertise-hero h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.advertise-hero p { margin: 0; color: var(--text-muted); line-height: 1.55; }
.advertise-section { padding: 1.15rem 1.25rem; margin-bottom: 0.85rem; }
.advertise-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.advertise-placement-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.advertise-placement-row {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-soft, #fafbfc);
}
.advertise-placement-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.25rem;
}
.advertise-placement-size {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}
.advertise-placement-row p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.advertise-slot-id {
  display: none;
}
.advertise-placement-format {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.advertise-preset-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(127, 29, 29, 0.18);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.06), rgba(127, 29, 29, 0.02));
}
.advertise-preset-banner > i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}
.advertise-preset-banner strong { display: block; margin-bottom: 0.15rem; }
.advertise-preset-size {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.15rem;
}
.advertise-preset-detail {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.advertise-email-hint { margin-top: 0; }
.advertise-form .field-hint {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.advertise-slot-id {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 10px;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text-light);
}
.advertise-rules-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.advertise-form .field { margin-bottom: 0.75rem; }
.settings-logout-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.settings-logout-block .logout-form {
  display: block;
  margin-top: 0.65rem;
}
.settings-logout-block .btn-logout-themed {
  width: 100%;
  justify-content: center;
}

.support-donate-btn { margin-top: 0.35rem; }
.support-promise ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.support-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.support-pay-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-soft, #fafbfc);
  box-shadow: 0 8px 24px rgba(45, 10, 10, 0.04);
}
.support-pay-card h3 { margin: 0; font-size: 1rem; }
html.dark .support-pay-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(139, 32, 32, 0.14));
  border-color: rgba(248, 216, 120, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}
html.dark .support-pay-card h3,
html.dark .support-pay-card p,
html.dark .support-pay-card dt,
html.dark .support-pay-card dd,
html.dark .support-pay-card strong {
  color: var(--text-dark);
}
html.dark .support-pay-card .support-note {
  color: var(--text-muted);
}
.support-pay-logo { display: block; margin-bottom: 0.25rem; }
.support-pay-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.back-link-plain {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.pro-gallery-drop-uploading { opacity: 0.65; pointer-events: none; }
.thumbnail-source-picker {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}
.thumbnail-source-header strong { display: block; margin-bottom: 0.25rem; }
.thumbnail-source-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-light);
  margin: 0.5rem 0 0.35rem;
}
.thumb-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.thumb-source-btn.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(45, 10, 10, 0.1);
}
html.dark .thumb-source-btn.is-active {
  background: #2a3048;
  color: #f8d878;
}
.thumbnail-source-logo-preview {
  border-radius: 4px;
  object-fit: cover;
}
.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.25rem 0 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 76px;
  z-index: 40;
  background: var(--bg, #fff);
}
html.dark .dashboard-tabs {
  background: var(--bg, #12141c);
}
.dashboard-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: var(--bg-soft, #f1f5f9);
  color: var(--text-muted);
}
.dashboard-tab.is-active .dashboard-tab-count {
  background: var(--primary);
  color: #fff;
}
.dashboard-section-count {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--text-muted);
}
.dashboard-tab-panel .dashboard-workspace-block {
  margin-top: 0;
}
.dashboard-mission-card {
  padding: 1rem 1.1rem;
}
.dashboard-mission-headline {
  margin: 0.35rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}
.dashboard-mission-subline {
  margin-top: 0.15rem;
}
.dashboard-mission-group {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}
.dashboard-mission-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.dashboard-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.dashboard-mission-grid-core {
  margin-top: 0.85rem;
}
.dashboard-mission-tile {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-mission-tile:hover {
  border-color: var(--primary-light, #f0d878);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.06));
}
.dashboard-mission-icon {
  font-size: 12px;
  color: var(--primary);
  opacity: 0.9;
}
.dashboard-mission-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
}
.dashboard-mission-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}
.dashboard-mission-hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}
.dashboard-mission-tile-green .dashboard-mission-value { color: var(--success, #15803d); }
.dashboard-mission-tile-maroon .dashboard-mission-value { color: var(--primary); }
.dashboard-mission-tile-gold .dashboard-mission-value { color: #b45309; }
.dashboard-mission-tile-alert .dashboard-mission-value { color: #c2410c; }
.drafts-bulk-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.drafts-bulk-toolbar {
  display: none;
}
.drafts-select-all-label {
  display: none;
}
.draft-row-selectable {
  align-items: center;
}
.draft-select-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  flex-shrink: 0;
  align-self: center;
  width: 28px;
}
.draft-select-wrap input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.drafts-delete-all-btn {
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
}
.drafts-delete-all-btn:hover {
  background: #fef2f2;
  border-color: #b91c1c;
}
.dashboard-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--chip-radius);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dashboard-tab:hover {
  background: var(--bg-soft);
  color: var(--text-dark);
}
.dashboard-tab.is-active {
  background: var(--primary-bg, #fff8e7);
  border-color: var(--primary-light, #f0d878);
  color: var(--primary-dark, var(--primary));
}
.dashboard-tab.is-active i {
  color: var(--icon-theme);
}
html.dark .dashboard-tab.is-active {
  background: rgba(139, 32, 32, 0.42);
  border-color: #c96a6a;
  color: #fff;
}
html.dark .dashboard-tab.is-active i {
  color: var(--icon-theme);
}
html.dark .dashboard-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e8eaed;
}
html.dark .dashboard-tab-count {
  background: rgba(255, 255, 255, 0.12);
  color: #e8eaed;
}
html.dark .dashboard-tab.is-active .dashboard-tab-count {
  background: var(--primary);
  color: #fff;
}
html.dark .badge-pending {
  background: rgba(139, 32, 32, 0.35);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
html.dark .badge-pending i { color: #fca5a5; }
html.dark .badge-reviewed {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.45);
}
html.dark .badge-shortlisted {
  background: rgba(34, 139, 34, 0.28);
  color: #bbf7d0;
  border-color: rgba(134, 239, 172, 0.4);
}
html.dark .badge-rejected {
  background: rgba(185, 28, 28, 0.28);
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.35);
}
html.dark .badge-draft {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}
html.dark .badge-active {
  background: rgba(34, 139, 34, 0.28);
  color: #bbf7d0;
  border-color: rgba(134, 239, 172, 0.4);
}
html.dark .badge-closed {
  background: rgba(100, 116, 139, 0.28);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}
html.dark .dashboard-page .btn-outline {
  border-color: rgba(248, 216, 120, 0.45);
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.04);
}
html.dark .dashboard-page .btn-outline:hover {
  background: rgba(139, 32, 32, 0.35);
  border-color: #f8d878;
  color: #fff;
}
html.dark .dashboard-page .btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
html.dark .dashboard-view-cv-link {
  color: #fff !important;
}
html.dark .drafts-delete-all-btn {
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.45);
  background: rgba(185, 28, 28, 0.15);
}
html.dark .drafts-delete-all-btn:hover {
  background: rgba(185, 28, 28, 0.35);
  color: #fff;
}
html.dark #drafts-delete-selected,
html.dark .drafts-bulk-form .btn-danger.btn-sm {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #fecaca !important;
  border: 1px solid rgba(248, 113, 113, 0.5) !important;
}
html.dark #drafts-delete-selected:hover:not(:disabled),
html.dark .drafts-bulk-form .btn-danger.btn-sm:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.32) !important;
  color: #fff !important;
  border-color: #f87171 !important;
}
html.dark #drafts-delete-selected:disabled,
html.dark .drafts-bulk-form .btn-danger.btn-sm:disabled {
  opacity: 0.5;
  color: #9ca3af !important;
  border-color: var(--border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
html.dark .dashboard-mission-tile {
  background: #1f2335;
  border-color: #5a6578;
  color: #e8eaed;
}
html.dark .dashboard-mission-label {
  color: #e8eaed;
}
html.dark .dashboard-mission-hint {
  color: #b8bcc8;
}
html.dark .dashboard-section-count {
  color: #b8bcc8;
}
.inbox-sponsored-wide {
  margin-top: 0.25rem;
}
.inbox-sponsored-wide .partner-slot {
  margin: 0;
  width: 100%;
}
.inbox-sponsored-wide .partner-slot-banner .partner-slot-placeholder {
  min-height: 88px;
  flex-direction: row;
}
.application-inbox-schedule-btn {
  text-align: center;
  justify-content: center;
}
.application-inbox-hint {
  margin: 0.35rem 0 0.75rem;
  text-align: center;
}
a.btn-primary-solid,
.dashboard-view-cv-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.dashboard-tab-panel.is-active .table-card {
  position: relative;
  z-index: 1;
}
.dashboard-tab-panel {
  display: none !important;
}
.dashboard-tab-panel.is-active {
  display: block !important;
}
.dashboard-workspace .dashboard-tabs {
  margin-top: 0;
}
.job-detail-tips-card {
  padding: 1.25rem;
  background: var(--primary-bg, #fbf0f0);
  border-color: var(--border-light);
}
.job-detail-tips-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.55;
}
.pro-gallery-drop-uploading { opacity: 0.65; pointer-events: none; }
#listings-section,
#drafts-section {
  scroll-margin-top: 5.5rem;
}
.chat-bubble-honeybee {
  align-self: center;
  max-width: 92%;
  background: var(--surface);
  border: 1px solid var(--primary-light);
  color: var(--text-body);
  box-shadow: var(--shadow);
}
.chat-bubble-honeybee .chat-bubble-meta { justify-content: center; }
.chat-bubble-honeybee-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.chat-bubble-honeybee-label i {
  color: var(--icon-theme);
  font-size: 12px;
}
.chat-header-context .chat-context-brand {
  font-weight: 800;
  color: var(--primary);
  text-transform: lowercase;
}
html.dark .chat-bubble-honeybee {
  background: rgba(26, 29, 39, 0.95);
  border-color: #c96a6a;
  color: var(--text-body);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
html.dark .chat-bubble-honeybee-label {
  color: var(--accent);
}
html.dark .chat-bubble-honeybee-label i {
  color: var(--icon-theme);
}
html.dark .chat-header-context .chat-context-brand {
  color: var(--accent);
}
.application-employer-actions { display: flex; flex-direction: column; gap: 1rem; }
.application-action-form { display: flex; flex-direction: column; gap: 0.5rem; }
.application-action-form label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.application-action-form input[type="datetime-local"] {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}
.application-viewed-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}
html.dark .donate-slot-inner {
  background: linear-gradient(135deg, #2a2030 0%, #1f2335 100%);
  border-color: #5a6578;
}
html.dark .donate-slot-copy strong {
  color: #f8f9fc;
}

@media (max-width: 1000px) {
  .employer-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .employer-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-near-you {
    flex-direction: column;
    align-items: center;
  }
}
.hero-landing .hero-popular-searches {
  margin-top: 0.75rem;
}
.hero-landing .hero-gigs-block {
  margin-top: 0.85rem;
  text-align: center;
}
.hero-landing .hero-gigs-label {
  margin: 0 0 0.55rem;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.hero-landing .hero-gigs-label i {
  margin-right: 0.35rem;
  color: var(--accent);
}
.hero-landing .hero-gig-filters {
  justify-content: center;
}
.hero-landing .hero-gig-chip {
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.88;
}
.hero-landing .hero-gig-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  opacity: 0.96;
}
.hero-landing .hero-gig-chip.is-active {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--accent);
  color: #fff;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(232, 160, 160, 0.35);
}
.hero-landing .hero-gig-chip .gig-quick-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-landing .hero-gig-chip.is-active .gig-quick-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
html.dark .hero-landing .hero-gig-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
html.dark .hero-landing .hero-gig-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
html.dark .hero-landing .hero-gig-chip.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(232, 160, 160, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 160, 160, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.dark .hero-landing .hero-gig-chip .gig-quick-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html.dark .hero-landing .hero-gig-chip:hover .gig-quick-icon,
html.dark .hero-landing .hero-gig-chip.is-active .gig-quick-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}
html.dark .hero-landing .hero-gigs-label i {
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.85;
}
.dashboard-honeypot-block {
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border-light);
}
.dashboard-honeypot-stats {
  margin-top: 0;
}
.dashboard-honeypot-stats.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
  gap: 0.2rem;
}
.dashboard-honeypot-stats .stat-card-enhanced {
  padding: 0.18rem 0.2rem;
  min-height: 0;
  border-radius: 6px;
}
.dashboard-honeypot-stats .stat-label {
  font-size: 6px;
  letter-spacing: 0.02em;
  margin-bottom: 0.05rem;
  line-height: 1.1;
}
.dashboard-honeypot-stats .stat-value {
  font-size: 0.72rem;
  line-height: 1;
}
.hero-landing .hero-popular-label {
  color: rgba(255, 255, 255, 0.88);
}
.hero-landing .hero-popular-chip {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.hero-landing .hero-popular-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero-near-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}
.hero-near-label i {
  font-size: 12px;
  opacity: 0.9;
}
.hero-near-label strong {
  font-weight: 700;
  color: white;
}
.hero-near-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-near-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.hero-near-btn-muted {
  opacity: 0.88;
}
.hero-landing .search-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.hero-landing .search-form input:focus {
  outline: none;
}

/* ── Stats strip ─────────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.stats-strip strong { color: var(--primary); font-weight: 700; }

/* ── Container ───────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Layout (sidebar + main) ─────────────────── */
.jobs-page-streamlined {
  margin-top: 0;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.home-results-section {
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.home-results-section-primary {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(45, 10, 10, 0.08);
}
.home-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--green-bg) 0%, var(--surface) 100%);
}
.home-results-header-split {
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
}
.home-results-header-split .home-results-heading {
  flex: 1;
  min-width: 0;
}
.home-results-header-split .home-results-title {
  margin: 0;
}
.home-results-header-split .view-toolbar-inline {
  flex-shrink: 0;
  margin-left: auto;
}
.home-results-header-split .view-controls {
  flex-wrap: nowrap;
  gap: 0.3rem;
}
.home-results-header-split .view-btn {
  padding: 0.38rem 0.48rem;
  min-width: 32px;
  min-height: 32px;
}
.home-results-header-split .view-cols-btn {
  min-width: 26px;
  padding: 0.38rem 0.4rem;
  font-size: 11px;
}
.home-results-header-split .view-controls-divider {
  height: 18px;
  margin: 0 0.1rem;
}
@media (max-width: 640px) {
  .home-results-header-split {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .home-results-header-split .home-results-heading {
    width: 100%;
  }
  .home-results-header-split .home-results-title {
    align-items: center;
    line-height: 1.25;
  }
  .home-results-header-split .home-results-title i {
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
  }
  .home-results-header-split .view-toolbar-inline {
    width: 100%;
    margin-left: 0;
  }
  .home-results-header-split .view-controls {
    overflow-x: auto;
    max-width: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-results-header-split .view-controls::-webkit-scrollbar {
    display: none;
  }
}
.home-results-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.home-results-title i {
  color: var(--primary);
  font-size: 1rem;
}
.home-results-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.home-results-body {
  padding: 1rem 1.15rem 1.15rem;
}
.view-toolbar-inline {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.gig-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gig-quick-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
}
.gig-quick-filter:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.gig-quick-filter.is-active {
  border-color: var(--primary);
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.gig-quick-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.gig-quick-filter.is-active .gig-quick-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fce8e8;
}
html.dark .gig-quick-filter:hover {
  color: #f5d0d0;
  border-color: var(--accent);
}
html.dark .gig-quick-filter.is-active {
  background: var(--primary);
  color: #fff;
}
html.dark .gig-quick-filter.is-active .gig-quick-icon {
  color: #fff;
}

/* Dark mode — high-contrast live results (accessibility) */
html.dark .home-results-section {
  background: #161922;
  border-color: #4a5568;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
html.dark .home-results-section-primary {
  border-color: #c97a7a;
}
html.dark .home-results-header {
  background: linear-gradient(180deg, #2a2030 0%, #161922 100%);
  border-bottom-color: #4a5568;
}
html.dark .home-results-title {
  color: #fce8e8;
  font-size: 1.2rem;
}
html.dark .home-results-sub {
  color: #d1d9e6;
  font-size: 14px;
  font-weight: 500;
}
html.dark .home-results-body {
  background: #161922;
}
html.dark .gig-quick-filter {
  background: #1f2335;
  border-color: #5a6578;
  color: #eef1f6;
  font-size: 14px;
}
html.dark .featured-jobs-tab {
  background: #1f2335;
  border-color: #5a6578;
  color: #eef1f6;
}
html.dark .featured-jobs-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: #e8a0a0;
}
html.dark .jobs-page-streamlined .job-card {
  background: #1f2335;
  border-color: #5a6578;
}
html.dark .jobs-page-streamlined .job-card .job-card-title,
html.dark .jobs-page-streamlined .job-card .job-title {
  color: #f8f9fc;
  font-weight: 700;
}
html.dark .jobs-page-streamlined .job-card .job-company,
html.dark .jobs-page-streamlined .job-card .job-card-fact {
  color: #c8d0dc;
  font-size: 13px;
}
html.dark .jobs-pagination-summary {
  color: #d1d9e6;
  font-size: 14px;
}
html.dark .jobs-page-btn {
  background: #1f2335;
  border-color: #5a6578;
  color: #f0f2f6;
}
html.dark .jobs-page-btn-active {
  background: var(--primary);
  color: #fff;
  border-color: #e8a0a0;
}

.featured-filter-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}
.featured-filter-inline .featured-filter-label {
  margin-bottom: 0;
}
.featured-filter-inline .featured-jobs-tabs-filter {
  margin-bottom: 0;
  flex: 1;
}

/* Success stories */
.success-stories-section {
  padding: 2.25rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}
.success-stories-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.success-stories-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 0.25rem;
}
.success-stories-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.25rem;
}
.success-stories-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.success-story-card {
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  position: relative;
}
.success-story-card-employer {
  border-left-color: var(--primary-mid);
}
.success-story-icon {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.success-story-quote {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  margin: 0 0 0.65rem;
}
.success-story-author {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}
.success-stories-page {
  max-width: 900px;
  margin: 2rem auto 3rem;
}
.success-stories-page-hero {
  margin-bottom: 1.75rem;
}
.success-stories-page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.5rem;
}
.success-stories-page-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 42rem;
}
.success-stories-grid-full {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
}
.success-stories-cta {
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.success-stories-cta h2 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.success-stories-cta p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.success-stories-cta-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .success-stories-grid,
  .success-stories-grid-full {
    grid-template-columns: 1fr;
  }
}
.featured-filter-inline .featured-filter-label,
.featured-filter-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0;
  flex-shrink: 0;
}
.featured-jobs-tabs-filter {
  margin-bottom: 0;
}
.featured-jobs-tab.is-active {
  border-color: var(--primary);
  background: var(--primary-dark);
  color: #fff;
}
.featured-jobs-tab.is-active i {
  color: #fce8e8;
}
html.dark .featured-jobs-tab.is-active {
  background: var(--primary);
  color: #fce8e8;
}
html.dark .featured-jobs-tab:hover:not(.is-active) {
  color: #f5d0d0;
  border-color: var(--accent);
}

.featured-jobs-showcase {
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
  margin-top: 1.5rem;
  overflow: visible;
}
.featured-jobs-showcase .featured-jobs-container {
  max-width: 100%;
  overflow: visible;
}
.featured-jobs-showcase .featured-jobs-heading {
  color: var(--text-dark);
}
html.dark .featured-jobs-showcase .featured-jobs-heading,
html.dark .featured-jobs-heading {
  color: var(--text-dark);
}
html.dark .featured-job-card {
  background: #1f2335;
  border-color: #5a6578;
}
html.dark .featured-job-card:hover {
  border-color: var(--accent);
  background: #252b3d;
}
html.dark .featured-job-title {
  color: #f8f9fc;
}
html.dark .featured-job-meta,
html.dark .featured-job-salary {
  color: #c8d0dc;
}
html.dark .featured-scroll-btn {
  background: #1f2335;
  border-color: #5a6578;
  color: var(--accent);
}
html.dark .featured-scroll-btn:hover:not(:disabled) {
  background: rgba(139, 32, 32, 0.45);
  border-color: var(--accent);
  color: #fff;
}
.featured-showcase-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
}
.featured-jobs-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}
.featured-jobs-scroll-hint i {
  margin-right: 0.35rem;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .featured-jobs-scroll-hint {
    display: block;
  }
}

.home-trust-section {
  padding: 1.5rem 0 2rem;
  background: var(--bg);
}
.hero-trust-stats-inline {
  margin: 0;
  justify-content: center;
}
.hero-trust-stats-inline .hero-trust-stat {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-body);
}
.hero-trust-stats-inline .hero-trust-stat strong {
  color: var(--primary-dark);
}
.hero-trust-stats-inline .hero-trust-stat i {
  color: var(--primary);
}
html.dark .hero-trust-stats-inline .hero-trust-stat {
  background: #1f2335;
  border-color: #5a6578;
  color: #e8eaed;
}
html.dark .hero-trust-stats-inline .hero-trust-stat strong {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(232, 160, 160, 0.35);
}
html.dark .hero-trust-stats-inline .hero-trust-stat i {
  color: #e8a0a0;
}
html.dark .hero-count strong {
  color: #fce8e8;
  font-weight: 800;
}

.main-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.sidebar-column {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-align-spacer {
  display: none;
}

.jobs-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
}

@media (min-width: 769px) {
  .sidebar-column {
    position: sticky;
    top: 86px;
    align-self: flex-start;
  }

  .sidebar-align-spacer {
    display: block;
    flex-shrink: 0;
    min-height: var(--jobs-toolbar-block);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid transparent;
    box-sizing: border-box;
  }
}

/* ── Sidebar panels ──────────────────────────── */
.sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.sidebar-panel + .sidebar-panel {
  margin-top: 0.65rem;
}

/* legacy sidebar wrapper for other pages */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 86px;
  box-shadow: var(--shadow);
}

.sidebar-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-group {
  margin-bottom: 0.9rem;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.filter-form .btn-full {
  margin-top: 0.15rem;
  margin-bottom: 0.65rem;
  padding: 10px 16px;
}

.clear-filters-link {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  padding: 2px 0 0;
  transition: color 0.2s;
}

.clear-filters-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-list li {
  margin: 0;
  padding: 0;
}

.category-list a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-list a:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}

.category-list a.active {
  background: var(--primary-dark);
  color: white;
  font-weight: 600;
  border-color: var(--primary-dark);
}

/* legacy class kept for other pages */
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: visible;
}
.job-form-card {
  overflow: visible;
  padding: 1.35rem 1.4rem;
}
.job-form-page-wrap {
  margin-top: 1rem;
  max-width: 1100px;
  margin-bottom: 3rem;
  padding: 0 1rem 2rem;
}
.job-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
.job-form-main {
  min-width: 0;
}
.job-form-rail-right {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.job-form-rail {
  position: sticky;
  top: 84px;
}
.job-form-rail .live-results-tips,
.job-form-rail .donate-slot,
.job-form-rail .partner-slot {
  margin: 0;
}
.job-form-rail .live-results-tips {
  padding: 1rem 1.15rem;
}
.job-form-sponsored-wide {
  margin-top: 1.25rem;
}
@media (max-width: 1024px) {
  .job-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .job-form-rail {
    position: static;
    order: 2;
  }
  .job-form-main {
    order: 1;
  }
  .job-form-sponsored-wide {
    order: 3;
  }
}
.page-local-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 1.25rem;
}
.form-flash-msg { margin-bottom: 1rem; }
.job-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.job-form-actions .btn-primary { flex: 1; min-width: 140px; }
.job-form-tips {
  padding: 1.25rem 1.35rem;
  background: var(--primary-bg, #FBF0F0);
  border: 1px solid rgba(139, 32, 32, 0.12);
  margin-top: 1.5rem;
}
.job-form-tips-heading {
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.job-form-tips-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.65;
}
.job-form-tips-list li {
  margin-bottom: 0.45rem;
}
.job-form-tips-list li::marker {
  color: var(--primary);
}

.promote-page {
  margin: 2rem auto 3rem;
  max-width: 960px;
}
.promote-hero {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.promote-hero h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.promote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.promote-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.promote-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.promote-card h2 { font-size: 1.1rem; margin: 0; }
.promote-card-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.promote-card-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.promote-card-perks {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.55;
  flex: 1;
}
.promote-card-perks li { margin-bottom: 0.35rem; }
.promote-card-perks li::marker { color: var(--primary); }
.promote-ideas { padding: 1.25rem 1.5rem; }
.promote-ideas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
.promote-idea strong {
  display: block;
  font-size: 14px;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}
.promote-idea p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.promotion-apply-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 32, 32, 0.2);
  background: var(--primary-bg, #FBF0F0);
}
.promotion-apply-banner p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}
.badge-spotlight {
  background: linear-gradient(135deg, #f5c542, #e8a317);
  color: #4a3200;
  font-weight: 700;
}
.badge-urgent-hire {
  background: var(--red-bg);
  color: var(--red);
  font-weight: 700;
  animation: urgentPulse 2s ease-in-out infinite;
}
@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

.job-form-tips-body {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.8;
}
.input-date,
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color-scheme: light;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.input-date::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  width: 1.15rem;
  height: 1.15rem;
}
html.dark input[type="date"],
html.dark input[type="datetime-local"],
html.dark input[type="time"],
html.dark .input-date {
  color-scheme: dark;
  background: #1f2335;
  color: var(--text-dark);
  border-color: var(--border);
}
html.dark input[type="date"]::-webkit-calendar-picker-indicator,
html.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html.dark .input-date::-webkit-calendar-picker-indicator {
  filter: invert(0.88);
  opacity: 1;
}
.profile-trust-notice .section-hint {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-bg, #fff8e7);
  border: 1px solid var(--primary-light, #f0d878);
}
html.dark .profile-trust-notice .section-hint {
  background: rgba(139, 32, 32, 0.18);
  border-color: var(--border);
  color: var(--text-body);
}
html.dark .profile-trust-notice .section-hint strong {
  color: var(--text-dark);
}
html.dark .profile-trust-notice .section-hint i {
  color: var(--accent);
}
.settings-about-discovery {
  margin: 1.25rem 1.35rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.optional { font-weight: 400; color: var(--text-light); font-size: 12px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 440px;
  margin: 3rem auto;
  box-shadow: var(--shadow);
}

.stat-gray   { color: var(--text-muted); }

/* ── Job cards ───────────────────────────────── */
.job-card-wrap {
  position: relative;
  display: block;
  min-width: 0;
}
.job-card-wrap.is-menu-open {
  z-index: 25;
  position: relative;
}
.jobs-list.thumbnail-view .job-card-wrap {
  height: 100%;
}
.job-card-wrap.is-pinned .job-card {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(139, 32, 32, 0.15);
  position: relative;
}
.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  height: 100%;
}
.job-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.job-card-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.job-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--border-light);
  overflow: hidden;
}
.job-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.job-card-body {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  position: relative;
}
.job-card-head { flex: 1; min-width: 0; }
.job-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; line-height: 1.3; }
.job-company { font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 0; }
.job-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.job-card-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.job-card-menu-wrap { position: absolute; z-index: 4; flex-shrink: 0; }
.job-card-menu-thumb { display: none; top: 8px; right: 8px; }
.job-card-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.job-card-menu-btn:hover,
.job-card-menu-btn[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--green-bg);
}
.job-card-menu-panel {
  position: absolute;
  top: auto;
  bottom: calc(100% + 6px);
  right: 0;
  min-width: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  z-index: 40;
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}
.job-card-menu-panel:not([hidden]) {
  display: flex;
}
.job-card-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}
.job-card-menu-item:hover { background: var(--row-hover-bg); }
.job-card-menu-item.is-active,
.job-card-action-chip.is-active {
  color: var(--primary);
  background: var(--green-bg);
}
.job-card-icon-action {
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
}

/* Rich job cards (homepage + search) */
.job-card-rich {
  flex-direction: row;
  align-items: stretch;
  min-height: 120px;
}
.job-card-thumb {
  flex-shrink: 0;
  width: 110px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-light);
  border-right: 1px solid var(--border-light);
  overflow: hidden;
  text-decoration: none;
}
.job-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.job-card-thumb-logo {
  background: linear-gradient(145deg, var(--green-bg), var(--surface));
}
.job-card-thumb-logo span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.job-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  gap: 0.5rem;
}
.job-card-rich .job-card-link {
  flex: 1;
  gap: 0.45rem;
}
.job-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}
.job-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.job-card-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.35;
}
.job-card-fact i {
  color: var(--primary);
  font-size: 0.8rem;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}
.job-card-fact-salary {
  font-weight: 600;
  color: var(--text-dark);
}
.job-card-fact.is-muted,
.job-card-fact-salary.is-muted {
  color: var(--text-muted);
  font-weight: 500;
}
.job-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.job-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
  position: relative;
}
.job-card-rich .job-card-menu-wrap {
  position: relative;
  top: auto;
  right: auto;
}
.job-card-apply-btn {
  white-space: nowrap;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
}
.job-card-apply-btn i { margin-right: 0.25rem; }

/* Featured jobs strip */
.featured-jobs-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 2.25rem 0 2rem;
}
.featured-jobs-container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.featured-jobs-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 1.1rem;
}
.featured-jobs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}
.featured-jobs-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--chip-radius);
  background: var(--surface);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.featured-jobs-tab i { color: var(--primary); font-size: 0.75rem; }
.featured-jobs-tab.is-active {
  border-color: var(--primary);
  background: var(--green-bg);
  color: var(--primary-dark);
}
.featured-jobs-carousel {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}
.featured-scroll-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--chip-radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  box-shadow: var(--shadow);
}
.featured-scroll-btn:hover:not(:disabled) {
  background: var(--green-bg);
  border-color: var(--primary);
}
.featured-scroll-btn.is-disabled,
.featured-scroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.featured-jobs-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1rem;
  padding: 0.15rem 1rem 0.35rem 0.15rem;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}
.featured-jobs-scroll::-webkit-scrollbar {
  height: 6px;
}
.featured-jobs-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 999px;
}
.featured-jobs-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.featured-jobs-scroll::after {
  content: '';
  flex: 0 0 1rem;
}
.featured-job-card {
  flex: 0 0 min(272px, calc(100vw - 4.5rem));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.featured-job-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.featured-job-card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.featured-job-star { font-size: 0.9rem; line-height: 1.4; }
.featured-job-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}
.featured-job-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.featured-job-meta i { color: var(--primary); font-size: 0.72rem; width: 0.9rem; }
.featured-job-salary {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 0.15rem;
}
.featured-job-salary.is-muted {
  color: var(--text-muted);
  font-weight: 500;
}
.featured-jobs-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  padding: 1rem 0;
}

/* Employer trust logos — above footer */
.employer-logos-section {
  background: var(--bg);
  border-top: 1px solid var(--border-light);
  border-bottom: none;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}
.employer-logos-container {
  text-align: center;
}
.employer-logos-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 0.35rem;
}
.employer-logos-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 1.35rem;
}
.employer-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem 1rem;
  align-items: stretch;
}
.employer-logos-grid .employer-logo-tile:nth-child(n+6) {
  display: none;
}
.employer-logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  min-height: 88px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.employer-logo-tile:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.employer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.employer-logo-monogram {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), var(--primary-mid));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.employer-logo-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .employer-logo-tile:hover .employer-logo-name {
  color: #f5d0d0;
}
@media (max-width: 900px) {
  .employer-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .employer-logos-grid .employer-logo-tile:nth-child(n+5) {
    display: none;
  }
}
@media (max-width: 520px) {
  .employer-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Fast apply flow */
.apply-card-fast {
  max-width: 560px;
  margin: 0 auto;
}
.apply-fast-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.35rem;
}
.apply-fast-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.apply-form-fast .apply-cv-drop-prominent {
  border-width: 2px;
  border-style: dashed;
  border-color: var(--primary-light);
  background: var(--green-bg);
  padding: 1.35rem 1rem;
}
.apply-optional-details {
  margin: 0.75rem 0 1rem;
  font-size: 14px;
  color: var(--text-body);
}
.apply-optional-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}
.apply-submit-btn {
  margin-top: 0.5rem;
}
.apply-cv-error {
  font-size: 13px;
  color: var(--red);
  margin: 0.5rem 0 0;
  font-weight: 600;
}
.apply-cv-drop-error {
  border-color: var(--red) !important;
  background: #fef2f2 !important;
}
html.dark .apply-cv-drop-error {
  background: #2a1a1a !important;
  border-color: #e8a0a0 !important;
}
.apply-fast-footnote {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 1rem 0 0;
  line-height: 1.45;
}
.apply-fast-footnote i {
  color: var(--primary);
  margin-right: 0.25rem;
}
.field-optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Application success */
.apply-success-page {
  max-width: 620px;
  margin: 3rem auto 4rem;
}
.apply-success-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}
.apply-success-icon {
  width: 80px;
  height: 80px;
  background: var(--success-bg);
  border: 2px solid var(--success-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--success);
  margin: 0 auto 1.25rem;
}
.apply-success-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.apply-success-hero p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}
.apply-success-account-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-color: var(--success-border);
  background: linear-gradient(180deg, var(--success-bg) 0%, var(--surface) 100%);
}
.apply-success-account-copy {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.apply-success-account-hint {
  text-align: center;
  margin: 0.65rem 0 0;
}
.apply-success-job-card,
.apply-success-next-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.apply-success-job-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.apply-success-company-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
}
.apply-success-job-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}
.apply-success-job-company {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.apply-success-job-location {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.apply-success-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.apply-success-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 2rem;
  position: relative;
}
.apply-success-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.apply-success-steps {
  counter-reset: step;
}
.apply-success-steps li strong {
  font-size: 14px;
  color: var(--text-dark);
}
.apply-success-steps li span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.apply-success-reminder {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 13px;
  color: var(--success-dark);
  line-height: 1.5;
}
.auth-card .msg-success,
.auth-card .msg-error,
.auth-card .msg-info {
  margin-bottom: 1rem;
}
.apply-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile bottom navigation */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: stretch;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}
.bottom-nav.bottom-nav-hidden {
  transform: translateY(100%);
  box-shadow: none;
}
body.has-bottom-nav,
body:has(.bottom-nav) {
  padding-bottom: 0;
}
.bottom-nav-item {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.15s;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}
.bottom-nav-item i {
  font-size: 1.15rem;
}
.bottom-nav-item.is-active,
.bottom-nav-item:hover {
  color: var(--primary);
}
@media (max-width: 768px) {
  .bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    justify-items: stretch;
    align-items: stretch;
  }
  /* logout form lives in the grid — make it a first-class slot */
  .bottom-nav-logout-form {
    display: contents;
  }
  .bottom-nav-logout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.05rem;
    width: 100%;
    height: 100%;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    line-height: 1.2;
    overflow: hidden;
    transition: color 0.15s;
  }
  .bottom-nav-logout-btn i {
    font-size: 1.05rem;
  }
  .bottom-nav-logout-btn span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 0.6rem;
  }
  .bottom-nav-logout-btn:hover,
  .bottom-nav-logout-btn:active {
    color: var(--primary);
  }
  .bottom-nav-item {
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.35rem 0.05rem;
    overflow: hidden;
  }
  .bottom-nav-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 0.62rem;
  }
  .bottom-nav-item i {
    font-size: 1.05rem;
  }
  body.has-bottom-nav,
  body:has(.bottom-nav) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  body.bottom-nav-collapsed {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-cta-row {
    margin-bottom: 1.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .hero-cta-row .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    flex: 0 0 auto;
  }
  .btn-hero-find,
  .btn-hero-post,
  .btn-hero-both {
    min-width: 0;
    max-width: 300px;
    flex: 0 0 auto;
  }
  .hero-search-wrap {
    padding: 0.9rem;
  }
  .featured-jobs-section {
    padding: 1.75rem 0 1.5rem;
  }
  .featured-jobs-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .featured-jobs-showcase .featured-scroll-btn {
    display: none;
  }
  .featured-jobs-showcase .featured-jobs-carousel {
    gap: 0;
  }
  .featured-jobs-scroll {
    padding-right: 1rem;
    padding-left: 0;
  }
  .featured-job-card {
    flex: 0 0 min(260px, calc(100vw - 2.5rem));
  }
  .featured-scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  .jobs-page {
    margin-top: 1.5rem;
  }
  .auto-save-notification {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 769px) {
  body.has-bottom-nav,
  body:has(.bottom-nav) {
    padding-bottom: 0;
  }
}
.dashboard-fav-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}
.dashboard-fav-btn.is-active,
.dashboard-fav-btn.is-saved {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--green-bg);
}
.notification-prefs-card {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.notification-prefs-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0.35rem 0 1rem;
  line-height: 1.5;
}
.notification-prefs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.notification-pref-row.is-saved {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(139, 32, 32, 0.12);
}
.notification-pref-row {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.notification-pref-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}
.notification-pref-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.notification-pref-switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
}
.notification-pref-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.notification-pref-toggle input:checked + .notification-pref-switch {
  background: var(--primary);
}
.notification-pref-toggle input:checked + .notification-pref-switch::after {
  transform: translateX(16px);
}
.notification-pref-exposure {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.45rem 0 0 3rem;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.notification-pref-exposure i {
  color: var(--primary);
  flex-shrink: 0;
  line-height: 1;
}
.job-card-list-actions {
  display: none;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.5rem 1.1rem 0.85rem;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 4;
}
.job-card-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}
.job-card-action-chip:hover { border-color: var(--primary); color: var(--primary); }
.company-logo-sm {
  width: 34px !important;
  height: 34px !important;
  font-size: 13px !important;
  margin-bottom: 0 !important;
}
.listing-kind-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0.75rem 0 0.25rem;
}
.listing-kind-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
  transition: background 0.15s, border-color 0.15s;
}
.listing-kind-pill:hover,
.listing-kind-pill.is-active {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}
.app-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 420px;
}
.app-timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  font-size: 10px;
  color: var(--text-light);
}
.app-timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.app-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--surface);
  position: relative;
  z-index: 1;
}
.app-timeline-step.is-done .app-timeline-dot { background: var(--primary-mid); }
.app-timeline-step.is-active .app-timeline-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.15); }
.app-timeline-step.is-success .app-timeline-dot { background: var(--success); }
.app-timeline-step.is-rejected .app-timeline-dot { background: var(--primary-dark); }
.app-timeline-step.is-done .app-timeline-label,
.app-timeline-step.is-active .app-timeline-label { color: var(--text-body); font-weight: 600; }
.app-timeline-step.is-rejected .app-timeline-label { color: var(--primary-dark); font-weight: 600; }

/* ── Company logo avatar ─────────────────────── */
.company-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.company-logo-photo {
  padding: 0;
  background: var(--border-light);
  border: 1px solid var(--border);
}
.company-logo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-preview-pending {
  position: relative;
}
.gallery-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.pro-gallery-drop-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.category-custom-field .hint {
  margin-top: 0.35rem;
  font-size: 11px;
}

/* ── View toolbar ────────────────────────────── */
.view-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: var(--jobs-toolbar-block);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-sizing: border-box;
}
.view-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn:hover { border-color: var(--primary); color: var(--primary); }
.view-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.view-btn i {
  color: inherit;
  font-size: 14px;
}
.view-btn-label { display: none; }

/* Themed icons (not brand/social) — color only, no listing-row borders */
.section-heading > i,
.home-browse-section h2 > i,
.dashboard-section-header h3 > i,
.dashboard-tab > i,
.sidebar-heading > i,
.field label > i:not([class*="fa-brands"]),
.dashboard-quick-action > i,
.stat-card-icon,
.category-label-icon i,
.user-menu-links a > i,
.user-menu-section-title > i,
.listings-view-btn i,
.home-browse-view-btn i {
  color: var(--icon-theme);
}

/* ── Homepage listing rows — neutral cards; product colour on buttons ── */
.listing-kind-job.home-browse-row.listing-subkind-vacancy,
.listing-thumb-card.listing-subkind-vacancy,
.listing-kind-job.home-browse-row.listing-subkind-gig,
.listing-thumb-card.listing-subkind-gig,
.listing-kind-talent.home-browse-row,
.listing-thumb-card.listing-kind-talent {
  border: 1px solid var(--border-light);
  background: var(--surface);
}

/* Product-coloured action buttons */
.listing-subkind-vacancy .home-browse-actions .btn-primary,
.listing-subkind-vacancy .home-browse-actions-bottom .btn-primary {
  background: var(--product-vacancy);
  border-color: var(--product-vacancy);
  color: #fff;
}
.listing-subkind-vacancy .home-browse-actions .btn-primary:hover,
.listing-subkind-vacancy .home-browse-actions-bottom .btn-primary:hover {
  background: var(--product-vacancy-hover);
  border-color: var(--product-vacancy-hover);
  color: #fff;
}
.listing-subkind-vacancy .home-browse-actions .btn-outline,
.listing-subkind-vacancy .home-browse-actions-bottom .btn-outline {
  color: var(--product-vacancy);
  border-color: rgba(45, 10, 10, 0.35);
}
.listing-subkind-vacancy .home-browse-actions .btn-outline:hover,
.listing-subkind-vacancy .home-browse-actions-bottom .btn-outline:hover {
  background: var(--product-vacancy-soft);
  border-color: var(--product-vacancy);
  color: var(--product-vacancy-hover);
}

.listing-subkind-gig .home-browse-actions .btn-primary,
.listing-subkind-gig .home-browse-actions-bottom .btn-primary {
  background: var(--product-gig);
  border-color: var(--product-gig);
  color: #fff;
}
.listing-subkind-gig .home-browse-actions .btn-primary:hover,
.listing-subkind-gig .home-browse-actions-bottom .btn-primary:hover {
  background: var(--product-gig-hover);
  border-color: var(--product-gig-hover);
  color: #fff;
}
.listing-subkind-gig .home-browse-actions .btn-outline,
.listing-subkind-gig .home-browse-actions-bottom .btn-outline {
  color: var(--product-gig);
  border-color: rgba(176, 48, 48, 0.45);
}
.listing-subkind-gig .home-browse-actions .btn-outline:hover,
.listing-subkind-gig .home-browse-actions-bottom .btn-outline:hover {
  background: var(--product-gig-soft);
  border-color: var(--product-gig);
  color: var(--product-gig-hover);
}

.listing-kind-talent .home-browse-actions .btn-primary,
.listing-kind-talent .home-browse-actions-bottom .btn-primary {
  background: var(--product-skills);
  border-color: var(--product-skills-border);
  color: var(--product-skills-fg);
}
.listing-kind-talent .home-browse-actions .btn-primary:hover,
.listing-kind-talent .home-browse-actions-bottom .btn-primary:hover {
  background: var(--surface);
  border-color: var(--product-vacancy);
  color: var(--product-vacancy-hover);
}
.listing-kind-talent .home-browse-actions .btn-outline,
.listing-kind-talent .home-browse-actions-bottom .btn-outline {
  color: var(--product-vacancy);
  border-color: var(--product-skills-border);
}
.listing-kind-talent .home-browse-actions .btn-outline:hover,
.listing-kind-talent .home-browse-actions-bottom .btn-outline:hover {
  background: var(--product-skills);
  border-color: var(--product-skills-hover);
  color: var(--product-vacancy-hover);
}

/* Thumb cards: both action buttons filled like product buttons */
.listing-subkind-vacancy .home-browse-actions-bottom .btn-outline {
  background: var(--product-vacancy);
  border-color: var(--product-vacancy);
  color: #fff;
}
.listing-subkind-vacancy .home-browse-actions-bottom .btn-outline:hover {
  background: var(--product-vacancy-hover);
  border-color: var(--product-vacancy-hover);
  color: #fff;
}
.listing-subkind-gig .home-browse-actions-bottom .btn-outline {
  background: var(--product-gig);
  border-color: var(--product-gig);
  color: #fff;
}
.listing-subkind-gig .home-browse-actions-bottom .btn-outline:hover {
  background: var(--product-gig-hover);
  border-color: var(--product-gig-hover);
  color: #fff;
}
.listing-kind-talent .home-browse-actions-bottom .btn-outline {
  background: var(--product-skills);
  border-color: var(--product-skills-border);
  color: var(--product-skills-fg);
}
.listing-kind-talent .home-browse-actions-bottom .btn-outline:hover {
  background: var(--surface);
  border-color: var(--product-vacancy);
  color: var(--product-vacancy-hover);
}

.listing-thumb-job {
  background: var(--product-vacancy-soft);
  color: var(--product-vacancy);
}
.listing-thumb-gig {
  background: var(--product-gig-soft);
  color: var(--product-gig);
}
.listing-thumb-talent {
  background: var(--product-skills);
  color: var(--product-skills-fg);
  border: 1px solid var(--product-skills-border);
}
.listing-thumb-kind-badge {
  margin-bottom: 0.35rem;
}
.live-results-lead {
  margin: 0.35rem 0 0;
  font-size: 14px;
  max-width: 42rem;
}
.live-results-strength-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.15rem;
  font-size: 1.05em;
  vertical-align: -0.05em;
}
.live-results-strength-icon i {
  color: var(--live-strength-color, var(--text-light));
  opacity: calc(0.5 + (var(--live-strength-pct, 0) * 0.005));
}
.live-results-strength-guest {
  --live-strength-color: var(--text-light);
}
.live-results-strength-starter {
  --live-strength-color: var(--border);
}
.live-results-strength-building {
  --live-strength-color: var(--primary-light);
}
.live-results-strength-good {
  --live-strength-color: var(--primary);
}
.live-results-strength-excellent {
  --live-strength-color: var(--tier-paid-icon);
}
.live-results-search {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.live-results-search .search-field-wrap {
  flex: 1;
}
.live-results-search-btn {
  align-self: center;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .search-form-live input[type="search"],
  .search-form input[type="search"],
  .hero-landing .search-form input {
    font-size: 16px;
  }
  .live-results-search {
    flex-direction: column;
  }
  .live-results-search-btn {
    width: 100%;
  }
}
.success-stories-page-section {
  margin-bottom: 2rem;
}
.success-stories-page-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.success-stories-section-lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 14px;
}
.success-stories-page-hint {
  font-size: 14px;
  margin-top: 0.75rem;
}
.success-story-kind-badge {
  margin-bottom: 0.5rem;
  display: inline-flex;
}
.hero-near-label > i,
.search-field-icon {
  color: rgba(255, 255, 255, 0.9);
}
.view-btn.active i { color: white; }
html.dark .view-btn.active i { color: white; }

/* Category picker uses site font */
.category-picker-refined,
.category-picker-refined input,
.category-picker-refined label,
.category-suggestions li {
  font-family: var(--font-sans);
}

/* ── Dashboard hub ── */
.dashboard-hub {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
}
.dashboard-hub-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  height: 100%;
}
.dashboard-hub-compact .dashboard-strength-card {
  height: 100%;
}
.dashboard-hub-stats {
  margin: 0;
}
.dashboard-hub-stats.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.dashboard-hub-stats .stat-card {
  padding: 0.75rem 0.85rem;
}
.dashboard-hub-stats .stat-value {
  font-size: 1.35rem;
}
.dashboard-hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.dashboard-strength-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}
.dashboard-strength-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-strength-intro {
  flex: 1;
  min-width: 0;
}
.dashboard-strength-lead {
  margin-top: 0.2rem;
}
.dashboard-strength-ring-corner {
  flex-shrink: 0;
}
.dashboard-strength-copy {
  width: 100%;
}
.profile-strength-ring {
  --pct: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), var(--border-light) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.profile-strength-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}
.profile-strength-ring span {
  position: relative;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.dashboard-strength-card strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.dashboard-strength-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.45;
}
.dashboard-text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.dashboard-actions-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.dashboard-hub-section-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dashboard-hub-section-title i {
  color: var(--primary);
  font-size: 0.85em;
}
.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.dashboard-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg);
  text-decoration: none;
  color: var(--text-body);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.15s;
}
.dashboard-quick-action:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.dashboard-quick-action-alert {
  border-color: var(--primary-mid);
  background: var(--green-bg);
  color: var(--text-body);
}
html.dark .dashboard-quick-action-alert {
  background: #1f1515;
  border-color: #5a3030;
  color: var(--text-body);
}
html.dark .dashboard-quick-action-alert i {
  color: var(--accent);
}
html.dark .dashboard-quick-action-alert span {
  color: var(--text-body);
  font-weight: 600;
}
.dashboard-strength-copy strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.dashboard-ceo-line {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.45;
  margin: 0 0 0.35rem;
}
.dashboard-strength-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}
.profile-missing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.65rem;
}
.profile-missing-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--border-light);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.profile-missing-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.field-highlight {
  animation: fieldPulse 1.2s ease;
}
@keyframes fieldPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.2); }
}
.drafts-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.drafts-view-toolbar {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 3px;
  background: var(--bg);
}
.drafts-view-btn {
  width: 32px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drafts-view-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(45, 10, 10, 0.08);
}
.drafts-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.drafts-container.drafts-thumb-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.drafts-container.drafts-thumb-view .draft-card {
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.drafts-container.drafts-thumb-view .draft-card .btn {
  width: 100%;
  justify-content: center;
}
.draft-card-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--border-light);
}
.draft-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.draft-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.draft-card-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 0.35rem;
}
.draft-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--text-muted);
}
.form-intro-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -0.25rem 0 1rem;
  line-height: 1.45;
}
.field-job-type-first select {
  font-weight: 600;
}
.filter-hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-light);
}
.quick-job-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0.5rem 0 0.75rem;
}
.quick-job-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.15s, color 0.15s;
}
.quick-job-pill:hover,
.quick-job-pill.is-active {
  background: white;
  color: var(--primary-dark);
  border-color: white;
}
.quick-job-pill i {
  font-size: 11px;
  opacity: 0.9;
}
.quick-action-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.dashboard-section-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 4px;
}
.dashboard-section-header p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 520px;
}
.dashboard-section-anchor {
  scroll-margin-top: 92px;
}
.dashboard-section-focus {
  animation: dashboardFlash 1.4s ease;
}
@keyframes dashboardFlash {
  0%, 100% { box-shadow: none; }
  15%, 45% { box-shadow: 0 0 0 3px rgba(139, 32, 32, 0.18); }
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dashboard-topbar .dashboard-office-label {
  margin-bottom: 0;
}
.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.dashboard-settings-btn {
  width: 38px;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
}
.dashboard-settings-btn i { margin: 0; }
.dashboard-hints-toggle { font-size: 12px; }
[data-dashboard-hints="off"] .dashboard-section-hint,
[data-dashboard-hints="off"] .dashboard-group-hint,
[data-dashboard-hints="off"] .visibility-section-hint,
[data-dashboard-hints="off"] .dashboard-strength-sub,
[data-dashboard-hints="off"] .dashboard-mvp-lead,
.dashboard-page.dashboard-hints-off .dashboard-section-hint,
.dashboard-page.dashboard-hints-off .dashboard-group-hint,
.dashboard-page.dashboard-hints-off .visibility-section-hint,
.dashboard-page.dashboard-hints-off .dashboard-strength-sub,
.dashboard-page.dashboard-hints-off .dashboard-mvp-lead,
body.dashboard-hints-off .dashboard-section-hint,
body.dashboard-hints-off .dashboard-group-hint,
body.dashboard-hints-off .visibility-section-hint,
body.dashboard-hints-off .dashboard-strength-sub,
body.dashboard-hints-off .dashboard-mvp-lead {
  display: none !important;
}
.dashboard-welcome-actions .dashboard-hints-toggle.is-active,
.dashboard-welcome-actions .dashboard-hints-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
}
html.dark .dashboard-welcome-actions .dashboard-hints-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
html.dark .dashboard-topbar .btn-outline,
html.dark .dashboard-topbar .dashboard-settings-btn {
  color: var(--text-dark) !important;
  border-color: var(--border) !important;
  background: rgba(255, 255, 255, 0.04);
}
html.dark .dashboard-topbar .btn-outline:hover {
  background: rgba(139, 32, 32, 0.25);
  border-color: var(--accent);
  color: #fff !important;
}
html.dark .dashboard-office-label {
  color: var(--text-muted);
}
html.dark .dashboard-mvp-guide,
html.dark .dashboard-mvp-quick.card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html.dark .dashboard-mvp-guide h3,
html.dark .dashboard-mvp-step strong,
html.dark .dashboard-mvp-quick-title {
  color: var(--text-dark);
}
html.dark .dashboard-mvp-eyebrow {
  color: var(--accent);
}
html.dark .dashboard-mvp-step-num {
  background: rgba(139, 32, 32, 0.35);
  color: #fff;
}
html.dark .dashboard-mvp-quick-card,
html.dark .dashboard-mvp-quick-card-btn {
  background: #1f2335 !important;
  border-color: var(--border) !important;
  color: var(--text-body);
}
html.dark .dashboard-mvp-quick-card:hover,
html.dark .dashboard-mvp-quick-card-btn:hover {
  border-color: var(--accent) !important;
  background: #252b3d !important;
}
html.dark .dashboard-mvp-quick-card strong {
  color: var(--text-dark);
}
html.dark .dashboard-mvp-quick-card span {
  color: var(--text-muted);
}
html.dark .dashboard-mvp-quick-card i {
  color: var(--accent);
}
html.dark .profile-strength-ring::before {
  background: #1f2335;
}
html.dark .profile-strength-ring span {
  color: var(--accent);
}
.dashboard-workspace-block {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}
.dashboard-section-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0.15rem 0 0;
}
.dashboard-group {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.dashboard-group:last-child { border-bottom: none; }
.dashboard-group-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}
.dashboard-group-hint {
  margin-bottom: 1rem;
}
.dashboard-hub-compact {
  margin-bottom: 0;
}
.dashboard-subsection {
  margin-bottom: 1.25rem;
}
.visibility-sections {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.visibility-section-block {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
}
.visibility-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.visibility-section-items {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 12px;
  color: var(--text-muted);
}
.visibility-section-items a {
  color: var(--primary);
  text-decoration: none;
}
.visibility-section-items a:hover { text-decoration: underline; }
.visibility-reminders-line {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0.5rem 0;
}
.visibility-reminders-line a { color: var(--primary); }
.dashboard-section-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.listings-view-btn {
  width: 32px;
  height: 28px;
  border: none;
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.listings-view-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(45, 10, 10, 0.08);
}
.listings-view-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border-light);
}
#listings-container[data-view="list"] .listings-thumb-only { display: none !important; }
#listings-container[data-view="thumb"] .listings-list-only { display: none !important; }
#home-browse-container[data-view="list"] .listings-thumb-only { display: none !important; }
#home-browse-container[data-view="thumb"] .listings-list-only { display: none !important; }
#listings-container[data-view="thumb"] .listings-thumb-only {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}
.listings-container.listings-list-view .listings-thumb-only { display: none !important; }
.listings-container.listings-thumb-view .listings-list-only { display: none !important; }
.listings-container.listings-thumb-view:not(#home-browse-container) .listings-thumb-only {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
}

.home-browse-section {
  margin-bottom: 1.5rem;
}
.home-browse-header {
  margin-bottom: 0.75rem;
}
.home-browse-header-tools-only {
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.home-browse-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: nowrap;
  margin-bottom: 0.5rem;
}
.home-browse-toolbar-start {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}
.home-browse-header-tools-only .dashboard-section-tools {
  margin-left: auto;
}
.home-browse-header .dashboard-section-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.home-browse-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.home-browse-card {
  padding: 0.45rem 0.5rem 0.5rem;
}

/* Homepage browse — type filter pills (gig / vacancy / talent) */
.home-browse-kind-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  padding: 0.55rem 0.65rem 0.5rem;
  border-radius: var(--radius-md, 10px);
  background: var(--bg-soft, rgba(127, 29, 29, 0.03));
  border: 1px solid var(--border-light);
}
.home-browse-kind-intro {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.home-browse-kind-lead {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, var(--text-light));
  line-height: 1.4;
  max-width: 42rem;
}
.home-browse-kind-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.45rem;
}
.home-browse-kind-pill {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 10px);
  border: 2px solid var(--border-light);
  background: var(--bg);
  color: var(--text-dark);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.home-browse-kind-pill-media {
  display: block;
  width: 100%;
}
.home-browse-kind-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 5, 5, 0.06);
}
.home-browse-kind-pill.is-active {
  box-shadow: 0 4px 16px rgba(15, 5, 5, 0.08);
}
.home-browse-kind-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  border-radius: calc(var(--radius-md, 10px) - 2px) calc(var(--radius-md, 10px) - 2px) 0 0;
  font-size: 1.05rem;
}
.home-browse-kind-pill-title {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
}
.home-browse-kind-pill-desc {
  display: block;
  padding: 0 0.5rem 0.45rem;
  font-size: 0.72rem;
  color: var(--text-muted, var(--text-light));
  line-height: 1.35;
}
.home-browse-kind-count {
  font-style: normal;
  font-weight: 800;
}
.home-browse-kind-all .home-browse-kind-pill-icon {
  background: #6B7280;
  color: #fff;
}
.home-browse-kind-all.is-active {
  border-color: #6B7280;
  background: var(--bg);
}
.home-browse-kind-vacancy .home-browse-kind-pill-icon {
  background: var(--product-vacancy);
  color: #fff;
}
.home-browse-kind-vacancy.is-active {
  border-color: var(--product-vacancy);
  background: var(--bg);
}
.home-browse-kind-gig .home-browse-kind-pill-icon {
  background: var(--product-gig);
  color: #fff;
}
.home-browse-kind-gig.is-active {
  border-color: var(--product-gig);
  background: var(--bg);
}
.home-browse-kind-talent .home-browse-kind-pill-icon {
  background: var(--product-skills);
  color: var(--product-skills-fg);
}
.home-browse-kind-talent.is-active {
  border-color: var(--product-skills-hover);
  background: var(--bg);
}
.home-browse-kind-vacancy.is-active .home-browse-kind-pill-icon,
.home-browse-kind-gig.is-active .home-browse-kind-pill-icon {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}
.home-browse-results-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.home-browse-kind-count-mobile {
  display: none;
  font-style: normal;
  font-weight: 800;
  opacity: 0.72;
}
html.dark .home-browse-kind-nav {
  background: rgba(255, 255, 255, 0.03);
}
html.dark .home-browse-kind-gig .home-browse-kind-pill-icon {
  background: var(--product-gig);
  color: #fff;
}
html.dark .home-browse-kind-talent .home-browse-kind-pill-icon {
  background: var(--product-skills);
  color: var(--product-skills-fg);
}
@media (max-width: 640px) {
  .home-browse-kind-legend {
    grid-template-columns: 1fr 1fr;
  }
  .home-browse-kind-pill-icon {
    height: 2.35rem;
    font-size: 0.95rem;
  }
  .home-browse-kind-pill-title {
    padding: 0.3rem 0.4rem;
    font-size: 0.82rem;
  }
  .home-browse-kind-lead {
    display: none;
  }
  .home-browse-kind-pill-desc {
    display: none;
  }
  .home-browse-kind-count-mobile {
    display: inline;
  }
  .home-browse-kind-nav {
    margin-bottom: 0.2rem;
    padding: 0.5rem 0.55rem 0.4rem;
    gap: 0.4rem;
  }
  .home-browse-title {
    font-size: 1rem;
    margin-bottom: 0;
  }
}
.home-browse-sticky-toolbar {
  --home-browse-sticky-top: 56px;
}
@media (max-width: 768px) {
  html.is-mobile-ux .listing-kind-legend,
  .listing-kind-legend {
    display: none !important;
  }
  .home-browse-toolbar-row {
    flex-wrap: wrap;
  }
  .home-browse-toolbar-start {
    flex: 1 1 100%;
  }
  .home-browse-toolbar-start {
    gap: 0.45rem;
  }
  .home-browse-sticky-toolbar {
    position: sticky;
    top: var(--home-browse-sticky-top, 56px);
    z-index: 85;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(15, 5, 5, 0.04);
  }
  html.dark .home-browse-sticky-toolbar {
    background: var(--bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  }
  .home-browse-card {
    padding: 0.5rem 0.35rem;
  }
  #home-browse-container.listings-thumb-view .listings-thumb-only {
    gap: 0.5rem;
    padding: 0.35rem 0.25rem;
  }
  #home-browse-thumb .listing-thumb-card-body {
    padding: 0.6rem 0.55rem;
    gap: 0.3rem;
  }
  #home-browse-thumb .listing-thumb-kind-badge {
    font-size: 8px;
    padding: 0.12rem 0.35rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: flex-start;
  }
  #home-browse-thumb .listing-thumb-meta {
    gap: 0.2rem;
  }
  #home-browse-thumb .listing-thumb-meta .badge {
    font-size: 8px;
    padding: 0.1rem 0.3rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #home-browse-thumb .listing-thumb-kind-bar {
    margin-top: 0;
  }
  .home-browse-results-head {
    padding: 0.35rem 0.25rem 0.5rem;
  }
}
#home-browse-list.listings-card-list {
  gap: 0.28rem;
  padding: 0.45rem 0.5rem;
}
.home-browse-row-compact {
  margin-bottom: 0;
  padding: 0.38rem 0.55rem;
  gap: 0.5rem;
  align-items: flex-start;
  border-radius: var(--radius-sm);
}
.home-browse-media-col {
  flex: 0 0 76px;
  width: 76px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-browse-thumb-top {
  flex: 0 0 auto;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  border: 1px solid var(--border-light);
  border-bottom: none;
  overflow: hidden;
}
.home-browse-thumb-top.listing-thumb-media-profile,
.home-browse-thumb-top.listing-thumb-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-browse-thumb-top img {
  border-radius: inherit;
}
.home-browse-thumb-kind-bar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.22rem 0.25rem;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  border-radius: 0;
  border: 1px solid var(--border-light);
  border-top: none;
}
.listing-subkind-vacancy .home-browse-thumb-kind-bar {
  background: var(--product-vacancy);
  border-color: var(--product-vacancy);
  color: #fff;
}
.listing-subkind-gig .home-browse-thumb-kind-bar {
  background: var(--product-gig);
  border-color: var(--product-gig);
  color: #fff;
}
.listing-kind-talent .home-browse-thumb-kind-bar {
  background: var(--product-skills);
  border-color: var(--product-skills-border);
  color: var(--product-skills-fg);
}
.home-browse-job-title {
  font-size: 13px;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-browse-job-title:hover {
  color: var(--primary);
}
.home-browse-row-compact .home-browse-thumb-sm {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}
.home-browse-media-col .home-browse-thumb-sm {
  flex: none;
}
.home-browse-row-compact .home-browse-body {
  min-width: 0;
}
.home-browse-row-head {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.home-browse-row-compact .home-browse-job-title {
  font-size: 13px;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-browse-meta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
  font-size: 11px;
  line-height: 1.2;
}
.home-browse-meta-inline .badge {
  font-size: 9px;
  padding: 0.1rem 0.35rem;
  line-height: 1.2;
}
.home-browse-meta-sep {
  color: var(--text-muted);
  opacity: 0.55;
  user-select: none;
}
.home-browse-actions-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  min-width: auto;
  width: auto;
}
.home-browse-actions-inline .btn {
  width: auto;
  padding: 0.22rem 0.45rem;
  font-size: 11px;
  white-space: nowrap;
}
.home-browse-row {
  margin-bottom: 0.4rem;
  padding: 0.55rem 0.75rem;
}
.home-browse-body {
  flex: 1;
  min-width: 0;
}
.home-browse-job-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}
.home-browse-job-title:hover {
  color: var(--primary);
}
a.home-browse-job-title.draft-card-title {
  display: inline;
}
.home-browse-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.home-browse-actions-stack {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.35rem;
}
.home-browse-actions-stack .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.home-browse-actions-thumb {
  margin-top: 0.35rem;
}
.home-browse-actions-list {
  min-width: 88px;
}
.home-browse-toolbar {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.home-browse-cols-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.home-browse-cols-controls[hidden],
.home-browse-cols-divider[hidden],
.home-browse-toolbar[data-browse-view="list"] .home-browse-cols-controls,
.home-browse-toolbar[data-browse-view="list"] .home-browse-cols-divider {
  display: none !important;
}
.home-browse-cols-btn {
  min-width: 28px;
  padding: 0.35rem 0.45rem;
  font-size: 11px;
  font-weight: 700;
}
#home-browse-container.listings-thumb-view .listings-thumb-only {
  display: grid !important;
  gap: 0.65rem;
  padding: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}
#home-browse-container[data-browse-cols="2"] .listings-thumb-only,
#home-browse-container .listings-thumb-only.home-browse-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
#home-browse-container[data-browse-cols="3"] .listings-thumb-only,
#home-browse-container .listings-thumb-only.home-browse-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
#home-browse-container[data-browse-cols="4"] .listings-thumb-only,
#home-browse-container .listings-thumb-only.home-browse-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 767px) {
  .home-browse-cols-btn-desktop {
    display: none !important;
  }
}
#home-browse-thumb .listing-thumb-card {
  min-width: 0;
}
#home-browse-thumb .listing-thumb-kind-bar {
  font-size: 10px;
  line-height: 1.25;
  padding: 0.35rem 0.45rem;
}
#home-browse-thumb .listing-thumb-card-body {
  padding: 0.55rem;
  min-width: 0;
}
#home-browse-thumb .listing-thumb-meta {
  font-size: 10px;
}
#home-browse-thumb .home-browse-actions-stack .btn {
  font-size: 11px;
  padding: 0.35rem 0.4rem;
}
.home-browse-actions-bottom {
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}
.home-browse-actions-bottom .btn {
  flex: 1;
  width: auto;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  padding: 0.32rem 0.4rem;
}
@media (max-width: 767px) {
  #home-browse-container.listings-thumb-view .listing-thumb-card {
    height: 100%;
  }
  #home-browse-container.listings-thumb-view .listing-thumb-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #home-browse-container.listings-thumb-view .home-browse-actions-bottom {
    margin-top: auto;
    padding-top: 0.4rem;
  }
}
@media (max-width: 640px) {
  .home-browse-row-compact {
    flex-wrap: wrap;
    padding: 0.4rem 0.45rem;
  }
  .home-browse-media-col {
    flex: 0 0 68px;
    width: 68px;
  }
  .home-browse-row-compact .home-browse-row-head {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .home-browse-thumb-kind-bar {
    white-space: normal;
  }
  .home-browse-actions-inline {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.15rem;
  }
  .home-browse-row {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .home-browse-actions-list {
    width: 100%;
    flex-direction: row;
    justify-content: stretch;
    margin-top: 0.35rem;
  }
  .home-browse-actions-list.home-browse-actions-stack {
    flex-direction: column;
  }
}
.tier-card-inner small, .tier-card-inner .tier-card-tag {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  font-weight: 400;
  font-style: normal;
}
.tier-card-tag {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary) !important;
  margin: 0.15rem 0 0.25rem;
}
.listing-plan-lead {
  margin-bottom: 0.75rem;
}
.live-results-tips.card {
  padding: 1rem 1.15rem;
  margin: 0;
}
.inbox-side-rail .live-results-tips {
  padding: 1rem 1.15rem;
}
.live-results-side-rail .live-results-tips {
  margin-top: 0.85rem;
  padding: 1rem 1.15rem;
}
.live-results-tips-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-results-tips-title i {
  color: var(--icon-theme);
}
.live-results-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.live-results-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.live-results-tips-list li i {
  color: var(--icon-theme);
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.live-results-page .jobs-list.jobs-grid-compact.thumbnail-view {
  gap: 0.65rem;
  align-items: stretch;
}
.live-results-page .jobs-list.jobs-grid-compact.jobs-grid-cols-2.thumbnail-view {
  grid-template-columns: repeat(2, 1fr);
}
.live-results-page .jobs-list.jobs-grid-compact.jobs-grid-cols-3.thumbnail-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .live-results-page .jobs-list.jobs-grid-compact.jobs-grid-cols-2.thumbnail-view,
  .live-results-page .jobs-list.jobs-grid-compact.jobs-grid-cols-3.thumbnail-view {
    gap: 0.45rem;
  }
  .live-results-page .jobs-list.thumbnail-view .job-card-title {
    font-size: 0.68rem;
  }
  .live-results-page .jobs-list.thumbnail-view .job-card-thumb {
    max-height: 56px;
  }
}
.live-results-page .jobs-list.thumbnail-view .job-card-thumb {
  aspect-ratio: 4 / 3;
  max-height: 72px;
}
.live-results-page .jobs-list.thumbnail-view .job-card-content {
  padding: 0.45rem 0.5rem;
}
.live-results-page .jobs-list.thumbnail-view .job-card-title {
  font-size: 0.78rem;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}
.live-results-page .job-card-compact .job-card-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  display: none;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}
.live-results-page .job-card-compact .job-card-facts,
.live-results-page .job-card-compact .job-card-badges {
  display: none;
}
@media (min-width: 560px) {
  .live-results-page .job-card-compact .job-card-facts {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.25rem;
  }
  .live-results-page .jobs-list.thumbnail-view .job-card-fact {
    font-size: 0.68rem;
  }
}
@media (min-width: 900px) {
  .live-results-page .job-card-compact .job-card-desc {
    display: -webkit-box;
  }
  .live-results-page .job-card-compact .job-card-badges {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.25rem;
  }
}
.live-results-page .jobs-list.thumbnail-view .job-card-fact {
  font-size: 0.68rem;
}
.live-results-page .jobs-list.thumbnail-view .job-card-badges {
  gap: 0.2rem;
}
.live-results-page .jobs-list.thumbnail-view .job-card-badges .badge {
  font-size: 9px;
  padding: 0.1rem 0.3rem;
}
.live-results-page .jobs-list.thumbnail-view .job-card-actions {
  padding: 0.35rem 0.5rem;
  margin-top: auto;
}
.job-card-apply-link {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}
.job-card-apply-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
html.dark .job-card-apply-link {
  color: var(--primary);
}
html.dark .job-card-apply-link:hover {
  color: #86efac;
}
.live-results-page .jobs-list.jobs-grid-cols-3.thumbnail-view .job-card-apply-btn {
  display: none !important;
}
.live-results-page .jobs-list.jobs-grid-cols-3.thumbnail-view .job-card-apply-link {
  display: inline-block;
  font-size: 0.68rem;
}
.live-results-page .jobs-list.jobs-grid-cols-2.thumbnail-view .job-card-apply-link {
  display: none !important;
}
.live-results-page .jobs-list.jobs-grid-cols-2.thumbnail-view .job-card-apply-btn {
  display: inline-flex;
}
.live-results-page .jobs-list.thumbnail-view .job-card-rich {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.live-results-page .jobs-list.thumbnail-view .job-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.live-results-page .jobs-list.thumbnail-view .job-card-apply-btn {
  font-size: 10px;
  padding: 0.28rem 0.45rem;
}
.view-cols-controls {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
}
.view-cols-controls .view-cols-btn {
  flex: 0 0 auto;
}
.home-results-header-split .view-controls {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.view-cols-only[hidden],
.view-cols-controls[hidden] {
  display: none !important;
}
/* Settings tabbed layout */
.settings-page .dashboard-topbar {
  margin-bottom: 0.35rem;
}
.settings-page .settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0.85rem;
  padding: 0.45rem 0 0.55rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 76px;
  z-index: 40;
  background: var(--bg, #fff);
}
html.dark .settings-page .settings-tabs {
  background: var(--bg, #12141c);
}
.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--chip-radius);
  background: var(--surface);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.settings-tab:hover {
  background: var(--border-light);
  color: var(--text-dark);
  border-color: var(--primary-light);
}
.settings-tab.is-active {
  background: var(--green-bg, #fbf0f0);
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(139, 32, 32, 0.08);
}
.settings-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.settings-tab i {
  color: var(--icon-theme);
}
html.dark .settings-tab {
  background: #1f2335;
  border-color: #5a6578;
  color: #eef1f6;
}
html.dark .settings-tab i {
  color: var(--accent);
}
html.dark .settings-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #8a96a8;
}
html.dark .settings-tab.is-active {
  background: rgba(139, 32, 32, 0.55);
  border-color: #e8a0a0;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(232, 160, 160, 0.25);
}
html.dark .settings-tab.is-active i {
  color: #fff;
}
html.dark .dashboard-tab {
  color: #c8d0dc;
  border-radius: var(--chip-radius);
}
html.dark .dashboard-tab:not(.is-active) {
  border-color: transparent;
}
html.dark .dashboard-tab:hover:not(.is-active) {
  color: #f1f5f9;
}
.settings-tab-panels {
  display: block;
}
.settings-page .settings-tab-panel[hidden] {
  display: none !important;
}
.settings-page .settings-tab-panel.is-active {
  display: block !important;
  animation: settingsPanelIn 0.22s ease;
}
@keyframes settingsPanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.settings-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 0;
  margin-bottom: 0;
}
.settings-toolbar:has(#settings-save-all-btn:not([hidden])),
.settings-toolbar:has(#settings-dirty-status:not([hidden])) {
  min-height: 2.25rem;
  margin-bottom: 0.25rem;
}
.settings-toolbar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
html.dark .settings-toolbar-status {
  color: var(--accent);
}
.settings-toolbar-status[hidden],
#settings-save-all-btn[hidden] {
  display: none !important;
}
.settings-dirty-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: settingsDirtyPulse 1.4s ease-in-out infinite;
}
@keyframes settingsDirtyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
.settings-tab-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 1.35rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-soft, #f8fafc);
}
.profile-settings-card > .profile-pro-block {
  margin: 1.25rem 1.35rem 0;
}
.profile-settings-card > .profile-pro-block:last-of-type {
  margin-bottom: 0;
}
.settings-discovery-card {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-light);
}
.settings-discovery-save-hint {
  margin: 0.85rem 0 0;
}
/* Settings panels — unified Reminders-style colouration */
.settings-page .dashboard-section.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
}
.settings-page .profile-settings-card {
  padding: 0;
  overflow: hidden;
}
.settings-page .password-settings-card,
.settings-page .settings-discovery-card {
  padding: 1.5rem;
}
html.dark .settings-page .dashboard-section.card {
  border-color: var(--border);
}
html.dark .settings-tab-footer {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .settings-terms-hero,
html.dark .settings-terms-section-head {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .settings-terms-hero-icon {
  box-shadow: none;
}
.settings-terms-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-terms-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg);
  box-shadow: none;
}
.settings-terms-hero-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(139, 32, 32, 0.22);
}
.settings-terms-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}
.settings-terms-hero-meta {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.settings-terms-hero-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.settings-terms-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface);
  position: sticky;
  top: calc(76px + var(--settings-tabs-h, 3.25rem));
  z-index: 35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
html.dark .settings-terms-toc {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.settings-terms-toc-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.settings-terms-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.settings-terms-toc-link {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: var(--chip-radius);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  background: var(--bg-soft, #f8fafc);
}
.settings-terms-toc-link:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
  background: var(--green-bg, #fbf0f0);
}
.settings-terms-toc-link.is-active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}
.settings-terms-sections {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.settings-terms-section {
  padding: 0;
  overflow: hidden;
  border-color: var(--border-light);
  scroll-margin-top: 10rem;
}
.settings-terms-section-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.settings-terms-section-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.settings-terms-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}
.settings-terms-section-body {
  padding: 1rem 1.2rem 1.15rem;
}
.settings-terms-p {
  margin: 0 0 0.75rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
}
.settings-terms-p:last-child {
  margin-bottom: 0;
}
.settings-terms-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border-light);
}
.settings-terms-rule-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--green-bg, #fbf0f0);
  border: 1px solid var(--primary-light);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  line-height: 1.2;
}
html.dark .settings-terms-rule {
  background: #141820;
  border-color: var(--border);
}
html.dark .settings-terms-rule-num {
  background: rgba(139, 32, 32, 0.42);
  color: #d4a0a0;
  border-color: rgba(139, 32, 32, 0.55);
}
html.dark .settings-terms-rule p {
  color: var(--text-body);
}
html.dark .settings-terms-p,
html.dark .settings-terms-list li {
  color: var(--text-body);
}
.settings-terms-rule p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-body);
}
.settings-terms-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.settings-terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
}
.settings-terms-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.45rem;
  flex-shrink: 0;
}
.settings-terms-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.settings-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 13px;
  line-height: 1.5;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface);
}
.settings-terms-check-done i {
  color: var(--success, #16a34a);
  margin-top: 0.15rem;
}
.settings-terms-check-todo i {
  color: var(--amber, #d97706);
  margin-top: 0.15rem;
}
.home-browse-results-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 0.2rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.hero-gig-filters button.gig-quick-filter {
  font-family: var(--font-sans);
}
.auth-apply-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
}
.job-detail-related-card {
  padding: 0;
  overflow: hidden;
}
.job-detail-related-head {
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--green-bg, #fbf0f0) 0%, var(--surface) 100%);
}
.job-detail-related-card .section-heading {
  margin: 0 0 0.35rem;
  padding-bottom: 0;
  border-bottom: none;
}
.job-detail-related-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.job-detail-related-list {
  padding: 0.15rem 0;
}
.job-detail-related-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background 0.15s ease;
}
.job-detail-related-row:hover {
  background: var(--row-hover-bg);
}
.job-detail-related-body {
  min-width: 0;
  flex: 1;
}
.job-detail-related-row:last-child {
  border-bottom: none;
}
.job-detail-related-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--btn-radius);
  font-size: 13px;
  flex-shrink: 0;
}
.job-detail-related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  word-break: break-word;
}
.job-detail-related-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  word-break: break-word;
}
.job-detail-col-side {
  min-width: 0;
}
.view-cols-btn {
  min-width: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.view-controls-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.15rem;
  flex-shrink: 0;
}
.site-role-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.72;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  white-space: nowrap;
  flex-shrink: 0;
}
.inbox-header-compact .site-role-hint {
  margin-left: auto;
}
.header-actions .site-role-hint {
  display: none;
}
@media (min-width: 480px) {
  .header-actions .site-role-hint {
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 768px) {
  .header-actions .site-role-hint {
    display: none;
  }
  .inbox-header-compact {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .inbox-header-compact .site-role-hint {
    margin-left: 0;
  }
}
.job-card-fact-deadline {
  color: var(--primary-mid);
  font-weight: 600;
}
html.dark .job-card-fact-deadline {
  color: var(--accent);
}
a.gig-quick-filter {
  text-decoration: none;
  color: inherit;
}
.live-results-order-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
}
.live-results-order-hint a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.live-results-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.live-results-search-card {
  margin-bottom: 0;
}
.live-applications-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.live-application-row {
  padding: 0.55rem 0.75rem;
  margin-bottom: 0;
}
.live-application-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.discovery-pref-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.85rem;
  cursor: pointer;
}
.discovery-pref-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.discovery-pref-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: background 0.2s ease;
}
.discovery-pref-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.discovery-pref-toggle input:checked + .discovery-pref-switch {
  background: var(--primary);
}
.discovery-pref-toggle input:checked + .discovery-pref-switch::after {
  transform: translateX(20px);
}
.discovery-pref-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 14px;
  color: var(--text-body);
}
.discovery-pref-label small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}
.discovery-prefs-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.listing-thumb-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  overflow: hidden;
}
.listing-thumb-stack {
  display: flex;
  flex-direction: column;
}
.listing-thumb-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--border-light);
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.listing-thumb-kind-bar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.42rem 0.65rem;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 0;
}
.listing-subkind-vacancy .listing-thumb-kind-bar {
  background: var(--product-vacancy);
  color: #fff;
}
.listing-subkind-gig .listing-thumb-kind-bar {
  background: var(--product-gig);
  color: #fff;
}
.listing-kind-talent .listing-thumb-kind-bar {
  background: var(--product-skills);
  color: var(--product-skills-fg);
}
.listing-thumb-job-title {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  text-decoration: none;
}
.listing-thumb-job-title:hover {
  color: var(--primary);
}
.listing-thumb-title-bar {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  text-decoration: none;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-radius: 0;
}
.listing-thumb-title-bar:hover {
  color: var(--primary);
}
.listing-thumb-media-photo img,
.home-browse-thumb-top.listing-thumb-media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-thumb-media-profile,
.home-browse-thumb-top.listing-thumb-media-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
html.dark .listing-thumb-media-profile,
html.dark .home-browse-thumb-top.listing-thumb-media-profile {
  background: var(--surface);
}
.listing-thumb-media-profile img,
.home-browse-thumb-top.listing-thumb-media-profile img {
  width: min(68%, 120px);
  height: min(68%, 120px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.listing-thumb-media-logo,
.home-browse-thumb-top.listing-thumb-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0.65rem;
}
html.dark .listing-thumb-media-logo,
html.dark .home-browse-thumb-top.listing-thumb-media-logo {
  background: var(--surface);
}
.listing-thumb-media-logo img,
.home-browse-thumb-top.listing-thumb-media-logo img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}
.listing-thumb-media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 11px;
}
.listing-thumb-media-empty i {
  font-size: 1.25rem;
  opacity: 0.45;
}
.listing-thumb-card-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
html.dark .home-browse-thumb-kind-bar,
html.dark .listing-thumb-kind-bar {
  border-color: var(--border);
}
html.dark .listing-thumb-job-title,
html.dark .home-browse-job-title {
  color: var(--text-dark);
}
html.dark .listing-thumb-job-title:hover,
html.dark .home-browse-job-title:hover {
  color: var(--accent);
}
html.dark .listing-thumb-title-bar {
  background: var(--surface);
  color: var(--text-dark);
  border-color: var(--border);
}
html.dark .listing-thumb-title-bar:hover {
  color: var(--accent);
}
.listing-thumb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.dashboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}
.dashboard-page-btn {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.dashboard-page-label { color: var(--text-muted); }
.td-sub { font-size: 12px; color: var(--text-muted); }
.td-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.btn-xs {
  font-size: 11px !important;
  padding: 3px 8px !important;
  line-height: 1.3;
}
.btn-primary-solid {
  background: var(--primary);
  color: white;
  border: none;
}
.settings-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.settings-page-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.settings-avatar-preview {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.settings-avatar-preview-clickable {
  cursor: pointer;
}
.settings-avatar-preview-clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.settings-avatar-preview-clickable:hover::after,
.settings-avatar-preview-clickable:focus-visible::after {
  opacity: 1;
}
.settings-avatar-change-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  pointer-events: none;
  opacity: 0.92;
}
@media (hover: hover) {
  .settings-avatar-change-hint {
    opacity: 0;
  }
  .settings-avatar-preview-clickable:hover .settings-avatar-change-hint,
  .settings-avatar-preview-clickable:focus-visible .settings-avatar-change-hint {
    opacity: 1;
  }
}
.user-avatar-changeable {
  position: relative;
  cursor: pointer;
}
.user-avatar-changeable .user-avatar-change-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
  border-radius: inherit;
  pointer-events: none;
}
.user-avatar-changeable:hover .user-avatar-change-hint,
.user-avatar-changeable:focus-visible .user-avatar-change-hint {
  opacity: 1;
}
.gallery-preview-item img.gallery-img-error {
  object-fit: contain;
  background: var(--bg-soft, #f3f4f6);
  min-height: 80px;
}
.gallery-preview-item img.gallery-img-loading {
  opacity: 0.55;
  filter: blur(1px);
}
.settings-avatar-preview-clickable:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.settings-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}
.app-timeline-wrap { margin-top: 0.35rem; }
.stat-card-enhanced {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 1.15rem 1.25rem;
}
.stat-card-enhanced .stat-label {
  margin-bottom: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-card-enhanced .stat-value {
  font-size: 1.85rem;
}
#drafts-section.card {
  padding: 1.25rem;
  border-color: var(--primary-light);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}
.dashboard-text-link-on-dark {
  color: white !important;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.dashboard-text-link-on-dark:hover {
  background: rgba(255,255,255,0.22);
}

/* ── Jobs list view modes ────────────────────– */
.jobs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  transition: grid-template-columns 0.3s;
}
.jobs-list.list-view {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  overflow: visible;
}
.jobs-list.list-view .job-card-wrap {
  overflow: visible;
}
.jobs-list.list-view .job-card-rich {
  flex-direction: row;
}
.jobs-list.list-view .job-card-thumb {
  width: 110px;
  min-height: 110px;
}
.jobs-list.list-view .job-card-title {
  font-size: 1.05rem;
}
.jobs-list.list-view .job-card-fact {
  font-size: 0.875rem;
}
.jobs-list.list-view .job-card-actions {
  flex-direction: row;
  align-items: center;
}

.jobs-list.thumbnail-view {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.jobs-list.jobs-grid-4.thumbnail-view {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .jobs-list.thumbnail-view,
  .jobs-list.jobs-grid-4.thumbnail-view {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .jobs-list.thumbnail-view,
  .jobs-list.jobs-grid-4.thumbnail-view {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .jobs-list.thumbnail-view,
  .jobs-list.jobs-grid-4.thumbnail-view {
    grid-template-columns: 1fr;
  }
}
.jobs-list.thumbnail-view .job-card-rich {
  flex-direction: column;
  min-height: 0;
}
.jobs-list.thumbnail-view .job-card-thumb {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-right: none;
  border-bottom: 1px solid var(--border-light);
}
.jobs-list.thumbnail-view .job-card-content {
  padding: 0.85rem;
}
.jobs-list.thumbnail-view .job-card-title {
  font-size: 0.95rem;
}
.jobs-list.thumbnail-view .job-card-facts {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.jobs-list.thumbnail-view .job-card-fact {
  font-size: 0.8rem;
}
.jobs-list.thumbnail-view .job-card-actions {
  border-top: 1px solid var(--border-light);
  padding-top: 0.65rem;
  margin-top: 0.25rem;
}
.jobs-list.thumbnail-view .job-card-apply-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .jobs-list.list-view .job-card-wrap {
    min-width: 0;
    overflow: hidden;
  }
  .jobs-list.list-view .job-card-rich {
    flex-direction: column;
    min-height: 0;
    align-items: stretch;
  }
  .jobs-list.list-view .job-card-content {
    width: 100%;
    min-width: 0;
    padding: 0.75rem;
  }
  .jobs-list.list-view .job-card-thumb {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .jobs-list.list-view .job-card-facts {
    gap: 0.25rem 0.65rem;
  }
  .jobs-list.list-view .job-card-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
  }
  .jobs-list.list-view .job-card-apply-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    justify-content: center;
  }
}

/* ── Badges ──────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-active     { background: var(--green-bg);  color: var(--primary-light); }
.badge-closed     { background: var(--red-bg);    color: var(--primary-dark); }
.badge-draft      { background: var(--gray-soft); color: var(--gray-strong); }
.badge-pending_payment { background: #FEF3C7; color: #92400E; }
html.dark .badge-pending_payment { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
.job-payment-wrap { padding-bottom: 4rem; max-width: 720px; }
.job-payment-hero { text-align: center; padding: 1.25rem; margin-bottom: 1rem; }
.job-payment-icon { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 0.5rem; }
.job-payment-summary h2 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.job-payment-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 13px; color: var(--text-muted); margin: 0 0 0.75rem; }
.job-payment-amount { font-size: 1.05rem; margin: 0; }
.job-payment-package { font-size: 14px; color: var(--text-muted); margin: 0 0 0.5rem; }
.job-payment-pay-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1rem 0; }
.job-payment-pay-card { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.job-payment-pay-card-muted { opacity: 0.85; }
.job-payment-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; margin-top: 1rem; }
.job-payment-status-wait { margin-top: 1rem; font-size: 14px; color: var(--text-muted); }
.badge-full_time  { background: var(--primary-dark); color: white; }
.badge-part_time  { background: var(--amber-bg);  color: var(--text-muted); }
.badge-contract   { background: var(--blue-bg);   color: var(--primary); }
.badge-internship { background: var(--green-bg);  color: var(--primary-mid); }
.badge-remote     { background: var(--border-light); color: var(--primary-mid); }
.badge-gig        { background: var(--primary); color: white; }
.badge-one_day    { background: var(--primary-mid); color: white; }
.badge-hourly     { background: var(--primary-light); color: white; }
.badge-gig-kind   { background: var(--primary-dark); color: white; font-size: 11px; }

/* ── Tags (on job detail) ────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--border-light);
  color: var(--text-body);
  border: 1px solid var(--border);
}
.tag-green  { background: var(--green-bg);  color: var(--primary-mid); }
.tag-blue   { background: var(--blue-bg);   color: var(--primary); }
.tag-amber  { background: var(--amber-bg);  color: var(--text-muted); }
.tag-red    { background: var(--red-bg);    color: var(--primary-dark); }
.tag-gray   { background: var(--gray-soft); color: var(--gray-strong); }
.tag-maroon { background: var(--primary-dark); color: white; }
.tag-maroon-soft { background: var(--green-bg); color: var(--primary); }
.tag-gray-soft { background: var(--border-light); color: var(--text-muted); }

/* ── Section heading ─────────────────────────── */
.section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 1.5rem 0 0.6rem;
}

/* ── Form fields ─────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.required { color: var(--red); margin-left: 2px; }
input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,32,32,0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.form-header { margin-bottom: 1.75rem; }
.form-header h1 { font-size: 1.35rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.form-header p  { font-size: 13px; color: var(--text-muted); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Messages */
.msg-success,
.dashboard-msg.msg-success,
.settings-flash-msg.msg-success,
.form-flash-msg.msg-success {
  background: var(--success-bg);
  color: var(--success-dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border-left: 4px solid var(--success);
}
.msg-error {
  background: #fde8e8;
  color: #5c1010;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #d4a0a0;
  border-left: 4px solid var(--primary);
}
html.dark .msg-error {
  background: #3a1515;
  color: #ffd4d4;
  border: 1px solid #8b3030;
  border-left-color: var(--primary-bright);
}
.dashboard-msg.msg-error,
.auth-card .msg-error {
  margin-bottom: 1rem;
}
html.dark .msg-success,
html.dark .dashboard-msg.msg-success,
html.dark .settings-flash-msg.msg-success,
html.dark .form-flash-msg.msg-success {
  background: var(--success-bg);
  color: #bbf7d0;
  border-left-color: var(--success);
}

/* ── Dashboard ───────────────────────────────── */
.dashboard-section { margin-bottom: 1.75rem; }
.welcome-banner h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.welcome-banner p  { font-size: 14px; opacity: 0.8; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.stat-card { display: block; text-decoration: none; cursor: pointer; }
a.stat-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.stat-card-active { border: 2px solid var(--primary) !important; box-shadow: 0 0 0 3px rgba(139,32,32,0.12) !important; }

.stat-label  { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.stat-value  { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-maroon { color: var(--primary); }
.stat-maroon-light { color: var(--primary-light); }
.stat-green  { color: var(--primary-mid); }
.stat-red    { color: var(--primary-dark); }
.stat-gray   { color: var(--text-muted); }

/* ── Table ───────────────────────────────────── */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-body);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FBF0F0; }
.td-title { font-weight: 700; color: var(--text-dark); }

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 2rem;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-dismiss {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.breadcrumb-dismiss:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg, #FBF0F0);
}
@media (max-width: 768px) {
  .breadcrumb[data-breadcrumb-bar] {
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    font-size: 12px;
  }
  .breadcrumb[data-breadcrumb-bar] .breadcrumb-dismiss {
    display: inline-flex;
  }
}
html.dark .breadcrumb-dismiss {
  background: #1f2335;
  border-color: var(--border);
  color: var(--text-body);
}
html.dark .breadcrumb-dismiss:hover {
  color: var(--accent);
  border-color: var(--primary-light);
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: var(--accent);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 13px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.site-footer-logo {
  display: inline-flex;
  text-decoration: none;
  line-height: 0;
}
.site-footer-logo-img {
  height: 2rem;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.site-footer-logo-dark { display: none; }
.site-footer-logo-mobile { display: none !important; }
html.dark .site-footer-logo-light { display: none; }
html.dark .site-footer-logo-dark { display: block; }
.site-footer-copy {
  margin: 0;
  color: var(--accent);
  opacity: 0.9;
  font-size: 12px;
}
.site-footer-links {
  margin: 0.45rem 0 0;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}
.site-footer-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer-links a:hover { opacity: 0.85; }
html:not(.dark) .site-footer-links a { color: var(--primary-dark); }
html:not(.dark) .site-footer {
  background: #b86b6b;
  color: var(--primary-dark);
}
html:not(.dark) .site-footer-copy {
  color: #2D0A0A;
  opacity: 1;
}
@media (max-width: 900px) {
  .site-footer-logo-desktop { display: none !important; }
  .site-footer-logo-mobile { display: block !important; }
  html:not(.dark) .site-footer-logo-dark.site-footer-logo-mobile { display: none !important; }
  html.dark .site-footer-logo-light.site-footer-logo-mobile { display: none !important; }
  .site-footer-logo-img { height: 1.75rem; max-width: 130px; }
}

/* Mobile menu overlays */
.nav-backdrop,
.user-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 5, 5, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 140;
}
.user-menu-backdrop { z-index: 250; }
.nav-backdrop[hidden],
.user-menu-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 768px) {
  .user-menu-backdrop {
    z-index: 1240;
  }
}

body.user-menu-open .bottom-nav {
  visibility: hidden;
  pointer-events: none;
}
body.menu-open,
body.user-menu-open { overflow: hidden; }

.user-menu-panel-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.user-menu-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}
.user-menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--primary-light);
  border-radius: 50%;
  background: var(--green-bg, #FBF0F0);
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.user-menu-close i {
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
}
.user-menu-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
html.dark .user-menu-close {
  background: rgba(139, 32, 32, 0.35);
  border-color: #c96a6a;
  color: var(--accent);
}
html.dark .user-menu-close:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #fff;
}

/* ── Utility ─────────────────────────────────── */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.text-muted { color: var(--text-muted); font-size: 13px; }
.divider { height: 1px; background: var(--border-light); margin: 1rem 0; }

/* ── Auto-save notification ──────────────────── */
.auto-save-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: none;
  gap: 8px;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}
.auto-save-notification i {
  color: #fff;
}

/* ── Draft recovery modal ────────────────────── */
.draft-recovery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.draft-recovery-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(45,10,10,0.3);
}
.draft-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.draft-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.draft-btn-primary  { background: var(--primary); color: white; flex: 1; min-width: 140px; }
.draft-btn-secondary { background: var(--bg); color: var(--text-body); border: 1.5px solid var(--border); }
.draft-btn-danger   { background: transparent; color: var(--text-body); border: 1.5px solid var(--border); }

/* ═══════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════ */
html.dark {
  --bg:           #0f1117;
  --surface:      #1a1d27;
  --border:       #2e3347;
  --border-light: #252839;
  --text-dark:    #f1f5f9;
  --text-body:    #cbd5e1;
  --text-muted:   #94a3b8;
  --text-light:   #64748b;
  --green:        var(--accent);
  --green-bg:     #2a1515;
  --blue:         var(--accent);
  --blue-bg:      #2a1515;
  --red-bg:       #2a0f0f;
  --amber-bg:     #252020;
  --success:      #4ade80;
  --success-dark: #86efac;
  --success-bg:   #14532d;
  --success-border: #166534;
  --shadow:       0 2px 12px rgba(0,0,0,0.4);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.5);
  --row-hover-bg: rgba(255, 255, 255, 0.04);
  /* tokens missing from dark — fixes dozens of soft-bg components */
  --primary-bg:   rgba(139, 32, 32, 0.18);
  --bg-soft:      #13161f;
  --card-bg:      #1a1d27;
  --gray-soft:    #252839;
  --gray-strong:  #e2e8f0;
  --tier-paid-bg: rgba(139, 32, 32, 0.22);
  --tier-paid-text: #fca5a5;
  --tier-paid-border: rgba(252, 165, 165, 0.25);
}
html.dark .job-detail-related-row:hover,
html.dark .notify-item:hover,
html.dark .job-card-menu-item:hover {
  background: var(--row-hover-bg);
}
html.dark .inbox-thread-row.inbox-thread-unread {
  background: rgba(139, 32, 32, 0.14);
}
html.dark .btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
html.dark .btn-primary:hover {
  background: var(--primary-light) !important;
  color: #fff !important;
}
html.dark .site-header .btn-outline {
  color: var(--text-dark) !important;
  border-color: var(--border) !important;
  background: #1f2335 !important;
}
html.dark .site-header .btn-outline:hover {
  background: rgba(139, 32, 32, 0.35) !important;
  border-color: var(--primary-light) !important;
  color: #fff !important;
}
html.dark .gig-quick-filter,
html.dark .hero-gig-filters button.gig-quick-filter {
  border-radius: var(--chip-radius);
}
html.dark .settings-terms-toc-link {
  background: #1f2335;
  border-color: #5a6578;
  color: #eef1f6;
}
html.dark .settings-terms-toc-link:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(139, 32, 32, 0.35);
}
html.dark .settings-terms-toc-link.is-active {
  background: var(--primary);
  border-color: var(--accent);
  color: #fff;
}
html.dark body { background: var(--bg); color: var(--text-body); }
html.dark .card,
html.dark .job-card,
html.dark .form-card,
html.dark .auth-card,
html.dark .table-card,
html.dark .sidebar,
html.dark .stat-card { background: var(--surface) !important; border-color: var(--border) !important; }
html.dark .job-card:hover { background: #1f2335 !important; border-color: var(--primary) !important; }
html.dark .stats-strip { background: #13161f !important; border-color: var(--border) !important; }
html.dark .breadcrumb { background: #13161f !important; border-color: var(--border) !important; }
html.dark .breadcrumb a { color: var(--accent); }
html.dark input, html.dark select, html.dark textarea { background: #1f2335 !important; border-color: var(--border) !important; color: var(--text-dark) !important; }
html.dark .hero-landing .search-form input,
html.dark .hero-landing .search-form-glass input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}
html.dark .hero-landing .search-form input::placeholder,
html.dark .hero-landing .search-form-glass input::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
}
html.dark input::placeholder, html.dark textarea::placeholder { color: var(--text-light) !important; }
html.dark table thead tr { background: #13161f !important; }
html.dark table tbody tr { background: var(--surface) !important; }
html.dark table tbody tr:hover { background: #1f2335 !important; }
html.dark table th, html.dark table td { border-color: var(--border) !important; color: var(--text-body) !important; }
html.dark .section-heading { border-color: var(--border) !important; }
html.dark .section-label { color: var(--text-muted) !important; }
html.dark .sidebar-title { color: var(--text-muted) !important; }
html.dark .td-title { color: var(--text-dark) !important; }
html.dark .welcome-banner { border-color: var(--border) !important; }
html.dark .dashboard-welcome-combined {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}
html.dark .dashboard-welcome-body h2 {
  color: var(--text-dark);
}
html.dark .dashboard-welcome-body p {
  color: var(--text-body);
  opacity: 1;
}
html.dark .dashboard-welcome-combined .dashboard-section-hint {
  color: var(--text-muted);
}
html.dark .dashboard-welcome-avatar {
  background: #1f2335;
  border-color: var(--border);
}
html.dark .dashboard-welcome-avatar .user-avatar-initials {
  color: var(--text-dark);
}
html.dark .dashboard-welcome-tag {
  background: rgba(139, 32, 32, 0.22);
  border-color: var(--border);
  color: var(--text-dark);
}
html.dark .dashboard-welcome-actions .btn-white {
  background: var(--primary);
  color: #fff;
}
html.dark .welcome-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dark);
}
html.dark .welcome-banner h2,
html.dark .welcome-banner p {
  color: var(--text-dark);
  opacity: 1;
}
html.dark .welcome-banner-first h2 {
  background: none;
  -webkit-text-fill-color: var(--text-dark);
  color: var(--text-dark);
}
/* ── Dark mode component overrides ────────────────────────────── */
html.dark .btn-white {
  background: #1f2335;
  color: var(--accent);
  border-color: var(--border);
}
html.dark .btn-white:hover {
  background: #252839;
}
html.dark .btn-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}
html.dark .honeybee-toast-error {
  color: #fca5a5;
}
html.dark .honeybee-toast-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}
html.dark .badge-paused {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}
html.dark .badge-spotlight {
  background: rgba(180, 130, 0, 0.2);
  color: #fde68a;
}
html.dark .gallery-upload-status.is-saved {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}
html.dark .gallery-upload-status.is-pending {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}
html.dark .gallery-upload-status.is-error {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}
/* Job list thumb icon colors */
html.dark .listing-post-kind-vacancy .listing-post-kind-icon { color: #fca5a5; }
html.dark .listing-thumb-job { color: #fecaca; }
html.dark .listing-thumb-gig { color: #fecaca; }
html.dark .listing-thumb-talent {
  background: var(--product-skills);
  color: var(--product-skills-fg);
  border-color: var(--product-skills-border);
}
/* Browse pill icon colors on dark */
html.dark .home-browse-vacancy-icon { color: #fecaca; }
html.dark .home-browse-talent-icon { color: var(--product-skills); }
/* Mission tile values */
html.dark .mission-tile-value,
html.dark .stat-value-amber { color: #fbbf24; }
html.dark .stat-value-red { color: #fb923c; }
/* Avatar crop button */
html.dark .avatar-crop-close {
  background: var(--gray-soft);
  color: var(--text-dark);
}
/* Ha invoice payment icon */
html.dark .ha-invoice-payment-block h4 i { color: #4ade80; }

html.dark .site-footer {
  background: #2D0A0A;
  color: var(--accent);
}
html.dark .site-footer-copy {
  color: #e8a0a0;
  opacity: 1;
}
html.dark .badge-full_time,
html.dark .badge-gig-kind,
html.dark .badge-gig,
html.dark .badge-one_day,
html.dark .badge-hourly {
  background: var(--primary) !important;
  color: #fff !important;
  border: 1px solid rgba(232, 160, 160, 0.35);
}

/* ── Dark mode — all remaining badge types that use light bg / dark text ── */
html.dark .badge-part_time {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fcd34d !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
html.dark .badge-contract {
  background: rgba(96, 165, 250, 0.14) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
}
html.dark .badge-internship {
  background: rgba(52, 211, 153, 0.14) !important;
  color: #6ee7b7 !important;
  border-color: rgba(52, 211, 153, 0.25) !important;
}
html.dark .badge-remote {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}
/* Negotiable / generic soft badges that use light green or pink bg */
html.dark .badge-negotiable,
html.dark [class*="badge-"][style*="background"] {
  border-color: rgba(255,255,255,0.12) !important;
}
/* inbox role badge overrides */
html.dark .inbox-role-badge.account-type-badge {
  background: rgba(139, 32, 32, 0.3) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.25) !important;
}
html.dark .tag-maroon {
  background: var(--primary);
  color: #fff;
}
html.dark tr:hover td { background: #1f2335 !important; }
html.dark .btn:not(.btn-primary):not(.btn-success):not(.btn-info):not(.btn-warning):not(.btn-danger):not(.btn-search):not(.btn-logout):not(.btn-outline):not(.btn-white):not(.btn-hero-find):not(.btn-hero-post):not(.btn-hero-both) {
  background: #1f2335 !important; color: var(--text-body) !important; border-color: var(--border) !important;
}
html.dark .hero-landing .btn-hero-find {
  background: #22c55e !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
html.dark .hero-landing .btn-hero-find:hover {
  background: #16a34a !important;
  color: #fff !important;
}
html.dark .hero-landing .btn-hero-post {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
html.dark .hero-landing .btn-hero-post:hover {
  background: #dc2626 !important;
  color: #fff !important;
}
html.dark #draft-banner { background: var(--surface) !important; }
html.dark .draft-recovery-content { background: var(--surface); }

/* Dark mode view toolbar */
html.dark .view-toolbar {
  border-bottom: 1px solid #4a5068 !important;
}
html.dark .view-btn { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text-body) !important; }
html.dark .view-btn:hover { border-color: var(--primary) !important; color: var(--primary) !important; }
html.dark .view-btn.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }
html.dark .sidebar-categories { background: #13161f !important; }
html.dark .category-list a { color: var(--text-body) !important; }
html.dark .category-list a:hover { background: var(--surface) !important; border-color: var(--border) !important; }
html.dark .category-list a.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }
html.dark .clear-filters-link { color: var(--accent) !important; }
html.dark .clear-filters-link:hover { color: white !important; }
html.dark .sidebar-section + .sidebar-section { border-color: var(--border) !important; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; gap: 0.5rem; }
  a,
  button,
  .btn,
  [role="button"],
  .bottom-nav-item,
  .hive-buzz-filter,
  .dashboard-tab {
    touch-action: manipulation;
  }
  .header-left { order: 1; flex: 1; min-width: 0; }
  .header-actions { order: 2; margin-left: auto; width: auto; }
  .header-actions .btn-outline { display: none; }
  .hamburger { display: flex !important; order: 3; }
  .site-header-auth .hamburger { display: none !important; }
  html:not(.dark) .hamburger span { background: var(--text-dark); }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 5rem 1.25rem 2rem;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #1a0808 100%);
    gap: 0.35rem;
    order: unset;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  html:not(.dark) .nav-links {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    border: none;
    box-shadow: inset 0 1px 0 var(--border-light);
  }
  html:not(.dark) .nav-links a {
    color: var(--text-dark);
    border-bottom-color: var(--border-light);
    font-size: 16px;
    padding: 0.85rem 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.85rem 0.5rem;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
  }
  .nav-links a:last-child { border-bottom: none; }

  .user-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100vw, 360px);
    max-width: 100%;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border);
    z-index: 1250;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .user-menu-panel-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: 0.25rem;
  }
  .user-menu-panel[hidden] { display: none !important; }
  .user-menu-panel-top { display: flex; flex-shrink: 0; }
  .user-menu-header { flex-shrink: 0; }
  .user-menu-links { flex-shrink: 0; }
  .user-menu-notify-panel {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }
  .user-menu-notify-scroll {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }
  .user-menu-notifications {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .user-menu-footer {
    flex-shrink: 0;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  }
  .user-menu-links-list a {
    overflow: visible;
  }
  .user-menu-link-badge {
    right: 0.75rem;
  }
  .user-menu-header-compact .user-menu-meta span {
    max-width: none;
    white-space: normal;
  }

  .hero { padding: 2rem 1rem 1.75rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero-purpose { font-size: 14px; }
  .hero-journeys { grid-template-columns: 1fr; }
  .hero-cta-row .btn-hero-find,
  .hero-cta-row .btn-hero-post,
  .hero-cta-row .btn-hero-both { flex: 1; min-width: 0; }
  .hero-trust-stats { gap: 0.4rem; }
  .hero-trust-stat { font-size: 11px; padding: 0.35rem 0.5rem; }
  .promote-grid { grid-template-columns: 1fr; }
  .promote-ideas-grid { grid-template-columns: 1fr; }
  .hero-tagline { font-size: 12px; margin-bottom: 1rem; }
  .hero p  { font-size: 13px; margin-bottom: 1rem; }
  .hero-search-wrap { padding: 0 0.15rem; }
  .search-form-hero {
    gap: 0;
    padding: 4px;
  }
  .search-form input {
    height: 44px;
    font-size: 16px;
    padding-left: 40px;
  }
  .search-field-icon {
    left: 14px;
    font-size: 14px;
  }
  .btn-search-go {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }
  .hero-near-label {
    font-size: 12px;
    margin-bottom: 0.55rem;
  }

  .header-back-label {
    display: none;
  }
  .dashboard-hub { grid-template-columns: 1fr; }
  .dashboard-hub-stats.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .drafts-container.drafts-thumb-view {
    grid-template-columns: 1fr;
  }

  .main-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .sidebar-column {
    width: 100%;
    order: 2;
    position: static;
  }

  .sidebar {
    width: 100%;
    order: 2;
    margin-top: 0 !important;
    position: static;
  }

  .jobs-column {
    order: 1;
    width: 100%;
  }
  .grid2 { grid-template-columns: 1fr !important; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }

  .container { padding: 0 1rem; }
  .breadcrumb { padding: 0.5rem 1rem; font-size: 12px; }

  .container > div[style*="grid-template-columns:1fr 320px"],
  .container > div[style*="grid-template-columns:1fr 280px"] {
    display: flex !important;
    flex-direction: column !important;
  }

  .table-card { overflow-x: auto; }
  table { min-width: 580px; }

  .welcome-banner { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .dashboard-page {
    padding-top: 1.25rem;
  }
  .dashboard-welcome-combined {
    padding: 1.15rem 1rem;
  }
  .auth-card { margin: 1rem; }
  .form-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .view-btn-label { display: none; }
  .view-btn {
    padding: 0.55rem 0.65rem;
    min-width: 40px;
    justify-content: center;
  }
  .view-controls { gap: 0.35rem; }
  .view-toolbar { justify-content: center; }
  .home-results-header-split .view-toolbar-inline {
    justify-content: flex-end;
  }
}

@media (max-width: 400px) {
  div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Detail page grids ── */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.job-detail-page {
  margin-top: 1.5rem;
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}
.job-detail-back {
  margin-bottom: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.job-detail-grid {
  align-items: start;
}
.job-detail-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.job-detail-hero-card {
  padding: 1.75rem;
}
.job-detail-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  font-size: 26px;
  margin-bottom: 1rem;
}
.job-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.2;
}
.job-detail-company {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0;
}
.job-detail-poster-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}
.job-detail-poster-row .job-detail-view-profile-btn {
  margin-left: auto;
}
@media (max-width: 520px) {
  .job-detail-poster-row .job-detail-view-profile-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
.job-detail-hero-meta {
  flex: 1;
  min-width: 0;
}
.job-detail-posted-by {
  font-size: 13px;
  margin-bottom: 0.5rem;
}
.listing-intent-strip {
  background: var(--bg-soft, #f8f9fb);
  border: 1px solid var(--border-light, #e8eaed);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}
.listing-intent-line {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}
.listing-intent-line i {
  color: var(--primary);
  margin-right: 0.35rem;
}
.listing-intent-meta {
  margin: 0;
  font-size: 13px;
}
.job-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
}
.job-owner-toolbar {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.job-owner-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.job-owner-toolbar-primary {
  margin-left: auto;
  flex-shrink: 0;
}
.job-owner-post-btn {
  min-height: 42px;
  padding: 0.55rem 1.35rem;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.job-owner-posted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  background: #ecfdf3;
  border: 1.5px solid #86efac;
  color: #166534;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.job-owner-posted-badge i { font-size: 1.1em; }
html.dark .job-owner-posted-badge {
  background: rgba(22, 101, 52, 0.22);
  border-color: #4ade80;
  color: #bbf7d0;
}
.job-detail-flash {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.support-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-bg);
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.support-bank-details {
  margin: 0 0 0.75rem;
  font-size: 14px;
}
.support-bank-details div {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.35rem;
}
.support-bank-details dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}
.support-bank-details dd { margin: 0; color: var(--text-dark); }
.support-bank-details-compact { font-size: 13px; }
.support-bank-number { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.job-payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
  font-weight: 600;
  font-size: 13px;
}
.job-owner-toolbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.job-owner-toolbar-label {
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.job-owner-toolbar-hint {
  margin: 0 0 0.75rem;
  font-size: 13px;
  color: var(--text-muted);
}
.job-detail-own-note {
  text-align: center;
  margin-bottom: 0.75rem;
}
.job-owner-edit-hint {
  margin: 0.65rem 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.job-owner-edit-hint i { color: var(--primary); margin-right: 0.25rem; }
.job-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.job-section-header .section-heading,
.job-section-header-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.job-section-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.job-section-edit-btn:hover { background: var(--primary); color: #fff; }
.job-section-edit-link { line-height: 1.2; }
.job-section-body { font-size: 14px; color: var(--text-body); line-height: 1.85; white-space: pre-line; }
.job-section-empty { font-size: 14px; color: var(--text-light); font-style: italic; margin: 0; }
.job-section-edit-form { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light); }
.job-section-edit-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.75rem; }
.job-detail-hero-top { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
.job-detail-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.employer-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 11px;
}
.employer-type-individual {
  background: var(--green-bg);
  color: var(--primary-mid);
  border: 1px solid rgba(139, 32, 32, 0.15);
  border-radius: 999px;
  padding: 2px 8px;
}
.employer-type-registered_company {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Dark mode — employer type badges */
html.dark .employer-type-individual {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.25);
}
html.dark .employer-type-registered_company {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.25);
}
.employer-profile-card { padding: 1.25rem; margin-bottom: 1rem; }
.employer-profile-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.employer-profile-logo, .employer-profile-logo-fallback {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
}
.employer-profile-logo { object-fit: cover; border: 1px solid var(--border-light); }
.employer-profile-name { margin: 0.25rem 0 0; font-size: 1.15rem; font-weight: 800; }
.employer-profile-meta { margin: 0.2rem 0 0; font-size: 13px; color: var(--text-muted); }
.employer-profile-block h3 { margin: 0 0 0.5rem; font-size: 14px; font-weight: 700; }
.employer-profile-block p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-body); }
.employer-profile-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.employer-profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.employer-profile-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.employer-type-picker { display: grid; gap: 0.65rem; margin-top: 0.35rem; }
.employer-type-card { position: relative; }
.employer-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.employer-type-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.employer-type-card input:checked + .employer-type-card-inner {
  border-color: var(--primary);
  background: var(--green-bg);
}
.employer-type-card-inner i { color: var(--primary); margin-top: 0.15rem; }
.employer-type-card-inner small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 0.15rem; }
.employer-profile-hint { margin: 0 0 0.75rem; }
.settings-file-preview img { max-width: 80px; max-height: 80px; border-radius: 8px; margin-bottom: 0.35rem; }
.employer-dual-seeker { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border-light); }
.job-form-view-link { margin-top: 0.5rem; }
.job-gallery-card { padding: 1.5rem; }
.job-owner-section.card { padding: 1.5rem; }
.listings-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
}
.listing-row {
  margin-bottom: 0;
}
.listing-row-body {
  flex: 1;
  min-width: 0;
}
.listing-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.listing-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.listing-card-actions {
  flex-shrink: 0;
}
.hb-confirm {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hb-confirm[hidden] {
  display: none !important;
}
.hb-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 16, 0.45);
  backdrop-filter: blur(3px);
}
.hb-confirm-card {
  position: relative;
  width: min(100%, 400px);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(0, 0, 0, 0.18));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
html.dark .hb-confirm-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}
html.dark .hb-confirm-title {
  color: var(--text-dark);
}
html.dark .hb-confirm-message {
  color: var(--text-muted);
}
.hb-confirm-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.hb-confirm-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}
.hb-confirm-message {
  margin: 0 0 1.25rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.hb-confirm-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}
body.hb-confirm-open {
  overflow: hidden;
}
.reminders-page {
  margin: 1.5rem auto 3rem;
  max-width: 720px;
}
.reminders-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.reminders-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 1.25rem;
}
.reminders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.reminder-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon body action"
    "dismiss dismiss dismiss";
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
}
.reminder-card-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.reminder-card-body {
  grid-area: body;
}
.reminder-card-action {
  grid-area: action;
}
.reminder-card-dismiss {
  grid-area: dismiss;
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border-light);
}
.reminder-dismiss-toggle .notification-pref-label {
  font-size: 13px;
  font-weight: 600;
}
.reminder-card-exposure {
  margin-top: 0.35rem !important;
  font-size: 12px !important;
  color: var(--text-light) !important;
}
.reminder-card-exposure i {
  color: var(--primary);
  margin-right: 0.25rem;
}
.reminder-card-muted {
  opacity: 0.72;
}
.reminders-prefs-card {
  margin-top: 1.5rem;
}
.notification-pref-exposure-warn {
  color: var(--text-muted) !important;
}
.notification-pref-exposure-warn i {
  color: var(--primary);
  margin-right: 0.25rem;
}
html.dark .notification-pref-row {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .notification-pref-toggle,
html.dark .notification-pref-label {
  color: var(--text-body);
}
html.dark .notification-pref-exposure,
html.dark .notification-pref-exposure-warn {
  color: var(--text-muted) !important;
}
html.dark .reminder-card-dismiss {
  border-color: var(--border);
}
html.dark .job-detail-related-head {
  background: var(--bg);
  border-color: var(--border);
}
.reminder-card-body h2 {
  margin: 0 0 0.2rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.reminder-card-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.reminders-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.reminders-empty i {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.reminders-manage {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 13px;
}
.reminders-manage a {
  color: var(--primary);
}
.detail-grid-narrow { grid-template-columns: 1fr 280px; }
.job-detail-facts-card {
  padding: 1.5rem;
}
.detail-row {
  display: grid;
  grid-template-columns: minmax(7rem, 42%) 1fr;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.detail-row-last {
  border-bottom: none;
}
.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}
.detail-value {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  word-break: break-word;
}
.detail-value-accent { color: var(--primary); }
.detail-value-muted { color: var(--text-muted); font-style: italic; font-weight: 500; }
.detail-value-danger { color: var(--red); }

/* ── Nav badge (inbox unread) ── */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--amber, #F59E0B);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

/* ── Apply wizard ── */
.apply-page { max-width: 640px; margin: 1.5rem auto 3rem; }
.apply-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.apply-summary .company-logo { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; }
.apply-summary strong { display: block; font-size: 15px; }
.apply-summary span { font-size: 13px; color: var(--text-muted); }
.apply-card { padding: 1.5rem; }
.apply-progress-wrap {
  height: 4px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.apply-progress {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.apply-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.apply-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft, #F8FAFC);
}
.apply-step.active { color: var(--primary); background: var(--primary-bg, #FBF0F0); }
.apply-prefill-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--green-bg);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}
.apply-already-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--green-bg);
  border: 1px solid var(--border-light);
  color: var(--text-body);
}
.apply-already-banner > i {
  font-size: 1.35rem;
  color: var(--green);
}
.apply-already-banner strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.apply-already-banner p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.apply-success-flash {
  margin-top: 1rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.msg-info {
  background: var(--bg-soft, #F8FAFC);
  color: var(--text-body);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid var(--accent);
}
.apply-nav { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.apply-nav .btn { flex: 1; min-width: 120px; }
.apply-cv-drop { margin-bottom: 0.5rem; }
.apply-cv-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.apply-cv-source-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
}
.apply-cv-source-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--green-bg);
  color: var(--primary-mid);
}
.apply-saved-doc-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.apply-saved-doc-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  background: var(--surface);
}
.apply-saved-doc-item:has(input:checked) {
  border-color: var(--primary);
  background: var(--green-bg);
}
.apply-saved-doc-icon {
  color: var(--primary);
  width: 1.25rem;
  text-align: center;
}
.apply-saved-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.apply-saved-doc-meta strong {
  font-size: 13px;
}
.apply-saved-doc-meta small {
  font-size: 11px;
  color: var(--text-muted);
}
.job-detail-apply-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cv-name { font-size: 12px; color: var(--primary); margin-top: 0.5rem; font-weight: 600; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.page-local-back {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

/* ── Image gallery upload ── */
.pro-gallery-upload { margin: 1rem 0; }
.pro-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.pro-gallery-header p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.pro-gallery-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.gallery-upload-status {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft, #F8FAFC);
  color: var(--text-muted);
}
.gallery-upload-status.is-uploading {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg, #FBF0F0);
}
.gallery-upload-status.is-saved {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}
.gallery-upload-status.is-pending {
  color: #92400e;
  border-color: #fcd34d;
  background: #fffbeb;
}
.gallery-upload-status.is-error {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fef2f2;
}
.gallery-preview-item {
  position: relative;
}
.gallery-saved-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(22, 101, 52, 0.92);
  border-radius: 4px;
  pointer-events: none;
}
.gallery-preview-item img.gallery-img-error {
  opacity: 0.35;
}
.gallery-pending-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(146, 64, 14, 0.9);
  border-radius: 4px;
}
@media (min-width: 768px) {
  .job-form-page-wrap {
    padding-left: 0;
    padding-right: 0;
  }
  .job-form-card {
    padding: 1.5rem 1.65rem;
  }
}
.gallery-preview-pending.is-uploading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.settings-avatar-preview.is-saving::after {
  content: 'Saving…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: inherit;
}
.settings-avatar-preview.is-saved .avatar-saved-chip {
  display: flex;
}
.avatar-saved-chip {
  display: none;
  position: absolute;
  bottom: -4px;
  right: -4px;
  align-items: center;
  gap: 0.2rem;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #166534;
  border-radius: 999px;
  border: 2px solid var(--surface, #fff);
}
.pro-gallery-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1.75rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft, #F8FAFC);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.pro-gallery-drop:hover { border-color: var(--primary); background: var(--primary-bg, #FBF0F0); }
.pro-gallery-drop.is-drag-over {
  border-color: var(--primary);
  background: var(--primary-bg, #FBF0F0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.pro-gallery-drop i { font-size: 1.75rem; color: var(--primary); }
.pro-gallery-drop span { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.pro-gallery-drop small { font-size: 12px; color: var(--text-muted); }
.pro-gallery-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.gallery-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.gallery-board .gallery-existing,
.gallery-board .gallery-preview-grid {
  display: contents;
}
.gallery-board .gallery-existing[hidden] {
  display: none;
}
.job-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.gallery-preview-item,
.job-gallery-item {
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  background: var(--border-light);
}
.gallery-preview-item {
  aspect-ratio: 1;
}
.job-gallery-item {
  display: flex;
  flex-direction: column;
}
.gallery-preview-item img,
.job-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--border-light);
}
.job-owner-notice {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.job-owner-notice p {
  margin: 0 0 0.75rem;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.45;
}
.job-owner-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.job-owner-notice-actions .draft-delete-form .btn-danger.btn-sm.draft-delete-btn {
  min-height: 34px;
  min-width: 34px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.dark .job-owner-notice-actions .btn-danger.btn-sm.draft-delete-btn {
  background: rgba(127, 29, 29, 0.5) !important;
  border: 1.5px solid #fca5a5 !important;
  color: #fecaca !important;
  box-shadow: none;
}
html.dark .job-owner-notice-actions .btn-danger.btn-sm.draft-delete-btn i {
  color: #fecaca !important;
}
html.dark .job-owner-notice-actions .btn-danger.btn-sm.draft-delete-btn:hover {
  background: rgba(185, 28, 28, 0.62) !important;
  border-color: #fecaca !important;
  color: #fff !important;
}
html.dark .job-owner-notice-actions .btn-danger.btn-sm.draft-delete-btn:hover i {
  color: #fff !important;
}
.draft-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.draft-publish-form {
  display: inline-flex;
  margin: 0;
}
.job-gallery-item figcaption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 6px;
  text-align: center;
}

/* ── Inbox ── */
.inbox-page { margin: 1rem auto 2.5rem; padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 860px) {
  body.inbox-page-slim .container.inbox-page,
  body.inbox-page-slim .container.inbox-page.inbox-page-v2 {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .inbox-page.inbox-page-v2,
  .inbox-page.inbox-page-slim {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  .inbox-page.inbox-page-v2 .inbox-topbar {
    padding: 0.65rem 0 0.35rem;
  }
  .inbox-page-slim .inbox-layout-v2 {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100%;
    gap: 0.75rem;
  }
  .inbox-page-slim .inbox-main-column,
  .inbox-page-slim .inbox-primary,
  .inbox-page-slim .inbox-review,
  .inbox-page-slim .inbox-find,
  .inbox-page-slim .inbox-thread-list,
  .inbox-page-slim .inbox-thread-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .inbox-page-slim .inbox-primary,
  .inbox-page-slim .inbox-review,
  .inbox-page-slim .inbox-find {
    border-radius: var(--radius-md);
  }
  .inbox-page-slim .inbox-thread-list {
    padding: 0.35rem 0.5rem;
  }
  .inbox-page-slim .inbox-side-rail {
    order: 10;
    width: 100%;
    max-width: none;
    padding: 0 0.85rem 1rem;
  }
  .inbox-page-slim .inbox-side-rail .partner-slot-banner,
  .inbox-page-slim .inbox-side-rail .partner-slot-inline {
    display: none !important;
  }
  .inbox-page-slim .inbox-side-rail .partner-slot-medium {
    display: block !important;
  }
  .inbox-sponsored-desktop,
  .live-results-page .employer-logos-section .partner-slot,
  body.settings-page-body .employer-logos-section .partner-slot,
  body.member-profile-body .employer-logos-section .partner-slot,
  .ad-desktop-only,
  .home-browse-partner-row {
    display: none !important;
  }
  .mobile-tip-ad-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0 0;
    padding: 0 0.85rem;
  }
  .partner-slot-medium {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .partner-slot-medium .partner-slot-placeholder {
    min-height: 250px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .partner-slot-medium .partner-slot-creative-img {
    display: block;
    width: 100%;
    max-width: 300px;
    max-height: 250px;
    margin: 0 auto;
    object-fit: contain;
  }
  #mobile-bottom-promos .partner-slot-medium {
    max-width: 300px;
  }
  .home-browse-media-col {
    flex: 0 0 72px;
    width: 72px;
  }
  .home-browse-thumb-kind-bar {
    font-size: 6px;
    padding: 0.2rem 0.15rem;
    letter-spacing: 0.02em;
  }
  .home-browse-job-title {
    font-size: 12px;
  }
  .listing-thumb-kind-bar {
    font-size: 9px;
    padding: 0.32rem 0.4rem;
  }
  .listing-thumb-job-title {
    font-size: 13px;
  }
  .home-browse-actions-bottom .btn {
    font-size: 10px;
    padding: 0.28rem 0.3rem;
  }
  .listing-thumb-media-profile img,
  .home-browse-thumb-top.listing-thumb-media-profile img {
    width: min(72%, 80px);
    height: min(72%, 80px);
  }
  html.dark .home-browse-thumb-kind-bar,
  html.dark .listing-thumb-kind-bar {
    color: inherit;
  }
  html.dark .listing-subkind-vacancy .home-browse-thumb-kind-bar,
  html.dark .listing-subkind-vacancy .listing-thumb-kind-bar,
  html.dark .listing-subkind-gig .home-browse-thumb-kind-bar,
  html.dark .listing-subkind-gig .listing-thumb-kind-bar {
    color: #fff;
  }
  html.dark .listing-kind-talent .home-browse-thumb-kind-bar,
  html.dark .listing-kind-talent .listing-thumb-kind-bar {
    color: var(--product-skills-fg);
  }
  .inbox-page-slim .inbox-sponsored-wide {
    padding: 0 0.85rem 1rem;
  }
}
@media (min-width: 861px) {
  .inbox-page.inbox-page-v2,
  .inbox-page.inbox-page-slim {
    padding-left: 0;
    padding-right: 0;
  }
}
.inbox-page-slim .inbox-header-compact h1 {
  font-size: 1.2rem;
  margin: 0;
}
.inbox-page-slim .inbox-layout-v2 {
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 0.85rem;
}
.inbox-page-slim .inbox-main-column {
  gap: 0.65rem;
}
.inbox-page-slim .inbox-avatar {
  width: 34px;
  height: 34px;
  font-size: 11px;
  border-radius: 8px;
}
.inbox-page-slim .inbox-thread {
  padding: 0.5rem 0.7rem;
  gap: 0.55rem;
}
.inbox-page-slim .inbox-thread-list {
  gap: 0.3rem;
  padding: 0.3rem;
}
.inbox-page-slim .inbox-thread-row {
  border-radius: 10px;
}
.inbox-page-slim .inbox-thread-body strong { font-size: 13px; }
.inbox-page-slim .inbox-thread-body em { font-size: 11px; }
.inbox-page-slim .inbox-thread-body time { font-size: 10px; }
.inbox-page-slim .inbox-review-job-line { font-size: 11px; margin: 0; }
.inbox-page-slim .inbox-review-cta { font-size: 11px; }
.inbox-page-slim .inbox-primary-head,
.inbox-page-slim .inbox-panel-head-compact {
  padding: 0.55rem 0.75rem;
}
.inbox-page-slim .inbox-primary-head h2,
.inbox-page-slim .inbox-find-head h2 {
  font-size: 13px;
}
.inbox-panel-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.inbox-list-meta-compact {
  margin: 0;
  padding: 0.45rem 0.75rem 0;
  font-size: 11px;
}
.inbox-find-head-compact {
  padding: 0.55rem 0.75rem;
}
.inbox-page-slim .inbox-find-hint {
  font-size: 11px;
  margin: 0.35rem 0 0;
}
.inbox-page-slim .inbox-side-rail {
  gap: 0.65rem;
  top: 76px;
}
.inbox-page-slim .live-results-tips {
  padding: 0.75rem 0.85rem;
}
.inbox-page-slim .live-results-tips-list {
  gap: 0.4rem;
}
.inbox-page-slim .live-results-tips-list li {
  font-size: 11px;
  line-height: 1.35;
}
.inbox-page-slim .inbox-thread-msg-btn {
  min-width: 38px;
  padding: 0 0.45rem;
}
.home-browse-partner-row {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-soft, #f8fafc);
  padding: 0.35rem 0.65rem;
}
.home-browse-partner-row .partner-slot {
  margin: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.partner-slot-inline .partner-slot-label {
  font-size: 9px;
  padding: 0.1rem 0.35rem;
  margin-bottom: 0.15rem;
}
.partner-slot-inline .partner-slot-inner {
  min-height: auto;
}
.partner-slot-inline .partner-slot-placeholder {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  min-height: 40px;
  font-size: 12px;
  text-align: left;
}
.partner-slot-inline .partner-slot-placeholder i {
  font-size: 1rem;
  opacity: 0.55;
}
.partner-slot-inline .partner-slot-placeholder small {
  display: none;
}
.home-browse-partner-row-thumb {
  grid-column: 1 / -1;
}
.listings-thumb-only .home-browse-partner-row-thumb {
  width: 100%;
}
.inbox-search {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
}
.inbox-search-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.inbox-search-form i {
  color: var(--text-muted);
  flex-shrink: 0;
}
.inbox-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.inbox-search-meta {
  margin: 0.85rem 0 0.5rem;
  font-size: 12px;
  color: var(--text-muted);
}
.inbox-search-empty {
  margin: 0.85rem 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.inbox-member-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.inbox-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.inbox-member-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.inbox-member-info strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}
.inbox-member-info span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}
.inbox-header { margin-bottom: 1.25rem; }
.inbox-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.inbox-header p { color: var(--text-muted); font-size: 14px; }
.inbox-page-v2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1080px;
}
.inbox-push-banner[hidden] {
  display: none !important;
}
.inbox-push-banner:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(139, 32, 32, 0.18);
  background: color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
}
.inbox-push-banner p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.mobile-priority-stack {
  display: flex;
  flex-direction: column;
}
.mobile-priority-main { order: 1; }
.mobile-priority-secondary { order: 2; }
.mobile-priority-deferred { order: 10; }
.inbox-topbar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.inbox-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}
.inbox-main-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.inbox-side-rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 88px;
}
.inbox-side-rail .donate-slot,
.inbox-side-rail .partner-slot {
  margin: 0;
}
.drafts-select-all-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  cursor: pointer;
}
.drafts-select-all-title input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.drafts-section-header {
  align-items: center;
}
.drafts-section-hint {
  margin: -0.35rem 0 0.85rem;
}
.inbox-header-compact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.inbox-unread-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary);
}
.inbox-primary { padding: 0; overflow: hidden; }
.inbox-primary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
}
.inbox-primary-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dashboard-profile-applicants {
  margin-top: 1.5rem;
}
.inbox-thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem;
}
.inbox-thread-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.inbox-thread-row .inbox-thread {
  flex: 1;
  min-width: 0;
  border-bottom: none;
}
.inbox-thread-row:hover {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border-light));
  box-shadow: 0 6px 18px rgba(15, 5, 5, 0.06);
}
.inbox-thread-row.is-current-thread {
  border-color: rgba(127, 29, 29, 0.45);
  box-shadow: 0 0 0 1px rgba(127, 29, 29, 0.16);
  background: color-mix(in srgb, var(--primary-bg, #FBF0F0) 60%, var(--surface));
}
.inbox-review-app-btn {
  align-self: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.inbox-review-row .inbox-thread-review {
  flex: 1;
  min-width: 0;
}
.inbox-review-job-line {
  display: block;
  font-size: 12px;
  color: var(--primary);
  margin-top: 0.15rem;
}
.inbox-review-job-line strong {
  font-weight: 700;
}
.inbox-review-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}
.inbox-thread-msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 44px;
  padding: 0 0.65rem;
  border-left: 1px solid var(--border-light);
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
}
.inbox-thread-msg-btn:hover {
  background: var(--row-hover-bg);
  color: var(--primary);
}
.inbox-find-secondary {
  margin-top: 0.15rem;
}
.inbox-review {
  margin-bottom: 1rem;
}
.inbox-review .inbox-primary-head {
  padding: 1rem 1rem 0.35rem;
}
.inbox-review-list .inbox-thread-row:last-child {
  border-bottom: 1px solid var(--border-light);
}
.inbox-thread-row.inbox-thread-unread {
  background: color-mix(in srgb, var(--primary-bg, #FBF0F0) 74%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border-light));
}
.inbox-thread-badge {
  align-self: center;
  flex-shrink: 0;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inbox-thread-name-row {
  justify-content: space-between;
}
.inbox-thread-merged {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--border) 55%, transparent);
  white-space: nowrap;
}
.inbox-thread-body em {
  margin-top: 0.1rem;
}
html.dark .inbox-thread-row {
  border-color: rgba(248, 216, 120, 0.14);
  background: color-mix(in srgb, var(--surface) 90%, #0f1f44);
}
html.dark .inbox-thread-row:hover {
  border-color: rgba(248, 216, 120, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
html.dark .inbox-thread-row.is-current-thread {
  border-color: rgba(248, 216, 120, 0.36);
  box-shadow: 0 0 0 1px rgba(248, 216, 120, 0.2);
  background: rgba(139, 32, 32, 0.24);
}
.inbox-list-meta {
  margin: 0;
  padding: 0.65rem 1rem 0;
  font-size: 12px;
  color: var(--text-muted);
}
.inbox-empty { padding: 2rem 1rem; }
.inbox-partner-compact .partner-slot { margin: 0; }
.inbox-find { padding: 1rem 1.1rem; margin-bottom: 0.75rem; }
.inbox-find-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.inbox-find-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.inbox-find-panel { margin-top: 0.85rem; }
.inbox-scope-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.inbox-scope-tab {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.inbox-scope-tab.is-active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg);
}
.inbox-find-hint {
  margin: 0.5rem 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.inbox-find-hint a { color: var(--primary); }
.inbox-browse-cta { margin: 0.65rem 0 0; }
.gallery-cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
}
.gallery-preview-item { position: relative; }
.gallery-preview-item.is-gallery-cover {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.gallery-cover-btn {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  z-index: 2;
  font-size: 10px;
  padding: 3px 4px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  cursor: pointer;
  font-weight: 600;
}
html.dark .gallery-cover-btn {
  background: rgba(30, 30, 36, 0.92);
  color: var(--text-dark);
}
.user-menu-mobile-hub {
  display: none;
  border-top: 1px solid var(--border-light);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
.user-menu-mobile-hub a {
  font-size: 13px;
}
.dashboard-desktop-only { display: block; }

/* ── Mobile workspace pages (listings / drafts / favourites) ── */
.mobile-workspace-page .mobile-workspace {
  max-width: 640px;
  margin: 0 auto 3rem;
  padding-bottom: 1rem;
}
.mobile-workspace-back {
  margin: 0.75rem 0 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--primary);
}
.mobile-workspace-header h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.mobile-workspace-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.mobile-workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.mobile-workspace-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 12px;
  color: var(--text-muted);
}
.mobile-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mobile-workspace-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 12px);
  padding: 0.65rem;
}
.mobile-fav-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.65rem;
}
.mobile-fav-body { min-width: 0; }
.mobile-fav-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  text-decoration: none;
}
.mobile-fav-title:hover { color: var(--primary); }
.mobile-fav-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
  align-items: center;
}
.chat-msg-status {
  display: block;
  margin-top: 0.25rem;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: right;
}
.chat-bubble-theirs .chat-msg-status { color: var(--text-muted); }
.chat-toast {
  margin: 0 1rem 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--success-dark);
  border: 1px solid var(--success-border);
}
.chat-toast-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
html.dark .chat-toast-error {
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
.apply-feedback {
  margin-bottom: 1rem;
}
.apply-feedback:focus {
  outline: none;
}
.field-has-error input,
.field-has-error textarea,
.field-has-error .apply-cv-drop {
  border-color: var(--danger, #dc2626) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}
.profile-discoverable-field { margin-top: 0.25rem; }
.profile-discoverable-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.profile-discoverable-label input { margin-top: 0.2rem; }
.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 1rem;
  min-height: 420px;
  align-items: start;
}
.inbox-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.inbox-side-panel .partner-slot {
  margin: 0;
}
.chat-layout .partner-slot {
  margin: 0;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
}
/* ── Conversation page — 3-column shell ── */
.chat-shell,
.chat-layout-modern {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  grid-template-areas: "tips chat side";
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
  min-width: 0;
}

/* Left column — messaging tips (desktop) */
.chat-col-left {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 88px;
  grid-area: tips;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
}

/* Right column — Tip the Hive */
.chat-col-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  position: sticky;
  top: 88px;
  grid-area: side;
  min-width: 0;
  width: 100%;
  max-width: 200px;
}
.chat-rail-block {
  width: 100%;
  min-width: 0;
}
.chat-col-right .donate-slot,
.chat-col-right .partner-slot {
  margin: 0;
  width: 100%;
  display: block;
}
.chat-col-right .donate-slot-inner,
.chat-col-right .partner-slot-inner {
  width: 100%;
  box-sizing: border-box;
}
/* Desktop: Tip the Hive then Sponsored in chat right rail */
.chat-rail-donate { order: 1; }
.chat-rail-sponsored { order: 2; }
.chat-rail-sponsored-desktop { display: block; }
.chat-col-right .partner-slot-medium .partner-slot-placeholder {
  min-height: 120px;
}
.job-poster-profile-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.job-poster-profile-link:visited {
  color: var(--primary-mid);
}
.job-poster-profile-link:hover,
.job-poster-profile-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}
a.job-detail-company.job-poster-profile-link {
  display: inline-block;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(139, 32, 32, 0.35);
  text-underline-offset: 2px;
}
a.job-detail-company.job-poster-profile-link:hover,
a.job-detail-company.job-poster-profile-link:focus-visible {
  text-decoration-color: currentColor;
}
.job-poster-avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}
.employer-profile-name .job-poster-profile-link {
  color: inherit;
}
.employer-profile-name .job-poster-profile-link:hover {
  color: var(--primary);
}
.member-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.member-profile-stat {
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
  text-align: center;
}
.member-profile-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.1;
}
.member-profile-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.member-profile-trust-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.member-profile-trust-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
}
.member-profile-trust-card h3 {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.member-profile-trust-grade {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.member-profile-trust-hint {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.member-profile-trust-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--border-light);
  margin-top: 0.45rem;
  overflow: hidden;
}
.member-profile-trust-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: inherit;
}
@media (max-width: 768px) {
  .member-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-profile-trust-row { grid-template-columns: 1fr; }
}

/* Tips card */
.chat-tips-card {
  padding: 1rem 1.1rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.chat-tips-card-heading {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.chat-tips-card-heading i {
  color: var(--primary);
  font-size: 0.8rem;
}
/* chat-mini-rail kept for reference but no longer used in conversation template */
.chat-mini-rail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(127, 29, 29, 0.16);
  background: color-mix(in srgb, var(--surface) 98%, var(--primary) 2%);
}
/* Scrollable tips area (left rail) fills available height */
.chat-tips-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.8rem 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-tips-scroll::-webkit-scrollbar { width: 4px; }
.chat-tips-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chat-tips-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-tip-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.7rem;
  line-height: 1.48;
  color: var(--text-muted);
  min-width: 0;
}
.chat-tip-item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-tip-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 5px;
  background: rgba(139, 32, 32, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  margin-top: 0.07rem;
}
/* Right rail — Tip the Hive */
.chat-hive-rail {
  border-left: 1px solid rgba(127, 29, 29, 0.16);
}
.chat-hive-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0.85rem;
  gap: 0.6rem;
}
.chat-hive-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(139, 32, 32, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.chat-hive-heading {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}
.chat-hive-text {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.chat-hive-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 0.2rem;
}
.chat-hive-btn:hover { background: var(--primary-light); color: white; }
.chat-mini-rail .partner-slot { margin-top: auto; }
.chat-mini-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 29, 29, 0.14);
  color: var(--primary-dark);
  font-weight: 800;
}
.chat-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-mini-status-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface);
}
.chat-mini-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
.chat-mini-actions {
  display: flex;
  gap: 0.35rem;
}
.chat-mini-tip-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.65rem;
  background: var(--surface);
}
.chat-mini-tip-card strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.chat-mini-tip-card p {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.chat-mini-rail .partner-slot {
  margin-top: auto;
}
.chat-mini-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  background: var(--bg);
  text-decoration: none;
}
.chat-main-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  grid-area: chat;
  height: min(82dvh, 860px); /* fixed height so inner areas scroll */
  border-radius: 12px;
}
.chat-shell .chat-header,
.chat-layout-modern .chat-header {
  background: var(--surface);
  border-bottom: 1px solid rgba(127, 29, 29, 0.15);
}
.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.chat-header-main {
  min-width: 0;
  flex: 1;
}
.chat-header-micro {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}
.chat-header-micro-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chat-header-micro-btn:hover {
  color: var(--text-dark);
  border-color: var(--primary);
}
.chat-details-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 220px;
  max-height: min(80dvh, 380px);
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.55rem 0.65rem;
  box-shadow: 0 10px 20px rgba(10, 18, 40, 0.2);
  z-index: 35;
}
.chat-details-menu-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}
.chat-details-menu p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.chat-details-menu p + p {
  margin-top: 0.3rem;
}
.chat-shell .chat-messages,
.chat-layout-modern .chat-messages {
  background: var(--bg);
}
.chat-scroll-bottom-btn {
  position: absolute;
  right: 1rem;
  bottom: 5.4rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(10, 18, 40, 0.18);
  z-index: 10;
}
.chat-scroll-bottom-btn[hidden] {
  display: none;
}
.chat-shell .chat-compose-wrap,
.chat-layout-modern .chat-compose-wrap {
  background: var(--surface);
  border-top: 1px solid rgba(127, 29, 29, 0.14);
}
.chat-shell .chat-compose textarea,
.chat-layout-modern .chat-compose textarea {
  border-radius: 12px;
  min-height: 2.2rem;
  max-height: 7.5rem;
}
.chat-emoji-btn {
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 10px;
  width: 2.1rem;
  height: 2.1rem;
}
.btn-icon-only {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
html.dark .chat-shell,
html.dark .chat-layout-modern {
  border-color: var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-hover);
}
html.dark .chat-mini-rail,
html.dark .chat-tips-rail,
html.dark .chat-col-left .card,
html.dark .chat-col-right .card {
  border-color: var(--border);
  background: var(--surface);
}
html.dark .chat-tip-icon {
  background: rgba(139, 32, 32, 0.18);
  color: var(--accent);
}
html.dark .chat-hive-icon {
  background: rgba(139, 32, 32, 0.2);
  color: var(--accent);
}
html.dark .chat-hive-heading { color: var(--text-dark); }
html.dark .chat-hive-text { color: var(--text-muted); }
html.dark .chat-shell .chat-header,
html.dark .chat-layout-modern .chat-header {
  background: var(--surface);
  border-bottom-color: var(--border);
}
html.dark .chat-details-menu {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-hover);
}
html.dark .chat-shell .chat-messages,
html.dark .chat-layout-modern .chat-messages {
  background: var(--bg);
}
html.dark .chat-scroll-bottom-btn {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-dark);
}
html.dark .chat-shell .chat-compose-wrap,
html.dark .chat-layout-modern .chat-compose-wrap {
  background: var(--surface);
  border-top-color: var(--border);
}
html.dark .chat-bubble + .chat-bubble::before {
  border-top-color: var(--border-light);
}
/* Desktop — keep 3-column grid (must beat legacy .chat-layout flex rule) */
@media (min-width: 861px) {
  .chat-shell,
  .chat-layout-modern {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 200px;
    grid-template-areas: "tips chat side";
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .chat-shell .chat-col-left { grid-area: tips; }
  .chat-shell .chat-main-pane { grid-area: chat; }
  .chat-shell .chat-col-right { grid-area: side; display: flex !important; }
}
/* Tablet: chat + right rail (no tips column) */
@media (max-width: 1200px) and (min-width: 861px) {
  .chat-shell,
  .chat-layout-modern {
    grid-template-columns: minmax(0, 1fr) 200px;
    grid-template-areas: "chat side";
  }
  .chat-col-left { display: none !important; }
  .chat-col-right {
    display: flex !important;
    grid-area: side;
    max-width: 200px;
  }
  .chat-main-pane {
    grid-area: chat;
    width: 100%;
  }
}
/* ── Mobile chat — full-width messages, donate/ad below ── */
@media (max-width: 860px) {
  .chat-page-body .container.chat-page {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .chat-page-body .chat-page .back-link {
    padding: 0.65rem 0.85rem 0.35rem;
  }

  .chat-page-body .chat-shell,
  .chat-page-body .chat-layout-modern {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    gap: 0;
    width: 100%;
    margin-bottom: 0;
  }

  .chat-page-body .chat-col-left {
    display: none !important;
  }

  .chat-page-body .chat-main-pane {
    order: 1;
    grid-area: unset;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    height: calc(100dvh - 3.6rem);
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .chat-page-body .chat-col-right {
    display: flex !important;
    flex-direction: column;
    order: 2;
    grid-area: unset;
    position: static;
    top: auto;
    width: 100%;
    max-width: none;
    padding: 0.75rem 1rem 1.25rem;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    align-items: stretch;
  }
  .chat-page-body .chat-col-right .chat-rail-block,
  .chat-page-body .chat-col-right .donate-slot,
  .chat-page-body .chat-col-right .donate-slot-inner,
  .chat-page-body .chat-col-right .donate-slot-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  .chat-page-body .chat-col-right .donate-slot-btn {
    width: 100%;
    justify-content: center;
  }
  .chat-page-body .chat-rail-sponsored-desktop {
    display: none !important;
  }
  .chat-page-body .chat-rail-donate { order: 1; }

  .chat-page-body .chat-messages {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
  }
  .chat-page-body .chat-bubble {
    max-width: min(92%, 100%);
    font-size: clamp(14px, 3.6vw, 15px);
  }
  .chat-page-body .chat-bubble-honeybee {
    max-width: 100%;
    align-self: stretch;
    text-align: left;
  }
  .chat-page-body .chat-header,
  .chat-page-body .chat-compose-wrap,
  .chat-page-body .chat-compose {
    width: 100%;
    box-sizing: border-box;
  }

  /* Slimmer header */
  .chat-header {
    padding: 0.55rem 0.85rem;
    flex-wrap: nowrap;
  }
  .chat-header-avatar,
  .chat-header-avatar img {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }
  .chat-recipient-name { font-size: 0.92rem; }
  .chat-header-micro { margin-left: auto; }

  /* ── Compose bar — borderless, clean ── */
  .chat-compose-wrap { position: sticky; bottom: 0; z-index: 30; }
  .chat-compose {
    flex-direction: row;
    align-items: flex-end;
    padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    gap: 0.45rem;
  }
  /* Remove all box/border from input area */
  .chat-compose-main {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 0.3rem;
    min-width: 0;
  }
  /* Textarea: borderless, blends into compose bar background */
  .chat-compose-main textarea {
    border: none !important;
    background: var(--bg);
    border-radius: 20px;
    padding: 0.52rem 0.75rem;
    min-height: 38px;
    max-height: 96px;
    font-size: 15px;
    box-shadow: none !important;
  }
  html.dark .chat-compose-main textarea {
    background: var(--surface);
  }
  /* Attach icon: no box */
  .chat-attach-btn {
    width: 1.9rem;
    height: 1.9rem;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-muted);
    border-radius: 50%;
  }
  /* Hide emoji on mobile */
  .chat-emoji-btn { display: none; }

  /* Circular send button */
  .chat-compose .btn {
    width: auto;
    justify-content: center;
  }
  #chat-send-btn {
    width: 2.6rem !important;
    height: 2.6rem;
    min-width: 2.6rem;
    border-radius: 50% !important;
    flex-shrink: 0;
    align-self: flex-end;
    margin-bottom: 0.05rem;
    padding: 0;
  }
}
.inbox-list { padding: 0; overflow: hidden; }
.inbox-thread {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.inbox-thread:hover { background: var(--row-hover-bg); }
.inbox-thread-row.inbox-thread-unread .inbox-thread:hover { background: transparent; }
html.dark .inbox-thread-row.inbox-thread-unread:hover {
  background: rgba(139, 32, 32, 0.2);
}
.inbox-thread:last-child { border-bottom: none; }
.inbox-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.inbox-thread-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.inbox-thread-body strong { font-size: 14px; color: var(--text-dark); }
.inbox-thread-name-row,
.chat-header-title-row,
.chat-sender-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.inbox-role-badge {
  font-size: 9px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.chat-sender-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.chat-header-title-row h1 {
  margin: 0;
}
.chat-header-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(127, 29, 29, 0.16);
  color: var(--primary-dark);
  font-weight: 800;
}
.chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-header-title-row .inbox-role-badge {
  align-self: center;
}
.inbox-thread-body span { font-size: 12px; color: var(--primary); }
.inbox-thread-body em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-thread-body time { font-size: 11px; color: var(--text-light); }
.inbox-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.inbox-placeholder i { font-size: 2.5rem; opacity: 0.4; }

/* ── Chat ── */
.chat-page { max-width: 1280px; margin: 1rem auto 2.2rem; padding: 0 1rem; }
.chat-page .chat-shell {
  width: 100%;
  box-sizing: border-box;
}
.chat-header-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-sans);
}
.chat-header-profile-link:visited {
  color: var(--primary);
}
.chat-header-profile-link h1 {
  color: inherit;
  margin: 0;
}
.chat-header-profile-link:hover h1,
.chat-header-profile-link:focus-visible h1 {
  color: var(--primary-dark);
  text-decoration: underline;
}
.chat-sender-profile-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.chat-sender-profile-link:visited {
  color: var(--primary-mid);
}
.chat-sender-profile-link:hover,
.chat-sender-profile-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}
.chat-details-menu-title a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.chat-details-menu-title a:visited {
  color: var(--primary-mid);
}
.chat-details-menu-title a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
@media (min-width: 861px) {
  .chat-page-body .chat-shell {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr) 200px !important;
    grid-template-areas: "tips chat side" !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .chat-page-body .chat-main-pane {
    grid-area: chat !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .chat-page-body .chat-col-left {
    grid-area: tips !important;
  }
  .chat-page-body .chat-col-right {
    display: flex !important;
    flex-direction: column !important;
    grid-area: side !important;
    width: 100% !important;
    max-width: 200px !important;
  }
}
@media (min-width: 861px) and (max-width: 1200px) {
  .chat-page-body .chat-shell {
    grid-template-columns: minmax(0, 1fr) 200px !important;
    grid-template-areas: "chat side" !important;
  }
  .chat-page-body .chat-col-left {
    display: none !important;
  }
}
.member-profile-page {
  max-width: 920px;
  margin: 1rem auto 2.5rem;
  padding: 0 1rem;
}
.member-profile-hero {
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--primary) 8%), var(--surface));
}
.member-profile-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.member-profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}
.member-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 3px solid color-mix(in srgb, var(--primary) 25%, white);
  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.15);
}
.member-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-profile-intro {
  min-width: 0;
}
.member-profile-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.member-profile-intro h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.15;
}
.member-profile-headline {
  margin: 0.45rem 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
}
.member-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin: 0.55rem 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.member-profile-hero-actions {
  flex-shrink: 0;
}
.member-profile-company {
  margin: 1rem 0 0;
  font-size: 14px;
  color: var(--text-body);
}
.member-profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}
.member-profile-social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--surface);
}
.member-profile-social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.member-profile-gallery {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.member-profile-gallery h2,
.member-profile-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.member-profile-gallery-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.member-profile-gallery-item {
  margin: 0;
  flex: 0 0 auto;
  width: 140px;
}
.member-profile-gallery-item img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}
.member-profile-gallery-item figcaption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.member-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.member-profile-panel {
  padding: 1.1rem 1.2rem;
  margin-bottom: 0;
}
.member-profile-panel-muted {
  background: color-mix(in srgb, var(--surface) 96%, var(--bg) 4%);
}
.member-profile-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.member-profile-empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.member-profile-fact {
  margin-top: 0.85rem;
  font-size: 14px;
  color: var(--text-body);
}
.member-profile-fact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.member-profile-tags-block {
  margin-top: 0.85rem;
}
.member-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.member-profile-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}
.member-profile-tags-soft .member-profile-tag {
  background: var(--bg);
  color: var(--text-body);
  border-color: var(--border);
}
.member-profile-activity {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.member-profile-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.member-profile-card-link {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-body);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.member-profile-card-link:visited {
  color: var(--text-body);
}
.member-profile-card-link:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(127, 29, 29, 0.08);
}
.member-profile-card-link strong {
  display: block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}
.member-profile-card-link:visited strong {
  color: var(--primary-mid);
}
.member-profile-card-link:hover strong {
  color: var(--primary-dark);
  text-decoration: underline;
}
.member-profile-card-link span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.member-profile-card-meta {
  font-size: 11px !important;
}
@media (max-width: 768px) {
  .member-profile-grid {
    grid-template-columns: 1fr;
  }
  .member-profile-hero-top {
    flex-direction: column;
  }
  .member-profile-hero-actions {
    width: 100%;
  }
  .member-profile-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Legacy member profile rules kept for compatibility */
.member-profile-card {
  padding: 1.35rem;
  margin-bottom: 1rem;
}
.member-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.member-profile-section {
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}
.member-profile-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.member-profile-listings {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
}
.member-profile-listings li + li {
  margin-top: 0.35rem;
}
.member-profile-line {
  margin: 0.65rem 0 0;
  font-size: 14px;
  color: var(--text-body);
}
.member-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.chat-page-body.has-bottom-nav .chat-page {
  padding-bottom: 0.35rem;
}
@media (max-width: 860px) {
  /* On mobile, shrink pane to account for the bottom nav bar (~3.25rem) */
  .chat-page-body.has-bottom-nav .chat-main-pane {
    height: calc(100dvh - 3.6rem - 3.25rem - env(safe-area-inset-bottom, 0px));
  }
  /* Compose bar sits above bottom nav */
  .chat-page-body.has-bottom-nav .chat-compose-wrap {
    padding-bottom: calc(0.45rem + 3.25rem + env(safe-area-inset-bottom, 0px));
  }
}
.chat-layout:not(.chat-shell):not(.chat-layout-modern) {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  max-height: min(86dvh, 920px);
  padding: 0;
  overflow: hidden;
}
.chat-compose-wrap {
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
  position: sticky;
  bottom: 0;
  z-index: 30;
}
.chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.chat-header h1 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.chat-header p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.chat-header-meta {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}
.chat-header-application {
  margin: 0.55rem 0 0;
}
.chat-header-application .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chat-header-meta i { opacity: 0.75; margin-right: 0.2rem; }
.chat-recipient-facts {
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.chat-recipient-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.chat-facts-sep {
  color: var(--border);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}
.chat-presence-dot {
  color: #22c55e;
  font-size: 9px;
}
.chat-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
  font-size: 10px;
  opacity: 0.85;
}
.chat-bubble-mine .chat-bubble-meta { justify-content: flex-end; }
.chat-bubble-location i { margin-right: 0.15rem; }
.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  max-height: none;
  scrollbar-gutter: stable both-edges;
}
.chat-bubble {
  max-width: 85%;
  padding: 0.58rem 0.82rem;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.chat-bubble + .chat-bubble {
  position: relative;
}
.chat-bubble + .chat-bubble::before {
  content: '';
  position: absolute;
  top: -0.28rem;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(127, 29, 29, 0.08);
}
.chat-bubble p { margin: 0 0 4px; }
.chat-bubble time { font-size: inherit; opacity: 1; }
.chat-bubble-mine {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-bubble-theirs {
  align-self: flex-start;
  background: var(--bg-soft, #F1F5F9);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}
html.dark .chat-bubble-theirs {
  background: var(--surface);
  color: var(--text-dark);
  border: 1px solid var(--border);
}
html.dark .chat-bubble-theirs .chat-msg-status {
  color: var(--text-muted);
}
html.dark .chat-bubble-theirs .chat-attachment-file {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dark);
}
.chat-empty { text-align: center; color: var(--text-muted); font-size: 14px; margin: auto; }
.chat-compose {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  align-items: stretch;
  border-top: none;
}
.chat-compose-main {
  flex: 1;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}
.chat-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.chat-attach-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.chat-attach-preview {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chat-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
  font-size: 12px;
}
.chat-attach-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0 0.2rem;
  line-height: 1;
  font-size: 14px;
}
.chat-attachment {
  margin-top: 0.35rem;
}
.chat-attachment-image img {
  max-width: min(220px, 100%);
  border-radius: var(--radius-sm);
  display: block;
}
.chat-attachment-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}
.chat-bubble-mine .chat-attachment-file {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}
.chat-compose textarea {
  flex: 1;
  resize: none;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 14px;
  min-height: 36px;
  max-height: 120px;
  overflow-y: auto;
}
.chat-compose .btn { flex-shrink: 0; }

/* ── Category dropdowns ── */
/* ── Category picker (refined) ── */
.category-picker-refined {
  margin: 0 0 1.1rem;
}

.category-picker-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: visible;
  padding: 0;
}

.sidebar-panel-categories .category-picker-stack {
  background: transparent;
  border-color: var(--border-light);
}

.category-field {
  padding: 1rem 1.15rem;
  position: relative;
}

.category-field + .category-field {
  border-top: 1px solid var(--border-light);
}

.category-field label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.category-label-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.category-label-icon-sub {
  background: var(--blue-bg);
  color: var(--blue);
}

.category-field-parent { border-bottom: none; }

.category-connector {
  display: none;
}

.category-field-sub .category-combobox input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg) !important;
}

.category-custom-wrap {
  margin-top: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.category-custom-wrap label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.category-custom-wrap input {
  padding: 10px 13px;
}

.form-intro-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: -0.25rem 0 0.75rem;
  line-height: 1.5;
}

.settings-unsaved-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 32, 32, 0.22);
  background: var(--primary-bg, #FBF0F0);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  box-shadow: var(--shadow);
}
.settings-unsaved-bar[hidden] { display: none !important; }
.settings-unsaved-bar i { color: var(--primary); margin-right: 0.35rem; }
body.settings-has-unsaved .settings-page-title {
  scroll-margin-top: 4.5rem;
}

.sidebar-panel-categories {
  border-top: 1px solid var(--border-light);
  padding-top: 0.25rem;
}

.sidebar-panel-categories .sidebar-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-panel-categories .sidebar-heading::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.category-picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.category-picker-row .field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .detail-grid,
  .detail-grid-narrow {
    grid-template-columns: 1fr;
  }
  .inbox-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .inbox-side-panel .partner-slot { display: none; }
  .inbox-placeholder { display: none; }
  .inbox-list { min-height: 280px; }
  .chat-messages { max-height: none; min-height: 0; }
  /* Sidebar classes are already hidden in the 860px block above */
  .category-picker-row { grid-template-columns: 1fr; }
  .reminder-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .reminder-card-icon { justify-self: center; }
  .reminder-card-action { justify-self: center; }
  .listing-row { flex-wrap: wrap; }
  .listing-card-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .job-owner-notice-actions { flex-wrap: wrap; }
  .dashboard-desktop-only:not(.dashboard-tab-panel) { display: none !important; }
  .user-menu-mobile-hub { display: block; }
  .dashboard-tabs { top: 64px; }
  .settings-page .settings-tabs { top: 64px; }
  .settings-terms-toc { top: calc(64px + var(--settings-tabs-h, 3.25rem)); }
  .settings-terms-section { scroll-margin-top: 9rem; }
  .dashboard-mission-grid { grid-template-columns: 1fr; }
  .drafts-bulk-actions { width: 100%; justify-content: flex-start; }
  .inbox-layout-v2 { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .inbox-page-slim .inbox-layout-v2 {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100%;
  }
  .inbox-page-slim .inbox-main-column,
  .inbox-page-slim .inbox-primary,
  .inbox-page-slim .inbox-thread-list,
  .inbox-page-slim .inbox-thread-row {
    width: 100%;
    max-width: 100%;
  }
  .inbox-side-rail { position: static; width: 100%; max-width: none; }
  .inbox-page-v2.mobile-priority-stack > .inbox-layout-v2 { order: 1; }
  .inbox-page-v2.mobile-priority-stack > .inbox-sponsored-wide { order: 11; }
  .live-results-page.mobile-priority-stack > .inbox-sponsored-wide { order: 11; }
  .inbox-page-v2.mobile-priority-stack > .inbox-sponsored-desktop { order: 11; }
  .live-results-page.mobile-priority-stack > .inbox-sponsored-desktop { order: 11; }
  .inbox-review-row {
    flex-direction: column;
    align-items: stretch;
  }
  .inbox-thread-row:has(.inbox-thread-msg-btn) {
    flex-direction: column;
    align-items: stretch;
  }
  .inbox-thread-row:has(.inbox-thread-msg-btn) .inbox-thread {
    border-bottom: none;
  }
  .inbox-review-row .inbox-thread-review {
    border-bottom: none;
  }
  .inbox-thread-msg-btn {
    border-left: none;
    border-top: 1px solid var(--border-light);
    min-height: 40px;
    justify-content: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
  }
  .inbox-thread-msg-btn::after {
    content: 'Open chat';
  }
}

/* ── Job seeker toolkit hub (matches inbox / settings) ── */
.seeker-hub-wrap {
  max-width: 1080px;
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}
.seeker-hub-topbar .page-local-back {
  margin-bottom: 0;
}
.seeker-hub-title-row {
  margin-top: 0.15rem;
}
.seeker-hub-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.seeker-hub-title i {
  color: var(--primary);
  font-size: 1.1rem;
}
.seeker-hub-eyebrow-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seeker-hub-lead {
  margin: 0.35rem 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 42rem;
}
.seeker-hub-tabs {
  margin-top: 0.85rem;
  margin-bottom: 0;
}
.seeker-hub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
}
.seeker-hub-tab i {
  font-size: 12px;
  opacity: 0.85;
}
.seeker-hub-tab.is-active i {
  color: var(--primary);
}
.seeker-hub-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.seeker-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}
.seeker-hub-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 88px;
}
.seeker-hub-page .card,
.employer-hub-page .card,
.intel-hub-page .card {
  padding: 1.1rem 1.25rem;
  margin: 0;
}
.seeker-section-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.seeker-section-title i {
  color: var(--primary);
  font-size: 0.95rem;
}
.seeker-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.seeker-section-head .dashboard-text-link,
.seeker-section-head > .td-sub {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.35;
  max-width: min(100%, 14rem);
}
.seeker-section-head .seeker-section-title { margin-bottom: 0; }
.seeker-stats-panel {
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.seeker-stats-panel-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.seeker-stats-ring { width: 56px; height: 56px; font-size: 13px; flex-shrink: 0; }
.seeker-stats-grade { font-weight: 800; color: var(--text-dark); font-size: 1rem; }
.seeker-stats-grade-hint { margin: 0.2rem 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.seeker-stats-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.seeker-stat-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 0.55rem 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-muted);
}
.seeker-stat-metric i { color: var(--primary); font-size: 14px; }
.seeker-stat-metric strong { font-size: 15px; color: var(--text-dark); }
.seeker-stats-subtitle {
  margin: 0.85rem 0 0.45rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.seeker-stats-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.seeker-stats-gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.seeker-stats-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.seeker-stats-gallery-item figcaption {
  font-size: 10px;
  padding: 0.25rem 0.35rem;
  color: var(--text-muted);
}
.seeker-stats-cv-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.seeker-stats-cv-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 12px;
}
.seeker-stats-employer-note {
  margin: 0.75rem 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}
.seeker-stats-panel-compact:not(.seeker-stats-panel-math) .seeker-stats-gallery,
.seeker-stats-panel-compact:not(.seeker-stats-panel-math) .seeker-stats-cv-list { display: none; }
.seeker-radar-display { padding: 1.25rem; }
.seeker-radar-core {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
}
.seeker-radar-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border);
  border-radius: 50%;
}
.seeker-radar-ring-mid { inset: 18%; }
.seeker-radar-center {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(139, 32, 32, 0.25);
}
.seeker-radar-total { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.seeker-radar-label { font-size: 10px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.05em; }
.seeker-radar-blip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--rot)) translateY(calc(-1 * var(--dist))) rotate(calc(-1 * var(--rot)));
  text-decoration: none;
  z-index: 1;
}
.seeker-radar-blip-dot {
  display: block;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 2px var(--surface);
}
.seeker-radar-blip-dot.is-applied { background: #22c55e; border-color: #16a34a; }
.seeker-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  font-size: 12px;
  color: var(--text-muted);
}
.seeker-radar-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.seeker-radar-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.seeker-radar-legend-pending { background: #f59e0b; }
.seeker-radar-legend-reviewed { background: #6366f1; }
.seeker-radar-legend-shortlisted { background: #22c55e; }
.seeker-radar-legend-rejected { background: #94a3b8; }
.seeker-match-list { display: flex; flex-direction: column; gap: 0.65rem; }
.seeker-match-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.seeker-match-row .btn {
  flex-shrink: 0;
  min-width: 4.5rem;
  justify-content: center;
}
.seeker-match-row:last-child { border-bottom: none; }
.seeker-match-score {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-bg, #fbf0f0);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seeker-match-body { flex: 1; min-width: 0; }
.seeker-match-title {
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
}
.seeker-match-title:hover { color: var(--primary); }
.seeker-match-meta { font-size: 12px; color: var(--text-muted); margin-top: 0.15rem; }
.seeker-match-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.seeker-compare-table-wrap { overflow-x: auto; }
.seeker-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.seeker-compare-table th,
.seeker-compare-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
}
.seeker-compare-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.seeker-match-bar {
  position: relative;
  min-width: 52px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.seeker-match-bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct);
  background: var(--primary);
  opacity: 0.25;
}
.seeker-match-bar span { position: relative; z-index: 1; }
.seeker-recruiter-list { display: flex; flex-direction: column; gap: 0.65rem; }
.seeker-recruiter-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.seeker-recruiter-card .btn {
  flex-shrink: 0;
}
.seeker-recruiter-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-bg, #fbf0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}
.seeker-recruiter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seeker-recruiter-body { flex: 1; min-width: 0; }
.seeker-recruiter-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 11px;
  color: var(--text-muted);
}
.seeker-profile-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.seeker-profile-ring { width: 72px; height: 72px; font-size: 15px; flex-shrink: 0; }
.seeker-profile-checklist { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.seeker-profile-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.seeker-profile-check.is-complete { border-color: rgba(34, 197, 94, 0.35); }
.seeker-profile-check-icon { color: var(--text-muted); margin-top: 0.1rem; }
.seeker-profile-check.is-complete .seeker-profile-check-icon { color: #22c55e; }
.seeker-profile-check p { margin: 0.15rem 0 0; font-size: 12px; color: var(--text-muted); }
.seeker-profile-check-pts {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.seeker-recent-apps { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.65rem; }
.seeker-recent-app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.seeker-head-action,
.seeker-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.seeker-admin-metrics {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.seeker-admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 13px;
}
.seeker-admin-list { margin: 0.35rem 0 0; padding-left: 1.1rem; }
html.dark .seeker-radar-blip-dot { box-shadow: 0 0 0 2px var(--surface); }
html.dark .seeker-stats-panel {
  background: var(--surface);
  border-color: var(--border);
}
html.dark .seeker-recruiter-card {
  background: var(--surface);
  border-color: var(--border);
}
html.dark .seeker-profile-check {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .seeker-stat-metric {
  background: var(--bg);
  border-color: var(--border);
}
html.dark .seeker-match-score {
  background: rgba(139, 32, 32, 0.2);
}
@media (max-width: 900px) {
  .seeker-hub-grid,
  .seeker-admin-columns { grid-template-columns: 1fr; }
  .seeker-hub-side { position: static; }
  .seeker-stats-metrics { grid-template-columns: repeat(2, 1fr); }
  .seeker-hub-tabs {
    flex-wrap: wrap;
  }
  .seeker-hub-tab {
    flex: 1 1 calc(33.333% - 0.35rem);
    min-width: 5.5rem;
  }
  .employer-hub-tabs .seeker-hub-tab {
    flex: 1 1 calc(50% - 0.35rem);
  }
}

/* ── Employer hiring toolkit hub ── */
.employer-hub-page .seeker-compare-table-wrap {
  margin: 0 -0.1rem;
}
.employer-hub-page .seeker-compare-table th,
.employer-hub-page .seeker-compare-table td {
  padding: 0.6rem 0.55rem;
}
.employer-hub-page .seeker-compare-table th:first-child,
.employer-hub-page .seeker-compare-table td:first-child {
  padding-left: 0;
}
.employer-hub-page .seeker-compare-table th:last-child,
.employer-hub-page .seeker-compare-table td:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}
.employer-hub-page .card .empty-state {
  padding: 2rem 0.5rem;
}
.employer-summary-metrics {
  margin-bottom: 0;
}
.employer-pulse-section {
  padding: 1.15rem 1.2rem 1.25rem;
}
.employer-free-hero {
  background: linear-gradient(135deg, var(--primary-bg, #fbf0f0) 0%, var(--surface) 100%);
  border-color: rgba(139, 32, 32, 0.15);
}
.employer-free-hero-inner { display: flex; flex-direction: column; gap: 0.65rem; }
.employer-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.employer-free-notify-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(139, 32, 32, 0.06);
  color: var(--text-muted, #5c4a4a);
  font-size: 0.9rem;
  line-height: 1.45;
}
.employer-free-notify-hint i {
  color: var(--primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.employer-free-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.employer-free-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.employer-listing-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.employer-listing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
}
.employer-listing-row:last-child { border-bottom: none; }
.employer-cv-vault-list,
.employer-top-fits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.employer-cv-card,
.employer-fit-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.employer-cv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-bg, #fbf0f0);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.employer-cv-card-body { flex: 1; min-width: 0; }
.employer-cv-ribbon { margin-bottom: 0.35rem; }
.employer-cv-headline {
  margin: 0 0 0.2rem;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}
.employer-cv-sub,
.employer-cv-headline-applicant {
  margin: 0.15rem 0;
  font-size: 12px;
  color: var(--text-muted);
}
.employer-cv-card-actions,
.employer-fit-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  align-self: center;
}
.employer-fit-body { flex: 1; min-width: 0; }
.employer-fit-headline {
  margin: 0.25rem 0;
  font-size: 13px;
  color: var(--text-body);
}
.employer-fit-reasons {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
}
.employer-fit-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}
.employer-fit-reasons i { color: var(--primary); margin-top: 0.15rem; }
.employer-fit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.employer-fit-card .seeker-match-score { margin-top: 0.15rem; }
.employer-fit-card .seeker-match-bar { max-width: 160px; margin: 0.35rem 0; }
html.dark .employer-free-hero {
  background: linear-gradient(135deg, rgba(139, 32, 32, 0.18) 0%, var(--surface) 100%);
}
html.dark .employer-free-notify-hint {
  background: rgba(255, 200, 200, 0.06);
  color: var(--text-muted);
}
html.dark .employer-cv-card,
html.dark .employer-fit-card {
  background: var(--surface);
  border-color: var(--border);
}
html.dark .employer-cv-card-icon {
  background: rgba(139, 32, 32, 0.2);
}
@media (max-width: 640px) {
  .employer-cv-card,
  .employer-fit-card {
    flex-direction: column;
  }
  .employer-cv-card-actions,
  .employer-fit-actions {
    flex-direction: row;
    width: 100%;
  }
  .employer-cv-card-actions .btn,
  .employer-fit-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── Mobile UX (see docs/MOBILE_UX.txt) ───────────────────────────── */
.mobile-pulse-strip {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.mobile-pulse-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(139, 32, 32, 0.07);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}
.mobile-pulse-inbox {
  color: var(--primary);
  font-weight: 600;
}
.mobile-pulse-inbox:hover {
  background: rgba(139, 32, 32, 0.12);
}
.mobile-pulse-hint i,
.mobile-pulse-inbox i {
  color: var(--primary);
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.dashboard-toolkit-expand,
.homepage-toolkit-expand {
  display: none;
  margin-top: 0.65rem;
  align-self: flex-start;
}
.bottom-nav-item-attention {
  position: relative;
}
.bottom-nav-badge {
  position: absolute;
  top: 0.15rem;
  right: calc(50% - 1.15rem);
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}
.bottom-nav-badge-muted {
  background: var(--text-muted);
}

/* ── Dashboard MVP (guided home) ─────────────── */
.dashboard-mvp .dashboard-welcome-lead {
  max-width: 42rem;
}
.dashboard-mvp-guide {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.dashboard-mvp-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dashboard-mvp-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.dashboard-mvp-guide h3 {
  margin: 0;
  font-size: 1.15rem;
}
.dashboard-mvp-lead {
  margin: 0.35rem 0 0;
}
.dashboard-mvp-ring {
  flex-shrink: 0;
}
.dashboard-mvp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dashboard-mvp-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.dashboard-mvp-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dashboard-mvp-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 0.2rem;
}
.dashboard-mvp-step p {
  margin: 0 0 0.55rem;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.dashboard-mvp-step .btn {
  margin: 0 0.35rem 0.35rem 0;
}
.dashboard-mvp-quick {
  padding: 1.1rem 1.25rem;
}
.dashboard-mvp-quick-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.dashboard-mvp-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.dashboard-mvp-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  color: inherit;
  background: var(--surface-2, #f9f9fa);
  transition: border-color 0.15s;
}
.dashboard-mvp-quick-card i {
  color: var(--primary);
  font-size: 1.1rem;
}
.dashboard-mvp-quick-card strong {
  font-size: 14px;
  color: var(--primary);
}
.dashboard-mvp-quick-card span {
  font-size: 12px;
  color: var(--text-muted);
}
.dashboard-mvp-foot {
  margin: 0.85rem 0 0;
}
.dashboard-workspace-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md, 10px);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
}
.dashboard-welcome-combined .dashboard-workspace-banner {
  margin-top: 0;
}
.dashboard-workspace-banner-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
.dashboard-workspace-banner-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.dashboard-workspace-banner-copy {
  flex: 1;
  min-width: 0;
}
.dashboard-workspace-banner-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.15rem;
}
.dashboard-workspace-banner-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: #fff;
}
.dashboard-workspace-banner-copy .dashboard-section-hint {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.45;
  max-width: 42rem;
}
.dashboard-workspace-banner-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.live-results-hive-bridge {
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.live-results-hive-bridge-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.live-results-hive-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.dashboard-mvp-quick-card:hover {
  border-color: var(--primary);
}
.dashboard-mvp-quick-card-btn {
  border: 1px solid var(--border-light);
  background: var(--surface-2, #f9f9fa);
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.dashboard-employer-tools-grid {
  margin-top: 0.25rem;
}
.dashboard-mvp-buzz {
  padding: 1rem 1.15rem 1.15rem;
  margin-bottom: 1rem;
}
.dashboard-mvp-buzz .hive-buzz-header {
  margin-bottom: 0.65rem;
}
.dashboard-mvp-buzz .hive-buzz-header > div:first-child:empty {
  display: none;
}
.dashboard-mvp-buzz .hive-buzz-header {
  justify-content: flex-end;
}
.dashboard-merged-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
.dashboard-tab-panel-home .dashboard-mvp-guide {
  margin-top: 0;
}
@media (max-width: 768px) {
  .dashboard-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .dashboard-tabs {
    top: calc(56px + env(safe-area-inset-top, 0px));
    z-index: 45;
    -webkit-overflow-scrolling: touch;
  }
  .dashboard-tab {
    min-height: 44px;
    touch-action: manipulation;
  }
  .dashboard-tab-panels {
    position: relative;
    z-index: 1;
  }
  .dashboard-page .btn,
  .dashboard-page .dashboard-mvp-quick-card,
  .dashboard-page .dashboard-mvp-quick-card-btn,
  .dashboard-page .hive-buzz-filter,
  .dashboard-page .hive-buzz-card-link,
  .dashboard-page #hive-buzz-refresh {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(127, 29, 29, 0.12);
  }
  .dashboard-mvp-quick-card,
  .dashboard-mvp-quick-card-btn {
    min-height: 72px;
  }
  .dashboard-mvp-step .btn-outline,
  .dashboard-mvp-guide .btn-outline,
  .dashboard-mvp-buzz .btn-outline,
  .dashboard-mvp-quick .btn-outline {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: #fff !important;
  }
  html.dark .dashboard-mvp-step .btn-outline,
  html.dark .dashboard-mvp-guide .btn-outline,
  html.dark .dashboard-mvp-buzz .btn-outline,
  html.dark .dashboard-mvp-quick .btn-outline {
    color: #f3f4f6 !important;
    border-color: rgba(248, 216, 120, 0.45) !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }
  .hive-buzz-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin: 0 -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  .hive-buzz-filters::-webkit-scrollbar {
    display: none;
  }
  .hive-buzz-filter {
    flex-shrink: 0;
    min-height: 44px;
    touch-action: manipulation;
  }
  .dark-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-color: var(--border);
    background: var(--surface, #fff);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(45, 10, 10, 0.08);
  }
  html.dark .dark-toggle {
    background: #1f2335;
    border-color: var(--border);
    color: var(--accent, #f8d878);
  }
}
.user-menu-links-list .user-menu-theme-toggle {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}
@media (min-width: 769px) {
  .user-menu-theme-toggle {
    display: none !important;
  }
}
.dashboard-employer-tools-panel {
  padding: 1rem 1.15rem 1.15rem;
}
@media (min-width: 769px) {
  .dashboard-mvp-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-employer-tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dashboard-tab-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.hive-profile-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md, 10px);
  background: var(--surface-2, #faf6f6);
}
html.dark .hive-profile-preview-bar {
  background: #1f2335;
  border-color: var(--border);
}
html.dark .hive-profile-preview-bar .section-hint {
  color: var(--text-muted);
}
html.dark .hive-profile-preview-bar .btn-outline {
  color: var(--text-dark) !important;
  border-color: var(--border) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
html.dark .hive-profile-preview-bar .btn-outline:hover {
  border-color: var(--accent) !important;
  color: #fff !important;
  background: rgba(139, 32, 32, 0.35) !important;
}
html.dark .settings-page-sub,
html.dark .settings-page-sub a {
  color: var(--text-muted);
}
html.dark .settings-page-sub a {
  color: var(--accent);
}
html.dark .settings-page-title {
  color: var(--text-dark);
}
html.dark button.page-local-back.back-link,
html.dark a.page-local-back {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}
html.dark button.page-local-back.back-link:hover,
html.dark a.page-local-back:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(139, 32, 32, 0.35);
}
html.dark .dashboard-topbar .dashboard-hints-toggle {
  color: var(--text-dark) !important;
  border-color: var(--border) !important;
  background: rgba(255, 255, 255, 0.06);
}
html.dark .dashboard-topbar .dashboard-hints-toggle:hover {
  border-color: var(--accent) !important;
  color: #fff !important;
  background: rgba(139, 32, 32, 0.35) !important;
}
html.dark .section-hint {
  color: var(--text-muted);
}
html.dark .settings-page .btn-outline,
html.dark .hive-profile-page .btn-outline {
  color: var(--text-dark) !important;
  border-color: var(--border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
html.dark .settings-page .btn-outline:hover,
html.dark .hive-profile-page .btn-outline:hover {
  border-color: var(--accent) !important;
  color: #fff !important;
  background: rgba(139, 32, 32, 0.35) !important;
}
html.dark .settings-page .card,
html.dark .hive-profile-page .card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html.dark .settings-tabs .settings-tab {
  color: var(--text-muted);
  border-color: var(--border);
}
html.dark .settings-tabs .settings-tab.is-active {
  background: rgba(139, 32, 32, 0.35);
  border-color: var(--accent);
  color: #fff;
}
.member-profile-website-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.member-profile-website-link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .dashboard-mvp-quick-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-welcome-combined {
    padding: 1.15rem 1.1rem;
    gap: 0.85rem;
  }
  .dashboard-welcome-hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .dashboard-welcome-avatar {
    width: 64px;
    height: 64px;
  }
  .dashboard-welcome-body h2 {
    font-size: 1.15rem;
  }
  .dashboard-welcome-actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    justify-content: center;
  }
  .dashboard-workspace-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
  }
  .dashboard-workspace-banner-btn {
    width: 100%;
    justify-content: center;
  }
  .dashboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0.5rem 0 0.65rem;
  }
  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }
  .dashboard-tab {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 0.45rem 0.65rem;
  }
  .live-results-hive-bridge-inner {
    flex-direction: column;
  }
  .live-results-hive-bridge-actions {
    width: 100%;
  }
  .live-results-hive-bridge-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.dashboard-mobile-more {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0 0.5rem;
}
.dashboard-mobile-more-btn {
  justify-content: flex-start;
  gap: 0.5rem;
  text-align: left;
}
@media (max-width: 768px) {
  .mobile-pulse-strip {
    display: flex;
  }
  .dashboard-toolkit-expand,
  .homepage-toolkit-expand {
    display: inline-flex;
  }
  .dashboard-toolkit-card-extra,
  .homepage-feature-extra {
    display: none !important;
  }
  .dashboard-toolkit-grid.is-expanded .dashboard-toolkit-card-extra,
  .employer-features-grid.is-expanded .homepage-feature-extra {
    display: flex !important;
  }
  .dashboard-tab-mobile-secondary {
    display: none !important;
  }
  .success-story-mobile-extra {
    display: none;
  }
  .success-stories-section .partner-slot,
  .success-stories-section .donate-slot {
    display: none;
  }
  .seeker-hub-tabs,
  .employer-hub-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .seeker-hub-tabs::-webkit-scrollbar,
  .employer-hub-tabs::-webkit-scrollbar {
    display: none;
  }
  .dashboard-hiring-toolkit-head .dashboard-section-hint {
    display: none;
  }
}
html.dark .mobile-pulse-item {
  background: rgba(255, 200, 200, 0.06);
}
html.dark .mobile-pulse-inbox:hover {
  background: rgba(255, 200, 200, 0.1);
}

/* ── Profile documents vault ─────────────────────────────────────── */
.documents-settings-card .documents-panel-inner {
  padding: 1.25rem 1.35rem 1.35rem;
}
.documents-panel-intro {
  margin-bottom: 0.75rem;
}
.document-upload-form {
  margin-top: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.document-upload-grid {
  margin-bottom: 0.85rem;
}
.documents-empty-hint {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}
.document-vault-list { margin-top: 1.25rem; border-top: 1px solid var(--border-light); padding-top: 1rem; }
.document-vault-subtitle { font-size: 14px; font-weight: 700; margin-bottom: 0.75rem; }
.document-vault-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
}
.document-vault-row:last-child { border-bottom: none; }
.document-vault-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.document-vault-body { flex: 1; min-width: 0; }
.document-vault-meta { display: block; font-size: 12px; color: var(--text-muted); margin-top: 0.15rem; }
.document-vault-type-badge {
  display: inline;
  font-weight: 600;
  color: var(--primary-dark);
}
html.dark .document-vault-type-badge {
  color: var(--primary);
}
.document-vault-desc { font-size: 13px; color: var(--text-muted); margin: 0.25rem 0 0; }
.document-vault-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.35rem; flex-shrink: 0; align-items: flex-start; }
@media (max-width: 640px) {
  .documents-settings-card .documents-panel-inner {
    padding: 1rem 1rem 1.15rem;
  }
  .document-upload-form {
    padding: 0.85rem 0.9rem;
  }
  .document-vault-row {
    flex-wrap: wrap;
  }
  .document-vault-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
html.dark .document-upload-form {
  background: var(--surface);
  border-color: var(--border);
}
.document-vault-visibility {
  color: var(--primary-dark);
  font-weight: 600;
}
html.dark .document-vault-visibility {
  color: var(--primary);
}
.document-viewer-figure {
  margin: 0;
}
.document-viewer-caption {
  padding: 0.75rem 1rem;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-light);
}
.document-viewer-link {
  padding: 2rem;
  text-align: center;
}
.document-edit-card {
  padding: 1.25rem 1.35rem;
}
.document-delete-btn {
  margin-top: 1rem;
  color: var(--primary);
}

/* Location chip — icon + location name only */
.location-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}
.location-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.location-toggle-btn i {
  font-size: 1.05rem;
  line-height: 1;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
.location-toggle-btn.is-on i {
  color: var(--success);
  text-shadow: none;
  filter: none;
}
.location-toggle-btn.is-off i {
  color: rgba(255, 255, 255, 0.88);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 -1px 2px rgba(0, 0, 0, 0.2);
  filter: grayscale(0.1);
}
html:not(.dark) .location-toggle-btn.is-off i {
  color: #ececec;
  text-shadow:
    0 1px 0 #fff,
    0 -1px 1px rgba(0, 0, 0, 0.12);
}
html.dark .location-toggle-btn.is-off i {
  color: rgba(255, 255, 255, 0.7);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 -1px 2px rgba(0, 0, 0, 0.5);
}
.location-toggle-btn:hover i {
  opacity: 0.9;
}
.location-chip-off .location-chip-text {
  display: none !important;
}
.location-chip-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: min(48vw, 220px);
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.location-chip-text:hover {
  color: var(--primary);
  text-decoration: underline;
}
.dashboard-topbar-actions .location-chip-wrap {
  max-width: min(52vw, 240px);
}
.dashboard-topbar-actions .location-chip-text {
  max-width: min(36vw, 180px);
}
.user-menu-links-list .user-menu-toggle-link {
  width: 100%;
  box-sizing: border-box;
}
.user-menu-toggle-label {
  flex: 1;
  min-width: 0;
}
.user-menu-switch-label {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  cursor: pointer;
}
.user-menu-switch-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.user-menu-switch {
  width: 36px;
  height: 20px;
  min-width: 36px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.user-menu-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.user-menu-switch-label input:checked + .user-menu-switch {
  background: var(--primary);
}
.user-menu-switch-label input:checked + .user-menu-switch::after {
  transform: translateX(16px);
}
html.dark .user-menu-switch {
  background: #475569;
}
html.dark .user-menu-switch-label input:checked + .user-menu-switch {
  background: var(--primary-light);
}
.location-settings-card {
  padding: 0;
}
.location-settings-card .location-panel-inner {
  padding: 1.25rem 1.35rem 1.35rem;
}
.location-panel-head {
  margin-bottom: 1rem;
}
.location-panel-head .section-heading {
  margin-bottom: 0.35rem;
}
.location-settings-card .location-panel-advice {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--green-bg);
  border: 1px solid var(--border-light);
}
.location-advice-list {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
}
.location-scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.location-scope-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.location-scope-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--green-bg);
  color: var(--primary-mid);
}
.location-scope-option input {
  accent-color: var(--primary);
}
.location-picker-grid {
  gap: 1rem 1.1rem;
}
.location-pref-preview {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px dashed var(--border-light);
  font-weight: 600;
  color: var(--text-dark);
}
.location-radius-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.location-radius-pill {
  min-width: 3.25rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.location-radius-pill:hover {
  border-color: var(--primary-light);
  background: var(--green-bg);
}
.location-radius-pill.is-active {
  border-color: var(--primary);
  background: var(--green-bg);
  color: var(--primary-mid);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.location-enabled-field {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-light);
}
.location-detect-status {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: var(--success-dark);
}
.location-detect-status.is-error {
  color: var(--primary);
}
.location-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}
.live-results-view-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}
.live-results-toolbar-row {
  flex-direction: column;
  align-items: stretch;
}
.live-results-toolbar-row .live-results-view-row {
  margin-top: 0.35rem;
}
.honey-admin-analytics-card {
  margin-bottom: 1rem;
}
.honey-admin-analytics-stats {
  margin-top: 0.75rem;
}

/* Location sensitivity strip (legacy) */
.location-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
}
.location-strip-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.location-strip-icon {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.location-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.location-strip-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.location-strip-copy strong {
  font-size: 14px;
  color: var(--text-dark);
  word-break: break-word;
}
.location-strip-radius {
  font-size: 11px;
  color: var(--text-muted);
}
.location-strip-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.location-strip-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: -0.15rem 0 0.85rem;
  line-height: 1.4;
}
.location-apply-block {
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .location-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .location-strip-actions {
    justify-content: flex-end;
  }
}
.gallery-caption-input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem;
  font-size: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dark);
}
.gallery-preview-item .gallery-caption-display {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.3;
  text-align: center;
}
.document-browse-page { padding-bottom: 5rem; }
.document-browse-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  padding: 1rem;
  margin-bottom: 1rem;
}
.document-browse-cta { margin-bottom: 1rem; }
.document-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.document-browse-card { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.document-browse-card-icon { color: var(--primary); font-size: 1.25rem; }
.document-browse-card-title { font-size: 1rem; margin: 0; }
.document-browse-card-title a { color: var(--text-dark); text-decoration: none; }
.document-browse-card-meta { font-size: 12px; color: var(--text-muted); margin: 0; }
.document-browse-card-desc { font-size: 13px; color: var(--text-muted); margin: 0; }
.document-browse-card-actions { display: flex; gap: 0.35rem; margin-top: auto; padding-top: 0.5rem; }
.document-viewer-wrap { padding-bottom: 5rem; max-width: 960px; margin: 0 auto; }
.document-viewer-header { padding: 1.25rem; margin-bottom: 1rem; }
.document-viewer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 13px; color: var(--text-muted); }
.document-viewer-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.document-viewer-frame { padding: 0; overflow: hidden; min-height: 320px; }
.document-viewer-image { width: 100%; height: auto; display: block; max-height: 70vh; object-fit: contain; }
.document-viewer-pdf { width: 100%; min-height: 70vh; border: none; display: block; }
.document-viewer-text {
  margin: 0;
  padding: 1rem;
  font-size: 13px;
  line-height: 1.5;
  overflow: auto;
  max-height: 70vh;
  white-space: pre-wrap;
  word-break: break-word;
}
.document-viewer-fallback { padding: 2rem; text-align: center; }
.document-viewer-docx {
  padding: 1.25rem 1.5rem;
  max-height: 70vh;
  overflow: auto;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dark);
}
.document-viewer-docx p {
  margin: 0 0 0.85rem;
}

/* —— Talent hive (seeker service listings) —— */
.talent-hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.35rem;
}
.talent-hero-lead { margin: 0.5rem 0 0; max-width: 36rem; opacity: 0.92; }
.btn-hero-talent { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); }
.talent-board-wrap { padding: 1.5rem 0 3rem; }
.talent-board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.talent-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.talent-filter-field select,
.talent-filter-field input {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dark);
  font-size: 14px;
}
.talent-filter-check { font-size: 14px; display: flex; align-items: center; gap: 0.35rem; }
.talent-clear-filters { font-size: 13px; color: var(--primary); }
.talent-results-count { font-size: 14px; color: var(--text-muted); margin: 0; }
.talent-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.talent-card { padding: 1rem; transition: box-shadow 0.15s ease; }
.talent-card:hover { box-shadow: var(--shadow-md); }
.talent-card-link { text-decoration: none; color: inherit; display: block; }
.talent-card-head { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.65rem; }
.talent-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.talent-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.talent-card-title { font-size: 1.05rem; margin: 0 0 0.15rem; color: var(--text-dark); }
.talent-card-provider { font-size: 13px; color: var(--text-muted); margin: 0; }
.talent-card-desc { font-size: 14px; color: var(--text-muted); margin: 0 0 0.65rem; line-height: 1.45; }
.talent-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 12px;
  color: var(--text-muted);
}
.talent-card-facts i { color: var(--primary); margin-right: 0.2rem; }
.talent-card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }
.talent-tag {
  font-size: 11px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--gray-soft);
  color: var(--text-muted);
}
.talent-empty-state { text-align: center; padding: 2.5rem 1.5rem; }
.talent-empty-state i { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.talent-detail-wrap { padding-bottom: 4rem; }
.talent-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.65rem 0 0.9rem;
}
.talent-page-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}
.talent-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) min(320px, 100%); gap: 1rem; align-items: start; }
@media (max-width: 768px) {
  .talent-detail-topbar { align-items: flex-start; flex-direction: column; }
  .talent-detail-grid { grid-template-columns: 1fr; }
}
.talent-detail-category { font-size: 13px; color: var(--primary); margin: 0 0 0.35rem; }
.talent-detail-main { padding: 1.2rem 1.25rem; }
.talent-detail-title { margin: 0 0 0.75rem; }
.talent-seasonal-match {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(127, 29, 29, 0.2);
  padding: 0.22rem 0.5rem;
  color: var(--primary);
  background: var(--primary-bg, #FBF0F0);
}
html.dark .talent-seasonal-match {
  border-color: rgba(248, 216, 120, 0.28);
  background: rgba(139, 32, 32, 0.24);
  color: var(--text-dark);
}
.talent-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.talent-rate { color: var(--primary); font-weight: 600; }
.talent-detail-body { line-height: 1.6; }
.talent-detail-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.talent-detail-side { display: flex; flex-direction: column; gap: 0.75rem; }
.talent-provider-card { padding: 1.1rem; }
.talent-provider-head { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 0.85rem; }
.talent-provider-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.talent-provider-name { margin: 0; font-size: 1.1rem; }
.talent-provider-meta {
  margin: 0.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 12px;
  color: var(--text-muted);
}
.talent-provider-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
}
.talent-provider-presence-dot {
  color: #22c55e;
  font-size: 9px;
}
.talent-provider-headline { margin: 0.15rem 0 0; font-size: 13px; color: var(--text-muted); }
.talent-provider-bio { font-size: 14px; color: var(--text-muted); margin: 0 0 1rem; }
.talent-provider-hint { font-size: 12px; color: var(--text-muted); margin: 0.85rem 0 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.talent-owner-toolbar { margin: 1rem 0; padding: 0.85rem 1rem; }
.talent-owner-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.talent-form-wrap { padding-bottom: 4rem; max-width: 960px; }
.talent-form-header {
  margin: 0.75rem 0 1.35rem;
}
.talent-form-header h1 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}
.talent-form-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 36rem;
}
.talent-form-layout { display: grid; grid-template-columns: 1fr min(280px, 100%); gap: 1rem; align-items: start; }
.talent-form-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.talent-form-sidebar .donate-slot { margin: 0; }
@media (max-width: 768px) { .talent-form-layout { grid-template-columns: 1fr; } }
.talent-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.talent-form-field { gap: 0.45rem; }
.talent-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.talent-form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.talent-form .form-field input,
.talent-form .form-field textarea,
.talent-form .form-field select {
  font-size: 14px;
}
.talent-form-tips h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.talent-remote-toggle {
  margin-top: 0.5rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated, var(--surface));
}
.talent-remote-toggle .discovery-pref-switch {
  margin-top: 0;
}
.talent-remote-label strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}
.talent-remote-label small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}
.talent-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.talent-form-tips { padding: 1.25rem; }
.talent-seasonal-prompt {
  padding: 0.7rem 0.8rem;
  border: 1px dashed rgba(127, 29, 29, 0.3);
  background: var(--primary-bg, #FBF0F0);
}
html.dark .talent-seasonal-prompt {
  border-color: rgba(248, 216, 120, 0.24);
  background: rgba(139, 32, 32, 0.24);
}
.talent-seasonal-prompt-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.talent-seasonal-prompt-copy {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.talent-seasonal-prompt-tags {
  margin: 0.35rem 0 0.5rem;
  font-size: 12px;
  color: var(--text-dark);
}
.profile-seasonal-help {
  border: 1px dashed rgba(127, 29, 29, 0.3);
  background: var(--primary-bg, #FBF0F0);
  padding: 0.75rem 0.85rem;
}
.profile-seasonal-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.profile-seasonal-sub {
  margin: 0.25rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.profile-seasonal-tags {
  margin: 0.35rem 0 0.45rem;
  font-size: 12px;
}
.profile-discovery-tip-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
  font-size: 12px;
  color: var(--text-muted);
}
.profile-discovery-tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.profile-discovery-tip-list i {
  color: var(--primary);
  margin-top: 0.15rem;
}
html.dark .profile-seasonal-help {
  border-color: rgba(248, 216, 120, 0.24);
  background: rgba(139, 32, 32, 0.24);
}
.dashboard-seasonal-badge {
  margin: 0.35rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(127, 29, 29, 0.24);
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
}
.dashboard-seasonal-tip-line {
  margin-top: 0.38rem;
}
.dashboard-seasonal-tip-link {
  color: inherit;
  text-decoration: none;
}
.dashboard-seasonal-tip-link:hover {
  color: var(--primary);
}
.dashboard-seasonal-tip-link .fa-solid {
  color: var(--primary);
}
.dashboard-seasonal-tip-cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.job-seasonal-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.15rem;
}
.dashboard-seasonal-tip-list {
  list-style: none;
  margin: 0.5rem 0 0.65rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 12px;
  color: var(--text-muted);
}
.dashboard-seasonal-tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.dashboard-seasonal-tip-list i {
  color: var(--primary);
  margin-top: 0.12rem;
}
.dashboard-edit-profile-btn {
  margin-top: 0.15rem;
}
html.dark .dashboard-seasonal-badge {
  border-color: rgba(248, 216, 120, 0.3);
  background: rgba(139, 32, 32, 0.24);
  color: var(--text-dark);
}
.talent-tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; font-size: 14px; color: var(--text-muted); }
.talent-tips-list i { color: var(--primary); margin-right: 0.35rem; }
.talent-mine-wrap { padding-bottom: 4rem; }
.talent-mine-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.talent-mine-row:last-child { border-bottom: none; }
.talent-mine-main h2 { font-size: 1rem; margin: 0 0 0.25rem; }
.talent-mine-main h2 a { color: var(--text-dark); text-decoration: none; }
.talent-mine-actions { display: flex; gap: 0.35rem; align-items: center; }
.badge-paused { background: #fff3cd; color: #856404; }
.talent-hive-strip {
  padding: 2rem 0;
  background: var(--surface-alt, #f8faf8);
}
.talent-hive-strip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.talent-hive-strip-eyebrow { font-size: 12px; font-weight: 600; color: var(--primary); margin: 0 0 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.talent-hive-strip-lead { margin: 0.35rem 0 0; color: var(--text-muted); max-width: 32rem; }
.talent-hive-strip-grid { margin-top: 0; }

.talent-card-cover {
  margin: -1rem -1rem 0.75rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  max-height: 140px;
}
.talent-card-cover img { width: 100%; height: 140px; object-fit: cover; display: block; }
.talent-trust-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.talent-trust-badges-inline { margin: 0; }
.talent-trust-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.talent-trust-badge-verified { background: var(--green-bg); color: var(--primary); }
.talent-trust-badge-portfolio { background: rgba(212, 160, 23, 0.15); color: #9a7209; }
html.dark .talent-trust-badge-portfolio { color: #e8c547; }
.talent-card-rating { color: var(--primary); font-weight: 600; }
.talent-star-muted { opacity: 0.25; }
.talent-gallery { margin-bottom: 1rem; }
.talent-gallery-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.talent-gallery-item {
  flex: 0 0 min(280px, 85%);
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.talent-gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.talent-gallery-item figcaption { font-size: 12px; padding: 0.35rem 0.5rem; color: var(--text-muted); }
.talent-detail-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; }
.talent-review-summary { display: flex; align-items: center; gap: 0.35rem; margin: 0 0 0.75rem; }
.talent-stars { color: var(--primary); letter-spacing: 0.05em; }
.talent-reviews-section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.talent-reviews-section h2 { font-size: 1rem; margin: 0 0 0.75rem; }
.talent-reviews-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.talent-review-item { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.talent-review-author { font-weight: 600; margin: 0.15rem 0; font-size: 13px; }
.talent-review-comment { margin: 0; font-size: 14px; color: var(--text-muted); }
.talent-more-offers { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.talent-more-offers h2 { font-size: 1rem; }
.talent-more-offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem; }
.talent-more-offer { padding: 0.65rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.35rem; }
.talent-more-offer-thumb { width: 100%; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.talent-more-offer-title { font-size: 13px; font-weight: 600; }
.talent-more-offer-rate { font-size: 11px; color: var(--primary); }
.talent-public-docs { margin: 0 0 1rem; }
.talent-public-docs h3 { font-size: 14px; margin: 0 0 0.5rem; color: var(--primary); }
.talent-public-docs-list { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.talent-public-docs-list a { color: var(--text-dark); text-decoration: none; }
.talent-public-docs-list a:hover { color: var(--primary); }
.talent-provider-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.talent-quote-panel { margin-top: 0.75rem; padding: 1rem; background: var(--surface-alt, #f8faf8); }
.talent-quote-panel h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.talent-review-form { margin-top: 0.75rem; padding: 1rem; }
.talent-review-rating-input { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.65rem; }
.talent-star-label { font-size: 13px; cursor: pointer; }
.talent-rate-fieldset { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem; margin: 0; }
.talent-rate-fieldset legend { font-weight: 600; font-size: 14px; padding: 0 0.35rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
@media (max-width: 600px) { .form-row-3 { grid-template-columns: 1fr; } }
.talent-seasonal-strip { margin-bottom: 1.25rem; }
.talent-seasonal-heading { font-size: 1rem; margin: 0 0 0.65rem; color: var(--text-dark); }
.talent-seasonal-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.talent-seasonal-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  max-width: 240px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.talent-seasonal-chip:hover, .talent-seasonal-chip.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.talent-seasonal-chip i { color: var(--primary); margin-top: 0.15rem; }
.talent-seasonal-chip-text { display: flex; flex-direction: column; gap: 0.1rem; }
.talent-seasonal-chip-text strong { font-size: 13px; }
.talent-seasonal-chip-text small { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.talent-collection-banner { padding: 0.75rem 1rem; margin: 0.75rem 0 0; font-size: 14px; color: var(--text-muted); }
.talent-collection-banner i { color: var(--primary); margin-right: 0.35rem; }
.talent-hire-preview { padding: 1rem 1.15rem; margin-bottom: 1.25rem; }
.talent-hire-preview-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.65rem; }
.talent-hire-preview-head h2 { font-size: 1rem; margin: 0; }
.talent-hire-preview-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.talent-hire-preview-list li { padding: 0.35rem 0; border-top: 1px solid var(--border); }
.talent-hire-preview-list a { color: var(--primary); font-weight: 600; text-decoration: none; }
.talent-hire-wrap, .talent-hire-detail-wrap { padding-bottom: 4rem; }
.talent-hire-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.talent-hire-header-copy { flex: 1 1 220px; min-width: 0; }
.talent-hire-header-copy h1 { font-size: 1.35rem; margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.talent-hire-header-copy p { margin: 0; font-size: 14px; color: var(--text-muted); }
.talent-hire-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.talent-hire-wrap .talent-filter-form {
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.talent-hire-wrap .talent-filter-field { flex: 1 1 140px; min-width: 0; }
.talent-hire-wrap .talent-filter-field select,
.talent-hire-wrap .talent-filter-field input { width: 100%; box-sizing: border-box; }
.talent-hire-list { display: flex; flex-direction: column; gap: 0.75rem; }
.talent-hire-card { padding: 1rem; }
.talent-hire-card-link { text-decoration: none; color: inherit; display: block; }
.talent-hire-card h2 { font-size: 1.05rem; margin: 0 0 0.35rem; color: var(--text-dark); }
.talent-hire-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.85rem; font-size: 12px; color: var(--text-muted); margin: 0 0 0.5rem; }
.talent-hire-card-meta i { color: var(--primary); }
.talent-hire-card-desc { margin: 0; font-size: 14px; color: var(--text-muted); }
.talent-hire-detail-grid { display: grid; grid-template-columns: 1fr min(320px, 100%); gap: 1rem; }
@media (max-width: 768px) { .talent-hire-detail-grid { grid-template-columns: 1fr; } }
.talent-hire-responses { margin-top: 1rem; padding: 1rem; }
.talent-hire-response-item { padding: 0.65rem 0; border-bottom: 1px solid var(--border); }

/* Dashboard role switcher + location quick modal */
.dashboard-role-switcher { padding: 1rem 1.15rem; margin-bottom: 1rem; }
.dashboard-role-switcher-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.dashboard-role-switcher-head h3 { margin: 0; font-size: 1rem; }
.dashboard-role-advice { font-size: 13px; margin: 0 0 0.75rem; }
.dashboard-role-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.dashboard-role-option {
  cursor: pointer;
  margin: 0;
  position: relative;
}
.dashboard-role-option input {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.dashboard-role-option span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  background: var(--surface);
  color: var(--text-dark);
  transition: border-color 0.15s, background 0.15s;
}
.dashboard-role-option input:checked + span,
.dashboard-role-option.is-current span {
  border-color: var(--primary);
  background: var(--green-bg);
  color: var(--primary);
}
.choose-role-wrap { padding: 2rem 1rem 4rem; max-width: 520px; margin: 0 auto; }
.choose-role-card { padding: 1.5rem; }
.choose-role-picker { margin: 1rem 0; }
.location-quick-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.location-quick-modal[hidden] { display: none !important; }
.location-quick-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 5, 5, 0.55);
  backdrop-filter: blur(4px);
}
.location-quick-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem 1.35rem;
  margin-bottom: env(safe-area-inset-bottom, 0);
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.location-quick-panel .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.location-quick-panel .form-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.location-quick-panel .form-field input {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
}
.location-quick-enabled-toggle {
  margin-top: 0.85rem;
}
.location-quick-enabled-toggle .settings-privacy-detail {
  display: block;
  margin-top: 0.15rem;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.location-quick-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.location-quick-head h2 { margin: 0; font-size: 1.1rem; }
.location-quick-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.location-quick-lead { font-size: 13px; margin: 0.35rem 0 1rem; line-height: 1.5; }
.location-quick-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.15rem; padding-top: 0.15rem; }
.location-quick-enabled { margin-top: 0; }
body.location-modal-open { overflow: hidden; }
@media (min-width: 640px) {
  .location-quick-modal { align-items: center; }
  .location-quick-panel {
    border-radius: var(--radius-lg);
  }
}

/* Dark mode + responsive visibility pass */
html.dark .role-card-inner,
html.dark .tier-card-inner {
  background: var(--surface);
  border-color: var(--border);
}
html.dark .role-card input:checked + .role-card-inner,
html.dark .tier-card input:checked + .tier-card-inner {
  background: rgba(76, 175, 80, 0.08);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
html.dark .talent-quote-panel,
html.dark .talent-seasonal-chip,
html.dark .dashboard-role-switcher,
html.dark .location-quick-panel {
  background: var(--surface);
}
html.dark .talent-hire-preview,
html.dark .talent-collection-banner {
  background: var(--surface);
  color: var(--text-muted);
}
html.dark .talent-board-page .hero-overlay {
  background: rgba(15, 23, 42, 0.9);
}
html.dark .talent-board-page .hero-overlay-glow {
  display: none;
}
html.dark .talent-board-wrap,
html.dark .talent-board-page .container {
  color: var(--text-dark);
}
html.dark .talent-hive-strip {
  background: var(--surface);
}
html.dark .talent-card,
html.dark .talent-filter-form,
html.dark .talent-form,
html.dark .talent-form-tips {
  background: var(--surface);
  color: var(--text-dark);
}
html.dark .talent-seasonal-chip {
  background: var(--surface);
  color: var(--text-dark);
  border-color: var(--border);
}
html.dark .text-muted { color: var(--text-muted); }
html.dark .auth-card { background: var(--surface); }
html.dark .talent-remote-toggle {
  background: var(--surface);
  border-color: var(--border);
}
@media (max-width: 768px) {
  .dashboard-topbar { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .dashboard-topbar-actions { flex-wrap: wrap; justify-content: flex-start; }
  .hero-cta-row { flex-direction: column; align-items: center; justify-content: center; }
  .hero-cta-row .btn { width: 100%; max-width: 300px; justify-content: center; flex: 0 0 auto; }
  .talent-board-toolbar { flex-direction: column; align-items: stretch; }
  .talent-hire-header { flex-direction: column; align-items: stretch; }
  .talent-hire-header-actions { justify-content: flex-start; width: 100%; }
  .talent-hire-header-actions .btn { flex: 1 1 auto; justify-content: center; }
  .dashboard-role-options { flex-direction: column; }
  .dashboard-role-option span { width: 100%; justify-content: center; }
}

/* Full-page navigation veil */
.hive-page-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
}
html.dark .hive-page-veil { background: rgba(15, 10, 10, 0.35); }
.hive-page-veil.is-active { opacity: 1; }
.hive-page-veil-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 40%;
  background: linear-gradient(90deg, var(--primary), var(--tier-paid-icon));
  border-radius: 0 2px 2px 0;
  animation: hive-page-veil-slide 0.55s ease-in-out infinite;
}
@keyframes hive-page-veil-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}
html.hive-page-ready body { animation: hive-page-fade-in 0.22s ease; }
@keyframes hive-page-fade-in {
  from { opacity: 0.92; }
  to { opacity: 1; }
}

/* Application review math */
.seeker-stats-panel-math .seeker-stats-math-lead {
  margin: 0.25rem 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.seeker-stat-rate {
  font-size: 10px;
  font-style: normal;
  color: var(--primary-mid);
  font-weight: 700;
}
.seeker-app-funnel { margin: 0 0 0.75rem; }
.seeker-app-funnel-bar {
  display: flex;
  height: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-soft);
  border: 1px solid var(--border-light);
}
.seeker-app-funnel-seg { min-width: 2px; height: 100%; }
.seeker-app-funnel-pending { background: #f59e0b; }
.seeker-app-funnel-reviewed { background: #6366f1; }
.seeker-app-funnel-shortlisted { background: #22c55e; }
.seeker-app-funnel-rejected { background: #94a3b8; }
.seeker-app-funnel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
}
.seeker-app-funnel-legend li { display: inline-flex; align-items: center; gap: 0.25rem; }
.seeker-app-funnel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.seeker-app-funnel-legend em { font-style: normal; opacity: 0.75; }
.seeker-stats-doc-library { margin-top: 0.85rem; }
.seeker-stats-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.seeker-stats-doc-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.seeker-stats-doc-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}
.seeker-stats-doc-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.seeker-stats-doc-meta strong {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seeker-stats-doc-type { font-size: 10px; color: var(--text-muted); }
.seeker-radar-match-avg {
  display: block;
  font-size: 9px;
  opacity: 0.85;
  margin-top: 0.15rem;
}
.seeker-app-review-card { padding: 1.15rem 1.25rem; margin-bottom: 1rem; }
.seeker-review-summary-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--green-bg);
  color: var(--primary-mid);
  border: 1px solid var(--border-light);
}
.seeker-review-equation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.seeker-review-eq-item {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg);
  font-size: 13px;
}
.seeker-review-eq-value { font-weight: 800; color: var(--text-dark); font-size: 1.1rem; }
.seeker-review-eq-label { font-size: 11px; color: var(--text-muted); }
.seeker-review-eq-op { color: var(--text-muted); font-weight: 600; }
.seeker-review-eq-result { font-weight: 800; color: var(--primary); font-size: 1.15rem; }
.seeker-review-eq-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.seeker-match-score small { font-size: 9px; font-weight: 600; opacity: 0.7; }
.seeker-recent-apps-math .seeker-recent-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.seeker-recent-app-stats { display: flex; align-items: center; gap: 0.4rem; }
.seeker-recent-stat { font-size: 14px; color: var(--text-muted); }
.seeker-recent-stat.is-viewed { color: var(--primary); }

/* My documents library */
.document-mine-page { padding-bottom: 3rem; }
.document-mine-list { padding: 1rem 1.15rem; }
.document-mine-count { font-size: 13px; color: var(--text-muted); margin: 0 0 0.75rem; }
.document-mine-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.document-mine-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.document-mine-body { flex: 1; min-width: 0; }
.document-mine-actions { display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0; }

/* ── Theme polish: buttons, inbox badges, sweep, videos ── */
html:not(.dark) .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}
html:not(.dark) .btn-outline:hover {
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary-dark);
  opacity: 1;
}
html:not(.dark) .site-header .btn-outline {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--primary-bg, #FBF0F0);
}
html:not(.dark) .site-header .btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  opacity: 1;
}
html:not(.dark) .hero-landing .btn-hero-find,
html:not(.dark) .hero-landing .btn-hero-post,
html:not(.dark) .hero-landing .btn-hero-post-secondary {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
html:not(.dark) .hero-landing .btn-hero-post {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.35);
}
html:not(.dark) .hero-landing .btn-hero-post-secondary {
  background: #ea580c;
  border-color: rgba(255, 255, 255, 0.35);
}
@media (max-width: 768px) {
  .hero-cta-row .btn-hero-post,
  .hero-cta-row .btn-hero-post-secondary {
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    font-size: 15px;
  }
}
.btn-xs {
  padding: 0.28rem 0.55rem;
  font-size: 11px;
  border-radius: var(--radius-sm);
}
.dashboard-text-link,
.home-browse-clear,
.page-local-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dashboard-text-link:hover,
.home-browse-clear:hover,
.page-local-back:hover {
  background: var(--primary-bg, #FBF0F0);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.site-footer-btn {
  margin-top: 0.35rem;
}
html:not(.dark) .inbox-role-badge.account-type-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}
html:not(.dark) .inbox-role-badge.account-type-employer,
html:not(.dark) .inbox-role-badge.account-type-both {
  background: rgba(139, 32, 32, 0.12);
  color: var(--primary-dark);
  border-color: rgba(139, 32, 32, 0.28);
}
html:not(.dark) .inbox-role-badge.account-type-job_seeker {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--border);
}
.listing-kind-legend {
  gap: 0.45rem 0.65rem;
}
.listing-kind-legend .btn-outline {
  margin-left: auto;
}
.home-browse-kind-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin-top: 0.15rem;
}
.home-browse-kind-badges .badge {
  position: static;
  max-width: 100%;
}
.pitch-video-section.field-highlight,
#pitch-videos.field-highlight {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: var(--radius-md, 10px);
}
.pitch-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.pitch-video-slot {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pitch-video-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pitch-video-preview,
.pitch-video-display-item video {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #000;
  max-height: 220px;
}
.pitch-video-hint,
.pitch-video-clear {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}
.pitch-video-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.pitch-video-display-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.settings-advertise-panel .advertise-placement-list { margin-top: 0.75rem; }
.settings-advertise-cta { margin-top: 1rem; }

/* Application sweep — visual refresh */
.seeker-sweep-card {
  padding: 1.25rem 1.35rem;
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(139, 32, 32, 0.08) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border-light);
}
.seeker-sweep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.seeker-sweep-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--primary-bg, #FBF0F0);
  color: var(--primary);
  border: 1px solid rgba(139, 32, 32, 0.18);
}
.seeker-sweep-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 1.25rem;
  align-items: center;
}
.seeker-sweep-core {
  width: min(100%, 340px);
  margin: 0 auto;
}
.seeker-sweep-ring {
  border-color: rgba(139, 32, 32, 0.18);
  border-style: solid;
}
.seeker-sweep-ring-outer { inset: 4%; opacity: 0.55; }
.seeker-sweep-ring-mid { inset: 20%; opacity: 0.75; }
.seeker-sweep-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.seeker-sweep-arc-seg {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}
.seeker-sweep-arc-pending { stroke: #f59e0b; }
.seeker-sweep-arc-reviewed { stroke: #6366f1; }
.seeker-sweep-arc-shortlisted { stroke: #22c55e; }
.seeker-sweep-arc-rejected { stroke: #94a3b8; }
.seeker-sweep-center {
  inset: 34%;
  box-shadow: 0 8px 24px rgba(139, 32, 32, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.35);
}
.seeker-sweep-legend {
  display: grid;
  gap: 0.55rem;
}
.seeker-sweep-legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg);
}
.seeker-sweep-legend-copy {
  display: grid;
  gap: 0.05rem;
  font-size: 12px;
  color: var(--text-muted);
}
.seeker-sweep-legend-copy strong {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1;
}
.seeker-sweep-legend-copy em {
  font-style: normal;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 860px) {
  .seeker-sweep-stage {
    grid-template-columns: 1fr;
  }
  .seeker-sweep-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .seeker-sweep-legend {
    grid-template-columns: 1fr;
  }
  .listing-kind-legend .btn-outline {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* Hive buzz — My hive activity feed */
.hive-buzz-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hive-buzz-panel.is-loading .hive-buzz-stream {
  opacity: 0.55;
  pointer-events: none;
}
.hive-buzz-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.hive-buzz-header h3 {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
}
.hive-buzz-header h3 i {
  color: var(--primary);
}
.hive-buzz-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.hive-buzz-filters-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.hive-buzz-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

/* ── All tabs share the same inactive look regardless of is-on preference ── */
.hive-buzz-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.14s;
}
.hive-buzz-filter i { font-size: 0.78rem; }
.hive-buzz-filter:hover {
  border-color: var(--primary);
  color: var(--text-dark);
  background: rgba(127, 29, 29, 0.05);
}

/* is-on = preference enabled but not selected — looks identical to off tabs */
.hive-buzz-filter.is-on {
  /* intentionally no override — same look as inactive tabs */
}

/* ── CURRENTLY SELECTED — unmistakably different ── */
.hive-buzz-filter.is-active,
.hive-buzz-filter.is-on.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(127, 29, 29, 0.35);
}
.hive-buzz-filter.is-active i,
.hive-buzz-filter.is-on.is-active i {
  color: #fff !important;
  opacity: 1 !important;
}
.hive-buzz-filter.is-active:hover,
.hive-buzz-filter.is-on.is-active:hover {
  background: var(--primary-dark, #6b1a1a) !important;
  border-color: var(--primary-dark, #6b1a1a) !important;
  box-shadow: 0 3px 14px rgba(127, 29, 29, 0.45);
}

/* ── Dark mode ── */
html.dark .hive-buzz-filter {
  border-color: var(--border);
  background: transparent;
  color: var(--text-muted);
}
html.dark .hive-buzz-filter:hover {
  border-color: var(--border);
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.04);
}
html.dark .hive-buzz-filter.is-on {
  /* same as inactive in dark mode */
  border-color: var(--border);
  background: transparent;
  color: var(--text-muted);
}
html.dark .hive-buzz-filter.is-active,
html.dark .hive-buzz-filter.is-on.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(139, 32, 32, 0.5);
}
.hive-buzz-stream {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.hive-buzz-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  background: var(--surface);
  overflow: hidden;
}
.hive-buzz-card-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  color: inherit;
  text-decoration: none;
}
.hive-buzz-card-link:hover {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}
.hive-buzz-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  color: var(--primary);
  flex-shrink: 0;
}
.hive-buzz-tone-success .hive-buzz-icon {
  background: color-mix(in srgb, var(--success, #1a7f4b) 16%, var(--surface));
  color: var(--success, #1a7f4b);
}
.hive-buzz-tone-warn .hive-buzz-icon {
  background: color-mix(in srgb, var(--warning, #b45309) 16%, var(--surface));
  color: var(--warning, #b45309);
}
.hive-buzz-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.hive-buzz-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.hive-buzz-title {
  font-size: 0.95rem;
  line-height: 1.35;
}
.hive-buzz-body-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.hive-buzz-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hive-buzz-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(180, 83, 9, 0.12);
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.22);
}
.hive-buzz-chevron {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.hive-buzz-empty {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md, 10px);
  color: var(--text-muted);
}
.hive-buzz-empty i {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--primary);
}
.hive-buzz-empty-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
/* Hive tip badge — matches listing-kind pills */
.badge-hive-tip {
  background: rgba(180, 83, 9, 0.12);
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.22);
}
html.dark .badge-hive-tip {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.28);
}

/* Talent card kind row */
.talent-card-kind-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.2rem 0 0.35rem;
}
.listing-kind-legend-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Live results pulse chart */
.live-results-pulse-card {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
.live-results-pulse-head {
  margin-bottom: 1rem;
}
.live-results-pulse-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.live-results-pulse-title i {
  color: var(--primary);
}
.live-results-pulse-lead {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.live-results-pulse-stage {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.live-results-pulse-signal {
  display: flex;
  justify-content: center;
}
.live-results-pulse-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.live-results-pulse-ring {
  width: 5.5rem;
  height: 5.5rem;
}
.live-results-pulse-signal-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 13px;
}
.live-results-pulse-signal-meta strong {
  color: var(--text-dark);
  font-size: 0.95rem;
}
.live-results-pulse-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 12rem;
}
.live-results-pulse-donut-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.live-results-pulse-donut {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.live-results-pulse-donut-track {
  fill: none;
  stroke: var(--gray-soft);
  stroke-width: 12;
}
.live-results-pulse-donut-seg {
  fill: none;
  stroke-width: 12;
  stroke-linecap: butt;
}
.live-results-pulse-seg-my_apps { stroke: var(--primary); }
.live-results-pulse-seg-talent { stroke: #7c3aed; }
.live-results-pulse-seg-jobs { stroke: var(--primary-dark); }
.live-results-pulse-seg-incoming { stroke: var(--primary-light); }
.live-results-pulse-donut-total {
  font-size: 11px;
  font-weight: 800;
  fill: var(--text-dark);
}
.live-results-pulse-donut-label {
  font-size: 7px;
  font-weight: 700;
  fill: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-results-pulse-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}
.live-results-pulse-legend-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.live-results-pulse-legend-dot {
  display: none;
}
.live-results-pulse-legend-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  font-size: 13px;
  color: var(--text-muted);
}
.live-results-pulse-legend-copy strong {
  color: var(--text-dark);
  font-size: 1rem;
}
.live-results-pulse-legend-copy em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}
.live-results-pulse-empty {
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md, 10px);
  color: var(--text-muted);
}
.live-results-pulse-empty i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.live-results-pulse-empty-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.live-results-pulse-status {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.live-results-pulse-status-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-results-pulse-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}
.live-results-pulse-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.live-results-pulse-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-soft);
  overflow: hidden;
}
.live-results-pulse-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}
.live-results-pulse-status-pending .live-results-pulse-bar-fill { background: var(--text-muted); }
.live-results-pulse-status-reviewed .live-results-pulse-bar-fill { background: var(--primary-light); }
.live-results-pulse-status-shortlisted .live-results-pulse-bar-fill { background: var(--primary); }
.live-results-pulse-status-rejected .live-results-pulse-bar-fill { background: var(--border); }
@media (max-width: 720px) {
  .live-results-pulse-stage {
    grid-template-columns: 1fr;
  }
  .live-results-pulse-donut-wrap {
    justify-content: center;
  }
}

html.dark .live-results-pulse-card,
html.dark .live-results-hive-bridge,
html.dark .live-results-guest-card {
  background: var(--surface);
  border-color: var(--border);
}
html.dark .live-results-pulse-title,
html.dark .home-results-title {
  color: var(--text-dark);
}
html.dark .live-results-pulse-donut-total {
  fill: var(--text-dark);
}
html.dark .live-results-pulse-donut-label {
  fill: var(--text-muted);
}

/* ── Mobile UX polish (job detail, drafts, live apps, image picker) ── */
.job-detail-apply-main { display: none; }
@media (max-width: 768px) {
  .job-detail-apply-main { display: block; }
  .job-detail-apply-desktop { display: none !important; }
  .user-menu-theme-desktop { display: none !important; }
  .mobile-workspace-card.draft-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .mobile-workspace-card .draft-card-body { width: 100%; min-width: 0; }
  .mobile-workspace-card .draft-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .mobile-workspace-card .draft-card-actions .btn,
  .mobile-workspace-card .draft-card-actions .draft-publish-form,
  .mobile-workspace-card .draft-card-actions .draft-repost-form,
  .mobile-workspace-card .draft-card-actions .draft-delete-form {
    width: 100%;
    margin: 0;
  }
  .mobile-workspace-card .draft-card-actions .draft-delete-form {
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
  }
  .live-application-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--surface, #fff);
  }
  .live-application-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
  }
  .live-application-intro {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-width: 0;
  }
  .live-application-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
  }
  .live-application-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
  }
  .live-application-dot { opacity: 0.55; }
  .live-application-cta {
    align-self: flex-start;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .settings-page .settings-tab-panel,
  .hive-profile-page .settings-tab-panel {
    min-height: 40vh;
  }
  .reminder-card {
    grid-template-columns: 42px 1fr;
    grid-template-areas:
      "icon body"
      "action action"
      "dismiss dismiss";
    gap: 0.65rem 0.75rem;
    align-items: start;
    padding: 0.9rem 1rem;
  }
  .reminder-card-icon {
    width: 42px;
    height: 42px;
    margin-top: 0.1rem;
  }
  .reminder-card-body h2 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
    line-height: 1.3;
  }
  .reminder-card-body p {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
  }
  .reminder-card-action {
    width: 100%;
    padding-top: 0.15rem;
  }
  .reminder-card-action .btn {
    width: 100%;
    justify-content: center;
  }
  .reminder-card-dismiss {
    padding-top: 0.55rem;
    margin-top: 0;
  }
  .mobile-bottom-promos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 0.5rem 1rem 1rem;
  }
  .mobile-bottom-promos:empty {
    display: none;
  }
  .mobile-bottom-promos .donate-slot,
  .mobile-bottom-promos .partner-slot {
    margin: 0;
  }
  body.mobile-promos-excluded .mobile-defer-to-bottom,
  body.mobile-promos-excluded .mobile-bottom-promos {
    display: none !important;
  }
  .mobile-bottom-promos .donate-slot,
  .mobile-bottom-promos .partner-slot {
    display: block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .mobile-bottom-promos .partner-slot-label {
    text-align: center;
  }
  .mobile-bottom-promos .partner-slot-inner,
  .mobile-bottom-promos .partner-slot-live,
  .mobile-bottom-promos .partner-slot-creative-link,
  .mobile-bottom-promos .partner-slot-placeholder {
    margin-left: auto;
    margin-right: auto;
  }
  .mobile-tip-ad-stack,
  .mobile-listings-tip {
    align-items: center;
  }
  .mobile-tip-ad-stack .partner-slot,
  .mobile-tip-ad-stack .donate-slot,
  .mobile-listings-tip .partner-slot,
  .mobile-listings-tip .donate-slot {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .inbox-side-rail .partner-slot-medium,
  .live-results-side-rail .partner-slot-medium {
    margin-left: auto;
    margin-right: auto;
  }
  .partner-slot {
    text-align: center;
  }
  .partner-slot-label {
    text-align: center;
  }
  .partner-slot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .partner-slot-live,
  .partner-slot-creative-link {
    margin-left: auto;
    margin-right: auto;
  }
  .mobile-listings-tip {
    margin-top: 1rem;
  }
  .profile-settings-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .settings-profile-intro {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .settings-profile-intro-text {
    text-align: center;
  }
  .profile-settings-head .avatar-upload-label {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .profile-settings-head .avatar-crop-note {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .drafts-container .draft-row-selectable {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .drafts-container .draft-row-selectable .draft-card-body-inline {
    flex: 1 1 calc(100% - 4.5rem);
    min-width: 0;
  }
  .drafts-container .draft-row-selectable .draft-card-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.15rem;
  }
  .drafts-container .draft-row-selectable .draft-card-actions .btn,
  .drafts-container .draft-row-selectable .draft-card-actions .draft-publish-form,
  .drafts-container .draft-row-selectable .draft-card-actions .draft-repost-form,
  .drafts-container .draft-row-selectable .draft-card-actions .draft-delete-form {
    width: 100%;
    margin: 0;
  }
  .drafts-container .draft-row-selectable .draft-card-actions .draft-delete-form {
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
  }
  .job-form-actions {
    justify-content: center;
    align-items: stretch;
  }
  .job-form-actions .btn,
  .job-form-actions .draft-publish-form,
  .job-form-actions form {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    justify-content: center;
  }
  .back-link,
  .page-local-back,
  .mobile-workspace-back,
  .job-detail-back {
    margin-top: 0.65rem;
  }
  .container > .back-link:first-child,
  .container > .page-local-back:first-child,
  .container > button.back-link:first-child,
  .container > button.page-local-back:first-child {
    margin-top: 0.75rem;
  }
}
@media (min-width: 769px) {
  .live-application-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem 0.85rem;
    padding: 0.55rem 0.75rem;
  }
  .live-application-meta { grid-column: 2; }
  .live-application-cta { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: auto; }
  .mobile-bottom-promos {
    display: none;
  }
}
.image-picker-sheet[hidden] { display: none !important; }
body.image-picker-open { overflow: hidden; }
.image-picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.image-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.image-picker-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--surface, #fff);
  border-radius: 16px 16px 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.image-picker-title {
  margin: 0 0 0.75rem;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
}
.image-picker-option,
.image-picker-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft, #f8f9fb);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.image-picker-cancel {
  background: transparent;
  color: var(--text-muted);
  border: none;
  margin-bottom: 0;
}
