/* Admin page copy editor: scoped so recipe and profile forms keep their layout. */
#pageEditor{width:100%;min-width:0;padding-bottom:32px}
#pageEditor>h2{font-size:clamp(24px,4vw,32px);line-height:1.25;margin:4px 0 18px;overflow-wrap:anywhere}
#pageEditor>select.adminInput{display:block;width:100%;max-width:100%;min-height:48px;margin:0 0 16px;padding:12px 14px;font-size:16px;box-sizing:border-box}
#pageEditor>.p{line-height:1.65;margin:0 0 24px;max-width:75ch}
#pageEditor>.card{display:block;min-width:0;padding:24px;margin:0 0 24px;border:1px solid var(--line,#e5d9cb);border-radius:20px;background:var(--card,#fff)}
#pageEditor>.card>b:first-child{display:block;font-size:18px;line-height:1.45;margin-bottom:18px;overflow-wrap:anywhere}
#pageEditor label{display:flex;flex-direction:column;align-items:stretch;gap:9px;width:100%;min-width:0;box-sizing:border-box;font-size:14px;font-weight:650;line-height:1.5;color:var(--text,#30291f);margin:20px 0 0;white-space:normal;overflow-wrap:anywhere}
#pageEditor label:has(>input[type=checkbox]){flex-direction:row;align-items:center;gap:12px;margin:0 0 18px;padding:12px 14px;background:var(--bg,#f8efe6);border-radius:12px;font-weight:550;cursor:pointer}
#pageEditor input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:0;accent-color:var(--brand2,#b95535)}
#pageEditor textarea.adminInput{display:block;width:100%;max-width:100%;min-width:0;min-height:100px;box-sizing:border-box;padding:13px 14px;margin:0;border:1px solid var(--line,#d9cebf);border-radius:12px;background:#fff;color:var(--text,#30291f);font-family:inherit;font-size:16px;font-weight:400;line-height:1.6;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
#pageEditor textarea:focus-visible,#pageEditor select:focus-visible,#pageEditor button:focus-visible{outline:3px solid rgba(185,85,53,.3);outline-offset:3px}
#pageEditor input[type=file]{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:10px 0;font-size:14px;font-weight:400}
#pageEditor input[type=file]::file-selector-button{border:1px solid var(--line,#d9cebf);border-radius:10px;background:var(--bg,#f8efe6);padding:10px 12px;margin-right:12px;font:inherit;cursor:pointer}
#pageEditor>.card>.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;margin:0 10px 8px 0;white-space:normal;line-height:1.4}
#pageEditor>.card>label+.btn{margin-top:18px}
#pageEditor>.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:12px 0 0;box-sizing:border-box;white-space:normal}
#pageEditor>.card>.p{line-height:1.6;margin-top:16px}
@media(min-width:768px){#pageEditor{max-width:900px;margin-inline:auto}#pageEditor>.card{padding:28px}#pageEditor textarea.adminInput{min-height:110px}}
@media(max-width:480px){#pageEditor>.card{padding:18px 16px;margin-bottom:18px;border-radius:16px}#pageEditor>.card>.btn{width:100%;margin:0 0 10px}#pageEditor>.card>label+.btn{margin-top:16px}#pageEditor label{margin-top:18px}#pageEditor>.card>b:first-child{font-size:17px}}

/* Dedicated editor opened by “Modifica testi del profilo”. */
#profileCopy{width:100%;min-width:0;max-width:900px;margin-inline:auto;padding-bottom:32px}
#profileCopy>h2{font-size:clamp(24px,4vw,32px);line-height:1.3;margin:4px 0 26px;overflow-wrap:anywhere}
#profileCopy>label.field{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0 0 22px;padding:20px;border:1px solid var(--line,#e5d9cb);border-radius:16px;background:var(--card,#fff);font-size:15px;font-weight:650;line-height:1.5;color:var(--text,#30291f);white-space:normal;overflow-wrap:anywhere}
#profileCopy>label.field>textarea.inputLine{display:block;position:static;width:100%;max-width:100%;min-width:0;min-height:108px;height:auto;margin:0;padding:14px;box-sizing:border-box;border:1px solid var(--line,#d9cebf);border-radius:12px;background:#fff;color:var(--text,#30291f);font-family:inherit;font-size:16px;font-weight:400;line-height:1.65;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
#profileCopy textarea:focus-visible{outline:3px solid rgba(185,85,53,.3);outline-offset:3px}
#profileCopy>.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin:14px 0 0;padding:14px 18px;box-sizing:border-box;white-space:normal;line-height:1.4}
@media(max-width:480px){#profileCopy>label.field{padding:16px;margin-bottom:18px;gap:10px}#profileCopy>label.field>textarea.inputLine{padding:12px;min-height:100px}}
