/* C3.3.3 R2 — public profile status and an owner-only, one-place editor.
   Loaded after original profile styles. No change in account/write permissions. */
.wdp-profile-v3 .wdp-c333-about{display:grid;gap:10px;align-content:start}
.wdp-profile-v3 .wdp-c333-about h3{margin:0 0 3px}
.wdp-profile-v3 .wdp-c333-profile-state{display:inline-flex;align-items:center;gap:8px;justify-self:start;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;line-height:1.2;border:1px solid rgba(39,207,185,.38);background:rgba(23,161,148,.13);color:#83e7d8}
.wdp-profile-v3 .wdp-c333-profile-state:before{content:'';width:8px;height:8px;border-radius:50%;background:#4ce0c1;box-shadow:0 0 0 3px rgba(76,224,193,.13)}
.wdp-profile-v3 .wdp-c333-profile-state.is-private{border-color:rgba(215,173,90,.4);color:#f1ce85;background:rgba(215,173,90,.1)}
.wdp-profile-v3 .wdp-c333-profile-state.is-private:before{background:#e5ba69;box-shadow:0 0 0 3px rgba(229,186,105,.13)}
.wdp-profile-v3 .wdp-c333-privacy-summary{color:var(--subtext,#a3bdc6);font-size:13px;line-height:1.6;margin:0}
.wdp-profile-v3 .wdp-c333-account-fold{margin:16px 0 20px;border:1px solid var(--border,rgba(84,171,188,.3));border-radius:16px;background:var(--surface,#0b2431);overflow:hidden}
.wdp-profile-v3 .wdp-c333-account-fold>summary{cursor:pointer;padding:15px 20px;font-size:13px;font-weight:800;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center}
.wdp-profile-v3 .wdp-c333-account-fold>summary::-webkit-details-marker{display:none}
.wdp-profile-v3 .wdp-c333-account-fold>summary:after{content:'⌄';font-size:21px;color:#39d3d9}
.wdp-profile-v3 .wdp-c333-account-fold[open]>summary:after{transform:rotate(180deg)}
.wdp-profile-v3 .wdp-c333-account-fold .wdp-account-hub{margin:0!important;border:0!important;border-top:1px solid var(--border,rgba(84,171,188,.3))!important;border-radius:0!important;box-shadow:none!important}
.wdp-profile-v3 dialog.wdp-profile-edit-dialog{position:fixed;inset:0;width:min(700px,calc(100vw - 24px));max-width:700px;max-height:min(88dvh,850px);height:auto;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;margin:auto;padding:0!important;border:1px solid rgba(57,188,195,.48)!important;border-radius:20px!important;background:#081d2b!important;color:#eefbfd!important;box-shadow:0 24px 80px rgba(0,0,0,.58)!important;z-index:500!important}
.wdp-profile-v3 dialog.wdp-profile-edit-dialog:not([open]){display:none!important}
.wdp-profile-v3 dialog.wdp-profile-edit-dialog::backdrop{background:rgba(0,9,19,.77);backdrop-filter:blur(5px)}
.wdp-profile-v3 .wdp-c333-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 18px;position:sticky;top:0;z-index:3;background:linear-gradient(120deg,#103449,#081d2b);border-bottom:1px solid rgba(83,172,188,.25)}
.wdp-profile-v3 .wdp-c333-modal-head h2{font-size:clamp(22px,4vw,27px);margin:0 0 5px;color:#f5fcff}
.wdp-profile-v3 .wdp-c333-modal-head p{font-size:12px;line-height:1.6;margin:0;color:#afcad4}
.wdp-profile-v3 .wdp-c333-close{border:1px solid rgba(87,176,195,.45);color:#e7faff;background:#113143;border-radius:12px;font-size:26px;cursor:pointer;width:42px;height:42px;flex:0 0 42px}
.wdp-profile-v3 dialog.wdp-profile-edit-dialog .wdp-form{background:transparent!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:15px!important;border:0!important;border-radius:0!important;padding:18px 24px 26px!important;width:100%!important;margin:0!important;box-sizing:border-box!important}
.wdp-profile-v3 .wdp-c333-edit-fields{border:1px solid rgba(75,157,176,.29);background:rgba(15,45,61,.6);border-radius:15px;padding:16px;display:grid;gap:14px;min-width:0}
.wdp-profile-v3 .wdp-c333-edit-fields h3{color:#f3fcff;font-size:16px;margin:0 0 3px}
.wdp-profile-v3 .wdp-c333-edit-fields>label{min-width:0}
.wdp-profile-v3 .wdp-c333-edit-fields input,.wdp-profile-v3 .wdp-c333-edit-fields select,.wdp-profile-v3 .wdp-c333-edit-fields textarea{width:100%;max-width:100%;box-sizing:border-box}
.wdp-profile-v3 .wdp-c333-media-fold{border:1px solid rgba(75,157,176,.29);border-radius:14px;overflow:hidden;min-width:0}
.wdp-profile-v3 .wdp-c333-media-fold>summary{padding:14px 16px;cursor:pointer;font-weight:800;font-size:13px;color:#9be8e7}
.wdp-profile-v3 .wdp-c333-media-fold>.wdp-note{padding:0 16px;margin:0 0 10px}
.wdp-profile-v3 .wdp-c333-media-fold>.wdp-media-fields{margin:0 12px 12px}
.wdp-profile-v3 dialog.wdp-profile-edit-dialog .wdp-action[type=submit]{position:sticky;bottom:0;z-index:2;min-height:47px;background:#21ced5;border:1px solid #0bbfce;color:#051e2c;font-weight:850}
.wdp-profile-v3 dialog.wdp-profile-edit-dialog .wdp-status{margin:0;font-size:12px}
.wdp-profile-v3 .wdp-c333-close:focus-visible,.wdp-profile-v3 .wdp-c333-account-fold>summary:focus-visible{outline:3px solid #35e4e1;outline-offset:-3px}
html[data-theme=light] .wdp-profile-v3 dialog.wdp-profile-edit-dialog{background:#f8fdfd!important;color:#103343!important}
html[data-theme=light] .wdp-profile-v3 .wdp-c333-modal-head{background:linear-gradient(120deg,#d8f6f4,#f5fdfd)}
html[data-theme=light] .wdp-profile-v3 .wdp-c333-modal-head h2{color:#123746}
html[data-theme=light] .wdp-profile-v3 .wdp-c333-modal-head p{color:#52727d}
html[data-theme=light] .wdp-profile-v3 .wdp-c333-edit-fields{background:#fff;border-color:#c5e4e6}
html[data-theme=light] .wdp-profile-v3 .wdp-c333-edit-fields h3{color:#153845}
html[data-theme=light] .wdp-profile-v3 .wdp-c333-profile-state.is-public{color:#02736d;background:#ddf6f1}
@media(max-width:620px){.wdp-profile-v3 dialog.wdp-profile-edit-dialog{width:calc(100vw - 14px);max-height:92dvh;border-radius:15px!important}.wdp-profile-v3 .wdp-c333-modal-head{padding:15px 16px}.wdp-profile-v3 dialog.wdp-profile-edit-dialog .wdp-form{padding:14px!important}.wdp-profile-v3 .wdp-c333-edit-fields{padding:12px}.wdp-profile-v3 .wdp-c333-account-fold .wdp-account-hub-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.wdp-profile-v3 dialog.wdp-profile-edit-dialog::backdrop{backdrop-filter:none}}
