/* Recipe actions: two clear primary actions, personal marks, then utilities. */
.recipeactions.recipe-actions-organized{display:grid;gap:10px;width:100%;max-width:640px;margin-top:14px}
.recipe-actions-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px}
.recipe-actions-organized button,.recipe-actions-organized a,.recipe-actions-organized summary{box-sizing:border-box;min-height:44px;font:600 14px/1.3 var(--sans,system-ui,sans-serif);border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;gap:7px;cursor:pointer;margin:0}
.recipe-actions-main .primary{padding:12px 14px;box-shadow:0 2px 4px #26392f0a}
.recipe-actions-main #openRecipeBooks{background:#365c43;border-color:#365c43;color:#fff}
.recipe-actions-main #startCooking{background:#a34230;border-color:#a34230}
.recipe-actions-marks{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#e9eee3;border:1px solid #ced9c4;border-radius:12px;padding:5px}
.recipe-actions-marks:not(:has(button:not([hidden]))){display:none}
.recipe-actions-marks button{background:transparent;border:1px solid transparent;color:#425344;padding:7px 9px;font-size:13px}
.recipe-actions-marks button:before{content:'○';font-size:18px;line-height:1}
.recipe-actions-marks button[aria-pressed=true]{background:#fff;border-color:#9aaf8e;color:#244832;box-shadow:0 1px 3px #26392f12}
.recipe-actions-marks button[aria-pressed=true]:before{content:'✓'}
.recipe-actions-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border-top:1px solid #dce1d5;padding-top:5px}
.recipe-actions-tools>button{background:transparent;border-color:transparent;color:#425846;font-size:13px;padding:7px 10px;flex:1}
.recipe-actions-more{position:relative;flex:1}
.recipe-actions-more summary{list-style:none;color:#425846;padding:7px 12px;font-size:13px;border:1px solid transparent}
.recipe-actions-more summary::-webkit-details-marker{display:none}.recipe-actions-more summary:after{content:'⌄';margin-left:5px}
.recipe-actions-more[open] summary,.recipe-actions-tools>button:hover{background:#edf1e8;border-color:#cbd8c1}
.recipe-actions-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:20;min-width:205px;padding:6px;border:1px solid #c5d1bb;border-radius:12px;background:#fffdf7;box-shadow:0 8px 25px #26392f22;display:grid;gap:3px}
.recipe-actions-menu button,.recipe-actions-menu a{border:0;background:transparent;color:#304c3a;justify-content:flex-start;padding:10px 12px;text-decoration:none;font-size:14px}
.recipe-actions-menu button:hover,.recipe-actions-menu a:hover{background:#edf1e8}
.recipe-actions-organized :focus-visible,#cards .recipe-card-title-link:focus-visible{outline:3px solid #ad5a37;outline-offset:3px}
#cards .card{cursor:pointer}#cards .recipe-card-title-link{color:inherit;text-decoration:none;font:inherit}#cards .recipe-card-title-link:hover{text-decoration:underline;text-underline-offset:3px}
/* An open equipment picker supports repeated choices without jumping or closing. */
.equipment-multi-picker{border:1px solid #a8b99b;border-radius:9px;background:#eaf0e3;margin:0 0 8px;overflow:hidden}
.equipment-multi-picker summary{padding:10px 12px;font:600 14px/1.4 system-ui,sans-serif;color:#2e4934;cursor:pointer;min-height:44px;box-sizing:border-box}
.equipment-multi-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0 10px 8px}
.equipment-multi-choices label{display:flex!important;align-items:center;gap:7px;font:500 14px/1.3 system-ui,sans-serif!important;background:#fffdf8;border:1px solid #b7c5ac;border-radius:7px;padding:7px!important;min-height:44px;margin:0!important;cursor:pointer;min-width:0}
.equipment-multi-choices input[type=checkbox]{width:18px!important;height:18px;flex:0 0 18px;margin:0!important;accent-color:#365c43}
.equipment-multi-choices label:has(input:checked){background:#d8e5cb;border-color:#759467;color:#243f2b}
.equipment-picker-hint,.equipment-picker-status{font-size:12px!important;line-height:1.5;margin:0 12px 9px!important;color:#42563c}.equipment-picker-status:empty{display:none}
/* Wider recipe forms, with tinted sections and crisp input boundaries. */
.account-wrap:has(#ownRecipePanel:not([hidden])){max-width:1160px;margin-top:20px}
#ownRecipePanel{background:#f0efe5;border-color:#bfcab3;padding:20px}
#ownRecipePanel>h2{font-size:30px;margin-bottom:5px}#ownRecipePanel>p{margin:4px 0 14px;color:#475945;font-size:14px}
#ownRecipeForm{display:grid;gap:12px}
.recipe-entry-section{padding:15px;background:#fffdf7;border:1px solid #c4ceba;border-radius:11px;min-width:0}
.recipe-entry-heading{font:700 17px/1.35 system-ui,sans-serif;color:#284732;margin:0 0 9px;padding-bottom:8px;border-bottom:2px solid #d5dfc9}
.recipe-entry-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr);gap:12px;align-items:start}
#ownRecipeForm label{font-size:14px;color:#263e2d;margin:9px 0 5px;font-weight:650}
#ownRecipeForm input:not([type=checkbox]):not([type=file]),#ownRecipeForm select,#ownRecipeForm textarea{font:16px/1.45 system-ui,sans-serif;padding:8px 10px;border:1px solid #7c906f;border-radius:7px;color:#223729;background:#fff;margin-top:4px;box-sizing:border-box;max-width:100%}
#ownRecipeForm textarea{display:block;width:100%;resize:vertical}
#ownRecipeForm .section-heading-tools{padding:9px;gap:7px;margin-bottom:7px;background:#e7eddf;border-color:#b6c5a7}
#ownRecipeForm .section-heading-tools label{min-width:120px;font-size:12px;margin:0!important}
#ownRecipeForm .section-heading-tools button{padding:8px 10px;font-size:13px}
#ownRecipeForm .section-heading-tools small{font-size:11px;line-height:1.4}
#ownRecipeForm .section-heading-tools+textarea,#ownRecipeForm .equipment-multi-picker+textarea{margin-bottom:12px}
#ownRecipeForm .own-book-fieldset{margin:0;padding:0;border:0}#ownRecipeForm .own-book-fieldset legend{font-size:13px;font-weight:500;margin:0 0 7px}
#ownRecipeForm .book-assignment{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
#ownRecipeForm .book-assignment label{display:flex;align-items:center;min-height:44px;margin:0;padding:7px 9px;background:#eff3e8;border-color:#b5c4a8;font-size:13px;gap:7px}
#ownRecipeForm .book-assignment input{width:18px;height:18px;margin:0;flex:0 0 18px}
#ownCookbookNewBox{max-width:430px}
.recipe-entry-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.recipe-entry-times label{font-size:12px!important}
.recipe-entry-save{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0 0}.recipe-entry-save .primary{background:#365c43;border-color:#365c43;border-radius:9px}.recipe-entry-save p{margin:0;font-size:14px}
#ownRecipeForm input:focus-visible,#ownRecipeForm textarea:focus-visible,#ownRecipeForm select:focus-visible{outline:3px solid #b0713d;outline-offset:2px}
.personal-recipe-editor{width:min(1050px,calc(100vw - 24px));padding:20px;background:#edeedf;border-color:#a5b792}
.personal-recipe-editor form{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.personal-recipe-editor form>h2,.personal-recipe-editor form>p,.personal-recipe-editor form>.personal-editor-grid,.personal-recipe-editor form>fieldset,.personal-recipe-editor form>.personal-editor-controls,.personal-recipe-editor form>.personal-editor-check,.personal-recipe-editor form>.equipment-multi-picker,.personal-recipe-editor form>.recipe-entry-label,.personal-recipe-editor form>textarea,.personal-recipe-editor form>label[data-field=title],.personal-recipe-editor form>label[data-field=description]{grid-column:1/-1}
.personal-recipe-editor label{margin:8px 0;font-size:14px}.personal-recipe-editor input:not([type=checkbox]),.personal-recipe-editor textarea{border-color:#7c906f;padding:8px 10px;line-height:1.4}.personal-recipe-editor fieldset{margin:10px 0;padding:5px 12px;background:#f9fbf3;border-color:#a6b795}
.personal-recipe-editor .personal-editor-hint{margin:8px 0;padding:9px;border:1px solid #b8c8a8;background:#f5f7ed;font-size:12px}
.personal-editor-controls{bottom:-20px;background:#edeedf;padding:12px 0 20px}.personal-recipe-editor .equipment-picker-hint{font-size:12px}.personal-recipe-editor .equipment-multi-choices{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:850px){.recipe-entry-columns{grid-template-columns:1fr}#ownRecipeForm .book-assignment{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-recipe-editor .equipment-multi-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){#ownRecipePanel{padding:12px}.recipe-entry-section{padding:12px}.equipment-multi-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-recipe-editor .equipment-multi-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-recipe-editor form{grid-template-columns:1fr}.personal-recipe-editor{padding:14px}.personal-editor-controls{bottom:-14px;padding-bottom:14px}.recipe-actions-main{grid-template-columns:1.15fr 1fr}.recipe-actions-main button{font-size:13px;padding:11px 9px}.recipe-actions-tools>button,.recipe-actions-more summary{padding:7px;font-size:12px}.recipe-entry-times{grid-template-columns:1fr 1fr}.recipe-entry-times label:first-child{grid-column:1/-1}}
@media print{.recipe-actions-organized,.equipment-multi-picker{display:none!important}}
