    /* === ADAPTIVE / MOBILE === */
    @media (max-width: 768px) {
      :root {
        --btnW: 85vw;
        --btnH: 100px;
        --btnRadius: 32px;
        --inW: 85vw;
        --inH: 56px;
        --inRadius: 20px;
        --gapX: 20px;
        --gapY: 12px;
      }
      
      body {
        background: #fff;
        overflow-x: hidden;
        min-height: 100dvh;
      }

      .stage {
        height: 100dvh;
        min-height: 100dvh;
      }

      .screen,
      .screen.active {
        min-height: 100dvh;
      }

      .sqBtn {
        min-width: auto;
        width: 85vw;
      }

      #screenRoleReg .wrap,
      #screenLoginForm .wrap,
      #screenForgot .wrap,
      #screenVerifyCode .wrap,
      #screenResetPassword .wrap,
      #screenRegForm .wrap {
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        min-height: 100%;
        overflow-y: auto;
        gap: 18px;
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
      }

      #screenCandidateFeed,
      #screenEmployerSearch,
      #screenAdminQueue,
      #screenChat,
      #screenPublicProfile,
      #screenRecruiterPublic,
      #screenEmployeePublic,
      #screenMyEmployerProfile,
      #screenMyEmployeeProfile {
        overflow-x: hidden !important;
      }

      #screenCandidateFeed .wrap,
      #screenEmployerSearch .wrap,
      #screenAdminQueue .wrap,
      #screenChat .wrap,
      #screenPublicProfile .wrap,
      #screenRecruiterPublic .wrap,
      #screenEmployeePublic .wrap,
      #screenMyEmployerProfile .wrap,
      #screenMyEmployeeProfile .wrap {
        width: 100%;
        max-width: 100%;
        min-height: 100%;
        overflow-x: hidden;
      }

      #screenRoleReg .wrap,
      #screenLoginForm .wrap,
      #screenForgot .wrap,
      #screenVerifyCode .wrap,
      #screenResetPassword .wrap,
      #screenRegForm .wrap {
        padding-top: calc(92px + env(safe-area-inset-top, 0px));
      }

      #screenRegForm .wrap {
        padding-top: calc(118px + env(safe-area-inset-top, 0px));
      }

      .screenTopBarInset {
        padding-top: env(safe-area-inset-top, 0px);
      }

      .stickyTop {
        top: 0 !important;
      }

      #screenRoleReg .centerBlock,
      #screenLoginForm .centerBlock,
      #screenForgot .centerBlock,
      #screenVerifyCode .centerBlock,
      #screenResetPassword .centerBlock,
      #screenRegForm .centerBlock {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        justify-content: flex-start;
        flex: 0 0 auto;
        gap: 18px;
      }

      #screenForgot .formCol,
      #screenLoginForm .formCol,
      #screenResetPassword .formCol {
        width: min(100%, 420px);
        margin-left: auto;
        margin-right: auto;
      }

      .choiceRow {
        flex-direction: column;
        gap: 12px;
        width: min(100%, 420px);
      }

      #roleChoices .sqBtn {
        width: 100%;
        min-height: 92px;
        height: auto;
        padding: 20px 16px;
      }

      #roleChoices .sqText {
        font-size: clamp(18px, 5.3vw, 22px);
      }

      #roleChoices .sqSubtext {
        font-size: 13px;
      }

      #screenRoleReg .footerArea,
      #screenLoginForm .footerArea,
      #screenForgot .footerArea,
      #screenVerifyCode .footerArea,
      #screenResetPassword .footerArea,
      #screenRegForm .footerArea {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 10px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
      }

      #screenRoleReg .nextBtn,
      #screenLoginForm .nextBtn,
      #screenForgot .nextBtn,
      #screenVerifyCode .nextBtn,
      #screenResetPassword .nextBtn,
      #screenRegForm .nextBtn {
        width: min(100%, 320px);
        min-height: 48px;
      }

      #screenCandidateFeed .centerBlock,
      #screenEmployerSearch .centerBlock,
      #screenAdminQueue .centerBlock,
      #screenPublicProfile .profileContent {
        max-width: 100%;
        padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
      }

      .feedCard,
      .socialCard,
      .pubProfileCard {
        width: 100%;
        max-width: 100%;
      }

      .pubProfileBanner { height: 72px; }
      .pubProfileHeroRow { margin-top: -36px; padding: 0 16px; }
      .pubProfileAvatarImg,
      .pubProfileAvatarFallback { width: 72px; height: 72px; font-size: 24px; }
      .pubProfileBody { padding: 0 16px 20px; }
      .pubProfileName { font-size: 19px; }
      .pubProfileBadges { gap: 5px; }
      .pubSkillChip { font-size: 12px; padding: 4px 10px; }

      .profileCard{
        width:min(100%, calc(100vw - 24px));
        padding:16px;
        border-radius:20px;
      }

      .profileHead{
        gap:14px;
        padding-bottom:10px;
        margin-bottom:10px;
      }

      .avatarCircle{
        width:72px;
        height:72px;
      }

      .avatarCircle.lg{
        width:92px;
        height:92px;
      }

      .profileName{
        font-size:18px;
        line-height:1.15;
      }

      .profileMeta,
      .profileSub,
      .profileAbout,
      .miniValue{
        font-size:13px;
        line-height:1.45;
      }

      .badgeRow{
        gap:6px;
      }

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

      .networkRow{
        flex-direction:column;
        align-items:flex-start;
      }

      .networkActions,
      .networkInlineActions{
        width:100%;
      }

      .badge,
      .chip{
        font-size:11px;
        padding:6px 9px;
      }

      .hintTop{
        font-size:11px;
        line-height:1.35;
      }

      .avatarEdit{
        width:100%;
        align-items:center;
        gap:10px;
      }

      .avatarEditActions{
        width:100%;
        justify-content:center;
      }

      .avatarEditActions .pillBtn{
        flex:1 1 140px;
        min-width:0;
      }

      .avatarEdit .miniHint{
        width:100%;
        margin:0;
        text-align:center;
      }

      .authFlowSub,
      .authFlowTitle {
        width: min(100%, 420px);
      }

      .codeInputRow {
        gap: 8px;
        width: min(100%, 420px);
      }

      .codeCell {
        width: 48px;
        height: 60px;
        border-radius: 16px;
      }

      .codeCell input {
        font-size: 24px;
      }

      .backBtn {
        position: fixed;
        left: 16px;
        top: calc(14px + env(safe-area-inset-top, 0px));
        z-index: 120;
      }

      #screenRegForm > .backBtn {
        position: fixed;
        left: 16px;
        top: calc(14px + env(safe-area-inset-top, 0px));
        min-height: 0;
        padding: 10px 14px;
        font-size: 13.3333px;
        font-weight: 600;
        z-index: 140;
      }

      #screenRegForm .wrap > .regProgress {
        position: fixed;
        top: calc(28px + env(safe-area-inset-top, 0px));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 130;
        gap: 5px;
      }

      #screenRegForm .wrap > .regProgress .regLine {
        min-width: 15px;
      }

      .topBar {
        padding: 12px 16px;
        flex-wrap: wrap;
      }

      .topBar h2 {
        font-size: 20px;
      }

      .topBtns {
        gap: 8px;
        width: 100%;
        justify-content: center;
      }

      .topBtns .sq {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
      }

      .feedWrap,
      .searchWrap,
      .adminQueueWrap {
        padding: 16px;
        max-width: 100%;
      }

      .socialCard {
        padding: 14px;
      }

      .scHead {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .drawer {
        width: 90vw;
        max-width: 320px;
      }

      .profileWrap {
        padding: 16px;
        max-width: 100%;
      }

      .profGrid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .profCard {
        padding: 16px;
      }

      input[type="text"],
      input[type="email"],
      input[type="tel"],
      input[type="password"],
      input[type="url"],
      textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
      }

      .modal {
        padding: 20px;
      }

      .modalCard {
        max-width: 95vw;
        max-height: 90vh;
        padding: 20px;
      }

      .publicProfileWrap {
        padding: 16px;
        max-width: 100%;
      }

      .searchInput {
        width: 100%;
        max-width: none;
      }

      .adminSectionHead {
        flex-wrap: wrap;
        align-items: stretch;
      }

      .adminSearchInput,
      .adminSearchInput.wide {
        width: 100%;
      }

      .userProfileModal {
        padding: 16px 12px;
      }

      .userProfileModalContent {
        padding: 20px 16px;
      }

      .userProfileModalFooter {
        padding: 0 16px 16px;
      }
    }

    @media (max-width: 480px) {
      #screenRoleReg .wrap,
      #screenLoginForm .wrap,
      #screenForgot .wrap,
      #screenVerifyCode .wrap,
      #screenResetPassword .wrap,
      #screenRegForm .wrap {
        padding-left: 14px;
        padding-right: 14px;
      }

      .topBar h2 {
        font-size: 18px;
      }

      .sqBtn {
        font-size: 14px;
        padding: 12px 20px;
      }

      .topBar{
        width:calc(100vw - 20px);
        gap:10px;
      }

      .profileCard{
        width:calc(100vw - 16px);
        padding:14px;
      }

      .avatarEdit{
        align-items:flex-start;
      }

      .avatarEditActions{
        justify-content:flex-start;
      }

      .avatarEditActions .pillBtn{
        width:100%;
        flex:1 1 100%;
      }

      #roleChoices .sqBtn {
        min-height: 84px;
        padding: 18px 14px;
      }

      .authFlowSub {
        font-size: 13px;
      }

      .codeInputRow {
        gap: 6px;
      }

      .codeCell {
        width: 44px;
        height: 54px;
        border-radius: 14px;
      }

      .codeCell input {
        font-size: 22px;
      }

      .socialCard {
        padding: 12px;
      }

      .scName {
        font-size: 15px;
      }

      .scSub, .scAbout {
        font-size: 12px;
      }
    }

