/* V510.0.5 — named public roles; only actual panels receive surface paint. */
:root{
  --studio-page-canvas:var(--studio-color-canvas,#020713);
  --studio-page-section:var(--studio-color-section,color-mix(in srgb,var(--studio-color-surface,#071a35) 25%,var(--studio-color-canvas,#020713)));
  --studio-page-section-strong:var(--studio-color-section,color-mix(in srgb,var(--studio-color-surface,#071a35) 25%,var(--studio-color-canvas,#020713)));
  --studio-component-card-bg:var(--studio-color-card,var(--studio-color-surface,#071a35));
  --studio-component-card-raised-bg:var(--studio-color-card-hover,color-mix(in srgb,var(--studio-component-card-bg) 90%,var(--studio-color-accent,#1798ff)));
  --studio-component-card-border:var(--studio-color-border,rgb(255 255 255 / 13%));
  --studio-component-card-radius:var(--studio-radius-lg,16px);
  --studio-component-control-bg:var(--studio-color-control,color-mix(in srgb,var(--studio-color-canvas,#020713) 65%,var(--studio-color-surface,#071a35)));
  --studio-component-control-border:var(--studio-color-border,rgb(255 255 255 / 13%));
  --studio-component-header-bg:var(--studio-color-header,color-mix(in srgb,var(--studio-color-canvas,#020713) 70%,var(--studio-color-surface,#071a35)));
  --studio-component-header-scrolled-bg:var(--studio-color-header-scrolled,var(--studio-component-header-bg));
  --studio-component-footer-bg:var(--studio-color-footer,color-mix(in srgb,var(--studio-color-canvas,#020713) 75%,var(--studio-color-surface,#071a35)));
  --studio-component-dialog-bg:var(--studio-color-dialog,color-mix(in srgb,var(--studio-color-surface,#071a35) 90%,var(--studio-color-canvas,#020713)));
  --studio-component-overlay-bg:color-mix(in srgb,var(--studio-color-canvas,#020713) 86%,transparent);
  --studio-component-control-radius:calc(var(--studio-radius-lg,16px) * .68);
}

body.studio-theme{
  background:var(--studio-page-canvas)!important;
  color:var(--studio-color-text,#f8fbff);
  font-family:var(--studio-font-family-ui,"Alexandria",Tahoma,Arial,sans-serif);
}
body.studio-theme>main{background:var(--studio-page-canvas)!important;color:var(--studio-color-text,#f8fbff)}
body.studio-theme :is(input,select,textarea,button):not(.a2-control-surface *){font-family:inherit}

/* Site shell */
body.studio-theme .studio-site-header{
  /* V510.0.4: an opaque, theme-derived surface separates navigation from artwork. */
  border-bottom:1px solid var(--studio-color-border)!important;
  background:var(--studio-component-header-bg)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--studio-color-text) 5%,transparent),0 6px 24px color-mix(in srgb,var(--studio-page-canvas) 22%,transparent)!important;
}
body.studio-theme .studio-site-header.is-scrolled{
  border-bottom-color:var(--studio-color-border-strong)!important;
  background:var(--studio-component-header-scrolled-bg)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,var(--studio-color-text) 7%,transparent),0 12px 32px color-mix(in srgb,var(--studio-page-canvas) 48%,transparent)!important;
}
/* Retire the legacy fade below the header; it blurs the content boundary. */
body.studio-theme .studio-site-header::after{
  content:none;
  display:none;
}
body.studio-theme :is(.studio-menu-panel,.studio-search-panel,.studio-language-panel,.studio-account-popover,.studio-membership-popover,.studio-notification-popover,.studio-search-overlay .studio-quick-search){
  border-color:var(--studio-component-dialog-border)!important;
  background:var(--studio-component-dialog-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.studio-search-field,.studio-search-results button,.studio-account-button,.studio-header-icon,.studio-menu-panel a,.studio-language-choice,.studio-member-links a){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
body.studio-theme .studio-search-results button:is(:hover,:focus-visible,.is-keyboard-selected,[aria-selected="true"]){
  border-color:var(--studio-color-accent)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 16%,var(--studio-component-control-bg))!important;
}
body.studio-theme :is(.studio-tools-popover,.studio-theme-popover,.studio-notification-popover,.member-menu-panel,.plan-auth-dialog){
  border-color:var(--studio-component-dialog-border)!important;
  background:var(--studio-component-dialog-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.studio-trend-ticker,.studio-tools-tabs,.studio-notification-tabs,.studio-preview-item>button,.studio-tools-grid>a,.plan-dialog-selection){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
/* V510.0.3: restore the ticker frame for both member links and guest buttons. */
body.studio-theme .studio-trend-rotator .studio-trend-ticker{
  box-sizing:border-box;
  border:1px solid color-mix(in srgb,var(--studio-color-accent,#1798ff) 50%,var(--studio-color-surface,#071a35))!important;
}
body.studio-theme .studio-trend-rotator .studio-trend-ticker:is(:hover,:focus-visible){
  border-color:var(--studio-color-accent,#1798ff)!important;
}
body.studio-theme :is(.studio-search-overlay,.studio-work-modal,.trailer-modal,.a2-card-trailer){background:var(--studio-component-overlay-bg)!important}
body.studio-theme :is(.member-message-backdrop,.community-report-modal,.comment-lightbox,.comment-image-lightbox){background:var(--studio-component-overlay-bg)!important}
body.studio-theme :is(.member-message-dialog,.community-report-modal>div,.comment-management-menu>div,.w189-report-modal>section){
  border-color:var(--studio-component-dialog-border)!important;
  background:var(--studio-component-dialog-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.studio-footer,.studio-footer-shell,.studio-compact-shell){
  background:var(--studio-component-footer-bg)!important;
  border-color:var(--studio-color-border-soft)!important;
}

/* Shared controls and surfaces */
body.studio-theme :is(.input,.select,input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="number"],textarea,select):not(.a2-control-surface *){
  border-color:var(--studio-component-control-border);
  background:var(--studio-component-control-bg);
  color:var(--studio-color-text);
}
body.studio-theme :is(.input,.select,input,textarea,select):not(.a2-control-surface *):focus{
  border-color:var(--studio-color-accent)!important;
  box-shadow:var(--studio-focus-ring)!important;
}
/* Compound search controls own one focus ring, on the outer field only. */
body.studio-theme :is(.studio-search-field,.shelf-search,.studio-compact-newsletter,.studio-exact-newsletter) input:not([type="checkbox"]):not([type="hidden"]),
body.studio-theme :is(.studio-search-field,.shelf-search,.studio-compact-newsletter,.studio-exact-newsletter) input:not([type="checkbox"]):not([type="hidden"]):focus{
  min-width:0;
  border:0!important;
  outline:0;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--studio-color-text)!important;
  caret-color:var(--studio-color-accent);
}
body.studio-theme .studio-search-field:focus-within,
body.studio-theme .shelf-search label:focus-within,
body.studio-theme :is(.studio-compact-newsletter,.studio-exact-newsletter) form:focus-within{
  border-color:var(--studio-color-accent)!important;
  box-shadow:var(--studio-focus-ring)!important;
}
body.studio-theme :is(.btn-primary,.primary,[data-primary-action]):not(.a2-control-surface *){
  border-color:transparent!important;
  background:linear-gradient(135deg,var(--studio-color-accent),var(--studio-color-accent-secondary))!important;
  color:var(--studio-color-on-accent,#020713)!important;
}
body.studio-theme :is(.btn,.input,.select,.studio-header-icon,.studio-account-button,.studio-tools-trigger):not(.a2-control-surface *){
  border-radius:var(--studio-component-control-radius);
}
body.studio-theme .btn:not(.btn-primary):not(.btn-gold):not(.btn-danger):not(.danger):not(.a2-control-surface *){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme .pill:not(.vip):not(.danger):not(.success):not(.warning):not(.a2-control-surface *){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text-secondary)!important;
}
body.studio-theme :is(.empty,.title-empty,.filter-empty,.studio-catalog-empty,.shelf-empty){
  border-color:var(--studio-color-border)!important;
  background:var(--studio-page-section)!important;
  color:var(--studio-color-text-muted)!important;
}

/* Every route canvas. Artwork remains owned by its local hero/stage. */
body.studio-theme :is(
  .studio-page,.cine-page,.discovery-page,.episode-shelf,.studio-title-detail,
  .studio-catalog-page,.new-episodes-page,.plans-page,.geo-denied,
  .watch-v146,.watch-v146 .site-main,.dl-journey,.dl-gate,
  .studio-member-center,.member-library-hub,.member-library-page,.watch-history-page,.member-page,
  .finance-center-page,.notification-center-page,.report-center-page,.member-support-page,
  .community-account-page,.member-invoice-page,.plans-premium-page,.checkout-page,.payment-issue-page,
  .news-page,.talent-universe,.artist-journey,.studio-static
){background:var(--studio-page-canvas)!important;color:var(--studio-color-text)}
body.studio-theme.news-page>main.news-path-shell,
body.studio-theme.news-page>main.story-shell{background:transparent!important}
body.studio-theme :is(.cine-library,.discovery-library,.discovery-hub,.studio-catalog-shell,.episode-builder){background:transparent!important}

/* Home and page-builder blocks */
body.studio-theme .studio-responsive-section[data-section-background="seamless"]{background:var(--studio-page-canvas)!important}
body.studio-theme .studio-responsive-section[data-section-background="glow"]{background:radial-gradient(circle at 82% 12%,color-mix(in srgb,var(--studio-color-accent) 14%,transparent),transparent 36%),var(--studio-page-canvas)!important}
body.studio-theme .studio-responsive-section[data-section-background="panel"]{background:var(--studio-page-section-strong)!important}
body.studio-theme .studio-responsive-section[data-section-background="custom"]{background-color:var(--section-background-color)!important}
body.studio-theme .studio-responsive-section[data-section-background="image"]{background-color:var(--studio-page-canvas)}
body.studio-theme .studio-responsive-section:is([data-section-background="seamless"],[data-section-background="glow"]) :is(
  .studio-content,.studio-exact-latest,.studio-exact-series,.studio-exact-premium,.studio-exact-cinema,
  .studio-exact-cta,.studio-hub,.studio-most-watched,.studio-taste,.movie-premiere,.studio-mood,
  .builder-news,.builder-artists,.builder-memberships,.builder-campaigns
){background:transparent!important}
body.studio-theme :is(
  .studio-card,.studio-exact-episode .art,.studio-exact-premiere,.studio-exact-films>a,
  .studio-exact-plan-choices article,.builder-news__card,.builder-artist,.builder-membership,
  .builder-campaign,.news-spectrum-card,.studio-rank-card,.studio-taste-card,.studio-mood-story
){border-color:var(--studio-component-card-border)!important;background:var(--studio-component-card-bg)!important}
body.studio-theme :is(.studio-row-controls button,.studio-heading-tools button,.studio-chips span){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text)!important;
}

/* Legacy public fallbacks use the same contract when no Studio builder page is assigned. */
body.studio-theme .hero{
  background:linear-gradient(90deg,var(--studio-page-canvas) 8%,color-mix(in srgb,var(--studio-page-canvas) 87%,transparent) 50%,color-mix(in srgb,var(--studio-page-canvas) 14%,transparent)),var(--hero) center/cover!important;
}
body.studio-theme .detail-hero{
  background:linear-gradient(90deg,var(--studio-page-canvas) 8%,color-mix(in srgb,var(--studio-page-canvas) 91%,transparent) 58%,color-mix(in srgb,var(--studio-page-canvas) 27%,transparent)),var(--hero) center/cover!important;
}
body.studio-theme :is(.section,.watch-wrap,.detail-hero){color:var(--studio-color-text)}
body.studio-theme :is(.poster,.filters,.episode,.downloads,.source,.pagination a,.pagination span){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme .poster-img{background:var(--studio-page-section-strong)!important}
body.studio-theme :is(.detail-poster,.player){border-color:var(--studio-component-card-border)!important}
body.studio-theme .footer{border-color:var(--studio-color-border-soft)!important;color:var(--studio-color-text-muted)!important}
body.studio-theme .ad-slot small{background:var(--studio-component-overlay-bg)!important;color:var(--studio-color-text-muted)!important}
body.studio-theme :is(.poster-body,.detail,.downloads,.episode){color:var(--studio-color-text)}
body.studio-theme :is(.hero p,.section-head a,.detail p,.poster .meta){color:var(--studio-color-text-muted)!important}
body.studio-theme :is(.source.active,.pagination .active){
  border-color:var(--studio-color-accent)!important;
  background:var(--studio-color-accent)!important;
  color:var(--studio-color-on-accent)!important;
}

/* Catalogue and new-episode library */
body.studio-theme :is(.cine-command,.cine-library-tools>nav,.cine-search-pop>form,.cine-filters>form,.cine-filters>form>header,.cine-moods a,.discovery-switcher,.discovery-genres,.discovery-filter-panel,.studio-discovery-tools,.studio-catalog-filter){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.cine-story,.a2-discovery-card,.studio-catalog-card,.a2-quick-view>section,.a2-card-trailer>section,.cine-peek-sheet){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.cine-search-pop input,.cine-filters select,.cine-filters fieldset span,.discovery-search input,.discovery-filter-form select,.studio-catalog-filter label){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.cine-library-tools>nav a.active,.cine-filters fieldset input:checked+span,.cine-moods a.active,.discovery-switcher a.active,.discovery-genres a.active){
  border-color:color-mix(in srgb,var(--studio-color-accent) 55%,var(--studio-color-border))!important;
  background:color-mix(in srgb,var(--studio-color-accent) 22%,var(--studio-component-card-bg))!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme .a2-quick-backdrop{background:var(--studio-component-overlay-bg)!important}
body.studio-theme .episode-shelf{
  background:var(--studio-page-canvas)!important;
}
body.studio-theme :is(.episode-shelf-head,.ticket-copy footer){border-color:var(--studio-color-border)!important}
body.studio-theme :is(.episode-shelf-head>small,.shelf-search label,.shelf-access,.shelf-country summary,.shelf-country>div,.shelf-dates a,.shelf-day>header time,.episode-ticket,.ticket-episode){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.shelf-search input,.shelf-country>div a,.shelf-dates a){color:var(--studio-color-text-secondary)!important}
body.studio-theme :is(.shelf-access a.active,.shelf-country>div a.active,.shelf-dates a.active){
  border-color:color-mix(in srgb,var(--studio-color-accent) 56%,var(--studio-color-border))!important;
  background:color-mix(in srgb,var(--studio-color-accent) 22%,var(--studio-component-card-bg))!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.shelf-search button,.shelf-empty a){background:var(--studio-color-accent)!important;color:var(--studio-color-on-accent)!important}

/* Title details, season journey and community */
body.studio-theme.studio-title-detail,
body.studio-theme.studio-title-detail .title-experience{background:var(--studio-page-canvas)!important}
body.studio-theme :is(.title-info-strip,.series-progress-card .container,.season-journey>.container,.title-fingerprint>.container,.title-community-v158>.container,.title-community,.discussion-panel,.rating-panel,.title-member-tools){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.journey-episode,.related-row,.cast-row>a,.fingerprint-facts>*,.rating-breakdown,.rating-scale,.community-composer,.viewer-comment,.comment-composer,.comment-login){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
/* V510.0.2: layout wrappers are not cards; let the configured canvas show through. */
body.studio-theme.studio-title-detail :is(.series-progress-card,.title-fingerprint,.season-journey,.title-discovery-v157,.title-community-v158,.episode-rail,.episode-track,.episode-filters,.community-grid,.related-row,.rating-scale){
  background:transparent!important;
}
body.studio-theme.studio-title-detail .season-journey::before{background:none!important}
body.studio-theme.studio-title-detail .title-stage-shade{
  background:linear-gradient(90deg,color-mix(in srgb,var(--studio-page-canvas) 95%,transparent) 0%,color-mix(in srgb,var(--studio-page-canvas) 73%,transparent) 43%,color-mix(in srgb,var(--studio-page-canvas) 45%,transparent) 74%,color-mix(in srgb,var(--studio-page-canvas) 91%,transparent) 100%),linear-gradient(0deg,var(--studio-page-canvas) 0%,transparent 40%),radial-gradient(circle at 72% 35%,transparent,color-mix(in srgb,var(--studio-page-canvas) 60%,transparent) 74%);
}
/* The footer entrance shares the page canvas; its inner surface keeps its own tone. */
body.studio-theme .studio-exact-footer,
body.studio-theme .studio-exact-footer .studio-compact-waves{
  background:var(--studio-page-canvas)!important;
}
body.studio-theme .studio-compact-shell::before{background:none!important}
body.studio-theme :is(.compact-wave-front,.studio-wave-three){fill:var(--studio-component-footer-bg)!important}
body.studio-theme :is(.compact-wave-back,.studio-wave-two){fill:color-mix(in srgb,var(--studio-color-accent) 25%,var(--studio-component-footer-bg))!important}
body.studio-theme :is(.season-switcher button,.journey-controls button,.episode-filters button,.community-heading-actions button,.community-sort button){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text-secondary)!important;
}
body.studio-theme :is(.season-switcher .active,.episode-filters .active,.community-heading-actions .active,.community-sort .active){
  border-color:var(--studio-color-accent)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 22%,var(--studio-component-card-bg))!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.title-community,.title-community-v158){background-image:none!important}
body.studio-theme .title-local-nav{
  border-color:var(--studio-color-border-soft)!important;
  background:color-mix(in srgb,var(--studio-component-header-bg) 94%,transparent)!important;
}
body.studio-theme :is(.community-count,.community-login,.community-reply-form,.comment-management){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}

/* Episode and movie viewing */
body.studio-theme.watch-v146,
body.studio-theme.watch-v146 .site-main{background:var(--studio-page-canvas)!important}
body.studio-theme :is(.w146-player-shell,.w146-nav,.w146-library,.w146-reactions,.w146-comments,.w146-side-card,.w146-next-card,.w146-download-link,.w146-problem,.w186-episode-card,.w148-control-strip,.w148-similar,.w150-quick-rating,.w203-movie-control,.w203-movie-community-shell,.w237-progress-card,.w305-manual-completion){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.w146-serverbar,.w146-progress,.w146-comment-list>article,.w186-episode-card>header){border-color:var(--studio-color-border)!important}
body.studio-theme :is(.w146-tier-switch,.w146-server-select,.w146-server-health,.w146-refresh,.w146-back,.w146-library-tools label,.w146-episode-grid>a,.w146-reaction-list button,.w146-comment-form,.reply-form,.w187-switch-card,.w187-progress-stack>* ){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
body.studio-theme :is(.w146-tier-switch .active,.w146-episode-grid>a.active,.w146-reaction-list button.selected){
  border-color:var(--studio-color-accent)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 24%,var(--studio-component-control-bg))!important;
}
body.studio-theme :is(.w147-next-overlay,.w146-loading){background:var(--studio-component-overlay-bg)!important}

/* Member workspace and account routes */
body.studio-theme:has(.a2-member-workspace),
body.studio-theme:has(.a2-member-workspace)>main{
  background:var(--studio-page-canvas)!important;
}
body.studio-theme :is(.a2-workspace-shell,.member-command-hero,.member-plan-pulse,.member-wallet-pulse,.member-destinations,.member-watch-resume,.member-activity-panel,.member-help-panel){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.a2-workspace-nav a,.member-destinations a,.member-watch-resume>div>a,.member-payment-list>a){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
body.studio-theme :is(.member-page-head,.list-page-head,.finance-hero,.notification-hero,.report-hero,.support-hero,.support-create-head,.support-thread-head,.library-hub-hero,.member-library-hero-v208,.watch-history-head,.invoice-hero){
  border-color:var(--studio-component-card-border)!important;
  background:radial-gradient(circle at 12% 30%,color-mix(in srgb,var(--studio-color-accent) 20%,transparent),transparent 31%),linear-gradient(125deg,color-mix(in srgb,var(--studio-color-surface) 82%,var(--studio-color-accent)),var(--studio-component-card-bg) 62%,color-mix(in srgb,var(--studio-page-canvas) 86%,var(--studio-color-accent-secondary)))!important;
}
body.studio-theme :is(.library-hub-tabs>a,.library-hub-filters,.library-hub-empty,.member-library-filters-v208,.member-library-v208>article,.member-library-empty-v208,.watch-history-tabs,.watch-history-grid>article,.watch-history-empty,.account-settings-card,.member-card,.finance-panel,.finance-filters,.finance-row,.notification-card,.notification-filters,.notification-kind-tabs,.report-form-card,.report-guide,.report-item,.report-filters,.community-preference-intro,.community-preferences,.notification-sound-settings,.support-form-card,.support-help-card,.support-ticket-row,.support-filters,.support-reply,.support-thread,.invoice-card){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.security-card,.subscription-panel,.discussion-activity-summary>span,.activity-grid>article,.filtered-empty,.notification-summary-v168>a,.member-message-dialog){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.library-hub-filters input,.library-hub-filters select,.member-library-filters-v208 input,.member-library-filters-v208 select,.finance-filters input,.finance-filters select,.notification-filters input,.notification-filters select,.report-form-card input,.report-form-card select,.report-form-card textarea,.support-form-card input,.support-form-card select,.support-form-card textarea,.support-reply textarea){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.library-hub-tabs>a.active,.watch-history-tabs a.active,.finance-tabs a.active,.notification-kind-tabs a.active){
  border-color:var(--studio-color-accent)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 24%,var(--studio-component-card-bg))!important;
  color:var(--studio-color-text)!important;
}

/* News, artists, static content, forums and chat */
body.studio-theme :is(.news-ranking,.story-work,.story-person,.story-related,.story-connections,.news-editor-picks,.builder-news__card,.news-card,.breaking-strip,.featured-side>a,.news-filter,.article-share,.linked-item,.linked-artists>a,.article-nav>a){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.news-path-categories a,.news-path-tools select,.story-tags span,.story-tools button){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
body.studio-theme :is(.news-path-categories a.active,.news-path-tools button){background:var(--studio-color-accent)!important;color:var(--studio-color-on-accent)!important}
body.studio-theme :is(.story-context>section,.story-masthead__copy,.artist-timeline,.career-year){border-color:var(--studio-color-border-soft)!important}
body.studio-theme :is(.talent-filter-drawer,.talent-card,.artist-career-radar,.career-work,.artist-journey-empty){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.studio-static__grid article,.studio-static__help,.section .downloads,.chat-box){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.download-row,.chat-form){border-color:var(--studio-color-border)!important}

/* Plans, checkout, invoices and downloads. Payment method grids stay transparent; only their articles are panels. */
body.studio-theme :is(.premium-plan-card,.premium-benefits,.premium-comparison,.premium-faq,.premium-assurance,.checkout-summary,.checkout-payment,.checkout-trust,.checkout-wallet,.payment-issue-page>section,.dl-summary,.dl-safety,.dl-server-panel,.dl-help,.dl-gate-card){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.member-plan-status,.premium-guest-strip,.premium-wallet-topup,.premium-payment-methods>article,.premium-stage-card,.member-payment-dialog,.paypal-method-card,.paypal-recurring-summary){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme .premium-plans-hero{
  border-color:var(--studio-component-card-border)!important;
  background:radial-gradient(circle at 82% 12%,color-mix(in srgb,var(--studio-color-accent) 22%,transparent),transparent 38%),var(--studio-page-section-strong)!important;
}
body.studio-theme :is(.paypal-billing-choice button,.member-payment-dialog>header){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text-secondary)!important;
}
body.studio-theme .paypal-billing-choice button.is-active{
  border-color:var(--studio-color-accent)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 24%,var(--studio-component-control-bg))!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme :is(.premium-plan-card.is-featured,.member-plan-choice.is-selected,.payment-option-card.is-selected){
  border-color:var(--studio-color-accent)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--studio-color-accent) 20%,var(--studio-component-card-bg)),var(--studio-component-card-bg))!important;
}
body.studio-theme :is(.checkout-steps,.dl-server,.dl-gate-server){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}

/* Compatibility surfaces that previously carried independent fixed gradients. */
body.studio-theme :is(.member-hero,.member-command-hero){
  border-color:var(--studio-component-card-border)!important;
  background:radial-gradient(circle at 14% 18%,color-mix(in srgb,var(--studio-color-accent) 20%,transparent),transparent 34%),var(--studio-page-section-strong)!important;
}
body.studio-theme :is(
  .member-hero-list>a,.member-discovery-grid a,.member-identity-card,.member-empty-state,
  .support-stats article,.support-message:not(.admin),.finance-summary>article,.finance-health,
  .report-summary,.notification-summary>article
){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.member-upgrade,.member-promo){
  border-color:color-mix(in srgb,#f7c65b 30%,var(--studio-component-card-border))!important;
  background:radial-gradient(circle at 14% 8%,color-mix(in srgb,#f7c65b 16%,transparent),transparent 37%),var(--studio-component-card-bg)!important;
}
body.studio-theme :is(
  .community-card,.community-comment,.community-empty,.rating-login,.journey-empty,
  .discovery-column,.w146-comment-form,
  .w146-empty,.w146-no-comments,.w435-player-gate,.dl-stage,.dl-account,.dl-gate-note
){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.plan-card,.plans-topup,.plans-wallet-note,.plans-trust b,.checkout-unavailable){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.chat-message:not(.admin),.geo-denied>section){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme .geo-denied{
  background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--studio-color-accent) 16%,transparent),transparent 42%),var(--studio-page-canvas)!important;
}
body.studio-theme .geo-denied :is(p,em,small){color:var(--studio-color-text-muted)!important}
body.studio-theme .geo-denied :is(i,section>div){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
body.studio-theme .studio-static{
  background:radial-gradient(circle at 14% 10%,color-mix(in srgb,var(--studio-color-accent) 16%,transparent),transparent 28%),var(--studio-page-canvas)!important;
}
body.studio-theme :is(.studio-static__hero>span,.studio-static__grid i,.studio-static__help){
  border-color:color-mix(in srgb,var(--studio-color-accent) 28%,var(--studio-color-border))!important;
}
body.studio-theme .studio-static__help a{background:var(--studio-color-accent)!important;color:var(--studio-color-on-accent)!important}
body.studio-theme :is(
  .studio-card,.studio-catalog-card,.a2-discovery-card,.episode-ticket,.journey-episode,
  .related-row,.career-work,.talent-card,.library-work-v208,
  .member-library-v208>article,.watch-history-grid>article,.finance-row,.notification-card,
  .report-item,.support-ticket-row,.premium-plan-card,.plan-card,.dl-server,.chat-message
){border-radius:var(--studio-component-card-radius)!important}

/* Authentication uses the same platform tokens without inheriting site navigation. */
body.identity-v4.identity-public-theme{
  background:var(--studio-page-canvas)!important;
  color:var(--studio-color-text)!important;
  font-family:var(--studio-font-family-ui,"Alexandria",Tahoma,Arial,sans-serif)!important;
  font-size:var(--studio-type-scale-percent,100%);
}
body.identity-v4.identity-public-theme :is(.identity-shell,.identity-access){background:var(--studio-page-canvas)!important}
body.identity-v4.identity-public-theme .identity-nav{
  border-color:var(--studio-color-border-soft)!important;
  background:var(--studio-component-header-bg)!important;
  color:var(--studio-color-text)!important;
}
body.identity-v4.identity-public-theme :is(.selected-auth-plan,.preview-notice,.identity-security,.premiere-feature,.premiere-pulse,.password-health,.social-button,.auth-steps>span,.pin-cells i,.journey-map article){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
  color:var(--studio-color-text)!important;
}
body.identity-v4.identity-public-theme :is(.access-head,.identity-security,.journey-map,.premiere-facts){border-color:var(--studio-color-border-soft)!important}
body.identity-v4.identity-public-theme :is(.access-head,.identity-security){background:var(--studio-page-section)!important}
body.identity-v4.identity-public-theme :is(.field,input,select,textarea,.social-button,.password-toggle){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text)!important;
}
body.identity-v4.identity-public-theme :is(button[type="submit"],.identity-primary){
  background:linear-gradient(135deg,var(--studio-color-accent),var(--studio-color-accent-secondary))!important;
  color:var(--studio-color-on-accent)!important;
}
body.identity-v4.identity-public-theme :is(.identity-form strong,.access-head b,.identity-security b){color:var(--studio-color-text)!important}
body.identity-v4.identity-public-theme :is(.identity-form .sub,.field label,.check,.switch,.access-head span,.identity-security small,.premiere-copy>p,.premiere-pulse small,.journey-map article,.premiere-facts){color:var(--studio-color-text-muted)!important}
body.identity-v4.identity-public-theme :is(.eyebrow,.identity-form .sub strong,.switch a,.auth-secondary button,.auth-restart button,.premiere-copy>span){color:var(--studio-color-accent)!important}
body.identity-v4.identity-public-theme .premiere-visual{background:var(--studio-component-card-bg)!important}
body.identity-v4.identity-public-theme .premiere-shade{
  background:linear-gradient(90deg,color-mix(in srgb,var(--studio-page-canvas) 92%,transparent),color-mix(in srgb,var(--studio-page-canvas) 54%,transparent))!important;
}
body.identity-v4.identity-public-theme :is(.journey-line,.strength-track,.password-meter i){background:var(--studio-component-control-bg)!important}
body.identity-v4.identity-public-theme :is(.auth-steps>span.active,.journey-map article.active){
  border-color:var(--studio-color-accent)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 22%,var(--studio-component-card-bg))!important;
  color:var(--studio-color-text)!important;
}
/* Support shares complete color pairs with the active palette, including personal palettes.
   Keep the independently configured launcher accent; the conversation uses site tokens. */
body:is(.studio-theme,.identity-public-theme) .a2-support-panel{
  --support-accent:var(--studio-color-accent);
  color:var(--studio-color-text)!important;
  border-color:var(--studio-component-dialog-border)!important;
  background:var(--studio-component-dialog-bg)!important;
  box-shadow:var(--studio-component-dialog-shadow)!important;
  color-scheme:var(--studio-color-scheme);
}
body:is(.studio-theme,.identity-public-theme) :is(.a2-support-panel>header,.a2-support-start,.a2-support-chat,.a2-support-closed-card,.a2-support-launch,.a2-support-launch-copy){
  color:var(--studio-color-text)!important;
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-dialog-bg)!important;
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-welcome,.a2-support-departments>button,.a2-support-selected,.a2-support-context,.a2-support-composer){
  color:var(--studio-color-text)!important;
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-brand strong,.a2-support-welcome b,.a2-support-step,.a2-support-step b,.a2-support-departments b,.a2-support-selected b,.a2-support-compose-heading b,.a2-support-closed-card>b){color:var(--studio-color-heading)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-brand em,.a2-support-welcome small,.a2-support-step small,.a2-support-departments small,.a2-support-selected>span,.a2-support-compose-heading small,.a2-support-start label,.a2-support-first-message>span,.a2-support-identity label>span,.a2-support-context b,.a2-support-closed-card>p){color:var(--studio-color-text-secondary)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-start footer,.a2-support-state,.a2-support-message time,.a2-support-composer>small,.a2-support-back-site){color:var(--studio-color-text-muted)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-brand small,.a2-support-welcome>span,.a2-support-context small,.a2-support-typing,.a2-support-departments em){color:var(--studio-color-link)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-departments>button>i,.a2-support-step>span,.a2-support-compose-heading>span){
  color:var(--studio-color-link)!important;
  background:color-mix(in srgb,var(--studio-color-accent) 12%,var(--studio-component-card-bg))!important;
  border-color:color-mix(in srgb,var(--studio-color-accent) 35%,var(--studio-color-border))!important;
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-brand>span,.a2-support-primary,.a2-support-new-primary,.a2-support-composer button,.a2-support-message.mine .a2-support-bubble){
  background:var(--studio-color-accent)!important;
  color:var(--studio-color-on-accent)!important;
  border-color:var(--studio-color-accent)!important;
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-head-actions button,.a2-support-selected button,.a2-support-attach,.a2-support-start input,.a2-support-start select,.a2-support-start textarea,.a2-support-composer textarea){
  color:var(--studio-color-text)!important;
  background:var(--studio-component-control-bg)!important;
  border-color:var(--studio-component-control-border)!important;
  caret-color:var(--studio-color-text);
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(input,textarea)::placeholder{color:var(--studio-color-text-muted)!important;opacity:1}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-departments>button,.a2-support-head-actions button,.a2-support-selected button,.a2-support-attach):is(:hover,:focus-visible){
  background:var(--studio-component-card-raised-bg)!important;
  border-color:var(--studio-color-link)!important;
  color:var(--studio-color-text)!important;
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(button,a,input,select,textarea,.a2-support-attach):focus-visible{outline:2px solid var(--studio-color-link)!important;outline-offset:3px;box-shadow:var(--studio-focus-ring)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(input,select,textarea):focus{border-color:var(--studio-color-link)!important;box-shadow:var(--studio-focus-ring)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-message.agent .a2-support-bubble{
  color:var(--studio-color-text)!important;
  background:var(--studio-component-card-bg)!important;
  border-color:var(--studio-component-card-border)!important;
}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-attachments a{color:inherit!important;background:color-mix(in srgb,currentColor 8%,transparent)!important;border-color:color-mix(in srgb,currentColor 25%,transparent)!important;text-decoration:underline;text-underline-offset:3px}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-files,.a2-support-system){color:var(--studio-color-text-secondary)!important;background:var(--studio-component-control-bg)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-error:not(:empty){color:var(--studio-color-danger)!important;border-color:color-mix(in srgb,var(--studio-color-danger) 40%,var(--studio-color-border))!important;background:color-mix(in srgb,var(--studio-color-danger) 10%,var(--studio-component-dialog-bg))!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-state span{border-color:var(--studio-component-control-border)!important;border-top-color:var(--studio-color-link)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is(.a2-support-brand em i,.a2-support-context>span.active){background:var(--studio-color-success)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--studio-color-success) 12%,transparent)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel :is([data-team-presence].is-offline i,.a2-support-context>span:not(.active)){background:var(--studio-color-warning)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--studio-color-warning) 12%,transparent)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-closed{background:color-mix(in srgb,var(--studio-component-dialog-bg) 92%,transparent)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-closed-card{box-shadow:var(--studio-shadow-card)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-resolved{background:color-mix(in srgb,var(--studio-color-success) 14%,var(--studio-component-dialog-bg))!important;color:var(--studio-color-success)!important;box-shadow:none!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-closed-card>small{color:var(--studio-color-success)!important}
body:is(.studio-theme,.identity-public-theme) .a2-support-panel .a2-support-back-site:hover{color:var(--studio-color-link-hover)!important}

/* Named roles apply to text on interface surfaces, not titles painted over artwork. */
body.studio-theme :is(.studio-heading,.studio-exact-section-head,.studio-exact-cinema-head,.studio-search-title,.episode-shelf-head,.cine-library-head,.discovery-library-head,.community-heading,.discovery-hub-head,.fingerprint-head,.journey-head,.w146-comments>header,.w146-reactions>header,.member-page-head,.list-page-head,.finance-hero,.notification-hero,.report-hero,.support-hero,.library-hub-hero,.watch-history-head,.studio-static__hero,.dl-page-head) :is(h1,h2,h3),
body.studio-theme :is(.studio-compact-links strong,.studio-compact-newsletter strong,.studio-exact-foot-col strong){color:var(--studio-color-heading)!important}
body.studio-theme :is(.poster-body,.ticket-copy,.career-work,.library-work-v208,.journey-episode) :is(h2,h3,strong){color:var(--studio-color-heading)!important}
body.studio-theme :is(.studio-nav-dropdown,.studio-search-chips button,.studio-exact-square){
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
  color:var(--studio-color-text)!important;
}
body.studio-theme .studio-nav-dropdown{background:var(--studio-component-dialog-bg)!important}
body.studio-theme :is(.studio-trend-ticker strong,.studio-exact-head nav>a,.studio-nav-parent>button,.studio-nav-dropdown a){color:var(--studio-color-text)!important}
body.studio-theme :is(.studio-search-view-all,.studio-compact-links a,.studio-exact-foot-col a,.studio-static__grid a,.dl-gate-back,.section-head>a){color:var(--studio-color-link)!important}
body.studio-theme :is(.studio-search-view-all,.studio-compact-links a,.studio-exact-foot-col a,.studio-static__grid a,.dl-gate-back,.section-head>a):is(:hover,:focus-visible){color:var(--studio-color-link-hover)!important}
body.studio-theme :is(.studio-compact-brand p,.studio-compact-bottom,.studio-compact-newsletter p,.studio-exact-foot-brand p,.studio-exact-footer-bottom){color:var(--studio-color-text-muted)!important}
body.studio-theme :is(.studio-compact-newsletter,.studio-footer-letter){
  border-color:var(--studio-component-card-border)!important;
  background:var(--studio-component-card-bg)!important;
}
body.studio-theme :is(.studio-compact-newsletter,.studio-exact-newsletter) form{
  border-color:var(--studio-component-control-border)!important;
  background:var(--studio-component-control-bg)!important;
}
body.studio-theme :is(.poster,.episode-ticket,.journey-episode,.career-work,.library-work-v208,.notification-card,.report-item,.support-ticket-row):is(:hover,:focus-within){
  border-color:var(--studio-color-border-strong)!important;
  background:var(--studio-component-card-raised-bg)!important;
}
body.studio-theme :is(.alert.success,.pill.success):not(.a2-control-surface *),
body.identity-v4.identity-public-theme .alert.success{--studio-feedback:var(--studio-color-success)}
body.studio-theme :is(.alert.error,.alert.danger,.pill.danger):not(.a2-control-surface *),
body.identity-v4.identity-public-theme .alert.error{--studio-feedback:var(--studio-color-danger)}
body.studio-theme :is(.alert.warning,.pill.warning):not(.a2-control-surface *){--studio-feedback:var(--studio-color-warning)}
body.studio-theme :is(.alert.info,.pill.info):not(.a2-control-surface *){--studio-feedback:var(--studio-color-info)}
body.studio-theme :is(.alert,.pill):is(.success,.error,.danger,.warning,.info):not(.a2-control-surface *),
body.identity-v4.identity-public-theme .alert:is(.success,.error){
  color:var(--studio-feedback)!important;
  border-color:color-mix(in srgb,var(--studio-feedback) 50%,var(--studio-color-border))!important;
  background:color-mix(in srgb,var(--studio-feedback) 10%,var(--studio-component-card-bg))!important;
}
body.studio-theme :is(.studio-compact-brand>span i,.studio-live-state i){background:var(--studio-color-success)!important}
/* A compound auth field has one surface and one focus indicator, not nested boxes. */
body.identity-v4.identity-public-theme .identity-form{background:transparent!important}
body.identity-v4.identity-public-theme .identity-form h2{color:var(--studio-color-heading)!important}
body.identity-v4.identity-public-theme .field :is(input,select,textarea){
  background:transparent!important;
  border:0!important;
  outline:0;
  box-shadow:none!important;
}
body.identity-v4.identity-public-theme .field:focus-within{
  border-color:var(--studio-color-accent)!important;
  box-shadow:var(--studio-focus-ring)!important;
}
body.identity-v4.identity-public-theme :is(.switch a,.identity-back,.auth-secondary button,.auth-restart button){color:var(--studio-color-link)!important}
body.identity-v4.identity-public-theme :is(.switch a,.identity-back,.auth-secondary button,.auth-restart button):is(:hover,:focus-visible){color:var(--studio-color-link-hover)!important}

/* Muted copy, keyboard focus and reduced motion retain their shared contracts. */
body.studio-theme :is(.meta,.localized-title-secondary,.localized-secondary-title,.studio-cine-secondary-title){color:var(--studio-color-text-muted)!important}
body.studio-theme :is(a,button,input,select,textarea):not(.a2-control-surface *):focus-visible{outline-color:var(--studio-color-accent)!important}
@media(prefers-reduced-motion:reduce){body.studio-theme *,body.identity-v4 *{scroll-behavior:auto!important}}

/* V510.1.8 — compact header menus share the template's typography scale.
   These roles do not resize compact header triggers or change palette colors. */
body.studio-theme .studio-site-header :is(
  .studio-tools-popover,.studio-notification-popover,.studio-account-popover,
  .studio-membership-popover,.studio-nav-dropdown
),
body.studio-theme .studio-search-overlay .studio-quick-search{
  font-family:var(--studio-font-family-ui,inherit);
  font-size:var(--studio-type-ui-body,.8125rem);
  line-height:var(--studio-leading-ui-body,1.65);
}
body.studio-theme .studio-site-header :is(
  .studio-tools-popover>header strong,.studio-notification-popover>header strong,
  .studio-membership-popover>header strong,.studio-member-head strong
),
body.studio-theme .studio-search-overlay .studio-search-title{
  font-size:var(--studio-type-ui-heading,1.1875rem)!important;
  line-height:var(--studio-leading-ui-title,1.5)!important;
  font-weight:700!important;
}
body.studio-theme .studio-site-header :is(
  .studio-tools-grid>a b,.studio-language-choice b,.studio-user-palette b,
  .studio-preview-item strong,.studio-preview-empty strong,
  .studio-account-popover>a b,.studio-member-links a b,.studio-member-stats b,
  .studio-membership-popover dd,.studio-nav-dropdown>a,.studio-nav-all span
),
body.studio-theme .studio-search-overlay :is(.studio-search-results strong,.studio-search-field input){
  font-size:var(--studio-type-ui-title,.9375rem)!important;
  line-height:var(--studio-leading-ui-title,1.5)!important;
  font-weight:700!important;
}
body.studio-theme .studio-site-header :is(
  .studio-tools-tabs button,.studio-notification-tabs button,
  .studio-tools-grid>a small,.studio-language-choice small,.studio-preview-item small,
  .studio-preview-empty small,.notification-preview-loading,.studio-tools-panel>p,
  .studio-user-palettes>p,.studio-user-palette small,.studio-user-palette-hint,
  .studio-tools-accents .studio-accent-reset,
  .studio-tools-popover>header>a,.studio-notification-popover>header>a,
  .studio-notification-popover>footer a,
  .studio-member-head small,.studio-member-head>a,.studio-member-links a small,
  .studio-account-popover>a small,.studio-member-logout button span,
  .studio-membership-popover>p,.studio-membership-actions a,.studio-nav-all small
),
body.studio-theme .studio-search-overlay :is(
  .studio-search-results button b,.studio-search-results button>i,
  .studio-search-chips button,.studio-search-chips>span,.studio-search-view-all,
  .studio-search-results>p
){
  font-size:var(--studio-type-ui-body,.8125rem)!important;
  line-height:var(--studio-leading-ui-body,1.65)!important;
  font-weight:500!important;
}
body.studio-theme .studio-site-header :is(.studio-tools-tabs button,.studio-notification-tabs button){font-weight:700!important}
body.studio-theme .studio-site-header :is(
  .studio-tools-popover>header small,.studio-notification-popover>header small,
  .studio-membership-popover>header small,.studio-membership-popover>header>span,
  .studio-preview-item em,.studio-notification-tabs button b,
  .studio-member-stats small,.studio-member-logout button small,.studio-membership-popover dt
),
body.studio-theme .studio-search-overlay :is(.studio-search-results-head small,.studio-search-results-head span,.studio-search-field kbd){
  font-size:var(--studio-type-ui-meta,.75rem)!important;
  line-height:var(--studio-leading-ui-title,1.5)!important;
  font-weight:500!important;
}
body.studio-theme .studio-site-header :is(
  .studio-tools-popover>header small,.studio-notification-popover>header small,
  .studio-membership-popover>header small
){letter-spacing:.06em!important}

/* Descriptions and titles may wrap. A longer translation must not be ellipsized. */
body.studio-theme .studio-site-header :is(
  .studio-tools-grid>a span,.studio-language-choice>span,.studio-member-head>div,
  .studio-member-links a>span,.studio-preview-item>button>span
){min-width:0}
body.studio-theme .studio-site-header :is(
  .studio-tools-grid>a b,.studio-tools-grid>a small,.studio-language-choice b,.studio-language-choice small,
  .studio-user-palette b,.studio-user-palette small,.studio-preview-item strong,.studio-preview-item small,
  .studio-member-head strong,.studio-member-head small,.studio-member-links a b,.studio-member-links a small,
  .studio-account-popover>a b,.studio-account-popover>a small,.studio-membership-popover dd,
  .studio-membership-popover>header strong,.studio-nav-dropdown>a,.studio-nav-all span,.studio-nav-all small
),
body.studio-theme .studio-search-overlay :is(.studio-search-results strong,.studio-search-results button b){
  white-space:normal!important;
  overflow-wrap:anywhere;
  text-overflow:clip!important;
  -webkit-line-clamp:unset!important;
  max-height:none!important;
}
body.studio-theme .studio-site-header :is(.studio-tools-grid>a,.studio-language-choice,.studio-user-palette,.studio-member-links a){
  height:auto!important;
  align-items:center;
}
body.studio-theme .studio-site-header .studio-tools-grid>a{min-height:80px}
/* Keep mobile text entry legible independently of compact menu copy. */
@media(max-width:820px){
  body.studio-theme .studio-search-overlay .studio-search-field input{
    font-size:max(16px,var(--studio-type-ui-title,.9375rem))!important;
  }
}
body.studio-theme .studio-site-header .studio-preview-item>button{
  min-height:96px;
  align-items:start;
  padding:14px 16px;
}
body.studio-theme .studio-site-header .studio-preview-item>button>span{gap:5px}
body.studio-theme .studio-site-header .studio-preview-item strong,
body.studio-theme .studio-site-header .studio-preview-item small{overflow:visible!important}
body.studio-theme .studio-site-header .studio-notification-popover>footer{
  flex-wrap:wrap;
  gap:8px 16px;
}
body.studio-theme .studio-site-header .studio-notification-popover>footer a{padding-block:5px}

/* Keep readable tabs reachable when the translated labels exceed the row. */
body.studio-theme .studio-site-header :is(.studio-notification-tabs,.studio-tools-tabs){
  display:flex;
  overflow-x:auto;
  scrollbar-width:thin;
  overscroll-behavior-inline:contain;
}
body.studio-theme .studio-site-header .studio-notification-tabs button{
  flex:1 0 auto;
  width:auto!important;
  min-height:44px;
  gap:6px;
  padding:10px 12px!important;
  white-space:nowrap;
}
body.studio-theme .studio-site-header .studio-tools-tabs button{
  flex:1 0 auto;
  min-height:44px;
  padding:10px 12px!important;
  white-space:nowrap;
}
body.studio-theme .studio-site-header .studio-notification-tabs button b{
  box-sizing:border-box;
  min-width:24px;
  height:auto;
  min-height:24px;
  padding:2px 5px;
}
body.studio-theme .studio-site-header :is(.studio-tools-popover>header,.studio-notification-popover>header){gap:12px}
body.studio-theme .studio-site-header :is(.studio-tools-popover>header>div,.studio-notification-popover>header>div){min-width:0}
body.studio-theme .studio-site-header :is(.studio-tools-popover>header>button,.studio-notification-popover>header>a){flex-shrink:0}
body.studio-theme .studio-site-header .studio-tools-popover>header>button{
  min-width:40px;
  min-height:40px;
  font-size:var(--studio-type-ui-heading,1.1875rem)!important;
}
body.studio-theme .studio-site-header .studio-tools-accents .studio-accent-reset{min-height:36px}

/* Let the text determine row height; keep the body of open menus scrollable. */
body.studio-theme .studio-site-header :is(.studio-tools-tabs button,.studio-notification-tabs button){height:auto!important}
body.studio-theme .studio-site-header .studio-notification-tabs button b{font-family:inherit!important}
body.studio-theme .studio-site-header :is(.studio-tools-popover,.studio-notification-popover,.studio-membership-popover){
  max-height:min(42rem,calc(100dvh - var(--studio-mobile-header-popover-top,var(--studio-shell-clearance,118px)) - 16px))!important;
}
body.studio-theme .studio-site-header :is(.studio-tools-popover,.studio-notification-popover).is-open{
  display:flex!important;
  flex-direction:column;
  overflow:hidden!important;
}
body.studio-theme .studio-site-header :is(.studio-tools-popover,.studio-notification-popover)>:is(header,nav,footer){flex:0 0 auto}
body.studio-theme .studio-site-header .studio-notification-popover .studio-notification-preview{
  flex:1 1 auto;
  min-height:0;
  max-height:none!important;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.studio-theme .studio-site-header .studio-tools-popover .studio-tools-panel{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.studio-theme .studio-site-header .studio-membership-popover{overflow-y:auto!important}
body.studio-theme .studio-site-header .studio-membership-popover>header>span{
  white-space:normal!important;
  overflow-wrap:anywhere;
  max-width:100%;
}
@media(max-width:600px){
  body.studio-theme .studio-site-header .studio-membership-popover>header>span{
    grid-column:2/-1;
    justify-self:start;
  }
}
