/* Scoped adaptation of the approved HTML wizard; official OOmi assets retained. */
#dialog.profile-dialog{width:min(760px,calc(100vw - 24px));background:#fff8ee;color:#352116;border:1px solid #e5d8c8;border-radius:30px;padding:20px;box-shadow:0 20px 70px #35211626}
.profile-dialog #modal>h2,.profile-dialog #modal>p:first-of-type{display:none}
.profile-wizard{max-width:690px;margin:10px auto 24px;padding:26px;border:1px solid #e8ddcf;border-radius:28px;background:#fffaf4;box-shadow:0 9px 28px #6b4b2410}
.profile-wizard *{box-sizing:border-box}.profile-wizard .profile-brand{display:block;width:148px;height:auto;margin:0 0 28px}
.profile-wizard h2{font-size:clamp(25px,4vw,32px);letter-spacing:-1px;line-height:1.12;margin:0 0 12px;color:#291b12}.profile-intro{font-size:14px;color:#706357;line-height:1.5;margin-bottom:22px}
.profile-steps{display:flex;gap:10px;justify-content:center;margin-bottom:26px}.profile-steps button{width:37px;height:37px;min-height:37px;padding:0;border:1px solid #ddd0c1;background:#fffaf3;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#7b6e60}.profile-steps button.active{color:white;background:#547c36;border-color:#547c36}.profile-line{width:46px;height:2px;background:#e5dbd1;align-self:center}
.profile-panel{min-width:0;border:1px solid #ecdfd0;padding:22px;border-radius:23px;background:#fffdf9;box-shadow:0 4px 12px #6b4b2409;margin:0}.profile-panel[hidden]{display:none!important}.profile-panel-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px}.profile-panel-title>span{background:#547c36;color:white;width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:grid;place-items:center;font-weight:750}.profile-panel h3{font-size:21px;line-height:1.15;margin:0 0 6px;color:#291b12}.profile-panel-title p{font-size:14px;color:#706357;margin:0}
.profile-wizard label{font-size:14px;font-weight:650;margin:13px 0;display:block}.profile-wizard input:not([type=checkbox]):not([type=radio]),.profile-wizard textarea,.profile-wizard select{width:100%;font:inherit;font-size:16px;color:#352116;border:1px solid #dfd7ce;background:#fffdf9;border-radius:14px;padding:14px 15px;margin:7px 0 5px;min-width:0}.profile-wizard textarea{min-height:85px;resize:vertical}.profile-wizard small{font-size:12px;color:#706357;font-weight:400}.profile-wizard input[type=file]{font-size:13px!important}
.profile-choices{display:flex;gap:12px;margin-bottom:18px}.profile-choices label{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;background:#fffbf7;border:1px solid #e3d9ce;border-radius:14px;padding:12px 8px;font-size:14px;cursor:pointer}.profile-choices label:has(input:checked){background:#ecf3e5;border-color:#547c36}.profile-choices input{width:16px;height:16px;accent-color:#547c36}.profile-choices svg{width:20px;height:20px}
.profile-chips{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 20px}.profile-chips label{position:relative;margin:0;cursor:pointer}.profile-chips label input{position:absolute;opacity:0;width:1px;height:1px}.profile-chips label span,.profile-chips button{display:block;border:1px solid #e3ded7;background:#f7f3ee;border-radius:30px;padding:10px 14px;font-size:13px;font-weight:500;min-height:42px}.profile-chips label:has(input:checked) span,.profile-chips button{background:#dfead5;border-color:#91a680;color:#315528}.profile-chips label:has(input:focus-visible) span{outline:2px solid #cc6545;outline-offset:3px}.profile-add{display:flex;gap:8px;align-items:center}.profile-add input{flex:1;width:0!important}.profile-add button{border-radius:24px;white-space:nowrap;font-size:14px;padding:12px;background:#f3ede5}
.profile-consent{display:flex!important;gap:10px;align-items:flex-start;font-weight:400!important;line-height:1.4}.profile-consent input{width:18px;height:18px;flex:0 0 18px;accent-color:#547c36}.profile-note{background:#f1f6ec;color:#415a35;border-radius:16px;padding:15px;margin:16px 0;font-size:13px;line-height:1.5}
#profilePhoto{display:flex;align-items:center;gap:12px}#profilePhoto img,.profile-preview-person img{width:70px;height:70px;border-radius:18px;object-fit:cover}#profilePhoto button{font-size:13px;color:#a34c31;background:#f8eee6;border-radius:20px}
#profilePreview{padding:18px;border:1px solid #e5d8c8;border-radius:20px;margin-top:20px;background:#faf3e8;overflow-wrap:anywhere}#profilePreview p{font-size:14px;white-space:pre-wrap}#profilePreview details{font-size:14px}.profile-small{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#756350}.profile-preview-person{display:flex;gap:12px;align-items:center;margin-top:14px}.profile-preview-person p{margin:5px 0}.profile-initial{background:#dfead5;border-radius:50%;width:54px;height:54px;display:grid;place-items:center;font-weight:700}
.profile-wizard-actions{display:flex;gap:10px;align-items:center;margin-top:20px}.profile-wizard-actions button{border-radius:30px;padding:15px 20px;min-height:50px}.profile-wizard-actions #profileBack{background:#f5eee4;color:#513a29}.profile-wizard-actions #profileNext,.profile-wizard-actions #profileSave{background:#547c36;color:white;font-weight:750;flex:1;line-height:1.3}.profile-wizard-actions [hidden]{display:none!important}#profileError{font-size:14px;color:#8a4227;line-height:1.4}.profile-wizard button:disabled{opacity:.6;cursor:wait}.profile-wizard :focus-visible{outline:2px solid #bd6549;outline-offset:3px}
@media(max-width:600px){#dialog.profile-dialog{padding:12px;max-height:94dvh;width:calc(100vw - 16px)}.profile-wizard{padding:15px;margin:4px auto 20px;border-radius:24px}.profile-panel{padding:16px}.profile-choices{gap:8px}.profile-choices label{font-size:13px}.profile-wizard-actions{flex-wrap:wrap}.profile-wizard-actions #profileSave{flex-basis:100%}.profile-wizard h2{font-size:28px}.profile-wizard .profile-brand{width:130px;margin-bottom:24px}}

body.universe-app #dialog .u-profile-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 16px 0 20px;
  border: 1px solid #da9872;
  border-radius: 18px;
  background: #fff1e5;
  color: #48251a;
}
body.universe-app #dialog .u-profile-photos h4 { margin: 0 0 5px; font-size: 1.05rem; color: inherit; }
body.universe-app #dialog .u-profile-photos p { margin: 0; color: inherit; line-height: 1.4; }
html[data-theme] body.universe-app #dialog .u-profile-photos button {
  min-height: 44px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid #ad5328 !important;
  border-radius: 16px;
  background: #ffbd88 !important;
  color: #321a12 !important;
  font-weight: 700;
}
html[data-theme="dark"] body.universe-app #dialog .u-profile-photos { background: #382822; color: #ffefdf; }
body.universe-app #dialog .u-profile-professional {
  min-width: 0;
  padding: 4px 14px 12px;
  margin: 20px 0;
  border: 1px solid #b2a297;
  border-radius: 16px;
}
body.universe-app #dialog .u-profile-professional legend { padding: 0 6px; font-weight: 650; }
@media (max-width:640px) {
  body.universe-app #dialog .u-profile-photos { grid-template-columns: 1fr; }
  body.universe-app #dialog .u-profile-photos button { width: 100%; white-space: normal; }
}
