.desktop-nav,
.desktop-label {
  display: none;
}

#toast { pointer-events: none; }

@media (width < 960px) {
  body:has(.swipe-page) #toast { bottom: calc(var(--ui-nav-height) + 88px); }
}

@media (max-width: 360px) {
  .header { grid-template-columns: 30px minmax(0, 1fr) 30px; }
}

@media (min-width: 960px) {
  body {
    max-width: none;
    background: var(--theme-color-canvas);
    box-shadow: none;
  }

  .header,
  .guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-inline: max(24px, calc((100% - 1088px) / 2));
  }

  .header .brand { flex: none; }
  .header .header-spacer,
  .header .mobile-dashboard,
  .nav { display: none; }

  .desktop-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .desktop-nav a,
  .header-actions .iconbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-height: 44px;
    padding: 6px 9px;
    border-radius: var(--ui-control-radius);
    color: var(--theme-color-text);
    font-size: var(--theme-font-button);
    font-weight: 600;
    white-space: nowrap;
  }

  .desktop-nav a:hover,
  .desktop-nav a.active,
  .header-actions .iconbtn:hover {
    background: var(--theme-color-orange-soft);
    color: var(--theme-color-orange-ink);
    text-decoration: none;
  }

  .desktop-label { display: inline; }
  .page { max-width: 1136px; padding: 38px 24px 64px; }
  .narrow { max-width: 580px; padding: 38px 24px 64px; }
  .page:has(> form[data-count-form]) { max-width: 760px; }
  .availability-rail { padding-inline: max(24px, calc((100% - 712px) / 2)); }
  .page-with-counter { padding-top: 28px; }
  .job-count { background: var(--theme-color-canvas); }

  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards,
  .profile-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .cards > .empty { grid-column: 1 / -1; }
  .toolbar { justify-content: flex-start; }
  .toolbar > label { flex: 1 1 240px; max-width: 340px; width: auto; }
  .toolbar > label:only-child { flex-grow: 0; }
  .demo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .swipe-page {
    max-width: none;
    height: auto;
    min-height: calc(100dvh - 84px);
    padding: 28px 24px 56px !important;
    overflow: visible;
  }

  .swipe-container { max-width: 760px; height: auto; }
  .swipe-card { height: auto; reading-flow: flex-visual; }
  .candidate-fixed-header { padding: 20px 24px 0; }

  .swipe-card .swipe-actions {
    order: 1;
    height: auto;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 24px;
    border-top: 0;
    border-bottom: 1px solid var(--theme-color-border);
    border-radius: 0;
  }

  .swipe-card .swipe-actions button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 112px;
    padding-inline: 16px;
    border-radius: var(--ui-control-radius);
    box-shadow: none;
    font-size: var(--theme-font-button);
    font-weight: 600;
  }

  .swipe-card .card-scroll {
    order: 2;
    overflow: visible;
    padding: 16px 24px 24px;
  }

  #modal { width: min(680px, calc(100vw - 48px)); }
}

@media (960px <= width <= 1080px) {
  .desktop-nav a .fa-icon { display: none; }
}
