@font-face{font-family:StudioPretendard;src:url('/assets/fonts/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--main:#b56e85;--soft:#fbf3f6;--ink:#252b35;--muted:#9299a5;--line:#eceef1}
*{box-sizing:border-box}body[data-studio]{font:13px/1.6 StudioPretendard,-apple-system,sans-serif;color:var(--ink);background:var(--paper);margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--main);text-decoration:none}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:2px solid var(--main);outline-offset:3px}input,select,textarea{border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:8px 10px;min-width:0;color:var(--ink)}input:focus,textarea:focus{outline:1px solid var(--main)}button{border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:6px 10px;color:var(--ink)}button:hover{background:var(--soft)}input[type=checkbox]{accent-color:var(--main)}
body[data-studio] :is(.focus-wrap,.form-wrap,.wrap,.studio-wrap){width:100%;max-width:none;padding:26px 28px;margin:0 auto}
body[data-studio] .widget{border:0;border-radius:0;box-shadow:none;overflow:visible;background:var(--paper)}body[data-studio] .focus-widget{height:auto;max-height:none;min-height:0;overflow:visible;display:block}
body[data-studio] .band{position:relative;display:block;padding:0 0 24px!important;min-height:72px;background:var(--paper)!important;border:0;border-bottom:1px solid var(--line);border-radius:0}body[data-studio] .band .eyebrow{margin:0 150px 6px 0!important;color:var(--muted);font-size:10px;font-weight:500;letter-spacing:1.5px}body[data-studio] .band h1{font-size:22px!important;font-weight:650!important;line-height:1.4;letter-spacing:-.6px;margin:0 135px 0 0}body[data-studio] .band-title{margin:0;display:block}body[data-studio] .band-title>span{display:none}body[data-studio] .widget-intro{background:none;border:0;padding:12px 0;color:var(--muted)}body[data-studio] .intro{color:var(--muted);font-size:12px;line-height:1.7;margin:0}
.studio-theme{position:absolute;right:0;top:20px;display:flex;align-items:center;gap:6px}.studio-theme button{width:19px;height:19px;background:var(--chip);padding:0;border:3px solid var(--paper);border-radius:50%;outline:1px solid transparent}.studio-theme button[aria-pressed=true]{outline-color:var(--main)}.studio-theme label{position:relative;color:var(--muted);width:23px;height:23px;text-align:center;line-height:23px}.studio-theme input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}
body[data-studio] .focus-date{justify-content:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}body[data-studio] .date-navigation{margin:0;gap:12px}body[data-studio] .date-center{display:flex;flex-direction:row;align-items:center;gap:12px}body[data-studio] :is(#today,.studio-this-month){background:var(--surface);border:0;border-radius:20px;padding:5px 12px;font-size:11px;color:#8c94a1;white-space:nowrap}body[data-studio] .date-navigation>button{border:0;background:none;width:26px;height:28px;color:var(--muted)}body[data-studio] .date-picker{background:none!important;font-size:13px}body[data-studio] .focus-date #period{font-size:14px}body[data-studio] .focus-content{overflow:visible;min-height:0}body[data-studio] .focus-status,body[data-studio] .widget-status{padding:6px 0;font-size:11px;min-height:0;color:var(--muted);border:0;margin:0}body[data-studio] .diet-refresh-footer{margin-top:8px;padding:12px 0;border:0;background:var(--paper)}body[data-studio] .diet-footer-refresh{padding:7px;border:0;background:transparent;border-radius:6px;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}body[data-studio] .diet-footer-refresh:hover{background:var(--soft)}body[data-studio] .diet-footer-refresh svg{height:16px;width:16px;fill:currentColor;stroke:none;flex:none}body[data-studio] .diet-refresh-time{font-size:10px}
/* Weekly is a planning sheet, with summaries outside the grid. */
body[data-studio=weekly] .week-modes{padding:16px 0;display:flex;align-items:center;justify-content:space-between;border:0;background:var(--paper)}body[data-studio=weekly] .mode-switch{background:transparent;border:0;padding:0;gap:20px}body[data-studio=weekly] .mode-switch button{padding:7px 0;border-radius:0;background:none;border:0;color:var(--muted)}body[data-studio=weekly] .mode-switch button[aria-pressed=true]{color:var(--ink);box-shadow:0 2px var(--main)}body[data-studio=weekly] .week-modes p{font-size:11px;color:var(--muted)}body[data-studio=weekly] .focus-summary{background:var(--surface);padding:18px;border:0;border-radius:8px;margin-bottom:20px;gap:24px}body[data-studio=weekly] .week-intention textarea{background:var(--paper);font-size:13px}body[data-studio=weekly] .week-exercise-goal{border:0;padding-left:24px;border-left:1px solid var(--line)}body[data-studio=weekly] .week-table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;border:1px solid var(--line);border-radius:10px;overflow:hidden}body[data-studio=weekly] .week-table :is(th,td){border-color:var(--line);background:var(--paper)}body[data-studio=weekly] .week-table th:first-child{width:54px;color:var(--muted);font-size:11px}body[data-studio=weekly] .week-table thead th{padding:14px 6px;background:var(--surface)}body[data-studio=weekly] .week-table .weekday{font-size:11px;color:var(--muted)}body[data-studio=weekly] .week-table .day-number{font-size:17px;font-weight:600;color:var(--ink)}body[data-studio=weekly] .week-table th.today{background:var(--soft)}body[data-studio=weekly] .week-table th.today .day-number{color:var(--main)}body[data-studio=weekly] .meal-list-editor{border:0;background:var(--paper);padding:4px}body[data-studio=weekly] .fixed-meal-list input{font-size:12px}body[data-studio=weekly] .fixed-meal-list .meal-item-remove{width:16px;font-size:13px}body[data-studio=weekly] .week-table td{vertical-align:top;padding:9px 7px}body[data-studio=weekly] .exercise-schedule{background:var(--paper);padding:0}body[data-studio=weekly] .exercise-plan-fields{margin-top:10px}body[data-studio=weekly] .exercise-plan-fields textarea{background:var(--surface)}body[data-studio=weekly] .comparison-plan{font-size:12px;color:var(--muted);background:none}body[data-studio=weekly] .comparison-actual{font-size:12px}body[data-studio=weekly] .week-table .fulfilled{background:var(--soft)}
/* Daily: open sections and a photographic meal journal. */
body[data-studio=daily] .daily-pane{padding:22px 0;background:var(--paper);grid-template-columns:minmax(0,1fr) 300px;gap:26px}body[data-studio=daily] .journal-habits-section{padding:0 0 22px;border-bottom:1px solid var(--line)}body[data-studio=daily] #habits{gap:0}body[data-studio=daily] #habits>:is(.habit-choice,.water-card){background:var(--paper);border:0;border-left:1px solid var(--line);border-radius:0;padding:4px 14px;min-height:90px}body[data-studio=daily] #habits>:first-child{border-left:0;padding-left:0}body[data-studio=daily] #habits .habit-choice>span,body[data-studio=daily] #habits .water-title{font-size:12px;margin-bottom:12px}body[data-studio=daily] .journal-section h2{font-size:14px;font-weight:600}body[data-studio=daily] :is(.journal-main-column,.journal-side-column)>.journal-section{padding:0 0 22px;background:var(--paper);border:0;border-bottom:1px solid var(--line);border-radius:0}body[data-studio=daily] .journal-side-column{border-left:1px solid var(--line);padding-left:24px}body[data-studio=daily] .journal-meals{gap:24px}body[data-studio=daily] .journal-meal{padding:0;border:0;border-radius:0}body[data-studio=daily] .journal-meal h3{color:var(--ink);font-size:14px}body[data-studio=daily] .journal-meal-head label{font-size:11px}body[data-studio=daily] .journal-meal>.meal-photo{border:0;border-radius:7px;background:var(--surface);aspect-ratio:4/3;min-height:160px;max-height:270px}body[data-studio=daily] .meal-list-column .meal-list-editor{background:var(--paper);border:0;padding:0}body[data-studio=daily] .meal-list-column:first-child .meal-list-editor{background:var(--paper)}body[data-studio=daily] .meal-list-column>span{font-size:12px;margin-bottom:7px}body[data-studio=daily] .meal-list-columns{gap:18px}body[data-studio=daily] .meal-list-column+ .meal-list-column{padding-left:14px;border-left:1px solid var(--line)}body[data-studio=daily] .fixed-meal-list input{font-size:13px;height:28px}body[data-studio=daily] .meal-bottom-row{padding-top:10px;border-top:1px solid var(--line)}body[data-studio=daily] .journal-calories{font-size:11px}body[data-studio=daily] .review-box{border:1px solid var(--line);border-radius:7px}body[data-studio=daily] .review-tools{background:var(--surface)}body[data-studio=daily] .workout-edit-card{border:0;border-top:1px solid var(--line);padding:14px 0;border-radius:0}body[data-studio=daily] .workout-edit-head{background:var(--surface)}body[data-studio=daily] .studio-appetite-daily{grid-column:1/-1;padding:0 0 20px;border:0;border-bottom:1px solid var(--line)}
/* Settings stays a portrait keepsake; fields are separated by rules. */
body[data-studio=settings] .overview{padding:22px 0;border:0}body[data-studio=settings] .motivation-card{margin:0 0 24px;border:0;border-radius:0;background:var(--paper)}body[data-studio=settings] .inspiration-frame{background:var(--surface);border-radius:8px;max-width:300px;margin:0 auto;aspect-ratio:3/4}body[data-studio=settings] .motivation-copy{padding:22px 0}body[data-studio=settings] .motivation-label{font-size:12px;color:var(--muted)}body[data-studio=settings] .edit{width:100%;margin:0 0 20px;background:var(--surface);border:0;font-size:13px;padding:12px}body[data-studio=settings] .section{padding:22px 0;border-top:1px solid var(--line)}body[data-studio=settings] .section-head b{font-size:14px}body[data-studio=settings] :is(.field>span,.section-head span,.section-note,.photo-cover>span){font-size:12px}body[data-studio=settings] .metric{background:var(--surface)}body[data-studio=settings] .metric span{font-size:12px}body[data-studio=settings] .section .grid{gap:14px}body[data-studio=settings] .journey-modes{background:var(--surface)}
/* Routine rows lead into the existing set / cardio editor. */
body[data-studio=routines] .routine-list{padding:10px 0;gap:0}body[data-studio=routines] .routine-card{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0;gap:16px}body[data-studio=routines] .routine-card:hover{background:var(--soft)}body[data-studio=routines] .routine-card i{font-size:16px;color:var(--muted)}body[data-studio=routines] .routine-new{width:100%;margin:20px 0;padding:12px;border:1px solid var(--line);background:var(--paper);border-radius:6px}body[data-studio] .workout-dialog{border-radius:10px;border:1px solid var(--line);font-family:StudioPretendard,sans-serif}body[data-studio] .workout-dialog-head{background:var(--paper);border-bottom:1px solid var(--line)}
/* Monthly is an airy calendar, not another stack of cards. */
body[data-studio=monthly] .month{height:58px;display:flex;gap:16px;justify-content:flex-start;border:0}body[data-studio=monthly] .month .nav{position:static;border:0;border-radius:0;background:none}body[data-studio=monthly] .month b{font-size:14px;letter-spacing:.5px}body[data-studio=monthly] .view-tools{padding:0 0 18px;gap:8px;border:0}body[data-studio=monthly] .view-toggle span{font-size:12px;font-weight:400;background:var(--surface);border:0;border-radius:5px}body[data-studio=monthly] .weeks{font-size:12px;font-weight:400;background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0}body[data-studio=monthly] #grid{border:1px solid var(--line);border-radius:0 0 10px 10px;overflow:hidden}body[data-studio=monthly] :is(.day,.blank){border-color:var(--line);min-height:125px;background:var(--paper)}body[data-studio=monthly] .date{font-size:13px;font-weight:500}body[data-studio=monthly] .circ-history{padding:16px 0}body[data-studio=monthly] .circ-row>*{font-size:12px}
/* Appetite library and the daily integration share controls and data. */
#appetite-library{padding-top:18px}.app-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}.app-heading h2{margin:0!important;font-size:14px}.app-heading a{font-size:11px;color:var(--muted)}.app-day-checks{display:grid;grid-template-columns:1fr 1fr;gap:24px}.app-label,.app-feelings>div>span{font-size:12px;color:var(--muted);display:block;margin-bottom:9px}.app-choices{display:flex;flex-wrap:wrap;gap:5px}.app-choices button{font-size:12px;background:var(--surface);border:0;border-radius:5px;padding:7px 10px;color:#858e9c}.app-choices button[aria-pressed=true]{background:var(--soft);color:var(--main);font-weight:600}.app-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 16px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.app-totals>div+div{border-left:1px solid var(--line);padding-left:20px}.app-totals span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.app-totals strong{font-size:23px;line-height:1.4;font-weight:600}.app-totals small{font-weight:400;font-size:12px;color:var(--muted);margin-left:6px}.app-library-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:15px}.app-library-nav>span{font-size:11px;color:var(--muted)}.app-tabs{display:flex;gap:20px}.app-tabs button{padding:7px 0;background:var(--paper);color:var(--muted);border:0;border-radius:0}.app-tabs [aria-pressed=true]{box-shadow:0 2px var(--main);color:var(--ink);font-weight:600}.app-composer{display:grid;grid-template-columns:minmax(150px,1fr) 135px 135px auto;gap:12px;align-items:end;background:var(--surface);border-radius:8px;padding:18px}.app-composer label,.app-edit-grid label{font-size:12px;color:var(--muted);display:grid;gap:7px}.app-composer input{width:100%;height:38px}.app-primary{background:var(--main);border-color:var(--main);color:#fff;height:38px;padding:0 18px}.app-primary:hover{background:var(--main);filter:brightness(.97)}.app-filter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 0 8px}.app-filter>div{display:flex;gap:8px;flex-wrap:wrap}.app-filter button{border:0;background:none;color:var(--muted);font-size:12px;padding:6px 8px}.app-filter button[aria-pressed=true]{background:var(--soft);color:var(--main)}.app-filter small{margin-left:4px}.app-filter input{max-width:160px;font-size:12px;padding:6px 9px}.app-food{padding:20px 0;border-bottom:1px solid var(--line)}.app-food-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.app-food h3{font-size:15px;font-weight:600;margin:0 0 4px}.app-food-head small{color:var(--muted);font-size:11px}.app-decision{display:flex;align-items:center;gap:8px;flex:none}.app-remove{font-size:18px;color:#a8aeb8;padding:0 6px;border:0;background:none}.app-feelings{display:flex;flex-wrap:wrap;align-items:start;gap:20px 30px;padding-left:14px;border-left:2px solid var(--soft);margin-top:18px}.app-feelings .app-choices button{font-size:11px}.app-choice-date{font-size:11px;color:var(--muted);display:grid;gap:6px}.app-choice-date input{padding:4px 7px;font-size:12px}.app-edit{margin-top:13px}.app-edit summary{color:var(--muted);font-size:11px;cursor:pointer}.app-edit-grid{display:grid;grid-template-columns:1fr 110px 120px;gap:10px;margin:10px 0}.app-edit textarea{width:100%;font-size:12px;min-height:48px;resize:vertical}.app-empty{font-size:12px;line-height:1.9;color:var(--muted);text-align:center;padding:30px 12px}.app-daily-foods>summary{cursor:pointer;font-size:12px;color:var(--ink)}.app-daily-foods>summary span{color:var(--muted);margin-left:12px;font-size:11px}.app-daily-foods .app-food{padding:14px 0}.app-status{font-size:11px;color:var(--muted);min-height:0;margin:8px 0 0}.app-status:empty{display:none}.app-review-counts{display:flex;gap:24px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.app-review-counts b{color:var(--ink);margin-left:8px}.app-footnote{font-size:11px;color:var(--muted)}.app-section-label{font-size:14px;font-weight:600;margin:28px 0 12px}.app-history{display:grid;grid-template-columns:110px 1fr 100px;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);font-size:12px}.app-history time,.app-history>span{color:var(--muted);font-size:11px}.app-history p{margin:5px 0 0;color:var(--muted);white-space:pre-wrap}.app-history>a{text-align:right}.app-undo{font-size:11px}
@media(max-width:1100px){body[data-studio=daily] .daily-pane{grid-template-columns:minmax(0,1fr) 270px;gap:20px}body[data-studio=daily] #habits{grid-template-columns:repeat(3,1fr);gap:16px 0}body[data-studio=weekly] .focus-content{overflow-x:auto}body[data-studio=weekly] .week-table{min-width:900px}.app-food-head{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:760px){body[data-studio] :is(.focus-wrap,.form-wrap,.wrap,.studio-wrap){padding:20px 16px}body[data-studio] .band h1{font-size:20px!important}body[data-studio] .studio-theme{gap:4px}body[data-studio] .studio-theme button{width:17px;height:17px}body[data-studio=daily] .daily-pane{grid-template-columns:1fr}body[data-studio=daily] .journal-side-column{border:0;padding:0}body[data-studio=daily] .journal-meals{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}body[data-studio=daily] #habits{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-studio=daily] #habits>.condition-choice{grid-column:1/-1;border-left:0;padding-left:0}body[data-studio=weekly] .week-modes{display:block}body[data-studio=weekly] .week-modes p{margin-top:10px}.app-day-checks{grid-template-columns:1fr;gap:18px}.app-library-nav>span{display:none}.app-composer{grid-template-columns:1fr 1fr;padding:14px}.app-composer label:first-child{grid-column:1/-1}.app-composer .app-primary{grid-column:1/-1}.app-filter{align-items:start;flex-direction:column}.app-filter input{max-width:100%;width:100%}.app-totals{gap:8px}.app-totals>div+div{padding-left:10px}.app-totals strong{font-size:20px}.app-totals span{font-size:11px}.app-history{grid-template-columns:80px 1fr 65px;gap:8px}.app-edit-grid{grid-template-columns:1fr 1fr}.app-edit-grid label:first-child{grid-column:1/-1}body[data-studio=monthly] .day{min-height:80px}body[data-studio=monthly] .date{font-size:12px}}
@media(max-width:480px){body[data-studio=daily] .journal-meals{grid-template-columns:1fr}.app-totals small{display:block;margin:2px 0 0}.app-totals strong{font-size:19px}.app-feelings{gap:14px}.app-choices button{padding:7px 8px;font-size:11px}body[data-studio] .date-center{gap:6px}body[data-studio=monthly] .view-tools{flex-wrap:wrap}body[data-studio=monthly] .weeks{font-size:10px}}
@media(min-width:1101px){body[data-studio=daily] #appetite-daily{display:grid;grid-template-columns:1.4fr 1fr;column-gap:26px}body[data-studio=daily] #appetite-daily .app-heading,body[data-studio=daily] #appetite-daily .app-daily-foods{grid-column:1/-1}body[data-studio=daily] #appetite-daily .app-totals{margin:0;padding:0 0 8px;border:0}body[data-studio=daily] #appetite-daily .app-day-checks{gap:16px}body[data-studio=daily] #appetite-daily .app-daily-foods{margin-top:16px}body[data-studio=daily] #appetite-daily .app-choices button{font-size:11px;padding:6px 8px}}
body[data-studio=monthly] :is(.none,.body-none){border:0;background:var(--paper);border-radius:0}body[data-studio=monthly] .date{color:var(--ink);background:#ffffffdd;width:25px;height:25px;padding:0;border-radius:50%;top:8px;left:8px}body[data-studio=monthly] .day.is-today{background:var(--soft)}body[data-studio=monthly] .day.is-today .none{background:var(--soft)}body[data-studio=monthly] .day.is-today .date{background:var(--main);color:white}body[data-studio=monthly] .day{aspect-ratio:1.25;min-height:100px}body[data-studio=monthly] .blank{aspect-ratio:1.25;min-height:100px}
/* A square viewport for every meal image, independent of the uploaded ratio. */
body[data-studio=daily] .journal-meal>.meal-photo{aspect-ratio:1/1;width:100%;height:auto;min-height:0;max-height:none;position:relative}
body[data-studio=daily] .journal-meal>.meal-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body[data-studio=daily] #habits .supplement-check{height:36px;min-height:36px;display:flex;align-items:center;gap:6px;padding:6px 7px!important;border:0;background:transparent;color:var(--muted);border-radius:8px;font-size:11px;white-space:nowrap;cursor:pointer}
body[data-studio=daily] #habits .supplement-check:has(input:checked){background:var(--soft);color:var(--main)}
body[data-studio=daily] #habits .supplement-check svg{width:17px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3}
body[data-studio=daily] #habits .supplement-check input{width:13px;height:13px;margin:0 0 0 3px}
/* Daily hierarchy: two questions, today's outcome, then individual foods. */
body[data-studio=daily] #appetite-daily{display:block}
body[data-studio=daily] #appetite-daily .app-heading{margin:0 0 18px}
body[data-studio=daily] #appetite-daily .app-day-checks{padding:0 0 18px;gap:24px}
body[data-studio=daily] #appetite-daily .app-totals{margin:0 0 20px;padding:16px 18px;background:var(--surface);border:0;border-radius:8px}
body[data-studio=daily] #appetite-daily .app-totals strong{font-size:24px}
.app-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}.app-subhead h3{font-size:13px;font-weight:600;margin:0}.app-subhead>span{font-size:11px;color:var(--muted)}
.app-food-head small:empty{display:none}.app-feelings{border:0;padding:12px 0 0;margin-top:10px;border-top:1px solid var(--line)}.app-feelings>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.app-feelings>div>span{margin:0;font-size:12px}.app-daily-foods .app-food:last-child{border-bottom:0}
.app-date-group{margin-top:24px}.app-date-group>header{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.app-date-group>header time{font-size:13px;font-weight:600}.app-date-group>header>span{font-size:11px;color:var(--muted)}.app-date-group .app-food{padding:18px 0}.app-date-group .app-food:last-child{border-bottom:0}
.app-review-period{display:flex;justify-content:flex-end;gap:5px;margin-bottom:18px}.app-review-period button{font-size:12px;border:0;color:var(--muted);background:var(--surface)}.app-review-period button[aria-pressed=true]{color:var(--main);background:var(--soft)}
.app-review-hero{padding:24px;background:var(--soft);border-radius:10px}.app-review-hero>span{font-size:13px;color:var(--muted)}.app-review-hero>div:first-of-type{display:flex;align-items:baseline;gap:10px;margin:9px 0 18px}.app-review-hero strong{font-size:36px;line-height:1.4;letter-spacing:-1px;font-weight:650}.app-review-hero b{font-size:16px;font-weight:500}.app-review-hero em{font-size:30px;font-weight:600;font-style:normal;color:var(--main);margin-left:auto}.app-ratio-track{height:5px;background:var(--paper);border-radius:6px;overflow:hidden}.app-ratio-track i{display:block;height:100%;background:var(--main);border-radius:6px}.app-review-hero p{font-size:12px;color:var(--muted);margin:10px 0 0}.app-review-hero p small{float:right;font-size:11px}
.app-saved-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0 8px}.app-saved-pair>div+div{border-left:1px solid var(--line);padding-left:24px}.app-saved-pair span{font-size:12px;color:var(--muted);display:block;margin-bottom:8px}.app-saved-pair strong{font-size:28px;font-weight:600}.app-saved-pair strong small{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}
.app-emotion-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0}.app-emotion-panel h3{font-size:15px;margin:0 0 3px}.app-emotion-panel>small{font-size:11px;color:var(--muted);display:block;margin-bottom:18px}.app-emotion-row{display:grid;grid-template-columns:128px minmax(30px,1fr) 22px;gap:8px;align-items:center;margin:12px 0;font-size:12px}.app-emotion-row>div{height:6px;background:#f3f4f6;border-radius:6px;overflow:hidden}.app-emotion-row i{display:block;height:100%;background:var(--main);border-radius:6px}.app-emotion-row b{font-weight:500;text-align:right;color:var(--muted)}
.app-hardest{margin:26px 0}.app-hardest .app-subhead h3{font-size:15px}.app-hardest-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0}.app-hardest-grid>div{padding:18px;background:var(--surface);border-radius:8px}.app-hardest-grid span{font-size:12px;color:var(--muted);display:block;margin-bottom:10px}.app-hardest-grid strong{font-size:18px;font-weight:600;display:block}.app-hardest-grid p{font-size:12px;color:var(--muted);margin:6px 0 0}.app-hardest-grid strong:not(:first-of-type){margin-top:14px}
@media(max-width:760px){.app-emotion-grid,.app-hardest-grid{grid-template-columns:1fr}.app-emotion-grid{gap:22px}.app-emotion-panel+.app-emotion-panel{border-top:1px solid var(--line);padding-top:22px}.app-review-hero{padding:18px}.app-review-hero strong{font-size:30px}.app-review-hero b{font-size:14px}.app-review-hero em{font-size:25px}.app-review-hero p small{float:none;display:block;margin-top:5px}.app-feelings>div{gap:8px}.app-saved-pair strong{font-size:24px}.app-subhead{align-items:flex-start}.app-hardest .app-subhead{flex-direction:column;gap:4px}body[data-studio=daily] #appetite-daily .app-totals{padding:13px 10px}body[data-studio=daily] #appetite-daily .app-totals strong{font-size:20px}}
body[data-studio=settings] .form-wrap{max-width:none;width:100%}
@media(min-width:800px){body[data-studio=settings] .motivation-card{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);gap:32px;align-items:start}body[data-studio=settings] .inspiration-frame{width:100%;max-width:none;aspect-ratio:3/4;margin:0}body[data-studio=settings] .motivation-copy{padding:12px 0}body[data-studio=settings] #settings-body:not([hidden]){display:grid;grid-template-columns:1fr 1fr;gap:0 32px;align-items:start}body[data-studio=settings] .section{min-width:0}body[data-studio=settings] .section:last-child{grid-column:1/-1}}
/* Section headings are deliberately stronger than field labels and meal names. */
body[data-studio=daily] .journal-section h2,body[data-studio] .app-heading h2{font-size:18px!important;font-weight:700!important;letter-spacing:-.35px;line-height:1.5;color:var(--ink);margin-bottom:20px}
body[data-studio=daily] .journal-section h2::before,body[data-studio] .app-heading h2::before{content:'';display:inline-block;width:3px;height:15px;background:var(--main);border-radius:3px;margin-right:9px;vertical-align:-1px}
body[data-studio] .app-subhead h3{font-size:15px;font-weight:650}.app-section-label,.app-hardest .app-subhead h3,.app-ranking-grid h3,.app-cycle-review .app-subhead h3{font-size:17px;font-weight:700;letter-spacing:-.3px}
.app-food.app-food-flow{padding:18px 20px;border:1px solid var(--line);border-radius:10px;margin:12px 0 16px;background:var(--paper)}.app-date-group .app-food.app-food-flow:last-child,.app-daily-foods .app-food.app-food-flow:last-child{border-bottom:1px solid var(--line)}.app-food-flow .app-food-head{align-items:flex-start;flex-direction:row;gap:14px;padding:0 0 16px;border-bottom:1px solid var(--line)}.app-food-flow h3{font-size:17px;font-weight:700;line-height:1.4;margin-bottom:6px}.app-food-tools{display:flex;align-items:center;gap:8px;flex:none}.app-outcome-badge{font-size:11px;padding:4px 9px;border-radius:20px;background:var(--surface);color:var(--muted)}.app-outcome-badge.ate,.app-outcome-badge.resisted{background:var(--soft);color:var(--main)}
.app-food-flow .app-step{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;gap:12px;margin:0;padding:17px 0 0;border:0}.app-food-flow .app-step-number{width:23px;height:23px;display:grid;place-items:center;background:#f2f3f6;border-radius:50%;font-size:11px;font-weight:600;color:#747e8e}.app-food-flow .app-step>div{display:block;min-width:0}.app-food-flow h4{font-size:13px;font-weight:600;margin:1px 0 10px;color:var(--ink)}.app-food-flow .app-decision .app-choices{display:grid;grid-template-columns:repeat(2,minmax(0,180px));gap:8px}.app-food-flow .app-decision .app-choices button{padding:10px 16px;font-size:13px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}.app-food-flow .app-decision .app-choices button[aria-pressed=true]{border-color:var(--main);background:var(--soft);color:var(--main)}.app-food-flow .app-decision .app-choices button[aria-pressed=true]::before{content:'✓ ';font-weight:700}.app-food-flow .app-feelings .app-choices button{font-size:12px;padding:7px 10px}.app-food-flow .app-reset{border:0;background:none;padding:4px 0;font-size:10px;color:var(--muted);margin-top:4px}.app-waiting{display:block;font-size:11px;color:var(--muted);margin-top:8px}.app-food-flow .app-edit{margin-left:36px}.app-food-flow .app-food-head small{font-size:12px}
.app-cycle-toggle{font-size:11px;border:0;background:none;padding:4px 0;color:var(--muted)}.app-cycle-enable{margin:0 0 18px}.app-cycle-toggle small,.app-cycle-check h3 small{font-size:10px;margin-left:6px;color:var(--muted);font-weight:400}.app-cycle-check{margin:0 0 20px;padding:16px 0;border-top:1px solid var(--line)}.app-cycle-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:14px}.app-cycle-fields>div>small{display:block;margin-top:7px;color:var(--muted);font-size:10px}.app-cycle-fields .app-choices button{font-size:12px}
.app-ranking-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:28px 0;padding-bottom:24px;border-bottom:1px solid var(--line)}.app-ranking-grid h3{margin:0 0 5px}.app-ranking-grid section>p{font-size:11px;color:var(--muted);margin:0 0 14px}.app-food-ranking{list-style:none;padding:0;margin:0}.app-food-ranking li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.app-food-ranking li>span{color:var(--main);font-size:13px;font-weight:600}.app-food-ranking b{font-size:13px;font-weight:600;overflow-wrap:anywhere}.app-food-ranking small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.app-food-ranking strong{font-size:19px;font-weight:600}.app-food-ranking strong small{display:inline;margin-left:3px}
.app-cycle-review{margin:26px 0}.app-cycle-compare{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.app-cycle-compare>div{background:var(--surface);padding:20px;border-radius:8px}.app-cycle-compare h4{font-size:14px;margin:0 0 3px;font-weight:600}.app-cycle-compare span,.app-cycle-compare small{font-size:11px;color:var(--muted)}.app-cycle-compare strong{display:block;font-size:28px;font-weight:600;margin-top:16px;color:var(--main)}.app-cycle-compare strong small{margin-left:8px;font-weight:400}.app-cycle-compare p{font-size:12px;margin:5px 0;color:var(--ink)}
@media(max-width:760px){.app-ranking-grid,.app-cycle-fields{grid-template-columns:1fr}.app-ranking-grid{gap:24px}.app-food.app-food-flow{padding:15px 13px}.app-food-flow h3{font-size:16px}.app-food-flow .app-step{gap:9px;grid-template-columns:22px minmax(0,1fr)}.app-food-flow .app-food-tools{gap:2px}.app-food-flow .app-decision .app-choices button{padding:9px 10px}.app-food-flow .app-edit{margin-left:31px}.app-cycle-compare{gap:10px}.app-cycle-compare>div{padding:14px}.app-cycle-compare strong{font-size:24px}body[data-studio=daily] .journal-section h2,body[data-studio] .app-heading h2{font-size:17px!important}}
.app-cycle-summary{font-size:13px;line-height:1.8;color:var(--ink);margin:12px 0 16px}
body[data-studio=daily] .app-cycle-check{padding:0 0 20px;margin:0 0 22px;border-top:0;border-bottom:1px solid var(--line)}
body[data-studio=daily] .app-cycle-check h3{font-size:18px;font-weight:700;letter-spacing:-.35px}
body[data-studio=daily] .private-input.masked{font-family:StudioPretendard,sans-serif;letter-spacing:3px;cursor:pointer;font-size:13px;color:var(--muted);-webkit-text-security:none}
.app-food-flow .app-food-head>div:first-child{min-width:0}.app-food-flow h3{overflow-wrap:anywhere}
html[data-appearance=dark] body[data-studio] .studio-theme button{background:var(--chip)!important;border-color:var(--paper)}
html[data-appearance=dark] body[data-studio] .focus-date :is(#prev,#next){background:var(--paper)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-appearance=dark] body[data-studio] .studio-theme button[aria-pressed=true]{outline-color:var(--main)}
body[data-studio=monthly] :is(.month-loss b,.circ-overview span,.circ-row small){color:var(--main)}
html[data-appearance=dark] body[data-studio] :is(.circ-history,.weeks,.circ-row:first-child,.body-none,.none,.workout-empty,.workout-total,.workout-link-field,.body-fields,.body-metric,.photo-cover,.bmi-card,.focus-summary,.week-modes){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-appearance=dark] body[data-studio] :is(.journal-meal,.review-box,.routine-card,.recap-stats>div,.recap-meal,.recap-mood,.body-metric,.week-table td,.week-table th){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-appearance=dark] body[data-studio] :is(.week-table th.today,.week-table td.fulfilled){background:var(--soft)}
/* Keep the two-step choice flow, with a compact footprint in both embeds. */
/* Native checkbox marks vary by browser; use one predictable, high-contrast mark. */
body[data-studio] input[type=checkbox]{appearance:none!important;display:inline-grid;place-content:center;width:14px;height:14px;min-width:14px;padding:0!important;border:1px solid var(--muted);border-radius:3px;background:var(--paper);vertical-align:middle;cursor:pointer}
body[data-studio] input[type=checkbox]:checked{background:var(--control);border-color:var(--control)}
body[data-studio] input[type=checkbox]:checked::after{content:'';width:7px;height:4px;border-left:2px solid var(--on-control);border-bottom:2px solid var(--on-control);transform:rotate(-45deg) translateY(-1px)}
body[data-studio] .app-primary,body[data-studio] .day.is-today .date{background:var(--control);color:var(--on-control)}
body[data-studio] :is(.water-cup .cup-fill,.app-ratio-track i,.app-emotion-row i){fill:var(--accent);background:var(--accent)}
html[data-appearance=dark] body[data-studio] :is(.daily-pane,.journal-section,.habit-choice,.water-card,.workout-dialog,.focus-dialog,.review-editor,.meal-list-editor,.exercise-schedule,.routine-new,.motivation-card,.day,.blank,input,select,textarea,button){background-color:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-appearance=dark] body[data-studio] :is(.app-composer,.app-choices button,.app-hardest-grid>div,.app-cycle-compare>div,.review-tools,.workout-edit-head,.metric,.meal-photo,.journey-modes,.view-toggle span,.empty-check,.habit-toggle){background:var(--surface);color:var(--muted)}
html[data-appearance=dark] body[data-studio] .date-navigation #today{background:var(--surface);color:var(--muted)}
html[data-appearance=dark] body[data-studio] :is(button[aria-pressed=true],.empty-check:has(input:checked),.habit-toggle.active,.fulfilled,.match-tag,.selected){background:var(--soft);color:var(--main)}
html[data-appearance=dark] body[data-studio] :is(.app-primary,input[type=checkbox]:checked){background:var(--control);color:var(--on-control)}
html[data-appearance=dark] body[data-studio] :is(.band,.diet-refresh-footer){background:var(--paper)!important}
.app-food.app-food-flow{padding:12px 14px;margin:8px 0 10px;container-type:inline-size}
.app-food-flow .app-food-head{gap:10px;padding-bottom:10px}
.app-food-flow h3{font-size:15px;margin-bottom:3px}
.app-food-flow .app-step{grid-template-columns:20px minmax(0,1fr);gap:8px;padding-top:11px}
.app-food-flow .app-step-number{width:20px;height:20px}
.app-food-flow h4{margin:0 0 7px;font-size:12px;line-height:20px}
.app-food-flow .app-decision .app-choices{grid-template-columns:repeat(2,minmax(0,140px));gap:6px}
.app-food-flow .app-decision .app-choices button{padding:7px 10px;font-size:12px;min-height:32px}
.app-food-flow .app-feelings .app-choices{gap:5px}
.app-food-flow .app-feelings .app-choices button{padding:6px 9px;min-height:30px}
.app-food-flow .app-feelings .app-choices button{border:1px solid transparent}
body[data-studio] .app-food-flow .app-feelings .app-choices button[aria-pressed=true]{background:var(--control);border-color:var(--control);color:var(--on-control);font-weight:650}
.app-food-flow .app-feelings .app-choices button[aria-pressed=true]::before{content:'✓';display:inline-block;margin-right:5px;font-weight:750}
body[data-studio=daily] .journal-meal>.meal-completion{display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;margin:10px 0 14px;padding:5px 0;color:var(--muted);font-size:12px;cursor:pointer}
body[data-studio=daily] .journal-meal>.meal-completion:has(input:checked){color:var(--main);font-weight:600}
.app-food-flow .app-reset{font-size:11px;margin-top:2px;padding:3px 0}
.app-food-flow .app-waiting{margin-top:5px}
.app-food-flow .app-edit{margin-left:28px;margin-top:6px}
/* Container-based columns also work when the daily widget sits in a narrow Notion column. */
@container(min-width:620px){
  .app-food-flow .app-decision{width:42%;display:inline-grid;vertical-align:top;padding-right:20px;box-sizing:border-box}
  .app-food-flow .app-feelings{width:58%;display:inline-grid;vertical-align:top;padding-left:18px;box-sizing:border-box;border-left:1px solid var(--line);margin-top:11px;padding-top:0}
  .app-food-flow .app-decision:has(+.app-feelings){padding-bottom:0}
}

/* Bounded embeds: one content scroll, persistent title and refresh control. */
body[data-studio]:not([data-studio=setup]){height:100dvh;overflow:hidden}
body[data-studio]:not([data-studio=setup])>main{height:100%;padding:16px 20px;max-width:none}
body[data-studio] .studio-frame{height:100%;max-height:none;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body[data-studio] .studio-frame>.band{flex:none;min-height:0;padding:0 0 14px!important}
body[data-studio] .band h1{margin-right:0;font-size:20px!important}
body[data-studio] .band .eyebrow{margin-right:0!important}
body[data-studio] .studio-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-right:8px}
body[data-studio] .studio-scroll>.focus-content{overflow:visible}
body[data-studio] .studio-frame>.diet-refresh-footer{flex:none;margin:0;padding:7px 0 0;border-top:1px solid var(--line)}
body[data-studio] :is(.focus-status,.widget-status):empty{display:none}
body[data-studio] .widget-intro:empty{display:none}
body[data-studio] .preview-indicator{position:absolute;right:0;top:4px;font-size:11px;color:var(--muted)}
body[data-studio=settings] .overview{padding:14px 0}
body[data-studio=settings] .motivation-card{margin:10px 0 16px;gap:22px}
body[data-studio=settings] .inspiration-frame{width:180px;max-width:100%;margin:0 auto;aspect-ratio:3/4}
body[data-studio=settings] .motivation-copy{padding:14px 0 0}
body[data-studio=settings] .section{padding:16px 0}
body[data-studio=settings] .edit{margin:12px 0;padding:9px;text-align:left}
body[data-studio=settings] .photo-feedback{font-size:12px;color:var(--main);margin:8px 0}
body[data-studio=settings] .photo-feedback:empty{display:none}
body[data-studio=settings] .inspiration-edit{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
body[data-studio=settings] .inspiration-edit>img{width:100px;margin:0}
body[data-studio=settings] .inspiration-edit>.photo-feedback{width:100%}
body[data-studio=daily] .journal-meals{gap:16px}
body[data-studio=daily] .journal-section{padding-top:16px;padding-bottom:16px}
/* All six embeds share the same boundary; title and refresh stay outside. */
body[data-studio] .studio-outline{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--paper)}
body[data-studio] .studio-outline>.studio-scroll{padding:0 18px;scrollbar-gutter:stable}
body[data-studio] .studio-outline>#status:not(:empty){padding:8px 18px}
body[data-studio] .studio-frame>.band{border-bottom:0;padding:0 40px 16px!important;text-align:center}
body[data-studio] .studio-frame>.band .eyebrow{margin:0 0 6px!important;text-align:center}
body[data-studio] .studio-frame>.band h1{display:inline-block;position:relative;isolation:isolate;margin:0;padding:0 9px;background:none}
body[data-studio] .studio-frame>.band h1:after{content:'';position:absolute;z-index:-1;left:0;right:0;bottom:.08em;height:.52em;background:color-mix(in srgb,var(--soft) 94%,var(--main));border-radius:.22em;pointer-events:none}
body[data-studio] .studio-frame>.diet-refresh-footer{border-top:0;padding:10px 0 0}
@media(max-width:480px){body[data-studio] .studio-outline>.studio-scroll{padding:0 12px}}
@media(min-width:700px){body[data-studio=settings] .motivation-card{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:start}}
@media(max-width:600px){body[data-studio]:not([data-studio=setup])>main{padding:14px 12px}body[data-studio] .studio-scroll{padding-right:5px}}
/* Daily: one header and date, two focused recording panels. */
body[data-studio=daily] .focus-date{justify-content:center}
body[data-studio=daily] .focus-date .date-navigation{justify-content:center;margin:0 auto}
body[data-studio=daily] .daily-pane{display:block;padding:14px 0 0}
body[data-studio=daily] .daily-section-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--surface);border-radius:9px;margin-bottom:22px}
body[data-studio=daily] .daily-section-tabs button{border:0;background:transparent;color:var(--muted);padding:9px 12px;font-size:13px}
body[data-studio=daily] .daily-section-tabs button[aria-selected=true]{background:var(--paper);color:var(--main);font-weight:650;box-shadow:0 1px 4px #00000008}
body[data-studio=daily] #daily-wellbeing{display:grid;gap:22px}
body[data-studio=daily] #daily-records{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:24px;align-items:start}
body[data-studio=daily] .daily-view-panel>.journal-section{margin:0;padding:0 0 22px;border-bottom:1px solid var(--line)}
body[data-studio=daily] #habits{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){grid-column:auto;min-height:102px;border:1px solid var(--line);border-radius:9px;padding:12px 14px;background:var(--paper)}
body[data-studio=daily] #habits .habit-choice>span,body[data-studio=daily] #habits .water-title{font-size:11px;line-height:16px;margin-bottom:10px}
body[data-studio=daily] #habits .habit-choice>div{display:flex;gap:6px;justify-content:flex-start;width:auto}
body[data-studio=daily] #habits .condition-choice>div{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:100%}
body[data-studio=daily] #habits .condition-choice button{min-width:0;padding:5px 2px;gap:5px;align-items:center}
body[data-studio=daily] #habits .satisfaction-choice button{display:grid;place-items:center;width:30px;height:34px;padding:5px}
body[data-studio=daily] #habits .water-cups{display:flex;justify-content:flex-start;align-self:flex-start;gap:7px;margin:0}
body[data-studio=daily] #habits .water-cup{width:25px;height:30px}
body[data-studio=daily] .app-cycle-check{border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 24px;background:var(--paper)}
body[data-studio=daily] .app-cycle-check h3{font-size:16px;margin:0;color:var(--ink)}
body[data-studio=daily] .app-cycle-check .app-subhead{margin:0;gap:12px;align-items:center}
body[data-studio=daily] .app-cycle-enable{margin:0;padding:7px 10px;border:1px solid color-mix(in srgb,var(--main) 20%,var(--line));border-radius:7px;background:var(--soft);color:var(--main);font-size:12px;white-space:nowrap}
body[data-studio=daily] .app-cycle-description{font-size:12px;color:var(--muted);margin:8px 0 0}
body[data-studio=daily] .app-cycle-fields{gap:16px}
@media(max-width:760px){body[data-studio=daily] #daily-records{grid-template-columns:1fr}body[data-studio=daily] #habits{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-studio=daily] #habits>.condition-choice{grid-column:1/-1}}
@media(max-width:420px){body[data-studio=daily] #habits{grid-template-columns:1fr}body[data-studio=daily] .app-cycle-check{padding:13px}body[data-studio=daily] .app-cycle-check h3{font-size:15px}}
@media(min-width:761px) and (max-width:1199px){body[data-studio=daily] #habits{grid-template-columns:repeat(6,minmax(0,1fr))}body[data-studio=daily] #habits>:is(.habit-choice,.water-card){grid-column:span 2}body[data-studio=daily] #habits>:is(.water-card,.bowel-card){grid-column:span 3}}
@media(min-width:1200px){body[data-studio=daily] #habits{grid-template-columns:repeat(5,minmax(0,1fr))}}
body[data-studio=daily] #daily-records .journal-meals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media(max-width:480px){body[data-studio=daily] #daily-records .journal-meals{grid-template-columns:1fr}}
/* Four daily views share the same date and preserve their live form elements. */
body[data-studio=daily] .daily-section-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;background:transparent;border-radius:0;border-bottom:1px solid var(--line);margin-bottom:24px}
body[data-studio=daily] .daily-section-tabs button{position:relative;min-width:0;border-radius:0;padding:12px 4px;background:transparent;white-space:nowrap;font-size:13px}
body[data-studio=daily] .daily-section-tabs button[aria-selected=true]{background:transparent;color:var(--main);font-weight:650;box-shadow:none}
body[data-studio=daily] .daily-section-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:50%;transform:translateX(-50%);width:28px;height:3px;border-radius:3px;background:var(--main)}
body[data-studio=daily] .daily-view-panel{display:grid;gap:24px;min-width:0;align-items:start}
body[data-studio=daily] #daily-movement{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-studio=daily] #daily-meals .journal-meals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
@media(min-width:1200px){body[data-studio=daily] #daily-meals .journal-meals{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){body[data-studio=daily] #daily-movement{grid-template-columns:1fr}}
@media(max-width:480px){body[data-studio=daily] #daily-meals .journal-meals{grid-template-columns:1fr}}
/* Balance the daily views with one meal at a time and structured movement cards. */
body[data-studio=daily] .daily-meal-picker{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
body[data-studio=daily] .daily-meal-picker button{padding:6px 16px;border:1px solid var(--line);border-radius:20px;font-size:12px;color:var(--muted)}
body[data-studio=daily] .daily-meal-picker button[aria-pressed=true]{background:var(--soft);border-color:var(--main);color:var(--main)}
body[data-studio=daily] #daily-meals .journal-meals{display:block}
body[data-studio=daily] #daily-meals .journal-meal{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px 22px;align-items:start}
body[data-studio=daily] #daily-meals .journal-meal-head{grid-column:1/-1;margin:0}
body[data-studio=daily] #daily-meals .journal-meal>.meal-photo{grid-column:1;grid-row:2/5;margin:0}
body[data-studio=daily] #daily-meals .journal-meal>.meal-completion{grid-column:2;margin:0;padding:3px 0}
body[data-studio=daily] #daily-meals .meal-list-columns,body[data-studio=daily] #daily-meals .meal-bottom-row{grid-column:2;min-width:0}
body[data-studio=daily] #daily-meals .meal-bottom-row{margin:0}
body[data-studio=daily] #daily-movement{gap:18px}
body[data-studio=daily] #daily-movement>.journal-section{padding:18px;border:1px solid var(--line);border-radius:10px;min-width:0;background:var(--paper)}
body[data-studio=daily] #daily-movement h2{font-size:16px!important;margin:0 0 18px}
body[data-studio=daily] .movement-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
body[data-studio=daily] .movement-heading h2{margin:0!important}
body[data-studio=daily] .movement-heading .journal-exercise-check{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;color:var(--muted)}
body[data-studio=daily] #daily-movement .workout-routine-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 16px}
body[data-studio=daily] #daily-movement .workout-routine-row select{width:100%;min-width:0}
body[data-studio=daily] #daily-movement .workout-empty{padding:22px 12px;margin:0 0 12px;border:0;background:var(--surface);border-radius:8px;font-size:12px}
body[data-studio=daily] .movement-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
body[data-studio=daily] .movement-actions #exercise-add{width:auto;margin:0;border:0;padding:8px 0;background:transparent;color:var(--main)}
body[data-studio=daily] .movement-actions #exercise-save{margin:0;padding:8px 13px;font-size:12px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .privacy-hint{font-size:11px;line-height:1.6;margin:0 0 16px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-form{display:grid;gap:16px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-form>.focus-field{margin:0}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-form>.focus-field>span{display:block;margin-bottom:7px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-photo-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 0;margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-photo-row>span{margin-right:auto;font-size:12px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-photo-row button{font-size:11px;padding:6px 9px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-parts label{display:flex;flex-direction:column;align-items:stretch;gap:7px;font-size:12px;min-width:0}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .body-parts input{width:100%;min-width:0}
body[data-studio=daily] :is(#daily-movement,.daily-body-dialog) .focus-note{margin:0;font-size:12px;font-weight:600}
body[data-studio=daily] #daily-movement .workout-edit-card{border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:12px}
body[data-studio=daily] #daily-movement .workout-set,body[data-studio=daily] #daily-movement .set-labels{grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) 28px 22px;gap:5px}
body[data-studio=daily] #daily-movement .move-extra{gap:10px}
@media(max-width:600px){body[data-studio=daily] #daily-meals .journal-meal{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px}body[data-studio=daily] #daily-meals .meal-list-columns{grid-template-columns:1fr;gap:14px}body[data-studio=daily] #daily-meals .meal-list-column+.meal-list-column{padding-left:0;border:0}body[data-studio=daily] #daily-movement>.journal-section{padding:14px}body[data-studio=daily] #daily-meals .journal-calories{display:flex;flex-wrap:wrap;gap:4px}body[data-studio=daily] #daily-meals .meal-calories{width:70px}}
body[data-studio=daily] #daily-meals .journal-meal>.meal-photo{grid-row:2}
body[data-studio=daily] #daily-meals .journal-meal>.meal-completion{grid-column:1;grid-row:3}
body[data-studio=daily] #daily-meals .meal-list-columns{grid-row:2}
body[data-studio=daily] #daily-meals .meal-bottom-row{grid-row:3}
body[data-studio=daily] #daily-movement{align-items:stretch}
/* Softer tabs, an empty reflection field, and a smaller meal photo. */
body[data-studio=daily] .daily-section-tabs{gap:6px;border-bottom:0;margin-bottom:22px}
body[data-studio=daily] .daily-section-tabs button{border-radius:8px;padding:9px 4px}
body[data-studio=daily] .daily-section-tabs button[aria-selected=true]{background:var(--soft);color:var(--main)}
body[data-studio=daily] .daily-section-tabs button[aria-selected=true]:after{display:none}
body[data-studio=daily] #journal-review .review:empty:before{content:none!important}
body[data-studio=daily] #daily-meals .journal-meal{grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr);grid-template-rows:auto auto auto auto;gap:14px 22px}
body[data-studio=daily] #daily-meals .journal-meal>.meal-photo{grid-column:1;grid-row:2/5;align-self:start}
body[data-studio=daily] #daily-meals .journal-meal>.meal-completion{grid-column:2;grid-row:2;margin:0;padding:0}
body[data-studio=daily] #daily-meals .meal-list-columns{grid-column:2;grid-row:3}
body[data-studio=daily] #daily-meals .meal-bottom-row{grid-column:2;grid-row:4}
@media(max-width:600px){body[data-studio=daily] #daily-meals .journal-meal{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:12px}}
/* Exercise starts with completion; body measurements open only when needed. */
body[data-studio=daily] #daily-movement{grid-template-columns:1fr;gap:16px}
body[data-studio=daily] #daily-movement .movement-heading{padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:20px}
body[data-studio=daily] #daily-movement .movement-heading .journal-exercise-check{padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;color:var(--ink)}
body[data-studio=daily] #daily-movement .journal-exercise-check:has(input:checked){background:var(--soft);border-color:var(--main);color:var(--main)}
body[data-studio=daily] .exercise-entry h3{font-size:13px;font-weight:600;margin:0 0 12px}
body[data-studio=daily] .exercise-entry-modes{display:flex;gap:8px;margin-bottom:12px}
body[data-studio=daily] .exercise-entry-modes button{font-size:12px;padding:7px 12px;color:var(--muted)}
body[data-studio=daily] .exercise-entry-modes button[aria-pressed=true]{background:var(--soft);border-color:var(--main);color:var(--main)}
body[data-studio=daily] #inline-workouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
body[data-studio=daily] #inline-workouts>:not(.workout-edit-card){grid-column:1/-1}
body[data-studio=daily] #daily-movement .body-launcher{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 16px}
body[data-studio=daily] #daily-movement .body-launcher h2{margin:0}
body[data-studio=daily] .body-launcher p{margin:0;font-size:12px;color:var(--muted)}
body[data-studio=daily] .body-launcher>button{grid-column:2;grid-row:1/3;background:var(--soft);color:var(--main);font-size:12px}
body[data-studio=daily] .daily-body-dialog{padding:0;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);overflow:auto}
body[data-studio=daily] .daily-body-dialog::backdrop{background:#0005}
body[data-studio=daily] .daily-body-dialog>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--paper)}
body[data-studio=daily] .daily-body-dialog h2{font-size:16px;margin:0}
body[data-studio=daily] .body-dialog-content{padding:18px}
body[data-studio=daily] .daily-cycle-root .app-cycle-check{margin:0}
body[data-studio=daily] .app-daily-foods .app-composer{margin:16px 0;grid-template-columns:2fr 1fr 1fr auto;gap:10px;padding:14px;background:var(--surface);border-radius:9px}
body[data-studio=daily] .app-daily-foods .app-subhead{align-items:start;gap:12px}
body[data-studio=daily] .app-daily-foods .app-subhead h3{font-size:15px}
body[data-studio=daily] #daily-meals .journal-meal{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--paper);gap:16px 22px}
body[data-studio=daily] #daily-meals .journal-meal>.meal-completion{padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:12px}
body[data-studio=daily] #daily-meals .meal-completion:has(input:checked){background:var(--soft);border-color:var(--main)}
body[data-studio=daily] #daily-meals .meal-list-column>span{color:var(--ink);font-weight:600}
@media(max-width:650px){body[data-studio=daily] #inline-workouts{grid-template-columns:1fr}body[data-studio=daily] .app-daily-foods .app-composer{grid-template-columns:1fr 1fr}body[data-studio=daily] .app-daily-foods .app-composer label:first-child{grid-column:1/-1}body[data-studio=daily] .app-daily-foods .app-composer .app-primary{grid-column:1/-1}body[data-studio=daily] #daily-meals .journal-meal{padding:12px;gap:12px}}
/* Completion is the first action; measurements remain a compact utility. */
body[data-studio=daily] #daily-movement .movement-heading{display:grid;grid-template-columns:1fr;gap:12px}
body[data-studio=daily] #daily-movement .movement-heading .journal-exercise-check{justify-self:start;display:flex;align-items:center;gap:10px;padding:12px 18px;font-size:15px;font-weight:600}
body[data-studio=daily] #daily-movement .movement-heading .journal-exercise-check input{width:18px;height:18px;flex:none}
body[data-studio=daily] #daily-movement>.body-launcher{display:block;border:0;background:transparent;padding:0;margin:0}
body[data-studio=daily] .body-launcher>button{font-size:12px;padding:7px 12px;background:var(--soft);color:var(--main);border:1px solid var(--line)}
body[data-studio=daily] #habits>.daily-cycle-root{min-width:0}
body[data-studio=daily] #habits .app-cycle-check{margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:9px;height:auto}
body[data-studio=daily] #habits .app-cycle-check h3{font-size:13px;font-weight:600}
body[data-studio=daily] #habits .app-cycle-check h3 small{display:none}
body[data-studio=daily] #habits .app-cycle-fields{display:grid;grid-template-columns:1fr;gap:12px;margin-top:10px}
body[data-studio=daily] #habits .app-cycle-fields>div>small{display:none}
body[data-studio=daily] #habits .app-cycle-fields>div:first-child>.app-label{display:none}
body[data-studio=daily] #habits .app-cycle-fields .app-choices{display:flex;flex-wrap:wrap;gap:5px}
body[data-studio=daily] #habits .app-cycle-fields .app-choices button{font-size:11px;padding:6px 8px}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>*{grid-column:auto}
body[data-studio=settings] .cycle-setting{padding-top:18px;margin-top:20px;border-top:1px solid var(--line)}
body[data-studio=settings] .cycle-setting-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;font-weight:600;cursor:pointer}
body[data-studio=settings] .cycle-setting-switch input{appearance:none;position:relative;width:36px;height:22px;padding:0;border:0;border-radius:20px;background:var(--muted);cursor:pointer;flex:none}
body[data-studio=settings] .cycle-setting-switch input:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--paper);transition:transform .15s}
body[data-studio=settings] .cycle-setting-switch input:checked{background:var(--control)}
body[data-studio=settings] .cycle-setting-switch input:checked:before{transform:translateX(14px);background:var(--on-control)}
body[data-studio=settings] .cycle-setting-switch input:checked:after{display:none}
@media(max-width:760px){body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.condition-choice{grid-column:1/-1}body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.water-card{grid-column:1/-1}}
@media(max-width:420px){body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:1fr}body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>*{grid-column:auto}}
body[data-studio=daily] #daily-movement>.body-record-trigger{justify-self:start;width:auto;padding:6px 10px;margin:0;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:12px}
body[data-studio=daily] #daily-movement>.body-record-trigger:hover{background:var(--soft);color:var(--main)}
body[data-studio=daily] #journal-exercise:has(#exercise-done:not(:checked)) .movement-heading{border-bottom:0;margin:0;padding-bottom:0}
@media(max-width:420px){body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>*{grid-column:1/-1}body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>:is(.bowel-card,.daily-cycle-root){grid-column:auto}body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])) .bowel-card .empty-check{white-space:normal}}
/* Unified daily hierarchy and an overview-first meal journal. */
body[data-studio=daily]{--daily-heading:16px;--daily-label:12px;--daily-body:13px}
body[data-studio=daily] :is(.journal-section h2,.app-heading h2,.movement-heading h2){font-size:var(--daily-heading)!important;font-weight:650!important;line-height:1.5;letter-spacing:-.2px;margin-bottom:16px}
body[data-studio=daily] :is(.app-subhead h3,.exercise-entry h3,.journal-meal h3){font-size:14px!important;font-weight:600!important;line-height:1.5}
body[data-studio=daily] :is(.app-label,.meal-list-column>span,.habit-choice>span,.water-title){font-size:var(--daily-label)!important;font-weight:500}
body[data-studio=daily] :is(.app-choices button,.review,.food-item-list input){font-size:var(--daily-body);font-weight:400}
body[data-studio=daily] .app-choices button{background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:7px;padding:7px 10px}
body[data-studio=daily] .app-choices button[aria-pressed=true]{background:var(--soft);border-color:var(--main);color:var(--main);font-weight:600}
body[data-studio=daily] #habits .app-cycle-check{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:var(--paper)}
body[data-studio=daily] .cycle-day-toggle{display:flex;align-items:center;gap:7px;min-height:36px;padding:6px 8px;border-radius:8px;font-size:12px;color:var(--muted);cursor:pointer}
body[data-studio=daily] .cycle-day-toggle.is-active{background:var(--soft);color:var(--main)}
body[data-studio=daily] .cycle-day-toggle svg{width:17px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4}
body[data-studio=daily] .cycle-day-toggle input{width:13px;height:13px;margin:0 0 0 3px}
body[data-studio=daily] .cycle-today-pain .app-label{margin:0 0 6px}
body[data-studio=daily] .cycle-today-pain .app-choices{display:flex;flex-wrap:wrap;gap:5px}
body[data-studio=daily] .cycle-today-pain .app-choices button{padding:5px 7px;font-size:11px}
body[data-studio=daily] .life-record-tools{display:flex;justify-content:flex-end;margin-top:-10px}
body[data-studio=daily] .body-record-trigger{border:0!important;background:transparent!important;color:var(--main)!important;font-size:12px!important;padding:6px 0!important}
body[data-studio=daily] #daily-movement .movement-heading{display:flex;align-items:center;gap:12px;justify-content:flex-start}
body[data-studio=daily] #daily-movement .movement-heading h2{font-size:16px!important}
body[data-studio=daily] #daily-movement .movement-heading .journal-exercise-check{border:1px solid var(--line);border-radius:24px;padding:10px 16px;font-size:13px;font-weight:500;background:var(--paper)}
body[data-studio=daily] #daily-movement .movement-heading .journal-exercise-check:has(input:checked){background:var(--soft);color:var(--main);border-color:var(--main)}
body[data-studio=daily] .daily-meal-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}
body[data-studio=daily] .daily-meal-picker button{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:12px;padding:12px;border-radius:9px;background:var(--paper);min-width:0;white-space:normal}
body[data-studio=daily] .daily-meal-picker button[aria-pressed=true]{background:var(--soft)}
body[data-studio=daily] .meal-overview-head{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap}
body[data-studio=daily] .meal-overview-head b{font-size:13px;font-weight:600;color:var(--ink)}
body[data-studio=daily] .meal-overview-head small{font-size:10px;color:var(--muted)}
body[data-studio=daily] .meal-overview-menu{font-size:12px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
body[data-studio=daily] .daily-meal-picker strong{font-size:15px;font-weight:600;color:var(--main);margin-top:auto}
body[data-studio=daily] .daily-meal-picker strong small{font-size:10px;font-weight:400}
body[data-studio=daily] #daily-meals .journal-meal{grid-template-columns:clamp(100px,20vw,180px) minmax(0,1fr);grid-template-rows:auto auto;gap:16px 20px;padding:18px}
body[data-studio=daily] #daily-meals .journal-meal>.meal-photo{grid-column:1;grid-row:2;aspect-ratio:1;width:100%;align-self:start}
body[data-studio=daily] .meal-detail-records{grid-column:2;grid-row:2;min-width:0}
body[data-studio=daily] .meal-detail-records>.meal-completion{display:flex;align-items:center;gap:7px;justify-self:start;width:fit-content;padding:6px 8px;font-size:12px;margin:0 0 16px;border-radius:6px;color:var(--muted)}
body[data-studio=daily] .meal-detail-records>.meal-completion:has(input:checked){background:var(--soft);color:var(--main)}
body[data-studio=daily] #daily-meals .meal-detail-records .meal-list-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;grid-column:auto;grid-row:auto}
body[data-studio=daily] #daily-meals .meal-detail-records .meal-list-columns.is-merged{grid-template-columns:1fr}
body[data-studio=daily] #daily-meals .meal-list-column+.meal-list-column{padding-left:0;border:0}
body[data-studio=daily] .food-item-list{list-style:none;margin:8px 0 0;padding:0}
body[data-studio=daily] .food-item-list li{display:grid;grid-template-columns:8px minmax(0,1fr) 48px 22px 16px;align-items:center;gap:4px;margin:4px 0}
body[data-studio=daily] .food-item-list li>span:first-child{color:var(--main)}
body[data-studio=daily] .food-item-list input{width:100%;min-width:0;padding:6px 3px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;height:32px}
body[data-studio=daily] .food-item-list input[type=number]{appearance:textfield;text-align:right;font-size:12px}
body[data-studio=daily] .food-item-list input::-webkit-inner-spin-button{appearance:none}
body[data-studio=daily] .food-item-list button{padding:0;border:0;background:transparent;color:var(--muted);font-size:14px}
body[data-studio=daily] .food-kcal-unit{font-size:9px;color:var(--muted)}
body[data-studio=daily] .meal-subtotal{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}
body[data-studio=daily] .meal-subtotal strong{font-size:14px;font-weight:600;color:var(--main)}
body[data-studio=daily] #journal-food>.day-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;margin-top:18px;border-top:1px solid var(--line);font-size:13px;color:var(--ink)}
body[data-studio=daily] .day-total small{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}
body[data-studio=daily] .day-total strong{font-size:20px;font-weight:650;color:var(--main)}
body[data-studio=daily] .app-day-checks{gap:20px;padding:0 0 18px}
body[data-studio=daily] .app-totals{padding:14px;margin:0 0 24px;background:var(--soft);border-radius:9px}
body[data-studio=daily] .app-totals strong{font-size:20px;font-weight:600}
body[data-studio=daily] .app-food-flow .app-step{grid-template-columns:1fr;padding-top:14px}
body[data-studio=daily] .app-food-flow .app-step-number{display:none}
body[data-studio=daily] .app-food-flow h3{font-size:15px;font-weight:600}
body[data-studio=daily] .app-food-flow h4{font-size:12px;font-weight:500;color:var(--muted)}
body[data-studio=daily] .app-food-flow .app-edit{margin-left:0}
@media(max-width:760px){body[data-studio=daily] .daily-meal-picker{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-studio=daily] #daily-meals .meal-detail-records .meal-list-columns{grid-template-columns:1fr}}
@media(max-width:480px){body[data-studio=daily] #daily-meals .journal-meal{grid-template-columns:96px minmax(0,1fr);padding:12px;gap:14px}body[data-studio=daily] #daily-meals .journal-meal-head{grid-column:2;grid-row:1;align-self:center}body[data-studio=daily] #daily-meals .journal-meal>.meal-photo{grid-column:1;grid-row:1}body[data-studio=daily] .meal-detail-records{grid-column:1/-1;grid-row:2}body[data-studio=daily] .food-item-list li{grid-template-columns:8px minmax(0,1fr) 52px 24px 18px}body[data-studio=daily] #daily-movement .movement-heading{display:grid}}
/* Shared heading hierarchy across the studio widgets. */
body[data-studio] :is(.section-head>b,.journal-section h2,.app-heading h2,.app-section-label,.app-ranking-grid h3,.app-cycle-review .app-subhead h3){font-size:16px!important;font-weight:650!important;line-height:1.5;letter-spacing:-.2px}
body[data-studio] :is(.field>span,.app-label,.meal-list-column>span){font-size:12px;font-weight:500}
body[data-studio] :is(.app-subhead h3,.journal-meal h3){font-size:14px;font-weight:600}

/* Life cards share each row height, with compact cycle details. */
body[data-studio=daily] #habits{align-items:stretch}
body[data-studio=daily] #habits>.daily-cycle-root{align-self:stretch;display:flex}
body[data-studio=daily] #habits>.daily-cycle-root[hidden]{display:none}
body[data-studio=daily] .cycle-card-label{font-size:var(--daily-label);font-weight:500;line-height:16px;color:var(--muted);margin-bottom:2px}
body[data-studio=daily] .cycle-today-pain{width:100%;padding-top:2px}
body[data-studio=daily] .cycle-today-pain .app-label{font-size:11px!important;line-height:16px}
body[data-studio=daily] #habits .app-cycle-check{min-height:102px;width:100%;height:100%;box-sizing:border-box}
body[data-studio=daily] .cycle-today-pain{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
body[data-studio=daily] .cycle-today-pain .app-label{margin:0}

/* Keep cycle status and pain selection together, wrapping only when needed. */
body[data-studio=daily] .cycle-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;width:100%}
body[data-studio=daily] .cycle-controls .cycle-day-toggle{flex:0 0 auto}
body[data-studio=daily] .cycle-controls .cycle-today-pain{width:auto;padding:0;gap:5px;flex:0 1 auto}
body[data-studio=daily] .cycle-controls .cycle-today-pain .app-label{font-size:10px!important;margin:0}
body[data-studio=daily] .cycle-controls .cycle-today-pain .app-choices{gap:3px}
body[data-studio=daily] .cycle-controls .cycle-today-pain .app-choices button{padding:5px;font-size:10px}
body[data-studio=daily] .cycle-controls .cycle-today-pain{flex-direction:column;align-items:flex-start;gap:4px}

body[data-studio=daily] .cycle-pain-select{width:auto;min-width:0;max-width:100%;height:32px;padding:5px 24px 5px 9px;border:1px solid var(--line);border-radius:7px;background-color:var(--paper);color:var(--muted);font:inherit;font-size:11px;cursor:pointer}
body[data-studio=daily] .cycle-pain-select:has(option:checked:not([value=""])){color:var(--main);background-color:var(--soft)}

/* Five daily habits on the left; cycle spans both rows on the right. */
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:repeat(8,minmax(0,1fr));align-items:stretch}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.habit-choice:first-child{grid-column:1/3;grid-row:1}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.satisfaction-choice{grid-column:3/5;grid-row:1}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.condition-choice{grid-column:5/7;grid-row:1}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.water-card{grid-column:1/4;grid-row:2}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.bowel-card{grid-column:4/7;grid-row:2}
body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.daily-cycle-root{grid-column:7/9;grid-row:1/3}
body[data-studio=daily] .cycle-controls{flex-direction:column;align-items:flex-start;gap:18px}
body[data-studio=daily] .cycle-controls .cycle-today-pain{gap:8px}
body[data-studio=daily] .cycle-controls .cycle-today-pain .app-label{font-size:11px!important}
body[data-studio=daily] .cycle-controls .cycle-today-pain .app-choices{gap:5px}
body[data-studio=daily] .cycle-controls .cycle-today-pain .app-choices button{font-size:11px;padding:5px 7px}
@media(max-width:850px){
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:repeat(6,minmax(0,1fr))}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.daily-cycle-root{grid-column:1/-1;grid-row:3}
 body[data-studio=daily] .cycle-controls{flex-direction:row;align-items:center}
}
@media(max-width:560px){
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.habit-choice:first-child{grid-column:1;grid-row:1}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.satisfaction-choice{grid-column:2;grid-row:1}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.condition-choice{grid-column:1/-1;grid-row:2}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.water-card{grid-column:1/-1;grid-row:3}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.bowel-card{grid-column:1/-1;grid-row:4}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.daily-cycle-root{grid-column:1/-1;grid-row:5}
}

/* Give multi-control habits more room and keep the body action by the title. */
body[data-studio=daily] .life-record-tools{justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}
body[data-studio=daily] .life-record-tools h2{margin:0!important}
body[data-studio=daily] .life-record-tools .body-record-trigger{display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 11px!important;border:1px solid color-mix(in srgb,var(--main) 28%,var(--line))!important;border-radius:7px;background:var(--soft)!important;color:var(--main)!important;font-weight:500}
body[data-studio=daily] .life-record-tools .body-record-trigger:before{content:'+';font-size:15px;line-height:1}
body[data-studio=daily] .life-record-tools .body-record-trigger:hover{border-color:var(--main)!important}
body[data-studio=daily] .cycle-controls{gap:12px}
body[data-studio=daily] .cycle-controls .cycle-today-pain{gap:6px}


/* Balance card widths and center the daily habit contents. */
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){text-align:center;align-items:center;padding-inline:14px}
body[data-studio=daily] #habits .habit-choice>span{display:block;width:100%;text-align:center}
body[data-studio=daily] #habits .habit-choice>div{justify-content:center}
body[data-studio=daily] #habits .empty-check{width:fit-content;max-width:100%;margin-inline:auto;justify-content:center}
body[data-studio=daily] #habits :is(.water-title,.water-cups){justify-content:center}
body[data-studio=daily] #habits .water-note{text-align:center}
body[data-studio=daily] #habits .app-cycle-check{align-items:center;text-align:center}
body[data-studio=daily] #habits .cycle-controls{align-items:center;justify-content:center}
body[data-studio=daily] #habits .cycle-controls .cycle-today-pain{align-items:center}
body[data-studio=daily] #habits .cycle-today-pain .app-choices{justify-content:center}

body[data-studio=daily] #habits .cycle-controls{row-gap:24px}
body[data-studio=daily] #habits .cycle-controls .cycle-today-pain{gap:9px}

/* Center each group vertically; cycle groups align with the two habit rows. */
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}
body[data-studio=daily] #habits .habit-choice>span,body[data-studio=daily] #habits .water-title{margin:0}
body[data-studio=daily] #habits .water-card{gap:5px}
body[data-studio=daily] #habits .water-cups{margin:0}
body[data-studio=daily] #habits .water-note{margin:0}
body[data-studio=daily] #habits .app-cycle-check{display:grid;grid-template-rows:1fr 1fr;gap:12px;padding:0;align-items:stretch}
body[data-studio=daily] #habits .cycle-status,body[data-studio=daily] #habits .cycle-today-pain{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px;width:100%;box-sizing:border-box}
body[data-studio=daily] #habits .cycle-card-label,body[data-studio=daily] #habits .cycle-today-pain .app-label{margin:0}
@media(max-width:850px){body[data-studio=daily] #habits .app-cycle-check{grid-template-rows:auto;grid-template-columns:1fr 1fr;gap:0}body[data-studio=daily] #habits .app-cycle-check:not(:has(.cycle-today-pain)){grid-template-columns:1fr}}
body[data-studio=daily] #habits .water-cups{align-self:center}

/* Compact checks above; satisfaction and condition below. */
@media(min-width:851px){
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.bowel-card{grid-column:3/5;grid-row:1}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.water-card{grid-column:5/7;grid-row:1}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.condition-choice{grid-column:1/4;grid-row:2}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.satisfaction-choice{grid-column:4/7;grid-row:2}
}
@media(min-width:561px) and (max-width:850px){
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.bowel-card{grid-column:3/5;grid-row:1}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.water-card{grid-column:5/7;grid-row:1}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.condition-choice{grid-column:1/4;grid-row:2}
 body[data-studio=daily] #habits:has(.daily-cycle-root:not([hidden]))>.satisfaction-choice{grid-column:4/7;grid-row:2}
}

/* Common label baseline and type; keep cycle controls as one compact group. */
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){justify-content:flex-start;padding:14px;gap:10px}
body[data-studio=daily] #habits .habit-choice>span,
body[data-studio=daily] #habits .water-title,
body[data-studio=daily] #habits .cycle-card-label,
body[data-studio=daily] #habits .cycle-today-pain .app-label{font-size:12px!important;font-weight:500!important;line-height:18px!important;min-height:18px;margin:0;color:var(--muted)}
body[data-studio=daily] #habits .water-card{gap:6px}
body[data-studio=daily] #habits .water-title{margin-bottom:4px}
body[data-studio=daily] #habits .app-cycle-check{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:14px;gap:20px}
body[data-studio=daily] #habits .cycle-status,
body[data-studio=daily] #habits .cycle-today-pain{padding:0;gap:10px;flex:none}
@media(max-width:850px){body[data-studio=daily] #habits .app-cycle-check{flex-direction:row;align-items:flex-start;justify-content:center;gap:24px}body[data-studio=daily] #habits .cycle-status,body[data-studio=daily] #habits .cycle-today-pain{width:auto;flex:1}}

/* Water uses the same centered label/control rhythm as the other habits. */
body[data-studio=daily] #habits .water-card{align-items:center;gap:10px}
body[data-studio=daily] #habits .water-title{display:flex;align-items:center;justify-content:center;align-self:center;width:auto;margin:0;gap:7px;text-align:center}
body[data-studio=daily] #habits .water-title>:is(span,output,button){margin:0;flex:none}
body[data-studio=daily] #habits .water-cups{display:flex;align-self:center;justify-content:center;width:auto;margin:0}
body[data-studio=daily] #habits .water-note{display:none}

body[data-studio=daily] #habits .water-title>span{font-size:12px!important;font-weight:500!important;line-height:18px!important;color:var(--muted)}
body[data-studio=daily] #habits .water-amount{display:block;font-size:11px;line-height:16px;font-weight:500;color:var(--main);margin:-4px 0 0;text-align:center}

/* Top-row habits share identical title, control, and optional detail tracks. */
body[data-studio=daily] #habits>.habit-choice:first-child,
body[data-studio=daily] #habits>.bowel-card,
body[data-studio=daily] #habits>.water-card{display:grid;grid-template-rows:18px 36px 16px;align-content:center;justify-items:center;align-items:center;row-gap:6px;padding:14px}
body[data-studio=daily] #habits>.habit-choice:first-child>span,
body[data-studio=daily] #habits>.bowel-card>span,
body[data-studio=daily] #habits>.water-card>.water-title{grid-row:1;margin:0}
body[data-studio=daily] #habits>.habit-choice:first-child>.empty-check,
body[data-studio=daily] #habits>.bowel-card>.empty-check,
body[data-studio=daily] #habits>.water-card>.water-cups{grid-row:2;align-self:center;justify-self:center;margin:0}
body[data-studio=daily] #habits>.water-card>.water-amount{grid-row:3;margin:0}

/* Center the shared title/control group without an empty amount row. */
body[data-studio=daily] #habits>.habit-choice:first-child,
body[data-studio=daily] #habits>.bowel-card,
body[data-studio=daily] #habits>.water-card{position:relative;display:grid;grid-template-rows:18px 36px;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:center;align-items:center;gap:10px;padding:14px;min-height:110px;text-align:center}
body[data-studio=daily] #habits>.water-card>.water-amount{position:absolute;top:calc(50% + 32px);left:0;right:0;grid-row:auto;margin:0;line-height:16px;text-align:center}
body[data-studio=daily] #habits>.habit-choice:first-child>*,body[data-studio=daily] #habits>.bowel-card>*,body[data-studio=daily] #habits>.water-card>*{grid-column:1!important;justify-self:center}

/* Keep amount outside the centered group, at the right edge. */
body[data-studio=daily] #habits>.water-card>.water-amount{top:auto;bottom:8px;left:auto;right:12px;width:auto;text-align:right}
body[data-studio=daily] #habits>.habit-choice{justify-content:center;align-items:center;text-align:center}
body[data-studio=daily] #habits>.habit-choice>div{justify-content:center}
body[data-studio=daily] #habits .app-cycle-check{justify-content:center}

/* Center the secondary water amount below the cups. */
body[data-studio=daily] #habits>.water-card>.water-amount{top:calc(50% + 32px);bottom:auto;left:0;right:0;width:auto;text-align:center;color:color-mix(in srgb,var(--muted) 72%,var(--paper));font-weight:400}

/* Current-date status and return action sit below the date. */
body[data-studio] .date-center{flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:140px}
body[data-studio] .date-center #today{margin:0;line-height:18px;padding:2px 9px;min-height:22px;color:var(--main);background:var(--soft);cursor:pointer}
body[data-studio] .date-center #today.is-current{color:var(--muted);background:transparent;cursor:default;opacity:1}
body[data-studio] .date-navigation>button{align-self:flex-start;margin-top:1px}

/* Shared outline colors for water, supplements, and bowel checks. */
body[data-studio=daily] #habits .cup-shine{display:none}
body[data-studio=daily] #habits .water-cup .cup-outline,
body[data-studio=daily] #habits .supplement-icon,
body[data-studio=daily] #habits .leaf-mark svg{stroke:var(--muted);fill:none;stroke-width:1.4;opacity:1}
body[data-studio=daily] #habits .water-cup[aria-pressed=true] .cup-outline,
body[data-studio=daily] #habits .empty-check:has(input:checked) .supplement-icon,
body[data-studio=daily] #habits .empty-check:has(input:checked) .leaf-mark svg{stroke:var(--main)}

/* A single icon-and-checkbox treatment for the three daily check actions. */
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle){display:inline-flex!important;align-items:center!important;justify-content:center;gap:7px!important;box-sizing:border-box;height:36px;min-height:36px;padding:8px!important;line-height:18px;font-size:12px;border-radius:8px}
body[data-studio=daily] #habits :is(.supplement-icon,.leaf-mark svg,.cycle-day-toggle svg){width:18px!important;height:18px!important;flex:0 0 18px;fill:none;stroke-width:1.5!important;stroke-linecap:round;stroke-linejoin:round}
body[data-studio=daily] #habits .leaf-mark{display:flex;align-items:center;justify-content:center;width:18px;height:18px;line-height:1;flex:0 0 18px}
body[data-studio=daily] #habits .cup-outline{stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle)>input[type=checkbox]{position:relative;display:inline-block!important;box-sizing:border-box;flex:0 0 14px!important;width:14px!important;height:14px!important;min-width:14px;margin:0!important;padding:0!important;align-self:center;vertical-align:middle;border-radius:3px}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle)>input[type=checkbox]:checked:after{position:absolute;box-sizing:content-box;width:6px;height:3px;left:2px;top:3px;margin:0;transform:rotate(-45deg);border-width:0 0 2px 2px}
@media(min-width:851px){body[data-studio=daily] #habits .app-cycle-check{justify-content:flex-start;padding:22px 14px;gap:20px}body[data-studio=daily] #habits .cycle-status{gap:10px}}

/* Water shares the selected background; SVG ticks stay centered at all scales. */
body[data-studio=daily] #habits .water-cups{padding:3px 8px;box-sizing:border-box;border-radius:8px;height:36px}
body[data-studio=daily] #habits .water-cups:has(.water-cup[aria-pressed=true]){background:var(--soft)}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle)>input[type=checkbox]:checked:after{content:'';position:absolute;inset:0!important;display:block;width:10px;height:10px;box-sizing:border-box;margin:auto!important;border:0!important;transform:none!important;background:var(--on-control);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 6 2.5 2.5L10 3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}

body[data-studio=daily] #habits .water-surface{stroke:var(--main);stroke-opacity:.65;stroke-width:1;vector-effect:non-scaling-stroke;shape-rendering:geometricPrecision;fill:none;transition:y1 .2s,y2 .2s}

/* A soft solid fill, with selection attached to each filled cup. */
body[data-studio=daily] #habits .water-fill{fill:color-mix(in srgb,var(--main) 22%,var(--paper))!important}
body[data-studio=daily] #habits .water-cups:has(.water-cup[aria-pressed=true]){background:transparent}
body[data-studio=daily] #habits .water-cup{height:36px;width:29px;padding:3px 2px;border-radius:7px;background:transparent}
body[data-studio=daily] #habits .water-cup[aria-pressed=true]{background:var(--soft)}

/* A quiet divider separates cycle status from daily pain. */
body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain{position:relative}
body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain:before{content:'';position:absolute;top:-10px;left:0;right:0;border-top:1px dashed color-mix(in srgb,var(--muted) 25%,var(--paper))}
@media(max-width:850px){body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain:before{top:0;bottom:0;left:-12px;right:auto;border-top:0;border-left:1px dashed color-mix(in srgb,var(--muted) 25%,var(--paper))}}

/* Give the cycle divider breathing room within the two-row card. */
@media(min-width:851px){
 body[data-studio=daily] #habits .app-cycle-check{gap:38px;padding-inline:20px}
 body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain:before{top:-19px;left:4px;right:4px}
 body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain{gap:12px}
}
@media(max-width:850px){body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain:before{top:5px;bottom:5px}}

body[data-studio] .date-navigation{align-items:center}
body[data-studio] .date-navigation>button{align-self:center;margin-top:0}
body[data-studio=daily] .date-picker{white-space:nowrap}

/* Optional cycle estimate settings and compact daily countdown. */
body[data-studio=settings] .cycle-settings-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px;margin-top:18px}
body[data-studio=settings] .cycle-settings-fields label{display:flex;flex-direction:column;gap:8px;min-width:0}
body[data-studio=settings] .cycle-settings-fields label>span{font-size:12px;font-weight:500;color:var(--muted)}
body[data-studio=settings] .cycle-settings-fields input{box-sizing:border-box;width:100%;min-width:0;height:40px;border:1px solid var(--line);border-radius:7px;padding:8px 10px;background:var(--paper);color:var(--ink);font:inherit;font-size:13px}
body[data-studio=settings] .cycle-interval-input{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
body[data-studio=settings] .cycle-settings-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 0}
body[data-studio=daily] #habits .cycle-forecast{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;width:100%;font-size:12px;line-height:1.5;color:var(--main)}
body[data-studio=daily] #habits .cycle-forecast small{font-size:10px;color:var(--muted);font-weight:400}
@media(max-width:850px){body[data-studio=daily] #habits .cycle-forecast{align-self:center;flex:1}}

body[data-studio=daily] #habits .cycle-forecast>span{font-size:12px;font-weight:500;color:var(--muted)}
body[data-studio=daily] #habits .cycle-forecast>strong{font-size:22px;line-height:1.25;font-weight:600;color:var(--main)}

/* Outline-only idle checks, softly filled selected checks. */
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle){border:1px solid var(--line)!important;background:transparent!important}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle):has(input:checked){background:var(--soft)!important;border-color:transparent!important}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle):not(:has(input:checked)):hover{border-color:color-mix(in srgb,var(--main) 40%,var(--line))!important}

