/* Desktop-only styles (≥1024px = Tailwind `lg`).
 *
 * Breakpoints (aligned with Tailwind / industry practice):
 *   Mobile  < 768px
 *   Tablet  768–1023px  → mobile markup, full width (see app.css)
 *   Desktop ≥ 1024px    → .layout-desktop
 */

@media (min-width: 1024px) {
  .desktop-only { display: block; }
  .desktop-only-flex { display: flex; }
  .desktop-only-grid { display: grid; }

  .desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 5rem;
    background: rgba(255, 247, 251, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(94, 17, 116, 0.06);
  }

  .desktop-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    height: 100%;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .desktop-nav-pill {
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #4e434f;
    transition: background 140ms ease, color 140ms ease;
  }
  .desktop-nav-pill:hover {
    color: #201921;
    background: #f1e4ef;
  }
  .desktop-nav-pill.is-active {
    background: #5e1174;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(94, 17, 116, 0.15);
  }

  .desktop-main {
    padding-top: 5rem;
    min-height: calc(100dvh - 5rem);
    background: #fff7fb;
  }

  .desktop-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 3rem 3rem;
    position: relative;
  }

  .desktop-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(64px);
    z-index: 0;
  }

  .desktop-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px -2px rgba(94, 17, 116, 0.08), 0 2px 6px -1px rgba(43, 36, 44, 0.04);
  }

  /* 3-pane messages */
  .desktop-messages {
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 0;
    height: calc(100dvh - 5rem);
    max-width: 80rem;
    margin: 0 auto;
    border-left: 1px solid rgba(210, 194, 208, 0.5);
    border-right: 1px solid rgba(210, 194, 208, 0.5);
    background: #fff;
  }
  .desktop-messages.has-drawer {
    grid-template-columns: 22rem minmax(0, 1fr) 20rem;
  }
  .desktop-messages-list {
    border-right: 1px solid rgba(210, 194, 208, 0.5);
    overflow-y: auto;
    background: #fff7fb;
  }
  .desktop-messages-thread {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f3f1f4;
  }
  .desktop-messages-drawer {
    border-left: 1px solid rgba(210, 194, 208, 0.5);
    overflow-y: auto;
    background: #fff;
  }

  /* Legal TOC */
  .desktop-legal {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2.5rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 3rem 4rem;
  }
  .desktop-legal-toc {
    position: sticky;
    top: 6rem;
    align-self: start;
  }

  /* Explore split */
  .desktop-explore-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem;
    align-items: start;
  }

  .desktop-action-dial {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, box-shadow 120ms ease;
  }
  .desktop-action-dial:active {
    transform: scale(0.94);
  }

  /* Settings tabs */
  .desktop-settings {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2rem;
  }

  /* —— Desktop settings hub (/profil/innstillinger) —— */
  .desk-settings {
    background: #fff7fb;
    min-height: calc(100dvh - 5rem);
  }
  .desk-settings-frame {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 3rem 2.5rem;
  }
  .desk-settings-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
  }
  .desk-settings-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: #fdf0fb;
    box-shadow: 0 1px 8px rgba(94, 17, 116, 0.06);
    margin-bottom: 1.5rem;
  }
  .desk-settings-banner-orb {
    position: absolute;
    right: -4rem;
    top: -4rem;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    background: rgba(252, 215, 255, 0.45);
    filter: blur(48px);
    pointer-events: none;
  }
  .desk-settings-shell {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  @media (max-width: 1279px) {
    .desk-settings-shell {
      grid-template-columns: 1fr;
    }
  }
  .desk-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 6rem;
  }
  .desk-settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #4e434f;
    transition: background 140ms ease, color 140ms ease;
  }
  .desk-settings-nav-item:hover {
    color: #201921;
    background: #f7eaf5;
  }
  .desk-settings-nav-item.is-active {
    background: #5e1174;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(94, 17, 116, 0.15);
  }
  .desk-settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
  }
  .desk-settings-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
      0 4px 20px -2px rgba(94, 17, 116, 0.08),
      0 2px 6px -1px rgba(43, 36, 44, 0.04);
  }
  .desk-settings-card-head {
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(210, 194, 208, 0.25);
  }
  .desk-settings-row + .desk-settings-row,
  .divide-y > .desk-settings-row + .desk-settings-row {
    border-top-color: rgba(210, 194, 208, 0.2);
  }

  /* —— Desktop Inviter venner —— */
  .desk-invite {
    background: #fff7fb;
    min-height: calc(100dvh - 5rem);
  }
  .desk-invite-frame {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 3rem 2.5rem;
  }
  .desk-invite-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
  }
  .desk-invite-shell {
    display: grid;
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  @media (max-width: 1279px) {
    .desk-invite-shell {
      grid-template-columns: 1fr;
    }
  }
  .desk-invite-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 6rem;
  }
  .desk-invite-qr-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow:
      0 4px 20px -2px rgba(94, 17, 116, 0.08),
      0 2px 6px -1px rgba(43, 36, 44, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .desk-invite-qr-frame {
    width: 100%;
    max-width: 17.5rem;
    aspect-ratio: 1;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(210, 194, 208, 0.35);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .desk-invite-side-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 8px rgba(94, 17, 116, 0.06);
    transition: background 140ms ease;
  }
  .desk-invite-side-link:hover {
    background: #fdf0fb;
  }
  .desk-invite-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
  }
  .desk-invite-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.75rem 1.75rem 1.85rem;
    background: linear-gradient(135deg, #8b2a9e 0%, #5e1174 48%, #2b142f 100%);
    color: #fff;
    box-shadow: 0 8px 28px -8px rgba(94, 17, 116, 0.35);
  }
  .desk-invite-hero-orb {
    position: absolute;
    right: -3rem;
    top: -4rem;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    background: rgba(252, 215, 255, 0.22);
    filter: blur(40px);
    pointer-events: none;
  }
  .desk-invite-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .desk-invite-stat {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 1px 8px rgba(94, 17, 116, 0.06);
  }
  .desk-invite-stat--active {
    background: #fdf0fb;
    box-shadow: inset 0 0 0 1px rgba(94, 17, 116, 0.12);
  }
  .desk-invite-banner-active {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: rgba(232, 204, 240, 0.55);
    color: #4a0e5c;
  }
  .desk-invite-how {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: 0 1px 8px rgba(94, 17, 116, 0.06);
  }
  .desk-invite-steps {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .desk-invite-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .desk-invite-step-num {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    background: #f7eaf5;
    color: #5e1174;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .desk-invite-recent {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
      0 4px 20px -2px rgba(94, 17, 116, 0.08),
      0 2px 6px -1px rgba(43, 36, 44, 0.04);
  }
  .desk-invite-recent-head {
    padding: 1.1rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(210, 194, 208, 0.25);
  }
  .desk-invite-empty {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 8px rgba(94, 17, 116, 0.06);
  }

  /* —— Desktop messenger (meldinger/{id}) —— */
  html:has(body.chat-page.desktop-app) {
    overflow: hidden;
    height: 100%;
  }
  body.chat-page.desktop-app {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .desk-chat.desktop-main {
    background: #fff7fb;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding-top: 5rem;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .desk-chat-frame {
    position: sticky;
    top: 5rem;
    flex: 1 1 0;
    min-height: 0;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .desk-chat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    flex-shrink: 0;
  }
  .desk-chat-shell {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
      0 4px 24px -2px rgba(94, 17, 116, 0.08),
      0 2px 8px -1px rgba(43, 36, 44, 0.04);
  }
  .desk-chat-inbox {
    width: 24rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fdf0fb;
    border-right: 1px solid rgba(210, 194, 208, 0.35);
    min-height: 0;
    overflow: hidden;
  }
  @media (max-width: 1279px) {
    .desk-chat-inbox {
      width: 20rem;
    }
  }
  .desk-chat-thread.is-active {
    background: #f7eaf5;
    box-shadow: 0 1px 4px rgba(94, 17, 116, 0.06);
  }
  .desk-chat-thread-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }
  .desk-chat-header {
    height: 5rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(94, 17, 116, 0.05);
    background: #fff;
    z-index: 2;
  }
  .desk-chat-date-banner {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(90deg, #f7eaf5, #fdf0fb, #f7eaf5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
  }
  /* Beat body.desktop-app main { overflow: visible } — #desk-chat-scroll is a <main> */
  body.desktop-app main.desk-chat-scroll,
  .desk-chat main.desk-chat-scroll,
  .desk-chat-scroll {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1.75rem;
    background: rgba(255, 247, 251, 0.45);
  }
  .desk-chat-match-hint {
    max-width: 28rem;
    margin: 0 auto 1.25rem;
    padding: 0.65rem 0.85rem;
    background: #f7eaf5;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(94, 17, 116, 0.06);
  }
  .desk-msg {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 36rem;
  }
  .desk-msg--mine {
    margin-left: auto;
    flex-direction: row-reverse;
  }
  .desk-msg--theirs {
    margin-right: auto;
  }
  .desk-msg-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 1.15rem;
  }
  .desk-msg-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .desk-msg--mine .desk-msg-col {
    align-items: flex-end;
  }
  .desk-msg--theirs .desk-msg-col {
    align-items: flex-start;
  }
  .desk-msg-name {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    color: #4e434f;
    margin: 0 0 0.25rem 0.25rem;
  }
  .desk-chat .chat-bubble {
    font-size: 15px;
    line-height: 1.5;
    padding: 0.85rem 1.05rem;
    border-radius: 1.15rem;
    max-width: 100%;
  }
  .desk-chat .chat-bubble-mine {
    border-bottom-right-radius: 0.35rem;
    box-shadow: 0 2px 12px rgba(94, 17, 116, 0.15);
  }
  .desk-chat .chat-bubble-theirs {
    background: #ecdfea;
    border-bottom-left-radius: 0.35rem;
    box-shadow: 0 1px 3px rgba(32, 25, 33, 0.05);
  }
  .desk-chat-composer {
    padding: 0.85rem 1.25rem 1rem;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(94, 17, 116, 0.04);
    flex-shrink: 0;
  }
  .desk-chat .chat-pending-image.is-open {
    display: block !important;
    margin-bottom: 0.5rem;
  }
  .desk-chat-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
  }
  .desk-chat .chat-input-wrap {
    border: none !important;
    box-shadow: none;
  }
  .desk-chat .chat-input-wrap:focus-within {
    box-shadow: 0 0 0 2px rgba(94, 17, 116, 0.18);
  }
  .desk-chat #chat-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  .desk-chat-drawer {
    width: 20rem;
    flex-shrink: 0;
    display: none;
    flex-direction: column;
    border-left: 1px solid rgba(210, 194, 208, 0.35);
    background: #f7eaf5;
    overflow-y: auto;
    min-height: 0;
    box-shadow: -8px 0 24px rgba(94, 17, 116, 0.08);
  }
  .desk-chat-drawer.is-open {
    display: flex;
  }

  /* —— Desktop inbox (/meldinger) —— */
  html:has(body.desktop-app):has(.desk-inbox) {
    overflow: hidden;
    height: 100%;
  }
  body.desktop-app:has(.desk-inbox) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  .desk-inbox.desktop-main {
    background: #fff7fb;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    padding-top: 5rem;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .desk-inbox-frame {
    flex: 1 1 0;
    min-height: 0;
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    padding: 0.75rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .desk-inbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    flex-shrink: 0;
  }
  .desk-inbox-shell {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
      0 4px 24px -2px rgba(94, 17, 116, 0.08),
      0 2px 8px -1px rgba(43, 36, 44, 0.04);
  }
  .desk-inbox-list {
    width: 24rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fdf0fb;
    border-right: 1px solid rgba(210, 194, 208, 0.35);
    min-height: 0;
    overflow: hidden;
  }
  @media (max-width: 1279px) {
    .desk-inbox-list {
      width: 20rem;
    }
  }
  .desk-inbox-empty {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 247, 251, 0.55);
  }

  /* —— Desktop confirmed date (/date/{id}) —— */
  .desk-date {
    background: #fff7fb;
    min-height: calc(100dvh - 5rem);
  }
  .desk-date-frame {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 3rem 2.5rem;
  }
  .desk-date-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
  }
  .desk-date-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: start;
  }
  @media (max-width: 1279px) {
    .desk-date-shell {
      grid-template-columns: 1fr;
    }
  }
  .desk-date-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .desk-date-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #400052 0%, #5e1174 48%, #a13e28 120%);
    box-shadow: 0 8px 28px -6px rgba(94, 17, 116, 0.28);
  }
  .desk-date-hero.is-declined {
    background: linear-gradient(135deg, #352e36 0%, #4e434f 60%, #807380 120%);
  }
  .desk-date-hero.is-pending {
    background: linear-gradient(135deg, #400052 0%, #6e2483 55%, #244b5e 120%);
  }
  .desk-date-hero-orb {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(20px);
    pointer-events: none;
  }
  .desk-date-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 6px rgba(94, 17, 116, 0.06);
  }
  .desk-date-tips {
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 6px rgba(94, 17, 116, 0.06);
  }
  .desk-date-safety {
    padding: 0.85rem 1rem;
    background: rgba(241, 228, 239, 0.7);
    border-radius: 0.75rem;
  }
  .desk-date-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .desk-date-venue {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow:
      0 4px 20px -2px rgba(94, 17, 116, 0.1),
      0 2px 6px -1px rgba(43, 36, 44, 0.04);
  }
  .desk-date-venue-media {
    position: relative;
    height: 16rem;
    background: #ecdfea;
  }
  .desk-date-venue-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 70%);
    pointer-events: none;
  }
  .desk-date-venue-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }
  .desk-date-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.35rem;
    border-radius: 0.5rem;
    background: #f1e4ef;
    color: #201921;
    transition: background 140ms ease;
  }
  .desk-date-action:hover {
    background: #ecdfea;
  }
  .desk-date-weather {
    padding: 1.15rem 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(105deg, #133d4f 0%, #002736 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 39, 54, 0.2);
  }
  .desk-date-cta {
    padding: 0.25rem 0 0.5rem;
  }

  /* Hide mobile chrome on desktop when marked */
  .layout-mobile {
    display: none !important;
  }

  /* —— Auth split (login / register) —— */
  .desk-auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: 100dvh;
  }
  .desk-auth-hero {
    padding: 3rem;
  }
  .desk-register-hero {
    height: 100dvh;
    padding: 3.5rem 3.5rem 30px;
  }
  .desk-auth-panel {
    padding: 3rem 4rem;
    min-width: 0;
  }
  .desk-auth-inner {
    width: 100%;
  }

  /* —— Fluid desktop shells (1024–1279) —— */
  @media (max-width: 1279px) {
    .desktop-header-inner {
      padding: 0 1.25rem;
      gap: 0.75rem;
    }
    .desktop-nav-pill {
      padding: 0.3rem 0.7rem;
      font-size: 13px;
    }
    .desktop-shell,
    .desktop-legal {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
    .desk-settings-frame,
    .desk-invite-frame,
    .desk-inbox-frame,
    .desk-date-frame,
    .desk-chat-frame {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
    .px-margin-desktop {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
    .desk-auth-split {
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }
    .desk-auth-hero {
      padding: 2rem 1.5rem;
    }
    .desk-register-hero {
      padding: 2rem 1.5rem 30px;
    }
    .desk-auth-panel {
      padding: 2rem 1.5rem;
    }
    .desk-register-step-label {
      display: none;
    }
    .desk-invite-stats {
      grid-template-columns: 1fr;
    }
    .desktop-explore-grid {
      grid-template-columns: 1fr;
    }
    .desktop-messages {
      grid-template-columns: 18rem minmax(0, 1fr);
    }
    .desktop-messages.has-drawer {
      grid-template-columns: 16rem minmax(0, 1fr) 16rem;
    }
  }

  /* —— Wide desktop (≥1536) —— */
  @media (min-width: 1536px) {
    .desktop-header-inner,
    .desktop-shell,
    .desk-settings-frame,
    .desk-invite-frame {
      padding-left: 3.5rem;
      padding-right: 3.5rem;
    }
  }

  /* —— Short desktop viewports —— */
  @media (max-height: 800px) {
    .desk-register-hero {
      overflow-y: auto;
    }
    .desk-auth-hero .font-headline-xl {
      font-size: 28px;
      line-height: 34px;
    }
  }
}

/* Tablet / compact laptop: keep desktop layout but tighten further */
@media (min-width: 1024px) and (max-width: 1100px) {
  .desk-auth-split {
    grid-template-columns: 1fr;
  }
  .desk-auth-hero {
    min-height: 280px;
    height: auto;
    position: relative !important;
  }
  .desk-register-hero {
    height: auto;
    min-height: 260px;
    position: relative !important;
  }
  .desk-auth-panel {
    padding: 1.75rem 1.5rem 2.5rem;
  }
}

@media (max-width: 1023px) {
  .desktop-only,
  .desktop-only-flex,
  .desktop-only-grid,
  .layout-desktop {
    display: none !important;
  }
}
