.mt-grid,.wt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.mt-card,.wt-card{border:1px solid var(--rule);border-radius:18px;overflow:hidden;background:var(--card);min-width:0}.mt-card-body,.wt-body{padding:20px;display:flex;flex-direction:column;gap:12px}.mt-card h3,.wt-card h3{font-size:var(--type-20);margin:0}.mt-card p,.wt-card p{margin:0;color:var(--ink-soft);line-height:1.55}.mt-card .btn,.wt-card .btn{margin-top:auto;min-height:46px}.mt-art{min-height:108px;display:flex;align-items:center;justify-content:space-between;padding:22px;background:var(--wash);color:var(--ink)}.mt-art>span{font-size:var(--type-44);font-weight:600;opacity:.65}.mt-art small{max-width:120px;text-align:right;line-height:1.6}.mt-tone-0{background:var(--color-source-e7eee4);color:var(--color-source-254333)}.mt-tone-1{background:var(--color-source-e7edf5);color:var(--color-source-244663)}.mt-tone-2{background:var(--color-source-efeada);color:var(--color-source-584c26)}.mt-tone-3{background:var(--color-source-f1e7e0);color:var(--color-source-654634)}.mt-footnote{font-size:var(--type-14)!important;margin:16px 0;line-height:1.6}.mt-detail{max-width:900px;margin:auto;padding:4px}.mt-detail h1{font-size:var(--type-28)}.mt-allergens{padding:12px 0;line-height:1.6;color:var(--ink-soft)}.mt-weekdays{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.mt-weekdays label{display:flex;align-items:center;gap:6px;border:1px solid var(--rule);border-radius:12px;padding:10px;min-height:44px;cursor:pointer}.mt-weekdays input,.mt-replace input{width:18px;height:18px;accent-color:var(--ink);flex-shrink:0}.mt-summary{border:1px solid var(--rule);border-radius:16px;padding:18px;margin:18px 0;background:var(--wash)}.mt-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.mt-numbers>div{display:flex;flex-direction:column;gap:6px}.mt-numbers strong{font-size:var(--type-20)}.mt-numbers strong span{font-size:var(--type-14)}.mt-numbers small{font-size:var(--type-14);line-height:1.5;color:var(--ink-soft)}.mt-meal,.wt-day{border:1px solid var(--rule);border-radius:14px;margin:12px 0;padding:16px}.mt-meal summary,.wt-day summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;min-height:40px}.mt-meal summary small{display:block;color:var(--ink-soft);margin-top:4px}.mt-meal p{font-size:var(--type-14);line-height:1.6;color:var(--ink-soft)}.mt-ingredient{display:grid;grid-template-columns:minmax(0,1fr) 80px 16px;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--rule-soft);font-size:var(--type-14)}.mt-ingredient input{min-height:44px;width:80px}.mt-replace{display:flex;gap:12px;align-items:flex-start;margin:22px 0;padding:16px;border:1px solid var(--rule);border-radius:12px;line-height:1.5}.mt-import{width:100%;min-height:50px;margin:14px 0 30px}.mt-error{color:var(--alert);line-height:1.5}.wt-intro{margin-bottom:18px}.wt-art{height:130px;background:var(--color-source-f1ece6);overflow:hidden;text-align:center}.wt-art .th-media{height:130px;width:100%;object-fit:contain;border:0;border-radius:0}.wt-card small{color:var(--ink-soft)}.wt-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:var(--type-14)}.wt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wt-list{padding:0;list-style:none}.wt-list li{padding:8px 0;border-bottom:1px solid var(--rule-soft);display:flex;justify-content:space-between;gap:12px;font-size:var(--type-14)}.wt-list small{max-width:140px;text-align:right}.wt-dates{max-height:220px;overflow:auto}.wt-dates p{margin:4px 0;font-size:var(--type-14)}.wt-notice{border:1px solid var(--rule);padding:14px;border-radius:12px;line-height:1.55}.wt-source{font-size:var(--type-14);color:var(--ink-soft);line-height:1.6;margin:12px 0 20px}@media(max-width:720px){.wt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.mt-grid,.wt-grid{grid-template-columns:1fr}.mt-card-body,.wt-body{padding:16px}.mt-art{min-height:85px}.mt-summary{padding:14px}.mt-weekdays{gap:5px}.mt-weekdays label{padding:8px}.wt-list li{flex-wrap:wrap}.wt-list small{max-width:none;text-align:left}}

.wt-collection>summary{display:flex;justify-content:space-between;gap:14px;align-items:center;min-height:44px;cursor:pointer;font-size:var(--type-20)}.wt-collection>summary span{font-size:var(--type-14);color:var(--ink-soft)}.wt-collection[open]>.wt-intro{margin-top:20px}.wt-collection>summary::after{content:"+";font-size:var(--type-20)}.wt-collection[open]>summary::after{content:"−"}

.wt-art.wt-portrait{height:auto;aspect-ratio:1;background:var(--color-source-ece8df)}
.wt-portrait>.wt-cover{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:center;border:0;border-radius:0}
.wt-card{display:flex;flex-direction:column}.wt-card>.wt-body{flex:1}

