/* The native tab bar owns navigation in the Endurance Sense workspace. */
html:is([data-sense-surface], [data-sense-embedded="1"]) :is(
  [data-live-desktop-rail], [data-live-common-header], [data-live-common-menu],
  [data-live-mobile-sections], [data-live-nav-toggle], [data-live-sections-toggle]
) { display: none !important; }

html:is([data-sense-surface], [data-sense-embedded="1"]) body {
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html:is([data-sense-surface], [data-sense-embedded="1"]) :is(#recovery-root, #nutrition-root) {
  margin: 0 auto !important;
  padding-inline: 0 !important;
  max-width: 58rem;
  min-height: 100dvh;
}
html:is([data-sense-surface], [data-sense-embedded="1"]) :is(.tl-main, .nutrition-main) {
  min-width: 0;
  margin-inline: auto !important;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}
html[data-sense-surface="today"] #recovery-content > [data-live-opening-title] { display: none; }
html[data-theme="te"]:is([data-sense-surface], [data-sense-embedded="1"]) body {
  background: radial-gradient(ellipse at 96% 0%, #3a1018 0, transparent 37rem), #090507;
  color: #f5edec;
}
html[data-theme="te"]:is([data-sense-surface], [data-sense-embedded="1"]) :is(#recovery-root, #nutrition-root, .nutrition-main, #recovery-content) {
  background: transparent;
}
html[data-sense-surface="cycles"] [data-sense-cycle-branch] > :not([data-sense-cycle-branch]):not([data-sense-cycle-target]) { display: none !important; }
/* Reserve the dedicated comparison surface while the private profile is mounting. */
html[data-sense-surface="cycles"]:not([data-sense-cycles-ready]) [data-own-profile-identity],
html[data-sense-surface="cycles"]:not([data-sense-cycles-ready]) [data-own-profile-panel] {
  visibility: hidden;
}
