#recipes-view{--recipe-card:var(--surface,#fff);--recipe-ink:var(--purple,#6152dc)}
.recipe-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.recipe-heading h1{margin:0}.recipe-heading button{font-size:25px;width:46px;padding:0}
.recipe-tools{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}.recipe-tools input{width:100%}.recipe-filter-row{display:flex;gap:7px;flex-wrap:wrap}.recipe-filter-row button,#recipe-tags button{font-size:13px;padding:7px 11px;min-height:40px}.recipe-filter-row button[aria-pressed=true],#recipe-tags button[aria-pressed=true]{background:var(--purple);color:var(--accent-ink,#fff);border-color:var(--purple)}
.recipe-tools summary{cursor:pointer;min-height:40px;display:flex;align-items:center;font-weight:650}.recipe-tools details{color:inherit}#recipe-tags{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:10px}#recipe-status{font-size:13px;margin:0 0 12px;min-height:18px;color:var(--muted)}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.recipe-card{position:relative;min-width:0;background:var(--recipe-card);border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 3px 13px #0000000a}.recipe-open{display:block;width:100%;height:100%;text-align:left;border:0;border-radius:0;padding:0;background:transparent!important;color:inherit!important;font-weight:400}.recipe-poster{display:block;position:relative;aspect-ratio:4/5;overflow:hidden;background:var(--surface-soft,#eeebdf)}.recipe-poster img{width:100%;height:100%;object-fit:cover;display:block}.recipe-placeholder{display:grid;place-items:center;width:100%;height:100%;font-family:Georgia,serif;font-size:65px;color:#a38855;background:radial-gradient(circle at 30% 20%,#d7be8830,transparent 70%)}
.recipe-card-copy{display:flex;flex-direction:column;gap:7px;padding:13px}.recipe-card-copy strong{font-size:16px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}.recipe-card-copy>span{font-size:12px;color:var(--muted)}.recipe-card-tags{display:flex;gap:5px;flex-wrap:wrap}.recipe-card-tags span{background:var(--surface-soft,#eeedf6);padding:3px 7px;border-radius:5px}.recipe-bookmark{position:absolute;right:10px;top:0;width:42px;height:50px;min-height:44px;padding:5px 8px 9px;border:0;border-radius:0 0 9px 9px;background:#18271ac9!important;color:#fff!important;backdrop-filter:blur(5px)}.recipe-bookmark svg{width:24px;height:29px;fill:transparent;stroke:currentColor;stroke-width:1.6}.recipe-bookmark.is-favorite{color:#f4ce70!important}.recipe-bookmark.is-favorite svg{fill:#d2a747;stroke:#ffe2a0}.recipe-bookmark:disabled{opacity:1;cursor:default}.recipe-made{position:absolute;left:9px;bottom:9px;font-size:11px;padding:5px 7px;border-radius:6px;background:#172c24dd;color:#fff4d6}.recipe-empty{grid-column:1/-1;padding:25px 0}
#recipe-detail,#recipe-editor{width:min(900px,calc(100vw - 24px));max-width:900px;max-height:94dvh;padding:0;overflow:auto;border-radius:20px;color:inherit}#recipe-detail::backdrop,#recipe-editor::backdrop,#recipe-lightbox::backdrop{background:#07140dcc;backdrop-filter:blur(4px)}.recipe-detail-top{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:8px;padding:12px;background:var(--surface,#fff);border-bottom:1px solid var(--line)}.recipe-detail-top button{font-size:13px}.recipe-detail-cover{height:230px;background:var(--surface-soft,#efedde)}.recipe-detail-cover img{height:100%;width:100%;object-fit:cover}.recipe-detail-content{padding:24px}.recipe-title-row{display:flex;align-items:start;justify-content:space-between;gap:12px}.recipe-title-row h2{font-size:28px;line-height:1.15}.recipe-title-row button{white-space:nowrap;font-size:13px}.recipe-reading{display:grid;grid-template-columns:1fr;gap:10px}.recipe-detail-content h3{font-size:18px;margin:26px 0 12px}.recipe-plain{white-space:pre-wrap;line-height:1.7}.recipe-prose{line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}.recipe-prose p{margin:0 0 14px}.recipe-prose ul,.recipe-prose ol{white-space:normal;padding-left:25px}.recipe-prose img{max-width:100%;height:auto;display:block;margin:16px auto;cursor:zoom-in}.recipe-gallery{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.recipe-gallery button{padding:0;overflow:hidden;width:110px;height:110px}.recipe-gallery img{width:100%;height:100%;object-fit:cover}.recipe-detail-content a{color:var(--purple)}
#recipe-detail.cooking{width:min(1200px,100vw);max-width:1200px;max-height:100dvh;height:100dvh;border-radius:0}.cooking .recipe-detail-cover,.cooking .recipe-title-row button{display:none}.cooking .recipe-reading{font-size:20px}.cooking .recipe-title-row h2{font-size:25px}.cooking .recipe-detail-content{padding:20px}.cooking .recipe-reading section{min-width:0}@media(min-width:850px){.cooking .recipe-reading{grid-template-columns:minmax(220px,1fr) 2fr;gap:35px}}
#recipe-form{padding:22px}#recipe-form label{display:block;font-weight:650;margin:16px 0 6px}#recipe-form input:not([type=checkbox]),#recipe-form textarea{width:100%;max-width:none}#recipe-form textarea{min-height:110px;resize:vertical}.recipe-editor-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}#recipe-preparation{min-height:240px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,#faf9fc);white-space:pre-wrap;line-height:1.65;overflow-wrap:anywhere}#recipe-preparation img{max-width:100%;height:auto}#recipe-preparation:focus{outline:2px solid var(--purple)}#recipe-edit-photos{display:flex;gap:12px;overflow:auto;margin-top:12px}#recipe-edit-photos>div{width:120px;flex-shrink:0}#recipe-edit-photos button{width:100%;padding:5px;font-size:11px;display:block;margin-bottom:5px}#recipe-edit-photos img{width:100%;height:110px;object-fit:cover;display:block}#recipe-edit-photos [aria-pressed=true]{border:2px solid #bf974b}#recipe-editor-error,#recipe-detail-error{color:var(--danger,#a53232);white-space:pre-line}#recipe-lightbox{padding:12px;background:var(--surface,#fff);width:95vw;max-width:1200px;max-height:96dvh;overflow:auto}#recipe-lightbox-close{position:sticky;top:0;display:block;margin-left:auto}#recipe-photo-large{max-width:100%;height:auto;display:block;margin:auto}
[data-theme=christmas] #recipe-status,[data-theme=christmas] .recipe-tools details{color:#e5d8b8}[data-theme=christmas] .recipe-card{color:#283b31}[data-theme=halloween] .recipe-card{background:#272030;color:#f5eee6}[data-theme=halloween] #recipe-preparation{background:#19151f}[data-theme=halloween] .recipe-detail-top{background:#272030}
@media(prefers-color-scheme:dark){[data-theme=christmas] .recipe-card{color:#f3e8cd}}
@media(max-width:600px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recipe-card-copy{padding:10px;gap:6px}.recipe-card-copy strong{font-size:14px}.recipe-card-copy>span{font-size:11px}.recipe-poster{aspect-ratio:4/5}.recipe-filter-row{gap:5px}.recipe-filter-row button{font-size:12px;padding:6px 9px}.recipe-detail-content{padding:18px}.recipe-title-row{flex-wrap:wrap}.recipe-detail-cover{height:190px}#recipe-detail,#recipe-editor{width:100vw;max-width:100vw;max-height:100dvh;border-radius:0}.bottom-nav{gap:2px}.bottom-nav button{font-size:11px;padding-left:2px;padding-right:2px}.bottom-nav button:nth-child(2){flex:1.2}}
.recipe-prose h1{font-size:23px;color:inherit!important;letter-spacing:-.3px;margin:24px 0 12px}.recipe-prose table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto;white-space:normal}.recipe-prose td,.recipe-prose th{padding:7px;border:1px solid var(--line)}
.recipe-card-copy>span:not(.recipe-card-tags){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recipe-tools{gap:8px;margin-bottom:8px}.recipe-tools summary{min-height:30px}.bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.bottom-nav button{min-width:0;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;gap:3px;padding:8px 5px;line-height:1.2}.bottom-nav button>span:first-child{font-size:19px;margin:0}.bottom-nav button>span:last-child{white-space:nowrap;font-size:12px}.bottom-nav .badge{font-size:10px;padding:1px 3px}@media(max-width:600px){.bottom-nav{padding:5px;gap:2px}.bottom-nav button>span:last-child{font-size:10px}.bottom-nav button{min-height:56px}.recipe-heading h1{font-size:32px}}
