:root {
  --primary: #1a1a2e;
  --primary-soft: #1e3a5f;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --success: #10b981;
  --page-bg: #f8f9fa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.1);
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  --nav-height: 64px;
  --footer-height: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 700px at 18% 8%, rgba(59, 130, 246, 0.1), transparent 55%),
    radial-gradient(760px 560px at 86% 18%, rgba(16, 185, 129, 0.08), transparent 52%),
    var(--page-bg);
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.page {
  min-height: 100vh;
}

/* Top Nav */
.nav {
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.navInner {
  width: min(1320px, 100%);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: inherit;
  text-decoration: none;
}

a.logo:hover {
  color: var(--primary);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.navLinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.navLinks a:hover {
  color: var(--primary);
}

.navLinks a.active {
  color: var(--primary);
  font-weight: 800;
}

.navRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobileNavMenuBtn,
.mobileNavBackdrop,
.navMenuCloseBtn {
  display: none;
}

.navMenuPanel {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.authBar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.authAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.authAvatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.86);
  color: #fff;
  font-size: 16px;
}

.authName {
  font-size: 13px;
  color: var(--primary);
}

body.settingsBody,
body.blogBody {
  overflow: auto;
}

.navMembershipBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.navMembershipBtn:hover {
  transform: translateY(-1px);
}

.navMembershipBtn--super {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.88));
}

.navMembershipBtn--paid {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(209, 250, 229, 0.88));
}

.navMembershipBtn--credits {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(224, 242, 254, 0.9));
}

.navMembershipBtn--free {
  border-color: rgba(148, 163, 184, 0.2);
}

.navMembershipInner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.1;
}

