:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#2f3b30;background:#f7f3eb;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.6;cursor:wait}
.hidden{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{max-width:970px;margin:auto;padding:0 22px 70px}
.topbar{display:flex;align-items:center;gap:12px;min-height:82px}
.brand-mark{width:43px;height:43px;display:grid;place-items:center;background:#355340;color:white;border-radius:14px;font-family:serif;font-size:25px}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}
.brand-copy small{font-size:9px;letter-spacing:2px;color:#a3a391}
.brand-copy strong{font-size:19px;letter-spacing:2px}
.icon-button{margin-left:auto;border:0;background:#e9ecdf;color:#355340;border-radius:50%;width:38px;height:38px;font-size:24px}
.hero{padding:37px 36px 38px;border-radius:24px;background:#edf1e6;position:relative;overflow:hidden}
.hero:after{content:"✿";position:absolute;right:42px;top:16px;color:#dce5d5;font-size:150px;line-height:1;pointer-events:none}
.hero>*{position:relative;z-index:1}
.hero-kicker{margin:0 0 10px;color:#77876f;font-size:13px;letter-spacing:2px}
h1{margin:0;color:#2c4534;font-size:clamp(30px,5vw,43px);font-weight:700;letter-spacing:1px}
h1 span{display:inline-grid;place-items:center;vertical-align:middle;width:30px;height:30px;margin-left:10px;border-radius:50%;font-size:14px;background:#d4e0ce;color:#3c5d42}
.hero>p:not(.hero-kicker){margin:12px 0 24px;color:#657264;font-size:15px}
.primary-button{border:0;border-radius:12px;background:#446b4b;color:white;padding:13px 22px;font-weight:700;box-shadow:0 5px 14px #446b4b27}
.primary-button:hover{background:#34583b}
.collection{padding-top:26px}
.search-wrap{display:flex;align-items:center;gap:9px;width:100%;border:1px solid #e0e1d5;border-radius:13px;background:white;padding:0 15px;color:#81907e}
.search-wrap span{font-size:27px;line-height:1}
.search-wrap input{border:0;outline:0;background:transparent;width:100%;height:47px;color:#2f3b30}
.search-wrap input::placeholder{color:#a0a69b}
.status{min-height:24px;margin:13px 0 6px;font-size:13px;color:#8b6753}
.recipe-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:18px}
.recipe-card{overflow:hidden;border:1px solid #e7e5d9;border-radius:18px;background:#fff;box-shadow:0 5px 18px #5362490a}
.card-photo{display:block;width:100%;height:175px;border:0;padding:0;background:#e8ede4;overflow:hidden}
.card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.card-photo:hover img{transform:scale(1.035)}
.card-photo img{transition:transform .2s}
.card-empty{height:110px;display:grid;place-items:center;color:#a8b7a3;font-size:34px}
.card-content{display:block;text-align:left;width:100%;border:0;background:transparent;padding:17px 18px 18px;color:inherit}
.card-content strong{display:block;color:#2d4332;font-size:18px;line-height:1.4}
.card-content p{font-size:14px;line-height:1.55;color:#7a8276;margin:7px 0 13px;min-height:22px;white-space:pre-line;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.card-content small{color:#a1a59a;font-size:12px}
.empty-state{grid-column:1/-1;text-align:center;border:1px dashed #cdd8c8;border-radius:18px;padding:52px 20px;color:#758673;background:#f9faf6}
.empty-state span{font-size:39px;display:block;margin-bottom:10px}
dialog{border:0;padding:0}
dialog::backdrop{background:#202b24a8}
.recipe-dialog{width:min(94vw,540px);max-height:calc(100dvh - 25px);border-radius:20px;background:#fffdf9;box-shadow:0 20px 70px #17241b45;overflow:auto}
.recipe-dialog form{padding:24px}
.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.dialog-head h2{margin:0;font-size:24px;color:#304b37}
.close-button{background:#eef0e8;border:0;border-radius:50%;font-size:25px;color:#647460;width:35px;height:35px}
.field{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;color:#4e6250;font-size:14px;font-weight:700}
.field i{font-style:normal;color:#be6953}
.field input,.field textarea{width:100%;border:1px solid #dbded4;border-radius:12px;background:#fff;padding:12px 13px;outline:0;color:#2f3b30;font-weight:400}
.field input:focus,.field textarea:focus{border-color:#789a7a;box-shadow:0 0 0 3px #789a7a22}
.field textarea{resize:vertical;min-height:150px;line-height:1.55}
.photo-field{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:13px}
.field-label{color:#4e6250;font-size:14px;font-weight:700}
.upload-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #97ad98;border-radius:11px;color:#42684b;background:#f4f8f0;padding:11px 18px;font-size:14px;font-weight:700;cursor:pointer}
.upload-button:hover{background:#e7f0e3}
.editor-photo{display:block;max-width:100%;padding:0;border:0;background:#edf1e9;border-radius:12px;overflow:hidden;text-align:center;color:#57735b}
.editor-photo img{display:block;max-width:100%;max-height:280px;object-fit:contain}
.editor-photo span{display:block;padding:7px;font-size:12px}
.remove-photo{border:0;background:transparent;padding:2px;color:#a95349;font-size:13px}
.form-error{min-height:20px;margin:0 0 8px;color:#b74740;font-size:13px}
.form-actions{display:flex;justify-content:flex-end;gap:12px;align-items:center}
.danger-button{border:0;background:transparent;color:#b65a50;padding:10px;margin-right:auto}
.photo-dialog{max-width:100vw;max-height:100dvh;background:transparent;overflow:visible}
.photo-dialog img{display:block;max-width:94vw;max-height:88dvh;object-fit:contain;border-radius:8px}
.photo-close{position:absolute;right:0;top:-43px;background:#fff;border:0;border-radius:50%;font-size:25px;width:36px;height:36px;color:#344333}
@media(max-width:560px){.app-shell{padding:0 15px 36px}.topbar{min-height:69px}.hero{padding:30px 23px 31px;border-radius:20px}.hero:after{right:-18px;top:42px;font-size:120px}.hero>p:not(.hero-kicker){max-width:220px;line-height:1.5}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-photo{height:145px}.card-content{padding:12px}.card-content strong{font-size:16px}.card-content p{font-size:13px}.recipe-dialog{width:100vw;max-height:94dvh;margin:auto 0 0;border-radius:20px 20px 0 0}.recipe-dialog form{padding:22px 20px calc(22px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.recipe-grid{grid-template-columns:1fr}.card-photo{height:185px}}
