/* Dayflow V8: blue-violet brand, shared light/dark tokens across every screen. */
:root,html:not(.dark){--ubg:#F6F7FC;--ucard:#FFFFFF;--uink:#1D2540;--umuted:#6B7490;--uborder:#E2E5F1;--uaccent:#5265D9;--umild:#EBEEFF;--uhover:#F1F3FC;--unav-bg:#FFF;--ustudy:#6579E8;--ugym:#CD9259;--ubreak:#8899B9;--ufree:#B3BCCF;--ugym-bg:#FFF6EB;--ubreak-bg:#F1F3FC;--ufree-bg:#F5F6FA;
--bg:#F6F7FC;--card:#FFFFFF;--ink:#1D2540;--muted:#6B7490;--border:#E2E5F1;--tint:#EBEEFF;--accent:#5265D9;--accentrgb:82,101,217;--soft:#F1F3FC;--warn:#C34D61;--warnbg:#FFF1F3;--shadow:0 8px 26px rgba(24,33,75,.035)}
html.dark,body.dark,html.dark body{--ubg:#101525;--ucard:#1C2438;--uink:#F0F2FF;--umuted:#A0AAC5;--uborder:#35405B;--uaccent:#A0B0FF;--umild:#2B3557;--uhover:#26304A;--unav-bg:#1C2438;--ustudy:#9EACFF;--ugym:#DDA976;--ubreak:#9AA9C9;--ufree:#626E87;--ugym-bg:#302B31;--ubreak-bg:#242D46;--ufree-bg:#222A3B;
--bg:#101525;--card:#1C2438;--ink:#F0F2FF;--muted:#A0AAC5;--border:#35405B;--tint:#2B3557;--accent:#A0B0FF;--accentrgb:160,176,255;--soft:#26304A;--warn:#EF8699;--warnbg:#3C2937;--shadow:none;color-scheme:dark;background:#101525}
html:not(.dark){background:#F6F7FC}html.dark{background:#101525}body.unified-page,body.db-shell{background:var(--ubg)!important;color:var(--uink)}
body{font-family:'DM Sans',ui-sans-serif,system-ui,-apple-system,sans-serif}
.u-brand{font-family:'Manrope','DM Sans',system-ui,sans-serif;font-weight:800;letter-spacing:-.7px}
.u-brandmark{width:40px;height:40px;object-fit:cover;border-radius:12px;background:none;padding:0}
.mark{background:transparent!important;border-radius:12px!important;overflow:hidden}
.mark img{width:100%;height:100%;display:block;object-fit:cover}
.u-top{background:var(--ubg)!important}.u-nav{background:var(--ucard)!important;border-color:var(--uborder);box-shadow:0 -2px 10px rgba(18,25,52,.065);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.u-nav a,.u-nav a.active{color:var(--umuted)}.u-nav a.active{color:var(--uaccent)!important;background:var(--umild)!important}
.u-theme-button,.u-link,.textButton{color:var(--uaccent)}.u-btn.primary{color:#fff;background:#5265D9;border-color:#5265D9}
html.dark .u-btn.primary,body.dark .u-btn.primary{background:#788BEA;border-color:#788BEA;color:#101525}
.u-task input[type=checkbox],.df-task input[type=checkbox]{accent-color:#5265D9}
.u-time-card.study{border-left-color:var(--ustudy)}.u-time-card.lunch,.u-time-card.recovery{border-left-color:var(--ubreak)}
.u-time-card.gym{border-left-color:var(--ugym);background:var(--ugym-bg)}.u-time-card.free{border-left-color:var(--ufree);background:var(--ufree-bg)}
.u-progress>div,.track>i{background:var(--uaccent)!important}.bar i{background:#2E9AAB!important}
body:not(.unified-page) .brand{color:var(--ink)}.btn.primary{color:white!important}.metricLabel{color:var(--ink)}
.u-tab.active,.chip.active{border-color:var(--uaccent);color:var(--uaccent);background:var(--umild)}
html.dark body:not(.unified-page) .metricLabel{color:var(--ink)!important}
html.dark body:not(.unified-page) .modalBackdrop{background:rgba(8,10,21,.68)}
/* Home: next-action focus followed by two purposeful progress summaries. */
.df-home{max-width:1110px;margin:auto}
.df-home-head{display:flex;justify-content:space-between;align-items:end;margin:2px 0 18px}
.df-home-head h1{font-family:'Manrope','DM Sans',system-ui,sans-serif;font-size:clamp(29px,3.8vw,38px);font-weight:800;letter-spacing:-1.45px;line-height:1.1;margin:3px 0 0}
.df-eyebrow,.df-kicker{font-size:10px;letter-spacing:.10em;color:var(--umuted);font-weight:800;text-transform:uppercase}
.df-focus-card{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:29px 31px;margin-bottom:17px;background:linear-gradient(116deg,#3C49A9 0%,#5265D9 67%,#736CE1 100%);border-radius:23px;color:#fff;overflow:hidden}
.df-focus-card:after{content:"";position:absolute;width:225px;height:225px;border-radius:50%;right:-90px;top:-128px;border:50px solid rgba(255,255,255,.055);pointer-events:none}
.df-focus-main{position:relative;z-index:1;min-width:0;flex:1}.df-focus-kicker{display:inline-flex;align-items:center;gap:8px;color:#DCE3FF;letter-spacing:.13em;font-size:10px;font-weight:800}
.df-focus-kicker i{width:7px;height:7px;background:#FFC78D;border-radius:50%;display:inline-block}
.df-focus-main h2{font-family:'Manrope','DM Sans',system-ui,sans-serif;font-size:clamp(21px,3vw,29px);letter-spacing:-.75px;line-height:1.2;margin:11px 0 6px;font-weight:800;overflow-wrap:anywhere;max-width:560px}
.df-focus-main p{font-size:12px;color:#DCE3FF;margin:0 0 18px}.df-focus-link{display:inline-flex;align-items:center;gap:11px;background:#fff;color:#3545A5;text-decoration:none;border-radius:11px;padding:11px 15px;min-height:42px;font-size:12px;font-weight:800}
.df-focus-link span{font-size:15px}.df-focus-side{z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;width:100px;flex:none}
.df-focus-ring{width:89px;height:89px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#FFD2A2 var(--completion),rgba(255,255,255,.23) 0)}
.df-focus-ring>div{display:grid;place-items:center;width:73px;height:73px;border-radius:50%;background:#4B56BD}.df-focus-ring b{font-size:18px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.df-focus-side small{color:#E7E9FF;font-size:10px}
.df-progress-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.8fr);gap:12px;margin-bottom:13px}
.df-panel{background:var(--ucard);border:1px solid var(--uborder);border-radius:19px;padding:21px 22px;min-width:0}
.df-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.df-panel-head h2{font-size:16px;font-family:'Manrope','DM Sans',system-ui,sans-serif;font-weight:800;letter-spacing:-.35px;margin:2px 0 0;color:var(--uink)}
.df-arrow-link{width:32px;height:32px;border:1px solid var(--uborder);background:var(--umild);border-radius:11px;display:grid;place-items:center;text-decoration:none;color:var(--uaccent);font-size:17px}
.df-calorie-head{display:flex;justify-content:space-between;gap:10px;align-items:end;margin:15px 0 14px}
.df-calorie-head>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px}
.df-calorie-head strong{font-size:clamp(28px,3vw,38px);line-height:1;letter-spacing:-1.25px;font-weight:850;font-variant-numeric:tabular-nums}
.df-calorie-head span,.df-consumed{font-size:11px;color:var(--umuted)}.df-consumed{white-space:nowrap;padding-bottom:4px}
.df-track{height:7px;background:var(--umild);border-radius:99px;overflow:hidden}.df-track span{display:block;width:0;height:100%;background:#6076EC;border-radius:99px;transition:width .18s ease}
.df-protein-head{display:flex;justify-content:space-between;margin:20px 0 8px;color:var(--umuted);font-size:12px}.df-protein-head strong{font-size:12px;color:var(--uink);font-variant-numeric:tabular-nums}
.df-track.protein span{background:#9982E6}
.df-water-amount{display:flex;gap:8px;align-items:baseline;margin-top:17px}.df-water-amount strong{font-size:clamp(29px,3vw,39px);line-height:1;letter-spacing:-1.1px;font-variant-numeric:tabular-nums}.df-water-amount span{font-size:13px;color:var(--umuted)}
.df-hydration p{font-size:12px;color:var(--umuted);margin:9px 0 18px}.df-track.water span{background:#28A0B4}.df-water-foot{font-size:10px;color:var(--umuted);display:block;margin-top:12px}
.df-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.df-quick{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--uink);background:var(--ucard);border:1px solid var(--uborder);border-radius:15px;font-size:13px;font-weight:800;padding:12px 16px;min-height:54px}
.df-quick.primary{background:var(--umild);color:var(--uaccent);border-color:transparent}.df-quick-icon{display:grid;place-items:center;width:29px;height:29px;background:var(--ubg);border:1px solid var(--uborder);border-radius:10px;font-size:18px}
.df-quick.primary .df-quick-icon{background:var(--ucard);border:0}.df-quick-go{margin-left:auto;color:var(--uaccent);font-size:16px}
.df-bottom-layout{display:grid;grid-template-columns:1.25fr .85fr;gap:12px;align-items:start}
.df-bottom-layout .df-panel{padding:17px 20px}.df-bottom-layout .df-panel-head{margin-bottom:9px}.df-bottom-layout .df-panel-head h2{margin:0;font-size:15px}
.df-text-link{font-size:11px;color:var(--uaccent);font-weight:750;text-decoration:none;white-space:nowrap}
.df-task{display:flex;gap:11px;align-items:center;border-bottom:1px solid var(--uborder);padding:10px 0;cursor:pointer;font-size:12.5px;line-height:1.45}
.df-task:last-child{border-bottom:0}.df-task input{width:18px;height:18px;flex:none;margin:0}.df-task span{min-width:0;overflow-wrap:anywhere;font-weight:650}.df-task.done span{text-decoration:line-through;color:var(--umuted)}
.df-due-item{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid var(--uborder);font-size:12px;line-height:1.4;padding:11px 0}
.df-due-item:last-child{border:0}.df-due-item span{min-width:0}.df-due-item strong{color:var(--umuted);font-size:11px;font-weight:700;white-space:nowrap}
.df-empty{padding:9px 0;font-size:12px;color:var(--umuted)}
@media(max-width:760px){.df-home-head{margin:2px 0 15px}.df-focus-card{padding:24px 21px;border-radius:20px}.df-focus-side{width:82px}.df-focus-ring{width:72px;height:72px}.df-focus-ring>div{width:59px;height:59px}.df-focus-ring b{font-size:15px}.df-focus-main h2{font-size:21px}.df-progress-layout{grid-template-columns:1fr}.df-panel{padding:18px 18px}.df-bottom-layout{grid-template-columns:1fr}.df-quick-actions{gap:9px}.df-quick{padding:10px 12px;font-size:12px}}
@media(max-width:380px){.df-focus-card{padding:20px 17px}.df-focus-side{width:70px}.df-focus-ring{width:65px;height:65px}.df-focus-ring>div{width:53px;height:53px}.df-focus-main h2{font-size:19px}.df-focus-link{font-size:11px;padding:9px 10px}.df-calorie-head{flex-wrap:wrap}.df-consumed{width:100%}}
@media(prefers-reduced-motion:reduce){.df-track span{transition:none}}


/* V9: priority actions and information-dense nutrition summary. */
.df-home-head{align-items:center;gap:12px}
.df-log-main{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;text-decoration:none;background:#5265D9;color:#fff;border:1px solid #5265D9;border-radius:12px;font:800 13px 'DM Sans',system-ui,sans-serif;min-height:43px;padding:0 16px;white-space:nowrap;box-shadow:0 5px 12px rgba(82,101,217,.14)}
.df-log-main span{font-size:21px;line-height:0;transform:translateY(-1px)}
html.dark .df-log-main{background:#8493FB;border-color:#8493FB;color:#0F1630}
.df-progress-layout{grid-template-columns:minmax(0,1.65fr) minmax(210px,.8fr);align-items:start;gap:10px;margin-bottom:16px}
.df-nutrition{padding-bottom:18px}
.df-macro-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:19px}
.df-macro{min-width:0}.df-macro>div:first-child{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px;margin-bottom:9px;font-size:11px;color:var(--umuted)}
.df-macro strong{font-size:11px;font-weight:800;color:var(--uink);font-variant-numeric:tabular-nums;white-space:nowrap}
.df-track.carbs span{background:#40A39A}.df-track.fat span{background:#E7A05D}
.df-water-compact{padding:17px 18px}.df-water-row{display:flex;align-items:center;justify-content:space-between;gap:9px}.df-water-row h2{margin:3px 0 0;font-size:15px;letter-spacing:-.3px}
.df-water-total{white-space:nowrap;font-size:12px;color:var(--umuted)}.df-water-total strong{font-size:22px;line-height:1;letter-spacing:-.6px;color:var(--uink)}
.df-water-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:13px 0 9px;color:var(--umuted);font-size:11px}
.df-water-link{text-decoration:none;color:var(--uaccent);font-weight:800;font-size:11px}.df-water-compact .df-track{height:6px}
/* Week controls: one segmented Current/Next selector, small history arrows. */
.ls-weekbar{display:flex;align-items:center;gap:10px;margin:0 0 15px;min-height:41px;flex-wrap:wrap}
.ls-week-segments{display:inline-flex;padding:3px;gap:2px;border-radius:11px;background:var(--umild);flex:none}
.ls-week-segments button{border:0;background:transparent;cursor:pointer;border-radius:8px;color:var(--umuted);min-height:33px;padding:7px 12px;font:750 12px 'DM Sans',system-ui,sans-serif}
.ls-week-segments button.active{background:var(--ucard);color:var(--uaccent);box-shadow:0 1px 5px #0001}
.ls-weekrange{font-size:12px;color:var(--umuted);white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.ls-week-arrows{display:flex;gap:3px;margin-left:auto}.ls-week-arrows button{min-width:32px;min-height:34px;border:1px solid var(--uborder);background:var(--ucard);color:var(--uink);border-radius:9px;font-size:18px;cursor:pointer}
/* Header status is subtle, aligned beside the brand; 40px touch target. */
body.unified-page:has(#studyContent) .u-top{display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:10px}
.u-brand-home{border:0;background:transparent;padding:0;display:inline-flex;cursor:pointer;color:var(--uink);white-space:nowrap;font:850 20px 'DM Sans',system-ui,sans-serif;letter-spacing:-.5px;text-align:left}
.ls-save-status{margin-left:0!important;margin-right:auto;display:inline-grid;place-items:center;width:37px;height:37px;min-height:37px;background:transparent!important;border:1px solid transparent!important;border-radius:50%;padding:0!important;box-shadow:none!important;color:var(--uaccent)!important}
.ls-save-status span{display:grid;place-items:center;width:23px;height:23px;font-size:13px;background:var(--umild);border-radius:99px}
@media(max-width:760px){.df-progress-layout{grid-template-columns:1fr;gap:9px}.df-water-compact{padding:14px 16px}.df-water-bottom{margin:9px 0 7px}.df-macro-list{gap:12px}}
@media(max-width:430px){.df-home-head{margin:2px 0 16px}.df-log-main{min-height:41px;padding:0 13px;font-size:12px}.df-macro-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.df-macro strong{font-size:10px}.ls-weekbar{gap:7px}.ls-week-segments button{padding:7px 10px}.ls-weekrange{font-size:11px}.ls-week-arrows button{min-width:29px;min-height:31px}.u-brand-home{font-size:17px}}

/* V10 unified food appearance and modal, including theme mode. */
html:not(.dark) body:not(.unified-page){background:var(--ubg);color:var(--uink)}
html.dark body:not(.unified-page){background:var(--ubg);color:var(--uink)}
body:not(.unified-page) .app{color:var(--uink)}
body:not(.unified-page) .brand{font-family:'Manrope','DM Sans',system-ui,sans-serif;letter-spacing:-.55px}
body:not(.unified-page) .metric,body:not(.unified-page) .panel,body:not(.unified-page) .modal,
body:not(.unified-page) .quick,body:not(.unified-page) .catalogItem,body:not(.unified-page) .template,
body:not(.unified-page) .control,body:not(.unified-page) .btn,
body:not(.unified-page) .day,body:not(.unified-page) .chip,
body:not(.unified-page) .field>input,body:not(.unified-page) .field>select,body:not(.unified-page) .field>textarea,
body:not(.unified-page) .searchRow input{
 background:var(--ucard);color:var(--uink);border-color:var(--uborder);box-shadow:none;
}
body:not(.unified-page) .metricFooter,body:not(.unified-page) .sub,body:not(.unified-page) .catalogDetail,
body:not(.unified-page) .entryMeta,body:not(.unified-page) .quickMeta,
body:not(.unified-page) .field,body:not(.unified-page) .placeholder,
body:not(.unified-page) .chosen p,body:not(.unified-page) .miniCard .eyebrow{
 color:var(--umuted);
}
body:not(.unified-page) .metricLabel,body:not(.unified-page) .entryTitle,
body:not(.unified-page) .modalHeader h2,body:not(.unified-page) .chosen h3{color:var(--uink)}
body:not(.unified-page) .quickIcon,body:not(.unified-page) .miniCard,
body:not(.unified-page) .callout,body:not(.unified-page) .previewBox,
body:not(.unified-page) .chosen,body:not(.unified-page) .calendarPreview,
body:not(.unified-page) .stat,body:not(.unified-page) .miniCard,
body:not(.unified-page) .weekStat{background:var(--umild);border-color:var(--uborder);color:var(--uink)}
body:not(.unified-page) .modalHeader,body:not(.unified-page) .modalFooter,
body:not(.unified-page) .listEntry,body:not(.unified-page) .comboRow,
body:not(.unified-page) .editableRow{border-color:var(--uborder)}
body:not(.unified-page) .btn.primary{background:var(--uaccent)!important;border-color:var(--uaccent)!important;color:#fff!important}
html.dark body:not(.unified-page) .btn.primary{background:#8292F4!important;border-color:#8292F4!important;color:#11182E!important}
body:not(.unified-page) .chip.active{color:var(--uaccent);background:var(--umild);border-color:var(--uaccent)}
body:not(.unified-page) .btn:hover,body:not(.unified-page) .catalogItem:hover,
@media(hover:hover) and (pointer:fine){body:not(.unified-page) .template:hover{background:var(--uhover);border-color:var(--uaccent)}}
body:not(.unified-page) .modalBackdrop.open{background:rgba(11,15,31,.67)}
body:not(.unified-page) .modal{border:1px solid var(--uborder);border-radius:20px}
body:not(.unified-page) .modalInner{background:var(--ucard)}
body:not(.unified-page) .quickIcon,body:not(.unified-page) .entryBubble{background:var(--umild);color:var(--uaccent)}
body:not(.unified-page) .textButton{color:var(--uaccent)}
body:not(.unified-page) .bar i{background:#38A9C3!important}
body:not(.unified-page) input[type=checkbox]{accent-color:var(--uaccent)}
body:not(.unified-page) .track>i{background:var(--uaccent)!important}
body:not(.unified-page) .modal input,body:not(.unified-page) .modal select,
body:not(.unified-page) .modal textarea{font-size:16px}
@media(max-width:600px){body:not(.unified-page) .modal{border-radius:20px 20px 0 0}}
/* Brand icon: never crop the mark in the header. */
.u-brandmark{display:block;width:39px;height:39px;object-fit:contain!important;overflow:visible!important;border-radius:0!important;flex:none}
.mark{display:grid;place-items:center;overflow:visible!important;background:none!important;width:39px;height:39px;flex:none}
.mark img{display:block;width:39px;height:39px;object-fit:contain!important;overflow:visible!important}
/* Move scope picker: a calm, clear choice, never an expiring toast. */
.ls-scope-dialog{border:1px solid var(--uborder);border-radius:24px;padding:0;width:min(430px,calc(100vw - 28px));background:var(--ucard);color:var(--uink);box-shadow:0 22px 75px #0006;max-height:calc(100dvh - 36px);overflow:auto}
.ls-scope-dialog::backdrop{background:rgba(9,12,28,.66);backdrop-filter:blur(2px)}
.ls-scope-content{padding:24px 22px 17px;text-align:center;font-family:'DM Sans',system-ui,sans-serif}
.ls-scope-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:var(--umild);color:var(--uaccent);font-size:24px;margin:0 auto 12px}
.ls-scope-eyebrow{color:var(--uaccent);font-size:10px;font-weight:850;letter-spacing:.13em}
.ls-scope-dialog h2{font:800 23px 'Manrope','DM Sans',system-ui,sans-serif;margin:6px 0 5px;letter-spacing:-.6px}
.ls-scope-dialog p{font-size:12px;margin:0 0 22px;color:var(--umuted)}
.ls-scope-choices{display:flex;flex-direction:column;gap:9px}
.ls-scope-choices button{width:100%;border:1px solid var(--uborder);background:var(--ucard);color:var(--uink);display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:15px;padding:14px 16px;text-align:left;min-height:70px;font:inherit;cursor:pointer}
.ls-scope-choices button:focus-visible{border-color:var(--uaccent);background:var(--umild)}@media(hover:hover) and (pointer:fine){.ls-scope-choices button:hover{border-color:var(--uaccent);background:var(--umild)}}
.ls-scope-choices button strong{display:block;font-size:14px;margin-bottom:3px}
.ls-scope-choices button small{font-size:11px;color:var(--umuted)}
.ls-scope-choices button>span:last-child{font-size:23px;color:var(--uaccent)}
.ls-undo-move{border:0;background:transparent;color:var(--umuted);padding:12px;min-height:44px;font:750 12px 'DM Sans',system-ui,sans-serif;margin:13px auto 0;cursor:pointer}

/* V11.2: consistent Dayflow branding, streamlined schedule, responsive desktop. */
.u-brand,.u-brand-home,body:not(.unified-page) .brand,
.u-top .u-brand span,body:not(.unified-page) .identity .brand{
 font-family:'Manrope','DM Sans',system-ui,sans-serif!important;
 font-weight:850!important;letter-spacing:-.6px!important;
}
/* Schedule blocks already show the start-end inside: no duplicated left clock. */
.u-sched-day{display:flex;align-items:stretch;gap:0;min-width:0}
.u-sched-day>.u-time-label{display:none!important}
.u-sched-day>.u-time-card{flex:1;min-width:0}
/* Planner task heading and action have their own measured space. */
.u-day-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px;min-width:0}
.u-day-header h2{margin:0;min-width:0;flex:1 1 140px;overflow-wrap:anywhere}
.u-day-header>.u-add-task{flex:0 0 auto;white-space:nowrap;min-width:82px;min-height:37px;padding:8px 12px}
.ls-planner-grid{min-width:0}
.ls-planner-grid>.u-planner-day{min-width:0;max-width:100%}
.ls-week-grid{display:grid;grid-template-columns:1fr;gap:13px}
.ls-week-grid>.u-timeline-card{min-width:0;margin:0}
.ls-week-grid .u-sched-label{overflow-wrap:anywhere}
@media(min-width:980px){
 .u-wrap{max-width:1520px;width:100%;padding-left:32px;padding-right:32px}
 .df-home{max-width:1430px;width:100%}
 .u-main.ls-planner-main{grid-template-columns:minmax(0,1fr) minmax(290px,335px);gap:20px;align-items:start}
 .ls-planner-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;align-items:start}
 .ls-planner-grid>.u-card{margin:0;height:100%}
 .ls-planner-grid>.u-card:not(.u-planner-day){grid-column:1/-1}
 .ls-week-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .ls-week-grid .u-timeline-card{height:100%}
 .df-progress-layout{grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr)}
 .df-bottom-layout{grid-template-columns:minmax(0,1.5fr) minmax(290px,.9fr);gap:16px}
}
@media(min-width:1400px){
 .u-wrap{max-width:1640px;padding-left:46px;padding-right:46px}
 .df-home{max-width:1500px}
 .ls-week-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:980px){body:not(.unified-page) .app{max-width:1560px;padding:27px 36px 100px}
 body:not(.unified-page) .columns{grid-template-columns:minmax(0,1.65fr) minmax(360px,.85fr);gap:18px}
 body:not(.unified-page) .gridMetrics{gap:15px}
 body:not(.unified-page) .quickBar{gap:15px}
}
@media(max-width:520px){
 .u-day-header{gap:8px;flex-wrap:nowrap}
 .u-day-header h2{font-size:15px;flex:1 1 auto;min-width:0}
 .u-day-header>.u-add-task{padding:7px 10px;min-width:73px;font-size:12px}
}

/* Desktop day detail: useful summary replaces oversized stretched timeline cards. */
.ls-day-desktop{min-width:0}
.ls-day-insights{display:none}
@media(min-width:980px){
 .ls-day-desktop{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,315px);align-items:start;gap:18px;max-width:1230px;margin:0 auto}
 .ls-day-desktop>.u-timeline-card{min-width:0;max-width:100%;margin:0}
 .ls-day-insights{display:flex;flex-direction:column;gap:13px;position:sticky;top:18px;padding:24px}
 .ls-day-insights h2{font:800 19px 'Manrope','DM Sans',system-ui,sans-serif;letter-spacing:-.4px;margin:0 0 5px}
 .ls-day-eyebrow{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--uaccent)}
 .ls-day-stat{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--uborder);padding:8px 0;font-size:13px}
 .ls-day-stat>span{color:var(--umuted)}
 .ls-day-stat>strong{font-variant-numeric:tabular-nums}
 .ls-day-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:4px}
 .ls-day-actions .u-btn{white-space:nowrap;padding:9px 10px;font-size:12px}
 .ls-day-insights>.u-caption{line-height:1.6;margin:0}
}

/* V11.2 final: identical Dayflow wordmark geometry across Home, Food & Study.
   The Food mark itself is an embedded copy of icons/brand-mark.svg so that
   offline previews and Safari web-app documents cannot lose the path. */
body:not(.unified-page) .identity .brand{font-family:'Manrope','DM Sans',system-ui,sans-serif!important;font-weight:850!important;font-size:20px!important;letter-spacing:-.6px!important;line-height:1.15!important}
body:not(.unified-page) .identity .mark{width:40px!important;height:40px!important;flex:none;display:grid;place-items:center;overflow:visible!important}
body:not(.unified-page) .identity .mark img{width:40px!important;height:40px!important;display:block;object-fit:contain!important;border:0;box-shadow:none}
@media(max-width:620px){body:not(.unified-page) .identity .brand{font-size:17px!important}}
