

/*
 DATE48 V70 — PEOPLE PROFILE DESKTOP

 Based on verified browser DOM:
 main.date48-profile-ref

 Native sections:
 hero, identity, moments, interests,
 between, profile, prompts, geo, actions.

 Desktop only.
 Existing React components and links retained.
*/

@media (min-width:1200px) {

  /*
   Scope every layout change to the
   page displaying another person's profile.
  */

  html body:has(main.date48-profile-ref) {
    --people-bg:#fbf8f6;
    --people-paper:#fffdfb;
    --people-ink:#271c22;
    --people-muted:#87777d;
    --people-border:rgba(75,38,53,.12);
    --people-accent:#a33d61;
    --people-soft:#f7eeef;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    background:var(--people-bg)!important;
    color:var(--people-ink)!important;
  }

  html.date48-message-life-dark
  body:has(main.date48-profile-ref) {
    --people-bg:#0d0a0b;
    --people-paper:#1c1519;
    --people-ink:#f6edf1;
    --people-muted:#baa8af;
    --people-border:rgba(245,219,232,.14);
    --people-accent:#d28aa5;
    --people-soft:#261b21;
  }

  /*
   Make the application use desktop width.
   This corrects the verified 432px shell.
  */

  html body:has(main.date48-profile-ref)
  main.app-page {
    box-sizing:border-box!important;

    display:block!important;

    width:calc(100% - 220px)!important;
    max-width:none!important;
    min-width:0!important;

    margin:0 0 0 220px!important;
    padding:0 30px 90px!important;

    background:var(--people-bg)!important;
  }

  html body:has(main.date48-profile-ref)
  .app-shell {
    box-sizing:border-box!important;

    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    margin:0!important;
    padding:0!important;

    background:transparent!important;
  }

  html body:has(main.date48-profile-ref)
  section.screen-body {
    box-sizing:border-box!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    margin:0!important;
    padding:0!important;

    background:transparent!important;
  }

  /*
   Turn existing mobile bottom navigation
   into a real desktop sidebar.

   Existing five navigation links retained.
  */

  html body:has(main.date48-profile-ref)
  nav.bottom-nav.date48-clean-bottom-bar {
    box-sizing:border-box!important;

    position:fixed!important;

    top:86px!important;
    left:5px!important;
    right:auto!important;
    bottom:auto!important;

    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;

    gap:9px!important;

    width:215px!important;
    max-width:215px!important;
    height:calc(100vh - 91px)!important;

    margin:0!important;
    padding:137px 14px 75px!important;

    border:1px solid var(--people-border)!important;
    border-radius:13px 0 0 13px!important;

    background:var(--people-paper)!important;
    box-shadow:none!important;

    transform:none!important;

    overflow-x:hidden!important;
    overflow-y:auto!important;

    z-index:200!important;
  }

  html body:has(main.date48-profile-ref)
  nav.bottom-nav.date48-clean-bottom-bar::before {
    content:"Date48 ♥"!important;

    position:absolute!important;
    left:31px!important;
    top:26px!important;

    font-family:Georgia,"Times New Roman",serif!important;
    font-size:32px!important;
    font-weight:400!important;
    letter-spacing:-.065em!important;

    color:var(--people-ink)!important;
  }

  html body:has(main.date48-profile-ref)
  nav.bottom-nav.date48-clean-bottom-bar::after {
    content:"НАСТОЯЩИЕ ЛЮДИ БЛИЖЕ, ЧЕМ КАЖЕТСЯ"!important;

    position:absolute!important;
    left:31px!important;
    top:76px!important;

    width:145px!important;

    font-size:8px!important;
    line-height:1.5!important;
    letter-spacing:.18em!important;

    color:var(--people-muted)!important;
    pointer-events:none!important;
  }

  html body:has(main.date48-profile-ref)
  nav.bottom-nav.date48-clean-bottom-bar > a {
    box-sizing:border-box!important;

    position:relative!important;

    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;

    flex:0 0 auto!important;

    gap:12px!important;

    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:45px!important;

    margin:0!important;
    padding:8px 12px!important;

    border:0!important;
    border-radius:12px!important;

    background:transparent!important;
    color:var(--people-ink)!important;

    transform:none!important;
    box-shadow:none!important;
    text-decoration:none!important;
  }

  html body:has(main.date48-profile-ref)
  nav.bottom-nav.date48-clean-bottom-bar
  > a:is(.active,[aria-current="page"]) {
    background:var(--people-accent)!important;
    color:#fff!important;
  }

  /*
   Main profile: two-column editorial layout.
  */

  html body:has(main.date48-profile-ref)
  main.date48-profile-ref {
    box-sizing:border-box!important;

    display:grid!important;

    grid-template-columns:
      minmax(0,1.04fr)
      minmax(0,1fr)!important;

    grid-template-areas:
      "hero identity"
      "hero actions"
      "hero between"
      "moments profile"
      "interests prompts"
      "geo geo"!important;

    grid-template-rows:auto!important;
    grid-auto-flow:row!important;

    align-items:start!important;
    column-gap:29px!important;
    row-gap:22px!important;

    width:100%!important;
    max-width:1120px!important;
    min-width:0!important;

    margin:34px auto 65px!important;
    padding:0!important;

    background:transparent!important;
    box-shadow:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref > section {
    box-sizing:border-box!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;

    margin:0!important;
  }

  /*
   1. Large cinematic photograph.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__hero {
    grid-area:hero!important;

    position:relative!important;
    align-self:stretch!important;

    min-height:560px!important;
    height:100%!important;

    aspect-ratio:auto!important;

    border-radius:25px!important;
    overflow:hidden!important;

    background:var(--people-paper)!important;
    box-shadow:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__hero-backdrop {
    display:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__hero-image {
    position:absolute!important;
    inset:0!important;

    width:100%!important;
    height:100%!important;
    max-height:none!important;

    object-fit:cover!important;
    object-position:center!important;

    border-radius:0!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__hero-shade {
    position:absolute!important;
    inset:0!important;

    width:100%!important;
    height:100%!important;

    pointer-events:none!important;
  }

  /*
   2. Identity: beautiful large typography.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__identity {
    grid-area:identity!important;

    padding:9px 5px 4px!important;

    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__identity h1 {
    margin:0!important;

    font-family:Georgia,"Times New Roman",serif!important;
    font-size:clamp(42px,3.9vw,61px)!important;

    line-height:1.06!important;
    letter-spacing:-.055em!important;
    font-weight:400!important;

    color:var(--people-ink)!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__bio {
    margin-top:10px!important;
    font-size:14px!important;
    line-height:1.65!important;
    color:var(--people-muted)!important;
  }

  /*
   3. Actions stay next to identity.
   Original React onClick handlers retained.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__actions {
    grid-area:actions!important;

    display:grid!important;
    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;

    gap:11px!important;

    position:static!important;

    padding:0!important;

    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__actions
  .date48-profile-ref__action {
    box-sizing:border-box!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:52px!important;

    margin:0!important;
    padding:11px 14px!important;

    border-radius:13px!important;
    font-size:13px!important;
  }

  /*
   4. Compatibility / conversation starters.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__v3-between {
    grid-area:between!important;

    padding:22px!important;

    border:1px solid var(--people-border)!important;
    border-radius:21px!important;

    background:var(--people-soft)!important;
    box-shadow:none!important;
  }

  /*
   5. Moments and interests on the left.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref > .date48-profile-ref__section {
    background:transparent!important;
    box-shadow:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref > .date48-profile-ref__section:nth-child(3) {
    grid-area:moments!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref > .date48-profile-ref__section:nth-child(4) {
    grid-area:interests!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__moments {
    display:grid!important;

    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;

    gap:12px!important;

    width:100%!important;
    min-width:0!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__moments img {
    display:block!important;

    width:100%!important;
    height:100%!important;

    aspect-ratio:1/1!important;

    object-fit:cover!important;
    border-radius:15px!important;
  }

  /*
   6. Personal facts on the right.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__v3-profile {
    grid-area:profile!important;

    padding:22px!important;

    border:1px solid var(--people-border)!important;
    border-radius:21px!important;

    background:var(--people-paper)!important;
    box-shadow:none!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__v3-facts {
    display:grid!important;
    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;

    gap:10px!important;

    width:100%!important;
    min-width:0!important;
  }

  /*
   7. Answers to questions.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__v3-prompts {
    grid-area:prompts!important;

    padding:22px!important;

    border:1px solid var(--people-border)!important;
    border-radius:21px!important;

    background:var(--people-paper)!important;
    box-shadow:none!important;
  }

  /*
   8. Optional geo section.
   Do not force hidden geo tools to appear.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__geo {
    grid-area:geo!important;
  }

  /*
   Shared editorial typography.
  */

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__section-head {
    margin-bottom:15px!important;
  }

  html body:has(main.date48-profile-ref)
  .date48-profile-ref__section-head h2 {
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:27px!important;
    font-weight:400!important;
    line-height:1.2!important;
    letter-spacing:-.035em!important;

    color:var(--people-ink)!important;
  }

  /*
   Interactive elements remain accessible.
  */

  html body:has(main.date48-profile-ref)
  :is(a,button):focus-visible {
    outline:2px solid var(--people-accent)!important;
    outline-offset:3px!important;
  }

  /*
   No extra mobile bottom navigation
   is created. We reuse the existing one.
  */

}

/*
 Respect reduced-motion preferences.
*/

@media (prefers-reduced-motion:reduce) {
  html body:has(main.date48-profile-ref)
  .date48-profile-ref * {
    scroll-behavior:auto!important;
  }
}
