/* CleanYourTV.AI · dark workspace layer · ui-20261028-v2
   Inspired by the LookRoll workspace style: fixed sidebar, photographic hero card,
   glass control bar and calm card grids. Visual only: advertising anchors, ad slot
   sizes, account, billing, support and download behaviour are unchanged. */

:root {
  color-scheme: dark;
  --lr-bg: #09090b;
  --lr-sidebar: #0c0c0e;
  --lr-surface: #121214;
  --lr-surface-2: #18181b;
  --lr-surface-3: #202024;
  --lr-line: rgba(255, 255, 255, .08);
  --lr-line-2: rgba(255, 255, 255, .14);
  --lr-text: #f4f4f5;
  --lr-text-2: #a1a1aa;
  --lr-text-3: #71717a;
  --lr-accent: #7ae3bf;
  --lr-radius: 16px;
  --lr-radius-lg: 24px;
  --lr-content: 1240px;
  --lr-sidebar-w: 248px;
  --lr-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", Arial, sans-serif;
}

html { background: var(--lr-bg); scroll-padding-top: 84px; }
body { background: var(--lr-bg); color: var(--lr-text); font-family: var(--lr-font); letter-spacing: 0; }
::selection { background: rgba(122, 227, 191, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--lr-accent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; inset: 10px auto auto 10px; padding: 10px 14px; border-radius: 10px; background: #fff; color: #09090b; font-weight: 600; transform: translateY(-160%); transition: transform .15s; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Buttons ---------- */
.button { border-radius: 999px; font-weight: 600; letter-spacing: 0; min-height: 44px; padding: 11px 22px; gap: 10px; transition: background .18s, border-color .18s, color .18s; }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.button.green { background: #fff; color: #09090b; border: 1px solid #fff; box-shadow: none; }
.button.green:hover { background: #e4e4e7; border-color: #e4e4e7; color: #09090b; box-shadow: none; }
.button.dark { background: var(--lr-surface-2); color: var(--lr-text); border: 1px solid var(--lr-line-2); }
.button.dark:hover { background: var(--lr-surface-3); border-color: rgba(255, 255, 255, .24); }
.button.outline { background: transparent; color: var(--lr-text); border: 1px solid var(--lr-line-2); }
.button.outline:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .24); }
.text-link { color: #e4e4e7; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .28); padding-bottom: 2px; }
.text-link:hover { color: #fff; border-color: #fff; }

/* ---------- Header / navigation (tablet + phone: top bar) ---------- */
.site-header.nav {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: none; min-height: 64px; margin: 0; padding: 12px 24px; gap: 14px;
  background: rgba(9, 9, 11, .84); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lr-line);
}
.site-header .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; color: #fff; }
.site-header .brand img { width: 30px; height: 30px; border-radius: 9px; }
.site-header .site-nav { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--lr-text-2); }
.site-header .site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--lr-text-2); transition: color .16s, background .16s; }
.site-header .site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-header .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.language-picker select { background: var(--lr-surface-2); border: 1px solid var(--lr-line-2); border-radius: 999px; color: var(--lr-text); min-height: 38px; padding: 8px 12px; font-size: 12px; }
.site-header #account-nav { background: #fff; color: #09090b; border: 1px solid #fff; border-radius: 999px; min-height: 38px; padding: 8px 16px; font-size: 13px; font-weight: 600; gap: 8px; }
.site-header #account-nav:hover { background: #e4e4e7; border-color: #e4e4e7; }
.site-header .nav-toggle { display: none; }

