#mobile-dashboard .pc-page{--pc-border:#e2e6df;--pc-ink:#222b20;--pc-muted:#697264;min-width:0;color:var(--pc-ink)}
#mobile-dashboard[data-page=plan] .m-heading-block{display:flex;align-items:center;gap:18px;min-width:0}
#mobile-dashboard[data-page=plan] .m-header{padding-bottom:16px}
#mobile-dashboard .pc-range{font-size:14px;color:#697264;white-space:nowrap}
#mobile-dashboard .pc-week-controls{display:flex;gap:5px;align-items:center;margin-left:auto}
#mobile-dashboard .pc-week-controls button{border:0;border-radius:22px;background:#ecefe8;padding:8px 15px;min-height:38px;color:#222b20;cursor:pointer;font-size:13px}
#mobile-dashboard .pc-week-controls button:first-child,#mobile-dashboard .pc-week-controls button:last-child{font-size:24px;line-height:1;padding:4px 12px}
#mobile-dashboard .pc-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:stretch;height:calc(100dvh - 112px);min-height:420px}
#mobile-dashboard .pc-calendar{min-width:0;min-height:0;background:white;border:1px solid var(--pc-border);border-radius:14px;overflow:hidden}
#mobile-dashboard .pc-grid{display:grid;grid-template-columns:108px repeat(7,minmax(0,1fr));grid-template-rows:48px repeat(7,minmax(0,1fr));height:100%;min-width:0}
#mobile-dashboard .pc-corner{display:flex;align-items:center;padding:10px;color:var(--pc-muted);font-size:10px;background:#fafbf8}
#mobile-dashboard .pc-column-day{display:grid;place-items:center;text-align:center;border-left:1px solid var(--pc-border);background:#fafbf8;padding:4px 2px}
#mobile-dashboard .pc-column-day button{border:0;background:none;display:flex;align-items:center;justify-content:center;gap:4px;width:100%;padding:3px 0;cursor:pointer;color:var(--pc-ink)}
#mobile-dashboard .pc-column-day span{font-size:11px}
#mobile-dashboard .pc-column-day b{font-size:17px;font-weight:550;width:28px;height:28px;display:grid;place-items:center}
#mobile-dashboard .pc-column-day.pc-is-today b{background:#d94f42;border-radius:50%;color:white}
#mobile-dashboard .pc-row-label{background:#fafbf8;padding:10px 8px;border-top:1px solid var(--pc-border);display:flex;justify-content:center;flex-direction:column;gap:4px;min-height:0}
#mobile-dashboard .pc-row-label strong{font-size:11px;font-weight:600}
#mobile-dashboard .pc-row-label small{font-size:10px;color:var(--pc-muted);line-height:1.4}
#mobile-dashboard .pc-cell{padding:4px;min-height:0;border-top:1px solid var(--pc-border);border-left:1px solid var(--pc-border);transition:background .15s;min-width:0;overflow:auto;scrollbar-width:thin}
#mobile-dashboard.pc-dragging .pc-cell{background:#f5f8f1}
#mobile-dashboard .pc-cell.pc-over{background:#e2edcf;outline:2px solid #68864e;outline-offset:-2px}
#mobile-dashboard .pc-meal{position:relative;background:#edf2e5;border-left:3px solid #829b64;border-radius:6px;margin-bottom:4px;cursor:grab;overflow-wrap:anywhere}
#mobile-dashboard .pc-meal-title{min-height:0;display:block;text-align:left;width:100%;border:0;background:none;color:inherit;padding:7px 8px;cursor:grab}
#mobile-dashboard .pc-meal-title strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:11px;line-height:1.4;font-weight:600}
#mobile-dashboard .pc-remove{min-height:0;min-width:0;position:absolute;right:1px;top:1px;display:grid;place-items:center;opacity:0;pointer-events:none;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#edf2e5;color:#4a6138;font-size:20px;line-height:1;cursor:pointer}
#mobile-dashboard .pc-meal:hover .pc-remove,#mobile-dashboard .pc-meal:focus-within .pc-remove{opacity:1;pointer-events:auto}
#mobile-dashboard .pc-meal:hover .pc-meal-title,#mobile-dashboard .pc-meal:focus-within .pc-meal-title{padding-right:23px}
#mobile-dashboard .pc-library{border:1px solid var(--pc-border);background:white;border-radius:14px;padding:16px;min-width:0;min-height:0;display:flex;flex-direction:column;box-sizing:border-box}
#mobile-dashboard .pc-library-heading{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-bottom:12px}
#mobile-dashboard .pc-library-heading h2{font-size:20px;margin:0;line-height:1.2;letter-spacing:-.4px}
#mobile-dashboard .pc-mode{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#5a713f;font-weight:700}
#mobile-dashboard .pc-library-filters{display:grid;gap:8px}
#mobile-dashboard .pc-library-filters label{display:block;margin:0}
#mobile-dashboard .pc-search input,#mobile-dashboard .pc-category-filter select{width:100%;border:1px solid var(--pc-border);background:#fafbf8;border-radius:8px;padding:9px;font-size:12px;color:var(--pc-ink);min-height:38px;box-sizing:border-box;margin:0}
#mobile-dashboard .pc-meal-groups{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:3px;margin-top:8px;scrollbar-width:thin}
#mobile-dashboard .pc-meal-groups details{border:0;border-bottom:1px solid var(--pc-border);padding:0;margin:0;border-radius:0;background:none;box-shadow:none}
#mobile-dashboard .pc-meal-groups details:last-child{border-bottom:0}
#mobile-dashboard .pc-meal-groups summary{font-size:12px;line-height:1.3;min-height:36px;box-sizing:border-box;cursor:pointer;color:#394b2d;padding:10px 0;margin:0;border:0;background:none}
#mobile-dashboard .pc-meal-groups summary span{float:right;color:var(--pc-muted);font-weight:400}
#mobile-dashboard .pc-library-meal{min-height:0;display:block;width:100%;text-align:left;border:1px solid #e4e9dd;border-radius:7px;background:#f9fbf6;padding:8px 9px;margin:0 0 6px;cursor:grab;color:var(--pc-ink)}
#mobile-dashboard .pc-library-meal:hover{background:#edf3e4;border-color:#9bb57b}
#mobile-dashboard .pc-library-meal strong{font-size:12px;line-height:1.4;font-weight:550;display:block}
#mobile-dashboard .pc-kind-tabs{display:flex;gap:4px;background:#f0f3eb;padding:4px;border-radius:9px;margin-bottom:12px}
#mobile-dashboard .pc-kind-tabs button{flex:1;min-height:36px;border:0;border-radius:6px;background:none;color:#66735b;cursor:pointer;font-size:12px}
#mobile-dashboard .pc-kind-tabs button[aria-pressed=true]{background:white;color:#3f572f;font-weight:650;box-shadow:0 1px 4px #26331c14}
#mobile-dashboard .pc-food-options{margin-top:12px;overflow-y:auto;min-height:0}
#mobile-dashboard .pc-library-meal small{display:block;font-size:10px;color:#748067;margin-top:3px;line-height:1.4}
#mobile-dashboard .pc-audit-note{font-size:11px;color:#68735f;line-height:1.6;margin:12px 0 2px}
#mobile-dashboard .pc-quantity-label input{display:block;width:100%;box-sizing:border-box;min-height:44px;padding:10px;margin-top:7px;border:1px solid #dce2d6;border-radius:8px;font:inherit}
#mobile-dashboard .pc-no-meals{font-size:11px;color:var(--pc-muted);padding:0 0 8px;margin:0}
#mobile-dashboard .pc-day-picker{display:none}
#mobile-dashboard .pc-assign{width:min(400px,calc(100% - 32px));padding:24px;border:1px solid #dce2d6;border-radius:18px;box-sizing:border-box;color:var(--pc-ink)}
#mobile-dashboard .pc-assign::backdrop{background:#1b271b66}
#mobile-dashboard .pc-assign h2{font-size:22px;margin:0 0 12px}
#mobile-dashboard .pc-assign>p{font-size:14px;line-height:1.5;margin-bottom:20px}
#mobile-dashboard .pc-assign label{display:block;font-size:12px;font-weight:600;margin:14px 0}
#mobile-dashboard .pc-assign select{display:block;width:100%;padding:10px;min-height:44px;margin-top:7px;border-radius:8px;border:1px solid #dce2d6;background:white;color:var(--pc-ink);font-size:14px}
#mobile-dashboard .pc-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
#mobile-dashboard .pc-dialog-actions button{min-height:44px;padding:9px 18px;border:1px solid #dce2d6;border-radius:8px;background:white;color:#3f572f;cursor:pointer}
#mobile-dashboard .pc-dialog-actions .pc-primary{background:#3f572f;color:white;border-color:#3f572f}
#mobile-dashboard .pc-page button:focus-visible{outline:3px solid #95b478;outline-offset:2px}
#mobile-dashboard .pc-page button:disabled{opacity:.55;cursor:wait}

