/* Flat surfaces throughout the customer app and administration.
   Keep control boundaries, keyboard focus, validation and selection meaningful. */
:root{--card-fade-bg:var(--bg,#121018);--card-fade-rgb:18,16,24}

/* Preserve border widths so layouts and button heights do not move. */
html body :is(
 article,fieldset,.panel,.modal,.hero,.create-banner,.guest-bottom,.pricing-intro,.billing-balance,
 [class$="-card"],[class*="-card "],[class$="-panel"],[class*="-panel "],
 [class$="-workspace"],[class*="-workspace "],[class$="-stage"],[class*="-stage "],
 .studio-form,.wizard-form,.settings-panel,.creative-admin-panel,.customer-filter-panel,
 .cs-compose,.cs-source-step,.cs-submit,.character-picker,.creative-source,.scene-summary,
 .customer-continue-list>button,.explore-banners,.home-showcase-intro,
 .conversation-sidebar,.companion-profile,.companion-layout,.chat-panel,.chat-header,
 .companion-composer-wrap,.message p,.chat-media-item,.chat-photo-offer,.engagement-chat-offer,
 .live-series-cover,.live-library-state,.feed-for-you,.feed-premium-gate,
 .pack-card-cover>img,
 .pack-library,.pack-library-item,.pack-scene-options,.pack-timeline-group,.pack-timeline-segment,
 .pack-assembly-review,.pack-photo-edit-empty,.pack-photo-help-library,.pack-block-trim,
 .pack-cover-picker,.studio-lora-choice,.studio-lora-library-row,.ci-panel,.cc-published,
 .studio-plan-workspace>nav,.studio-step-rail,.studio-plan-stage,.studio-step-workspace,
 .creative-choice-list,.admin-choice-list,.admin-preview-choices,.admin-exclusion-rules,
 .private-media,.public-display-preview img,.inline-face-progress,.inline-personality,
 .identity-prompt-fields,.short-photo-panel,.short-photo-advice,.bulk-media-progress,
 .engagement-panel,.engagement-shared-row,.engagement-welcome-note,
 .support-ticket-list,.support-ticket-detail,.support-customer-membership,.support-admin-media,
 .billing-membership,.billing-order-list,.pricing-member-benefits,
 .movie-maker,.mm-app,.mm-editor,.mm-operation,.mm-story-helper,.mm-story-panel,.mm-frame,
 .mm-movie-row,.mm-next-step,.mm-transition,.mm-sound-target,.mm-engine,.mm-tabs,
 .movie-maker-cta,.connection-card-editor,.banner-artwork-editor,.public-history-section
){border-color:transparent!important}

/* No glowing or raised outlines on cards, including hover states. */
html body :is(
 article,[class$="-card"],[class*="-card "],.portrait-card,.home-promo-card,.connection-photo-card,
 .discovery-content-card,.discovery-premium-card,.customer-continue-list>button,.panel,
 .pack-card-cover>img,
 .pack-library-item,.pack-timeline-group,.pack-timeline-segment,.studio-lora-library-row,
 .mm-frame,.mm-movie-row,.connection-card-editor
){box-shadow:none!important}
html body.is-admin .admin-overview-card,
html body.is-admin .admin-overview-card:hover{border-color:transparent!important;box-shadow:none!important}

/* Unselected controls and badges use their fill instead of a decorative rim. */
html body :is(button,a.btn,.nav-link,.sidebar-create,.sidebar-toggle,.avatar-letter,.global-search kbd,
 .customer-section-tabs,.creative-studio-modes,.shop-segment,.auth-tabs,.creative-admin-tabs,
 .engagement-admin-tabs,.companion-admin-tabs,.engagement-tabs,
 .badge,.tag,[class$="-badge"],[class*="-badge "],.home-promo-badge,.discovery-content-kind,
 .character-gender-badge,.beta-badge,.live-series-mark,.engagement-status,.engagement-count,
 .connection-card-cta,.discovery-premium-cta,.pack-card-open,.public-admin-tabs,
 .chat-inbox-unread,.pack-card-mark,.studio-lora-trigger-list>span,.connection-card-symbol
){border-color:transparent!important}
html body :is(.badge,.tag,[class$="-badge"],[class*="-badge "],.home-promo-badge,
 .discovery-content-kind,.character-gender-badge,.live-series-mark,.engagement-status,.engagement-count
){box-shadow:none!important}

/* Remove ornamental separators inside cards and editor groupings. */
html body :is(.home-promo-cta,.discovery-content-copy>b,.pack-card-footer,
 .pack-admin-header,.pack-admin-toolbar,.pack-workspace-settings,.pack-workspace-panels,
 .pack-library footer,.pack-library-insert,.pack-library footer,.pack-scene-options,
 .studio-step-heading,.studio-stage-tabs,.studio-step-actions,.studio-plan-review,
 .studio-plan-extender,.studio-plan-type,.studio-live-engine-settings,
 .feed-admin-editor>header,.feed-stage-heading,.feed-preview-large,.public-personality-controls,
 .publish-existing,.public-face-prompt-editor,.admin-group-fields,.admin-choice-actions,.admin-group-order
){border-color:transparent!important}
html body :is(.home-promo-mosaic-track img,.home-promo-video,.video-play-icon,.feed-character>img){border-color:transparent!important;box-shadow:none!important}
html body .pack-card-stack::before,html body .pack-card-stack::after{border-color:transparent!important;box-shadow:none!important}

/* Selection frames belong to media choices and boxed navigation, not every active link. */
html body :where(.nav-link,.conversation,.picker-item,.shop-product,
 .pack-library-item,.pack-timeline-segment,.pack-cover-choice,.pack-frame-choice,.image-option,
 .media-format-card,.short-photo-option,.skin-tone-option,.engagement-media-choice,
 .connection-card-library button,.mm-frame,.mm-character-thumb,.mm-option):is(
 .active,.selected,.is-selected,[aria-pressed=true],[aria-selected=true],
 [aria-current=page],[aria-current=step],:has(>input:checked)
){border-color:var(--rose,#e99fb5)!important;box-shadow:inset 0 0 0 1px #e99fb555!important}

/* Text tabs already show selection through their fill, text color or underline. */
html body :is(.category-nav,[role=tablist],[class$="-tabs"],[class*="-tabs "],
 .creative-studio-modes,.shop-segment)>:is(a,button){
 border-color:transparent!important;box-shadow:none!important
}

/* Upload targets and invalid fields still communicate their purpose. */
html body :is(.cc-drop,.connection-card-upload,.image-upload,.upload-dropzone,.media-upload-drop){border-color:#a36d88!important}
html body :is([aria-invalid=true],[role=alert],.character-chat-delete-warning){border-color:#e67e99!important}
/* Use a soft focus cue instead of an extra rectangular ring. */
html body :focus,html body :focus-visible{outline:none!important}
html body :is(a,button,summary,[tabindex]):focus-visible{box-shadow:0 0 18px #fd1b6a38!important}
html body :is(input,textarea,select):is(:focus,:focus-visible){border-color:transparent!important;box-shadow:0 0 18px #fd1b6a16!important}
html body :is(.cs-crush-switch input:focus-visible+.cs-crush-track,.pro-sound-toggle input:focus-visible+.pro-sound-track,.engagement-switch input:focus-visible+i){outline:none!important;box-shadow:0 0 16px #fd1b6a38!important}
/* Plain text tabs and the plan title keep their existing underline/check cue. */
html body :is(.creative-studio-modes,.cs-step-tabs) button:is(.active,[aria-selected=true]){border-color:transparent!important;box-shadow:none!important}
html body .shop-plan-select[aria-pressed=true]{border-color:transparent!important;box-shadow:none!important}
html body .mm-tabs button:is(.active,[aria-selected=true]){border-color:transparent!important;border-bottom-color:#fd1b6a!important;box-shadow:none!important}

/* The mobile bottom bar uses pink icons/text for selection, without a box. */
@media(max-width:760px){
 html body .mobile-nav{border:0!important}
 html body .mobile-nav>:is(a,button){border-color:transparent!important;box-shadow:none!important}
 html body .mobile-nav>:is(a,button):focus-visible{border-radius:10px;box-shadow:0 0 16px #fd1b6a28!important}
}

/* Marketing photos blend into the actual page color, rather than a black/plum edge.
   The bottom 3% is the background itself; copy stays above the fade. */
body:not(.is-admin) :is(.home-promo-card,.connection-photo-card,.portrait-card,.discovery-content-card){background:var(--card-fade-bg)!important}
body:not(.is-admin) :is(.home-promo-shade,.connection-photo-card>.connection-card-shade,
 .portrait-card .card-shade,.discovery-content-shade){
 background:linear-gradient(0deg,
  var(--card-fade-bg) 0%,var(--card-fade-bg) 3%,
  rgba(var(--card-fade-rgb),.98) 12%,rgba(var(--card-fade-rgb),.85) 25%,
  rgba(var(--card-fade-rgb),.45) 42%,rgba(var(--card-fade-rgb),.08) 65%,
  rgba(var(--card-fade-rgb),0) 78%)!important
}
body [data-discovery-results] .portrait-card .card-shade{
 background:linear-gradient(to top,rgba(var(--card-fade-rgb),.8),rgba(var(--card-fade-rgb),.55) 12%,rgba(var(--card-fade-rgb),.16) 25%,transparent 38%)!important
}
[data-discovery-results] .portrait-card .card-caption{text-shadow:0 1px 4px #000c}
[data-discovery-results] .portrait-card .character-hover-video.playing~.card-shade{opacity:0}
@media(hover:hover) and (pointer:fine){
 [data-discovery-results] .portrait-card:hover .card-shade{opacity:0}
}
/* Collection cards need a visible surface behind their metadata. */
html body:not(.is-admin) .pack-card{background:#211a29!important}
html body:not(.is-admin) .pack-card-shade{inset:0!important;background:linear-gradient(0deg,#211a29 0%,#211a29 5%,#211a29ed 20%,#211a2980 42%,#211a2900 75%)!important}
html body .pack-card-open{background:#ffffff09}
html body :is(#pack-unlock-form,.pack-unlock-seal,.pack-unlock-includes>span){border-color:transparent!important}
/* Portrait links keep a clean edge; hover glows in the logo's XX pink. */
html body .portrait-card :is(.card-photo,.card-shade){border-color:transparent!important;outline:none!important}
@media(hover:hover) and (pointer:fine){
 html body:not(.is-admin) :is(.portrait-card,.pack-card):hover{border-color:transparent!important;box-shadow:0 0 24px #fd1b6a2e!important}
}

/* Carry the XX neon through the primary actions and Premium invitations. */
html body :is(.btn-primary,.premium-upgrade-button,.premium-header-offer,.discovery-premium-cta,.connection-card-cta,.mm-action.primary:not([data-mm=confirm-delete-movie]):not([data-mm=confirm-remove])){
 background:linear-gradient(115deg,#ff2879 0%,#fd1b6a 45%,#df0d58 100%)!important;
 color:#fff!important;border-color:transparent!important;
 box-shadow:0 4px 20px #fd1b6a35,0 0 28px #fd1b6a18!important;
 transition:background .2s ease,box-shadow .2s ease,filter .2s ease
}
html body :is(.premium-header-offer>strong,.premium-header-offer>span){color:#fff}
@media(hover:hover) and (pointer:fine){
 html body :is(.btn-primary,.premium-upgrade-button,.premium-header-offer,.discovery-premium-cta,.connection-card-cta,.mm-action.primary:not([data-mm=confirm-delete-movie]):not([data-mm=confirm-remove])):not(:disabled):not([aria-disabled=true]):hover,
 html body .discovery-premium-card-link:hover .discovery-premium-cta{
  background:linear-gradient(115deg,#ff438b,#ff277b 50%,#ef1767)!important;
  box-shadow:0 5px 28px #fd1b6a50,0 0 38px #fd1b6a26!important
 }
}
html body :is(.btn-primary,.premium-upgrade-button,.mm-action.primary):is(:disabled,[aria-disabled=true]){box-shadow:none!important}
@media(prefers-reduced-motion:reduce){html body :is(.btn-primary,.premium-upgrade-button,.premium-header-offer,.discovery-premium-cta,.connection-card-cta,.mm-action.primary:not([data-mm=confirm-delete-movie]):not([data-mm=confirm-remove])){transition:none}}
