/* Refined release controls and mobile motion. Existing site colors inherit their live styles. */
/* A complete amber base is progressively covered by the emerald SVG arc. */
body.profile-page .pf-release{position:relative;display:inline-flex;align-items:center;gap:10px;flex-wrap:nowrap!important;flex:none;margin:0}
body.profile-page .pf-release-ring{position:relative;display:grid;place-items:center;width:42px;height:42px;min-height:42px;min-width:42px;padding:0;border:0;background:#1c2024;border-radius:50%;cursor:pointer;overflow:visible;flex:none}
body.profile-page .pf-release-ring::before{display:none}
body.profile-page .pf-release-ring svg{position:absolute;inset:0;width:42px;height:42px}
.pf-hold-remaining{stroke:#e9be53}.pf-hold-elapsed{stroke:#41d69c;stroke-linecap:butt;transition:stroke-dasharray 250ms linear}
body.profile-page .pf-release-ring>.pf-hold-copy{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:auto;height:auto;padding:0;border:0;background:none;border-radius:0;line-height:1}
.pf-hold-copy strong{color:#e9be53!important;font-size:12px;font-weight:750;line-height:1.1}
body.profile-page .p2d-release-pill{position:relative;display:inline-flex;align-items:center;min-height:30px;height:30px;padding:6px 11px;margin:0;border:1px solid color-mix(in srgb,var(--p2d-action) 60%,transparent);border-radius:6px 2px 2px 6px;background:color-mix(in srgb,var(--p2d-action) 15%,#18181f);color:#fff;font-size:10px;font-weight:650;line-height:1.4;white-space:nowrap;flex:none;animation:none;transition:background-color 150ms}
body.profile-page .p2d-release-pill::after{content:'';position:absolute;right:-5px;top:50%;width:8px;height:8px;transform:translateY(-50%) rotate(45deg);background:color-mix(in srgb,var(--p2d-action) 15%,#18181f);border:1px solid color-mix(in srgb,var(--p2d-action) 60%,transparent);border-left:0;border-bottom:0;pointer-events:none}
body.profile-page .p2d-release-pill::before{content:'';position:absolute;left:-4px;top:50%;width:6px;height:6px;transform:translateY(-50%);border:1px solid color-mix(in srgb,var(--p2d-action) 60%,transparent);border-radius:50%;background:#121217;pointer-events:none}
body.profile-page .p2d-release-pill:hover,body.profile-page .p2d-release-pill:focus-visible{background:color-mix(in srgb,var(--p2d-action) 25%,#18181f);color:#fff}
body.profile-page .p2d-release-pill:focus-visible{outline:2px solid var(--p2d-action);outline-offset:4px}
body.profile-page .pf-activity-header{align-items:center}
body.profile-page .pf-activity-header h2{margin:0;flex:1;min-width:0}
body.profile-page .pf-reward-divider{color:#9ba1b2;font-weight:500}
body.profile-page .pf-reward-total{color:#36d996;font-weight:650;white-space:nowrap}
body.profile-page .pf-release-tip{width:230px;max-width:calc(100vw - 48px);background:#292632;border-color:#59515e;color:#f8f4df;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity 120ms ease,transform 120ms ease;pointer-events:none}
body.profile-page .pf-release-ring:hover~.pf-release-tip,body.profile-page .pf-release-ring:focus-visible~.pf-release-tip,body.profile-page .pf-release-tip.is-visible{visibility:visible;opacity:1;transform:translateY(0)}
/* Upload and proof lightbox. */
body.profile-page .p2d-release-dialog{width:min(520px,calc(100vw - 32px));padding:28px;background:#111116;color:#f4f3f8;border-color:#ffffff20;box-shadow:0 24px 80px #000c}
body.profile-page .p2d-release-dialog h2{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin:4px 0 8px}
body.profile-page .p2d-release-dialog>.p2d-release-copy{color:#cac7d2;font-size:13px}
body.profile-page .p2d-release-form{gap:18px;margin-top:22px}
.p2d-upload-area{min-width:0}
body.profile-page .p2d-proof-dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:155px;padding:20px;border:1px dashed #9933ff66;border-radius:12px;background:#191920;text-align:center;color:#f4f3f8;transition:border-color 150ms,background-color 150ms}
body.profile-page .p2d-proof-dropzone.is-dragging,body.profile-page .p2d-proof-dropzone:focus-within{border-color:#9933ff;background:#18181f;outline:2px solid #9933ff33;outline-offset:3px}
body.profile-page .p2d-proof-dropzone strong{font-size:14px;font-weight:650}
body.profile-page .p2d-proof-dropzone>span{font-size:12px;color:#a1a1aa}
body.profile-page .p2d-proof-input{position:absolute;inset:0;width:100%;height:100%;padding:0!important;margin:0;border:0!important;opacity:0;cursor:pointer;z-index:1}
.p2d-upload-icon{width:32px;height:32px;margin-bottom:4px;color:#bb77ff;pointer-events:none}
.p2d-upload-help{font-size:11px;color:#a1a1aa;margin-top:10px;text-align:center;line-height:1.5}
.p2d-selected-proofs{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.p2d-selected-proof{display:grid;gap:8px;width:min(140px,100%);min-width:0}
.p2d-selected-proof :is(img,video){width:100%;height:90px;object-fit:contain;background:#09090b;border:1px solid #ffffff15;border-radius:8px}
.p2d-selected-proof>span{font-size:10px;line-height:1.5;color:#a1a1aa;overflow-wrap:anywhere}
.p2d-proof-remove{font-size:11px;color:#ddbbff;align-self:flex-start;padding:6px 0}
.p2d-proof-upload-progress{display:grid;gap:7px;margin-top:12px;font-size:11px;color:#ddbbff}
.p2d-proof-upload-progress progress{width:100%;height:4px;accent-color:#9933ff}
body.profile-page .p2d-release-form textarea{background:#191920;border-color:#ffffff25;border-radius:10px;color:#f4f3f8;padding:12px;resize:vertical;font-size:13px;min-height:100px}
body.profile-page .p2d-release-form textarea:focus{border-color:#9933ff;outline:2px solid #9933ff50;outline-offset:2px}
body.profile-page .p2d-release-submit{width:100%;min-height:44px;border:1px solid #9933ff55;border-radius:9px;background:var(--p2d-action,#9933ff);color:#fff;font-size:13px;font-weight:650;cursor:pointer}
body.profile-page .p2d-release-submit:disabled{opacity:.45;cursor:default}
body.profile-page .p2d-release-submit:focus-visible{outline:2px solid #9933ff;outline-offset:4px}
body.profile-page .p2d-release-confirmation{align-items:center;justify-items:center;gap:14px;padding:12px 0}
body.profile-page .p2d-release-confirmation h2{margin:0}
body.profile-page .p2d-release-confirmation p{font-size:13px;max-width:35ch;color:#a1a1aa}
body.profile-page .p2d-confirmation-badge{display:block;width:64px;height:64px;background:#10b9810e;border-radius:50%;padding:8px}
.p2d-confirmation-badge svg{width:48px;height:48px;stroke:#10b981;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p2d-confirmation-badge path{stroke-dasharray:40;animation:p2d-proof-check 360ms ease-out both}
@keyframes p2d-proof-check{from{stroke-dashoffset:40}to{stroke-dashoffset:0}}
body.profile-page .p2d-proof-lightbox{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;overflow:auto;border:1px solid #ffffff20;border-radius:14px;background:#09090b;color:#f4f4f5}
.p2d-proof-lightbox>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#121217}
.p2d-proof-lightbox h2{font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.p2d-proof-viewer{padding:16px;display:grid;place-items:center;min-height:180px}
.p2d-proof-viewer :is(img,video){max-width:100%;max-height:calc(100dvh - 170px);object-fit:contain}
.p2d-proof-viewer p{font-size:13px;color:#fda4af}
/* Structured release history; color always has a written status beside it. */
body.profile-page .p2d-release-list{gap:14px;margin:18px 0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
body.profile-page .p2d-release-request{display:flex;flex-direction:column;justify-content:space-between;min-width:0;gap:12px;padding:16px;background:#121217;border:1px solid #ffffff1a;border-radius:12px;aspect-ratio:auto}
.p2d-request-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:768px){.p2d-request-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.profile-page .p2d-release-request>.p2d-release-heading{display:flex;flex-direction:row;align-items:flex-start;width:100%;gap:10px;flex-wrap:nowrap}
body.profile-page .p2d-release-request .p2d-release-identity{align-items:center;min-width:0;flex:1;gap:10px}
body.profile-page .p2d-release-request .p2d-release-heading h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.45;margin:0;color:#fff}
.p2d-request-title{min-width:0;flex:1}.p2d-request-title time{display:block;margin-top:4px;font-size:11px;line-height:1.4;color:#a1a1aa}
.p2d-request-body{display:flex;align-items:center;gap:12px;min-width:0}
.p2d-request-reward{font-size:20px;font-weight:750;line-height:1.25;font-variant-numeric:tabular-nums;color:#fff;flex:none}
body.profile-page .p2d-request-excerpt{min-width:0;margin:0;font-size:12px;line-height:1.5;color:#a1a1aa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p2d-request-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #ffffff0d;padding-top:10px;width:100%;margin-top:auto}
.p2d-request-info,.p2d-request-view-proof,.p2d-request-upload{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:5px 9px;border:1px solid #ffffff1a;border-radius:7px;background:#18181f;color:#d4d4d8;font-size:11px;font-weight:600;cursor:pointer}
.p2d-request-info>span{display:grid;place-items:center;width:17px;height:17px;border:1px solid #ffffff30;border-radius:50%;font-size:10px}
.p2d-request-view-proof{border-color:transparent;background:transparent;padding-inline:0;color:var(--p2d-action)}
.p2d-request-upload{align-self:flex-start;border-color:color-mix(in srgb,var(--p2d-action) 40%,transparent);color:#fff;background:color-mix(in srgb,var(--p2d-action) 15%,#18181f)}
.p2d-request-info:hover,.p2d-request-upload:hover{background:#18181f;border-color:var(--p2d-action)}
:is(.p2d-request-info,.p2d-request-view-proof,.p2d-request-upload):focus-visible{outline:2px solid var(--p2d-action);outline-offset:3px}
.p2d-request-list-actions{display:flex;justify-content:center;padding-top:16px}
body.profile-page .p2d-request-list-actions>.pf-small-button{background:var(--p2d-action);border:1px solid var(--p2d-action);color:#fff;padding:10px 15px;border-radius:8px;min-height:40px;font-size:12px}
body.profile-page .p2d-request-list-actions>.pf-small-button:hover{background:var(--p2d-action-hover)}
body.profile-page .p2d-request-details{margin:auto;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:22px;border:1px solid #ffffff20;border-radius:14px;background:#111116;color:#fff;box-shadow:0 18px 50px #0007;overflow:auto;opacity:0;transform:translateY(8px) scale(.98);transition:opacity 170ms ease-out,transform 170ms cubic-bezier(.22,1,.36,1),overlay 170ms allow-discrete,display 170ms allow-discrete}
.p2d-request-details::backdrop{background:#0006;backdrop-filter:none}
body.profile-page .p2d-request-details[open]{opacity:1;transform:translateY(0) scale(1)}
@starting-style{body.profile-page .p2d-request-details[open]{opacity:0;transform:translateY(8px) scale(.98)}}
.p2d-request-details>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.p2d-request-details h2{font-size:16px;line-height:1.4;font-weight:650}
.p2d-request-detail-title{font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.p2d-release-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.p2d-request-thumbnail{display:grid;place-items:center;width:36px;height:36px;min-width:36px;background:#09090b;border:1px solid #ffffff12;border-radius:8px;overflow:hidden}
.p2d-request-thumbnail img{width:100%;height:100%;padding:0;object-fit:cover}
body.profile-page .p2d-release-heading{align-items:center;gap:12px}
body.profile-page .p2d-release-heading h3{font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
body.profile-page .p2d-release-meta{font-size:11px;color:#a3a0af;margin:12px 0}
body.profile-page .p2d-release-copy{color:#cac7d2;font-size:12px;line-height:1.7}
body.profile-page .p2d-request-status{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:650;line-height:1.4;background:#21172c;border:1px solid color-mix(in srgb,var(--p2d-action) 33%,transparent);color:#fff;white-space:nowrap;flex:none}
body.profile-page .p2d-request-status[data-status=pending]{background:#9c7208;border-color:#e9be5355;color:#fff}
body.profile-page .p2d-request-status[data-status=accepted]{background:#087f5b;border-color:#41d69c55;color:#fff}
body.profile-page .p2d-request-status[data-status=rejected]{background:#be123c;border-color:#fb718566;color:#fff}
body.profile-page .p2d-request-status[data-status=needs_info]{background:var(--p2d-action);border-color:var(--p2d-action);color:#fff}
.p2d-proof-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.p2d-proof-preview-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 10px;background:#18181f;border:1px solid #ffffff1c;border-radius:7px;font-size:11px;color:#d4d4d8;cursor:pointer}
.p2d-proof-preview-button:hover{border-color:#9933ff66;color:#f2e5ff}
body.profile-page .p2d-admin-note{padding:14px;margin:16px 0 0;background:#211e28;border:1px solid #9933ff55;border-radius:8px;font-size:12px;color:inherit;line-height:1.6}
body.profile-page .p2d-admin-note strong{font-size:11px;margin-bottom:5px;display:block}
body.profile-page .p2d-admin-note p{white-space:pre-line;overflow-wrap:anywhere;margin:0;color:inherit}
body.profile-page .p2d-admin-note[data-status=rejected]{border-color:#f43f5e40;color:#fda4af}
body.tasks-page .tp-empty{background:#090d14;border-color:#ffffff15;color:#fff}
.hero-world>.world-motion-control{position:absolute;right:18px;bottom:18px;color:#a1a1aa}
.p2d-inline-upload{display:flex;align-items:center;gap:12px;width:100%;margin-top:14px;padding:12px 14px;border:1px dashed #9933ff66;border-radius:9px;background:#09090b;color:#ddbbff;text-align:left;cursor:pointer;font-size:12px}
.p2d-inline-upload>span:nth-child(2){flex:1}.p2d-inline-upload small{display:block;margin-top:3px;font-size:10px;color:#a1a1aa}
.p2d-inline-upload>span:first-child{font-size:22px}
/* Compact notification artwork is contained inside a 28px rounded badge. */
body :is(.p2d-notification-panel,.p2d-legacy-notifications) .ep-notification-item{grid-template-columns:28px minmax(0,1fr)!important;gap:20px!important;padding:10px 12px!important;min-height:48px}
body :is(.p2d-notification-panel,.p2d-legacy-notifications) .ep-notification-art{width:28px!important;height:28px!important;min-width:28px!important;border-radius:8px!important;padding:3px!important}
body :is(.p2d-notification-panel,.p2d-legacy-notifications) .ep-notification-art img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:0!important;padding:0!important}
body :is(.p2d-notification-panel,.p2d-legacy-notifications) .ep-notification-item::after{left:50px;top:10px;width:1px;height:28px;background:rgb(255 255 255 / 13%)}
body :is(.p2d-notification-panel,.p2d-legacy-notifications) .ep-notification-title{font-size:12px;line-height:1.5}
body :is(.p2d-notification-panel,.p2d-legacy-notifications) .ep-notification-item p{font-size:11px;line-height:1.6;margin-top:3px}
/* The server seed and hydrated feed occupy the same rail on every viewport. */
.p2d-forward-ticker .ep-ticker-seed{width:max-content;min-width:100%}
.p2d-forward-ticker .ep-ticker-marquee{min-width:100%}
@media(max-width:768px){
 body.earn-page .ep-header-center{width:100%;min-width:0}
 body.earn-page .ep-top-header{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 body.earn-page .p2d-forward-ticker{width:100%;padding-inline:8px;gap:8px}
 body.profile-page .pf-activity-goals>li{grid-template-columns:26px minmax(0,1fr);gap:8px}
 body.profile-page .pf-activity-payout{grid-column:2;justify-content:flex-end;gap:12px;flex-wrap:wrap;min-width:0}
 body.profile-page .p2d-release-dialog{padding:22px}
 body.profile-page .p2d-release-request{padding:16px}
 body.earn-page .ep-sidebar-backdrop{backdrop-filter:none!important}
 body.earn-page .ep-app-sidebar{transition:transform 250ms ease-out,visibility 0s linear 250ms!important;will-change:transform,opacity}
 body.earn-page .ep-app-sidebar.ep-drawer--open{transition-delay:0s!important}
 body.earn-page .ep-mobile-bottom-nav{backdrop-filter:none!important}
 body.earn-page dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
}
/* The same API sheet is shared by Earn, Tasks and Profile. Only Profile's unfinished steps orbit. */
.p2d-offer-sheet:not(.p2d-api-activity) .p2d-offer-steps-grid>li:not(.is-completed) .p2d-offer-step-check::before{border-color:#512138;animation:none}
.p2d-api-activity[open] .p2d-offer-steps-grid>li:not(.is-completed) .p2d-offer-step-check::before{animation:p2d-milestone-orbit 4s linear infinite}
.p2d-api-activity .p2d-offer-step-name{flex:1}
.p2d-api-activity .p2d-offer-step-name small{display:block;margin-top:3px;font-size:10px;font-weight:500;line-height:1.5;color:#a1a1aa}
.p2d-api-activity .p2d-offer-steps-grid>.p2d-step-held{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px 12px;grid-column:auto}
body.profile-page .p2d-api-activity .pf-activity-payout{margin-left:auto;flex-wrap:nowrap;gap:10px;flex:none}
body.profile-page .p2d-api-activity .p2d-step-held>.pf-activity-payout{grid-column:1/-1;width:100%;justify-content:space-between;margin:0;gap:10px}
body.profile-page .p2d-api-activity .p2d-step-held>.pf-activity-payout>strong{margin:0}
body.profile-page .p2d-api-activity .p2d-step-right.p2d-step-held>.pf-activity-payout{flex-direction:row-reverse}
/* The ring anchors a small floating card inward, keeping both column edges clear. */
body.profile-page .pf-release--tethered{width:42px;gap:0;isolation:isolate}
body.profile-page .pf-release--tethered .p2d-release-pill{position:absolute;z-index:2;top:6px;right:64px;padding:6px 10px;height:30px;border-radius:7px;background:#111116;border-color:color-mix(in srgb,var(--p2d-action) 60%,transparent);color:#fff;box-shadow:0 4px 12px #0004;transform-origin:calc(100% + 22px) 50%;animation:none}
body.profile-page .pf-release--tethered .p2d-release-pill::before,body.profile-page .pf-release--tethered .p2d-release-pill::after{display:none}
.p2d-release-thread{position:absolute;z-index:1;right:40px;top:0;pointer-events:none;stroke:color-mix(in srgb,var(--p2d-action) 70%,#fff);stroke-width:1;stroke-linecap:round}
body.profile-page .pf-release--tethered[data-release-side=right] .p2d-release-pill{right:auto;left:64px;transform-origin:-22px 50%}
.pf-release--tethered[data-release-side=right] .p2d-release-thread{right:auto;left:40px;transform:scaleX(-1)}
body.profile-page .pf-release--tethered[data-release-side=right] .pf-release-tip{right:auto;left:0}
body.profile-page .p2d-api-activity[open] .pf-release--tethered .p2d-release-pill{animation:p2d-release-sway 3.8s ease-in-out infinite;will-change:transform}
body.profile-page .pf-release--tethered .p2d-release-pill:hover,body.profile-page .pf-release--tethered .p2d-release-pill:focus-visible{animation-play-state:paused;background:color-mix(in srgb,var(--p2d-action) 15%,#111116)}
@keyframes p2d-release-sway{0%,100%{transform:translateY(0) rotate(-.7deg)}50%{transform:translateY(-2px) rotate(.7deg)}}
@media(min-width:481px) and (max-width:640px){
 .p2d-api-activity .p2d-step-held{position:relative}
 .p2d-api-activity .p2d-step-held>.p2d-offer-step-name{padding-right:44px}
 body.profile-page .p2d-api-activity .p2d-step-held>.pf-activity-payout{justify-content:flex-end}
 body.profile-page .p2d-api-activity .p2d-step-held>.pf-activity-payout>strong{position:absolute;right:12px;top:16px}
 body.profile-page .p2d-api-activity .pf-release--tethered .pf-release-tip{width:190px}
}
.p2d-api-progress-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:12px 0;border-block:1px solid #ffffff0d;color:#a1a1aa;font-size:12px}
.p2d-api-progress-summary strong{display:block;color:#fff;margin-top:4px;font-size:14px;font-variant-numeric:tabular-nums}.p2d-api-progress-summary small{display:block;margin-top:3px;color:#a1a1aa;font-size:10px}
@media(max-width:480px){body.profile-page .p2d-release-pill{font-size:10px;padding-inline:8px}.p2d-api-progress-summary{font-size:11px}}
@media(prefers-reduced-motion:reduce){.pf-hold-elapsed,.p2d-confirmation-badge path,body.profile-page .pf-release-tip,body.earn-page .ep-app-sidebar,.p2d-release-pill,.p2d-request-details[open],.p2d-api-activity[open] .p2d-offer-step-check::before{transition:none!important;animation:none!important;will-change:auto!important}}
