/* Profile-first Nocturne. All selectors are scoped to the new profile surfaces. */
.ph-hub{max-width:720px;margin:0 auto;min-width:0;padding-bottom:16px}
.app-open header.ph-profile{display:block;width:100%;box-sizing:border-box;padding:14px 0 16px;margin:0;border:0;max-width:none}
.ph-profile-main{display:flex;width:100%;box-sizing:border-box;align-items:center;gap:16px;min-width:0}.ph-profile-main>.j-icon{flex:0 0 44px;margin-left:auto;align-self:flex-start}
.ph-avatar{width:68px;height:68px;border-radius:50%;object-fit:cover;border:1px solid #d3bb8f78;box-shadow:0 0 0 5px #b68e5720;flex:none}
.ph-avatar-initial{display:grid;place-items:center;font:30px Georgia,serif;background:linear-gradient(145deg,#513149,#241725);color:var(--sand)}
.ph-identity{min-width:0;flex:1}.ph-identity .eyebrow{display:block;font-size:10px;letter-spacing:.14em;margin:0 0 4px}
.ph-identity h1{font-size:34px;line-height:1.12;letter-spacing:-.02em;margin:0;overflow-wrap:anywhere}
.ph-identity p{font-size:14px;line-height:1.5;margin:7px 0 0;color:#d2bdcc;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ph-profile-tools{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 0 79px;clear:both}.ph-profile-tools button{font-size:12px;min-height:36px;padding:3px 0}
.ph-compose-prompt{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:15px 17px;margin:6px 0 22px;text-align:left;color:var(--sand);background:#2b1b2b;border:1px solid #ceb58d38;border-radius:16px}
.ph-compose-prompt>span:first-of-type{font-size:16px;color:var(--text)}.ph-compose-hint{font-size:12px;margin-left:auto;color:#c4b0bd}
.ph-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;align-items:stretch;border-bottom:1px solid #dec69d25;margin:0 0 14px}
.ph-tabs>button{display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 4px;font-size:13px;min-width:0;min-height:48px;border:0;background:none;border-radius:8px 8px 0 0;color:#c2adbc;white-space:nowrap}
.ph-tabs>button.selected{color:#f2ddba;box-shadow:inset 0 -2px #d9b880;background:#d9b88009}
.ph-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:99px;font:11px/1 system-ui,sans-serif!important;letter-spacing:0;background:#d4b985;color:#221322;font-weight:650}
.ph-nav-badge{position:absolute;top:4px;left:calc(50% + 7px)}.j-nav-item{position:relative}.j-nav-item>.j-nav-label{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ph-new-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:0}.ph-new-tools button{font-size:12px;padding:4px 0;min-height:32px}
.ph-timeline{display:flex;flex-direction:column;gap:16px}.ph-card{min-width:0;border:1px solid #c5abc025;border-radius:18px;background:linear-gradient(155deg,#2c1c2e9e,#1c141eaa);overflow:hidden}
.ph-card-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:16px 18px 0;color:#c2adbc;font-size:11px}
.ph-update{color:#f2d5a7;background:#d8b67814;padding:3px 7px;border:1px solid #cfad6b35;border-radius:7px;font-size:10px}
.ph-audience{margin-left:auto;color:#bea9bc;font-size:11px}
.ph-content-button{display:block;width:100%;border:0;background:none;border-radius:0;color:var(--text);text-align:left;padding:12px 18px 4px;min-height:65px;box-shadow:none}
.ph-content-button h3{font:23px/1.25 Georgia,serif;margin:3px 0 11px;overflow-wrap:anywhere}
.ph-copy{font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px;max-width:100%}
.ph-card canvas.private-photo,.ph-detail canvas.private-photo,.ph-composer canvas.private-photo{display:block;width:100%;height:auto;max-height:540px;object-fit:contain;border-radius:11px;background:#100c12}
.ph-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:3px 14px 10px}
.ph-card-actions button{font-size:12px;padding:6px 9px;min-height:38px}.ph-card-actions button.secondary{margin-left:auto}
.ph-read-more{display:block;color:#ddc29b;font-size:13px;margin:2px 0 8px}.ph-skeleton{display:block;font-size:13px;color:#bfa8bb;min-height:58px;padding:16px 0}
.ph-private-text{background:#74918715;border-bottom:1px dotted #99bdb0;color:#dbe2d2}.ph-tease-text{background:#d7b97514;border-bottom:1px dashed #d3ac79}
.ph-mask{display:inline-block;min-width:9em;height:1.25em;border-radius:4px;background:linear-gradient(100deg,#79516b66,#98755566);vertical-align:text-bottom;user-select:none;margin:0 .12em}
.ph-mask>span{visibility:hidden}.ph-sealed-photo{min-height:180px;border-radius:12px;background:radial-gradient(ellipse at 60% 25%,#59405a66,transparent 68%),#251a2a;display:flex;align-items:center;justify-content:center;gap:12px;flex-direction:column;color:#d3b58c;font-size:13px;margin:10px 0}
.ph-empty{padding:34px 20px;text-align:center;color:#c5b2bf;line-height:1.65;font-size:14px}.ph-empty p{max-width:330px;margin:0 auto 13px}
.ph-error{padding:12px 15px;background:#af80601d;color:#efd2b8;border:1px solid #ab886936;border-radius:12px;font-size:13px;margin-bottom:16px}
.ph-error button{margin-left:8px}.ph-load-more{display:block;margin:18px auto 0;font-size:13px}.ph-legacy-link{margin:22px 0 0;text-align:center}.ph-legacy-link button{font-size:12px;color:#bba6b8}
.ph-about{padding:14px 4px}.ph-about h2{font-size:26px;margin:4px 0 24px}.ph-about section{margin:0 0 27px}.ph-about h3{font-size:19px;margin:0 0 8px}.ph-about p{font-size:15px;line-height:1.75;white-space:pre-line;overflow-wrap:anywhere}
.ph-detail,.ph-composer{width:calc(100% - 24px);max-width:610px;max-height:calc(100dvh - 24px);padding:22px;background:linear-gradient(145deg,#302033,#1d1521);border:1px solid #b892ad40;border-radius:20px;color:var(--text);overflow:auto;overscroll-behavior:contain}
.ph-detail .p-dialog-head,.ph-composer .p-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 17px;margin:0}
.ph-detail .p-dialog-head h2,.ph-composer .p-dialog-head h2{font-size:27px;margin:0;line-height:1.15}.ph-detail .ph-copy{font-size:16px}
.ph-detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:19px}.ph-detail-actions>p{width:100%;margin:0 0 5px}.ph-detail-actions button{font-size:13px}
.ph-composer form>label{display:block;font-size:13px;color:#dfd0da;margin:10px 0}.ph-composer input:not([type=radio]):not([type=checkbox]):not([type=file]),.ph-composer textarea{width:100%;box-sizing:border-box;font-size:16px;background:#180f1d9c;border:1px solid #b892ad48;border-radius:10px;color:var(--text);padding:12px;outline-offset:2px}
.ph-composer textarea{line-height:1.55;min-height:144px;resize:vertical}.ph-composer .ph-optional-title{margin-top:0}
.ph-selection-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:-3px}.ph-selection-tools button{font-size:12px;padding:7px 12px;min-height:38px}.ph-help{font-size:11px;margin:5px 0 17px}
.ph-photo-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:8px 0 14px}.ph-photo-tools button{font-size:12px}.ph-photo-picker{position:relative;display:inline-flex;align-items:center;gap:7px;font-size:13px;min-height:44px;margin:0;padding:10px 14px;box-sizing:border-box;overflow:hidden;border-radius:12px;cursor:pointer}
.ph-photo-picker input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.ph-visibility{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border:0;padding:0;margin:23px 0 7px}
.ph-visibility legend{font-size:13px;margin-bottom:10px;color:#dfd0da}.ph-visibility label{position:relative;display:block;margin:0;min-width:0}
.ph-visibility input{position:absolute;opacity:0}.ph-visibility span{display:grid;place-items:center;min-height:46px;background:#26192b;border:1px solid #b28fab44;border-radius:10px;color:#c8b2c4;font-size:13px}
.ph-visibility input:checked+span{background:#dbc1921a;color:#f1d7b0;border-color:#d6b886}.ph-visibility input:focus-visible+span{outline:2px solid var(--sand);outline-offset:3px}
.ph-visibility input:disabled+span{opacity:.45;cursor:not-allowed}.ph-sharing-status{font-size:12px;color:#cdbbc8;line-height:1.55;margin:8px 0 17px}
.ph-tease-options{padding:13px 15px;border-radius:12px;border:1px solid #c3a0732e;background:#47314425;margin:14px 0}.ph-tease-options[hidden]{display:none}
.ph-composer .check{display:flex;align-items:flex-start;gap:9px;line-height:1.5;font-size:12px;margin:10px 0}
.ph-composer .check input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:#d6b886}.ph-tease-options label:not(.check){display:block;font-size:12px;margin:14px 0}
.ph-tease-options input[type=number]{max-width:130px;margin-top:6px}.ph-release-consent{border-top:1px solid #ffffff12;padding-top:13px}
.ph-partner-preview{border:1px solid #c0a3b52a;border-radius:13px;padding:0 14px;margin:18px 0;background:#1f152498}.ph-partner-preview>summary{cursor:pointer;padding:15px 0;font-size:13px;color:#dec49e;min-height:44px;box-sizing:border-box}
.ph-partner-preview [data-ph-preview-body]{padding:3px 0 13px}.ph-partner-preview .ph-copy{font-size:14px}.ph-partner-preview h3{font-size:22px;margin:7px 0 13px}
.ph-preview-toggle{display:flex;gap:7px;margin-bottom:12px}.ph-preview-toggle[hidden]{display:none}.ph-preview-toggle button{font-size:12px}.ph-preview-toggle button.selected{background:#d5b78618;color:#f1d4a9}
.ph-preview-price{font-size:12px;color:#dcc098;margin:13px 0 0}.ph-compose-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:17px}
.ph-compose-actions button{font-size:13px}.ph-discard{display:block;margin:14px auto 0;font-size:11px;color:#baa5b7}
.ph-composer [data-ph-error],.ph-detail [data-ph-detail-error]{color:#f2b4ac;font-size:13px;line-height:1.5;white-space:pre-line}
.ph-composer [data-ph-error]:empty,.ph-detail [data-ph-detail-error]:empty{display:none}
.ph-together-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 22px}.ph-together-actions button{display:flex;align-items:center;gap:9px;font-size:13px;min-height:58px;text-align:left;padding:14px}
.ph-welcome-details{border-top:1px solid #ffffff14;padding:15px 0;margin:24px 0;color:#c4afbd}.ph-welcome-details summary{font-size:13px;cursor:pointer;min-height:34px}.ph-welcome-details h3{font-size:24px}.ph-welcome-details p{font-size:14px;white-space:pre-line;line-height:1.65}
@media(max-width:420px){.ph-profile-main{gap:12px}.ph-avatar{width:58px;height:58px}.ph-identity h1{font-size:30px}.ph-identity p{font-size:13px}.ph-profile-tools{margin-left:70px}.ph-compose-prompt{padding:13px;margin-bottom:15px}.ph-compose-hint{font-size:11px}.ph-tabs>button{font-size:12px;gap:3px}.ph-count{min-width:17px;height:17px;padding:0 4px;font-size:10px!important}.ph-card-meta{padding:14px 14px 0}.ph-content-button{padding:11px 14px 3px}.ph-copy{font-size:14px}.ph-detail,.ph-composer{padding:17px;width:calc(100% - 16px)}.ph-composer .p-dialog-head h2{font-size:24px}.ph-composer .ph-visibility{gap:5px}.ph-visibility span{font-size:12px}.ph-detail-actions button{font-size:12px}}
@media(min-width:800px){.ph-hub{padding-top:6px}.ph-profile-main{gap:20px}.ph-avatar{width:78px;height:78px}.ph-identity h1{font-size:40px}.ph-profile-tools{margin-left:98px}.ph-compose-prompt{margin-top:13px}.ph-nav-badge{position:static;margin-left:0}}
@media(prefers-reduced-motion:reduce){.ph-hub *{scroll-behavior:auto!important}}

/* One contextual action, in the existing partner profile action row. */
.ph-profile-tools.ph-partner-tools{margin-top:12px;margin-bottom:2px}
.ph-profile-tools.ph-partner-tools>button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:8px 12px;font-size:12px;border-radius:10px;white-space:normal;text-align:left}

/* Compact progression and own wallet; the timeline remains the main profile content. */
.ph-profile-progress{margin:12px 0 0}
.ph-progress{display:block;width:100%;text-align:left;background:transparent;border:0;padding:3px 0;color:var(--sand);min-height:48px}
.ph-progress-line{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:1.4}
.ph-progress-line strong{font-size:13px;font-weight:600;white-space:nowrap}
.ph-progress .j-xp{margin:6px 0 5px;height:4px}
.ph-progress-hint{display:block;color:var(--muted);font-size:10px;line-height:1.5}
.ph-meta-links{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ph-meta-links .text-button{display:inline-flex;gap:5px;align-items:center;min-height:36px;padding:4px 0;font-size:11px}
.ph-wallet{margin-left:auto}.ph-wallet svg{width:14px;height:14px}
.ph-unlock-cost{padding:10px 12px;border:1px solid #cdb18130;border-radius:10px;line-height:1.7}
body.busy [data-ph-history],body.busy [data-ph-settings]{pointer-events:auto;opacity:1}