/* User-supplied filled-path SVGs retain their original shapes and theme color. */
body[data-studio=daily] #habits svg.provided-icon,body[data-studio=daily] #habits svg.provided-icon *{fill:currentColor!important;stroke:none!important;stroke-width:0!important}
body[data-studio=daily] #habits .condition-choice .provided-icon{display:block;width:22px!important;height:22px!important}
body[data-studio=daily] #habits .condition-choice button>span{display:flex;align-items:center;justify-content:center;line-height:1}
body[data-studio=daily] #habits .condition-choice button{gap:4px;line-height:14px}

/* Condition pills contain both icon and label with equal vertical padding. */
body[data-studio=daily] #habits .condition-choice>div{height:auto;min-height:48px;align-items:stretch;gap:6px}
body[data-studio=daily] #habits .condition-choice button{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;height:auto;min-height:48px;padding:6px 8px;gap:4px;line-height:14px;border-radius:8px}
body[data-studio=daily] #habits .condition-choice button>span{height:22px;min-height:22px;line-height:1;flex:0 0 22px}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle):not(:has(input:checked)){border-style:dashed!important}
body[data-studio=daily] #habits .satisfaction-choice>div{height:52px;min-height:52px;align-items:center}

/* Focus belongs to the whole review box, not a clipped line below the toolbar. */
body[data-studio=daily] .review:is(:focus,:focus-visible){outline:none!important;box-shadow:none}
body[data-studio=daily] .review-box:focus-within{border-color:color-mix(in srgb,var(--main) 30%,var(--line))}
/* Preserve the habit order when cycle tracking is disabled. */
@media(min-width:561px){
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden]))){grid-template-columns:repeat(6,minmax(0,1fr))}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.habit-choice:first-child{grid-column:1/3;grid-row:1}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.bowel-card{grid-column:3/5;grid-row:1}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.water-card{grid-column:5/7;grid-row:1}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.condition-choice{grid-column:1/4;grid-row:2}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.satisfaction-choice{grid-column:4/7;grid-row:2}
}
@media(max-width:560px){
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.habit-choice:first-child{grid-column:1;grid-row:1}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.bowel-card{grid-column:2;grid-row:1}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.water-card{grid-column:1/-1;grid-row:2}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.condition-choice{grid-column:1/-1;grid-row:3}
 body[data-studio=daily] #habits:not(:has(.daily-cycle-root:not([hidden])))>.satisfaction-choice{grid-column:1/-1;grid-row:4}
}
/* Compact body status stays visible without revealing the weight itself. */
body[data-studio=daily] .body-check-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px;padding:16px 18px;background:var(--soft);border-radius:10px}
body[data-studio=daily] .body-check-summary>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;min-width:0}
body[data-studio=daily] .body-check-summary span,body[data-studio=daily] .body-check-summary small{font-size:11px;font-weight:400;color:var(--muted)}
body[data-studio=daily] .body-check-summary strong{font-size:13px;font-weight:600;color:var(--main)}
body[data-studio=daily] .daily-body-dialog>header{padding:20px 22px}
body[data-studio=daily] .daily-body-dialog>header p{margin:5px 0 0;font-size:11px;color:var(--muted)}
body[data-studio=daily] .body-dialog-content{padding:20px 22px 24px}
body[data-studio=daily] .daily-body-dialog .body-form{gap:20px}
body[data-studio=daily] .daily-body-dialog .privacy-hint{margin:0;font-size:11px;color:var(--muted)}
body[data-studio=daily] .body-check-section{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:10px}
body[data-studio=daily] .body-check-section h3{margin:0;font-size:13px;font-weight:600;line-height:20px;color:var(--ink)}
body[data-studio=daily] .body-check-section h3 small{font-size:11px;font-weight:400;color:var(--muted);margin-left:4px}
body[data-studio=daily] .body-check-section .focus-field{margin:0}
body[data-studio=daily] .body-check-section .body-input-label{display:block;margin-bottom:8px;font-size:11px;color:var(--muted)}
body[data-studio=daily] .body-check-section .body-photo-row{border:0;padding:0;gap:8px}
body[data-studio=daily] .body-check-section .body-photo-row h3{margin-right:auto}
body[data-studio=daily] .body-check-section input{height:42px;padding:10px 12px;font-size:13px}
body[data-studio=daily] .body-check-section .body-parts{gap:14px}
@media(max-width:560px){body[data-studio=daily] .body-check-summary{gap:12px;padding:14px 12px}body[data-studio=daily] .body-check-summary>div{flex-direction:column;gap:6px}body[data-studio=daily] .body-check-summary strong{font-size:12px}body[data-studio=daily] .body-dialog-content{padding:16px}body[data-studio=daily] .body-check-section{padding:14px}}
body[data-studio=daily] #habits svg.provided-icon.bowel-icon,body[data-studio=daily] #habits svg.provided-icon.bowel-icon *{fill:none!important;stroke:currentColor!important;stroke-width:1.4!important;stroke-linecap:round;stroke-linejoin:round}
body[data-studio=daily] .daily-body-dialog .body-check-section .body-photo-row{border:0;padding:0;margin:0}
body[data-studio=daily] .daily-body-dialog .body-check-section .private-input{height:42px;font-size:13px}
body[data-studio=daily] .daily-body-dialog .body-check-section .body-photo-row{border:0!important;padding:0!important;margin:0!important}
/* Body check: quiet three-column summary with a consistent reading order. */
body[data-studio=daily] .body-check-summary{background:transparent;border:1px solid var(--line);border-radius:10px;padding:18px 0;margin:0 0 20px;gap:0}
body[data-studio=daily] .body-check-summary>div{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:8px;padding:0 12px}
body[data-studio=daily] .body-check-summary>div+div{border-left:1px solid var(--line)}
body[data-studio=daily] .body-check-summary span{font-size:11px;line-height:16px;font-weight:400;color:var(--muted)}
body[data-studio=daily] .body-check-summary strong{font-size:16px;line-height:22px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--main)}
body[data-studio=daily] .body-check-summary .body-check-state strong{font-size:13px;line-height:22px;color:var(--ink)}
body[data-studio=daily] .body-check-summary small{font-size:10px;line-height:14px;color:var(--muted);margin-top:-4px}
@media(max-width:560px){body[data-studio=daily] .body-check-summary{padding:16px 0}body[data-studio=daily] .body-check-summary>div{padding:0 8px;gap:7px}body[data-studio=daily] .body-check-summary strong{font-size:15px}}
body[data-studio=daily] .daily-body-dialog .body-parts label{gap:8px}
body[data-studio=daily] .daily-body-dialog .part-changes{display:flex;flex-direction:column;gap:6px;padding-top:3px;font-size:11px;line-height:16px;color:var(--muted)}
body[data-studio=daily] .daily-body-dialog .part-changes>span{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
body[data-studio=daily] .daily-body-dialog .part-changes b{font-size:11px;font-weight:500;color:var(--main);font-variant-numeric:tabular-nums;white-space:nowrap}
body[data-studio=daily] .daily-body-dialog .part-changes small{font-size:10px;font-weight:400}
body[data-studio=daily] .daily-body-dialog .body-parts{row-gap:22px}
body[data-studio=daily] #journal-review .review{min-height:110px;height:auto;max-height:none;overflow:visible;padding:12px 14px}
body[data-studio=daily] #journal-review .review-tools{padding:7px 12px}
/* Each measurement has the same label, input and comparison rows. */
body[data-studio=daily] .daily-body-dialog .body-check-section .body-parts{gap:22px 18px;align-items:start}
body[data-studio=daily] .daily-body-dialog .body-parts .body-part-field{display:grid!important;grid-template-rows:18px 42px auto;align-content:start;gap:8px!important;margin:0;min-width:0}
body[data-studio=daily] .daily-body-dialog .body-part-name{font-size:12px;line-height:18px;font-weight:500;color:var(--ink)}
body[data-studio=daily] .daily-body-dialog .body-parts .private-input{box-sizing:border-box;display:block;flex:none!important;height:42px!important;min-height:42px;max-height:42px;width:100%;padding:10px 12px;line-height:20px;margin:0;font-size:13px}
body[data-studio=daily] .daily-body-dialog .body-parts .part-changes{display:grid;grid-template-rows:16px 16px;gap:5px;margin-top:3px;padding-top:9px;border-top:1px solid var(--line)}
body[data-studio=daily] .daily-body-dialog .body-parts .part-changes.is-single{grid-template-rows:16px}
body[data-studio=daily] .daily-body-dialog .part-changes>span{font-size:10px;line-height:16px;color:var(--muted)}
body[data-studio=daily] .daily-body-dialog .part-changes b{font-size:11px;line-height:16px;font-weight:500}
/* Water amount shares the exact center axis of the cup row. */
body[data-studio=daily] #habits>.water-card>.water-amount{left:50%;right:auto;width:max-content;transform:translateX(-50%);justify-self:auto;text-align:center}
/* Put formatting controls alongside the heading, removing the toolbar row. */
body[data-studio=daily] #journal-review{position:relative}
body[data-studio=daily] #journal-review>h2{min-height:29px;padding-right:80px;margin-bottom:12px}
body[data-studio=daily] #journal-review .review-tools{position:absolute;top:0;right:0;background:transparent;padding:0;gap:4px}
body[data-studio=daily] #journal-review .review-tools>span{display:none}
body[data-studio=daily] #journal-review .review{min-height:90px}
body[data-studio=daily] #habits>.water-card>.water-amount{grid-column:auto!important;grid-row:auto!important}
body[data-studio=daily] .daily-view-panel>#journal-review{border-bottom:0;padding-bottom:0}
body[data-studio=daily] #journal-review .review{min-height:112px}
body[data-studio=daily] .daily-body-dialog .body-check-section .body-parts{gap:12px}
body[data-studio=daily] .daily-body-dialog .body-parts .body-part-field{padding:14px;background:var(--soft);border:1px solid color-mix(in srgb,var(--main) 8%,var(--line));border-radius:9px}
body[data-studio=daily] .daily-body-dialog .body-parts .private-input{background:var(--paper)}
body[data-studio=daily] .daily-body-dialog .body-parts .part-changes{border-top:0;padding-top:5px;margin-top:0}
@media(max-width:400px){body[data-studio=daily] .daily-body-dialog .body-parts .body-part-field{padding:10px}body[data-studio=daily] .daily-body-dialog .body-check-section .body-parts{gap:10px}}
/* Match the section-heading accent at the scale of each body part. */
body[data-studio=daily] .daily-body-dialog .body-part-name{display:flex;align-items:center;gap:7px}
body[data-studio=daily] .daily-body-dialog .body-part-name:before{content:'';display:block;width:3px;height:12px;flex:0 0 3px;border-radius:2px;background:var(--main)}
body[data-studio=daily] .life-record-tools .body-record-trigger{border-radius:999px!important;padding:7px 14px!important}
body[data-studio=daily] .daily-body-dialog .body-photo-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;line-height:18px}
body[data-studio=daily] .daily-body-dialog #body-photo{background:transparent;border-color:transparent;color:var(--muted);padding:6px 4px}
body[data-studio=daily] .daily-body-dialog #body-photo:hover{color:var(--main);background:var(--soft)}
body[data-studio=daily] .daily-body-dialog #body-reveal{order:1;background:var(--soft);border-color:transparent;border-radius:7px;padding:6px 10px;color:var(--main)}
body[data-studio=daily] .daily-body-dialog #body-photo{order:2}
body[data-studio=daily] .daily-body-dialog .body-photo-row button:before{content:'';width:14px;height:14px;display:block;flex:0 0 14px;background:currentColor;mask:center/contain no-repeat var(--photo-action-icon)}
body[data-studio=daily] #body-photo{--photo-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Cpath d='m3 17 5-5 4 4 4-6 5 7'/%3E%3C/svg%3E")}
body[data-studio=daily] #body-reveal{--photo-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
body[data-studio=daily] #body-photo-paste{--photo-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='18' rx='2'/%3E%3Cpath d='M9 4V2h6v2M12 9v7m-3-3 3 3 3-3'/%3E%3C/svg%3E")}
/* One shared vertical rhythm, including the water amount in normal layout. */
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:18px 52px 16px!important;align-content:center!important;justify-items:center;align-items:center;gap:6px!important;padding:14px!important;min-height:126px;min-width:0;box-sizing:border-box}
body[data-studio=daily] #habits>:is(.habit-choice,.water-card)>span,body[data-studio=daily] #habits>.water-card>.water-title{grid-row:1;grid-column:1;margin:0}
body[data-studio=daily] #habits>.habit-choice>:is(div,label),body[data-studio=daily] #habits>.water-card>.water-cups{grid-row:2;grid-column:1;min-width:0;max-width:100%;margin:0;align-self:center}
body[data-studio=daily] #habits>.water-card>.water-amount{position:static;grid-column:1!important;grid-row:3!important;transform:none;width:auto;justify-self:center;align-self:center;margin:0}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle){width:max-content!important;max-width:100%;box-sizing:border-box;white-space:nowrap;flex-shrink:0;gap:6px}
body[data-studio=daily] #habits :is(.empty-check,.cycle-day-toggle)>span{white-space:nowrap;flex:none}
body[data-studio=daily] #habits :is(.condition-choice,.satisfaction-choice)>div{display:flex;justify-content:center;gap:6px;width:100%;min-width:0}
body[data-studio=daily] #habits .satisfaction-choice button{flex:0 1 36px;min-width:0;width:36px;padding:6px;box-sizing:border-box}
body[data-studio=daily] #habits .condition-choice button{flex:1 1 0;min-width:0;max-width:76px;padding:6px 2px}
body[data-studio=daily] #habits .app-cycle-check{padding:14px!important;gap:24px}
body[data-studio=daily] #habits .cycle-status{display:grid;grid-template-rows:18px 52px;justify-items:center;align-items:center;gap:6px!important;padding:0;min-width:0}
body[data-studio=daily] #habits .cycle-today-pain{gap:6px!important;min-width:0}
body[data-studio=daily] .body-photo-web{order:3;display:inline-flex;align-items:center;min-height:32px;font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;padding:6px 4px}
@media(max-width:560px){
 body[data-studio=daily] #habits{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body[data-studio=daily] #habits>.habit-choice:first-child{grid-column:1/-1!important;grid-row:1!important}
 body[data-studio=daily] #habits>.bowel-card{grid-column:1/-1!important;grid-row:2!important}
 body[data-studio=daily] #habits>.water-card{grid-column:1/-1!important;grid-row:3!important}
 body[data-studio=daily] #habits>.condition-choice{grid-column:1/-1!important;grid-row:4!important}
 body[data-studio=daily] #habits>.satisfaction-choice{grid-column:1/-1!important;grid-row:5!important}
 body[data-studio=daily] #habits>.daily-cycle-root{grid-column:1/-1!important;grid-row:6!important;min-width:0}
 body[data-studio=daily] #habits .app-cycle-check{flex-direction:column;align-items:center;gap:24px}
 body[data-studio=daily] #habits .cycle-status,body[data-studio=daily] #habits .cycle-today-pain{width:100%;flex:none}
 body[data-studio=daily] #habits .app-cycle-check>.cycle-today-pain:before{top:-12px;bottom:auto;left:8px;right:8px;border-left:0;border-top:1px dashed var(--line)}
 body[data-studio=daily] .daily-body-dialog .body-photo-row{gap:6px;flex-wrap:wrap}
}
/* Tabs stay reachable within the widget's scrolling content at every width. */
body[data-studio=daily] .daily-section-tabs{position:sticky;top:0;z-index:5;background:var(--paper);padding:8px 0;isolation:isolate}

