/* Homepage visual language aligned with Percorso Salute.
   Scoped to .home-shell so inner pages and app logic remain untouched. */

.home-shell .app-stage,
.home-shell .app-main{
  background:#fbfdfd;
}

.home-shell .compact-home{
  width:min(900px,100%);
  display:grid;
  gap:24px;
  padding-top:28px;
  padding-bottom:38px;
}

/* Flatten the active journey: content sits on the page instead of inside one large dashboard panel. */
.home-shell .home-resume-card{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:12px 16px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.home-shell .home-resume-art{
  width:82px;
  height:82px;
  border:1px solid rgba(0,110,157,.10);
  border-radius:50%;
  background:radial-gradient(circle at 38% 30%,#f2fbff 0%,#e9f5fa 62%,#fff 100%);
  box-shadow:0 16px 34px -28px rgba(0,88,126,.34);
}

.home-shell .home-resume-copy{
  align-self:center;
}

.home-shell .home-resume-copy .app-kicker{
  margin:0 0 5px;
  font-size:.78rem;
  letter-spacing:.12em;
}

.home-shell .home-resume-copy h2{
  margin:0 0 5px;
  font-size:clamp(1.65rem,6vw,2.15rem);
  line-height:1.05;
  letter-spacing:-.04em;
}

.home-shell .home-resume-copy p{
  margin:0;
  font-size:.95rem;
  line-height:1.4;
}

.home-shell .home-resume-primary{
  grid-column:1/-1;
  min-height:56px;
  margin-top:2px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--primary),#087fae);
  box-shadow:0 18px 34px -26px rgba(0,88,126,.56);
  font-size:1.02rem;
  font-weight:800;
}

.home-shell .home-resume-stats{
  grid-column:1/-1;
  justify-content:center;
  gap:8px;
}

.home-shell .home-resume-stats span{
  padding:7px 11px;
  border:1px solid rgba(0,110,157,.10);
  background:#fff;
  border-radius:999px;
  font-size:.8rem;
  box-shadow:0 10px 24px -22px rgba(15,42,55,.35);
}

.home-shell .home-exercise-progress{
  grid-column:1/-1;
  padding:12px 14px;
  border:1px solid rgba(0,110,157,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:none;
}

/* Change-path control becomes a simple standalone card. */
.home-shell .home-path-switcher{
  grid-column:1/-1;
  margin-top:2px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 38px -34px rgba(15,42,55,.42);
}

.home-shell .home-path-switcher>summary{
  min-height:66px;
  padding:12px 15px;
  color:var(--ink-strong);
  font-weight:800;
}

.home-shell .home-path-switcher>summary span{
  display:grid;
  gap:1px;
}

.home-shell .home-path-switcher>summary small{
  color:var(--muted);
  font-size:.8rem;
  font-weight:500;
}

.home-shell .home-path-switcher>summary::after{
  content:"⌄";
  width:34px;
  height:34px;
  border-radius:12px;
  background:#edf6fa;
  color:var(--primary);
  font-size:1.12rem;
  transition:transform .18s ease;
}

.home-shell .home-path-switcher[open]>summary::after{
  content:"⌄";
  transform:rotate(180deg);
}

.home-shell .home-path-switcher-body{
  gap:16px;
  padding:16px 14px 15px;
  border-top:1px solid rgba(0,110,157,.08);
  background:#fcfefe;
}

.home-shell .home-path-switcher-body .home-picker-head{
  padding:2px 2px 0;
}

.home-shell .home-path-switcher-body .home-picker-head h2{
  margin-bottom:5px;
  font-size:1.35rem;
}

.home-shell .home-path-switcher-body .home-picker-head p{
  font-size:.88rem;
}

/* Intervention cards: airy, soft and close to the Percorso Salute rhythm. */
.home-shell .home-path-grid{
  gap:12px;
}

.home-shell .home-path-grid .journey-tile{
  min-height:154px;
  padding:12px 8px 14px;
  border:1px solid rgba(38,67,79,.11);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 30px -28px rgba(15,42,55,.44);
}

.home-shell .home-path-grid .journey-tile.is-selected{
  border-color:var(--primary);
  background:#f3f9fc;
  box-shadow:0 0 0 1px rgba(0,110,157,.06),0 18px 34px -30px rgba(0,88,126,.52);
}

.home-shell .home-path-grid .journey-art{
  width:78px;
  height:78px;
  border-color:rgba(0,110,157,.08);
  box-shadow:none;
}

.home-shell .home-path-grid .journey-copy strong{
  font-size:1rem;
}

.home-shell .home-path-grid .journey-copy small{
  margin-top:2px;
  font-size:.74rem;
}

.home-shell .home-path-grid .journey-selected-badge{
  top:10px;
  right:10px;
  padding:4px 8px;
  font-size:.64rem;
}

/* Device becomes a separate visual block, no longer another nested dashboard row. */
.home-shell .home-resume-device{
  grid-column:1/-1;
  min-height:72px;
  margin-top:2px;
  padding:13px 14px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 38px -34px rgba(15,42,55,.42);
}

.home-shell .home-device-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  background:#edf6fa;
  color:var(--primary);
}

.home-shell .home-device-svg{
  width:22px;
  height:22px;
}

.home-shell .home-resume-device>span.home-device-copy{
  flex:1 1 auto;
}

.home-shell .home-resume-device small{
  font-size:.76rem;
  line-height:1.3;
}

.home-shell .home-resume-device strong{
  margin-top:1px;
  font-size:1rem;
  color:var(--ink-strong);
}

/* Doctor and useful contacts stay functionally identical, with lighter standalone cards. */
.home-shell .home-doctor-row{
  border:1px solid rgba(38,67,79,.11);
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 38px -34px rgba(15,42,55,.42);
}

.home-shell .home-doctor-row .doctor-avatar{
  border-radius:15px;
}

.home-shell .home-doctor-copy .app-kicker{
  color:var(--primary);
  letter-spacing:.10em;
}

.home-shell .home-doctor-copy h2{
  color:var(--ink-strong);
}

.home-shell .compact-home>.useful-contacts-section{
  margin-top:0;
}

.home-shell .compact-home>.useful-contacts-section .app-section-head{
  margin-bottom:12px;
}

.home-shell .compact-home>.useful-contacts-section .app-section-head h2{
  font-size:1.45rem;
}

.home-shell .useful-contacts-grid{
  gap:10px;
}

.home-shell .useful-contact-card{
  min-height:68px;
  padding:12px 13px;
  border:1px solid rgba(38,67,79,.11);
  border-radius:20px;
  background:#fff;
  box-shadow:none;
}

.home-shell .useful-contact-copy small{
  color:var(--accent-action);
  font-size:.73rem;
  letter-spacing:.10em;
}

.home-shell .useful-contact-copy strong{
  color:var(--ink-strong);
}

.home-shell .useful-contact-actions a{
  min-width:44px;
  min-height:44px;
  justify-content:center;
  padding:8px 10px;
  border-radius:13px;
  background:#fff;
}

.home-shell .useful-contact-actions a[data-contact-action="whatsapp"]{
  border-color:#bfe3c7;
  color:#24883a;
}

.home-shell .useful-contact-actions a span{
  display:none;
}

.home-shell .home-storage-note{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:0 4px;
  color:#7b8d96;
  font-size:.78rem;
  line-height:1.5;
}

.home-shell .home-storage-icon{
  width:17px;
  height:17px;
  flex:0 0 auto;
  margin-top:1px;
}

/* Home-only bottom navigation refinement. */
.home-shell .app-bottom-nav{
  left:max(10px,env(safe-area-inset-left));
  right:max(10px,env(safe-area-inset-right));
  bottom:max(10px,env(safe-area-inset-bottom));
  padding:4px 5px;
  border:1px solid rgba(0,110,157,.12);
  border-radius:20px;
  background:#fff;
  box-shadow:0 22px 48px -28px rgba(0,68,98,.34);
}

.home-shell .app-bottom-nav .app-nav-item{
  min-height:48px;
  border-radius:14px;
}

.home-shell .app-bottom-nav .app-nav-item.is-active{
  background:#edf6fa;
  box-shadow:inset 0 -3px 0 rgba(243,112,34,.72);
}

/* Mobile/tablet header: same soft white rounded-band language as Percorso Salute. */
@media(max-width:1023px){
  .home-shell .app-topbar{
    min-height:72px;
    height:auto;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border:0;
    border-bottom:1px solid rgba(219,230,236,.72);
    border-radius:0 0 22px 22px;
    background:#fff;
    box-shadow:0 14px 34px -30px rgba(15,42,55,.42);
  }

  .home-shell .topbar-spacer{
    display:block;
    grid-column:1;
    grid-row:1;
  }

  .home-shell .mobile-brand{
    display:flex;
    grid-column:2;
    grid-row:1;
    justify-self:center;
    justify-content:center;
  }

  .home-shell .mobile-brand .medirent-brand-logo{
    width:108px;
    max-height:44px;
    object-position:center;
  }

  .home-shell .topbar-help{
    grid-column:3;
    grid-row:1;
    justify-self:end;
    width:42px;
    height:42px;
    border-radius:14px;
    background:#fffdfb;
  }
}

@media(max-width:759px){
  .home-shell .app-topbar{
    min-height:68px;
    padding:5px 12px;
    border-radius:0 0 20px 20px;
  }
  .home-shell .mobile-brand .medirent-brand-logo{
    width:102px;
    max-height:40px;
  }
  .home-shell .topbar-help{
    width:40px;
    height:40px;
    border-radius:13px;
  }
}

@media(max-width:520px){
  .home-shell .compact-home{
    gap:20px;
    padding:18px 18px 34px;
  }

  .home-shell .home-resume-card{
    grid-template-columns:72px minmax(0,1fr);
    gap:11px 13px;
  }

  .home-shell .home-resume-art{
    width:72px;
    height:72px;
  }

  .home-shell .home-resume-copy h2{
    font-size:1.62rem;
  }

  .home-shell .home-resume-copy p{
    font-size:.88rem;
  }

  .home-shell .home-resume-primary{
    min-height:54px;
    border-radius:17px;
  }

  .home-shell .home-path-grid .journey-tile{
    min-height:148px;
  }

  .home-shell .home-path-grid .journey-art{
    width:72px;
    height:72px;
  }

  .home-shell .home-doctor-row{
    grid-template-columns:46px minmax(0,1fr) 19px;
    padding:13px;
  }

  .home-shell .home-doctor-row .doctor-avatar{
    width:46px;
    height:46px;
  }

  .home-shell .home-doctor-copy h2{
    font-size:.96rem;
  }
}

@media(min-width:760px){
  .home-shell .compact-home{
    gap:26px;
    padding-top:34px;
  }

  .home-shell .home-resume-card{
    grid-template-columns:92px minmax(0,1fr);
    gap:14px 18px;
  }

  .home-shell .home-resume-art{
    width:92px;
    height:92px;
  }

  .home-shell .home-path-switcher-body{
    padding:18px;
  }

  .home-shell .home-path-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(min-width:1024px){
  .home-shell .compact-home{
    width:min(920px,100%);
    padding-top:40px;
    padding-bottom:58px;
  }

  .home-shell .home-resume-card{
    grid-template-columns:96px minmax(0,1fr);
  }

  .home-shell .home-resume-art{
    width:96px;
    height:96px;
  }

  .home-shell .home-resume-primary{
    max-width:620px;
  }

  .home-shell .home-resume-stats{
    justify-content:flex-start;
  }
}


/* Keep the approved Home layout; only normalize the fixed dashboard outline. */
@media(max-width:1023px){
  .home-shell .app-bottom-nav{
    overflow:hidden;
    border:1px solid #d4e3ea!important;
    outline:1px solid rgba(0,110,157,.06);
    outline-offset:0;
    border-radius:22px!important;
    background:#fff!important;
    box-shadow:0 0 0 1px rgba(255,255,255,.92),0 18px 44px -28px rgba(0,88,126,.34)!important;
  }
}


/* Bottom navigation only: slightly larger while preserving the approved Home content/layout. */
@media(max-width:1023px){
  .home-shell .app-bottom-nav{
    padding:6px 7px!important;
    border-radius:22px!important;
    background:#fff!important;
  }
  .home-shell .app-bottom-nav .app-nav-item{
    min-height:54px;
    gap:3px;
  }
}
@media(max-width:759px){
  .home-shell .app-bottom-nav .app-nav-item{
    font-size:.76rem;
  }
}


/* Compact only the intervention cards inside the "Cambia percorso" dropdown. */
.home-shell .home-path-switcher-body .home-path-grid{gap:9px}
.home-shell .home-path-switcher-body .home-path-grid .journey-tile{
  min-height:118px;
  padding:8px 6px 10px;
  border-radius:18px;
}
.home-shell .home-path-switcher-body .home-path-grid .journey-art{
  width:54px;
  height:54px;
}
.home-shell .home-path-switcher-body .home-path-grid .journey-copy strong{font-size:.9rem}
.home-shell .home-path-switcher-body .home-path-grid .journey-copy small{
  margin-top:1px;
  font-size:.68rem;
}
.home-shell .home-path-switcher-body .home-path-grid .journey-selected-badge{
  top:7px;
  right:7px;
  padding:3px 7px;
  font-size:.58rem;
}
@media(min-width:760px){
  .home-shell .home-path-switcher-body .home-path-grid .journey-tile{min-height:126px}
  .home-shell .home-path-switcher-body .home-path-grid .journey-art{
    width:60px;
    height:60px;
  }
}


/* Lightly fill the Home with a useful compact phase overview, without bringing doctor/support cards back. */
.home-shell .home-phase-overview{
  grid-column:1/-1;
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid rgba(0,110,157,.11);
  border-radius:20px;
  background:#fff;
  box-shadow:0 16px 34px -32px rgba(15,42,55,.35);
}
.home-shell .home-phase-overview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.home-shell .home-phase-overview-head>span{
  color:var(--ink-strong);
  font-size:.82rem;
  font-weight:800;
}
.home-shell .home-phase-overview-head>strong{
  color:var(--primary);
  font-size:.76rem;
  font-weight:850;
}
.home-shell .home-phase-overview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.home-shell .home-phase-overview-item{
  min-width:0;
  display:grid;
  place-items:center;
  gap:4px;
  padding:8px 4px;
  border:1px solid rgba(0,110,157,.10);
  border-radius:13px;
  background:#f8fbfc;
  color:#7b8d96;
  text-decoration:none;
}
.home-shell .home-phase-overview-item>span{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#edf3f6;
  font-size:.72rem;
  font-weight:850;
}
.home-shell .home-phase-overview-item>small{
  overflow:hidden;
  max-width:100%;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.66rem;
  font-weight:750;
}
.home-shell .home-phase-overview-item.is-current{
  border-color:rgba(0,110,157,.24);
  background:#edf6fa;
  color:var(--primary);
}
.home-shell .home-phase-overview-item.is-current>span{
  background:var(--primary);
  color:#fff;
}
.home-shell .home-phase-overview-item.is-seen{
  border-color:rgba(66,139,80,.16);
  background:#f1f8f3;
  color:#347246;
}
.home-shell .home-phase-overview-item.is-seen>span{
  background:#dfeee3;
  color:#347246;
}
@media(max-width:520px){
  .home-shell .home-phase-overview{
    padding:12px;
    border-radius:18px;
  }
  .home-shell .home-phase-overview-grid{gap:5px}
  .home-shell .home-phase-overview-item{
    padding:7px 2px;
    border-radius:12px;
  }
  .home-shell .home-phase-overview-item>small{font-size:.62rem}
}


/* Home responsive lock 2026-09-30: keep mobile untouched; align tablet/desktop hierarchy and keep bottom nav on desktop. */

/* Tablet and desktop: force the same visual reading order as the approved mobile home. */
@media(min-width:760px){
  .doctor-home-shell .home-resume-card{
    grid-template-columns:92px minmax(0,1fr);
    align-items:start;
  }
  .doctor-home-shell .home-resume-art{
    grid-column:1;
    grid-row:1;
    width:92px;
    height:92px;
  }
  .doctor-home-shell .home-resume-copy{
    grid-column:2;
    grid-row:1;
    align-self:center;
  }
  .doctor-home-shell .home-resume-primary{
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    max-width:none;
  }
  .doctor-home-shell .home-resume-stats{
    grid-column:1/-1;
    grid-row:3;
    justify-self:start;
    margin-top:0;
  }
  .doctor-home-shell .home-exercise-progress{
    grid-column:1/-1;
    grid-row:4;
  }
  .doctor-home-shell .home-path-switcher{
    grid-column:1/-1;
    grid-row:5;
  }
  .doctor-home-shell .home-resume-device{
    grid-column:1/-1;
    grid-row:6;
    margin-top:0;
  }
  .doctor-home-shell .home-phase-overview{
    grid-column:1/-1;
    grid-row:7;
  }
}

/* Desktop home behaves like the tablet/Percorso Salute shell: no left sidebar,
   centered header/content, and the same navigation dock fixed to the viewport bottom. */
@media(min-width:1024px){
  .app-shell.doctor-home-shell{
    display:block;
  }

  .doctor-home-shell .app-sidebar{
    display:none;
  }

  .doctor-home-shell .app-stage{
    min-height:100vh;
    min-height:100dvh;
  }

  .doctor-home-shell .app-topbar{
    position:sticky;
    top:0;
    z-index:40;
    min-height:72px;
    height:auto;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 44px;
    align-items:center;
    gap:8px;
    padding:6px 28px;
    border:0;
    border-bottom:1px solid rgba(219,230,236,.72);
    border-radius:0 0 22px 22px;
    background:#fff;
    box-shadow:0 14px 34px -30px rgba(15,42,55,.42);
  }

  .doctor-home-shell .topbar-spacer{
    display:block;
    grid-column:1;
    grid-row:1;
  }

  .doctor-home-shell .mobile-brand{
    display:flex;
    grid-column:2;
    grid-row:1;
    justify-self:center;
    justify-content:center;
  }

  .doctor-home-shell .mobile-brand .medirent-brand-logo{
    width:108px;
    max-height:44px;
    object-position:center;
  }

  .doctor-home-shell .topbar-help{
    grid-column:3;
    grid-row:1;
    justify-self:end;
    width:42px;
    height:42px;
    border-radius:14px;
    background:#fffdfb;
  }

  .doctor-home-shell .app-main{
    padding-bottom:112px;
  }

  .doctor-home-shell .compact-home{
    width:min(920px,calc(100% - 48px));
    padding-top:40px;
    padding-bottom:58px;
  }

  .doctor-home-shell .app-bottom-nav-backing{
    display:block;
    position:fixed;
    z-index:49;
    inset:auto 0 0;
    height:104px;
    background:#f5f8fa;
    opacity:1;
    pointer-events:none;
  }

  .doctor-home-shell .app-bottom-nav{
    display:grid;
    left:50%;
    right:auto;
    bottom:16px;
    width:min(900px,calc(100vw - 48px));
    transform:translateX(-50%);
    grid-template-columns:repeat(4,1fr);
    gap:3px;
    padding:6px;
    border:1px solid rgba(0,110,157,.12);
    border-radius:20px;
    background:#fff!important;
    box-shadow:0 22px 48px -28px rgba(0,68,98,.34);
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }

  .doctor-home-shell .app-bottom-nav .app-nav-item{
    min-height:50px;
  }
}


/* Desktop zoom pass 2026-09-30: enlarge Home to fill large screens. */
@media(min-width:1200px){
  .doctor-home-shell .app-topbar{
    min-height:108px;
    padding:12px 52px;
    border-radius:0 0 30px 30px;
  }
  .doctor-home-shell .mobile-brand .medirent-brand-logo{
    width:158px;
    max-height:64px;
  }
  .doctor-home-shell .topbar-help{
    width:56px;
    height:56px;
    border-radius:18px;
  }

  .doctor-home-shell .compact-home{
    width:min(1220px,calc(100% - 80px));
    gap:22px;
    padding-top:54px;
    padding-bottom:98px;
  }

  .doctor-home-shell .home-resume-card{
    grid-template-columns:116px minmax(0,1fr);
    gap:18px 24px;
  }
  .doctor-home-shell .home-resume-art{
    width:116px;
    height:116px;
  }
  .doctor-home-shell .home-resume-copy .app-kicker{
    font-size:.86rem;
  }
  .doctor-home-shell .home-resume-copy h2{
    font-size:2.35rem;
    margin-bottom:8px;
  }
  .doctor-home-shell .home-resume-copy p{
    font-size:1.05rem;
  }
  .doctor-home-shell .home-resume-primary{
    min-height:66px;
    border-radius:20px;
    font-size:1.12rem;
  }
  .doctor-home-shell .home-resume-stats{
    gap:10px;
  }
  .doctor-home-shell .home-resume-stats span{
    padding:8px 13px;
    font-size:.92rem;
  }
  .doctor-home-shell .home-exercise-progress{
    padding:16px 18px;
    border-radius:19px;
  }
  .doctor-home-shell .home-exercise-progress-head{
    font-size:.92rem;
  }
  .doctor-home-shell .home-path-switcher{
    border-radius:24px;
  }
  .doctor-home-shell .home-path-switcher>summary{
    min-height:72px;
    padding:15px 18px;
    font-size:1.06rem;
  }
  .doctor-home-shell .home-path-switcher>summary small{
    font-size:.88rem;
  }
  .doctor-home-shell .home-resume-device{
    min-height:84px;
    padding:16px 18px;
    border-radius:22px;
  }
  .doctor-home-shell .home-device-icon{
    width:50px;
    height:50px;
  }
  .doctor-home-shell .home-resume-device small{
    font-size:.84rem;
  }
  .doctor-home-shell .home-resume-device strong{
    font-size:1.08rem;
  }
  .doctor-home-shell .home-phase-overview{
    padding:18px;
    border-radius:23px;
  }
  .doctor-home-shell .home-phase-overview-head>span{
    font-size:.94rem;
  }
  .doctor-home-shell .home-phase-overview-head>strong{
    font-size:.88rem;
  }
  .doctor-home-shell .home-phase-overview-grid{
    gap:10px;
  }
  .doctor-home-shell .home-phase-overview-item{
    min-height:72px;
    padding:10px 6px;
    border-radius:16px;
  }
  .doctor-home-shell .home-phase-overview-item>span{
    width:30px;
    height:30px;
    font-size:.82rem;
  }
  .doctor-home-shell .home-phase-overview-item>small{
    font-size:.76rem;
  }
  .doctor-home-shell .home-storage-note{
    font-size:.86rem;
  }

  .doctor-home-shell .app-bottom-nav{
    bottom:20px;
    width:min(1180px,calc(100vw - 80px));
    padding:9px;
    border-radius:25px;
  }
  .doctor-home-shell .app-bottom-nav .app-nav-item{
    min-height:64px;
    font-size:1rem;
  }
  .doctor-home-shell .app-bottom-nav-backing{
    height:126px;
  }
}


/* Final tablet Home scale parity 2026-09-30. */
@media(min-width:760px) and (max-width:1023px){
  .home-shell .app-topbar{
    min-height:86px;
    padding:8px 28px;
    border-radius:0 0 26px 26px;
  }
  .home-shell .mobile-brand .medirent-brand-logo{
    width:132px;
    max-height:54px;
  }
  .home-shell .topbar-help{
    width:48px;
    height:48px;
    border-radius:15px;
  }

  .doctor-home-shell .compact-home,
  .home-shell .compact-home{
    width:min(900px,calc(100% - 44px));
    gap:21px;
    padding-top:44px;
    padding-bottom:88px;
  }

  .doctor-home-shell .home-resume-card,
  .home-shell .home-resume-card{
    grid-template-columns:106px minmax(0,1fr);
    gap:16px 21px;
    padding:25px;
    border-radius:25px;
  }
  .doctor-home-shell .home-resume-art,
  .home-shell .home-resume-art{
    width:106px;
    height:106px;
  }
  .doctor-home-shell .home-resume-copy h2,
  .home-shell .home-resume-copy h2{
    font-size:2.05rem;
    margin-bottom:6px;
  }
  .doctor-home-shell .home-resume-copy p,
  .home-shell .home-resume-copy p{
    font-size:.98rem;
  }
  .doctor-home-shell .home-resume-primary,
  .home-shell .home-resume-primary{
    min-height:60px;
    border-radius:19px;
    font-size:1.04rem;
  }
  .doctor-home-shell .home-resume-stats span,
  .home-shell .home-resume-stats span{
    padding:7px 11px;
    font-size:.86rem;
  }
  .doctor-home-shell .home-exercise-progress,
  .home-shell .home-exercise-progress{
    padding:15px 17px;
    border-radius:18px;
  }
  .doctor-home-shell .home-path-switcher,
  .home-shell .home-path-switcher{
    border-radius:22px;
  }
  .doctor-home-shell .home-path-switcher>summary,
  .home-shell .home-path-switcher>summary{
    min-height:64px;
    padding:13px 16px;
    font-size:1rem;
  }
  .doctor-home-shell .home-resume-device,
  .home-shell .home-resume-device{
    min-height:76px;
    padding:14px 16px;
    border-radius:20px;
  }
  .doctor-home-shell .home-device-icon,
  .home-shell .home-device-icon{
    width:46px;
    height:46px;
  }
  .doctor-home-shell .home-phase-overview,
  .home-shell .home-phase-overview{
    padding:17px;
    border-radius:22px;
  }

  .home-shell .home-path-switcher-body .home-path-grid .journey-tile{
    min-height:138px;
  }
  .home-shell .home-path-switcher-body .home-path-grid .journey-art{
    width:68px;
    height:68px;
  }
  .home-shell .home-path-switcher-body .home-path-grid .journey-copy strong{
    font-size:.98rem;
  }
  .home-shell .home-path-switcher-body .home-path-grid .journey-copy small{
    font-size:.74rem;
  }

  .home-shell .app-bottom-nav{
    left:50%!important;
    right:auto!important;
    bottom:max(16px,env(safe-area-inset-bottom))!important;
    width:min(900px,calc(100vw - 44px))!important;
    transform:translateX(-50%)!important;
    padding:8px!important;
    border-radius:23px!important;
  }
  .home-shell .app-bottom-nav .app-nav-item{
    min-height:60px;
    border-radius:17px;
    font-size:.94rem;
  }
  .home-shell .app-bottom-nav .app-nav-icon{
    width:21px;
    height:21px;
  }
}
/* One bottom reserve instead of stacked screen/main padding. */
.app-shell .app-main{padding-bottom:var(--dock-space,calc(100px + env(safe-area-inset-bottom,0px)))}
#app .app-screen{padding-bottom:0}
.app-bottom-nav-backing::after{content:none}
.home-path-picker-returning .home-path-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-shell .home-path-picker-returning .journey-tile{min-height:118px;padding:12px 8px;border-radius:18px}
.home-shell .home-path-picker-returning .journey-art{width:54px;height:54px}
.home-shell .home-path-picker-returning .journey-copy strong{font-size:1rem}
.home-shell .home-path-picker-returning .journey-copy small{font-size:.8rem}
.home-path-picker-returning .journey-selected-badge{font-size:.7rem}
.progress-screen{display:grid;gap:20px}
.progress-card{padding:24px;display:grid;gap:16px}
.progress-card h2,.progress-card p{margin:0}
.progress-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.progress-metrics div{padding:14px;border-radius:14px;background:var(--surface-soft)}
.progress-metrics dt{font-size:.85rem;color:var(--muted)}
.progress-metrics dd{margin:8px 0 0;font-size:1.4rem;font-weight:800;color:var(--primary)}
.progress-card progress{width:100%;height:12px;accent-color:var(--primary)}
@media(min-width:760px){.home-path-picker-returning .home-path-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.progress-metrics{grid-template-columns:1fr}.progress-metrics div{display:flex;align-items:center;justify-content:space-between}.progress-metrics dd{margin:0}}
