/* Falue surface elevation: enabled only in light mode. Existing dark values
   remain the fallback in each component. No polling or runtime DOM scans. */
html:not(.falue-night-mode):not(.falue-rating-night-mode):not(.night-mode):not([data-theme="dark"]):not(#night-mode):not(:has(#night-mode-css))
body:not(.dark):not(.night_mode):not(.night-mode):not(#night-mode):not([mode="night"]):not([data-theme="dark"]):not([data-falue-ambient-theme="dark"]):not(:has(.falue-desktop-mode-link[href*="mode=day"])) {--falue-light-elevation:0 3px 10px rgba(24,27,38,.045);}

@layer falue-light-polish {
  /* Menus injected by JavaScript also receive the same light-only elevation. */
  html:not(.falue-night-mode):not(.falue-rating-night-mode):not(.night-mode):not([data-theme="dark"]):not(#night-mode):not(:has(#night-mode-css))
  body:not(.dark):not(.night_mode):not(.night-mode):not(#night-mode):not([mode="night"]):not([data-theme="dark"]):not([data-falue-ambient-theme="dark"]):not(:has(.falue-desktop-mode-link[href*="mode=day"]))
  :is(.falue-signature-pill, .fsh-row, .fph-row, .fca-choice, .fvps-row,
      .fvps-disc, .fsp-row, .flpc-action:has(.flpc-chevron), .fda-tool,
      .fcm-menu-combined .fcm-living-row, .fcm-menu-combined .falue-pref-row) {box-shadow:0 3px 10px rgba(24,27,38,.045) !important;}
  /* Keep a single diameter for each paired component, rather than forcing
     different-sized controls throughout the site to one global height. */
  .fl-paired-pill, .falue-menu-footer-action, .fvps-row,
  .falue-messages-all {--falue-pair-height:44px;}
  .ff-family-add {--falue-pair-height:46px;}
  .frp-action {--falue-pair-height:54px;}
  .fr-gate-row {--falue-pair-height:64px;}
  :is(.fl-paired-pill, .falue-menu-footer-action, .fvps-row,
      .falue-messages-all, .ff-family-add, .frp-action, .fr-gate-row) {box-sizing:border-box !important;height:var(--falue-pair-height) !important;min-height:var(--falue-pair-height) !important;}
  .fl-paired-pill > .fl-paired-disc,
  .falue-menu-footer-action > .falue-rail-create-icon,
  .fvps-row > .fvps-disc,
  .falue-messages-all > .falue-messages-all-icon,
  .ff-family-add > .ff-family-disc,
  .frp-action > .frp-circle,
  .fr-gate-row > .fr-gate-disc {box-sizing:border-box !important;width:var(--falue-pair-height) !important;min-width:var(--falue-pair-height) !important;height:var(--falue-pair-height) !important;min-height:var(--falue-pair-height) !important;flex:0 0 var(--falue-pair-height) !important;border-radius:50% !important;}
  .frp-action {padding:0 12px 0 0 !important;border-width:0 !important;}
}

/* Footer separators are gradients, not elevated rectangular surfaces. */
@layer falue-light-polish {
html:not(.falue-night-mode):not(.falue-rating-night-mode):not(.night-mode):not([data-theme="dark"]):not(#night-mode):not(:has(#night-mode-css))
body:not(.dark):not(.night_mode):not(.night-mode):not(#night-mode):not([mode="night"]):not([data-theme="dark"]):not([data-falue-ambient-theme="dark"]):not(:has(.falue-desktop-mode-link[href*="mode=day"]))
.falue-review-placard:not([data-review-empty="1"]) > .review_list_head::before {content:"" !important;inset:0 0 auto !important;height:8px !important;width:auto !important;box-shadow:none !important;border:0 !important;background:linear-gradient(to bottom,rgba(24,27,38,.055),transparent) !important;-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent) !important;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent) !important;pointer-events:none !important;}
}

/* Global placard separators: fade at both ends without a raised rectangle. */
@layer falue-light-polish {
[data-falue-post-placard][data-falue-slim-footer="1"] > .panel > .post-description::after,
.falue-cd.falue-comments-open [data-falue-comment-footer="1"]::before,
:is(#fst-viewer,#falue-master-comments,#fed-layer) .fvc-footer::before {box-shadow:none!important;border:0!important;border-radius:0!important;height:8px!important;width:auto!important;left:0!important;right:0!important;background:linear-gradient(to bottom,light-dark(rgba(24,27,38,.055),rgba(0,0,0,.18)),transparent)!important;-webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)!important;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)!important;pointer-events:none!important;}
[data-falue-post-placard][data-falue-slim-footer="1"] > .panel > .post-description::after {top:auto!important;bottom:40px!important;}
.falue-cd.falue-comments-open [data-falue-comment-footer="1"]::before,
:is(#fst-viewer,#falue-master-comments,#fed-layer) .fvc-footer::before {top:0!important;bottom:auto!important;}
}