/* Keep the original date header and use a divider only below the sticky tabs. */
body[data-studio=daily] .daily-section-tabs{border-bottom:1px solid var(--line);padding:6px 0 8px;margin-bottom:18px}
body[data-studio=daily] .journal-habits-section{border-bottom:0;padding-bottom:0}

/* Reserve height for actual controls instead of an empty third row. */
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){grid-template-rows:18px 42px 16px!important;gap:4px!important;padding:10px 12px!important;min-height:108px}
body[data-studio=daily] #habits>:is(.condition-choice,.satisfaction-choice){grid-template-rows:18px 52px!important;gap:6px!important}
body[data-studio=daily] #habits>.water-card>.water-amount{line-height:16px}
body[data-studio=daily] #habits .cycle-status{grid-template-rows:18px 42px;gap:4px!important}
body[data-studio=daily] #habits .app-cycle-check{padding:10px 12px!important}
body[data-studio=daily] #daily-life>.journal-habits-section{border-bottom:0;padding-bottom:0}
body[data-studio=daily] #habits>:is(.habit-choice,.water-card){min-height:104px}
body[data-studio=daily] .daily-section-tabs{padding-top:9px;padding-bottom:9px}
body[data-studio] .studio-outline>.studio-scroll{padding-bottom:18px}
body[data-studio=daily] .daily-view-panel{padding-bottom:0}
body[data-studio=daily] :is(#daily-meals,#daily-mind)>.journal-section:last-child{padding-bottom:0;border-bottom:0}
body[data-studio=settings] .settings-summary .motivation-card{margin-bottom:0!important}
body[data-studio=routines] .studio-scroll>.routine-new:last-child{margin-bottom:0}
@media(max-width:480px){
  body[data-studio] .studio-outline>.studio-scroll{padding-bottom:12px}
}
body[data-studio=daily] .daily-meal-picker button[aria-pressed=true]{background:var(--soft);border-color:var(--line);color:var(--main)}
body[data-studio=daily] #daily-meals .journal-meal-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
body[data-studio=daily] .meal-status-options{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
body[data-studio=daily] .meal-status-options button,body[data-studio=daily] .meal-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--muted);font-size:11px;font-weight:500;line-height:1.2;white-space:nowrap}
body[data-studio=daily] .meal-status-options button[data-meal-status="계획대로"][aria-pressed=true],body[data-studio=daily] .meal-status-badge[data-status="계획대로"]{background:var(--main);border-color:var(--main);color:var(--paper)}
body[data-studio=daily] .meal-status-options button[data-meal-status="변경"][aria-pressed=true],body[data-studio=daily] .meal-status-badge[data-status="변경"]{background:var(--paper);border-color:var(--main);color:var(--main)}
body[data-studio=daily] .meal-status-options button[data-meal-status="안 먹음"][aria-pressed=true],body[data-studio=daily] .meal-status-badge[data-status="안 먹음"]{background:color-mix(in srgb,var(--surface) 45%,var(--paper));border-color:var(--line);color:var(--muted)}
body[data-studio=daily] .meal-status-options button[data-meal-status="미기록"][aria-pressed=true],body[data-studio=daily] .meal-status-badge[data-status="미기록"]{background:var(--surface);border-color:var(--line);color:var(--muted)}
body[data-studio=daily] .meal-status-options button:hover{border-color:var(--main);color:var(--main)}
body[data-studio=daily] .meal-completion{display:none!important}
body[data-studio=daily] .meal-overview-head{align-items:center;flex-wrap:nowrap}
body[data-studio=daily] .meal-overview-head .meal-status-badge{min-height:22px;padding:3px 7px;font-size:10px}
@media(max-width:480px){body[data-studio=daily] .meal-status-options{width:100%}body[data-studio=daily] .meal-status-options button{flex:1 1 auto;padding-inline:5px;font-size:10px}}
body[data-studio=daily] #journal-food>.journal-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
body[data-studio=daily] #journal-food>.journal-section-head h2{margin:0!important}
body[data-studio=daily] #journal-food .day-total{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;margin:0;padding:0;border:0;color:var(--muted);white-space:nowrap}
body[data-studio=daily] #journal-food .day-total>span{font-size:11px}
body[data-studio=daily] #journal-food .day-total strong{font-size:17px;line-height:1.2}
body[data-studio=daily] #journal-food .day-total small{margin-left:5px}
body[data-studio=daily] .meal-kind-icon{display:inline-block;width:17px;height:17px;flex:none;vertical-align:-3px;object-fit:contain;opacity:.65}
body[data-studio=daily] .meal-overview-head b,body[data-studio=daily] #daily-meals .journal-meal-head h3{display:inline-flex;align-items:center;gap:6px}
body[data-studio=daily] #daily-meals .meal-list-column{min-width:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
body[data-studio=daily] #daily-meals .meal-list-column+.meal-list-column{padding:12px;border:1px solid var(--line)}
body[data-studio=daily] #daily-meals .meal-list-column>span{display:block;margin:0 0 7px;color:var(--ink);font-size:12px;font-weight:600}
body[data-studio=daily] #daily-meals .meal-list-column .meal-list-editor{background:transparent}
body[data-studio=daily] .meal-photo:disabled{opacity:1;filter:none}
@media(max-width:480px){body[data-studio=daily] #journal-food .day-total>span>small{display:none}body[data-studio=daily] #journal-food .day-total strong{font-size:15px}body[data-studio=daily] #daily-meals .meal-list-column,body[data-studio=daily] #daily-meals .meal-list-column+.meal-list-column{padding:10px}}

/* Keep every widget heading on the same title axis and use the life-tab blue for meal art. */
body[data-studio] .studio-frame>.band{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:65px;padding:0 40px 16px!important}
body[data-studio] .studio-frame>.band .eyebrow{width:100%;font-size:10px;font-weight:500;line-height:1.4;letter-spacing:1.5px;text-align:center}
body[data-studio] .studio-frame>.band h1{font-size:20px!important;font-weight:650!important;line-height:1.4;text-align:center}
body[data-studio=weekly] .studio-frame>.band :is(.eyebrow,h1),body[data-studio=monthly] .studio-frame>.band :is(.eyebrow,h1),body[data-studio=routines] .studio-frame>.band :is(.eyebrow,h1),body[data-studio=appetite] .studio-frame>.band :is(.eyebrow,h1),body[data-studio=meal-templates] .studio-frame>.band :is(.eyebrow,h1){margin-left:auto!important;margin-right:auto!important}
body[data-studio=daily] #journal-food .day-total{flex-direction:row;align-items:baseline;gap:8px}
body[data-studio=daily] #journal-food .day-total>span{font-size:11px}
body[data-studio=daily] .meal-kind-icon{opacity:1;color:var(--main);fill:currentColor}
body[data-studio=daily] .meal-kind-icon :is(g,path){fill:currentColor!important}
body[data-studio=daily] .loaded-workout-readout[hidden],body[data-studio=daily] #inline-workouts[hidden],body[data-studio=daily] #exercise-add[hidden],body[data-studio=daily] #exercise-save[hidden],body[data-studio=weekly] .week-meal-editor[hidden]{display:none!important}
body[data-studio=daily] .loaded-workout-readout{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
body[data-studio=daily] .loaded-workout-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
body[data-studio=daily] .loaded-workout-head b{font-size:13px;font-weight:650}
body[data-studio=daily] .loaded-workout-head button{padding:5px 10px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--main);font-size:11px;cursor:pointer}
body[data-studio=daily] .loaded-workout-list{display:grid;gap:8px}
body[data-studio=daily] .loaded-workout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 12px;border-radius:8px;background:var(--surface)}
body[data-studio=daily] .loaded-workout b{font-size:12px;font-weight:600}
body[data-studio=daily] .loaded-workout span,body[data-studio=daily] .loaded-workout small{color:var(--muted);font-size:11px}
body[data-studio=daily] .loaded-workout small{grid-column:1/-1;line-height:1.5}
body[data-studio=weekly] .plan-routine-list{display:grid;gap:5px;max-height:150px;overflow:auto;padding:5px 0}
body[data-studio=weekly] .plan-routine-list label{display:flex;align-items:center;gap:5px;padding:5px;border-radius:5px;color:var(--ink);font-size:11px;cursor:pointer}
body[data-studio=weekly] .plan-routine-list label:has(input:checked){background:var(--soft);color:var(--main)}
body[data-studio=weekly] .skip-meal{margin:0 0 8px;font-size:10px}
body[data-studio=weekly] .meal-plan-cell:has(.skip-meal input:checked){background:color-mix(in srgb,var(--surface) 50%,var(--paper))}
.skip-meal,.daily-plan-skip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font-size:11px;font-weight:500;line-height:1.25;white-space:nowrap;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.skip-meal input,.daily-plan-skip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.skip-meal:has(input:checked),.daily-plan-skip:has(input:checked){border-color:color-mix(in srgb,var(--main) 48%,var(--line));background:var(--soft);color:var(--main)}
.skip-meal:has(input:checked) span::before,.daily-plan-skip:has(input:checked) span::before{content:'✓';margin-right:4px;font-weight:700}
.skip-meal:has(input:focus-visible),.daily-plan-skip:has(input:focus-visible){outline:2px solid var(--main);outline-offset:2px}
body[data-studio=daily] .plan-items[hidden]{display:none!important}
body[data-studio=daily] #daily-meals .meal-list-column>.plan-column-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
body[data-studio=daily] #daily-meals .plan-column-head>span{color:var(--ink);font-size:12px;font-weight:600}
body[data-studio=daily] .daily-plan-skip{flex:none}
body[data-studio=weekly] .week-table td.meal-plan-cell{padding:0;vertical-align:middle}
body[data-studio=weekly] .exercise-plan-open{display:-webkit-box;width:100%;overflow:hidden;margin-top:8px;padding:7px 8px;border:0;border-radius:6px;background:var(--surface);color:var(--ink);font-size:10px;text-align:left;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2;cursor:pointer}
body[data-studio=weekly] .exercise-plan-open[hidden]{display:none}
body[data-studio=weekly] .exercise-plan-open:hover,body[data-studio=weekly] .exercise-plan-open:focus-visible{background:var(--soft);outline:0}
body[data-studio=weekly] .exercise-plan-fields{margin-top:9px}
.week-meal-open{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;width:100%;min-height:76px;padding:12px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.week-meal-open:hover,.week-meal-open:focus-visible{background:var(--soft);outline:0}
.week-meal-foods{display:-webkit-box;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:11px;font-weight:550;line-height:1.45;overflow-wrap:anywhere}
.week-meal-open small{color:var(--main);font-size:10px}
.week-meal-empty,.week-meal-quiet{color:var(--muted);font-size:11px}
.week-meal-quiet{font-weight:550}
.week-meal-dialog{width:min(520px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 28px));padding:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 16px 48px #17243926}
.week-meal-dialog::backdrop{background:#17243975}
.week-meal-dialog header,.week-meal-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 22px}
.week-meal-dialog header{border-bottom:1px solid var(--line)}
.week-meal-dialog header small{color:var(--muted);font-size:11px}
.week-meal-dialog h2{margin:3px 0 0;font-size:16px;font-weight:650}
.week-meal-close{border:0;background:transparent;color:var(--muted);font-size:22px;cursor:pointer}
.week-meal-dialog-body{padding:20px 22px;overflow-y:auto}
.week-meal-dialog-body>.skip-meal{margin-bottom:18px}
.week-meal-dialog footer{justify-content:flex-end;border-top:1px solid var(--line)}
.week-meal-done{padding:8px 20px;border:1px solid var(--main);border-radius:7px;background:var(--main);color:#fff;cursor:pointer}
.week-dialog-editor .food-item-list{list-style:none;margin:8px 0 0;padding:0}
.week-dialog-editor .food-item-list li{display:grid;grid-template-columns:10px minmax(0,1fr) 64px 26px 24px 20px;align-items:center;gap:7px;margin:7px 0}
.week-dialog-editor .food-item-list li>span:first-child{color:var(--main)}
.week-dialog-editor .food-item-list input{width:100%;min-width:0;height:36px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:12px}
.week-dialog-editor .food-item-list input[type=number]{text-align:right}
.week-dialog-editor .food-item-list button{padding:0;border:0;background:transparent;color:var(--muted);font-size:17px;cursor:pointer}
.week-dialog-editor .food-order-controls{display:grid;gap:0;line-height:1}
.week-dialog-editor .food-order-controls button{height:16px;color:var(--main);font-size:12px}
.week-dialog-editor .food-order-controls button:disabled{color:var(--line);cursor:default}
.week-dialog-editor .meal-item-add{margin:6px 0 0;padding:6px 0;border:0;background:transparent;color:var(--main);font-size:12px;cursor:pointer}
.week-dialog-total{display:flex;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.week-dialog-total b{color:var(--main);font-size:13px}
.food-library{margin:0 0 10px}
.food-library summary{width:max-content;padding:5px 0;color:var(--main);font-size:11px;font-weight:600;cursor:pointer;list-style:none}
.food-library summary::-webkit-details-marker{display:none}
.food-library summary:focus-visible{outline:2px solid var(--main);outline-offset:2px}
.food-library-list{display:grid;max-height:180px;overflow-y:auto;margin:5px 0 12px;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}
.food-library-list button{display:flex;align-items:center;gap:8px;width:100%;padding:8px;border:0;border-radius:5px;background:transparent;color:var(--ink);font-size:11px;text-align:left;cursor:pointer}
.food-library-list button:hover,.food-library-list button:focus-visible{background:var(--soft);outline:0}
.food-library-star{color:var(--main);font-size:15px;line-height:1}
.food-library-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.food-library-list small{flex:none;color:var(--muted);font-size:10px}
body[data-studio=monthly] #grid :is(.day,.blank){aspect-ratio:1/1;min-height:0;height:auto}
body[data-studio=monthly] .lightbox-visual.portrait{background-size:cover}
body[data-studio=weekly] .focus-date{display:grid;grid-template-columns:30px max-content 30px;grid-template-rows:auto auto;justify-content:center;justify-items:center;align-items:center;column-gap:20px;row-gap:2px;min-height:84px;padding:12px 0 10px}
body[data-studio=weekly] .focus-date #prev{grid-column:1;grid-row:1}
body[data-studio=weekly] .focus-date #period{grid-column:2;grid-row:1;display:grid;gap:2px;text-align:center}
body[data-studio=weekly] .focus-date #next{grid-column:3;grid-row:1}
body[data-studio=weekly] .focus-date #today{grid-column:2;grid-row:2;padding:2px 8px;background:none}
body[data-studio=monthly] .month{display:grid;grid-template-columns:30px max-content 30px;grid-template-rows:auto auto;justify-content:center;justify-items:center;align-items:center;column-gap:20px;row-gap:2px;height:84px;padding:12px 0 10px;border-bottom:1px solid var(--line)}
body[data-studio=monthly] .month #prev{grid-column:1;grid-row:1}
body[data-studio=monthly] .month #month{grid-column:2;grid-row:1}
body[data-studio=monthly] .month #next{grid-column:3;grid-row:1}
body[data-studio=monthly] .month .studio-this-month{grid-column:2;grid-row:2;padding:2px 8px;background:none}
body[data-studio=monthly] .month .nav{width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:var(--paper);font-size:15px;line-height:1}
body[data-studio=monthly] .view-tools{padding-top:14px}
body[data-studio=weekly] .week-meal-columns{display:flex;justify-content:space-between;gap:4px;padding:3px 4px;color:var(--muted);font-size:10px}
body[data-studio=weekly] .week-meal-editor .food-item-list{list-style:none;margin:0;padding:0}
body[data-studio=weekly] .week-meal-editor .food-item-list li{display:grid;grid-template-columns:8px minmax(0,1fr) 34px 18px 14px;align-items:center;gap:2px;min-width:0;margin:3px 0}
body[data-studio=weekly] .week-meal-editor .food-item-list li>span:first-child{color:var(--main);font-size:13px}
body[data-studio=weekly] .week-meal-editor .food-item-list input{width:100%;min-width:0;height:29px;padding:3px 1px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:11px}
body[data-studio=weekly] .week-meal-editor .food-item-list input[type=number]{text-align:right;appearance:textfield;font-size:10px}
body[data-studio=weekly] .week-meal-editor .food-item-list li>span:nth-last-child(2){color:var(--muted);font-size:9px}
body[data-studio=weekly] .week-meal-editor .food-item-list button{padding:0;border:0;background:transparent;color:var(--muted);font-size:13px}
body[data-studio=weekly] .week-meal-editor .meal-item-add{padding:4px 2px;color:var(--main);font-size:10px}
body[data-studio=weekly] .week-meal-subtotal{display:flex;align-items:center;justify-content:space-between;gap:3px;margin-top:6px;padding:6px 3px 0;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
body[data-studio=weekly] .week-meal-subtotal b{color:var(--main);font-size:11px;white-space:nowrap}
body[data-studio=weekly] .week-meal-subtotal small{font-weight:400;font-size:9px}
body[data-studio] .food-item-list input[type=number]{appearance:textfield;-moz-appearance:textfield;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;color:var(--ink);text-align:right;padding:3px 1px}
body[data-studio] .food-item-list input[type=number]::-webkit-inner-spin-button,body[data-studio] .food-item-list input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body[data-studio] .food-item-list input[type=number]::placeholder{color:var(--muted);opacity:.7}
body[data-studio] .food-item-list input[type=text]{border-bottom:1px solid var(--line);background:var(--paper)}
body[data-studio=daily] .food-item-list li{grid-template-columns:8px minmax(0,1fr) 56px 22px 16px;gap:6px}
body[data-studio=weekly] .week-meal-editor .food-item-list input[type=number]{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:right}
body[data-studio] .food-item-list input[type=number]:focus{outline:0;border-bottom-color:var(--main);box-shadow:0 1px 0 var(--main)}

body[data-studio=weekly] .week-meal-columns{justify-content:flex-start;padding-left:10px}

/* Weekly cells are summaries; the dialog is the editing surface. */
body[data-studio=weekly] .week-exercise-open{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;width:100%;min-height:64px;padding:10px 12px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
body[data-studio=weekly] .week-exercise-open:hover,body[data-studio=weekly] .week-exercise-open:focus-visible{background:var(--soft);outline:0}
body[data-studio=weekly] .week-exercise-open small{color:var(--main);font-size:10px}
.week-workout-dialog .week-meal-dialog-body{display:grid;gap:18px}
.week-workout-enabled{display:flex;align-items:center;gap:9px;width:max-content;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer}
.week-workout-enabled input,.week-workout-routine-list input{accent-color:var(--main)}
.week-workout-fields{display:grid;gap:18px}
.week-workout-input,.week-workout-routines{display:grid;gap:10px}
.week-workout-dialog h3{margin:0;color:var(--ink);font-size:12px;font-weight:650}
.week-workout-input textarea{width:100%;min-height:72px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;resize:vertical}
.week-workout-input>label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}
.week-workout-input input[type=number]{width:70px;height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink);font:inherit;text-align:right;appearance:textfield}
.week-workout-input input[type=number]::-webkit-inner-spin-button,.week-workout-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.week-workout-routine-list{display:grid;gap:6px;max-height:160px;overflow:auto}
.week-workout-routine-list label{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);border-radius:7px;color:var(--ink);font-size:12px;cursor:pointer}
.week-workout-routine-list label:has(input:checked){border-color:color-mix(in srgb,var(--main) 42%,var(--line));background:var(--soft)}
.week-workout-routine-list label span{flex:1}
.week-workout-routine-list small,.no-routines{color:var(--muted);font-size:11px}
.week-workout-preview{display:grid;gap:10px;padding-top:16px;border-top:1px solid var(--line)}
.week-workout-part{padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.week-workout-part header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;border:0;font-size:12px}
.week-workout-part header span{color:var(--main);font-size:11px;white-space:nowrap}
.week-workout-part p{margin:8px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.week-workout-part ol{display:grid;gap:6px;margin:9px 0 0;padding-left:20px;font-size:11px}
.week-workout-part li{padding-left:2px}
.week-workout-part li span{color:var(--ink)}
.week-workout-part li small{display:block;color:var(--muted);font-size:10px}
.week-workout-total,.loaded-workout-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 2px;color:var(--muted);font-size:11px}
.week-workout-total strong,.loaded-workout-total b{color:var(--main);font-size:13px}
.week-workout-empty{margin:0;color:var(--muted);font-size:11px}
body[data-studio=daily] .daily-planned-workout{margin:10px 0 12px;display:grid;gap:8px}
body[data-studio=daily] .daily-planned-workout .week-workout-part{background:var(--paper)}
body[data-studio=daily] .loaded-workout-total{border-top:1px solid var(--line);margin-top:4px}
body[data-studio=daily] #appetite-daily{display:block}
body[data-studio=daily] #appetite-daily .app-day-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:0 0 22px}
body[data-studio=daily] #appetite-daily .app-day-checks>div{min-width:0;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
body[data-studio=daily] #appetite-daily .app-day-checks .app-label{margin-bottom:12px;color:var(--ink);font-size:12px;font-weight:600}
body[data-studio=daily] #appetite-daily .app-daily-foods{margin:0}
body[data-studio=daily] #appetite-daily .app-totals{margin:20px 0 0;padding:14px;background:var(--surface)}
@media(max-width:650px){body[data-studio=daily] #appetite-daily .app-day-checks{grid-template-columns:1fr}body[data-studio=daily] #appetite-daily .app-day-checks>div{padding:14px}}

body[data-studio=weekly] .week-table th:first-child{width:72px}
body[data-studio=weekly] .week-table tbody th[scope=row]{background:color-mix(in srgb,var(--surface) 38%,var(--paper));color:var(--ink);font-size:11px;font-weight:550}
.week-row-heading{display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.week-row-heading svg{flex:none;width:15px;height:15px;color:var(--main);fill:var(--main)}
.week-row-heading .meal-kind-icon *{fill:var(--main)}
.week-row-heading svg:not(.meal-kind-icon){fill:none}
.week-meal-foods{display:block;overflow:visible;-webkit-line-clamp:unset;overflow-wrap:anywhere}
.week-review-line{display:grid;gap:3px;padding:3px 0 8px;font-size:10px;line-height:1.45}
.week-review-line+.week-review-line{padding-top:8px;border-top:1px solid var(--line)}
.week-review-line span{color:var(--muted);font-size:9px}
.week-review-line b{color:var(--ink);font-size:11px;font-weight:550;overflow-wrap:anywhere}
.week-review-line.actual b{color:var(--main)}
.week-review-empty{display:block;padding:10px 2px;color:var(--muted);font-size:12px;text-align:center}
.reflection-table .comparison-foot{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px;padding-top:7px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}
.week-weight-context{display:block;line-height:1.5;color:var(--muted)}
.food-order-controls{position:relative;display:block}
.week-dialog-editor .food-order-controls .food-order-trigger{display:grid;place-items:center;width:23px;height:28px;color:var(--muted);font-size:18px;line-height:1}
.week-dialog-editor .food-order-controls .food-order-trigger:hover,.week-dialog-editor .food-order-controls .food-order-trigger[aria-expanded=true]{color:var(--main)}
.food-order-menu{position:absolute;right:0;top:27px;z-index:5;display:grid;min-width:88px;padding:4px;border:1px solid var(--line);border-radius:7px;background:var(--paper);box-shadow:0 6px 16px #1f293711}
.food-order-menu[hidden]{display:none}
.week-dialog-editor .food-order-menu button{display:block;width:100%;padding:7px 8px;border-radius:4px;color:var(--ink);font-size:11px;text-align:left;white-space:nowrap}
.week-dialog-editor .food-order-menu button:hover{background:var(--soft);color:var(--main)}
.week-dialog-editor .food-order-menu button:disabled{color:var(--muted);opacity:.45}
body[data-studio=daily] .daily-exercise-plan{padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:var(--surface);margin:0 0 16px}
body[data-studio=daily] .daily-plan-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink);font-size:12px;font-weight:600}
body[data-studio=daily] #daily-movement .movement-heading .journal-exercise-check[hidden]{display:none}
body[data-studio=daily] .exercise-status-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
body[data-studio=daily] .exercise-status-options button{min-height:30px;padding:6px 11px;border:1px solid var(--line);border-radius:20px;background:var(--paper);color:var(--muted);font:inherit;font-size:11px;font-weight:500;cursor:pointer}
body[data-studio=daily] .exercise-status-options button:hover{border-color:var(--main);color:var(--main)}
body[data-studio=daily] .exercise-status-options button[aria-pressed=true]{border-color:var(--main);background:var(--main);color:var(--paper)}
@media(max-width:480px){body[data-studio=daily] .exercise-status-options button{flex:1 1 calc(50% - 3px)}}
body[data-studio=daily] .plan-followed{padding:6px 11px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font-size:11px;white-space:nowrap;cursor:pointer}
body[data-studio=daily] .plan-followed[aria-pressed=true]{border-color:color-mix(in srgb,var(--main) 38%,var(--line));background:var(--soft);color:var(--main);font-weight:600}
body[data-studio=daily] .daily-plan-details{margin-top:8px}
body[data-studio=daily] .daily-plan-details summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0;color:var(--muted);font-size:11px;cursor:pointer;list-style:none}
body[data-studio=daily] .daily-plan-details summary::-webkit-details-marker{display:none}
body[data-studio=daily] .daily-plan-details summary span{color:var(--main)}
body[data-studio=daily] .daily-plan-details[open] summary span{font-size:0}
body[data-studio=daily] .daily-plan-details[open] summary span::after{content:'접기';font-size:11px}
body[data-studio=daily] .daily-planned-workout{margin:8px 0 0}
body[data-studio=daily] .loaded-workout{display:block}
body[data-studio=daily] .loaded-workout-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
body[data-studio=daily] .loaded-workout-title b{min-width:0;overflow-wrap:anywhere}
body[data-studio=daily] .loaded-workout-title span{flex:none;white-space:nowrap}
body[data-studio=daily] .loaded-sets{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
body[data-studio=daily] :is(.loaded-sets label,.loaded-cardio){display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font-size:10px;cursor:pointer}
body[data-studio=daily] :is(.loaded-sets label,.loaded-cardio):has(input:checked){border-color:color-mix(in srgb,var(--main) 42%,var(--line));background:var(--soft);color:var(--main)}
body[data-studio=daily] :is(.loaded-sets label,.loaded-cardio) input{width:13px;height:13px;margin:0;accent-color:var(--main)}
body[data-studio=daily] .loaded-cardio{margin-top:10px}
body[data-studio=daily] #daily-movement :is(.workout-set,.set-labels){grid-template-columns:24px minmax(0,1fr) minmax(0,1fr) 22px}
body[data-studio=routines] .routine-list{display:grid;gap:10px;padding:18px 22px}
body[data-studio=routines] .routine-card{padding:14px 17px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
body[data-studio=routines] .routine-card:hover{border-color:color-mix(in srgb,var(--main) 44%,var(--line));background:var(--soft)}
body[data-studio=routines] .routine-card i{color:var(--main)}
body[data-studio=routines] .routine-new{width:calc(100% - 44px);margin:0 22px 20px;border:1px dashed var(--line);border-radius:9px;background:var(--soft);color:var(--main)}
body[data-studio=routines] .routine-count{display:none}
body[data-studio=meal-templates] .band .intro,body[data-studio=routines] .band .intro{margin-top:9px;color:var(--muted);font-size:11px;line-height:1.6}
.app-optional-entry{margin:14px 0 0}
.app-optional-entry>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border:1px dashed var(--line);border-radius:8px;background:var(--paper);color:var(--muted);font-size:12px;cursor:pointer;list-style:none}
.app-optional-entry>summary::-webkit-details-marker{display:none}
.app-optional-entry>summary span{color:var(--main);font-weight:600;white-space:nowrap}
.app-optional-entry[open]>summary{border-color:color-mix(in srgb,var(--main) 38%,var(--line));background:var(--soft)}
body[data-studio=daily] .app-optional-entry .app-composer{margin:8px 0 0}
@media(max-width:650px){.week-row-heading{flex-direction:column;gap:3px}.week-row-heading svg{width:14px;height:14px}body[data-studio=weekly] .week-table th:first-child{width:52px}body[data-studio=daily] .loaded-workout-title{flex-direction:column;gap:4px}body[data-studio=daily] .daily-plan-heading{align-items:flex-start}.app-optional-entry>summary{align-items:flex-start;flex-direction:column;gap:5px}}

/* Diet journal refinements: consistent pictograms and readable lists. */
.week-row-heading svg,.week-row-heading svg:not(.meal-kind-icon){width:16px;height:16px;fill:none;stroke:var(--main);stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
body[data-studio=weekly] .week-meal-foods,body[data-studio=weekly] .week-review-foods{display:grid;gap:3px;list-style:none;margin:0;padding:0;overflow:visible;white-space:normal}
body[data-studio=weekly] :is(.week-meal-foods,.week-review-foods) li{position:relative;padding-left:10px;line-height:1.35;overflow-wrap:anywhere}
body[data-studio=weekly] :is(.week-meal-foods,.week-review-foods) li::before{content:'·';position:absolute;left:1px;color:var(--main);font-weight:700}
body[data-studio=weekly] .week-review-value{color:var(--ink);font-size:11px;font-weight:550;overflow-wrap:anywhere}body[data-studio=weekly] .week-review-line.actual .week-review-value{color:var(--main)}
body[data-studio=weekly] #period{cursor:pointer;border-radius:6px}
body[data-studio=weekly] #period:focus-visible{outline:2px solid var(--main);outline-offset:4px}
body[data-studio=weekly] #period{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:145px;cursor:pointer}body[data-studio=weekly] .date-center{position:relative}body[data-studio=weekly] .week-jump-panel{position:absolute;z-index:20;top:calc(100% + 8px);left:50%;transform:translateX(-50%);display:flex;align-items:end;gap:6px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 8px 22px #18233818;white-space:nowrap}body[data-studio=weekly] .week-jump-panel label{display:grid;gap:4px;font-size:10px;color:var(--muted)}body[data-studio=weekly] .week-jump-panel input{width:125px;font-size:12px}body[data-studio=weekly] .week-jump-panel button{color:var(--main)}body[data-studio=weekly] .week-number{font-size:11px;font-weight:500;color:var(--muted);line-height:1.25}body[data-studio=weekly] .week-range{font-size:17px;font-weight:650;letter-spacing:-.02em;line-height:1.35}body[data-studio=daily] .back-to-week{margin-left:auto;font-size:11px;color:var(--main);white-space:nowrap}body[data-studio=weekly] #body-all-toggle,body[data-studio=weekly] .week-weight-reveal{padding:5px 9px;border:1px solid var(--line);border-radius:99px;background:var(--paper);color:var(--main);font-size:11px;white-space:nowrap;cursor:pointer}body[data-studio=weekly] .week-weight-metric{position:relative}body[data-studio=weekly] .week-weight-reveal{margin-top:5px}body[data-studio=weekly] .week-body-private{border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:0}body[data-studio=weekly] .week-body-private summary{display:flex;align-items:center;justify-content:space-between;gap:4px;list-style:none;cursor:pointer;padding:9px;color:var(--main);font-size:11px}body[data-studio=weekly] .week-body-private summary::-webkit-details-marker{display:none}body[data-studio=weekly] .week-body-private summary small{font-size:10px;color:var(--muted)}body[data-studio=weekly] .week-body-private[open] summary small{display:none}body[data-studio=weekly] .week-body-private>div{padding:0 9px 9px}body[data-studio=weekly] .week-body-private p{display:flex;justify-content:space-between;gap:5px;margin:6px 0;font-size:10px;color:var(--muted)}body[data-studio=weekly] .week-body-private p b{color:var(--ink);font-weight:600}body[data-studio=weekly] .week-body-private img{width:100%;aspect-ratio:3/4;object-fit:contain;border-radius:5px}body[data-studio=weekly] .reflection-card{min-height:100px;gap:7px;padding:10px}body[data-studio=weekly] .reflection-top b{font-size:12px;font-weight:600}body[data-studio=weekly] .reflection-line{-webkit-line-clamp:2}body[data-studio=weekly] .reflection-card.empty{gap:5px}
body[data-studio=appetite] #appetite-library{padding-top:0}
body[data-studio=appetite] .app-library-nav{position:sticky;z-index:9;top:0;min-height:58px;margin:0 -22px 20px;padding:8px 22px;background:var(--paper);box-shadow:0 1px 0 var(--line)}
body[data-studio=appetite] .app-tabs{gap:24px}
body[data-studio=appetite] .app-emotion-grid{gap:14px;border:0;padding:0;margin:24px 0}
body[data-studio=appetite] .app-emotion-panel{padding:19px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}
body[data-studio=appetite] .app-emotion-panel>small{margin-bottom:14px}
.app-emotion-distribution{display:flex;gap:2px;height:9px;overflow:hidden;border-radius:99px;background:var(--surface)}
.app-emotion-distribution i{display:block;height:100%;background:var(--main)}
.app-emotion-distribution i{opacity:1}
.app-emotion-key{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;margin-top:15px;font-size:11px;color:var(--muted)}
.app-emotion-key span{display:flex;align-items:center;gap:6px}.app-emotion-key b{margin-left:auto;color:var(--ink);font-weight:600}.app-emotion-swatch{display:block;flex:none;width:9px;height:9px;border-radius:2px}
body[data-studio=appetite] .app-hardest-grid>div{background:var(--paper);border:1px solid var(--line)}
body[data-studio=appetite] .app-hardest-grid strong{font-size:16px}
body[data-studio=appetite] .app-hardest-grid p{line-height:1.6}
.app-review-empty{display:grid;justify-items:center;gap:8px;margin:36px 0;padding:48px 16px;border:1px solid var(--line);border-radius:10px;text-align:center}.app-review-empty strong{color:var(--ink);font-size:15px;font-weight:600}.app-review-empty p{margin:0;color:var(--muted);font-size:12px}.app-review-empty button{margin-top:11px;padding:8px 14px;border:1px solid var(--main);border-radius:6px;background:var(--soft);color:var(--main);cursor:pointer}
body[data-studio=routines] .studio-frame>.band,body[data-studio=meal-templates] .studio-frame>.band{min-height:65px!important;height:65px;padding:0 40px 16px!important}
body[data-studio=routines] .widget-intro,body[data-studio=meal-templates] .widget-intro{display:none}
body[data-studio=routines] .form-wrap,body[data-studio=meal-templates] .form-wrap{max-width:650px}
body[data-studio=monthly] #grid.body-mode :is(.day,.blank){aspect-ratio:3/4}
body[data-studio=monthly] #grid.body-mode .body-photo{width:100%;height:100%;border-radius:0;background-size:cover}
body[data-studio=monthly] .lightbox-visual.portrait{background-size:contain}
body[data-studio=monthly] .month .nav{position:static;display:grid;place-items:center;padding:0;line-height:1;transform:none}
body[data-studio=monthly] .month #month{cursor:pointer;border-radius:5px}
body[data-studio=monthly] .month #month:focus-visible{outline:2px solid var(--main);outline-offset:4px}
body[data-studio=monthly] #month{cursor:pointer}body[data-studio=monthly] .month-jump-panel{position:absolute;z-index:20;top:calc(100% + 5px);left:50%;transform:translateX(-50%);display:flex;align-items:end;gap:6px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--paper);box-shadow:0 8px 22px #18233818;white-space:nowrap}body[data-studio=monthly] .month-jump-panel[hidden]{display:none}body[data-studio=monthly] .month-jump-panel label{display:grid;gap:4px;font-size:10px;color:var(--muted)}body[data-studio=monthly] .month-jump-panel input{width:110px;padding:7px;border:1px solid var(--line);border-radius:5px;font-size:12px}body[data-studio=monthly] .month-jump-panel button{padding:7px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--main);font-size:12px}body[data-studio=monthly] #grid.body-mode :is(.day,.blank){border-bottom:1px solid var(--line)!important;box-shadow:inset 0 -1px var(--line)}
@media(max-width:760px){body[data-studio=appetite] .app-library-nav{margin:0 -16px 18px;padding:8px 16px}body[data-studio=appetite] .app-emotion-grid{grid-template-columns:1fr;gap:10px}body[data-studio=appetite] .app-emotion-panel+.app-emotion-panel{border:1px solid var(--line);padding:19px}body[data-studio=monthly] #grid.body-mode :is(.day,.blank){min-height:0}}

body[data-studio=monthly] .month .nav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.month-insights{display:grid;gap:24px;padding:22px 24px 28px;border-bottom:1px solid var(--line)}
.month-insight-head h2{margin:0;color:var(--ink);font-size:15px;font-weight:650}.month-insight-head p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.month-chart-controls{display:flex;flex-wrap:wrap;gap:10px}.month-chart-controls label,.month-photo-grid label,.month-documents form label{display:grid;gap:6px;color:var(--muted);font-size:11px}
.month-chart-controls input,.month-chart-controls select,.month-photo-grid select,.month-documents form :is(input,select){min-width:0;height:34px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px}
.month-chart{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.insight-summary{display:flex;align-items:end;gap:28px}.insight-summary>div{display:grid;gap:5px}.insight-summary span{color:var(--muted);font-size:10px}.insight-summary strong{color:var(--ink);font-size:19px;font-weight:650}.insight-summary strong small{font-size:11px;font-weight:450}.insight-summary>span{margin-left:auto}
.month-chart svg{display:block;width:100%;height:auto;max-height:220px;margin:16px 0 0;overflow:visible}.month-chart .chart-guide{fill:none;stroke:var(--line);stroke-width:1}.month-chart .chart-line{fill:none;stroke:var(--main);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.month-chart circle{fill:var(--paper);stroke:var(--main);stroke-width:2}.chart-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.insight-empty{margin:0;padding:20px 8px;color:var(--muted);font-size:12px;text-align:center}
.month-photo-compare,.month-documents{display:grid;gap:14px;padding-top:20px;border-top:1px solid var(--line)}.month-photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.month-photo-grid>div{min-width:0;display:grid;align-content:start;gap:9px}.compare-photo{position:relative;display:grid;place-items:center;aspect-ratio:3/4;max-height:500px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.compare-photo img{width:100%;height:100%;object-fit:contain}.compare-photo span{position:absolute;bottom:10px;left:10px;padding:5px 8px;border-radius:5px;background:#fffde9;color:#343840;font-size:10px}.compare-photo p{color:var(--muted);font-size:12px}
.compare-photo{width:min(100%,450px);max-height:600px;justify-self:center}
.month-documents form{display:grid;grid-template-columns:125px 115px minmax(170px,1fr) auto;align-items:end;gap:10px}.month-documents form button{height:34px;padding:0 13px;border:1px solid var(--main);border-radius:6px;background:var(--main);color:#fff;cursor:pointer}.month-documents form button:disabled{opacity:.5}.document-status{margin:0;color:var(--muted);font-size:11px}.document-status:empty{display:none}.document-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:11px}.document-row .document-type{padding:4px 7px;border-radius:5px;background:var(--soft);color:var(--main)}.document-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:12px;font-weight:550}.document-row small{display:block;margin-top:4px;color:var(--muted)}.document-row a{color:var(--main)}.document-row button{border:0;background:none;color:var(--muted);font-size:17px;cursor:pointer}
@media(max-width:650px){.month-insights{padding:18px 14px}.month-chart-controls{display:grid;grid-template-columns:1fr 1fr}.month-chart-controls label:last-child{grid-column:1/-1}.month-documents form{grid-template-columns:1fr 1fr}.month-documents form label:nth-child(3){grid-column:1/-1}.month-documents form button{grid-column:1/-1}.month-photo-grid{gap:8px}.compare-photo{border-radius:6px}}
@media(max-width:650px){.month-photo-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}.month-photo-grid>div{flex:0 0 min(76vw,360px);scroll-snap-align:start}.compare-photo{width:100%;max-height:none}}
body[data-studio=monthly] #grid.body-mode{row-gap:1px;background:var(--line)}
body[data-studio=monthly] #grid.body-mode :is(.day,.blank){aspect-ratio:3/4;min-height:0;height:auto;overflow:hidden}body[data-studio=monthly] #grid.body-mode .day{padding:0}body[data-studio=monthly] #grid.body-mode :is(.body-photo,.body-none){position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;border-radius:0}body[data-studio=monthly] #grid.body-mode .body-photo{background-size:cover}
body[data-studio=monthly] .month-jump-panel select{min-width:75px;padding:7px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font-size:12px}
body[data-studio=weekly] #period .week-number{font-family:inherit;font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted)}
body[data-studio=weekly] #period .week-range{font-family:inherit;font-size:16px;font-weight:600;letter-spacing:0;color:var(--ink)}
body[data-studio=weekly] .focus-date,body[data-studio=daily] .focus-date{justify-content:center}
body[data-studio=weekly] .focus-date .date-navigation,body[data-studio=daily] .focus-date .date-navigation{width:260px;margin:0;grid-template-columns:26px minmax(0,1fr) 26px;gap:12px}
body[data-studio=weekly] .date-center,body[data-studio=daily] .date-center{min-width:0;gap:3px}
body[data-studio=weekly] .date-center #today,body[data-studio=daily] .date-center #today{height:21px;min-height:21px;margin:0;padding:0 7px;border:0;border-radius:5px;background:transparent;color:var(--main);font-family:inherit;font-size:11px;font-weight:500;line-height:21px}
body[data-studio=weekly] .date-center #today.is-current,body[data-studio=daily] .date-center #today.is-current{color:var(--muted)}
body[data-studio=daily] .band .back-to-week{position:absolute;left:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;height:28px;padding:0 7px;border-radius:6px;color:var(--main);font-family:inherit;font-size:11px;font-weight:500;text-decoration:none;white-space:nowrap}
body[data-studio=daily] .band .back-to-week:hover{background:var(--soft)}
@media(max-width:380px){body[data-studio=daily] .band .back-to-week{left:-4px;padding:0 4px;font-size:10px}}
body[data-studio=daily] .body-photo-status{margin:7px 0 0;color:var(--main);font-size:11px;line-height:1.5}body[data-studio=daily] .body-photo-status.error{color:#ad4762}body[data-studio=daily] #body-photo:disabled{opacity:.55;cursor:wait}
body[data-studio=daily] .meal-photo small{display:block;margin-top:4px;font-size:10px;font-weight:500;color:var(--muted)}
body[data-studio=daily] .photo-paste-hint{font-size:11px;color:var(--muted)}
body[data-studio=settings] .inspiration-edit .photo-paste-hint{font-size:11px;color:var(--muted)}
body[data-studio=settings] :is(.photo-cover,.inspiration-edit):focus-visible{outline:2px solid var(--main);outline-offset:3px}
body[data-studio=daily] #daily-meals .meal-photo-tools{grid-column:1;grid-row:3;display:grid;gap:9px;align-self:start;min-width:0}
body[data-studio=daily] #daily-meals .meal-detail-records{grid-row:2/4}
body[data-studio=daily] .meal-photo-paste,body[data-studio=daily] #body-photo-paste,body[data-studio=settings] .photo-paste-action,body[data-studio=settings] .inspiration-paste{border:1px solid var(--main);background:var(--soft);color:var(--main);border-radius:7px;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
body[data-studio=daily] .meal-photo-paste{width:100%;padding:7px 5px}
body[data-studio=daily] .meal-time-field{display:grid;gap:4px;color:var(--muted);font-size:11px}
body[data-studio=daily] .meal-time-field input{box-sizing:border-box;width:100%;min-width:0;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px}
body[data-studio=daily] .meal-photo-help{color:var(--main);font-size:10px;line-height:1.4}
body[data-studio=daily] #body-photo-paste{order:2;min-height:32px;padding:6px 10px}
body[data-studio=daily] :is(.meal-photo-paste,#body-photo-paste):focus-visible,body[data-studio=settings] :is(.photo-paste-action,.inspiration-paste):focus-visible{outline:2px solid var(--main);outline-offset:2px}
@media(max-width:480px){body[data-studio=daily] #daily-meals .meal-photo-tools{grid-column:1/-1;grid-row:2;grid-template-columns:auto minmax(0,1fr);align-items:end}body[data-studio=daily] #daily-meals .meal-detail-records{grid-column:1/-1;grid-row:3}body[data-studio=daily] .meal-photo-help{grid-column:1/-1}}
