.pp-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;margin:20px 0}.pp-filters label{display:flex;flex-direction:column;gap:8px;margin:0;width:240px;max-width:100%}.pp-filters label:first-child{width:360px}.pp-filters input,.pp-filters select{width:100%;min-width:0}.pp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),520px));gap:20px;align-items:start}.pp-group{margin:28px 0}.pp-group>h2{font-size:20px;margin:0 0 14px}.pp-group>h2 small{color:var(--muted);font-size:14px;margin-left:8px}.pp-card{padding:22px}.pp-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.pp-card h3{margin:0;overflow-wrap:anywhere}.pp-actions{display:flex;gap:8px;flex-wrap:wrap}.pp-facts{display:grid;gap:12px;margin:20px 0}.pp-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:10px}.pp-facts dt{color:var(--muted)}.pp-facts dd{margin:0;font-weight:650;text-align:right}.pp-tags{display:flex;gap:8px;flex-wrap:wrap}.pp-tag{padding:5px 10px;border-radius:8px;background:var(--surface-soft,var(--line));font-size:12px}.pp-unchecked{color:var(--muted)}.pp-editor{display:grid;gap:24px;min-width:0}.pp-editor>section{display:grid;gap:16px;min-width:0;padding-top:20px;border-top:1px solid var(--line)}.pp-editor h3,.pp-editor p{margin:0}.pp-editor label{max-width:100%;min-width:0}.pp-editor .form-grid{margin:0}.pp-allergens{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pp-allergens .check-row,.pp-editor>.check-row{margin:0}.pp-preview{display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;padding:16px}.pp-preview ul{margin:0;padding-left:20px}.pp-category-list{margin-top:20px}.pp-category-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.pp-category-list small{display:block;margin-top:4px}.pp-detail h3{margin:26px 0 14px}.pp-detail-parts>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.pp-detail-parts strong{overflow-wrap:anywhere;min-width:0}.pp-detail-parts span{white-space:nowrap}@media(max-width:600px){.pp-filters{gap:12px}.pp-filters label,.pp-filters label:first-child{width:100%}.pp-card{padding:18px}.pp-allergens{grid-template-columns:1fr}.pp-facts>div{gap:14px}.pp-editor{gap:20px}.pp-grid{grid-template-columns:1fr}.pp-card header{flex-direction:column}}
.pp-card-photo{display:block;width:100%;height:180px;object-fit:cover;border-radius:10px;margin:16px 0}.pp-edit-photo{display:block;max-width:100%;width:220px;max-height:180px;object-fit:contain;border-radius:10px}.pp-detail-photo{display:block;width:100%;max-height:340px;object-fit:contain;border-radius:12px;margin-bottom:18px}.pp-description{margin:14px 0 0;overflow-wrap:anywhere}.pp-card header>div:first-child{min-width:0}.pp-card header small{display:block;margin-top:6px}.pp-detail .pp-facts dd{overflow-wrap:anywhere;max-width:65%}.pp-editor textarea{width:100%;min-width:0}.pp-editor [type=file]{max-width:100%;min-width:0}

.pp-card header small,.pp-detail,.pp-detail .pre-wrap{overflow-wrap:anywhere}.pp-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

#app .pp-card{padding:22px}.pp-actions button{min-width:0;white-space:normal;overflow-wrap:anywhere}@media(max-width:600px){#app .pp-card{padding:18px}.pp-card .pp-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pp-actions [data-pp-delete]{grid-column:1/-1}}

/* Compact allergen choices with a full-row touch target. */
#editor .pp-editor .pp-allergens{gap:4px 16px;align-content:start}
#editor .pp-editor .pp-allergens>.check-row{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;margin:0;padding:6px 0;box-sizing:border-box;cursor:pointer}
#editor .pp-editor .pp-allergens>.check-row>input[type=checkbox]{width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;max-height:22px;flex:0 0 22px;margin:0;padding:0;box-sizing:border-box;align-self:center}
#editor .pp-editor .pp-allergens>.check-row>span{min-width:0;line-height:1.4;overflow-wrap:anywhere}
#editor .pp-editor .pp-allergens>.check-row:focus-within{outline:2px solid var(--petrol);outline-offset:2px;border-radius:6px}

/* Keep the allergen heading close to its choices. */
#editor .pp-editor h4:has(+.pp-allergens){margin:0}

/* The review confirmation is distinct from individual allergens. */
#editor .pp-editor .check-row:has(>input[name=allergens_reviewed]){display:flex;flex-direction:row;align-items:center;gap:12px;margin:4px 0 0;padding:12px 14px;min-height:52px;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft,var(--paper));font-weight:650;cursor:pointer}
#editor .pp-editor .check-row>input[name=allergens_reviewed]{width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;max-height:22px;flex:0 0 22px;margin:0;padding:0;box-sizing:border-box}
#editor .pp-editor .check-row:has(>input[name=allergens_reviewed]):focus-within{outline:2px solid var(--petrol);outline-offset:2px}