body { padding-bottom: 0; }

.pager { margin-top: 14px; }
.pagerBar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pagerMeta { font-size: 12px; color: #6b7280; }
.pagerActions { display: flex; align-items: center; gap: 8px; }
.pagerBtn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(38, 110, 120, 0.18);
  background: #fff;
  color: #155e75;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.pagerBtn:hover:not(:disabled) {
  border-color: rgba(38, 110, 120, 0.35);
  background: #f0fdfa;
}
.pagerBtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pagerBtn.current,
.pagerBtn.current:disabled {
  opacity: 1;
  cursor: default;
  background: #0e0f0f;
  color: #fff;
  border-color: #0e0f0f;
}
.pagerNum {
  min-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagerEllipsis {
  padding: 0 2px;
}

/* ── Desktop layout ≥1024px ─────────────────────────────────────── */
@media (min-width: 1024px) {
  /* Vacancy grid: 2 columns on wide screens */
  .vacancyGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Profiles max-width */
  #screenMyEmployeeProfile .wrap,
  #screenMyEmployerProfile .wrap,
  #screenEmployeePublic .wrap,
  #screenRecruiterPublic .wrap {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Feed hero centering */
  #screenCandidateFeed .feedSearchHeroInner,
  #screenEmployerSearch .feedSearchHeroInner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
}