.navMembershipLabel {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.navMembershipCredits {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.authMenu {
  position: relative;
}

.authMenuTrigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.authMenuTrigger:focus-visible,
.navMembershipBtn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.membershipBadge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.membershipBadge.super {
  color: #422006;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-color: rgba(251, 191, 36, 0.75);
}

.membershipBadge.paid {
  color: #064e3b;
  background: linear-gradient(135deg, #d1fae5, #34d399);
  border-color: rgba(16, 185, 129, 0.38);
}

.membershipBadge.credits {
  color: #082f49;
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
  border-color: rgba(56, 189, 248, 0.65);
}

.membershipBadge.free {
  color: #475569;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.24);
}

.btnAuth {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btnAuth:hover {
  background: #f8fafc;
  border-color: rgba(59, 130, 246, 0.38);
}

.navLangToggle {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.authMenuDropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index: 40;
}

.authMenuSummary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 6px;
}

.authMenuSummaryText {
  min-width: 0;
  flex: 1;
}

.authMenuSummaryName {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.authMenuSummarySub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
}

.authMenuItem {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.authMenuItem:hover {
  background: rgba(59, 130, 246, 0.08);
}

.authMenuItem--static {
  color: var(--muted);
  cursor: default;
}

.authMenuItem--static:hover {
  background: transparent;
}

.authMenuItemLabel {
  font-weight: 600;
}

.authMenuItemValue {
  color: var(--primary-soft);
  font-size: 11px;
}

@media (max-width: 900px) {
  .nav {
    height: auto;
    min-height: var(--nav-height);
  }

  .navInner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 12px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .navMenuPanel {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navLinks {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .navLinks a {
    font-size: 13px;
  }

  .navRight {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .applyPage,
  .settingsPage,
  .employersPage {
    padding-top: 122px;
  }
}

.resultTeaser {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
  font-size: 12px;
  color: var(--primary-soft);
  line-height: 1.45;
}

.resultTeaser a {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.upgradeActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.upgradeBtn {
  height: 34px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  background: var(--accent-soft);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 10px;
}

.redeemRow {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.redeemRow input {
  min-width: 0;
  height: 34px;
  font-size: 12px;
}

.upgradeBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.membershipModalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.membershipModalBackdrop.open {
  display: flex;
}

.emailClientModalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.emailClientModalBackdrop.open {
  display: flex;
}

.emailClientModal {
  width: min(380px, 100%);
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  color: var(--primary);
}

.emailClientModalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.emailClientModalTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.emailClientClose {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.emailClientOptions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px 18px;
}

.emailClientOption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.emailClientOption:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(239, 246, 255, 0.95);
}

.emailClientOption input {
  flex-shrink: 0;
}

.membershipModal {
  width: min(800px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  color: var(--primary);
}

.membershipModalTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.membershipModalTopText {
  min-width: 0;
}

.membershipModalTitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--primary);
}

.membershipStatusText {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}

.membershipClose {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.membershipModalBody--compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  overflow: hidden;
}

.membershipHeroRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.membershipHeroCard {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.membershipHeroCard--subscription {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.1);
}

.membershipHeroCard--super {
  border-color: rgba(217, 119, 6, 0.42);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96), rgba(255, 251, 235, 0.94));
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
}

.membershipHeroHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.membershipHeroBadge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.membershipHeroBadge--blue {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}

.membershipHeroBadge--gold {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.membershipHeroTitleRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.membershipHeroTitleRow strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.membershipHeroPrice {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
  white-space: nowrap;
}

.membershipHeroPrice--super {
  color: #b45309;
}

.membershipHeroMeta {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}

.membershipPackSection {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.membershipPackTitle {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.membershipPackRow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.membershipMiniCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 5px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  text-align: center;
}

.membershipMiniCard--best {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.9));
}

.membershipMiniPrice {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary);
}

.membershipMiniCredits {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.membershipMiniUnit {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.upgradeBtn--sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.upgradeBtn--xs {
  width: 100%;
  margin-top: 3px;
  padding: 4px 6px;
  font-size: 11px;
  border-radius: 7px;
}

.upgradeBtn--super {
  border-color: rgba(217, 119, 6, 0.5);
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-weight: 800;
}

.membershipRedeemBox--compact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.88);
}

.membershipRedeemBox--compact .membershipRedeemTitle {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.redeemRow--compact {
  gap: 6px;
}

.redeemRow--compact input {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.membershipCancelBox {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(190, 18, 60, 0.2);
  background: rgba(255, 241, 242, 0.68);
}

.membershipCancelBox.show {
  display: flex;
}

.membershipCancelBox p {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #7f1d1d;
  font-size: 11px;
  line-height: 1.35;
}

.cancelSubscriptionBtn {
  flex-shrink: 0;
  border-color: rgba(190, 18, 60, 0.45);
  background: rgba(254, 202, 202, 0.72);
  color: #7f1d1d;
}

/* Legacy plan cards (employers.html etc.) */
.membershipModalHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}

.membershipModalBody {
  padding: 18px 22px 22px;
}

.membershipPlans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.membershipPlanCard {
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.membershipPlanCard strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 15px;
}

.membershipPlanCard p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.membershipPlanCard.featured {
  border-color: rgba(59, 130, 246, 0.32);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.82));
}

.membershipRedeemBox {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.membershipRedeemTitle {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

@media (max-width: 640px) {
  .membershipModalBackdrop {
    padding: 8px;
  }

  .membershipHeroRow {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .membershipHeroPrice {
    font-size: 15px;
  }

  .membershipPackRow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .membershipMiniPrice {
    font-size: 13px;
  }

  .membershipMiniCredits,
  .membershipMiniUnit {
    font-size: 9px;
  }

  .upgradeBtn--xs {
    font-size: 10px;
    padding: 3px 4px;
  }

  .membershipRedeemBox--compact {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

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

.noticeToast {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(460px, calc(100vw - 28px));
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  animation: noticeIn 0.18s ease-out;
}

.noticeToast.success {
  color: #064e3b;
  background: linear-gradient(135deg, #dbfff0, #8ff7c9);
  border: 1px solid rgba(12, 109, 82, 0.4);
}

.noticeToast.error {
  color: #7f1d1d;
  background: linear-gradient(135deg, #fff1f2, #fecdd3);
  border: 1px solid rgba(190, 18, 60, 0.35);
}

.noticeToast.info {
  color: var(--primary-soft);
  background: linear-gradient(135deg, #ecfeff, #bae6fd);
  border: 1px solid rgba(14, 116, 144, 0.28);
}

@keyframes noticeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.homeIntroModalBackdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* ---- Frosted-glass dialog ---- */
.homeIntroDialog {
  position: relative;
  width: min(600px, calc(100vw - 20px));
  max-height: min(82vh, 640px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.homeIntroDialogHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.homeIntroDialogLogo {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.homeIntroCloseBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: #475569;
  cursor: pointer;
  transition: background 0.14s ease;
  flex-shrink: 0;
}

.homeIntroCloseBtn:hover {
  background: rgba(15, 23, 42, 0.06);
}

/* ---- Carousel ---- */
.homeIntroCarousel {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior-x: contain;
}

.homeIntroCarousel::-webkit-scrollbar {
  display: none;
}

.homeIntroCard {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 18px 22px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.homeIntroCardEmoji {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.homeIntroCardTitle {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.3;
}

.homeIntroCardDesc {
  font-size: 13px;
  color: #475569;
  margin: 0 0 12px;
  line-height: 1.5;
}

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

.homeIntroCardList li {
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  padding: 9px 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 10px;
}

.homeIntroCardSteps {
  margin: 0 0 10px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.homeIntroCardSteps li {
  font-size: 13px;
  line-height: 1.55;
  color: #1e293b;
}

.homeIntroCardTip {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.18);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0;
  line-height: 1.45;
}

/* ---- Footer: dots + CTA ---- */
.homeIntroFooter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 16px;
  flex-shrink: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.homeIntroDots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.homeIntroDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  flex-shrink: 0;
}

.homeIntroDot.is-active {
  background: #3b82f6;
  transform: scale(1.25);
}

.homeIntroModalCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}

.homeIntroModalCta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.32);
}

/* Main Big Card */
.main {
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.mapCard {
  --right-panel-inset: 18px;
  --right-panel-width: min(380px, calc(100vw - 36px));
  --map-posts-panel-gap: 10px;
  --map-posts-collapsed-stack: 58px;
  --map-posts-expanded-stack: min(46vh, 380px);
  width: 100vw;
  height: 100vh;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  position: relative;
  background: var(--surface-solid);
}

#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mapPostFabHost {
  pointer-events: auto;
  z-index: 26;
  transform: translateY(-50%);
}

.mapPostFab {
  height: 32px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
  white-space: nowrap;
}

.mapPostFab:hover {
  filter: brightness(1.06);
}

.mobileSearchDrawer {
  display: contents;
}

.mobileSearchDrawerHandle {
  display: none;
}

/* Mobile-only tap targets — always hidden on desktop */
.searchCollapsedPill,
.mobileSearchCollapseBtn {
  display: none;
}

.mapPostsPanel {
  position: absolute;
  right: var(--right-panel-inset);
  bottom: calc(var(--footer-height) + var(--right-panel-inset));
  z-index: 25;
  width: var(--right-panel-width);
  max-height: min(62vh, 520px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 12px 12px;
}

.mapPostsPanel[data-collapsed="false"][data-mode="list"] {
  height: var(--map-posts-expanded-stack);
  max-height: var(--map-posts-expanded-stack);
}

.mapPostsPanel[data-collapsed="true"] {
  max-height: none;
}

.mapPostsPanel[data-collapsed="true"][data-mode="list"] .mapPostsPanelListSection {
  display: none !important;
}

.mapPostsPanel[data-mode="compose"] {
  max-height: min(62vh, 520px);
}

.mapPostsPanelListSection[hidden],
.mapPostsPanelCompose[hidden] {
  display: none !important;
}

.mapPostsPanel[data-mode="list"] .mapPostsPanelCompose {
  display: none !important;
}

.mapPostsPanel[data-mode="compose"] .mapPostsPanelListSection {
  display: none !important;
}

.mapPostsPanelResize {
  display: none;
}

.mapPostsPanelTitleBtn:disabled {
  cursor: default;
  opacity: 0.85;
}

.mapPostsPanelHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.mapPostsPanelBrand {
  display: none;
}

.mobileSearchDots {
  display: none;
}

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

.mapPostsPanelTitleBtn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mapPostsPanelTitleWrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.mapPostsPanelTabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.mapPostsPanelTab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: 100%;
  padding: 0 8px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.mapPostsPanelTab.is-active {
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.mapPostsPanel[data-mode="compose"] .mapPostsPanelTab {
  pointer-events: none;
  opacity: 0.72;
}

.mapPostsPanelTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.mapPostsPanelSubtitle {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}

.mapPostsPanel[data-mode="compose"] .mapPostsPanelSubtitle {
  display: none;
}

.mapPostsPanelHeaderActions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mapPostsPanelFilterBtn,
.mapPostsPanelRefreshBtn,
.mapPostsPanelToggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.mapPostsPanelFilterBtn {
  position: relative;
  width: auto;
  min-width: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.mapPostsPanelFilterLabel {
  line-height: 1.2;
}

.mapPostsPanelFilterIcon {
  display: none;
}

.mapPostsPanelFilterBtn.is-open {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
}

.mapPostsPanelFilterDot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.mapPostsPanelFilterBtn:hover,
.mapPostsPanelRefreshBtn:hover,
.mapPostsPanelToggle:hover {
  background: rgba(248, 250, 252, 0.98);
  color: var(--text);
}

.mapPostsPanel[data-mode="compose"] .mapPostsPanelHeaderActions {
  display: none !important;
}

.mapPostsPanelScroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.mapPostsPanelFilters {
  flex-shrink: 0;
  margin-bottom: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.72);
}

.mapPostsPanelFilters[hidden] {
  display: none !important;
}

.mapPostsPanelFiltersSection + .mapPostsPanelFiltersSection {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mapPostsPanelFiltersLabel {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.mapPostsPanelFilterTags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  line-height: 1.1;
}

.mapPostsPanelFilterTagOption {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.mapPostsPanelFilterTagOption:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
}

.mapPostsPanelFilterTagOption input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.mapPostsPanelFilterSort {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mapPostsPanelSortOption {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.mapPostsPanelSortOption:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
}

.mapPostsPanelSortOption input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.mapPostsPanelListSection {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 8px;
}

.mapPostsPanelCompose {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  margin-top: 8px;
}

.mapPostsPanelComposeHint {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  flex-shrink: 0;
}

.mapPostsGlobalComposeBox {
  margin-bottom: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.78);
}

.mapPostsGlobalToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.mapPostsGlobalToggle input {
  margin: 0;
  accent-color: #2563eb;
}

.mapPostsGlobalToggle input:disabled {
  cursor: not-allowed;
}

.mapPostsGlobalHint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.mapPostsGlobalHint.is-error {
  color: #b91c1c;
}

.mapPostsPanelComposeFooter {
  flex-shrink: 0;
  margin-top: 8px;
}

.mapPostsPanelComposeActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.mapPostPanelCancelBtn {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mapPostPanelCancelBtn:hover {
  background: rgba(248, 250, 252, 0.98);
}

.mapPostCharCount {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 4px;
}

.mapPostPanelSubmitBtn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mapPostPanelSubmitBtn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.mapPostPanelSubmitBtn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mapPostsPanelList {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mapPostsEmpty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.mapPostCard {
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.mapPostCardTags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 3px;
  line-height: 1.1;
}

.mapPostTag {
  display: inline-block;
  max-width: 100%;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mapPostTagMuted {
  background: rgba(241, 245, 249, 0.95);
  color: var(--muted);
}

.mapPostCardAuthor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 3px;
  line-height: 1.25;
}

.mapPostCardAuthorName {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}

.mapPostCardAuthorRole {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.mapPostCardAuthorRole--owner {
  color: #7c3aed;
}

.mapPostCardAuthorRole--super {
  color: #b45309;
}

.mapPostCardAuthorRole--paid {
  color: #1d4ed8;
}

.mapPostCardContent {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  cursor: pointer;
}

.mapPostCardContent.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.mapPostCardFooter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.mapPostCardTime {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.mapPostCardVotes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.mapPostVoteChip {
  margin: 0;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.mapPostVoteChip:hover {
  border-color: var(--border);
  background: rgba(248, 250, 252, 0.95);
  color: var(--text);
}

.mapPostVoteChip.is-active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.mapPostVoteChipDislike.is-active {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(254, 226, 226, 0.9);
  color: #991b1b;
}

.mapPostDeleteBtn {
  flex-shrink: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: rgba(254, 226, 226, 0.9);
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.mapPostTagPicker {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.mapPostTagOption {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
}

.mapPostTagOption:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(219, 234, 254, 0.95);
}

.mapPostContentInput {
  width: 100%;
  min-height: 88px;
  margin-bottom: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.mapPostCharCount {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .mapCard {
    --right-panel-inset: 12px;
    --right-panel-width: auto;
    --map-posts-collapsed-stack: 54px;
    --map-posts-expanded-stack: min(42vh, 320px);
  }

  .mapPostsPanel {
    left: var(--right-panel-inset);
    right: var(--right-panel-inset);
    width: auto;
    bottom: calc(var(--footer-height) + var(--right-panel-inset));
  }

}

/* Floating Cards */
.glassCard {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  color: var(--primary);
}

.glassCard .panelTitle,
.glassCard .hint,
.glassCard .fieldLabel,
.glassCard .resultMeta,
.glassCard .resultToolbarSecondary {
  color: var(--primary-soft);
}

.glassCard .btnAuth {
  color: var(--primary);
  background: #ffffff;
  border-color: var(--border);
}

.filterPanel {
  position: absolute;
  top: calc(var(--nav-height) + 16px);
  left: 16px;
  width: min(350px, calc(100% - 32px));
  max-height: calc(100% - var(--nav-height) - var(--footer-height) - 32px);
  padding: 12px;
  z-index: 5;
  overflow: visible;
}

.resultPanel {
  position: absolute;
  top: calc(var(--nav-height) + 12px);
  right: var(--right-panel-inset);
  width: var(--right-panel-width);
  bottom: calc(
    var(--footer-height) + var(--right-panel-inset) + var(--map-posts-collapsed-stack) +
      var(--map-posts-panel-gap)
  );
  height: auto;
  max-height: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#mapPostsPanel[data-collapsed="false"] ~ .mobileSearchDrawer #resultPanel,
#mapPostsPanel[data-mode="compose"] ~ .mobileSearchDrawer #resultPanel {
  bottom: calc(
    var(--footer-height) + var(--right-panel-inset) + var(--map-posts-expanded-stack) +
      var(--map-posts-panel-gap)
  );
}

.resultPanel.is-hidden {
  display: none;
}

.panelTitle {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.field {
  margin-bottom: 10px;
}

.fieldLabel {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

input[type="text"] {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.82);
  color: var(--primary);
  padding: 0 10px;
  outline: none;
  font-size: 14px;
}

input[type="text"]::placeholder {
  color: #9ca3af;
}

input[type="text"]:focus {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.queryInputWrap {
  position: relative;
}

.queryInputWrap input[type="text"] {
  padding-right: 36px;
}

.queryLocateBtn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.queryLocateBtn:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.queryLocateBtn:active {
  background: rgba(59, 130, 246, 0.16);
}

.queryInputWrap input[type="text"]:focus + .queryLocateBtn {
  color: #3b82f6;
}

.radiusRow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.radiusRow button {
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.82);
  color: var(--primary-soft);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 600;
}

.radiusRow button[aria-pressed="true"] {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.customRadiusInput {
  width: 92px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.82);
  color: var(--primary);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.customRadiusInput[hidden] {
  display: none;
}

.industryGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* Hide native checkbox/radio — the label itself becomes the tap target */
.industryGrid input[type="checkbox"],
.industryGrid input[type="radio"],
.visaIndustryGrid input[type="checkbox"],
.visaIndustryGrid input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.industryGrid label,
.checkboxRow label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-soft);
  background: rgba(248, 250, 252, 0.82);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 6px 8px;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.industryGrid label:has(input:checked) {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.55);
  color: #1d4ed8;
  font-weight: 700;
}

.industryGrid input,
.checkboxRow input {
  accent-color: var(--accent);
}

.checkboxRow {
  margin-top: 8px;
}

.btnSearch {
  margin-top: 8px;
  width: 100%;
  height: 38px;
  border: 1px solid #1d4ed8;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.24);
}

.btnSearch:hover {
  filter: brightness(1.05);
}

.visaControl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.visaControlActions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.btnVisaToggle {
  flex: 1 1 auto;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(255, 255, 255, 0.44);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btnVisaToggle[aria-expanded="true"] {
  border-color: rgba(59, 130, 246, 0.72);
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.visaSettingsBtn {
  display: none;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  background: rgba(255, 255, 255, 0.44);
  color: var(--primary);
  font-size: 17px;
  cursor: pointer;
}

.visaSettingsBtn.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.visaLayerPanel {
  position: absolute;
  left: calc(100% + 12px);
  bottom: 0;
  z-index: 18;
  display: none;
  width: min(300px, calc(100vw - 390px));
  min-width: 260px;
  max-height: min(360px, calc(100vh - var(--nav-height) - var(--footer-height) - 40px));
  overflow-y: auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.visaLayerPanel.open {
  display: block;
}

.visaPopupHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.visaPopupClose {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.visaPopupClose:hover {
  background: #fee2e2;
  border-color: rgba(185, 28, 28, 0.45);
  color: #b91c1c;
  transform: scale(1.04);
}

.visaPopupClose:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.visaTypeToggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.visaTypeToggle button {
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.82);
  color: var(--primary-soft);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.visaTypeToggle button[aria-pressed="true"] {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.visaIndustryGrid label.visaOnly417[hidden] {
  display: none !important;
}

.visaLayerPanel .visaIndustryGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.visaLayerPanel .visaIndustryGrid label {
  gap: 0;
  padding: 6px 7px;
  font-size: 11px;
  line-height: 1.25;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.visaLayerPanel .visaIndustryGrid label:has(input:checked) {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.55);
  color: #1d4ed8;
  font-weight: 700;
}

.visa88DaysNote {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.55);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 4px;
}

.visa88DaysNote strong {
  color: rgba(22, 163, 74, 0.9);
  font-weight: 700;
}

.visaLayerSwitch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.visaLayerSwitch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.visaLegend {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.visaLegendSwatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
}

.visaLegendSwatchEligible {
  background: #00c853;
}

.visaLegendSwatchIneligible {
  background: #ff1744;
}

.visaStatusBar {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.92));
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.visaStatusBar.visible {
  display: block;
}

.visaStatusBar.long {
  font-size: 12px;
  white-space: normal;
}

.visaStatusEligible {
  color: #15803d;
}

.visaStatusIneligible {
  color: #b91c1c;
}

.resultHeader {
  flex-shrink: 0;
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
}

.resultHeaderTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.resultHeaderText {
  min-width: 0;
  flex: 1 1 auto;
}

.resultPanelClose {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.resultPanelClose:hover {
  color: var(--primary);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(239, 246, 255, 0.95);
}

.resultTitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.resultMeta {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.resultToolbar {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btnResultPrimary {
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #1d4ed8;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btnResultPrimary:hover {
  filter: brightness(1.05);
}

.btnResultPrimary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.resultToolbarSecondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.resultFilterToggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.resultFilterToggle input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #3b82f6;
}

.resultActionBtn {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--primary-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.resultActionBtn:hover {
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
}

.resultBatchSelect {
  height: 24px;
  min-width: 52px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.resultList {
  flex: 1;
  min-height: 0;
  padding: 8px;
  overflow: auto;
}

.resultAddEmployersBar {
  flex-shrink: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.resultAddEmployersBtn {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.resultAddEmployersBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.resultAddEmployersBtn:not(:disabled):hover {
  filter: brightness(1.05);
}

.resultItem {
  position: relative;
  padding: 9px 10px 9px 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
  cursor: pointer;
}

.resultItemCheck {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 1;
}

.resultItemCheck input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent, #3b82f6);
  cursor: pointer;
}

.resultItemBody {
  min-width: 0;
}

.resultItem:hover {
  border-color: rgba(59, 130, 246, 0.42);
  background: #ffffff;
}

.resultItemBody strong {
  display: block;
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 3px;
}

.resultContactRow {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.resultContactRow a {
  color: #3b82f6;
  font-weight: 700;
  text-decoration: none;
}

.resultContactRow a:hover {
  text-decoration: underline;
}

.resultApplyBtn {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  background: rgba(239, 246, 255, 0.98);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.resultApplyBtn:hover {
  background: #dbeafe;
  border-color: rgba(37, 99, 235, 0.5);
}

.resultItemBody > div {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

/* Footer */
.footer {
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
}

@media (max-width: 1080px) {
  .mapCard {
    height: 100vh;
    min-height: 0;
  }

  .resultPanel {
    top: calc(var(--nav-height) + 10px);
    left: var(--right-panel-inset);
    right: var(--right-panel-inset);
    width: auto;
    bottom: calc(
      var(--footer-height) + var(--right-panel-inset) + var(--map-posts-collapsed-stack) +
        var(--map-posts-panel-gap)
    );
    height: auto;
    max-height: none;
  }

  #mapPostsPanel[data-collapsed="false"] ~ .mobileSearchDrawer #resultPanel,
  #mapPostsPanel[data-mode="compose"] ~ .mobileSearchDrawer #resultPanel {
    bottom: calc(
      var(--footer-height) + var(--right-panel-inset) + var(--map-posts-expanded-stack) +
        var(--map-posts-panel-gap)
    );
  }

  .visaLayerPanel {
    left: 0;
    bottom: auto;
    top: calc(100% + 8px);
    width: min(300px, calc(100vw - 32px));
    min-width: 0;
  }

}

@media (max-width: 768px) {
  .footer {
    display: none;
  }

  .nav {
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    z-index: 50;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
  }

  .page,
  .navInner {
    transform: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navInner {
    position: relative;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0 16px;
  }

  .logo {
    width: auto;
    text-align: left;
    font-size: 20px;
    position: relative;
    z-index: 36;
  }

  .mobileNavMenuBtn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    position: relative;
    z-index: 36;
  }

  .mobileNavMenuBtn span {
    display: block;
    width: 20px;
    height: 2.5px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.84);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobileNavMenuBtn span:nth-child(2) {
    width: 15px;
  }

  .mobileNavMenuBtn span:nth-child(3) {
    width: 20px;
  }

  .mobileNavBackdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 55;
  }

  .navMenuPanel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(380px, 70vw);
    padding: calc(env(safe-area-inset-top, 0px) + 72px) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.32);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.26s ease;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
    z-index: 60;
  }

  .mobileNavToggle:checked ~ .mobileNavMenuBtn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobileNavToggle:checked ~ .mobileNavMenuBtn span:nth-child(2) {
    opacity: 0;
  }

  .mobileNavToggle:checked ~ .mobileNavMenuBtn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobileNavToggle:checked ~ .mobileNavBackdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobileNavToggle:checked ~ .navMenuPanel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navLinks {
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .navLinks a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
  }

  .navMenuCloseBtn {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 14px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(15, 23, 42, 0.55);
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    z-index: 2;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .navMenuCloseBtn:active,
  .navMenuCloseBtn:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: var(--primary);
  }

  .navMenuPanel::before {
    content: "";
    display: block;
    width: 100%;
    max-width: 380px;
    height: 1px;
    margin: 4px auto 6px;
    background: rgba(15, 23, 42, 0.08);
    order: 2;
  }

  .navMenuPanel .navLinks {
    order: 1;
  }

  .navMenuPanel .navRight {
    order: 3;
  }

  .navMenuPanel {
    align-items: stretch;
  }

  .navMenuPanel > * {
    width: 100%;
  }

  .navMenuPanel .authMenuTrigger {
    display: none !important;
  }

  .navMenuPanel .authMenuDropdown {
    display: flex !important;
    flex-direction: column;
    position: static;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 10px;
  }

  .navMenuPanel .authMenu {
    width: 100%;
  }

  .navMenuPanel .authMenuSummary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .navMenuPanel .authMenuItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .navMenuPanel .authMenuItem--static {
    display: none !important;
  }

  .navMenuPanel .authMenuItem--button {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.32);
    color: #b91c1c;
    justify-content: center;
  }

  .navMenuPanel .authMenuItemLabel,
  .navMenuPanel .authMenuItemValue {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navMenuPanel .authMenuItemValue {
    font-size: 14px;
    color: var(--primary-soft);
    margin-left: 8px;
    flex: 0 0 auto;
  }

  .navMenuPanel .authMenuSummaryName,
  .navMenuPanel .authMenuSummarySub {
    min-width: 0;
  }

  .navRight {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .navRight > * {
    width: 100%;
  }

  .navLangToggle,
  .navMembershipBtn {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.42);
    font-size: 15px;
    font-weight: 600;
  }

  .navLangToggle {
    justify-content: center;
  }

  .navMembershipBtn {
    justify-content: flex-start;
    min-height: 56px;
    height: auto;
    padding: 10px 14px;
  }

  .navMembershipBtn .navMembershipInner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: 2px;
  }

  .navMembershipBtn .navMembershipLabel {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .navMembershipBtn .navMembershipCredits {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }

  .authBar {
    width: 100%;
    justify-content: stretch;
  }

  .authMenu {
    width: 100%;
  }

  .authMenuTrigger {
    width: 100%;
    height: auto;
    padding: 10px 12px;
    border-radius: 12px;
    justify-content: flex-start;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .authMenuDropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .main,
  .mapCard {
    height: 100vh;
  }

  .mapCard {
    --right-panel-inset: 16px;
    --right-panel-width: calc(100vw - 24px);
    --map-posts-collapsed-stack: 52px;
    --map-posts-expanded-stack: min(35vh, 320px);
    --mobile-panel-gap: 12px;
    --mobile-comments-width: min(340px, calc(100vw - 32px));
    --mobile-search-width: min(360px, calc(100vw - 32px));
    --mobile-nav-offset: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  }

  .mapPostsPanel {
    top: calc(var(--mobile-nav-offset) + 10px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: var(--mobile-comments-width);
    transform: none;
    bottom: auto;
    max-height: min(38vh, 320px);
    padding: 8px 12px 10px;
    border-radius: 18px;
    z-index: 25;
    transition: transform 0.28s ease, opacity 0.22s ease;
  }

  .mapPostsPanelBrand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px 0 2px;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mapPostsPanelBrandIcon {
    font-size: 14px;
    line-height: 1;
  }

  .mapPostsPanelBrandText {
    line-height: 1.2;
  }

  .mapPostsPanel[data-mode="compose"] {
    max-height: var(--map-posts-expanded-stack);
  }

  #mapPostsPanel[data-collapsed="true"] {
    padding: 6px 12px;
  }

  .mapPostsPanelHeader {
    align-items: center;
    gap: 8px;
  }

  .mapPostsPanelHeaderMain {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .mapPostsPanelTitleBtn,
  .mapPostsPanelTitle,
  .mapPostsPanelSubtitle {
    display: none !important;
  }

  .mapPostsPanelTabs {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px;
    gap: 2px;
  }

  .mapPostsPanelTab {
    min-height: 26px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.45);
    background: rgba(15, 23, 42, 0.07);
    border-radius: 999px;
  }

  .mapPostsPanelTab.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
  }

  .mapPostsPanelHeaderActions {
    gap: 4px;
  }

  .mapPostsPanelFilterBtn,
  .mapPostsPanelRefreshBtn,
  .mapPostsPanelToggle {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .mapPostsPanelFilterLabel {
    display: none;
  }

  .mapPostsPanelFilterIcon {
    display: block;
    flex-shrink: 0;
  }

  .mapPostsPanelFilterBtn .mapPostsPanelFilterDot {
    position: absolute;
    top: 4px;
    right: 4px;
  }

  .mapPostsPanelFilterBtn {
    position: relative;
  }

  .mapPostsPanelResize {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 0 2px;
    margin-top: 2px;
    cursor: ns-resize;
    touch-action: none;
    user-select: none;
    flex-shrink: 0;
  }

  .mapPostsPanelResizeGrip {
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.7);
  }

  #mapPostsPanel[data-collapsed="true"] .mapPostsPanelResize,
  #mapPostsPanel[data-mode="compose"] .mapPostsPanelResize {
    display: none;
  }

  #mapPostsPanel[data-collapsed="true"][style*="height"],
  #mapPostsPanel[data-mode="compose"][style*="height"] {
    height: auto !important;
    max-height: min(38vh, 320px) !important;
  }

  .mobileSearchDrawer {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: var(--mobile-search-width);
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80px;
    overflow: hidden;
    /* clip-path also clips box-shadows from children, removing the stray
       shadow rectangle visible in the collapsed state */
    clip-path: inset(0 -40px -40px -40px);
    z-index: 24;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.22s ease;
  }

  .mobileSearchDrawer.is-expanded {
    clip-path: none;
  }

  .mobileSearchDrawer > * {
    pointer-events: auto;
  }

  .mobileSearchCarousel {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    pointer-events: auto;
  }

  .mobileSearchCarousel::-webkit-scrollbar {
    display: none;
  }

  .mobileSearchCarousel > .glassCard {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    max-height: 100%;
    align-self: stretch;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
  }

  .mobileSearchDots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 0 1px;
    pointer-events: auto;
  }

  .mobileSearchDrawer.is-expanded .mobileSearchDots {
    display: flex;
  }

  .mobileSearchDot {
    width: 26px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 11px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(15, 23, 42, 0.55);
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .mobileSearchDot.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.05);
  }

  .mobileSearchDot[hidden] {
    display: none !important;
  }

  .mobileSearchCollapseBtn {
    display: none;
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    width: 32px;
    height: 40px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: rgba(15, 23, 42, 0.78);
    box-shadow: none;
    cursor: pointer;
  }

  .mobileSearchDrawerGrab {
    display: none;
  }

  .mobileSearchDrawerChevron {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    color: inherit;
    transform: rotate(180deg);
    transition: transform 0.18s ease;
  }

  .filterPanel {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 7px 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 7px 5px;
    overflow: hidden;
    border-radius: 16px;
  }

  .filterPanel > .panelTitle {
    display: none;
  }

  .filterPanel > .field {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .filterPanel > .field.field--query {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .filterPanel .field.field--query .fieldLabel,
  .filterPanel > .field.field--query .fieldLabel {
    display: none !important;
  }

  .filterPanel > .field.field--query .queryInputWrap input[type="text"] {
    height: 34px;
    font-size: 16px;
    padding-right: 30px;
  }

  .filterPanel > .field.field--query .queryInputWrap input::placeholder {
    font-size: 13px;
  }

  .filterPanel > .visaControl {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    margin: 0;
    width: auto;
    gap: 0;
  }

  .filterPanel > .visaControl .visaControlActions {
    gap: 0;
  }

  .filterPanel > .visaControl .btnVisaToggle {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    font-size: 0;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
  }

  .filterPanel > .visaControl .btnVisaToggle::before {
    content: "🗺";
    font-size: 18px;
    margin: 0;
  }

  .filterPanel > .btnSearch {
    grid-column: 2;
    grid-row: 1;
    width: 52px;
    height: 34px;
    margin: 0;
    align-self: center;
    padding: 0;
  }

  .filterPanel > .hint {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  /* Collapsed state: pill + visa icon; hide fields and search button */
  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .panelTitle,
  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .field,
  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .hint,
  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .mobileSearchCollapseBtn,
  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .btnSearch {
    display: none !important;
  }

  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .searchCollapsedPill {
    display: flex;
  }

  /* Visa control stays visible in collapsed state so the map layer is one tap away */
  .mobileSearchDrawer:not(.is-expanded) .filterPanel > .visaControl {
    display: block;
    grid-column: 2; /* Move next to pill in the collapsed single-row layout */
    grid-row: 1;
  }

  /* Expanded state: show fields, hide pill */
  .mobileSearchDrawer.is-expanded .filterPanel > .searchCollapsedPill {
    display: none !important;
  }

  .mobileSearchDrawer:not(.is-expanded):not(.has-results) .filterPanel {
    max-height: 56px;
    padding: 6px 9px;
  }

  /* Collapsed pill — main tap target in the search card when folded */
  .searchCollapsedPill {
    display: none; /* hidden on desktop; shown in mobile collapsed state */
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    height: auto;
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
  }

  .searchCollapsedPill:active {
    background: rgba(255, 255, 255, 0.88);
  }

  .searchCollapsedPillIcon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
  }

  .searchCollapsedPillTexts {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    overflow: hidden;
  }

  .searchCollapsedPillLabel {
    font-size: 12px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  .searchCollapsedPillHint {
    font-size: 10px;
    font-weight: 400;
    color: rgba(15, 23, 42, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  .mobileSearchDrawer.is-expanded {
    max-height: min(46vh, calc(100vh - var(--mobile-nav-offset, var(--nav-height)) - 24px));
  }

  .mobileSearchDrawer.is-expanded .mobileSearchCollapseBtn {
    display: inline-flex;
  }

  .mobileSearchDrawer.is-expanded .filterPanel {
    max-height: min(46vh, calc(100vh - var(--mobile-nav-offset, var(--nav-height)) - 24px));
  }

  /* Compact expanded-filter secondary fields */
  .mobileSearchDrawer.is-expanded .filterPanel .fieldLabel {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .mobileSearchDrawer.is-expanded .filterPanel .field select,
  .mobileSearchDrawer.is-expanded .filterPanel .field input:not([type="text"]) {
    font-size: 13px;
  }

  /* 3-column chip grid on mobile (no checkboxes = more compact) */
  .mobileSearchDrawer.is-expanded .filterPanel .industryGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  /* ── Unified transparent chip style for all form controls inside the
     search carousel card on mobile ── */

  /* Radius preset buttons + industry chip labels: same shape, same glass */
  .mobileSearchDrawer.is-expanded .filterPanel .radiusRow button,
  .mobileSearchDrawer.is-expanded .filterPanel .industryGrid label {
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--primary);
    padding: 5px 7px;
    font-size: 11px;
    font-weight: 600;
    height: auto;
    min-height: 28px;
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  /* Active/checked state: blue tint */
  .mobileSearchDrawer.is-expanded .filterPanel .radiusRow button[aria-pressed="true"],
  .mobileSearchDrawer.is-expanded .filterPanel .industryGrid label:has(input:checked) {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.52);
    color: #1d4ed8;
    font-weight: 700;
  }

  /* Text / number inputs and the custom radius input */
  .mobileSearchDrawer.is-expanded .filterPanel input[type="text"],
  .mobileSearchDrawer.is-expanded .filterPanel .customRadiusInput {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    color: var(--primary);
  }

  .mobileSearchDrawer.is-expanded .filterPanel input[type="text"]::placeholder,
  .mobileSearchDrawer.is-expanded .filterPanel .customRadiusInput::placeholder {
    color: rgba(15, 23, 42, 0.45);
  }

  .mobileSearchDrawer.is-expanded .filterPanel input[type="text"]:focus,
  .mobileSearchDrawer.is-expanded .filterPanel .customRadiusInput:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.14);
  }

  .customRadiusInput,
  .filterPanel input[type="number"],
  .filterPanel input[type="text"],
  .filterPanel select,
  .filterPanel textarea,
  .visaLayerPanel input[type="text"],
  .visaLayerPanel input[type="number"],
  .visaLayerPanel select,
  .visaLayerPanel textarea {
    font-size: 16px !important;
  }

  .resultPanel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    max-height: 100%;
    z-index: auto;
    flex: 0 0 100%;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }

  /* Unify result card inner controls to same glass style as search/visa cards */
  .mobileSearchCarousel .resultBatchSelect {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.55);
  }

  .mobileSearchCarousel .resultItem {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.45);
  }

  .resultHeader {
    padding: 7px 10px 6px;
  }

  .resultPanelClose {
    font-size: 0;
    width: 26px;
    height: 26px;
  }

  .resultPanelClose::after {
    content: "⌄";
    font-size: 14px;
    line-height: 1;
    color: inherit;
  }

  .resultTitle {
    font-size: 12px !important;
  }

  .resultMeta {
    font-size: 11px;
  }

  .contactFetchBtn {
    font-size: 12px;
    padding: 6px 10px;
    height: auto;
  }

  .resultToolbarSecondary {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 4px;
  }

  .resultFilterToggle,
  .resultActionBtn {
    font-size: 11px;
  }

  .visaControl {
    position: static;
    top: auto;
    bottom: auto;
    right: auto;
    margin: 0;
    gap: 8px;
    grid-column: 1 / -1;
    width: 100%;
  }

  .visaControlActions {
    gap: 0;
  }

  .btnVisaToggle {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: none;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #1d4ed8;
  }

  .btnVisaToggle::before {
    content: "🗺 ";
    font-size: 16px;
    margin-right: 4px;
  }

  .visaSettingsBtn,
  .visaStatusBar {
    display: none !important;
  }

  /* When the visa panel lives in the bottom carousel (mobile), it
     becomes a normal card — relative positioning, frosted glass,
     compact typography. The .open class is irrelevant in this mode,
     it's always visible as one of the swipeable cards. */
  .visaLayerPanel.mobileSearchCard {
    /* carousel card geometry – must match .mobileSearchCarousel > .glassCard */
    flex: 0 0 100%;
    max-width: 100%;
    align-self: stretch;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* layout */
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 6px 10px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    z-index: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex !important;
    flex-direction: column;
    gap: 4px;
  }

  .visaLayerPanel.mobileSearchCard .visaPopupHeader {
    margin: 0;
    gap: 6px;
  }

  .visaLayerPanel.mobileSearchCard .panelTitle {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.85);
    flex: 1;
  }

  /* Repurpose close btn as a drawer-minimize button on mobile */
  .visaLayerPanel.mobileSearchCard .visaPopupClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.05);
    color: rgba(15, 23, 42, 0.55);
    font-size: 0;
    cursor: pointer;
    padding: 0;
  }

  .visaLayerPanel.mobileSearchCard .visaPopupClose:active {
    background: rgba(15, 23, 42, 0.1);
  }

  .visaLayerPanel.mobileSearchCard .visaPopupClose .visaPopupCloseIcon {
    display: none;
  }

  .visaLayerPanel.mobileSearchCard .visaPopupClose::after {
    content: "⌄";
    font-size: 14px;
    line-height: 1;
    color: rgba(15, 23, 42, 0.55);
    font-style: normal;
  }

  .visaLayerPanel.mobileSearchCard .visaLayerSwitch {
    margin: 0;
    padding: 4px 8px;
    font-size: 11px;
    gap: 7px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
  }

  .visaLayerPanel.mobileSearchCard .visaLayerSwitchText {
    font-size: 11px;
    line-height: 1.25;
  }

  .visaLayerPanel.mobileSearchCard .visaTypeToggle {
    margin: 0;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .visaLayerPanel.mobileSearchCard .visaTypeToggle button {
    height: 26px;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: var(--primary);
  }

  .visaLayerPanel.mobileSearchCard > .field {
    margin: 0;
  }

  .visaLayerPanel.mobileSearchCard .fieldLabel {
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 2px;
    color: rgba(15, 23, 42, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .visaLayerPanel.mobileSearchCard .visaIndustryGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .visaLayerPanel.mobileSearchCard .visaIndustryGrid label {
    padding: 4px 5px;
    font-size: 10px;
    line-height: 1.2;
    gap: 0;
    border-radius: 8px;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  }

  .visaLayerPanel.mobileSearchCard .visaIndustryGrid label:has(input:checked) {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.6);
    color: #1d4ed8;
    font-weight: 700;
  }

  .visaLayerPanel.mobileSearchCard .visaIndustryGrid label > span {
    font-size: 10px;
  }

  .visaLayerPanel.mobileSearchCard .visaLegend {
    margin: 0;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.04);
    font-size: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    line-height: 1.2;
  }

  .visaLayerPanel.mobileSearchCard .visaLegendSwatch {
    width: 10px;
    height: 10px;
  }

  .visaLayerPanel.mobileSearchCard .visa88DaysNote {
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 7px;
    line-height: 1.4;
    margin-top: 0;
  }

  .mobileSearchDrawer:not(.is-expanded) .visaLayerPanel.mobileSearchCard {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .homeIntroModalBackdrop {
    padding: 0;
    align-items: flex-end;
  }

  .homeIntroDialog {
    width: 100vw;
    max-width: none;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
  }

  .homeIntroCard {
    padding: 14px 18px 12px;
  }

  .homeIntroCardEmoji {
    font-size: 28px;
  }

  .homeIntroCardTitle {
    font-size: 16px;
  }

  .homeIntroCardList li,
  .homeIntroCardSteps li {
    font-size: 12.5px;
  }

  .homeIntroModalCta {
    height: 38px;
    font-size: 13px;
    padding: 0 18px;
  }

  /* When the search carousel expands, slide the comments panel out above
     the nav bar — it would otherwise sit in the narrow gap between nav and
     the tall drawer, looking cramped. Both bars are visible only when both
     are in their collapsed (one-line) state. */
  body.whv-mobile-search-open .mapPostsPanel {
    transform: translateY(calc(-100% - 20px));
    opacity: 0;
    pointer-events: none;
  }

  /* More transparent glass on mobile so panels occlude the map less.
     Override the desktop values with lower alpha + slightly more blur
     to keep legibility at lower opacity. */
  .mapPostsPanel,
  .mobileSearchCarousel > .glassCard,
  .visaLayerPanel.mobileSearchCard {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  }
}

.settingsPage {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 20px) 16px calc(var(--footer-height) + 20px);
  overflow: auto;
}

.settingsShell {
  width: min(980px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settingsHero,
.settingsSection {
  padding: 18px;
}

.settingsTitle {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.settingsSubtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.settingsSectionHead {
  margin-bottom: 14px;
}

.settingsSectionTitle {
  margin: 0;
  font-size: 18px;
}

.settingsSectionHelp {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.settingsSectionNote {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.settingsField {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settingsChoiceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settingsChoiceCard {
  position: relative;
  display: flex;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.settingsChoiceCard:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.08);
}

.settingsChoiceCard input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.settingsChoiceBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.settingsChoiceTopRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.settingsChoiceTitle {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.settingsChoiceBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.settingsChoiceMeta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.settingsChoiceCard.is-disabled {
  cursor: not-allowed;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.8)),
    rgba(248, 250, 252, 0.82);
}

.settingsChoiceCard.is-disabled:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.settingsChoiceCard.is-disabled .settingsChoiceTitle {
  color: #475569;
}

.settingsChoiceCard.is-disabled .settingsChoiceBadge {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.settingsChoiceCard.is-disabled .settingsChoiceMeta {
  color: #64748b;
}

.settingsChoiceCard:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.5);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.82)),
    rgba(239, 246, 255, 0.82);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.12);
}

.settingsChoiceCard:has(input:checked) .settingsChoiceTitle {
  color: #1d4ed8;
}

.settingsActions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.settingsRadioGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settingsRadioOption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
}

.settingsRadioOption input {
  margin: 0;
  accent-color: #3b82f6;
}

.settingsProfileForm {
  gap: 12px;
}

.settingsAccountGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settingsAccountCard {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.52);
}

.settingsAccountLabel {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.settingsAccountValue {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  word-break: break-word;
}

.settingsSignInHint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Apply page */
.applyPage {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 18px) 16px calc(var(--footer-height) + 18px);
  overflow: auto;
}

.applyShell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 12px;
  width: min(1480px, 100%);
  margin: 0 auto;
  height: calc(100vh - var(--nav-height) - var(--footer-height) - 36px);
}

.applyColumn {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
}

.applyColumnHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.applyColumnTitle {
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
}

.applyColumnSub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.applyControls {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.applyControls select,
.applyControls textarea,
.applyControls input,
.applyForm select,
.applyForm textarea,
.applyForm input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.9);
  color: var(--primary);
  padding: 0 10px;
  outline: none;
  font: inherit;
}

.applyControls select,
.applyControls input,
.applyForm select,
.applyForm input {
  height: 38px;
}

.applyControls textarea,
.applyForm textarea {
  min-height: 86px;
  padding: 10px;
  resize: vertical;
}

.applyBusinessBulkActions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.applyBulkActionBtn {
  flex: 1;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.applyBulkActionBtn:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(239, 246, 255, 0.95);
}

.applyBusinessList {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.applyBusinessCard {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px 10px;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
}

.applyBusinessCard:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(248, 250, 252, 0.95);
}

.applyBusinessCard.checked {
  border-color: rgba(59, 130, 246, 0.62);
  background: rgba(239, 246, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.applySelectedCount {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 2px;
}

.applyBusinessCardBody {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.applyBusinessCardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}

.applyBusinessCardBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.applyBusinessCardBottomLeft {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.applyBusinessCardBadges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
  min-height: 24px;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.applyBusinessCardBadges--empty {
  visibility: hidden;
}

.applyBusinessBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.applyBusinessCardActions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.applyBusinessIconBtn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: var(--primary);
}

.applyBusinessIconBtn:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(239, 246, 255, 0.95);
}

.applyBusinessIconBtn--danger:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(254, 242, 242, 0.95);
}

.applyBusinessName {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
}

.applyBusinessMeta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.industryTag,
.freshnessBadge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.88);
}

.freshnessBadge.fresh {
  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
}

.freshnessBadge.warm {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.freshnessBadge.old {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
}

.applyProfileTitle {
  margin-bottom: 0;
  font-size: 14px;
}

.applyProfileSection {
  margin-bottom: 14px;
}

.applyProfileSection--compact {
  margin-bottom: 6px;
  flex-shrink: 0;
}

.applyProfileHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.applyProfileSummaryRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
}

.applyProfileSummaryBtn {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  text-align: left;
  cursor: pointer;
}

.applyProfileSummaryText {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applyProfileSummaryText.isEmpty {
  color: var(--muted);
  font-weight: 600;
}

.applyProfileEditBtn {
  flex-shrink: 0;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.38);
  background: rgba(239, 246, 255, 0.95);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.applyProfileEditBtn:hover {
  background: #dbeafe;
}

.profileModalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 56;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profileModalBackdrop.open {
  display: flex;
}

.profileModal {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  color: var(--primary);
}

.profileModalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.profileModalTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.profileModalForm {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
  overflow: visible;
}

.profileModalRetention {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.profileModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.profileModalActions .applyGenerateBtn,
.profileModalActions .applySecondaryBtn {
  width: auto;
  min-width: 88px;
}

.applyFormDeferred[hidden] {
  display: none !important;
}

.applyForm {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.applyFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.applySelectedBusiness {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 32px;
  margin-bottom: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.7);
  flex-shrink: 0;
}

.applySelectedBusinessRow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.applySelectedBusinessName {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applySelectedBusinessTag {
  flex-shrink: 0;
}

.applySelectedBusinessPlaceholder {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applySelectedBusiness strong {
  display: block;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 0;
}

.applyGenerateBtn,
.applySecondaryBtn {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.applyGenerateBtn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.applySecondaryBtn {
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  border-color: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 14px;
}

.applyOutput {
  min-height: 0;
  flex: 1;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
  color: var(--primary);
  line-height: 1.55;
  font-size: 13px;
}

.applyOutputActions {
  display: none;
  gap: 8px;
  margin-top: 12px;
}

.applyOutputActions.visible {
  display: flex;
}

.applyEmptyState {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(100, 116, 139, 0.3);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.58);
}

.applyHomeLink {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.applyHomeLink:hover {
  text-decoration: underline;
}

.applyAuthHomeLink {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.lockedExport {
  opacity: 0.56;
  cursor: pointer;
}

.applyMiddleColumn {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 10px 12px;
}

.applyCoverLetterBlock {
  flex: 1;
  min-height: 0;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.applyCoverLetterBlockHead {
  flex-shrink: 0;
}

.applyCoverLetterBlockTitle {
  font-size: 14px;
}

.applyCoverLetterBody {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.applyCoverLetterModeToggle {
  display: grid;
  gap: 4px;
  flex-shrink: 0;
}

.applyCoverLetterModeOption {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
  color: var(--primary);
  cursor: pointer;
}

.applyCoverLetterModeOption:has(input:checked) {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(239, 246, 255, 0.88);
  font-weight: 700;
}

.applyCoverLetterModeOption input {
  margin-top: 2px;
  flex-shrink: 0;
}

.applyCoverLetterField {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
}

.applyCoverLetterField textarea {
  width: 100%;
  flex: 1;
  min-height: 72px;
  max-height: 132px;
  padding: 8px 10px;
  resize: none;
  line-height: 1.45;
  font-size: 13px;
  box-sizing: border-box;
}

.applyCharCount {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.applyAiCoverLetterRow {
  display: grid;
  gap: 6px;
  position: relative;
}

.applyAiCoverLetterActions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.applyAiCoverLetterBtn {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #4f46e5;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.applyAiCoverLetterBtn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.applyAiCoverLetterBtn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.applyAiCoverLetterHint {
  margin: 0;
  font-size: 12px;
  color: #b91c1c;
  font-weight: 700;
}

.applyAiSettingsGearBtn {
  flex-shrink: 0;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: rgba(255, 255, 255, 0.92);
  color: #4338ca;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.applyAiSettingsGearBtn:hover,
.applyAiSettingsGearBtn.is-active {
  border-color: #6366f1;
  background: rgba(238, 242, 255, 0.98);
}

.applyAiSettingsPanel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.applyAiSettingsPanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.applyAiSettingsPanelHeader strong {
  font-size: 13px;
  color: var(--primary);
}

.applyAiSettingsClose {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.applyAiSettingsClose:hover {
  background: rgba(241, 245, 249, 0.95);
  color: var(--primary);
}

.applyAiSettingsFieldset {
  margin: 0 0 10px;
  padding: 0;
  border: none;
}

.applyAiSettingsFieldset:last-child {
  margin-bottom: 0;
}

.applyAiSettingsFieldset legend {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0;
}

.applyAiSettingsOption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 5px;
  cursor: pointer;
}

.applyAiSettingsOption:last-child {
  margin-bottom: 0;
}

.applyAiSettingsOption input {
  margin-top: 2px;
  flex-shrink: 0;
}

.applyResumeUpload {
  display: grid;
  gap: 4px;
  flex-shrink: 0;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.applyResumeUploadLabel {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
}

.applyResumeUploadRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.applyResumeUploadBtn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px dashed rgba(59, 130, 246, 0.45);
  background: rgba(239, 246, 255, 0.7);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.applyResumeFileName {
  font-size: 12px;
  color: var(--primary-soft);
  font-weight: 600;
}

.applyResumeHint {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

.applyResumeLinkRow {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
}

.applyResumeLinkLabel {
  color: var(--text);
}

.applyResumeLink {
  color: var(--primary);
  word-break: break-all;
}

.applyResumeLink:hover {
  text-decoration: underline;
}

.applyResumeReuploadBtn {
  border: none;
  cursor: pointer;
  font: inherit;
}

.applyResumeGuestHint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.applyResumeClearBtn {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.applyQueueBtn {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: rgba(239, 246, 255, 0.95);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.applyQueueBtn:hover {
  background: #dbeafe;
}

.applyRightColumn {
  position: relative;
}

.applyRightPanel {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.applyRightPanel[hidden],
.applySendQueuePanel[hidden] {
  display: none !important;
}

.applySendQueuePanel {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sendQueueList {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.sendQueueItem {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.sendQueueItemMain {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sendQueueItemMain strong {
  font-size: 13px;
  color: var(--primary);
}

.sendQueueItemMain span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.sendQueueAddress {
  font-size: 11px !important;
}

.sendQueueResume {
  font-size: 11px;
  color: #1d4ed8;
  font-weight: 600;
}

.sendQueueMailBtn {
  flex-shrink: 0;
  height: 34px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

.sendQueueMailBtn.disabled,
.sendQueueMailBtn.sent {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.applyNotice {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-height) + 16px);
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  max-width: min(420px, calc(100% - 32px));
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.applyNotice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.applyNotice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.applyNotice--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.applyNotice--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

@media (max-width: 940px) {
  .applyShell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .applyColumn {
    min-height: 420px;
  }

  .applyMiddleColumn {
    overflow: visible;
  }

  .applyCoverLetterBody {
    overflow: visible;
  }
}

/* Employers directory */
.employersBody,
.blogBody {
  overflow: auto;
}

.employersPage {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 18px) 16px calc(var(--footer-height) + 18px);
}

.employersShell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.employersHero {
  padding: 18px 16px;
}

.employersTitle {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.employersIntro {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.employerFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.employerChip {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.employerChip:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(239, 246, 255, 0.95);
}

.employerChip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #1d4ed8;
}

.employerGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.employerCard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  min-height: 100%;
}

.employerCardTop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 6px;
}

.employerCardName {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
}

.employerIndustryTag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.employerWhv {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.employerWhv--yes {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.employerWhv--no {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.employerWhv--unknown {
  background: rgba(107, 114, 128, 0.14);
  color: #4b5563;
}

.employerCardDesc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.employerApplyBtn {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.employerApplyBtn:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.employerEmpty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .settingsHero,
  .settingsSection {
    padding: 15px;
  }

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

  .settingsAccountGrid {
    grid-template-columns: 1fr;
  }
}

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

/* Default: dots only show on mobile */
.applyMobileDots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 6px);
  flex-shrink: 0;
  background: transparent;
}

.applyMobileDot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.applyMobileDot.is-active {
  background: var(--accent);
  width: 22px;
}

.applyMobileDot:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

/* Mobile typography & density tweaks for sub-pages.
   Keeps desktop layout untouched. */
@media (max-width: 768px) {
  .employersPage,
  .settingsPage {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: 24px;
  }

  /* Apply page becomes a fixed-height container; the three columns turn
     into horizontally-swipeable cards with scroll-snap. */
  .applyPage {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 8px) 0 0;
    display: flex;
    flex-direction: column;
  }

  .applyShell {
    grid-template-columns: none;
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0 8px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .applyShell::-webkit-scrollbar {
    display: none;
  }

  .applyColumn,
  .applyMiddleColumn {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 14px;
    border-radius: 18px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
  }

  /* Drop the desktop flex:1 chain inside each card so content stacks
     naturally and the column itself owns the vertical scroll. */
  .applyRightColumn,
  .applyRightPanel,
  .applySendQueuePanel,
  .applyCoverLetterBlock,
  .applyCoverLetterBody,
  .applyCoverLetterField {
    flex: none;
    min-height: 0;
    overflow: visible;
    max-height: none;
  }

  .applyBusinessList,
  .sendQueueList {
    overflow: visible;
    max-height: none;
  }

  .applyMobileDots {
    display: flex;
  }

  .applyColumnTitle {
    font-size: 14px;
  }

  .applyColumnSub {
    font-size: 11px;
  }

  .applyColumnHeader {
    margin-bottom: 10px;
    gap: 8px;
  }

  .applyControls {
    gap: 6px;
    margin-bottom: 10px;
  }

  .applyControls select,
  .applyControls input,
  .applyForm select,
  .applyForm input {
    height: 38px;
    font-size: 14px;
  }

  .applyControls textarea,
  .applyForm textarea {
    font-size: 14px;
    min-height: 76px;
  }

  .applyBulkActionBtn {
    height: 32px;
    font-size: 12px;
  }

  .applyBusinessCard {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .applyCoverLetterField textarea {
    flex: none;
    min-height: 140px;
    max-height: none;
    font-size: 14px;
  }

  .applyCoverLetterModeOption {
    padding: 6px 8px;
    font-size: 12px;
  }

  .applyCoverLetterBlockTitle {
    font-size: 13px;
  }

  .applyAiCoverLetterBtn {
    font-size: 13px;
  }

  .applyGenerateBtn,
  .profileModalActions .applyGenerateBtn {
    height: 40px;
    font-size: 13px;
  }

  .applyResumeUploadBtn {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .sendQueueItem {
    padding: 10px 11px;
    gap: 8px;
  }

  .sendQueueMailBtn {
    height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  /* Employers: tighter hero + cards, single column grid */
  .employersHero {
    padding: 11px 12px;
  }

  .employersTitle {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .employersIntro {
    font-size: 12px;
    line-height: 1.45;
  }

  .employerFilters {
    padding: 8px 10px;
    gap: 5px;
  }

  .employerChip {
    height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }

  .employerGrid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .employerCard {
    padding: 9px 10px;
    gap: 5px;
  }

  .employerCardTop {
    gap: 4px 5px;
  }

  .employerCardName {
    font-size: 12.5px;
  }

  .employerIndustryTag,
  .employerWhv {
    font-size: 10px;
    padding: 2px 6px;
  }

  .employerCardDesc {
    font-size: 11px;
    line-height: 1.4;
  }

  .employerApplyBtn {
    height: 26px;
    font-size: 11px;
    padding: 0 10px;
    border-radius: 7px;
  }

  /* Settings: smaller hero/section spacing and fonts */
  .settingsHero,
  .settingsSection {
    padding: 14px;
  }

  .settingsTitle {
    font-size: 22px;
  }

  .settingsSubtitle {
    font-size: 13px;
    margin-top: 6px;
  }

  .settingsSectionHead {
    margin-bottom: 10px;
  }

  .settingsSectionTitle {
    font-size: 16px;
  }

  .settingsSectionHelp {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .settingsChoiceCard {
    min-height: auto;
    padding: 12px 14px;
    border-radius: 14px;
  }
}