/* ---------- Desktop: fixed sidebar like a creative workspace ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 24px; }
  body { padding-inline-start: var(--lr-sidebar-w); }
  .site-header.nav {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--lr-sidebar-w); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 20px 14px 18px;
    background: var(--lr-sidebar); border-bottom: 0; border-inline-end: 1px solid var(--lr-line);
    -webkit-backdrop-filter: none; backdrop-filter: none; overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header .brand { padding: 4px 10px 20px; }
  .site-header .site-nav { flex-direction: column; align-items: stretch; gap: 2px; font-size: 14px; }
  .site-header .site-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #c8c8cf; font-weight: 500; line-height: 1.3; }
  .site-header .site-nav a::before {
    content: ""; flex: none; width: 18px; height: 18px; background: currentColor; opacity: .85;
    -webkit-mask: var(--lr-icon) center / contain no-repeat; mask: var(--lr-icon) center / contain no-repeat;
  }
  .site-header .site-nav a[href$="/downloads"] { order: -1; justify-content: center; margin: 0 0 16px; padding: 12px 16px; border-radius: 999px; background: #fff; color: #09090b; font-weight: 650; }
  .site-header .site-nav a[href$="/downloads"]:hover { background: #e4e4e7; color: #09090b; }
  .site-header .language-picker { margin-top: auto; padding: 12px 2px 8px; }
  .site-header .language-picker select { width: 100%; max-width: none; border-radius: 12px; min-height: 40px; }
  .site-header #account-nav { justify-content: space-between; width: 100%; min-height: 46px; padding: 12px 16px; border-radius: 14px; background: var(--lr-surface-2); color: var(--lr-text); border: 1px solid var(--lr-line-2); }
  .site-header #account-nav:hover { background: var(--lr-surface-3); border-color: rgba(255, 255, 255, .24); }
}

/* Sidebar icons (inline SVG masks, no extra requests). */
.site-nav a { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E"); }
.site-nav a.nav-home { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5 12 3.5l8.5 7V19a1.5 1.5 0 0 1-1.5 1.5h-4.5v-6h-5v6H5A1.5 1.5 0 0 1 3.5 19z'/%3E%3C/svg%3E"); }
.site-nav a[href$="#how"] { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8.5v7l5.5-3.5z'/%3E%3C/svg%3E"); }
.site-nav a[href$="#compatibility"] { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20.5h8M12 16.5v4'/%3E%3C/svg%3E"); }
.site-nav a[href$="#pricing"] { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.4'/%3E%3C/svg%3E"); }
.site-nav a[href$="/library"] { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.6'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.6'/%3E%3C/svg%3E"); }
.site-nav a[href$="/downloads"] { --lr-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }

/* ---------- Phone navigation (menu sheet) ---------- */
@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .site-header.nav { padding: 10px 14px; min-height: 60px; gap: 10px; flex-wrap: nowrap; }
  .site-header .brand { font-size: 16px; margin-inline-end: auto; }
  .site-header .brand img { width: 28px; height: 28px; }
  .site-header #account-nav { order: 2; min-height: 38px; padding: 8px 14px; font-size: 12px; }
  .site-header .nav-toggle { order: 3; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--lr-line-2); background: var(--lr-surface-2); color: #fff; }
  .site-header .nav-toggle svg { width: 20px; height: 20px; }
  .ui-enhanced .site-header .site-nav { display: none; }
  .ui-enhanced .site-header.is-menu-open .site-nav {
    display: flex; position: absolute; top: calc(100% + 8px); inset-inline: 12px; z-index: 70;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: #121214; border: 1px solid var(--lr-line-2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  }
  .ui-enhanced .site-header .site-nav a { padding: 12px 14px; border-radius: 12px; font-size: 15px; color: #e4e4e7; }
  .ui-enhanced .site-header .site-nav .language-picker { display: block; align-self: stretch; width: auto; max-width: none; margin: 6px 0 0; padding: 10px 6px 4px; border-top: 1px solid var(--lr-line); }
  .ui-enhanced .site-header .site-nav .language-picker select { width: 100%; max-width: none; border-radius: 12px; min-height: 44px; font-size: 14px; }
  /* No-JavaScript fallback: keep every link and the language selector reachable. */
  html:not(.ui-enhanced) .site-header.nav { flex-wrap: wrap; }
  html:not(.ui-enhanced) .site-header .nav-toggle { display: none; }
  html:not(.ui-enhanced) .site-header .site-nav { display: flex; flex-wrap: wrap; order: 5; width: 100%; gap: 4px; }
  html:not(.ui-enhanced) .site-header .language-picker { order: 4; }
}

/* ---------- Hero: photographic card + glass download bar ---------- */
.hero { max-width: calc(var(--lr-content) + 48px); margin: 0 auto; padding: 20px 24px 0; display: block; text-align: center; }
.hero-copy {
  position: relative; isolation: isolate; overflow: hidden; max-width: none; margin: 0;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px) clamp(30px, 4vw, 46px);
  border-radius: var(--lr-radius-lg); border: 1px solid var(--lr-line);
  background: #0d0f14 url("/images/hero-living-room.webp?v=ui-20261028-v2") center 40% / cover no-repeat;
}
.hero-copy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 52% at 50% 40%, rgba(9, 9, 11, .5), transparent 72%),
    linear-gradient(180deg, rgba(9, 9, 11, .28) 0%, rgba(9, 9, 11, .42) 34%, rgba(9, 9, 11, .8) 70%, rgba(9, 9, 11, .95) 100%);
}
.hero-copy > .eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto; padding: 6px 14px 6px 10px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(16, 16, 19, .55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #e4e4e7; font-size: 11px; font-weight: 600; letter-spacing: .12em;
}
.hero-copy > .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lr-accent); box-shadow: 0 0 0 4px rgba(122, 227, 191, .18); }
.hero h1, .hero h1.search-hero-title { margin: 24px auto 18px; max-width: min(100%, 15em); font-size: clamp(38px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
html[lang^=zh] .hero h1.search-hero-title, html[lang=ja] .hero h1.search-hero-title, html[lang=ko] .hero h1.search-hero-title { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.22; letter-spacing: -.01em; }
.hero h1 .hero-product, .hero h1.search-hero-title .hero-product { display: block; margin-bottom: 14px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.3; letter-spacing: .02em; font-weight: 600; color: var(--lr-accent); text-shadow: none; }
.hero h1.search-hero-title > span + span { color: #fff; }
.hero .lead { max-width: 640px; margin: 0 auto; color: rgba(244, 244, 245, .8); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.7; }
.hero-direct-downloads {
  max-width: 900px; margin: 34px auto 0; padding: 14px; border-radius: 22px; text-align: start;
  background: rgba(14, 14, 17, .72); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hero-direct-downloads .download-intro { margin: 2px 6px 12px; text-align: start; font-size: 13px; font-weight: 500; color: var(--lr-text-2); }
.hero-copy > .cyt-ad-slot { margin: 22px auto 0; }
.hero-copy .cyt-ad-label { color: rgba(244, 244, 245, .55); }
.hero-attribution { max-width: 680px; margin: 22px auto 0; font-size: 12px; line-height: 1.7; color: rgba(244, 244, 245, .56); }
.hero-attribution a { color: #e4e4e7; text-decoration: underline; text-underline-offset: 3px; }
.hero .actions { margin-top: 22px; gap: 18px; justify-content: center; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; font-size: 12px; color: rgba(244, 244, 245, .7); }
.hero-notes span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }

/* Download chips (hero, home block, closing block, downloads page compact list). */
.download-choices { gap: 10px; }
.download-quick-link { min-height: 72px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); color: #fff; transition: background .18s, border-color .18s; }
.download-quick-link:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); transform: none; }
.download-quick-link .download-platform-icon { color: var(--lr-accent); }
.download-quick-copy strong { color: #fff; font-weight: 600; }
.download-quick-copy small, .download-quick-copy span { color: var(--lr-text-2); }
.download-quick-link .download-arrow { color: var(--lr-text-2); }

/* Before / after card */
.hero-art { max-width: none; margin: 14px 0 0; padding: 0; }
.hero-art::before { display: none; }
.tv-comparison { margin: 0; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--lr-radius-lg); background: var(--lr-surface); border: 1px solid var(--lr-line); }
.tv-comparison .comparison-hero-image { border-radius: 14px; }

.compat-strip { width: calc(100% - 48px); max-width: var(--lr-content); margin: 14px auto 0; padding: 18px 24px; border-radius: var(--lr-radius); background: var(--lr-surface); border: 1px solid var(--lr-line); color: var(--lr-text-2); }
.compat-strip strong { color: #fff; font-weight: 600; }
.compat-strip > span { color: var(--lr-text-3); }

/* ---------- Sections ---------- */
.section { max-width: calc(var(--lr-content) + 48px); margin: 0 auto; padding: clamp(56px, 7vw, 96px) 24px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.section-head > div { max-width: 720px; }
.section-head p { max-width: 460px; margin: 0; color: var(--lr-text-2); font-size: 14px; line-height: 1.7; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--lr-text-3); }
.section-head .eyebrow { margin-bottom: 10px; }
h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
h3 { color: #fff; }
.fine-print { color: var(--lr-text-3); }

.steps, .compat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps article, .compat-grid article { padding: 24px; border: 1px solid var(--lr-line); border-radius: var(--lr-radius); background: var(--lr-surface); transition: border-color .2s, background .2s; }
.steps article:hover, .compat-grid article:hover { border-color: var(--lr-line-2); background: var(--lr-surface-2); }
.steps h3, .compat-grid h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.steps p, .compat-grid p { max-width: none; color: var(--lr-text-2); font-size: 14px; line-height: 1.7; }
.step-number { color: var(--lr-text-3); letter-spacing: .1em; }
.step-icon { color: var(--lr-accent); }

.capabilities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; }
.capabilities-grid article, .capabilities-grid article:nth-last-child(-n+3) { padding: 24px; border: 1px solid var(--lr-line); border-radius: var(--lr-radius); background: var(--lr-surface); }
.capabilities-grid h3 { font-size: 18px; font-weight: 600; }
.capabilities-grid p { color: var(--lr-text-2); font-size: 14px; }
.capabilities-grid .step-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--lr-line); color: var(--lr-accent); }

/* Inspiration board */
.community-section, .setup-guide, .feature-band { max-width: calc(var(--lr-content) + 48px); margin: 0 auto; padding: clamp(56px, 7vw, 96px) 24px 0; background: none; border: 0; border-radius: 0; }
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--lr-line); background: var(--lr-surface); }
.community-grid figure:hover { border-color: var(--lr-line-2); }
.community-grid figure > a { display: block; overflow: hidden; background: #050507; }
.community-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.community-grid figcaption { position: absolute; inset: auto 0 0; display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 64px 18px 16px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .84)); pointer-events: none; }
.community-grid figcaption a { pointer-events: auto; }
.community-grid figcaption b { color: #fff; font-size: 17px; font-weight: 600; }
.community-grid figcaption p { margin-top: 4px; color: rgba(244, 244, 245, .72); font-size: 12px; }
.community-grid figcaption > a { flex: none; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12px; white-space: nowrap; }
.community-actions { margin-top: 22px; gap: 20px; }

.home-download-block { margin-top: 22px; padding: 16px; border: 1px solid var(--lr-line); border-radius: var(--lr-radius-lg); background: var(--lr-surface); }
.home-download-block .download-intro, .closing-downloads .download-intro { color: var(--lr-text-2); font-size: 13px; }
.closing-downloads .download-choices { max-width: 1040px; margin-inline: auto; }

/* Pricing */
.pricing-section {
  width: calc(100% - 48px); max-width: var(--lr-content); margin: clamp(56px, 7vw, 96px) auto 0; padding: clamp(28px, 4vw, 56px);
  border-radius: var(--lr-radius-lg); border: 1px solid var(--lr-line);
  background: radial-gradient(120% 80% at 50% 0%, rgba(122, 227, 191, .08), transparent 60%), var(--lr-surface);
}
.pricing-copy p { color: var(--lr-text-2); }
.price-card, .pricing-plans .price-card { background: var(--lr-surface-2); border: 1px solid var(--lr-line); border-radius: 18px; box-shadow: none; }
.price-card.featured-plan { border-color: rgba(255, 255, 255, .34); background: linear-gradient(180deg, #1e1e22, #151518); }
.pricing-plans .price { color: #fff; font-size: 44px; font-weight: 650; letter-spacing: -.03em; }
.price-card ul { border-color: var(--lr-line); }
.price-card > small, .price-card p { color: var(--lr-text-2); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.faq details { border-bottom: 1px solid var(--lr-line); padding: 18px 0; }
.faq summary { color: #fff; font-size: 15px; font-weight: 550; cursor: pointer; }
.faq details p { color: var(--lr-text-2); }
.faq-group > h3 { color: var(--lr-accent); }
.faq-sources a { color: #c8c8cf; }

/* Footer */
footer { max-width: calc(var(--lr-content) + 48px); margin: clamp(64px, 8vw, 104px) auto 0; padding: 28px 24px 36px; border-top: 1px solid var(--lr-line); color: var(--lr-text-3); }
footer a { color: var(--lr-text-2); }
footer a:hover { color: #fff; }
footer p, footer > span { color: var(--lr-text-3); }

/* ---------- Workspace pages (downloads, library, account, legal) ---------- */
.workspace { max-width: 1180px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 24px 40px; }
.workspace h1 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); font-weight: 650; line-height: 1.12; letter-spacing: -.03em; }
.workspace > p { color: var(--lr-text-2); }
.panel { background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 20px; }
.panel p { color: var(--lr-text-2); }
.download-platform-card { background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 20px; }
.library-heading { gap: 24px; }
.library-tabs .button.dark { background: #fff; color: #09090b; border-color: #fff; }
.library-tabs .button.outline { background: var(--lr-surface-2); border-color: var(--lr-line); color: var(--lr-text-2); }
.library-card { background: var(--lr-surface); border: 1px solid var(--lr-line); border-radius: 18px; overflow: hidden; }
.library-card:hover { border-color: var(--lr-line-2); }
.library-card-copy p { color: var(--lr-text-2); }
.library-dialog { background: var(--lr-surface); border: 1px solid var(--lr-line-2); border-radius: 22px; color: var(--lr-text); }

/* ---------- Support assistant ---------- */
.support-launch { background: #fff !important; color: #09090b !important; border: 1px solid #fff !important; border-radius: 999px !important; font-weight: 650 !important; box-shadow: 0 14px 40px rgba(0, 0, 0, .5) !important; }
.support-launch:hover { background: #e4e4e7 !important; }
.support-dialog { background: #121214; border: 1px solid var(--lr-line-2); border-radius: 22px; color: var(--lr-text); }
.support-head { align-items: flex-start; gap: 12px; }
.support-head > div { min-width: 0; flex: 1 1 0; }
.support-head .button { flex: none; white-space: nowrap; }
.support-head p { color: var(--lr-text-2); }
/* Support inbox: paid accounts are visible to authorized staff without exposing billing data to users. */
.support-admin-grid > .panel { overflow: hidden; }
.inbox-row { width: 100%; padding: 14px 16px; text-align: start; color: var(--lr-text); background: transparent; border: 0; border-bottom: 1px solid var(--lr-line); cursor: pointer; }
.inbox-row:hover, .inbox-row.selected { background: var(--lr-surface-2); }
.inbox-row.is-paid { background: linear-gradient(90deg, rgba(122, 227, 191, .12), transparent 72%); box-shadow: inset 3px 0 0 var(--lr-accent); }
.inbox-row.is-paid:hover, .inbox-row.is-paid.selected { background: linear-gradient(90deg, rgba(122, 227, 191, .19), rgba(255, 255, 255, .04) 78%); }
.inbox-row-main { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.inbox-row-copy { display: block; min-width: 0; flex: 1; }
.inbox-row b, .inbox-row span, .inbox-row small { overflow-wrap: anywhere; }
.inbox-row-copy > b, .inbox-row-copy > span, .inbox-row-copy > small { display: block; }
.inbox-row-copy > b { color: #fff; font-size: 14px; font-weight: 600; line-height: 1.45; }
.inbox-row-copy > span { margin-top: 4px; color: var(--lr-accent); font-size: 12px; }
.inbox-row-copy > small { margin-top: 3px; color: var(--lr-text-3); font-size: 11px; }
.inbox-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; inline-size: 30px; block-size: 30px; border-radius: 50%; background: var(--lr-surface-3); border: 1px solid var(--lr-line-2); color: #d4d4d8; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.inbox-avatar.is-paid { background: rgba(122, 227, 191, .17); border-color: rgba(122, 227, 191, .5); color: #caffea; }
.support-paid-badge { display: inline-flex; align-items: center; vertical-align: middle; margin-inline-start: 7px; padding: 2px 7px; border: 1px solid rgba(122, 227, 191, .46); border-radius: 999px; background: rgba(122, 227, 191, .13); color: #bdf6df; font-size: 10px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; }
.support-admin-heading { display: flex; align-items: flex-start; gap: 12px; padding: 4px 2px 15px; border-bottom: 1px solid var(--lr-line); }
.support-admin-heading.is-paid { margin: -2px -2px 4px; padding: 14px; border: 1px solid rgba(122, 227, 191, .28); border-radius: 16px; background: linear-gradient(120deg, rgba(122, 227, 191, .12), transparent 65%); }
.support-admin-heading h2 { margin: 0; color: #fff; font-size: 21px; line-height: 1.3; }
.support-admin-heading p { margin: 5px 0 0; color: var(--lr-text-2); font-size: 13px; }
.support-admin-messages { max-height: 650px; overflow: auto; margin: 20px 0; }
.support-admin-messages .support-bubble { margin: 12px 0; background: var(--lr-surface-2); border: 1px solid var(--lr-line); color: var(--lr-text); }
.support-admin-messages .support-bubble.user { background: rgba(122, 227, 191, .08); border-color: rgba(122, 227, 191, .16); }
.support-admin-messages .support-bubble.staff { background: rgba(157, 188, 255, .09); border-color: rgba(157, 188, 255, .22); }
.support-admin-messages .support-bubble.notice { background: rgba(244, 196, 110, .09); border-color: rgba(244, 196, 110, .2); }
.support-admin-messages .support-bubble p { color: inherit; }
.support-admin-messages .support-bubble img { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; border: 1px solid var(--lr-line); }

/* ---------- Advertising: visual tokens only (sizes and anchors unchanged) ---------- */
.cyt-ad-label { color: var(--lr-text-3); }
.cyt-ad-slot[data-unit=native] { border-block-color: var(--lr-line); }
.cyt-ad-choice { background: var(--lr-surface); color: var(--lr-text); border-color: var(--lr-line-2); border-radius: 16px; }
.cyt-ad-choice button, .cyt-ad-settings { background: var(--lr-surface-2); color: var(--lr-text); border-color: var(--lr-line-2); border-radius: 999px; }
.cyt-ad-choice button:hover, .cyt-ad-settings:hover { border-color: rgba(255, 255, 255, .3); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .steps, .compat-grid, .capabilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { padding: 0; }
  /* Edge-to-edge hero keeps 320px phone banners fitting on 360px screens. */
  .hero-copy { border-radius: 0 0 22px 22px; border-inline: 0; border-top: 0; padding: 56px 16px 28px; background-image: url("/images/hero-living-room-1280.webp?v=ui-20261028-v2"); background-position: 62% 30%; }
  .hero h1, .hero h1.search-hero-title { font-size: clamp(31px, 8.6vw, 42px); letter-spacing: -.025em; margin: 20px auto 14px; }
  html[lang^=zh] .hero h1.search-hero-title, html[lang=ja] .hero h1.search-hero-title, html[lang=ko] .hero h1.search-hero-title { font-size: clamp(28px, 7.8vw, 38px); }
  .hero h1.search-hero-title .hero-product { font-size: 15px; margin-bottom: 10px; }
  .hero .lead { font-size: 15px; }
  .hero-direct-downloads { margin-top: 26px; padding: 10px; border-radius: 18px; }
  .hero-direct-downloads .download-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-quick-link { min-height: 76px; padding: 12px; }
  .hero-art { margin: 14px 12px 0; }
  .compat-strip { width: calc(100% - 24px); padding: 16px; }
  .section, .community-section, .setup-guide, .feature-band { padding: 56px 16px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .steps, .compat-grid, .capabilities-grid, .community-grid { grid-template-columns: 1fr; }
  .inbox-row { padding: 13px 14px; }
  .support-admin-heading.is-paid { padding: 12px; }
  .steps, .compat-grid, .capabilities-grid { gap: 10px; }
  .steps article, .compat-grid article, .capabilities-grid article, .capabilities-grid article:nth-last-child(-n+3) { padding: 18px; }
  .capabilities-grid .step-icon { width: 34px; height: 34px; border-radius: 10px; }
  .capabilities-grid h3, .steps h3, .compat-grid h3 { margin-top: 12px; margin-bottom: 6px; font-size: 16px; }
  .steps p, .compat-grid p, .capabilities-grid p { font-size: 13.5px; line-height: 1.6; }
  .capabilities-grid article:nth-last-child(-n+2), .capabilities-grid article:nth-last-child(-n+3) { border-bottom: 1px solid var(--lr-line); }
  .community-grid figcaption { position: static; flex-direction: column; align-items: flex-start; padding: 16px; background: none; pointer-events: auto; }
  .pricing-section { width: calc(100% - 24px); padding: 26px 16px; }
  .faq { grid-template-columns: 1fr; gap: 18px; }
  footer { padding: 26px 16px 32px; }
  .workspace { padding: 32px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .download-quick-link, .site-header .site-nav a, .steps article { transition: none; }
}
