/* Same compact pastel vocabulary as the approved public profile. */
body .palma-profile-page:has(#profile-form){padding-bottom:32px}
.pe-top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:56px;gap:8px}
.pe-top h1{font:500 18px/1.3 var(--font-body);text-align:center;margin:0;color:#213b30}
.pe-top a{display:grid;place-items:center;min-height:44px;color:#235b47;border-radius:10px}
.pe-top a:first-child svg{transform:rotate(180deg)}
.palma-profile-page .pe-top svg,.palma-profile-page .pe-save svg{width:20px;height:20px}
.pe-save{position:sticky;top:64px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 2px;min-height:48px;background:#fff;border-bottom:1px solid #e0e9e4;font:400 12px/1.4 var(--font-body);color:#52675a}
.pe-save a{display:inline-flex;gap:2px;align-items:center;min-height:44px;color:#235b47;text-decoration:none;flex-shrink:0}
.palma-profile-page #profile-status{display:block;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;font:400 12px/1.4 var(--font-body);min-height:0;color:#52675a}
.pe-intro{font:400 14px/1.5 var(--font-body);color:#52675a;margin:14px 4px}
.pe-example-link{display:grid;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:56px;margin:0 0 12px;padding:9px 12px;border:1px solid #d3e0ec;border-radius:12px;background:#eef4fb;color:#234f68;text-decoration:none}
.pe-example-link>span:nth-child(2){display:grid;gap:2px;min-width:0}.pe-example-link strong{font:500 13.5px/1.35 var(--font-body)}.pe-example-link small{font:400 11.5px/1.4 var(--font-body);color:#526578}.pe-example-link>svg{width:18px;height:18px}.pe-example-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#ffffffb8}.pe-example-icon svg{width:17px;height:17px}
.pe-example-link:hover{background:#e5eff9}.pe-example-link:focus-visible{outline:2px solid #237355;outline-offset:2px}
.profile-example-page .profile-example-lead{margin:4px 4px 14px;color:#52675a;font:400 13px/1.5 var(--font-body)}
body #profile-form{margin:0}
body #profile-form .profile-public-body{margin:0;gap:12px}
body #profile-form h2{margin-bottom:12px}
#profile-form input,#profile-form select,#profile-form textarea{font:400 14.4px/1.45 var(--font-body);color:#213b30;background:#fff;border:1px solid #c6d5cd;border-radius:10px;padding:10px 12px;width:100%;min-height:44px;min-width:0;box-shadow:none}
#profile-form :is(input,select,textarea,button):focus-visible,.pe-editor:focus-within{outline:2px solid #237355;outline-offset:2px}
#profile-form input[type=checkbox]{width:19px;height:19px;min-height:19px;padding:0;flex-shrink:0;accent-color:#237355}
#profile-form [hidden],.palma-profile-page [hidden]{display:none!important}
#profile-form button{font-family:var(--font-body);cursor:pointer;touch-action:manipulation;box-shadow:none}
.pe-field{display:grid;gap:5px;font:400 13px/1.4 var(--font-body);margin:0 0 12px;color:#355343;min-width:0}
.pe-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pe-person{display:flex;gap:14px;align-items:center;margin-bottom:16px}
.pe-person strong{font:500 16px/1.3 var(--font-body)}
.pe-person small{display:block;font:400 12px/1.4 var(--font-body);color:#52675a;margin-top:4px}
.pe-avatar{position:relative;width:76px;height:76px;padding:0;border:0;border-radius:16px;background:white;flex-shrink:0;color:#235b47}
.pe-avatar img{display:block;object-fit:cover;width:100%;height:100%;border-radius:16px}
.pe-avatar>span{position:absolute;bottom:-3px;right:-3px;background:white;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;border:2px solid #eaf5ef}
.pe-avatar svg{width:17px;height:17px}
#profile-form .pe-text-action{background:none;border:0;color:#476356;font-size:12px;min-height:44px;padding:0;text-decoration:none}
.pe-check{display:flex;align-items:center;gap:9px;min-height:44px;font:400 14px/1.4 var(--font-body);cursor:pointer}
#profile-form .pe-hint{font:400 13px/1.45 var(--font-body);color:#52675a;margin:0 0 12px}
#profile-form .pe-file-note{font-size:12px;margin:10px 0 0}
.pe-types{border:0;padding:0;margin:14px 0 0;min-width:0}
.pe-types legend{font:400 13px/1.4 var(--font-body);margin-bottom:8px}
.pe-choices{display:flex;flex-wrap:wrap;gap:8px}
.pe-choices label{position:relative;cursor:pointer}
#profile-form .pe-choices input{position:absolute;opacity:0;width:1px;height:1px}
.pe-choices span{display:flex;align-items:center;gap:5px;min-height:44px;padding:8px 10px;border-radius:10px;background:#ffffffa6;border:1px solid #bacfc2;font:400 12px/1.3 var(--font-body)}
.pe-choices input:checked+span{background:#fff;border-color:#387b5b;color:#235b47}
.pe-choices input:checked+span::before{content:'✓';font-weight:600}
.pe-choices input:focus-visible+span{outline:2px solid #237355;outline-offset:2px}
#profile-form .pe-video{width:100%;aspect-ratio:16/9;border:1px dashed #7da58d;border-radius:12px;background:#ffffff70;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#285c44;margin-bottom:10px;font-size:12.6px}
.pe-video svg{width:28px;height:28px}
#pe-video-result video{width:100%;aspect-ratio:16/9;object-fit:contain;background:#20362c;border-radius:12px}
#profile-form .pe-add{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;min-height:44px;border:1px solid #b9cebf;background:#ffffffa8;color:#285c44;border-radius:10px;font-size:12.6px;margin-top:12px;padding:10px}
.pe-add svg{width:18px;height:18px}
.pe-service,.pe-faq-item,.pe-link-item{margin-bottom:10px;background:#ffffffa6;border-radius:12px;overflow:clip}
.pe-service>summary,.pe-faq-item>summary{display:flex;align-items:center;gap:8px;min-height:54px;list-style:none;padding:12px;cursor:pointer;font-size:14px}
.pe-service>summary::-webkit-details-marker,.pe-faq-item>summary::-webkit-details-marker,.pe-area>summary::-webkit-details-marker{display:none}
.pe-service>summary strong{font-size:14px;font-weight:500;flex:1;min-width:0}
.pe-service>summary span{font-size:12px;color:#406654;text-align:right;max-width:43%}
.pe-service>summary svg,.pe-faq-item>summary svg,.pe-area>summary svg{width:18px;height:18px;flex-shrink:0;transform:rotate(90deg)}
.pe-service[open]>summary svg,.pe-faq-item[open]>summary svg,.pe-area[open]>summary svg{transform:rotate(-90deg)}
.pe-service-body,.pe-faq-body,.pe-link-item{padding:0 12px 12px}
.pe-faq-item>summary span{flex:1;min-width:0;overflow-wrap:anywhere}
#profile-form .pe-price-type{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
#profile-form .pe-price-type button{min-height:44px;font-size:12.6px;border:1px solid #becfc3;border-radius:9px;background:white;color:#345544}
#profile-form .pe-price-type button[aria-pressed=true]{border-color:#377b5c;background:#eaf5ef;font-weight:500}
.pe-price-line{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}
.pe-price-line .pe-check{white-space:nowrap}
.pe-price-caption{font:400 12px/1.5 var(--font-body);margin:2px 0 12px;color:#44614f}
#profile-form .pe-delete{display:flex;gap:6px;align-items:center;justify-content:flex-end;min-height:44px;padding:8px 0;border:0;background:none;color:#95535b;font-size:12px;margin-left:auto}
.pe-delete svg{width:17px;height:17px}
.pe-area{border-top:1px solid #8f682c28}
.pe-area>summary{display:flex;align-items:center;gap:8px;min-height:48px;list-style:none;cursor:pointer;font-size:14px}
.pe-area>summary>span{margin-left:auto;font-size:12px;color:#705e3c}
.pe-area-list{padding-bottom:8px}
.pe-editor{background:white;border:1px solid #bfd1c5;border-radius:12px}
.pe-toolbar{position:sticky;top:130px;z-index:3;display:flex;gap:8px;padding:4px 8px;background:#f8fcf9;border-bottom:1px solid #e0e9e4;border-radius:12px 12px 0 0}
#profile-form .pe-toolbar button{min-width:44px;height:44px;padding:4px;border:0;border-radius:8px;background:transparent;color:#355744;font-size:calc(20px / 1.5)}
#profile-form .pe-toolbar button[aria-pressed=true]{background:#dcefe3}
.pe-editor .tiptap{padding:12px;min-height:180px;outline:none;font:400 16px/1.55 var(--font-body);overflow-wrap:anywhere}
.pe-editor .tiptap p{font:inherit;margin:0 0 10px}
.pe-editor .tiptap :is(ul,ol){padding-left:22px;margin:8px 0}
.pe-editor .tiptap li{font:inherit;margin:5px 0}
.pe-editor .tiptap li p{margin:0}
#profile-form :is(input,select,textarea,.tiptap){scroll-margin-top:200px;scroll-margin-bottom:100px}
.pe-link-item{padding:12px}
#profile-form textarea{resize:vertical;min-height:110px}
.pe-gallery-item{position:relative;display:inline-block;margin:0 8px 8px 0}
.pe-gallery-item img{width:100px;height:100px;object-fit:cover;border-radius:10px}
.pe-gallery-item button{position:absolute;top:0;right:0;width:44px;height:44px;border:0;background:#fff;color:#85505a;border-radius:10px;font-size:20px}
.pe-toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:540px;z-index:80;padding:10px 14px;border-radius:12px;background:#213b30;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px;font:400 14px/1.4 var(--font-body)}
.pe-toast button{min-height:44px;border:0;border-radius:8px;background:#fff;color:#235b47;padding:8px 12px;font:inherit}
body .palma-profile-page:has(#profile-form)~footer{display:none}
@media(min-width:768px){#profile-form .profile-public-body{max-width:660px;margin-inline:auto!important}.pe-top,.pe-save,.pe-intro{max-width:660px;margin-inline:auto}}
@media(prefers-reduced-motion:reduce){.palma-profile-page *,html{scroll-behavior:auto!important}}
@media(max-height:500px){.pe-save{position:static}.pe-toolbar{top:64px}}
.palma-profile-page .pe-save button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:6px;border:0;border-radius:8px;background:transparent;color:#235b47;font:400 13px/1.4 var(--font-body)}
.palma-profile-page .pe-save svg{width:19px;height:19px;flex:none}
.palma-profile-page #profile-status.error{color:#943d47}
.palma-profile-page #profile-savebar{bottom:auto;left:auto;right:auto;box-shadow:none;flex-wrap:wrap}
.palma-profile-page .pe-save #profile-status{flex:1;min-width:110px}
.palma-profile-page [hidden]{display:none!important}
.palma-profile-page .pe-save{top:64px}
.palma-profile-page .pe-video,.palma-profile-page .pe-upload{position:relative;cursor:pointer}
#profile-form .pe-file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.pe-video:focus-within,.pe-upload:focus-within{outline:2px solid #237355;outline-offset:2px}
.palma-profile-page .profile-form-footnote{font:400 12px/1.5 var(--font-body);margin:16px 4px;color:#52675a}
.palma-profile-page .profile-video{width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:12px;background:#1e382c}
.palma-profile-page .profile-gallery-preview{width:100%;height:auto;max-height:240px;object-fit:contain;border-radius:10px;margin-bottom:12px}
.palma-profile-page .pe-avatar>svg{width:32px;height:32px}
.palma-profile-page #profile-form .pe-price-type button{padding:8px;min-height:48px;line-height:1.35}
.pe-confirm{padding:22px;border:0;border-radius:18px;width:calc(100% - 32px);max-width:380px;color:#213b30;font:400 16px/1.5 var(--font-body)}
.pe-confirm::backdrop{background:#11291e66}.pe-confirm h2{font:500 19px/1.35 var(--font-body);margin:0 0 20px}.pe-confirm>div{display:flex;gap:10px}.pe-confirm button{flex:1;min-height:44px;font:500 14px/1.4 var(--font-body);padding:10px;border-radius:10px;border:1px solid #bbcec1;background:#f3f8f4;color:#235b47}.pe-confirm [data-confirm]{background:#943d47;color:white;border-color:#943d47}
.palma-profile-page #profile-recovery button{min-height:44px;margin:8px 8px 0 0;padding:8px 12px;border:1px solid #bad1c3;border-radius:10px;background:white;font:400 14px/1.4 var(--font-body);color:#235b47}
.palma-profile-page #profile-validation{position:static;margin:10px 0;padding:12px;border-radius:12px;max-height:none;font:400 13px/1.5 var(--font-body)}
@media(max-height:500px){.palma-profile-page .pe-save{position:static}}
/* Keep native iPhone editing comfortable without disabling page zoom. */
@supports(-webkit-touch-callout:none){#profile-form :is(input,select,textarea):focus{font-size:16px}}

/* Compact profile introduction, matching the current Palma form. */
.palma-profile-page .palma-page-head{margin-bottom:0}
.palma-profile-page .pe-intro{margin:2px auto 4px;font-size:13px}
.palma-profile-page .pe-review-top,.palma-profile-page .pe-review-bottom{max-width:660px;margin:0 auto 12px}
.palma-profile-page .pe-review-controls{display:flex;flex-wrap:wrap;gap:8px}
.palma-profile-page .pe-review-controls .editor-button{min-height:44px;padding:8px;font:400 12px/1.4 var(--font-body)}
.palma-profile-page .pe-review-controls svg{width:16px;height:16px;vertical-align:middle}
.palma-profile-page .pe-save{min-height:28px;padding:4px 2px}
.palma-profile-page [data-review-hint]{margin:5px 0 0;font:400 12px/1.4 var(--font-body);color:#52675a}
.palma-profile-page .pe-review-top{margin-top:8px}
.palma-profile-page .pe-review-bottom{margin-top:12px}
.palma-profile-page .pe-example-link{max-width:660px;margin-inline:auto}
.palma-profile-page .pe-decision{max-width:660px;margin:8px auto 12px;border:1px solid #bad1c3;border-radius:12px;background:#eaf5ef;color:#235b47;padding:10px 12px;font:400 13px/1.45 var(--font-body)}
.palma-profile-page[data-review-state=published] [data-op=submit]:disabled{opacity:1;background:#eaf5ef;color:#235b47;border-color:#bad1c3}
.palma-profile-page[data-review-state=pending] [data-op=submit]:disabled{opacity:1;background:#eef4fb;color:#234f68;border-color:#d3e0ec}

/* I130: actionable form validation, using Palma's form colors. */
.pe-field-error{display:block;color:#a12828;font-size:14px;line-height:1.45;margin-top:6px}.profile-edit-page [aria-invalid=true]{outline:2px solid #bd5555;outline-offset:2px}.profile-validation{scroll-margin-top:170px}.profile-validation ul{margin:8px 0 0;padding-left:22px}.profile-validation li+li{margin-top:6px}.profile-validation a{text-decoration:underline}.profile-edit-page [data-review-hint]{overflow-wrap:anywhere}
