/* cutflux-premium.css: the calm, Apple-style skin for the phone tab pages (task 416, 2026-11-08).
 * Owner: "Apple-premium feel. Axe the current look, which feels glitchy."
 *
 * Loaded LAST (before cutflux-glassbar.css) on mobile.html, profile.html, templates.html, login.html and pricing.html.
 * Phones only (< 900px); desktop pages are untouched by this file. Visual only: no IDs, flows or markup change.
 * The earlier layers (page CSS, *-lyrc.css, cutflux-light.css, cutflux-mobile-polish.css, mobile-home-compact.css,
 * cutflux-spacious.css, cutflux-tabpages.css) still load; this one restates the look on top of them, which is why the
 * selectors start with `html:root body` and some carry !important (the layers below use it).
 *
 * The system:
 *   type    SF on Apple devices (-apple-system), Inter elsewhere, then system-ui. 12px floor.
 *           34 large title / 28 title / 20 section / 17 headline / 15 body / 13 caption / 12 footnote.
 *   colour  black + grouped grey surfaces in dark, #F2F2F7 + white in light; one blue (#3B82F6) for actions.
 *   radius  24 hero card, 18 cards and grouped lists, 14 buttons and inputs, 12 thumbnails, capsules for chips.
 *           Continuous (squircle) corners where the browser supports corner-shape.
 *   depth   no outlines on surfaces; tone separates them. Light mode gets one soft shadow on cards.
 *   motion  one spring for presses, opacity/transform only, all of it off under prefers-reduced-motion.
 * Revert: remove this <link>. */

:root {
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ap-spring: cubic-bezier(.3, 1.3, .5, 1);
  --ap-ease: cubic-bezier(.25, .8, .25, 1);
}

