
/* PREPARATION_AND_FOOD_PAUSE_V1: readable mobile/tablet controls, shared gold & emerald brand. */
.prep-editor{display:grid;gap:16px;margin-top:18px;color:#2c4a3c}
.prep-intro,.prep-card{background:linear-gradient(145deg,rgba(255,254,246,.985),rgba(239,247,233,.97));border:1px solid rgba(204,173,117,.7);border-radius:23px;box-shadow:0 8px 26px rgba(32,81,49,.1);padding:clamp(16px,2.6vw,24px)}
.prep-intro{background:linear-gradient(135deg,#164f3c,#27715a);color:#fdf8e7;border-color:#d7b579}
.prep-intro .kicker{color:#f2d69a}
.prep-intro h3{color:#fff9e8;font-family:Georgia,serif;font-size:clamp(24px,3vw,34px);margin:9px 0}
.prep-intro p{color:#e7f0e6;margin:0}
.prep-card h4{font-family:Georgia,serif;font-size:clamp(21px,2.4vw,28px);color:#20513e;margin:0 0 9px}
.prep-card p{font-size:14px;line-height:1.55;color:#526e5e}
.prep-card label,.prep-day-body label{font-size:14px;font-weight:700;color:#325343;display:grid;gap:7px}
.prep-card input:not([type=checkbox]),.prep-card textarea,.prep-day-body input:not([type=checkbox]),.prep-day-body textarea{font:inherit;font-size:16px;width:100%;min-width:0;border:1px solid #c4d4bd;border-radius:12px;padding:12px;background:#fffef9;color:#224436;box-sizing:border-box;outline-color:#b49562;resize:vertical}
.prep-pair,.prep-sleep-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:13px 0}
.prep-sleep-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.prep-muted{color:#6e8174!important;font-size:13px!important;margin:9px 0}
.prep-save{margin-top:14px;min-height:46px}
.prep-day-list{display:grid;gap:9px}
.prep-day{background:rgba(255,254,249,.87);border:1px solid #d6d5bc;border-radius:15px;overflow:hidden}
.prep-day[open]{border-color:#c5a46a;box-shadow:0 4px 16px rgba(46,88,56,.09)}
.prep-day summary{cursor:pointer;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px 15px;list-style:none}
.prep-day summary::-webkit-details-marker{display:none}
.prep-day summary::after{content:"⌄";color:#a47e49;font-size:19px}
.prep-day summary b{color:#1b5540}
.prep-day summary span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:#54725f;min-width:0}
.prep-day summary small{font-size:12px;color:#a07c44}
.prep-day-body{padding:0 14px 16px;border-top:1px solid #e8e4d6;display:grid;gap:11px}
.prep-day-body label:first-child{padding-top:12px}
.prep-day-body .prep-check{display:flex;flex-direction:row;align-items:center;gap:9px;font-weight:600}
.prep-day-body input[type=checkbox]{width:19px;height:19px;accent-color:#22674a}
.prep-log-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border-bottom:1px solid #e2e7da;padding:9px 0}
.prep-log-row span{flex:1;color:#5f7463}
.prep-log-row b{color:#174d3b}
.prep-log-row button{border:0;background:#f4e9d3;border-radius:50%;width:32px;height:32px;color:#755e3e;font-size:21px;cursor:pointer}
.prep-task small{margin-left:auto;white-space:nowrap;color:#ad874f;font-weight:600}
.prep-return{margin-bottom:10px}
#nav-preparation.active{background:linear-gradient(125deg,#f2ddae,#e6e8cb);color:#25533f}
#s-nutrition .nt-pause-card{margin:14px 0;background:linear-gradient(142deg,rgba(255,254,247,.99),rgba(238,247,232,.99));border:1px solid #d6b77d;border-radius:21px;box-shadow:0 8px 26px rgba(43,90,58,.10);padding:clamp(15px,2.8vw,24px)}
#s-nutrition .nt-pause-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#s-nutrition .nt-pause-heading h3{font-family:Georgia,serif;font-size:clamp(23px,3vw,31px);margin:5px 0 8px;color:#184f39}
#s-nutrition .nt-pause-heading p{max-width:440px;color:#63816d;font-size:14px}
#s-nutrition .nt-pause-result{min-width:155px;background:linear-gradient(145deg,#174f3c,#2a7556);border-radius:15px;padding:14px 18px;color:#fff8e9;text-align:center}
#s-nutrition .nt-pause-result small{display:block;color:#e5ebdb;font-size:11px;line-height:1.4}
#s-nutrition .nt-pause-result strong{display:block;font-size:clamp(22px,3vw,33px);color:#f5d795;margin-top:4px}
#s-nutrition .nt-pause-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:16px 0}
#s-nutrition .nt-pause-fields label{display:grid;gap:7px;font-weight:700;color:#355843;font-size:13px}
#s-nutrition .nt-pause-fields input{width:100%;min-width:0;padding:12px;border-radius:11px;border:1px solid #c5d5c1;background:#fffef9;color:#244938;font-size:16px}
#s-nutrition .nt-pause-actions{display:flex;flex-wrap:wrap;gap:8px}
#s-nutrition .nt-pause-actions button{min-height:40px}
#s-nutrition .nt-pause-help{font-size:12px;line-height:1.6;color:#65806d;margin-top:12px}
#s-nutrition .nt-pause-history{margin-top:17px;border-top:1px solid #e1d7bb;padding-top:12px}
#s-nutrition .nt-pause-history h4{font-size:17px;color:#244e3c;margin:0 0 12px}
#s-nutrition .nt-pause-history-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e6ebdf;padding:10px 0;font-size:13px}
#s-nutrition .nt-pause-history-row span{flex:1;color:#617a68}
#s-nutrition .nt-pause-history-row b{color:#1d573d;white-space:nowrap}
#s-nutrition .nt-pause-history-row button{border:0;border-radius:50%;background:#f7edd8;color:#795f39;width:28px;height:28px;font-size:19px}
@media(max-width:750px){.prep-day summary{grid-template-columns:auto 1fr 20px}.prep-day summary small{grid-column:2;grid-row:2}.prep-day summary::after{grid-row:1;grid-column:3}}
@media(max-width:550px){.prep-pair,.prep-sleep-fields{grid-template-columns:1fr 1fr}.prep-sleep-fields label:first-child{grid-column:1/-1}.prep-task small{display:none}#s-nutrition .nt-pause-fields{grid-template-columns:1fr}#s-nutrition .nt-pause-result{flex:1}#s-nutrition .nt-pause-actions button{flex:1 1 155px}}

/* NUTRITION_NAV_FIVE_TABS: Today / Pause / Foods / Progress / Settings */
#s-nutrition .nt-v2-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
#s-nutrition .nt-v2-bottom-nav button{font-size:10px;min-width:0;padding:8px 1px}
@media(max-width:430px){#s-nutrition .nt-v2-bottom-nav{gap:2px;padding:6px 4px}#s-nutrition .nt-v2-bottom-nav button{font-size:9px}#s-nutrition .nt-v2-bottom-nav button span{font-size:20px}}

/* DAILY_MULTIGOALS_STYLE_V1 */
.prep-goals-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin:14px 0 8px}
.prep-goals-heading b{color:#1b533d;font-size:15px}
.prep-goals-heading span{color:#7c754f;font-size:12px;font-weight:700}
.prep-goals-list{display:grid;gap:9px}
.prep-goal-row{display:grid;grid-template-columns:22px minmax(0,1fr) 31px;align-items:center;gap:8px;padding:8px 9px;background:linear-gradient(125deg,#fffef8,#f8f8eb);border:1px solid #e1dfca;border-radius:12px;min-width:0}
.prep-goal-row input[type="checkbox"]{width:19px;height:19px;accent-color:#176747;cursor:pointer}
.prep-goal-row input[type="checkbox"]:disabled{opacity:.4;cursor:default}
.prep-goal-row label{display:flex;align-items:center;gap:5px;min-width:0;margin:0}
.prep-goal-row .prep-goal-number{color:#ad8a52;font-size:12px}
.prep-goal-row input[type="text"]{width:100%;font-size:15px;border:0;background:transparent;box-shadow:none;padding:7px 4px;min-width:0;border-radius:5px}
.prep-goal-row input[type="text"]:focus{outline:2px solid rgba(210,172,95,.7);background:#fff}
.prep-goal-remove{width:30px;height:30px;font-size:21px;font-weight:400;color:#8c6955;background:#f6ecdb;border:1px solid #e5d3b5;border-radius:9px;cursor:pointer}
.prep-add-goal{margin:9px 0 12px!important;width:100%;color:#215542!important;border:1px solid #d8b87d!important;background:linear-gradient(#ffedc1,#efd09a)!important}
@media(max-width:520px){.prep-goal-row{grid-template-columns:20px minmax(0,1fr) 27px;gap:5px;padding:7px 5px}.prep-goal-row input[type="text"]{font-size:14px}.prep-goal-remove{width:27px;height:27px}}

/* Seven-day preparation: clearly tappable sleep-time controls, including iPhone Safari. */
.prep-time-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.prep-time-field>span{font-size:14px;font-weight:750;color:#325343;line-height:1.35}
.prep-time-button{
 display:flex;align-items:center;gap:8px;
 width:100%;min-width:0;min-height:56px;
 border:1.5px solid #b6c9b5;border-radius:13px;
 padding:10px 12px;background:#fffef8;color:#284c3b;
 text-align:left;cursor:pointer;touch-action:manipulation;
 -webkit-tap-highlight-color:rgba(188,157,91,.18);
 box-shadow:0 2px 8px rgba(32,81,49,.06);
 font:inherit;font-size:15px;
}
.prep-time-button strong{font-size:clamp(18px,4.5vw,22px);font-variant-numeric:tabular-nums;white-space:nowrap}
.prep-time-button small{margin-left:auto;white-space:nowrap;color:#6a755f;font-size:11px;font-weight:650}
.prep-time-button:active{background:#f0f5e9;border-color:#b99b63}
.prep-time-button:focus-visible{outline:3px solid #b99b63;outline-offset:2px}
.prep-day .prep-day-body .prep-pair{margin:7px 0 2px}
.prep-day summary{min-height:52px;touch-action:manipulation}
.prep-day summary:focus-visible{outline:2px solid #b99b63;outline-offset:-2px}
.prep-sleep-fields>label:first-child input[type=date]{
 min-height:56px;max-width:100%;font-size:16px;
}
@media(max-width:360px){
 .prep-pair{gap:9px}
 .prep-time-button{padding:9px 8px;gap:5px}
 .prep-time-button small{font-size:10px}
}
