/* Shared desktop frame for Agora, Projeto and Catálogo.
   Screen modules own content grids; this file owns the common profile and tabs.
   #app scopes the overrides above legacy theme rules without touching mobile. */
@media (min-width:1100px) {
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen).active {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start;align-content:start;gap:18px!important;width:100%!important;min-width:0!important;max-width:none!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) > * {grid-column:1!important;min-width:0}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) > :is(#homeProfile,#planPreviewHero,#foodsProfileMini) {
    display:block!important;gap:0!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:142px!important;height:auto!important;
    margin:0!important;padding:18px 20px!important;border:1px solid var(--line)!important;border-radius:20px!important;background:var(--card)!important;box-shadow:none!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) > :is(#homeProfile,#planPreviewHero,#foodsProfileMini):is(:empty,[hidden]),
  :where(:root[data-app-layout="desktop"]) #app #homeScreen.home-pre-profile #homeProfile {display:none!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) > [data-profile-summary] {
    display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(0,2.4fr)!important;align-items:center!important;gap:24px!important;
    min-width:0!important;min-height:104px!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-person.ai-fab-identity {
    display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;grid-template-rows:auto!important;align-items:center!important;justify-items:start!important;gap:16px!important;
    width:100%!important;min-width:0!important;max-width:none!important;min-height:88px!important;margin:0!important;padding:0 0 24px!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-person.ai-fab-identity > .hero-avatar {
    grid-area:1 / 1!important;align-self:center!important;width:64px!important;min-width:64px!important;height:64px!important;font-size:1.25rem!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-person.ai-fab-identity > :is(strong,.home-profile-greeting) {
    grid-area:1 / 2!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;
    width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;text-align:start!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) :is(.home-profile-greeting > small,.mantra-kicker) {
    font-size:.7rem!important;font-weight:800!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important;color:var(--muted)!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) :is(.home-profile-greeting > strong,.mantra-main) {
    width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;font-size:.9rem!important;font-weight:900!important;line-height:1.4!important;white-space:normal!important;text-align:start!important;color:var(--ink)!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-info-carousel[data-home-carousel] {
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:8px!important;width:100%!important;min-width:0!important;
    padding:0!important;margin:0!important;overflow:visible!important;scroll-snap-type:none!important;transform:none!important;
  }
  :where(:root[data-app-layout="desktop"]) #app #foodsScreen #foodsProfileMini .profile-info-carousel[data-home-carousel] {grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-info-carousel[data-home-carousel] > .profile-main-stat {
    display:grid!important;align-content:center!important;justify-items:center!important;flex:initial!important;width:auto!important;min-width:0!important;max-width:none!important;
    min-height:104px!important;height:104px!important;margin:0!important;padding:10px 8px!important;gap:4px!important;
    border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface-2)!important;box-shadow:none!important;scroll-snap-align:unset!important;text-align:center!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-main-stat b {font-size:1.1rem!important;font-weight:900!important;line-height:1.2!important;color:var(--ink)!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-main-stat span {font-size:.7rem!important;line-height:1.3!important;white-space:normal!important;color:var(--text)!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-main-stat small {order:-1!important;margin:0!important;font-size:.62rem!important;line-height:1.25!important;letter-spacing:.02em!important;white-space:normal!important;overflow-wrap:anywhere;color:var(--muted)!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-info-carousel::before,
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-info-carousel::after,
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) :is(#homeProfile,#planPreviewHero,#foodsProfileMini) .profile-info-carousel + .carousel-dots {display:none!important;content:none!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) > :is(.home-tabs,.plan-tabs,#catalogTabs) {
    display:inline-grid!important;grid-template-columns:repeat(2,minmax(120px,max-content))!important;justify-self:start;width:max-content!important;max-width:100%!important;margin:0!important;padding:4px!important;gap:4px!important;border-radius:14px!important;
  }
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) > :is(.home-tabs,.plan-tabs,#catalogTabs) button {min-height:40px!important;height:auto!important;padding:8px 18px!important;border-radius:10px!important;font-size:.82rem!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen) :is(#nowCheckinToolbar,#planToolbar > .now-inline-toolbar) {display:flex;flex-wrap:wrap;align-items:center;gap:8px!important;padding:0 0 16px!important;border-bottom:1px solid var(--line)!important}
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen) :is(#nowCheckinToolbar,#planToolbar) .now-inline-icon {display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;min-width:44px!important;height:40px!important;min-height:40px!important;padding:8px 12px!important;border-radius:12px!important;font-size:.8rem!important}
}
@media (min-width:1100px) and (pointer:coarse) {
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen,#foodsScreen) > :is(.home-tabs,.plan-tabs,#catalogTabs) button,
  :where(:root[data-app-layout="desktop"]) #app :is(#homeScreen,#planScreen) :is(#nowCheckinToolbar,#planToolbar) .now-inline-icon {min-height:44px!important;height:44px!important}
}
