/* cutflux-glass.css: the liquid-glass button and surface system (task 416, owner call 2026-11-08):
 *   "Do what you did with the liquid glass effect on the bottom navigation bar to pretty much all of our buttons and
 *    everything, in our colour and tone: black and blue."
 *   "There shouldn't be a bar at the top that says go home, preview, or anything like that. It should just be it."
 *
 * 1. Tokens (--gl-*) and classes any page can use:
 *      .cf-glass-btn                     base (44px min, capsule-ish 14px corners, rim + specular, press spring)
 *      .cf-glass-btn--primary            blue-tinted glass, white text
 *      .cf-glass-btn--secondary          smoked black glass, white text (in both themes: black and blue)
 *      .cf-glass-chip / [aria-pressed]   glass chip; selected = blue glass
 *      .cf-glass-seg                     glass track for a segmented control; the selected button is a lens
 *      .cf-glass-sheet                   frosted sheet / floating panel (the ONLY place that blurs, besides the bar)
 * 2. The same looks mapped onto the existing buttons, chips, switches and sheets of the pages that load this file.
 * 3. Phones: the top header BARS go away (no background, no hairline, no "back home" button where the tab bar is there).
 *
 * Rules kept: no colour gradients on controls (glass = translucent tint + inner rim + 1px specular line + soft
 * shadow); text contrast >= 4.5:1 (white on primary: 6.3:1 over black, 5.6:1 over the light page; white on the
 * smoked glass >= 12:1). Performance: buttons and chips do NOT use backdrop-filter (dozens of stacked blurs would
 * cost frames on phones); their tint is dense enough to read as glass on a flat page. Only the tab bar and the one
 * open sheet blur, and they fall back to solid tints without backdrop-filter support.
 * Loaded before cutflux-glassbar.css on mobile, profile, templates, login, pricing, photo-montage, photo-enhance,
 * sfx-playground and home (desktop). Revert: remove the <link>. */

:root {
  --gl-primary: rgba(46, 110, 240, .84);
  --gl-primary-press: rgba(46, 110, 240, .96);
  --gl-smoke: rgba(30, 30, 36, .74);
  --gl-smoke-press: rgba(44, 44, 52, .86);
  --gl-fill: rgba(255, 255, 255, .08);
  --gl-fill-press: rgba(255, 255, 255, .14);
  --gl-ink-fill: #FFFFFF;
  --gl-rim: rgba(255, 255, 255, .22);
  --gl-spec: rgba(255, 255, 255, .30);
  --gl-under: rgba(0, 0, 0, .18);
  --gl-glow: 0 6px 18px rgba(37, 99, 235, .28);
  --gl-lift: 0 4px 14px rgba(0, 0, 0, .28);
  --gl-sheet: rgba(28, 28, 32, .74);
  --gl-sheet-solid: #1C1C1E;
  --gl-radius: 14px;
  --gl-spring: cubic-bezier(.3, 1.3, .5, 1);
}
html[data-theme="light"] {
  --gl-primary: rgba(29, 78, 216, .9);
  --gl-primary-press: rgba(29, 78, 216, 1);
  --gl-smoke: rgba(20, 20, 26, .86);
  --gl-smoke-press: rgba(20, 20, 26, .96);
  --gl-fill: rgba(20, 20, 26, .06);
  --gl-fill-press: rgba(20, 20, 26, .11);
  --gl-ink-fill: #0B0B0F;
  --gl-rim: rgba(255, 255, 255, .55);
  --gl-spec: rgba(255, 255, 255, .45);
  --gl-under: rgba(0, 0, 0, .12);
  --gl-glow: 0 6px 16px rgba(29, 78, 216, .22);
  --gl-lift: 0 4px 12px rgba(16, 20, 32, .16);
  --gl-sheet: rgba(255, 255, 255, .78);
  --gl-sheet-solid: #FFFFFF;
}

