/* Dayflow V11.3 — one app chrome and responsive desktop composition. */
:root{--df-frame-top:116px}
body.db-shell .u-wrap{position:relative;z-index:3}
body.db-shell .df-shared-header,
body.unified-page:not(.db-shell) .df-shared-header,
body:not(.unified-page) .df-shared-header{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:12px!important;min-height:42px!important;margin:0 0 19px!important;
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important
}
.df-shared-header .u-brand{
  display:inline-flex!important;align-items:center!important;gap:10px!important;
  color:var(--uink)!important;text-decoration:none!important;
  font:800 20px/1.15 'Manrope','DM Sans',system-ui,sans-serif!important;
  letter-spacing:-.6px!important;white-space:nowrap!important
}
.df-shared-header .u-brandmark{display:block!important;width:40px!important;height:40px!important;
  flex:0 0 40px!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:none!important}
.df-shared-header .u-theme-button{margin-left:auto!important;order:0!important}
/* Only the parent's actual header is shown while the Food/Study iframe is embedded. */
html.db-embedded body.unified-page .df-shared-header,html.db-embedded body .df-shared-header,html.db-embedded body .u-top,html.db-embedded body .app>.header{display:none!important}
html.db-embedded .u-wrap{padding-top:12px!important}
html.db-embedded body .app{padding-top:12px!important}
body.db-frame-active>.u-wrap{pointer-events:none}
body.db-frame-active>.u-wrap .df-shared-header,
body.db-frame-active>.u-wrap .u-nav{pointer-events:auto}
body.db-shell .db-frame-host{top:var(--df-frame-top)!important}
/* Keep the desktop header from shifting when an iframe route hides body scrolling. */
@media(min-width:960px){html{scrollbar-gutter:stable}}
/* The navbar becomes a compact desktop top navigation, stays bottom on phones. */
@media(min-width:960px){
 body.db-shell .u-nav{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
  z-index:10!important;display:flex;justify-content:flex-start;gap:5px;
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;margin:8px 0 14px!important;backdrop-filter:none!important}
 body.db-shell .u-nav a{display:inline-flex;flex-direction:row;min-width:unset;min-height:39px;
  padding:7px 15px;gap:8px;font-size:12px;border:1px solid transparent;border-radius:11px;white-space:nowrap}
 body.db-shell .u-nav a .u-ni{font-size:19px}
 body.db-shell .u-nav a.active{border-color:var(--uborder)!important}
 body.db-shell .db-frame-host{bottom:0!important}
 .u-wrap{max-width:1640px!important;padding-left:clamp(24px,3.5vw,56px)!important;padding-right:clamp(24px,3.5vw,56px)!important}
}
@media(max-width:959px){body.db-shell .u-nav{z-index:90!important}}
@media(max-width:620px){.df-shared-header .u-brand{font-size:17px!important}
 .df-shared-header .u-brandmark{width:40px!important;height:40px!important}}
/* Home: column masonry is deliberate; upcoming immediately follows Water. */
.df-home-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.92fr);gap:16px;align-items:start}
.df-home-col{display:flex;flex-direction:column;gap:15px;min-width:0}
.df-home-col>.df-panel{width:100%;margin:0!important}
.df-home-columns .df-task-panel,.df-home-columns .df-due-panel{padding:19px 22px}
.df-home-columns .df-task-panel .df-panel-head,.df-home-columns .df-due-panel .df-panel-head{margin-bottom:10px}
.df-home-columns .df-task-panel h2,.df-home-columns .df-due-panel h2{font-size:16px;margin:0}
.df-home-columns .df-nutrition{min-height:0}
.df-home-columns .df-water-compact{padding:21px 22px}
.df-home-columns .df-water-row h2{font-size:16px}
@media(max-width:850px){
 .df-home-columns{display:flex;flex-direction:column;gap:12px}
 .df-home-col{display:contents}
 .df-home-columns .df-nutrition{order:1}
 .df-home-columns .df-hydration{order:2}
 .df-home-columns .df-task-panel{order:3}
 .df-home-columns .df-due-panel{order:4}
}
/* Food: persistent shell branding above; page-specific date, mode and settings are below. */
body:not(.unified-page) .df-food-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;
 margin:0 0 16px;flex-wrap:wrap;min-width:0}
body:not(.unified-page) .df-food-toolbar .sectionHeader{margin:0;display:flex;flex:1 1 260px;align-items:baseline;justify-content:flex-start;gap:14px;min-width:0}
body:not(.unified-page) .df-food-toolbar .sectionHeader h1{font:800 clamp(24px,2.5vw,31px)/1.2 'Manrope','DM Sans',system-ui,sans-serif;letter-spacing:-.8px;margin:0;color:var(--uink)}
body:not(.unified-page) .df-food-toolbar .headerRight{display:flex;align-items:center;justify-content:flex-end;flex:0 1 auto;gap:8px;min-width:0}
body:not(.unified-page) .df-food-toolbar .headerRight .u-theme-button{display:none!important}
@media(max-width:760px){body:not(.unified-page) .df-food-toolbar{align-items:stretch;gap:10px}
 body:not(.unified-page) .df-food-toolbar .sectionHeader{flex-basis:100%}
 body:not(.unified-page) .df-food-toolbar .headerRight{width:100%;justify-content:flex-start;flex-wrap:wrap}
 body:not(.unified-page) .df-food-toolbar .headerRight #dayPicker{flex:1 1 145px;min-width:120px;max-width:240px}}
/* Study: make full use of desktop width without huge side gutters. */
@media(min-width:1100px){
 .ls-day-desktop{max-width:none!important;width:100%!important;grid-template-columns:minmax(0,1.65fr) minmax(290px,.68fr)!important;gap:20px}
 .ls-day-desktop>.u-timeline-card{min-width:0}
 .ls-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px}
 .u-main.ls-planner-main{grid-template-columns:minmax(0,1fr) minmax(285px,330px)!important;gap:20px}
 .ls-planner-grid{gap:16px}
}
@media(min-width:1700px){.ls-week-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* All header save/cloud indicators are intentionally removed. Status lives in Settings. */
.ls-save-status,#syncStatus,#dfCloudChip{display:none!important}