@media (max-width: 899px) {
  :root, html[data-theme="dark"] {
    --ap-bg: #000000;
    --ap-l1: #1C1C1E;
    --ap-l2: #2C2C2E;
    --ap-l3: #3A3A3C;
    --ap-sep: rgba(84, 84, 88, .55);
    --ap-ink: #FFFFFF;
    --ap-ink2: rgba(235, 235, 245, .66);
    --ap-ink3: rgba(235, 235, 245, .46);
    --ap-accent: #3B82F6;
    --ap-accent-ink: #6EA8FF;
    --ap-accent-soft: rgba(59, 130, 246, .18);
    --ap-card-shadow: none;
    --ap-header: rgba(0, 0, 0, .72);
  }
  html[data-theme="light"] {
    --ap-bg: #F2F2F7;
    --ap-l1: #FFFFFF;
    --ap-l2: #E9E9EE;
    --ap-l3: #DCDCE1;
    --ap-sep: rgba(60, 60, 67, .16);
    --ap-ink: #0B0B0F;
    --ap-ink2: rgba(60, 60, 67, .78);
    --ap-ink3: rgba(60, 60, 67, .58);
    --ap-accent: #2563EB;
    --ap-accent-ink: #1D5BD8;
    --ap-accent-soft: rgba(37, 99, 235, .10);
    --ap-card-shadow: 0 1px 2px rgba(16, 20, 32, .04), 0 6px 20px rgba(16, 20, 32, .06);
    --ap-header: rgba(242, 242, 247, .8);
  }

  /* ================= shared ground ================= */
  html:root body.lyrc-app {
    --cf-font: var(--ap-font);
    background: var(--ap-bg) !important;
    color: var(--ap-ink);
    font-family: var(--ap-font) !important;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  html:root[data-theme] { background: var(--ap-bg) !important; }
  html:root body.lyrc-app :is(h1, h2, h3, h4, p, a, button, span, b, strong, em, label, input, li, small) { font-family: inherit; }
  html:root body.lyrc-app :is(h1, h2, h3) em { font-style: normal !important; font-family: inherit !important; color: inherit !important; font-weight: inherit !important; }

  /* decorative glow orbs and film grain behind the home page: off (they shimmered while scrolling) */
  html:root body.lyrc-app > .bg { display: none !important; }

  /* every press feels the same */
  html:root body.lyrc-app :is(a.hero, .ai-lead, .tool-sq, .tpl-strip, .tp-row, .tl-card, .tp-btn, .tp-icon-btn, .cf-cta, .cf-google, .plan .cta) {
    transition: transform .32s var(--ap-spring), background-color .2s ease, opacity .2s ease !important;
    -webkit-tap-highlight-color: transparent;
  }
  html:root body.lyrc-app :is(a.hero, .ai-lead, .tpl-strip):active { transform: scale(.98) !important; }
  html:root body.lyrc-app :is(.tool-sq, .tp-icon-btn, .tl-card):active { transform: scale(.94) !important; }
  html:root body.lyrc-app :is(.tp-btn, .cf-cta, .cf-google, .plan .cta):active { transform: scale(.97) !important; }

  @supports (corner-shape: squircle) {
    html:root body.lyrc-app :is(a.hero, .ai-lead, .tp-group, .pf-card, .tl-feature, .tl-thumb, .tpl-strip-row img, .tpl-strip-row .tpl-skel, .hero-cta, .tp-btn, .cf-cta, .cf-google, .cf-field input, .plan, .tp-sheet, .cf-card) { corner-shape: superellipse(1.5); }
  }

  /* ================= home: mobile.html ================= */
  html:root body.lyrc-app .app { max-width: 560px; }
  html:root body.lyrc-app .hdr {
    background: var(--ap-header) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important; backdrop-filter: blur(20px) saturate(1.8) !important;
    border: 0 !important; box-shadow: none !important;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 10px !important;
    min-height: 52px; box-sizing: border-box;
  }
  html:root body.lyrc-app .hdr-brand { font: 700 18px/1 var(--ap-font) !important; letter-spacing: -.02em !important; color: var(--ap-ink) !important; gap: 8px !important; }
  html:root body.lyrc-app .hdr-brand .hdr-logo { width: 26px !important; height: 26px !important; border-radius: 7px !important; box-shadow: none !important; }
  html:root body.lyrc-app .hdr-brand { flex: 0 0 auto; width: max-content; min-height: 44px; }

  html:root body.lyrc-app .greet-row { padding: 12px 20px 4px !important; gap: 14px !important; align-items: center; }
  html:root body.lyrc-app .greet-av {
    width: 44px !important; height: 44px !important; font: 600 17px/1 var(--ap-font) !important;
    background: var(--ap-l2) !important; color: var(--ap-ink) !important; box-shadow: none !important; border: 0 !important;
  }
  html:root body.lyrc-app .greet-text h1 { font: 700 28px/1.12 var(--ap-font) !important; letter-spacing: -.025em !important; color: var(--ap-ink) !important; }
  html:root body.lyrc-app .greet-text p { font: 400 15px/1.35 var(--ap-font) !important; margin-top: 3px !important; color: var(--ap-ink2) !important; }

  html:root body.lyrc-app .home { padding: 20px 20px 8px !important; gap: 28px !important; }

  /* hero: one card, one primary button */
  html:root body.lyrc-app a.hero {
    border-radius: 24px !important; border: 0 !important; background: var(--ap-l1) !important;
    box-shadow: var(--ap-card-shadow) !important; overflow: hidden; isolation: isolate;
  }
  html:root body.lyrc-app a.hero .hero-thumb { aspect-ratio: 16 / 9 !important; background: #0B0B0D !important; }
  html:root body.lyrc-app a.hero .hero-thumb::after { display: none !important; }
  html:root body.lyrc-app a.hero .hero-body { padding: 18px 18px 18px !important; gap: 6px !important; }
  html:root body.lyrc-app a.hero .hero-body h2 { font: 700 22px/1.18 var(--ap-font) !important; letter-spacing: -.022em !important; color: var(--ap-ink) !important; }
  html:root body.lyrc-app a.hero .hero-body p { font: 400 15px/1.42 var(--ap-font) !important; color: var(--ap-ink2) !important; }
  html:root body.lyrc-app a.hero .hero-cta {
    margin-top: 12px !important; height: 50px; padding: 0 18px !important; box-sizing: border-box;
    border-radius: 14px !important; background: var(--ap-accent) !important; color: #fff !important; box-shadow: none !important;
    font: 600 16px/1 var(--ap-font) !important; letter-spacing: -.01em !important; gap: 6px !important;
  }
  html:root body.lyrc-app a.hero .hero-cta svg { width: 16px !important; height: 16px !important; }

  /* AI Edit is out of the UI for now (owner 2026-11-08); the card's markup stays, hidden */
  html:root body.lyrc-app .ai-lead[hidden] { display: none !important; }

  /* tools */
  html:root body.lyrc-app .tool-grid {
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px 6px !important; padding: 0 !important; margin: 0 !important;
  }
  html:root body.lyrc-app .ai-lead {
    grid-column: 1 / -1; margin: 0 0 4px !important; min-height: 76px !important; padding: 14px 16px !important; gap: 14px !important;
    border-radius: 18px !important; background: var(--ap-l1) !important; color: var(--ap-ink) !important;
    box-shadow: var(--ap-card-shadow) !important; border: 0 !important;
  }
  html:root body.lyrc-app .ai-lead-ic {
    width: 44px !important; height: 44px !important; border-radius: 50%; display: grid !important; place-items: center;
    background: var(--ap-accent-soft) !important; color: var(--ap-accent-ink) !important;
  }
  html:root body.lyrc-app .ai-lead-ic svg { width: 22px !important; height: 22px !important; }
  html:root body.lyrc-app .ai-lead-t b { font: 600 17px/1.2 var(--ap-font) !important; letter-spacing: -.015em; color: var(--ap-ink) !important; }
  html:root body.lyrc-app .ai-lead-t span { font: 400 14px/1.3 var(--ap-font) !important; color: var(--ap-ink2) !important; }
  html:root body.lyrc-app .ai-lead-go { width: 16px !important; height: 16px !important; color: var(--ap-ink3) !important; }

  html:root body.lyrc-app .tool-sq, html[data-theme="light"]:root body.lyrc-app .tool-sq {
    aspect-ratio: auto !important; min-height: 64px; padding: 2px 0 !important; gap: 8px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--ap-ink) !important;
  }
  html:root body.lyrc-app .tool-sq .tool-sq-ic, html[data-theme="light"]:root body.lyrc-app .tool-sq .tool-sq-ic {
    width: 28px !important; height: 28px !important; background: transparent !important; color: var(--ap-ink) !important;
  }
  html:root body.lyrc-app .tool-sq .tool-sq-ic svg { width: 26px !important; height: 26px !important; stroke-width: 1.6 !important; }
  html:root body.lyrc-app .tool-sq .tool-sq-lbl, html[data-theme="light"]:root body.lyrc-app .tool-sq .tool-sq-lbl {
    font: 500 12px/1.15 var(--ap-font) !important; letter-spacing: -.005em !important; color: var(--ap-ink2) !important;
    text-align: center; white-space: nowrap;
  }

  /* templates: a section, not a card inside a card */
  html:root body.lyrc-app .tpl-strip {
    padding: 0 !important; gap: 12px !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
    border-radius: 0 !important; color: var(--ap-ink) !important; font-family: var(--ap-font) !important;
  }
  html:root body.lyrc-app .tpl-strip-head { padding: 0 !important; align-items: baseline !important; }
  html:root body.lyrc-app .tpl-strip-title {
    font: 700 20px/1.2 var(--ap-font) !important; letter-spacing: -.02em !important; text-transform: none !important; color: var(--ap-ink) !important;
  }
  html:root body.lyrc-app .tpl-strip-title::before { content: none !important; display: none !important; }
  html:root body.lyrc-app .tpl-strip-more { font: 400 15px/1 var(--ap-font) !important; color: var(--ap-accent-ink) !important; gap: 2px !important; }
  html:root body.lyrc-app .tpl-strip-more svg { width: 13px !important; height: 13px !important; }
  html:root body.lyrc-app .tpl-strip-sub { font: 400 14px/1.35 var(--ap-font) !important; color: var(--ap-ink2) !important; margin: -6px 0 0 !important; padding: 0 !important; }
  html:root body.lyrc-app .tpl-strip-row { gap: 8px !important; }
  html:root body.lyrc-app .tpl-strip-row :is(img, .cf-motion, .tpl-skel) {
    border-radius: 12px !important; border: 0 !important; aspect-ratio: 3 / 4 !important; background: var(--ap-l2) !important;
  }
  /* skeleton: a calm breathing tone instead of a sliding shine */
  html:root body.lyrc-app .tpl-strip-row .tpl-skel { animation: apBreathe 1.6s ease-in-out infinite !important; background-image: none !important; }
  @keyframes apBreathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

  /* first-run card (kept for when it is switched back on) */
  html:root body.lyrc-app .mob-welcome { margin: 8px 20px 0 !important; border-radius: 18px !important; background: var(--ap-l1) !important; border: 0 !important; box-shadow: var(--ap-card-shadow) !important; }
  html:root body.lyrc-app .mob-welcome-title .dot { display: none !important; }

  /* the one-tip-per-visit pointer (cutflux-kit hint) */
  html:root body.lyrc-app .cfk-hint { font-family: var(--ap-font) !important; border-radius: 14px !important; }

  /* ================= You + Templates tabs (cutflux-tabpages.css) ================= */
  html:root body.tp-page {
    --tp-canvas: var(--ap-bg); --tp-l1: var(--ap-l1); --tp-l2: var(--ap-l2); --tp-l3: var(--ap-l3);
    --tp-ink: var(--ap-ink); --tp-ink2: var(--ap-ink2); --tp-ink3: var(--ap-ink3); --tp-line: var(--ap-sep);
    --tp-shadow: var(--ap-card-shadow);
    font-family: var(--ap-font) !important;
  }
  html:root body.tp-page .tp-head {
    background: var(--ap-header) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px) !important; padding-bottom: 10px !important;
  }
  html:root body.tp-page .tp-head-row { min-height: 48px !important; gap: 10px !important; }
  html:root body.tp-page .tp-title { font: 700 34px/1.1 var(--ap-font) !important; letter-spacing: -.03em !important; }
  html:root body.tp-page .tp-wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)) !important; padding-right: max(20px, env(safe-area-inset-right, 0px)) !important; }
  html:root body.tp-page .tp-icon-btn { width: 44px !important; height: 44px !important; background: var(--ap-l1) !important; box-shadow: var(--ap-card-shadow) !important; }
  html:root body.tp-page .tp-icon-btn svg { width: 21px !important; height: 21px !important; }
  html:root body.tp-page .tp-sec {
    margin: 28px 16px 8px !important; font: 400 13px/1.2 var(--ap-font) !important; letter-spacing: 0 !important;
    text-transform: none !important; color: var(--ap-ink3) !important;
  }
  html:root body.tp-page .tp-group { border-radius: 18px !important; background: var(--ap-l1) !important; box-shadow: var(--ap-card-shadow) !important; }
  html:root body.tp-page .tp-row {
    min-height: 56px !important; padding: 10px 16px !important; gap: 14px !important;
    font: 400 17px/1.25 var(--ap-font) !important; letter-spacing: -.015em; color: var(--ap-ink);
  }
  html:root body.tp-page .tp-row + .tp-row::before { left: 62px !important; height: .5px !important; background: var(--ap-sep) !important; transform: scaleY(1); }
  html:root body.tp-page .tp-row:active { background: var(--ap-l2) !important; transform: none !important; }
  html:root body.tp-page .tp-row-ic { width: 32px !important; height: 32px !important; border-radius: 9px !important; background: var(--ap-l2) !important; }
  html:root body.tp-page .tp-row-ic svg { width: 18px !important; height: 18px !important; }
  html:root body.tp-page .tp-row-sub { font: 400 13px/1.3 var(--ap-font) !important; color: var(--ap-ink3) !important; }
  html:root body.tp-page .tp-row-end { color: var(--ap-ink3) !important; }
  html:root body.tp-page .tp-row-end > svg { width: 14px !important; height: 14px !important; opacity: .7; }
  html:root body.tp-page .pf-card { border-radius: 18px !important; padding: 18px !important; background: var(--ap-l1) !important; box-shadow: var(--ap-card-shadow) !important; border: 0 !important; }
  html:root body.tp-page .pf-name { font: 600 20px/1.2 var(--ap-font) !important; letter-spacing: -.02em; }
  html:root body.tp-page .pf-mail { font: 400 15px/1.3 var(--ap-font) !important; color: var(--ap-ink2) !important; }
  html:root body.tp-page .pf-av { background: var(--ap-l2) !important; color: var(--ap-ink) !important; }
  html:root body.tp-page .tp-btn {
    min-height: 50px !important; border-radius: 14px !important; font: 600 16px/1 var(--ap-font) !important; letter-spacing: -.01em;
    box-shadow: none !important; border: 0 !important;
  }
  html:root body.tp-page .tp-btn-primary { background: var(--ap-accent) !important; color: #fff !important; }
  html:root body.tp-page .pf-foot { color: var(--ap-ink3) !important; font-size: 13px !important; }
  html:root body.tp-page .tp-sheet { border-radius: 24px 24px 0 0 !important; background: var(--ap-l1) !important; }
  html:root body.tp-page .cf-theme-switch { background: var(--ap-l2) !important; border: 0 !important; padding: 2px !important; }
  html:root body.tp-page .cf-theme-switch button { height: 32px !important; min-width: 44px; font: 500 13px/1 var(--ap-font) !important; color: var(--ap-ink) !important; }

  /* templates tab */
  html:root body.tp-page .tl-search {
    height: 40px !important; border-radius: 12px !important; background: var(--ap-l2) !important; border: 0 !important; box-shadow: none !important;
  }
  html:root body.tp-page .tl-search input { font: 400 17px/1 var(--ap-font) !important; color: var(--ap-ink) !important; }
  html:root body.tp-page .tl-chip {
    height: 34px !important; padding: 0 14px !important; border-radius: 999px !important; font: 500 14px/1 var(--ap-font) !important;
    background: var(--ap-l1) !important; color: var(--ap-ink) !important; border: 0 !important; box-shadow: var(--ap-card-shadow) !important;
  }
  html:root body.tp-page .tl-feature { border-radius: 18px !important; border: 0 !important; }
  html:root body.tp-page .tl-thumb { border-radius: 12px !important; border: 0 !important; background: var(--ap-l2) !important; }
  html:root body.tp-page .tl-name { font: 500 13px/1.25 var(--ap-font) !important; color: var(--ap-ink) !important; }

  /* ================= sign in: login.html =================
     Sign-in option G (login-g.css, owner pick 2026-10-29) is a dark design in BOTH themes, so this page keeps the dark
     palette even when the phone is set to light. Only type, heights and corners change; the white Google button stays. */
  html:root:has(#loginShell) {
    --ap-bg: #000000; --ap-l1: #1C1C1E; --ap-l2: #2C2C2E; --ap-sep: rgba(84, 84, 88, .55);
    --ap-ink: #FFFFFF; --ap-ink2: rgba(235, 235, 245, .66); --ap-ink3: rgba(235, 235, 245, .46);
    --ap-accent: #3B82F6; --ap-accent-ink: #6EA8FF; --ap-card-shadow: none;
    background: #000 !important; color-scheme: dark;
  }
  html:root:has(#loginShell) body.lyrc-app { background: #000 !important; color: #fff !important; }
  html:root body.lyrc-app #flowTitle { font: 700 28px/1.15 var(--ap-font) !important; letter-spacing: -.026em !important; color: #fff !important; }
  html:root body.lyrc-app :is(#googleSignInBtn, .cfg-apple) {
    height: 52px !important; border-radius: 14px !important; font: 600 16px/1 var(--ap-font) !important; letter-spacing: -.01em;
  }
  html:root body.lyrc-app .cfg-apple { background: var(--ap-l1) !important; border: 0 !important; }
  html:root body.lyrc-app .cf-form .cf-field input {
    height: 52px !important; border-radius: 14px !important; font: 400 17px/1 var(--ap-font) !important; padding: 0 16px !important;
    background: var(--ap-l1) !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
  }
  html:root body.lyrc-app .cf-form .cf-pw-wrap input { padding-right: 68px !important; }
  html:root body.lyrc-app .cf-form .cf-field input::placeholder { color: var(--ap-ink3) !important; }
  html:root body.lyrc-app .cf-form .cf-field input:focus { box-shadow: inset 0 0 0 2px var(--ap-accent) !important; outline: none !important; }
  html:root body.lyrc-app :is(.cf-cta, #submitBtn) {
    height: 52px !important; border-radius: 14px !important; font: 600 17px/1 var(--ap-font) !important; letter-spacing: -.01em;
    background: var(--ap-accent) !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
  }
  html:root body.lyrc-app .cf-or::before, html:root body.lyrc-app .cf-or::after { height: .5px !important; background: var(--ap-sep) !important; }
  html:root body.lyrc-app :is(.cf-or, .cf-switch-line, #switchLine, .cf-forgot-btn, .cf-pw-eye) { font-family: var(--ap-font) !important; }
  html:root body.lyrc-app :is(.cf-forgot-btn, .cf-pw-eye, .cf-switch-btn, #inlineSwitchBtn) { min-height: 44px; }
  html:root body.lyrc-app .cfg-fine { font: 400 12px/1.4 var(--ap-font) !important; color: var(--ap-ink3) !important; }
  html:root body.lyrc-app .cfg-fine a { display: inline-block; padding: 12px 4px; color: var(--ap-ink3) !important; }
  html:root body.lyrc-app .cfg-mark img { border-radius: 16px !important; }

  /* ================= pricing.html ================= */
  html:root body.lyrc-app > header { background: var(--ap-header) !important; border: 0 !important; -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
  html:root body.lyrc-app .plans .plan {
    border-radius: 22px !important; background: var(--ap-l1) !important; border: 0 !important; box-shadow: var(--ap-card-shadow) !important;
  }
  html:root body.lyrc-app .plans .plan.popular { box-shadow: inset 0 0 0 2px var(--ap-accent), var(--ap-card-shadow) !important; }
  html:root body.lyrc-app .plans .plan :is(h3) { font: 600 20px/1.2 var(--ap-font) !important; letter-spacing: -.02em; }
  html:root body.lyrc-app .plans .plan .amt { font-family: var(--ap-font) !important; letter-spacing: -.03em !important; }
  html:root body.lyrc-app .plans .plan .cta { min-height: 50px; border-radius: 14px !important; font: 600 16px/1 var(--ap-font) !important; box-shadow: none !important; }
  html:root body.lyrc-app section.hero h1 { font-family: var(--ap-font) !important; letter-spacing: -.03em !important; }
}

/* ---- touch targets and the 12px floor (task 416 audit) ----
   Small-looking controls keep their size; an invisible ::after grows the hit area to 44px, which elementFromPoint
   resolves to the control itself. */
@media (max-width: 899px) {
  html:root body.lyrc-app :is(#mTplClose, .tp-sheet .tp-icon-btn) { width: 44px !important; height: 44px !important; }
  html:root body.lyrc-app :is(.cf-theme-switch button, .tl-chip, .toggle button, .h-cta, #pwEye) { position: relative; }
  html:root body.lyrc-app :is(.cf-theme-switch button, .tl-chip, .toggle button, .h-cta, #pwEye)::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
  }
  html:root body.lyrc-app #pwEye { min-height: 44px !important; height: 44px !important; }
  html:root body.tp-page .tl-search { height: 44px !important; }
  html:root body.tp-page .tl-search input { height: 44px !important; }
  html:root body.tp-page .pf-foot a { display: inline-block; padding: 14px 6px; margin: -14px 0; }
  html:root body.tp-page .tp-badge { font-size: 12px !important; min-width: 20px !important; height: 20px !important; line-height: 20px !important; }
  html:root body.tp-page .tl-kicker { font-size: 12px !important; letter-spacing: .04em !important; }
  html:root body.tp-page .tl-clips { font-size: 12px !important; }
  html:root body.lyrc-app .faq summary { padding-top: 12px !important; padding-bottom: 12px !important; min-height: 44px; box-sizing: border-box; }
  html:root body.lyrc-app :is(.eyebrow, .save-tag) { font-size: 12px !important; }
  html:root body.lyrc-app > footer a, html:root body.lyrc-app .foot-links a { display: inline-block; padding: 14px 4px; }
  html:root body.lyrc-app > header .brand { min-height: 44px; }
}

/* ---- Templates tab: no jump when the list arrives (task 416) ----
   Measured: with templates-index.json 1.5 s late, the grid dropped 164 px and "How templates work" 384 px when the
   list landed (CLS 0.32, seen once on live staging too). The skeleton now reserves the "Newest" card and card-height
   tiles, and the how-to box waits until the list is in, so nothing visible moves. */
@media (max-width: 899px) {
  html:root body.tp-page #tlFeature[hidden]:has(+ .tl-grid > .tl-skel) {
    display: block !important; visibility: visible; height: 148px; border-radius: 18px !important; background: var(--ap-l1) !important;
    pointer-events: none; animation: apBreathe 1.6s ease-in-out infinite;
  }
  html:root body.tp-page .tl-grid > .tl-skel { aspect-ratio: auto !important; height: 160px; border-radius: 12px !important; background: var(--ap-l1) !important; }
  html:root body.tp-page .tl-grid:has(> .tl-skel) ~ .tl-how { visibility: hidden; }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  html:root body.lyrc-app :is(a.hero, .ai-lead, .tool-sq, .tpl-strip, .tp-row, .tl-card, .tp-btn, .tp-icon-btn, .cf-cta, .cf-google, .plan .cta) { transition: none !important; }
  html:root body.lyrc-app :is(a.hero, .ai-lead, .tpl-strip, .tool-sq, .tp-icon-btn, .tl-card, .tp-btn, .cf-cta, .cf-google, .plan .cta):active { transform: none !important; }
  html:root body.lyrc-app .tpl-strip-row .tpl-skel { animation: none !important; }
  html:root body.tp-page #tlFeature[hidden] { animation: none !important; }
}

/* ---- sign-in: the "Checking secure sign-in" cover (all widths) ----
   It was a blue-filled box with a sweeping scan line and 10px mono caps: the loudest thing on a page that is otherwise
   still, and it reads as a second loader right after the page loader. Now a quiet spinner and one line of text.
   Same element and ids (#authOverlay, #authOverlayText), so login.html's own show/hide and submit text still work. */
html:root body.lyrc-app .cf-check-overlay { background: #000 !important; gap: 16px !important; }
html:root body.lyrc-app .cf-check-box {
  width: 28px !important; height: 28px !important; border-radius: 50% !important; overflow: visible !important;
  border: 2.5px solid rgba(255, 255, 255, .16) !important; border-top-color: rgba(255, 255, 255, .9) !important;
  background: none !important; animation: apSpin .8s linear infinite !important;
}
html:root body.lyrc-app .cf-check-box > * { display: none !important; }
html:root body.lyrc-app .cf-check-label {
  font: 500 13px/1.3 var(--ap-font) !important; letter-spacing: 0 !important; text-transform: none !important; color: rgba(235, 235, 245, .62) !important;
}
@keyframes apSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html:root body.lyrc-app .cf-check-box { animation-duration: 2.4s !important; } }