/* ---------- 1. the classes ---------- */
.cf-glass-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--gl-radius);
  font: 600 16px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .32s var(--gl-spring), background-color .2s ease, box-shadow .2s ease;
}
.cf-glass-btn:active { transform: scale(.97); }
.cf-glass-btn--primary {
  background: var(--gl-primary); color: #fff;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), inset 0 -1px 0 var(--gl-under), var(--gl-glow);
}
.cf-glass-btn--primary:active { background: var(--gl-primary-press); }
.cf-glass-btn--secondary {
  background: var(--gl-smoke); color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14), var(--gl-lift);
}
.cf-glass-btn--secondary:active { background: var(--gl-smoke-press); }
.cf-glass-chip {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gl-fill); color: var(--gl-ink-fill);
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 rgba(255, 255, 255, .10);
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}
.cf-glass-chip:is(.is-on, [aria-pressed="true"], [aria-selected="true"]) {
  background: var(--gl-primary); color: #fff; box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec);
}
.cf-glass-seg { background: var(--gl-fill); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 .5px var(--gl-rim); }
.cf-glass-sheet {
  background: var(--gl-sheet); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), 0 -10px 40px rgba(0, 0, 0, .35);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cf-glass-sheet { background: var(--gl-sheet-solid); }
}
@media (prefers-reduced-motion: reduce) { .cf-glass-btn { transition: none; } .cf-glass-btn:active { transform: none; } }

/* ---------- 2. existing controls, mapped (selectors outrank the older page layers) ---------- */
/* primary actions */
html:root body :is(a.hero .hero-cta, .tp-btn-primary, #submitBtn, .plans .plan .cta.primary, .hdr-export, .exp-btn.primary,
  .sb-bt-btn--primary, .pm-cover-cta, .pm-music-start-btn, .pm-cp-gen-btn, #cfBeta .cb-go, .sfx-play-btn.primary, .pick-hint, #sfxSearchBtn, .rd-signin) {
  background: var(--gl-primary) !important; color: #fff !important; border: 0 !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), inset 0 -1px 0 var(--gl-under), var(--gl-glow) !important;
  background-image: none !important;
}
html:root body :is(a.hero:active .hero-cta, .tp-btn-primary:active, #submitBtn:active, .plans .plan .cta.primary:active, .hdr-export:active, .exp-btn.primary:active, .sb-bt-btn--primary:active, .pm-cover-cta:active, #cfBeta .cb-go:active, .rd-signin:active) {
  background: var(--gl-primary-press) !important;
}
html:root body :is(.hdr-export, .exp-btn.primary, .sb-bt-btn--primary)[disabled] { opacity: .45 !important; box-shadow: inset 0 0 0 .5px var(--gl-rim) !important; }

/* secondary actions: smoked black glass */
html:root body :is(.plans .plan .cta:not(.primary):not(.gold), .cfg-apple, .tp-btn:not(.tp-btn-primary), .exp-btn:not(.primary),
  .sb-bt-btn--ghost, .pv-btn:not(.on), .cfg-try, .ai-lead) {
  background: var(--gl-smoke) !important; color: #fff !important; border: 0 !important; background-image: none !important;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14), var(--gl-lift) !important;
}
html:root body .ai-lead :is(.ai-lead-t b, .ai-lead-t span) { color: #fff !important; }
html:root body .ai-lead .ai-lead-t span { color: rgba(255, 255, 255, .72) !important; }
html:root body .ai-lead .ai-lead-ic { background: var(--gl-primary) !important; color: #fff !important; box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec) !important; }
html:root body .ai-lead .ai-lead-go { color: rgba(255, 255, 255, .6) !important; }

/* chips and segmented controls */
html:root body :is(.tl-chip, .pv-btn.on) {
  border: 0 !important; background: var(--gl-fill) !important; color: var(--gl-ink-fill) !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}
html:root body :is(.tl-chip[aria-pressed="true"], .tl-chip.is-on, .pv-btn.on) {
  background: var(--gl-primary) !important; color: #fff !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec) !important;
}
html:root body :is(.cf-theme-switch, .toggle) {
  background: var(--gl-fill) !important; border: 0 !important; box-shadow: inset 0 0 0 .5px var(--gl-rim) !important;
}
html:root body :is(.cf-theme-switch button[aria-pressed="true"], .toggle button.on) {
  background: var(--gl-primary) !important; color: #fff !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), 0 2px 8px rgba(0, 0, 0, .18) !important;
}
html:root body :is(.tp-icon-btn) {
  background: var(--gl-fill) !important; color: var(--gl-ink-fill) !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}

/* sheets: frosted glass (one at a time) */
html:root body :is(.tp-sheet, #cfBeta .cb-s, .cf-look-card, .tpl-sheet .tpl-panel) {
  background: var(--gl-sheet) !important; border: 0 !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.8) !important; backdrop-filter: blur(30px) saturate(1.8) !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), 0 -10px 40px rgba(0, 0, 0, .35) !important;
}
html:root body #cfBeta .cb-s { border-radius: 24px 24px 0 0 !important; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html:root body :is(.tp-sheet, #cfBeta .cb-s, .cf-look-card, .tpl-sheet .tpl-panel) { background: var(--gl-sheet-solid) !important; }
}

