/* V162 · Mobile Reality Pass
   Fixes responsive execution after real-device review.
   No data, auth, API, or member-content changes. */

/* A semantic <header> inside a session must not inherit the global site header layout. */
[data-surface="member"] .member-session-hero{
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0 0 28px!important;
  background:transparent!important;
  border:0!important;
  position:static!important;
}
[data-surface="member"] .member-session-hero .session-meta{
  display:block;
  margin:0 0 8px!important;
}
[data-surface="member"] .member-session-hero h2{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 0 10px!important;
  white-space:normal!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
}
[data-surface="member"] .member-session-summary{
  display:block;
  width:auto;
  max-width:42rem;
}

/* The member home should lead with the record, not an oversized account header. */
[data-surface="member"] .member-head{
  margin-top:8px!important;
  margin-bottom:22px!important;
  gap:8px!important;
}
[data-surface="member"] .member-head .member-kicker{margin-bottom:2px}
[data-surface="member"] .member-head h1{margin-top:5px!important;margin-bottom:5px!important}
[data-surface="member"] .member-actions{margin-top:0}
[data-surface="member"] .list-heading{margin-top:0!important;margin-bottom:14px!important}
[data-surface="member"] .list-heading h2{
  font-size:26px!important;
  line-height:1.2!important;
  margin:5px 0 5px!important;
  font-weight:500!important;
}
[data-surface="member"] .list-heading p{max-width:34rem}
[data-surface="member"] .member-session-row{
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}

/* Take Home belongs to the session flow: no large outer card. */
[data-surface="member"] .member-take-home{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding-left:0!important;
  padding-right:0!important;
}
[data-surface="member"] .member-take-home::before{display:none!important}
[data-surface="member"] .member-take-home .homework-task-list{border:0!important}
[data-surface="member"] .member-take-home-row{border-radius:0!important}

/* 'I tried this' should feel like a light acknowledgement, not a form submission. */
[data-surface="member"] .member-take-home-row .home-practice-tried{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--muted,#7d7370);
}
[data-surface="member"] .member-take-home-row .home-practice-tried input{
  width:20px!important;
  height:20px!important;
  margin:0!important;
}

/* Reflection is part of the narrative, not another card. */
[data-surface="member"] .member-session-reflection .quick-reflection-card{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
[data-surface="member"] .member-session-reflection .quick-reflection-card::before{display:none!important}
[data-surface="member"] .member-session-reflection .reflection-chip{
  box-shadow:none!important;
}

/* Tighten vertical rhythm without reducing touch targets. */
@media(max-width:700px){
  [data-surface="member"] .member-page{padding-top:10px!important}
  [data-surface="member"] .member-head{
    margin-top:2px!important;
    margin-bottom:18px!important;
    gap:4px!important;
  }
  [data-surface="member"] .member-head h1{font-size:34px!important;line-height:1.06!important}
  [data-surface="member"] .member-intro{font-size:12.5px!important;line-height:1.58!important}
  [data-surface="member"] .member-actions button{min-height:38px!important}
  [data-surface="member"] .list-heading h2{font-size:24px!important}
  [data-surface="member"] .list-heading p{font-size:12px!important;line-height:1.58!important}
  [data-surface="member"] .member-session-row{padding:15px 2px!important}
  [data-surface="member"] .session-row-title{font-size:19px!important;margin:4px 0!important}
  [data-surface="member"] .session-row-meta{font-size:10.5px!important;line-height:1.5!important}

  [data-surface="member"] .member-session-ia{padding-top:15px!important}
  [data-surface="member"] .latest-label{margin-bottom:15px!important}
  [data-surface="member"] .member-session-hero{margin-bottom:21px!important}
  [data-surface="member"] .member-session-hero h2{font-size:28px!important;line-height:1.14!important}
  [data-surface="member"] .member-session-summary{font-size:14px!important;line-height:1.64!important}
  [data-surface="member"] .member-session-section{padding:21px 0!important}

  [data-surface="member"] .member-take-home-row .home-practice-tried{
    margin-top:10px!important;
  }
  [data-surface="member"] .member-session-reflection .reflection-chips{gap:7px!important}
}
