/* Native hidden must override authored display:grid/flex declarations. */
[hidden], [hidden=""]{display:none!important}
:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#233b2b;background:#f7f8f3;font-size:16px;--dark:#1c432f;--green:#365c3e;--rust:#d95540;--line:#dce3d8;--muted:#667a6c;--white:#fff;--radius:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer;min-height:45px;border-radius:11px;border:1px solid var(--line);padding:10px 15px;background:#fff;color:#244531;font-weight:600}button:hover{border-color:#8ca68f}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #7aab7d;outline-offset:2px}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--dark);color:white;border-color:var(--dark)}.accent{background:#d95640;color:white;border-color:#d95640}.secondary{background:#f3f5f0}.ghost{border:0;background:transparent}.small{font-size:.8rem}.muted{color:var(--muted)}.centered{text-align:center}.eyebrow{font-size:.72rem;letter-spacing:.17em;font-weight:800;color:var(--rust);margin:0 0 6px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(1.65rem,2vw,2.2rem)}h2{font-size:1.3rem}h3{font-size:1.05rem}.stack{display:grid;gap:14px}.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1}.full{grid-column:1/-1}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 4px 18px #203b2408}.grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{font-weight:650;font-size:.86rem;display:grid;gap:7px}input,textarea,select{width:100%;border:1px solid #cdd9cc;border-radius:10px;padding:12px;background:#fff;color:inherit;min-height:46px}textarea{resize:vertical}input[type=checkbox]{width:23px;height:23px;min-height:23px;accent-color:var(--dark)}input[type=date]{max-width:280px}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,475px);background:#fff;padding:32px;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 44px #183d3015}.auth-brand{width:100%;height:125px;object-fit:contain;margin-bottom:10px}.auth-card h1{margin-top:22px}.auth-card .small{margin-top:20px}.sidebar{background:#fff;border-right:1px solid var(--line);width:255px;min-height:100vh;position:fixed;top:0;left:0;padding:20px;display:flex;flex-direction:column;gap:24px}.sidebar-brand{display:flex;gap:11px;align-items:center}.sidebar-brand img{width:52px;height:52px;object-fit:contain}.sidebar-brand strong{font-size:1.25rem;display:block}.sidebar-brand small{display:block;color:var(--muted)}.sidebar nav{display:grid;gap:8px}.sidebar nav button{text-align:left;background:transparent;border:0;padding:14px 12px;display:flex;align-items:center;gap:13px}.sidebar nav button.active{background:#e9f0e6;color:#1b4931}.sidebar-bottom{margin-top:auto;display:grid;gap:10px;font-size:.9rem;color:var(--muted)}.main{margin-left:255px;min-height:100vh}.topbar{padding:28px clamp(20px,4vw,50px) 10px;display:flex;justify-content:space-between;align-items:center}.content{padding:12px clamp(20px,4vw,50px) 80px;max-width:1600px;margin:0 auto}.toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:20px}.toolbar>label{flex:1;min-width:170px}.tile{display:grid;align-content:start;gap:11px;min-height:195px}.tile h3{margin:0}.tile footer{display:flex;flex-wrap:wrap;gap:7px;margin-top:auto}.tile .category-pill,.pill{display:inline-flex;align-items:center;border-radius:30px;padding:5px 10px;background:#f1f4ed;color:#496950;font-size:.74rem;font-weight:700}.tile p{color:var(--muted);line-height:1.45}.tile.selected{border:2px solid #578661}.empty{padding:30px;border:1px dashed #a8b9a7;border-radius:16px;text-align:center;color:var(--muted)}.list-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.check-row{display:flex;align-items:center;gap:12px;min-height:50px}.done{text-decoration:line-through;color:#84948a}.stat{font-size:2rem;font-weight:800;color:var(--dark)}.danger{color:#a12f23}.warning{border-left:4px solid #d59137;background:#fff5db;padding:11px}.feed-link{word-break:break-word}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left}dialog{border:0;padding:0;border-radius:18px;box-shadow:0 25px 80px #14281f55;width:min(850px,calc(100vw - 24px));max-height:90dvh}dialog::backdrop{background:#1b392981}.dialog-form{padding:24px;overflow-y:auto;max-height:90dvh}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-actions{display:flex;justify-content:flex-end;margin-top:18px}pre{white-space:pre-wrap;word-break:break-word;max-height:250px;overflow:auto}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#1e4731;color:#fff;border-radius:12px;padding:13px 19px;max-width:min(90vw,750px);box-shadow:0 9px 25px #172e2244}#toast.error{background:#ac3a29}.mobile-nav,.mobile-only{display:none}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px;overflow-x:auto}.day-cell{min-height:145px;padding:12px;border:1px solid var(--line);border-radius:13px;background:white;min-width:105px}.day-cell.today{border:2px solid #5a8559}.day-cell strong{display:block;margin-bottom:8px;font-size:.87rem}.meal-chip{border:0;display:block;width:100%;text-align:left;background:#edf3e9;color:#365c3e;font-size:.76rem;min-height:32px;margin-top:5px;padding:6px;white-space:normal}.filters{display:flex;gap:7px;flex-wrap:wrap}.filters button.active{background:#dcead8}details summary{cursor:pointer;padding:8px 0}.mobile-nav button{border:0;background:transparent}.mobile-nav button.active{color:#cd513c}
@media(max-width:900px){.sidebar{display:none}.main{margin-left:0}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:40}.mobile-nav button{display:grid;place-items:center;gap:2px;font-size:1.18rem;min-width:62px}.mobile-nav span{font-size:.7rem}.mobile-only{display:inline-flex}.content{padding-bottom:116px}.topbar{padding:18px 20px 6px}}@media(max-width:620px){.form-grid{grid-template-columns:1fr}.grid{grid-template-columns:1fr}.dialog-form{padding:16px}.auth-card{padding:22px}.week-grid{grid-template-columns:repeat(7,minmax(110px,1fr))}.toolbar>label{width:100%;flex:auto}}@media(hover:none){button{min-height:48px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Comfortable density for mouse, touch, and tablets. */
:root{--space-1:8px;--space-2:14px;--space-3:20px;--space-4:26px}
body{line-height:1.52;-webkit-text-size-adjust:100%}
.main{background:#f7f8f3}
.content{padding-top:24px;padding-bottom:110px}
.content>*+*{margin-top:22px}
.content>.grid{margin-top:18px}
.card{padding:clamp(20px,2.25vw,32px)}
.card>*+*:not(.list-row){margin-top:14px}
.card h2,.card h3{line-height:1.35}
.card p{line-height:1.6}
.card label{margin-top:7px;margin-bottom:5px}
.card .toolbar{padding-top:10px;padding-bottom:8px;gap:16px}
.card .toolbar > input,.card .toolbar > button{align-self:end}
.card button,.sidebar button,.mobile-nav button{padding:12px 17px}
.auth-card{padding:clamp(26px,3vw,42px)}
.auth-card .stack{gap:19px}
.auth-card label{gap:10px}
.sidebar{width:260px;padding:24px 20px}
.sidebar-brand{color:inherit;text-decoration:none;padding:8px 4px;min-height:65px;border-radius:12px}
.sidebar-brand:focus-visible{outline:3px solid #7aab7d;outline-offset:3px}
.sidebar nav{gap:8px}
.sidebar nav button{padding:15px 14px;text-align:left;line-height:1.4}
.sidebar nav button span{display:inline-block}
.sidebar nav button:hover{background:#f1f4ee}
.main{margin-left:260px}
.topbar{padding-top:36px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.topbar h1{margin-bottom:6px}
.tile{gap:16px;min-height:225px}
.tile footer{margin-top:auto;padding-top:8px}
.tile footer button{flex:1;white-space:normal}
.grid{gap:20px}
.form-grid{gap:21px}
.list-row{padding:19px 0;gap:20px}
.list-row button{flex-shrink:0}
.list-row p{margin:6px 0 0}
.check-row{gap:14px}
.dialog-form{padding:clamp(22px,3vw,36px)}
.dialog-actions{padding-top:12px}
.day-cell{padding:16px}
.meal-chip{padding:9px 10px;min-height:40px}
.section-nav{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
.section-nav button{padding:12px 18px}
.section-nav button.active{background:#e5eee2;border-color:#a7c2a4}
.page-heading{margin-bottom:22px}
.page-heading p{color:var(--muted);max-width:65ch}
.breadcrumb{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.breadcrumb button{border:0;background:transparent;padding:8px;color:var(--green)}
.dashboard-card{display:flex;flex-direction:column;gap:14px;min-height:170px}
.dashboard-card>button{margin-top:auto;align-self:flex-start}
#toast{line-height:1.5}
@media(max-width:900px){.main{margin-left:0}.content{padding:24px clamp(16px,3vw,32px) 132px}.topbar{padding:22px 24px 14px}.mobile-nav{padding:10px 6px calc(10px + env(safe-area-inset-bottom))}.mobile-nav button{padding:12px 9px;min-height:60px}}
@media(max-width:620px){.card{padding:20px}.content{padding:16px 15px 132px}.sidebar{display:none}.list-row{flex-wrap:wrap}.list-row button{width:100%}.section-nav button{flex:1}.week-grid{overflow-x:auto}}

/* Image-rich library and dedicated, touch-first full recipe page. */
.recipe-tile{display:flex;flex-direction:column;gap:0;padding:0!important;overflow:hidden;min-height:380px}
.recipe-tile-photo{height:190px;background:#edf1e5;display:grid;place-items:center;overflow:hidden;color:#718675}
.recipe-tile-photo img{width:100%;height:100%;object-fit:cover}
.recipe-placeholder{font-size:4rem}
.recipe-tile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 0}
.recipe-tile-copy{padding:6px 20px 0;flex:1}
.recipe-tile-copy h3{font-size:1.18rem;line-height:1.3;margin:10px 0}
.recipe-tile-copy p{font-size:.95rem;line-height:1.5}
.recipe-select{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:.87rem;color:#4e6a57}
.recipe-tile footer{display:flex;flex-wrap:wrap;gap:9px;padding:14px 20px 20px;margin-top:auto}
.recipe-tile footer button{font-size:.86rem;padding:11px 12px;flex:1 1 auto}
.recipe-view-actions{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0 17px}
.recipe-hero{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);border:1px solid var(--line);background:#fff;overflow:hidden;border-radius:20px;min-height:320px}
.recipe-hero-image{display:grid;place-items:center;font-size:5rem;background:#edf1e5;min-height:280px;overflow:hidden}
.recipe-hero-image img{width:100%;height:100%;min-height:280px;object-fit:cover}
.recipe-hero-content{padding:clamp(26px,3vw,54px);display:flex;flex-direction:column;align-items:flex-start;gap:16px;justify-content:center}
.recipe-hero-content h2{font-size:clamp(1.8rem,3.2vw,3rem);line-height:1.15;margin:0;color:#193e2b}
.recipe-hero-content>p{font-size:1.07rem;line-height:1.65}
.recipe-facts{display:flex;flex-wrap:wrap;gap:12px;width:100%}
.recipe-fact{display:flex;flex-direction:column;gap:4px;background:#f6f7f2;border:1px solid #e4e9e0;padding:11px 15px;border-radius:12px;min-width:100px}
.recipe-fact span{color:#6b7b70;font-size:.75rem}.recipe-fact strong{font-size:.95rem}
.recipe-content-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}
.recipe-content-grid .card{padding:clamp(24px,2.5vw,40px)}
.ingredient-list,.instruction-list{padding:0;margin:16px 0 0;list-style:none}
.ingredient-list li{padding:13px 0;border-bottom:1px solid #e5e9e2}
.ingredient-check{display:flex;flex-direction:row;align-items:flex-start;gap:13px;font-size:1rem;cursor:pointer}
.ingredient-check input{width:21px;height:21px;min-width:21px;margin:2px 0 0;accent-color:#527450}
.ingredient-check input:checked+span{text-decoration:line-through;opacity:.53}
.instruction-list{counter-reset:step}
.instruction-list li{counter-increment:step;display:grid;grid-template-columns:35px minmax(0,1fr);gap:14px;line-height:1.7;padding:18px 0;border-bottom:1px solid #e5e9e2}
.instruction-list li:before{content:counter(step);display:grid;place-items:center;width:32px;height:32px;background:#e9efe4;color:#21452e;border-radius:50%;font-weight:700}
.recipe-notes{white-space:pre-wrap}.evidence-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto}
.recipe-photo-editor{height:180px;border:1px dashed #bbcaba;border-radius:12px;display:grid;place-items:center;background:#f7f8f3;overflow:hidden}
.recipe-photo-editor img{width:100%;height:100%;object-fit:contain}
@media(max-width:860px){.recipe-hero{grid-template-columns:1fr}.recipe-content-grid{grid-template-columns:1fr}.recipe-hero-image,.recipe-hero-image img{min-height:220px;max-height:380px}.recipe-hero-content{padding:26px}.recipe-view-actions button{flex:1 1 auto}}

.submission-card{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid #e0e6dd}
.submission-image{width:100%;height:136px;border-radius:12px;background:#edf1e5;overflow:hidden}
.submission-image img{width:100%;height:100%;object-fit:cover}
.submission-card h3{margin:0 0 8px}.submission-card details{margin-top:10px}
.submission-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;background:#f7f8f3;border-radius:12px}
.submission-preview ul,.submission-preview ol{padding-left:22px}
.tag-list{display:flex;gap:10px;flex-wrap:wrap}.stack>*+*{margin-top:16px}
@media(max-width:620px){.submission-card{grid-template-columns:1fr}.submission-image{height:200px}.submission-preview{grid-template-columns:1fr}}

/* Read-only discovered-recipe preview. */
.recipe-preview-dialog{width:min(760px,calc(100vw - 24px));max-height:min(88vh,950px);border:1px solid #dfe6dc;border-radius:20px;padding:0;background:#fff;color:#243a2a;box-shadow:0 22px 80px #15291f40}
.recipe-preview-dialog::backdrop{background:#111d18a8}
.recipe-preview-body{padding:clamp(20px,4vw,34px);max-height:88vh;overflow-y:auto}
.recipe-preview-body>.recipe-tile-photo{height:230px;border-radius:12px;margin:14px 0 20px}
.recipe-preview-body h2{font-size:1.6rem;margin:0;line-height:1.3}
.recipe-preview-body h3{margin:22px 0 10px}
.recipe-preview-body li{line-height:1.65;margin:7px 0;overflow-wrap:anywhere}
.recipe-preview-body .toolbar{justify-content:flex-end;margin-top:22px}

/* CSP-compliant layout classes: no inline style attributes. */
.plan-week-heading{margin:22px 0 12px}
.update-progress{width:100%;height:16px}
.update-progress-large{height:20px}
.about-brand{max-width:340px;margin:0 0 20px}
.about-brand img{display:block;width:100%;height:auto}


/* RecipeCove updater: clear release status, version comparison and staged progress. */
.updater-header{align-items:flex-start;gap:18px;margin-bottom:24px}
.updater-header h2{font-size:clamp(1.4rem,2vw,1.8rem);margin-bottom:6px}
.updater-header .muted{margin:0}
.updater-status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
 border-radius:40px;padding:8px 14px;font-size:.8rem;font-weight:750;
 border:1px solid #d1ddd0;background:#f2f6f1;color:#33513a}
.updater-status::before{content:'●';font-size:.62rem;margin-right:8px}
.updater-status-available{background:#fff0e7;border-color:#efc5b0;color:#a3452a}
.updater-status-running,.updater-status-checking{background:#eaf0f9;border-color:#cbd8eb;color:#294c80}
.updater-status-error{background:#fff0ed;border-color:#edc4bf;color:#96372a}
.updater-status-manual{background:#fff5dc;border-color:#e9d5a1;color:#865b17}
.updater-status-current{background:#eaf5ec;border-color:#badac2;color:#266140}
.updater-versions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
.updater-version-tile{background:#f7f9f5;border:1px solid #e4eae1;border-radius:14px;
 padding:20px 22px;display:flex;flex-direction:column;gap:9px;min-width:0}
.updater-version-caption{font-size:.76rem;letter-spacing:.045em;font-weight:750;
 color:#677a6a;text-transform:uppercase}
.updater-version-number{font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.045em;
 color:#1e4631;line-height:1.2;font-variant-numeric:tabular-nums}
.updater-summary{padding:24px 0 10px;border-top:1px solid #e3e9e0}
.updater-state-heading{font-size:1.35rem;margin-bottom:6px}
.updater-description{max-width:68ch;line-height:1.6;margin-bottom:10px}
.updater-release-link{display:inline-flex;margin:2px 0 8px;color:#285c44;font-weight:700}
.updater-running{background:#f5f8f5;border-radius:14px;padding:20px;
 border:1px solid #dfe8dd;margin:10px 0 20px}
.updater-running .row{margin:0 0 12px}
.updater-running progress{width:100%;height:16px;accent-color:#2a6b4a}
.updater-percent{color:#285e43;font-variant-numeric:tabular-nums}
.updater-running p{margin:10px 0}
.updater-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 gap:8px;list-style:none;margin:20px 0 0;padding:0}
.updater-step{display:flex;align-items:flex-start;flex-direction:column;gap:7px;
 border-top:2px solid #dae4d9;padding-top:10px;color:#8a9a8e;
 font-size:.77rem;font-weight:650;line-height:1.3}
.updater-step-mark{display:inline-flex;align-items:center;justify-content:center;
 width:23px;height:23px;border-radius:100%;background:#e4eae3;font-size:.85rem}
.updater-step.is-done{color:#2f6d49;border-color:#3f8458}
.updater-step.is-active{color:#24583b;border-color:#236a45}
.updater-step.is-done .updater-step-mark,.updater-step.is-active .updater-step-mark{
 background:#d3e9d9;color:#26653e}
.updater-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;
 border-top:1px solid #e2e9df;padding-top:20px;margin-top:18px}
.updater-actions button{min-width:160px}
.updater-actions button:first-child:not([hidden]){background:#204a34;color:#fff;border-color:#204a34}
@media(max-width:720px){
 .updater-header{align-items:flex-start;flex-direction:column}
 .updater-versions{grid-template-columns:1fr}
 .updater-steps{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:14px}
 .updater-actions button{flex:1;min-width:130px}
}

.updater-notes{margin:8px 0 18px;padding:20px 24px;border-radius:14px;
 background:#f8f7f1;border:1px solid #eae6d8}
.updater-notes h3{margin:0 0 12px;font-size:1rem}
.updater-notes-list{margin:0;padding-left:21px;color:#395543;line-height:1.7}
.updater-notes-list li+li{margin-top:6px}


/* Recipe folders: lightweight group chips, responsive shortcuts and editor. */
.folder-shortcuts,.folder-tags,.recipe-folder-choices{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.folder-shortcuts button{border-radius:999px;min-height:42px;background:#f4f6ed}
.folder-tags{margin:6px 0;gap:6px}
.folder-chip{display:inline-flex;align-items:center;border:1px solid #d8e2d1;
  background:#eef5e9;border-radius:999px;padding:5px 10px;font-size:.76rem;
  color:#365c3e;font-weight:650;max-width:100%;overflow-wrap:anywhere}
.recipe-folders-editor{border:1px solid #dce3d8;border-radius:13px;
  padding:14px 17px;margin:0;min-width:0}
.recipe-folders-editor legend{font-weight:750;padding:0 6px}
.recipe-folders-editor p{margin-bottom:10px}
.recipe-folder-choices .folder-select{display:inline-flex;align-items:center;
  background:#f4f7f0;border:1px solid #dfe7d9;border-radius:12px;
  gap:9px;padding:7px 12px;cursor:pointer;font-size:.87rem}
.recipe-folder-choices .folder-select input{margin:0;min-height:20px;width:20px;height:20px}
@media(max-width:620px){.folder-shortcuts button{flex:1 1 auto}
  .recipe-folder-choices .folder-select{flex:1 0 140px}}