#mobile-dashboard.pc-dragging{user-select:none}
#mobile-dashboard .pc-drag-ghost{position:fixed;z-index:1000;pointer-events:none;max-width:180px;padding:10px;background:#3f572f;color:white;border-radius:9px;font-size:12px;box-shadow:0 6px 20px #26331c33}
@media(min-width:768px) and (max-width:1199px){#mobile-dashboard .pc-layout{grid-template-columns:minmax(0,1fr) 230px;gap:12px}#mobile-dashboard .pc-grid{grid-template-columns:88px repeat(7,minmax(0,1fr))}#mobile-dashboard .pc-range{font-size:12px}}
@media(max-width:767px){
 #mobile-dashboard .m-nav{grid-template-columns:repeat(6,minmax(0,1fr));padding-left:4px;padding-right:4px}
 #mobile-dashboard .m-nav a{font-size:10px;min-height:58px;gap:5px}
 #mobile-dashboard .m-nav .m-icon{width:21px;height:21px}
 #mobile-dashboard[data-page=plan] .m-header>.m-logo{display:none}
 #mobile-dashboard[data-page=plan] .m-header{align-items:flex-start;padding-bottom:12px}
 #mobile-dashboard[data-page=plan] .m-heading-block{flex-wrap:wrap;gap:8px 12px;flex:1}
 #mobile-dashboard .pc-range{font-size:12px}
 #mobile-dashboard .pc-week-controls{width:100%;justify-content:flex-start;margin-left:0}
 #mobile-dashboard .pc-week-controls button{min-height:40px;font-size:12px;padding:7px 12px}
 #mobile-dashboard .pc-layout{display:flex;flex-direction:column;gap:16px;height:auto;min-height:0}
 #mobile-dashboard .pc-calendar,#mobile-dashboard .pc-library{width:100%;box-sizing:border-box}
 #mobile-dashboard .pc-calendar{height:calc(100dvh - 222px);min-height:450px}
 #mobile-dashboard .pc-grid{grid-template-columns:108px minmax(0,1fr);grid-template-rows:repeat(7,minmax(0,1fr));height:calc(100% - 58px)}
 #mobile-dashboard .pc-corner,#mobile-dashboard .pc-column-day,#mobile-dashboard .pc-cell[data-other-day]{display:none}
 #mobile-dashboard .pc-row-label{padding:6px 8px}
 #mobile-dashboard .pc-row-label strong{font-size:11px}
 #mobile-dashboard .pc-row-label small{font-size:9px}
 #mobile-dashboard .pc-cell{padding:4px}
 #mobile-dashboard .pc-meal-title{padding:7px 30px 7px 8px;min-height:38px}
 #mobile-dashboard .pc-meal-title strong{font-size:12px;-webkit-line-clamp:2}
 #mobile-dashboard .pc-remove{opacity:1;pointer-events:auto;width:30px;height:30px;top:0;right:0;font-size:22px}
 #mobile-dashboard .pc-day-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:58px;padding:5px 4px;box-sizing:border-box;background:#fafbf8}
 #mobile-dashboard .pc-day-picker button{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;padding:3px 0;color:#697264;min-height:44px;cursor:pointer}
 #mobile-dashboard .pc-day-picker span{font-size:10px}
 #mobile-dashboard .pc-day-picker b{font-size:15px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-weight:600}
 #mobile-dashboard .pc-day-picker [data-today] b{color:#c84e43}
 #mobile-dashboard .pc-day-picker [aria-pressed=true] b{background:#3f572f;color:white}
 #mobile-dashboard .pc-library{max-height:600px;padding:14px}
 #mobile-dashboard .pc-library-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #mobile-dashboard .pc-search input,#mobile-dashboard .pc-category-filter select{min-height:42px;font-size:12px}
 #mobile-dashboard .pc-library-meal{padding:10px;min-height:44px}
 #mobile-dashboard .pc-library-meal strong{font-size:13px}
}
#mobile-dashboard .pc-assign{width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}
#mobile-dashboard .pc-meal-nutrients{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:18px 0 22px}
#mobile-dashboard .pc-meal-nutrients>div{background:#f4f7ef;border-radius:8px;padding:10px 8px}
#mobile-dashboard .pc-meal-nutrients dt{font-size:11px;color:#66705e}
#mobile-dashboard .pc-meal-nutrients dd{margin:5px 0 0;font-size:16px;font-weight:650;color:#293622}
#mobile-dashboard .pc-ingredient-table table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
#mobile-dashboard .pc-ingredient-table caption{text-align:left;font-size:14px;font-weight:600;margin-bottom:10px;color:#293622}
#mobile-dashboard .pc-ingredient-table th,#mobile-dashboard .pc-ingredient-table td{border-bottom:1px solid #e2e6df;padding:10px 4px;vertical-align:top;text-align:right;overflow-wrap:anywhere}
#mobile-dashboard .pc-ingredient-table th:first-child{text-align:left;width:44%}
#mobile-dashboard .pc-ingredient-table th{font-weight:500}
#mobile-dashboard .pc-ingredient-table thead th{font-size:10px;color:#697264}
#mobile-dashboard .pc-ingredient-table small{display:block;font-size:11px;font-weight:400;color:#697264;margin-top:4px}
#mobile-dashboard .pc-placement-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
#mobile-dashboard .pc-assign .pc-placement-fields label{margin:0}
@media(max-width:767px){
 #mobile-dashboard .pc-assign{padding:20px 14px;max-height:calc(100dvh - 16px)}
 #mobile-dashboard .pc-meal-nutrients{gap:5px;margin:16px 0}
 #mobile-dashboard .pc-meal-nutrients>div{padding:9px 6px}
 #mobile-dashboard .pc-meal-nutrients dd{font-size:13px}
 #mobile-dashboard .pc-ingredient-table table{font-size:11px}
 #mobile-dashboard .pc-ingredient-table td{font-size:10px}
 #mobile-dashboard .pc-ingredient-table th:first-child{width:42%}
 #mobile-dashboard .pc-placement-fields{grid-template-columns:1fr;gap:12px}
}

/* Calendar cards keep completion beside the name; rows grow instead of clipping cards. */
#mobile-dashboard .pc-calendar{overflow:auto;overscroll-behavior:contain}
#mobile-dashboard .pc-grid{height:auto;min-height:100%;grid-template-rows:48px repeat(7,minmax(100px,max-content))}
#mobile-dashboard .pc-cell{overflow:visible}
#mobile-dashboard .pc-meal{display:flex;align-items:flex-start;min-width:0;padding-right:3px}
#mobile-dashboard .pc-meal-title{flex:1;min-width:0;width:auto;padding:8px 2px 8px 0}
#mobile-dashboard .pc-meal-title strong{-webkit-line-clamp:3}
#mobile-dashboard .pc-meal:hover .pc-meal-title,#mobile-dashboard .pc-meal:focus-within .pc-meal-title{padding-right:18px}
#mobile-dashboard .pc-log{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 27px;width:27px;height:32px;margin:0;padding:0;cursor:pointer}
#mobile-dashboard .pc-log input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer}
#mobile-dashboard .pc-complete-circle{display:grid;place-items:center;width:16px;height:16px;box-sizing:border-box;border:1.5px solid #94a08b;border-radius:50%;font-size:11px;line-height:1;color:transparent;pointer-events:none}
#mobile-dashboard .pc-log:hover .pc-complete-circle{border-color:#548e65;color:#548e65;background:#e5f4e9}
#mobile-dashboard .pc-log input:checked+.pc-complete-circle{background:#4d8c62;border-color:#4d8c62;color:white}
#mobile-dashboard .pc-log input:focus-visible+.pc-complete-circle{outline:3px solid #95b478;outline-offset:3px}
#mobile-dashboard .pc-log:has(input:disabled){cursor:default}
#mobile-dashboard .pc-show-more{display:block;border:0;background:transparent;color:#56684a;padding:5px 3px;min-height:30px;font-size:11px;cursor:pointer;text-align:left}
@media(max-width:767px){
 #mobile-dashboard .pc-grid{min-height:calc(100% - 58px);grid-template-rows:repeat(7,minmax(76px,max-content))}
 #mobile-dashboard .pc-meal-title{padding:10px 26px 10px 0;min-height:44px}
 #mobile-dashboard .pc-log{flex-basis:34px;width:34px;height:44px}
 #mobile-dashboard .pc-complete-circle{width:18px;height:18px;font-size:12px}
 #mobile-dashboard .pc-show-more{min-height:44px}
}
