.vendor-profile-form{display:grid;gap:15px;padding:20px;max-height:calc(100dvh - 92px);overflow:auto;overscroll-behavior:contain}.vendor-profile-form>p{margin:0;color:#999;line-height:1.55}.vendor-profile-form label{display:grid;gap:7px;color:#bbb;font-size:.8rem;font-weight:800;letter-spacing:.04em}.vendor-profile-form label>span{color:#777;font-weight:600;letter-spacing:0}.vendor-profile-form input,.vendor-profile-form textarea{width:100%;min-width:0;border:1px solid #3b3b3b;border-radius:10px;background:#080808;color:#fff;padding:12px;font:inherit;font-size:1rem;letter-spacing:0}.vendor-profile-form input{min-height:49px}.vendor-profile-form textarea{resize:vertical}.vendor-profile-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vendor-profile-slug{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;border:1px solid #3b3b3b;border-radius:10px;background:#080808;overflow:hidden}.vendor-profile-slug span{padding-left:12px;color:#777;font-size:.83rem;white-space:nowrap}.vendor-profile-slug input{border:0;border-radius:0;padding-left:4px}.vendor-profile-form fieldset{display:grid;gap:10px;margin:0;padding:15px;border:1px solid #303030;border-radius:11px}.vendor-profile-form legend{padding:0 6px;color:#ff7586;font-size:.78rem;font-weight:900;letter-spacing:.08em}.vendor-profile-form fieldset label{display:flex;align-items:flex-start;gap:10px;font-size:.92rem;font-weight:650;letter-spacing:0}.vendor-profile-form fieldset input{width:20px;height:20px;min-height:0;flex:0 0 auto}.vendor-profile-actions{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}.vendor-profile-actions a,.vendor-profile-actions button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #3d3d3d;border-radius:10px;background:#171717;color:#fff;padding:0 15px;font:inherit;font-weight:800;text-decoration:none}.vendor-profile-actions .button{border-color:#ff2943;background:#ff2943}.vendor-profile-form>p[id]{min-height:1.3em;color:#7ed8aa;font-weight:700}.vendor-profile-form small{color:#777;letter-spacing:0}.admin-vendor-profile-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px}.admin-vendor-profile-card section{min-width:0}.admin-vendor-profile-card strong,.admin-vendor-profile-card span,.admin-vendor-profile-card small{display:block}.admin-vendor-profile-card span{overflow-wrap:anywhere}.admin-vendor-profile-controls{display:flex;align-items:center;gap:8px}.admin-vendor-profile-controls input{width:72px;min-height:40px;border:1px solid #3a3a3a;border-radius:8px;background:#090909;color:#fff;padding:0 9px}.admin-vendor-profile-controls button{min-height:40px;border:1px solid #356b4c;border-radius:8px;background:#10251a;color:#7fe0aa;padding:0 12px;font-weight:800}@media(max-width:650px){.vendor-profile-pair,.vendor-profile-actions{grid-template-columns:1fr}.vendor-profile-slug{grid-template-columns:1fr}.vendor-profile-slug span{padding:10px 12px 0}.vendor-profile-slug input{padding-left:12px}.admin-vendor-profile-card{grid-template-columns:1fr}.admin-vendor-profile-controls{flex-wrap:wrap}}

/* Keep privacy controls compact despite the app's global input and label rules. */
.vendor-profile-form fieldset{gap:8px;margin-top:4px;padding:14px;border-radius:13px;background:#0b0b0b}
.vendor-profile-form fieldset label{display:grid!important;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:11px;margin:0!important;padding:12px;border:1px solid #292929;border-radius:10px;background:#111;color:#d1d1d1;font-size:.92rem;font-weight:700;line-height:1.35;letter-spacing:0;text-transform:none}
.vendor-profile-form fieldset input[type="checkbox"]{-webkit-appearance:none!important;appearance:none!important;display:grid!important;place-content:center;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;margin:0!important;padding:0!important;border:2px solid #686868!important;border-radius:7px!important;background:#080808!important;box-shadow:none!important;cursor:pointer}
.vendor-profile-form fieldset input[type="checkbox"]:checked{border-color:#ff2943!important;background:#ff2943!important}
.vendor-profile-form fieldset input[type="checkbox"]:checked:after{content:"✓";color:#fff;font-size:17px;font-weight:950;line-height:1}
.vendor-profile-form fieldset input[type="checkbox"]:focus-visible{outline:3px solid rgba(255,41,67,.3);outline-offset:3px}
.vendor-profile-form>p[id]{margin:0;padding:0 2px;font-size:.9rem;text-transform:none;letter-spacing:0}
@media(max-width:650px){.vendor-profile-form{padding:16px;gap:13px}.vendor-profile-form fieldset{padding:11px}.vendor-profile-form fieldset label{padding:11px}.vendor-profile-actions .button{width:100%}}

.vendor-profile-form *{box-sizing:border-box}.vendor-profile-form>label,.vendor-profile-form .vendor-profile-pair>label{margin:0;text-transform:none;line-height:1.35}.vendor-profile-form textarea{display:block;width:100%!important;min-height:108px;max-width:none;margin:0}.vendor-profile-form>label>span,.vendor-profile-form .vendor-profile-pair>label>span{display:inline;color:#777;font-size:.78rem;text-transform:none}.vendor-profile-form input[type="file"]{display:block;height:auto;min-height:52px;padding:12px}.vendor-profile-form>p:first-child{font-size:1rem;text-transform:none;letter-spacing:0}.vendor-profile-form fieldset label{width:100%}.vendor-profile-actions{margin-top:2px}
@media(max-width:650px){#vendor-profile-dialog{width:calc(100vw - 20px);max-width:none}.vendor-profile-form textarea{min-height:120px}.vendor-profile-form>p:first-child{font-size:.95rem}.vendor-profile-form label{font-size:.82rem}.vendor-profile-form fieldset label{font-size:.9rem}}
@media (display-mode: standalone) and (max-width: 700px) {
  dialog#vendor-profile-dialog {
    top: calc(env(safe-area-inset-top) + 12px);
    bottom: 12px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-height: calc(100dvh - env(safe-area-inset-top) - 24px) !important;
    overflow: hidden;
  }
  #vendor-profile-dialog .vendor-profile-form {
    max-height: calc(100dvh - env(safe-area-inset-top) - 104px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* Present the public URL as context, not as a second nested input. */
.vendor-profile-slug{display:grid!important;grid-template-columns:1fr!important;gap:7px;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
.vendor-profile-slug span{display:block;padding:0 2px!important;color:#777;font-size:.8rem;font-weight:700;line-height:1.35;letter-spacing:0;text-transform:none;white-space:normal}
.vendor-profile-slug input{width:100%!important;min-height:52px;padding:12px 14px!important;border:1px solid #3b3b3b!important;border-radius:10px!important;background:#080808!important;color:#fff!important}
.vendor-profile-slug input:focus{border-color:#ff5368!important;outline:3px solid rgba(255,41,67,.2);outline-offset:1px}

/* Defend against legacy global form positioning on mobile Safari. */
.vendor-profile-form label .vendor-profile-slug{position:static!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important}
.vendor-profile-form label .vendor-profile-slug span{position:static!important;inset:auto!important;height:auto!important;margin:0!important}
.vendor-profile-form label .vendor-profile-slug input{position:static!important;inset:auto!important;transform:none!important;margin:0!important;box-shadow:none!important}

/* Keep profile moderation compact and readable on phones. */
.admin-vendor-profile-card{align-items:start;padding:18px!important}
.admin-vendor-profile-card section span{margin-top:5px;color:#bbb;font-size:.92rem;line-height:1.4;overflow-wrap:anywhere}
.admin-vendor-profile-card section small{margin-top:5px;color:#888;line-height:1.4}
.admin-vendor-profile-controls{display:grid;grid-template-columns:auto 112px auto;align-items:end;gap:10px}
.admin-vendor-profile-controls label{margin:0!important;text-transform:none!important;letter-spacing:0!important}
.admin-vendor-verified{display:flex!important;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #343434;border-radius:9px;background:#101010;color:#ddd!important;font-size:.84rem!important;font-weight:750!important;white-space:nowrap}
.admin-vendor-verified input[type="checkbox"]{-webkit-appearance:none!important;appearance:none!important;display:grid!important;place-content:center;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;margin:0!important;padding:0!important;border:2px solid #666!important;border-radius:6px!important;background:#080808!important;box-shadow:none!important}
.admin-vendor-verified input[type="checkbox"]:checked{border-color:#49c782!important;background:#49c782!important}
.admin-vendor-verified input[type="checkbox"]:checked:after{content:"✓";color:#07150d;font-size:14px;font-weight:950;line-height:1}
.admin-vendor-number{display:grid!important;gap:5px;color:#888!important;font-size:.7rem!important;font-weight:800!important}
.admin-vendor-number input{width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0 10px!important;text-align:center;font-size:1rem!important}
.admin-vendor-profile-controls button{min-height:44px;padding:0 14px;white-space:nowrap}
@media(max-width:650px){.admin-vendor-profile-card{gap:16px!important}.admin-vendor-profile-controls{grid-template-columns:minmax(0,1fr) 94px}.admin-vendor-profile-controls button{grid-column:1/-1;width:100%}.admin-vendor-verified{white-space:normal}}