/* ---------- 3. phones: the top bar (2026-11-10: every page has one but Settings; see cutflux-topbar.css) ---------- */
@media (max-width: 899px) {
  /* You + Templates: the large title scrolls with the page */
  html:root body.tp-page .tp-head {
    position: relative !important; background: transparent !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  /* Enhance: back + title are back (cutflux-topbar.css); Export stays a glass pill */
  html:root body #hdrExport { min-height: 40px; padding: 0 18px !important; border-radius: 999px !important; font-weight: 600 !important; }
  /* Montage editor: its header is the same glass strip as every page (cutflux-topbar.css) */
  html:root body .pm-app .hdr .hdr-close {
    width: 44px !important; height: 44px !important; border-radius: 50% !important; border: 0 !important;
    background: var(--gl-smoke) !important; color: #fff !important;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14), var(--gl-lift) !important;
  }
  html:root body .pm-app .hdr #exportBtn { min-height: 40px; padding: 0 18px !important; border-radius: 999px !important; }
  /* SFX Studio and pricing: the masthead / site header go; the tab bar takes over */
  html:root body .page > header.masthead { display: none !important; }
  html:root body .page:has(> header.masthead) { padding-top: calc(env(safe-area-inset-top, 0px) + 18px) !important; }
  html:root body.lyrc-app:has(> nav.cf-tbar) > header { display: none !important; }
  html:root body.lyrc-app:has(> nav.cf-tbar) > section.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 28px) !important; }
}

/* =====================================================================================================================
   Task 420 (owner, 2026-11-08): "Extend the liquid glass bubble look app-wide ... search bars and pretty much every UI
   element". Same rim, highlight, radius family and black-and-blue tint as the tab bar.
   Two kinds of glass:
     floating glass  (blur)     the tab bar, sheets, popovers/toasts, the editor's floating tool bar
     faux glass      (no blur)  everything that scrolls: cards, tiles, rows, inputs, chips, overlays on thumbnails
   so long pages never stack backdrop-filters and keep 60fps.
   ===================================================================================================================== */
:root {
  --gl-card: rgba(255, 255, 255, .055);
  --gl-card-rim: rgba(255, 255, 255, .11);
  --gl-card-spec: rgba(255, 255, 255, .09);
  --gl-card-shadow: 0 0 #0000;
  --gl-input: rgba(255, 255, 255, .07);
  --gl-bubble: rgba(255, 255, 255, .08);
  --gl-overlay: rgba(10, 10, 14, .58);
  --gl-pop: rgba(30, 30, 36, .78);
}
html[data-theme="light"] {
  --gl-card: rgba(255, 255, 255, .78);
  --gl-card-rim: rgba(255, 255, 255, .95);
  --gl-card-spec: rgba(255, 255, 255, 1);
  --gl-card-shadow: 0 1px 2px rgba(16, 20, 32, .05), 0 8px 24px rgba(16, 20, 32, .07), 0 0 0 .5px rgba(16, 20, 32, .07);
  --gl-input: rgba(118, 118, 128, .12);
  --gl-bubble: rgba(255, 255, 255, .8);
  --gl-pop: rgba(255, 255, 255, .82);
}
.cf-glass-card { background: var(--gl-card); box-shadow: inset 0 0 0 .5px var(--gl-card-rim), inset 0 1px 0 var(--gl-card-spec), var(--gl-card-shadow); }
.cf-glass-input { background: var(--gl-input); border: 0; box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 rgba(255, 255, 255, .06); border-radius: 12px; }
.cf-glass-bubble { background: var(--gl-bubble); border-radius: 50%; box-shadow: inset 0 0 0 .5px var(--gl-card-rim), inset 0 1px 0 var(--gl-card-spec), var(--gl-card-shadow); }