.plan-entry{display:flex;align-items:center;justify-content:space-between;gap:20px}.plan-entry .th-actions{flex-shrink:0}.plan-choice{border:1px solid var(--rule);border-radius:16px;padding:16px;margin:20px 0;min-width:0}.plan-choice legend{font-weight:600;padding:0 8px}.plan-choice label{display:flex;gap:12px;padding:14px 8px;align-items:flex-start;cursor:pointer;min-height:48px}.plan-choice label+label{border-top:1px solid var(--rule)}.plan-choice input{width:20px;height:20px;flex:0 0 20px;accent-color:var(--ink);margin-top:2px}.plan-choice small{display:block;color:var(--ink-soft);font-size:var(--type-14);line-height:1.6;margin-top:5px}.pm-meal-title{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:14px}.pm-ingredient{display:flex;align-items:center;gap:12px}.pm-ingredient>.mt-ingredient{flex:1;min-width:0}.pm-macro-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pm-editor input,.pm-editor select{min-width:0;width:100%;max-width:100%}.pm-editor input[type=radio],.pm-editor input[type=checkbox]{width:20px}.pm-food-picker{max-width:760px;margin:auto}.pm-food-picker [data-pm-results]{display:grid;gap:8px}.pm-food-picker .th-list-row{width:100%;min-height:58px;text-align:left}.setup-welcome{max-width:760px;margin:24px auto;padding:clamp(20px,4vw,36px)}.setup-welcome>h1{font-size:var(--type-28);margin-bottom:14px}.setup-welcome>.btn{width:100%;margin:16px 0;min-height:50px}.setup-plan-routes{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setup-plan-routes>.btn{display:flex;flex-direction:column;gap:8px;text-align:left;align-items:flex-start;padding:18px;white-space:normal}.setup-plan-routes span{font-weight:400;line-height:1.6;color:var(--ink-soft)}
@media(max-width:800px){.plan-entry{display:block}.plan-entry .th-actions{margin-top:16px;flex-wrap:wrap}.pm-macro-inputs{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.setup-plan-routes,.pm-meal-title{grid-template-columns:1fr}.pm-ingredient{display:block}.pm-ingredient>.btn{margin-top:8px}.plan-choice{padding:12px}.plan-entry .btn{width:100%}.setup-welcome{margin:8px auto}}

.th-editor-layout>aside .th-wide-button{display:block;width:100%;margin-top:14px}

/* Weekly food collection shares the Programs disclosure and card proportions. */
.mt-collection>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:48px;cursor:pointer;font-size:var(--type-20);list-style:none}.mt-collection>summary::-webkit-details-marker{display:none}.mt-collection>summary span{font-size:var(--type-14);color:var(--ink-soft)}.mt-collection>summary::after{content:"+";font-size:var(--type-20)}.mt-collection[open]>summary::after{content:"−"}.mt-intro{margin-top:24px}.mt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mt-card{display:flex;flex-direction:column}.mt-card-body{flex:1}.mt-cover-wrap{aspect-ratio:1;background:var(--color-source-f1ece6);overflow:hidden}.mt-cover{display:block;width:100%;height:100%;object-fit:cover}.mt-pairing{font-size:var(--type-14);line-height:1.6;letter-spacing:.06em;color:var(--ink-soft)}.mt-preference{line-height:1.6;color:var(--ink-soft)}.mt-detail-hero{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center;gap:22px;margin:20px 0}.mt-detail-hero img{width:160px;height:160px;object-fit:cover;border-radius:18px}.mt-detail-hero h1{margin-top:0}.mt-detail-hero small{color:var(--ink-soft)}.mt-notice{border:1px solid var(--rule);border-radius:16px;padding:18px;margin:18px 0;background:var(--wash);line-height:1.6}.mt-notice ul{padding-left:20px;font-size:var(--type-14)}.mt-detail [hidden]{display:none!important}.pm-plan.plan-entry{display:block}.pm-plan-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.pm-plan-head .th-actions{display:flex;flex-direction:column;gap:10px}.pm-current{border-top:1px solid var(--rule);margin-top:22px;padding-top:12px}.pm-current>summary{min-height:48px;cursor:pointer;font-weight:600}.pm-day-select{max-width:260px;margin:16px 0}.pm-current-list{list-style:none;padding:0;margin:0}.pm-current-list li{display:grid;grid-template-columns:65px minmax(0,1fr) auto;gap:12px;padding:15px 0;border-top:1px solid var(--rule);align-items:start;font-size:var(--type-14)}.pm-current-list small{display:block;color:var(--ink-soft);font-size:var(--type-14);line-height:1.6;margin-top:5px}.pm-current-list time{font-variant-numeric:tabular-nums;color:var(--ink-soft)}.pm-current-list li>span{white-space:nowrap;font-size:var(--type-14)}.pm-plan-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--rule);padding-top:18px}.pm-plan-footer small{color:var(--ink-soft);line-height:1.6}.pm-plan-footer>.btn{flex-shrink:0}.pm-remove p{line-height:1.7}.mt-collection>summary:focus-visible,.pm-current>summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:6px}
@media(max-width:1000px){.mt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pm-plan-head{display:block}.pm-plan-head .th-actions{flex-direction:row;flex-wrap:wrap;margin-top:16px}}
@media(max-width:480px){.mt-grid{grid-template-columns:1fr}.mt-collection>summary{flex-wrap:wrap}.mt-collection>summary strong{flex:1}.mt-collection>summary span{order:3;flex-basis:100%}.mt-detail-hero{grid-template-columns:90px minmax(0,1fr);gap:14px}.mt-detail-hero img{width:90px;height:90px;border-radius:12px}.mt-detail-hero h1{font-size:var(--type-20)}.pm-plan-head .th-actions,.pm-plan-footer{display:flex;flex-direction:column;align-items:stretch}.pm-current-list li{grid-template-columns:50px minmax(0,1fr);gap:8px}.pm-current-list li>span{grid-column:2}.mt-card-body{padding:18px}.mt-detail-hero small{font-size:var(--type-14)}}
