.cook{max-width:1200px;margin:24px auto;padding:clamp(16px,3vw,36px)}
.cook-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.cook-head h2{font-size:clamp(25px,4vw,38px);margin:8px 0}.cook-head p{max-width:650px}
.cook-tabs,.cook-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0}.cook-tabs{border-bottom:1px solid #d6e1db;padding-bottom:14px}.cook-tabs button[aria-current=page]{background:#285e4b;color:white}.cook button{min-height:42px;padding:9px 15px;border-radius:12px;border:1px solid #c4d5c9;background:#f5f8f5;color:#204b3a;font:inherit;cursor:pointer}.cook button:hover{background:#e3eee5}.cook button:focus-visible,.cook input:focus-visible,.cook textarea:focus-visible,.cook select:focus-visible{outline:3px solid #598a68;outline-offset:2px}.cook button:disabled{opacity:.5;cursor:wait}.cook .primary{background:#285e4b;color:white}
.cook label{display:flex;flex-direction:column;gap:7px;font-size:14px;line-height:1.5}.cook input,.cook textarea,.cook select{font:inherit;width:100%;padding:10px;border:1px solid #bacbbb;border-radius:8px;background:white;color:#173d2d;box-sizing:border-box}.cook textarea{min-height:100px;resize:vertical}.cook .cook-check{flex-direction:row;align-items:center;margin:12px 0}.cook .cook-check input,.cook input[type=checkbox]{width:20px;height:20px}.cook-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:18px 0}.cook-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px}.cook-card{border:1px solid #d0dfd2;border-radius:18px;overflow:hidden;background:#fcfdfb;box-shadow:0 8px 24px #25452e08}.cook-card>div:not(.cook-placeholder){padding:22px}.cook-card h3{font-size:23px;margin:10px 0}.cook-card img,.cook-placeholder{width:100%;height:175px;object-fit:cover}.cook-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#edf3df,#d4e4d9);font-size:68px;color:#689073}.cook-card small,.cook-task small{color:#526653}.cook-card button{margin:5px 4px 0 0}.cook p{line-height:1.6}.cook-help{font-size:13px;color:#576857}.cook dl{display:grid;grid-template-columns:minmax(100px,180px) 1fr;gap:10px}.cook dd{margin:0;white-space:pre-wrap}.cook dt{font-weight:bold}.cook ol li{margin:12px 0}.cook li small{display:block;color:#536a58}.cook pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}.cook dialog{max-width:950px;width:calc(100% - 36px);max-height:88vh;padding:clamp(18px,3vw,36px);border:1px solid #b7ccbd;border-radius:20px;box-shadow:0 25px 80px #0a2c2050;color:#193e2b;background:#fcfdfb}.cook dialog::backdrop{background:#15362580}.cook dialog>button{margin-top:22px}.cook dialog form>button{margin:16px 10px 10px 0}.cook fieldset{border:1px solid #c9d9cb;border-radius:12px;margin:15px 0;padding:15px}.cook-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px}.cook-photo-grid figure{margin:0;padding:12px;border:1px solid #d4dfd3;border-radius:12px}.cook-photo-grid img{width:100%;height:180px;object-fit:cover}.cook figcaption{font-size:13px;line-height:1.5;margin:10px 0}.cook-photo-grid button{font-size:12px;padding:6px}.cook-table-wrap{overflow:auto}.cook table{width:100%;border-collapse:collapse}.cook th,.cook td{text-align:left;padding:14px;border-bottom:1px solid #d7e2d6;font-size:14px}.cook th{background:#edf3e8}.cook details{padding:18px 0;border-bottom:1px solid #d2dfd1}.cook summary{cursor:pointer;font-weight:600}.cook-task{display:flex;justify-content:space-between;gap:25px;padding:22px 0;border-bottom:1px solid #d1dfd4}.cook-task h4{font-size:19px;margin:8px 0}.cook-task-actions{display:flex;flex-direction:column;gap:8px;min-width:190px}.cook .cook-form-status{color:#873b28}.cook #cook-status:not(:empty),.cook-confirm:not(:empty){padding:12px;background:#f3efd9;border-radius:10px}.cook-menu-choice{max-width:500px}#cook-print img{max-width:100%;max-height:600px;object-fit:contain}
@media(max-width:650px){.cook-head,.cook-task{flex-direction:column}.cook-task-actions{flex-direction:row;flex-wrap:wrap}.cook-tabs{gap:6px}.cook-tabs button{font-size:13px;padding:9px}.cook dl{grid-template-columns:1fr}.cook dt{margin-top:10px}.cook-grid{grid-template-columns:1fr}.cook-fields{grid-template-columns:1fr}}
@media print{body.cook-printing{background:white}body.cook-printing *{visibility:hidden}body.cook-printing #cook-print,body.cook-printing #cook-print *{visibility:visible}body.cook-printing dialog[open]{position:absolute;left:0;top:0;width:100%;max-width:none;max-height:none;border:0;box-shadow:none;overflow:visible;padding:0}body.cook-printing #cook-print{position:absolute;left:0;top:0;width:100%;color:black;background:white}body.cook-printing dialog::backdrop{background:transparent}#cook-print pre{white-space:pre-wrap}#cook-print figure{break-inside:avoid}#cook-print img{max-height:220mm}@page{margin:15mm}}
/* Keep readable contrast inside light surfaces in the host's dark theme. */
.cook .cook-card,.cook .cook-card h3,.cook .cook-card p,.cook th{color:#193e2b}.cook dialog label{color:#294f38}.cook #cook-status:not(:empty),.cook-confirm:not(:empty){color:#54471c}.cook .cook-confirm button{margin:6px}.cook[aria-busy=true]{cursor:progress}.cook .cook-card h3{overflow-wrap:anywhere}
@media(max-width:650px){.cook-head p{margin:8px 0}.cook-head{gap:6px}.cook-tabs{margin:12px 0}.cook-toolbar{margin:14px 0}.cook-toolbar label:not(.cook-check){width:100%}.cook-head>button{align-self:flex-start}}