@media (max-width: 899px) {
  /* cards, tiles, grouped lists, pricing cards (faux glass) */
  html:root body :is(a.hero, .tp-group, .pf-card, .plans .plan, .tl-how, .mob-welcome, .cv-card, .ce-up-card, .sb-bt-settings-panel) {
    background: var(--gl-card) !important; border: 0 !important;
    box-shadow: inset 0 0 0 .5px var(--gl-card-rim), inset 0 1px 0 var(--gl-card-spec), var(--gl-card-shadow) !important;
  }
  html:root body .plans .plan.popular { box-shadow: inset 0 0 0 1.5px var(--gl-primary), inset 0 1px 0 var(--gl-card-spec), var(--gl-card-shadow) !important; }
  html:root body :is(.tl-feature, .tl-thumb) { box-shadow: inset 0 0 0 .5px var(--gl-card-rim), var(--gl-card-shadow) !important; }

  /* tool grid: each icon sits in a glass bubble */
  html:root body .tool-grid .tool-sq .tool-sq-ic, html[data-theme="light"]:root body .tool-grid .tool-sq .tool-sq-ic {
    width: 52px !important; height: 52px !important; border-radius: 50% !important; display: grid !important; place-items: center;
    background: var(--gl-bubble) !important; color: var(--gl-ink-fill) !important;
    box-shadow: inset 0 0 0 .5px var(--gl-card-rim), inset 0 1px 0 var(--gl-card-spec), var(--gl-card-shadow) !important;
  }
  html:root body .tool-grid .tool-sq .tool-sq-ic svg { width: 24px !important; height: 24px !important; }
  html:root body .tool-grid .tool-sq:active .tool-sq-ic { background: var(--gl-primary) !important; color: #fff !important; }

  /* icon wells in rows: small bubbles */
  html:root body :is(.tp-row-ic, .greet-av, .pf-av) {
    background: var(--gl-bubble) !important;
    box-shadow: inset 0 0 0 .5px var(--gl-card-rim), inset 0 1px 0 var(--gl-card-spec) !important;
  }
  html:root body .tp-row-ic { border-radius: 50% !important; }

  /* search bars, inputs, selects, toggles, sliders */
  html:root body :is(.tl-search, select, textarea, input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input:not([type])) {
    background: var(--gl-input) !important; border: 0 !important; color: var(--gl-ink-fill) !important;
    box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  }
  html:root body .tl-search { border-radius: 999px !important; }
  html:root body .tl-search input { background: transparent !important; box-shadow: none !important; }
  html:root body :is(input, select, textarea):focus { box-shadow: inset 0 0 0 2px var(--gl-primary), 0 0 0 4px rgba(59, 130, 246, .18) !important; outline: none !important; }
  html:root body .tl-search input:focus { box-shadow: none !important; }
  html:root body .tl-search:focus-within { box-shadow: inset 0 0 0 2px var(--gl-primary), 0 0 0 4px rgba(59, 130, 246, .18) !important; }
  html:root body :is(input[type="checkbox"], input[type="radio"], input[type="range"], progress) { accent-color: #3B82F6; }
  /* sign-in option G stays dark in both themes */
  html:root:has(#loginShell) body .cf-form .cf-field input { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }

  /* overlays drawn on pictures: dark glass pills (no blur: there are dozens on the Templates grid) */
  html:root body :is(.tl-clips, .tl-pro, .tl-kicker) {
    background: var(--gl-overlay) !important; color: #fff !important; border-radius: 999px !important;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
  }
  html:root body .tl-pro { background: var(--gl-primary) !important; }
  html:root body .tl-kicker { display: inline-block; padding: 4px 9px !important; margin-bottom: 4px; }
  html:root body .tl-use {
    background: rgba(255, 255, 255, .86) !important; color: #0B0B0F !important;
    box-shadow: inset 0 0 0 .5px #fff, inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .25) !important;
  }

  /* popovers and toasts: floating glass (blurred, one at a time) */
  html:root body :is(.cfk-hint, .cfk-island) {
    background: var(--gl-pop) !important; color: var(--gl-ink-fill) !important; border: 0 !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.8) !important; backdrop-filter: blur(24px) saturate(1.8) !important;
    box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), 0 10px 30px rgba(0, 0, 0, .3) !important;
  }

  /* Copy an Edit */
  html:root body .ce-cover-cta {
    background: var(--gl-primary) !important; color: #fff !important; background-image: none !important;
    box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), inset 0 -1px 0 var(--gl-under), var(--gl-glow) !important;
  }

  /* the beat editor's floating tool bar and sheets (CapCut layout unchanged; only the surface) */
  html:root body.lyrc-be .dock {
    background: rgba(12, 12, 16, .66) !important; border-top: 0 !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.8) !important; backdrop-filter: blur(22px) saturate(1.8) !important;
    box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  }
  html:root body.lyrc-be .dock .dk.active .dk-box {
    background: var(--gl-primary) !important; color: #fff !important; border-radius: 50% !important;
    box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec) !important;
  }
  html:root body.lyrc-be .sheet.open {
    background: rgba(22, 22, 28, .8) !important;
    -webkit-backdrop-filter: blur(30px) saturate(1.8) !important; backdrop-filter: blur(30px) saturate(1.8) !important;
    box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .1), 0 -10px 40px rgba(0, 0, 0, .4) !important;
  }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html:root body.lyrc-be .dock { background: #0b0d14 !important; }
  html:root body.lyrc-be .sheet.open { background: #16161c !important; }
  html:root body :is(.cfk-hint, .cfk-island) { background: var(--gl-sheet-solid) !important; }
}

/* task 420 follow-ups: Copy an Edit's three cover tiles; the editor tool bar follows the light theme */
@media (max-width: 899px) {
  html:root body .cel-a-facts > li {
    background: var(--gl-card) !important; border: 0 !important;
    box-shadow: inset 0 0 0 .5px var(--gl-card-rim), inset 0 1px 0 var(--gl-card-spec), var(--gl-card-shadow) !important;
  }
  html[data-theme="light"]:root body.lyrc-be .dock {
    background: rgba(255, 255, 255, .72) !important;
    box-shadow: inset 0 .5px 0 rgba(16, 20, 32, .10), inset 0 1px 0 #fff !important;
  }
  html[data-theme="light"]:root body.lyrc-be .sheet.open { background: rgba(255, 255, 255, .84) !important; }
}

/* =====================================================================================================================
   One motion language (task 416 night pass): every glass control presses and settles the same way as the tab bar.
   Press: scale .97 on the same spring (--gl-spring, ~320 ms); colour changes 200 ms ease. Sheets rise on 280 ms.
   Only transform/opacity/colour animate (no layout properties), and nothing moves under prefers-reduced-motion.
   ===================================================================================================================== */
:root { --gl-press: .97; --gl-t-press: .32s; --gl-t-colour: .2s; --gl-t-sheet: .28s; }
html:root body :is(a.hero .hero-cta, .tp-btn, #submitBtn, .plans .plan .cta, .hdr-export, .exp-btn, .sb-bt-btn, .pm-cover-cta,
  .pm-music-start-btn, .pm-cp-gen-btn, #cfBeta .cb-go, #cfBeta .cb-no, .pick-hint, #sfxSearchBtn, .tl-chip, .pv-btn, .ce-cover-cta,
  .cf-theme-switch button, .toggle button, .tp-icon-btn, .cfg-apple, #googleSignInBtn) {
  transition: transform var(--gl-t-press) var(--gl-spring), background-color var(--gl-t-colour) ease, color var(--gl-t-colour) ease,
    box-shadow var(--gl-t-colour) ease, opacity var(--gl-t-colour) ease !important;
  -webkit-tap-highlight-color: transparent;
}
html:root body :is(a.hero:active .hero-cta, .tp-btn:active, #submitBtn:active, .plans .plan .cta:active, .hdr-export:active, .exp-btn:active,
  .sb-bt-btn:active, .pm-cover-cta:active, .pm-music-start-btn:active, .pm-cp-gen-btn:active, #cfBeta .cb-go:active, .pick-hint:active,
  #sfxSearchBtn:active, .tl-chip:active, .pv-btn:active, .ce-cover-cta:active, .cfg-apple:active, #googleSignInBtn:active):not([disabled]) {
  transform: scale(var(--gl-press)) !important;
}
html:root body :is(.tp-sheet, .tpl-sheet .tpl-panel, #cfBeta .cb-s) { transition-duration: var(--gl-t-sheet) !important; transition-timing-function: cubic-bezier(.2, .9, .25, 1) !important; }
/* empty and loading states share one look: a calm breathing tone, centred, in the secondary ink */
html:root body :is(.tl-empty, .tpl-empty) {
  padding: 40px 16px !important; text-align: center; font: 400 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif !important;
  color: var(--ap-ink3, rgba(235, 235, 245, .5)) !important; grid-column: 1 / -1;
}
@media (prefers-reduced-motion: reduce) {
  html:root body :is(a.hero .hero-cta, .tp-btn, #submitBtn, .plans .plan .cta, .hdr-export, .exp-btn, .sb-bt-btn, .pm-cover-cta, .tl-chip, .pv-btn, .ce-cover-cta, .cfg-apple, #googleSignInBtn) { transition: none !important; }
  html:root body :is(a.hero:active .hero-cta, .tp-btn:active, #submitBtn:active, .sb-bt-btn:active, .tl-chip:active, .ce-cover-cta:active) { transform: none !important; }
}

/* The trial sheet every free user meets on the tool pages (paywall-gate.js, #cf-trial-offer): same glass, same blue,
   no gradient on its button, nothing under 12px, a 44px close. Phone and desktop. */
html:root body #cf-trial-offer .cf-tr-card {
  background: rgba(22, 22, 28, .86) !important; border: 0 !important;   /* dark glass in both themes: its text is white */
  -webkit-backdrop-filter: blur(30px) saturate(1.8) !important; backdrop-filter: blur(30px) saturate(1.8) !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), 0 -10px 40px rgba(0, 0, 0, .4) !important;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { html:root body #cf-trial-offer .cf-tr-card { background: #16161c !important; } }
html:root body #cf-trial-offer .cf-tr-ribbon { font-size: 12px !important; letter-spacing: .08em !important; background: transparent !important; background-image: none !important; color: rgba(235, 235, 245, .7) !important; box-shadow: none !important; }
html:root body #cf-trial-offer :is(.cf-tr-eyebrow, .cf-tr-cta-sub, .cf-tr-foot, .cf-tr-skip) { font-size: 12px !important; }
html:root body #cf-trial-offer .cf-tr-cta {
  background: var(--gl-primary) !important; background-image: none !important; color: #fff !important; border: 0 !important; border-radius: 14px !important;
  box-shadow: inset 0 0 0 .5px var(--gl-rim), inset 0 1px 0 var(--gl-spec), inset 0 -1px 0 var(--gl-under), var(--gl-glow) !important;
  transition: transform var(--gl-t-press, .32s) var(--gl-spring), background-color .2s ease !important;
}
html:root body #cf-trial-offer .cf-tr-cta:active { transform: scale(var(--gl-press, .97)) !important; }
html:root body #cf-trial-offer .cf-tr-price { background: rgba(255, 255, 255, .07) !important; border: 0 !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16) !important; }
html:root body #cf-trial-offer .cf-tr-close { width: 44px !important; height: 44px !important; border-radius: 50% !important; background: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16) !important; }
html:root body #cf-trial-offer .cf-tr-eyebrow { background: rgba(255, 255, 255, .08) !important; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16) !important; }

/* the editor's tool bar: labels at the 12px floor, on one line */
@media (max-width: 899px) {
  html:root body.lyrc-be .dock .dk { font-size: 12px !important; letter-spacing: -.01em !important; white-space: nowrap;
    flex: 0 0 auto !important; min-width: 58px !important; padding-left: 3px !important; padding-right: 3px !important; letter-spacing: -.02em !important; }  /* the row scrolls sideways: a longer label gets a slightly wider slot instead of touching its neighbour, and the 7th tool still peeks in as the scroll cue */
}

/* Night pass, tool pages: the 12px text floor and 44px touch targets the rest of the app already meets.
   Small-looking controls keep their look; an invisible ::after grows what a finger can hit. */
@media (max-width: 899px) {
  html:root body :is(.cv-eyebrow, .cv-step, .cv-steps i, .pm-cp-select-all, .pick-formats, .pe-intro-badge) { font-size: 12px !important; }
  html:root body :is(.sheet-x, .pe-intro-x, a.brand, .add-chip, .len-chip, .side-link, a.back, #btnSignOut) { position: relative; }
  html:root body :is(.sheet-x, .pe-intro-x, a.brand, .add-chip, .len-chip, .side-link, a.back, #btnSignOut)::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
  html:root body .hdr-export { min-height: 44px !important; }
}
@media (max-width: 899px) {
  html.pm-beatshell body :is(span.chk, span.num, .cv-scene i, .cv-stage-wrap i, .dock .dk, .dk) { font-size: 12px !important; }
  html:root body.cf-copy-page :is(.cv-scene i, .cv-stage-wrap i) { font-size: 12px !important; }
}
