/* Revision 4: compact layout and consistent editors. */
.fudbuc-refresh .fb-page-layout>.fb-sidebar{margin-top:0!important;padding-top:0;align-self:start;top:auto}
.fudbuc-refresh .fb-list-layout>.fb-sidebar{padding-top:28px}
.fudbuc-refresh .container#searcher_main.fudbuc-search-section{padding:20px 0 22px;margin-top:0;margin-bottom:12px}
.fudbuc-search-section #searcher_form{width:100%;max-width:860px;margin:0 auto;float:none}
.fudbuc-search-section .fudbuc-search-label{text-align:center;font-size:23px;margin-bottom:14px}
.fudbuc-search-section .fudbuc-search-line{max-width:none;width:100%}
.fudbuc-refresh .fb-page-layout #searcher_main{margin-top:0}
.fudbuc-header .dropdown-menu>li>a:has(.fb-share-icon){display:flex;align-items:center;gap:13px;min-height:46px;padding:12px 18px}
.fb-share-icon{width:22px;color:var(--fb-red);font-size:16px;text-align:center}
.fb-editor{min-width:0}.fb-editor-heading{margin:0 0 25px}.fb-editor-heading h1{font:400 clamp(30px,3vw,43px)/1.15 Georgia,serif;letter-spacing:-1px;margin:0 0 13px}.fb-editor-heading>p:last-child{color:var(--fb-muted);font-size:14px;line-height:1.8;max-width:650px}
.fb-editor-card,.fb-editor-summary{background:#fffdf9;border:1px solid var(--fb-line);border-radius:16px;overflow:hidden}.fb-editor-card{margin-bottom:20px}.fb-editor-section{padding:28px 30px}.fb-editor-section+.fb-editor-section{border-top:1px solid var(--fb-line)}
.fb-editor h2,.fb-trick-card h2{font:400 26px/1.25 Georgia,serif;margin:0 0 19px}.fb-editor-section h2>span{display:inline-block;font:600 12px system-ui,sans-serif;vertical-align:middle;background:#edf0e6;color:var(--fb-green);border-radius:50%;padding:9px;margin-right:9px}
.fb-field{margin:0 0 20px;min-width:0}.fb-editor label,.fb-photo-editor>label,.fb-avatar-editor>label{display:block;font-size:13px;font-weight:600;margin:0 0 9px}.fb-editor small{display:block;color:var(--fb-muted);font-size:11px;margin-top:7px;line-height:1.7}
.fudbuc-refresh .fb-editor .form-control{width:100%;max-width:100%;float:none;border:1px solid #d8d9cc;border-radius:9px;padding:11px 12px;min-height:45px;height:auto;font:14px/1.5 system-ui,sans-serif;box-sizing:border-box;color:var(--fb-ink);background:#fff}
.fudbuc-refresh .fb-editor textarea.form-control{min-height:110px;resize:vertical}.fb-editor .form-control:focus{outline:2px solid #8b9e82;outline-offset:2px}.fb-editor .form-control:disabled{background:#f2f1eb;color:#64695f}.fb-editor input[type=file]{font-size:12px!important;padding:9px!important}.fb-editor input[type=file]::file-selector-button{border:0;background:#edf0e6;border-radius:5px;padding:6px 9px;color:var(--fb-green);margin-right:8px}
.fb-recipe-edit-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:26px;align-items:start}.fb-fields-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.fudbuc-refresh .fb-photo-editor img{width:100%;height:230px;object-fit:contain;background:#f1f0e9;border:1px solid var(--fb-line);border-radius:12px;margin-bottom:16px}
.fb-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:21px 30px;border-top:1px solid var(--fb-line);background:#faf9f3}.fb-editor-footer>a{font-size:13px;color:var(--fb-muted)}
.fudbuc-refresh .fb-editor .fb-ingredient-row,.fudbuc-refresh .fb-editor .fb-step-row{display:grid;gap:9px;align-items:start;margin:0 0 12px;padding:0;float:none;width:100%;position:relative}
.fudbuc-refresh .fb-editor .fb-ingredient-row{grid-template-columns:85px 80px minmax(0,1fr) 42px}.fb-ingredient-labels{display:grid;grid-template-columns:85px 80px minmax(0,1fr) 42px;gap:9px;font-size:11px;color:var(--fb-muted);margin:18px 0 9px}.fudbuc-refresh .fb-editor .fb-step-row{grid-template-columns:30px minmax(0,1fr) 42px;counter-increment:fb-step}
#steps{counter-reset:fb-step}.fb-step-marker:before{content:counter(fb-step);display:grid;place-items:center;height:30px;width:30px;border-radius:50%;background:#edf0e6;color:var(--fb-green);font-size:12px;margin-top:7px}
.fb-remove-row{display:grid;place-items:center;min-height:42px;min-width:42px;border:1px solid #e4dbd1;border-radius:9px;color:#a24c39;background:#faf5ef;font-size:23px;line-height:1;cursor:pointer}.fb-remove-row:hover{background:#f3dfd4}.fb-remove-row:focus-visible{outline:2px solid #a24c39;outline-offset:2px}.fb-add-row{margin-top:8px!important}.fb-add-row>span{font-size:19px;margin-right:7px}
.fb-profile-edit-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:35px;padding:30px}.fb-avatar-editor{text-align:center;border-right:1px solid var(--fb-line);padding-right:28px}.fudbuc-refresh .fb-avatar-editor img{display:block;width:150px;height:150px;object-fit:cover;border:5px solid #edf0e6;border-radius:50%;margin:0 auto 22px}.fb-avatar-editor h2{font-size:23px}.fb-avatar-editor .fb-muted{font-size:12px}.fb-avatar-editor label{text-align:left;margin-top:22px}
.fb-editor-summary{padding:25px 30px}.fb-mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.fb-mini-stats>span{font-size:12px;color:var(--fb-muted)}.fb-mini-stats strong{display:block;font-size:23px;color:var(--fb-green);margin-bottom:5px}.fb-danger-zone{margin:24px 0;font-size:12px;color:var(--fb-muted)}.fb-danger-zone summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}.fb-danger-zone[open]>form{margin-top:18px}
.fb-trick-card{background:#fffdf9;border:1px solid var(--fb-line);border-radius:16px;overflow:hidden}.fb-trick-visual{padding:0 28px}.fb-trick-visual img{display:block;width:100%;height:340px;object-fit:contain;background:#f2f1e9;border-radius:12px}.fb-trick-note{background:#f0f2e9;border-radius:12px;padding:22px;margin-top:25px}.fb-trick-note h2{font-size:23px}.fb-trick-note li{padding:7px 0;line-height:1.8}
@media(max-width:1150px){.fb-profile-edit-grid{grid-template-columns:190px minmax(0,1fr);gap:22px;padding:25px}.fb-avatar-editor{padding-right:20px}.fb-recipe-edit-grid{grid-template-columns:1fr}.fudbuc-refresh .fb-photo-editor img{height:260px}}
@media(max-width:767px){.fb-editor-section{padding:23px 18px}.fb-editor-footer{padding:20px 18px;flex-wrap:wrap}.fb-editor-footer .btn{flex:1}.fb-profile-edit-grid{grid-template-columns:1fr;padding:23px 18px}.fb-avatar-editor{border-right:0;border-bottom:1px solid var(--fb-line);padding:0 0 25px}.fb-avatar-editor input{max-width:330px!important;margin:auto}.fb-avatar-editor>label{text-align:center}.fb-editor-summary{padding:23px 18px}.fb-fields-pair{gap:10px}.fb-ingredient-labels{display:none}.fudbuc-refresh .fb-editor .fb-ingredient-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px;background:#f5f4ed;border-radius:12px;padding:12px;margin-bottom:15px}.fb-ingredient-row>input:nth-child(3){grid-row:2;grid-column:1/3}.fb-ingredient-row>.fb-remove-row{grid-column:3;grid-row:1/3;align-self:center}.fudbuc-refresh .fb-editor .fb-step-row{grid-template-columns:24px minmax(0,1fr) 36px;gap:7px}.fb-step-marker:before{width:24px;height:24px}.fb-step-row .fb-remove-row{min-width:36px;min-height:40px}.fb-trick-visual{padding:0 16px}.fb-trick-visual img{height:240px}.fudbuc-refresh .container#searcher_main.fudbuc-search-section{padding:15px 0;margin-bottom:12px}.fudbuc-search-section .fudbuc-search-label{font-size:22px}}
/* Bootstrap adds clearfix pseudo-elements; they must not become grid cells. */
.fb-ingredient-row::before,.fb-ingredient-row::after,.fb-step-row::before,.fb-step-row::after{display:none!important;content:none!important}
.fudbuc-refresh .fb-editor #steps .fb-step-row textarea.form-control{min-width:0;max-width:100%;width:100%;display:block;margin:0;padding:11px 12px}
.fb-ingredient-row>ul,.fb-step-row>ul{grid-column:1/-1;color:#a24c39;font-size:12px;margin:0;padding-left:18px}
