:root {
  color-scheme: light;
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #202124;
  --muted: #626a75;
  --line: #dadde2;
  --accent: #5e63c8;
  --accent-contrast: #fff;
  --hero: #171a19;
  --dialog: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
html[data-theme="dark"] { color-scheme: dark; --bg:#151a22; --surface:#1d2530; --surface-2:#232e3b; --ink:#edf1f7; --muted:#a0adbd; --line:#344252; --accent:#a8a1ff; --accent-contrast:#171727; --hero:#10141b; --dialog:#1d2530; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] { color-scheme:dark; --bg:#151a22; --surface:#1d2530; --surface-2:#232e3b; --ink:#edf1f7; --muted:#a0adbd; --line:#344252; --accent:#a8a1ff; --accent-contrast:#171727; --hero:#10141b; --dialog:#1d2530; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:15px; line-height:1.55; transition:background .2s,color .2s; }
button,a,select { font:inherit; }
button { color:inherit; }
a { color:inherit; text-decoration:none; }
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.section-wrap { width:min(1240px,calc(100% - 64px)); margin-inline:auto; }
.topbar { position:sticky; top:8px; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:24px; width:min(1380px,calc(100% - 32px)); min-height:54px; margin:8px auto -62px; padding:6px 10px 6px 15px; border:1px solid color-mix(in srgb,var(--line),transparent 30%); border-radius:14px; background:color-mix(in srgb,var(--bg),transparent 8%); box-shadow:0 4px 18px rgba(0,0,0,.07); backdrop-filter:blur(14px); }
.brand { display:flex; align-items:center; gap:9px; flex:0 0 auto; font-size:14px; font-weight:750; letter-spacing:.07em; }
.brand::first-letter { color:var(--accent); }
.nav-links { display:flex; align-items:center; gap:clamp(16px,2.5vw,34px); }
.nav-links a,.nav-links button { padding:0; border:0; background:transparent; color:var(--ink); font-size:13px; font-weight:550; cursor:pointer; }
.nav-links a:hover,.nav-links button:hover,.text-link:hover { color:var(--accent); }
.header-actions { display:flex; align-items:center; gap:10px; }
.theme-picker { position:relative; display:flex; width:36px; min-width:36px; height:36px; align-items:center; justify-content:center; padding:0; border:1px solid var(--line); border-radius:10px; color:var(--muted); cursor:pointer; transition:background .18s ease,box-shadow .18s ease; }
.theme-picker:hover { background:color-mix(in srgb,var(--surface),transparent 14%); box-shadow:0 0 15px var(--prism-violet),0 0 22px var(--prism-cyan); }
.theme-picker:focus-within { outline:2px solid color-mix(in srgb,var(--accent),transparent 45%); outline-offset:2px; }
.theme-glyph { font-size:18px; line-height:1; pointer-events:none; }
.theme-picker select { position:absolute; inset:0; width:100%; height:100%; appearance:none; opacity:0; cursor:pointer; }
.nav-cta { min-height:36px; padding:0 16px; border:1px solid var(--ink); border-radius:9px; background:var(--ink); color:var(--bg); font-size:12px; font-weight:650; cursor:pointer; }
.menu-toggle { display:none; }
.hero { position:relative; display:flex; align-items:center; min-height:690px; overflow:hidden; isolation:isolate; background:var(--hero); color:#fff; }
.hero-shade { position:absolute; inset:0; z-index:-1; }
.hero-shade { z-index:0; background:linear-gradient(90deg,rgba(10,12,11,.84) 0%,rgba(10,12,11,.65) 36%,rgba(10,12,11,.1) 76%),linear-gradient(0deg,rgba(10,12,11,.37),transparent 45%); }
.hero-content { position:relative; z-index:1; padding-top:72px; }
.eyebrow,.section-kicker { margin:0 0 16px; color:var(--muted); font-size:10px; font-weight:650; letter-spacing:.1em; }
.hero .eyebrow { color:rgba(255,255,255,.78); }
h1,h2,h3,p { margin-top:0; }
.hero h1 { max-width:740px; margin-bottom:20px; font-size:clamp(45px,6vw,76px); font-weight:620; letter-spacing:-.055em; line-height:1.02; }
.hero h1 em { color:#f2a18a; font-style:normal; }
.hero-copy { max-width:510px; margin-bottom:27px; color:rgba(255,255,255,.8); font-size:16px; line-height:1.65; }
.hero-actions { display:flex; align-items:center; gap:20px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px; border-radius:9px; font-size:13px; font-weight:650; cursor:pointer; }
.button-primary { border:1px solid var(--accent); background:var(--accent); color:var(--accent-contrast); }
.text-link { color:inherit; font-size:13px; font-weight:550; }
.hero .text-link { color:rgba(255,255,255,.86); }
.hero-caption { position:absolute; right:32px; bottom:18px; left:32px; z-index:1; display:flex; justify-content:space-between; color:rgba(255,255,255,.6); font-size:9px; letter-spacing:.1em; }
.formats { padding-top:96px; padding-bottom:102px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin-bottom:30px; }
.section-heading h2,.faq-intro h2 { margin:0; font-size:clamp(30px,4vw,48px); font-weight:620; letter-spacing:-.045em; line-height:1.08; }
.section-heading > p { max-width:370px; margin:0 0 3px; color:var(--muted); font-size:14px; line-height:1.6; }
.format-grid { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.format-card { position:relative; display:flex; flex-direction:column; min-height:255px; padding:20px 21px 18px; border:0; border-right:1px solid var(--line); background:transparent; text-align:left; cursor:pointer; transition:background .18s; }
.format-card:first-child { border-left:1px solid var(--line); }
.format-card:hover { background:var(--surface-2); }
.format-number { color:var(--muted); font-size:10px; }
.format-symbol { display:grid; place-items:center; width:41px; height:41px; margin-top:25px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--accent); font-size:19px; font-weight:600; }
.format-title { margin-top:14px; font-size:20px; font-weight:620; letter-spacing:-.025em; }
.format-description { max-width:230px; margin-top:5px; color:var(--muted); font-size:12px; line-height:1.5; }
.format-link { margin-top:auto; padding-top:16px; color:var(--accent); font-size:11px; font-weight:650; }
.trends-section { padding:76px 0 72px; background:var(--surface-2); }
.trends-heading { margin-bottom:24px; }
.trends-heading .section-kicker { margin-bottom:10px; }
.trend-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.trend-card { min-width:0; padding:0; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:var(--surface); text-align:left; cursor:pointer; transition:transform .18s,border-color .18s; }
.trend-card:hover { transform:translateY(-3px); border-color:var(--accent); }
.trend-poster { position:relative; display:block; aspect-ratio:.82; overflow:hidden; background-size:cover; }
.poster-one { background-color:#e3e9f0; background-image:linear-gradient(145deg,#e4eaf2,#d9e1ec); }
.poster-two { background-color:#e5e4ed; background-image:linear-gradient(145deg,#e8e7ef,#deddea); }
.poster-three { background-color:#e1eaec; background-image:linear-gradient(145deg,#e2ecee,#d9e5e8); }
.poster-four { background-color:#e7e5ed; background-image:linear-gradient(145deg,#ebe9f1,#dfdfea); }
.poster-play { position:absolute; top:50%; left:50%; display:grid; place-items:center; width:40px; height:40px; padding-left:2px; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.75); border-radius:50%; background:rgba(20,20,20,.38); color:#fff; font-size:13px; backdrop-filter:blur(8px); }
.poster-label { position:absolute; bottom:11px; left:12px; color:#fff; font-size:9px; font-weight:650; letter-spacing:.1em; }
.trend-info { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px 12px; }
.trend-info b,.trend-info small { display:block; }
.trend-info b { font-size:13px; font-weight:620; }
.trend-info small { margin-top:3px; color:var(--muted); font-size:10px; }
.trend-info time { color:var(--muted); font-size:10px; }
.trend-disclaimer,.pricing-note { margin:16px 0 0; color:var(--muted); font-size:11px; }
.pricing-section { padding-top:98px; padding-bottom:105px; }
.pricing-heading { margin-bottom:15px; }
.pricing-heading > p { max-width:430px; }
.pricing-note { margin:0 0 23px; }
.plans-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.plan-card { display:flex; flex-direction:column; min-height:280px; padding:22px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.plan-featured { border-color:var(--accent); }
.plan-label { margin:0 0 10px; color:var(--accent); font-size:9px; font-weight:700; letter-spacing:.1em; }
.plan-name { margin:0; font-size:15px; font-weight:650; }
.plan-tokens { margin:20px 0 2px; font-size:31px; font-weight:650; letter-spacing:-.04em; }
.plan-tokens span { color:var(--muted); font-size:13px; font-weight:500; letter-spacing:0; }
.plan-price { display:flex; align-items:baseline; gap:9px; margin:0; font-size:18px; font-weight:620; }
.plan-price span { color:var(--muted); font-size:11px; font-weight:450; }
.plan-access { margin:20px 0 17px; padding-top:13px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.plan-button { min-height:40px; margin-top:auto; border:1px solid var(--ink); border-radius:8px; background:transparent; color:var(--ink); font-size:12px; font-weight:620; cursor:pointer; }
.plan-featured .plan-button { background:var(--ink); color:var(--bg); }
.faq-section { padding:87px 0; background:var(--surface); }
.faq-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(40px,8vw,110px); }
.faq-intro .section-kicker { margin-bottom:12px; }
.faq-intro p:not(.section-kicker) { max-width:300px; margin:14px 0 18px; color:var(--muted); font-size:13px; }
.button-secondary { border:1px solid var(--line); background:transparent; color:var(--ink); }
.faq-list { border-top:1px solid var(--line); }
.faq-list details { border-bottom:1px solid var(--line); }
.faq-list summary { position:relative; padding:19px 32px 19px 0; list-style:none; font-size:14px; font-weight:570; cursor:pointer; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after { position:absolute; right:2px; content:"+"; color:var(--accent); font-size:20px; font-weight:400; }
.faq-list details[open] summary::after { content:"−"; }
.faq-list details p { max-width:620px; margin:0 30px 18px 0; color:var(--muted); font-size:12px; line-height:1.7; }
.site-footer { padding-top:38px; background:var(--surface-2); }
.footer-main { display:flex; justify-content:space-between; gap:40px; padding-bottom:33px; }
.footer-columns { display:grid; grid-template-columns:repeat(3,minmax(130px,1fr)); gap:35px; }
.footer-columns div { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.footer-columns b { margin-bottom:4px; font-size:9px; letter-spacing:.08em; }
.footer-columns a,.footer-columns span { color:var(--muted); font-size:11px; }
.footer-bottom { display:flex; justify-content:space-between; gap:12px; padding-top:14px; padding-bottom:17px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }

dialog { color:var(--ink); }
.auth-dialog,.studio-dialog { position:fixed; width:min(850px,calc(100% - 30px)); max-width:none; max-height:min(760px,calc(100% - 30px)); padding:0; overflow:auto; border:1px solid var(--line); border-radius:14px; background:var(--dialog); box-shadow:0 24px 90px rgba(0,0,0,.3); }
.auth-dialog::backdrop,.trend-dialog::backdrop,.studio-dialog::backdrop { background:rgba(7,9,8,.68); backdrop-filter:blur(4px); }
.auth-dialog { grid-template-columns:1.03fr .97fr; }
.auth-dialog[open] { display:grid; }
.dialog-close { position:absolute; top:13px; right:13px; z-index:2; display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; background:var(--surface); font-size:20px; cursor:pointer; }
.auth-copy { padding:43px clamp(24px,5vw,53px); }
.auth-copy .section-kicker { margin-bottom:11px; }
.auth-copy h2,.studio-dialog h2 { margin:0 0 9px; font-size:25px; font-weight:630; letter-spacing:-.035em; line-height:1.2; }
.auth-copy > p:not(.section-kicker) { color:var(--muted); font-size:12px; }
.auth-options { display:grid; gap:9px; margin:22px 0 20px; }
.auth-options button { display:flex; align-items:center; gap:11px; min-height:45px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-size:12px; font-weight:570; text-align:left; cursor:pointer; }
.auth-options button:hover { border-color:var(--accent); }
.provider-icon { display:grid; place-items:center; width:23px; height:23px; border-radius:6px; font-size:12px; font-weight:700; }
.provider-telegram { background:#d9eff8; color:#168fc2; }.provider-google { background:#f5e4df; color:#d5523c; }.provider-yandex { background:#f8e7df; color:#df442a; }.provider-vk { background:#e2ebf8; color:#2475d1; }
.auth-copy > small { display:block; color:var(--muted); font-size:10px; line-height:1.5; }
.auth-art { position:relative; display:flex; flex-direction:column; justify-content:space-between; min-height:490px; overflow:hidden; padding:23px; background:#232724; color:white; }
.auth-art > span,.auth-art > p { position:relative; z-index:1; }
.auth-art > span { font-size:9px; letter-spacing:.1em; }
.auth-art > p { margin:0; font-size:24px; font-weight:620; letter-spacing:-.03em; }
.auth-art-image { position:absolute; inset:0; background:radial-gradient(ellipse at 76% 24%,rgba(149,190,177,.34),transparent 40%),radial-gradient(ellipse at 24% 72%,rgba(174,194,219,.4),transparent 46%),linear-gradient(145deg,#dce4ec,#e5ebe9); }

.trend-dialog { position:fixed; display:grid; grid-template-columns:120px minmax(300px,1fr) minmax(275px,340px); gap:0; width:min(1220px,calc(100% - 30px)); max-width:none; height:min(740px,calc(100% - 30px)); padding:0; overflow:hidden; border:1px solid var(--line); border-radius:13px; background:var(--dialog); box-shadow:0 24px 90px rgba(0,0,0,.36); }
.trend-dialog[open] { display:grid; }
.related-trends { display:flex; flex-direction:column; gap:9px; padding:18px 12px; border-right:1px solid var(--line); }
.related-trends h3 { margin:0 0 3px; font-size:11px; font-weight:620; }
.related-thumb { min-height:75px; border:1px solid var(--line); border-radius:7px; background:linear-gradient(145deg,rgba(199,213,232,.6),rgba(233,236,243,.45)); cursor:pointer; }
.thumb-a { background-position:15% center; }.thumb-b { background-position:50% center; }.thumb-c { background-position:85% center; }
.trend-player { position:relative; display:grid; place-items:center; margin:14px; background:#1b1e1c; color:#fff; }
.trend-player.poster-one { background-image:linear-gradient(180deg,#454744,#292b2a); }
.trend-player.poster-two { background-image:linear-gradient(180deg,#46535a,#222b30); }
.trend-player.poster-three { background-image:linear-gradient(180deg,#51403d,#282423); }
.trend-player.poster-four { background-image:linear-gradient(180deg,#4b4e44,#292b27); }
.trend-player > span { position:absolute; bottom:13px; left:15px; font-size:9px; letter-spacing:.1em; }
.play-button { display:grid; place-items:center; width:52px; height:52px; padding-left:3px; border:1px solid rgba(255,255,255,.8); border-radius:50%; background:rgba(20,22,21,.5); color:white; cursor:pointer; }
.trend-details { display:flex; flex-direction:column; padding:45px 20px 18px; overflow:auto; border-left:1px solid var(--line); }
.trend-details .section-kicker { margin-bottom:9px; color:var(--accent); }
.trend-details h2 { margin:0 0 14px; font-size:25px; font-weight:630; }
.trend-prompt { max-height:112px; overflow:auto; padding:12px; border:1px solid var(--line); border-radius:7px; background:var(--surface-2); color:var(--muted); font-size:11px; line-height:1.55; }
.upload-box { display:flex; align-items:center; gap:10px; min-height:58px; margin:3px 0 18px; padding:10px; border:1px dashed var(--line); border-radius:7px; color:var(--muted); font-size:10px; }
.upload-box:first-letter { color:var(--accent); }
.trend-details h3 { margin:0 0 9px; font-size:12px; }
.trend-details dl { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0 0 15px; }
.trend-details dl div { min-width:0; }
.trend-details dt { color:var(--muted); font-size:10px; }.trend-details dd { margin:3px 0 0; font-size:12px; font-weight:580; }
.use-template { width:100%; margin-top:auto; }
.template-status,.studio-status { min-height:18px; margin:7px 0 0; color:var(--muted); font-size:10px; }
.studio-dialog { width:min(460px,calc(100% - 30px)); padding:33px; }
.studio-dialog .section-kicker { margin:0 0 10px; }
.studio-note { color:var(--muted); font-size:12px; }
.studio-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:18px; }
.studio-options button { min-height:46px; border:1px solid var(--line); border-radius:8px; background:var(--surface); font-size:12px; text-align:left; padding:0 12px; cursor:pointer; }
.studio-options button:hover { border-color:var(--accent); }
.studio-dialog.has-template .studio-options { display:none; }
.selected-template { margin-top:16px; padding:13px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); }
.selected-template[hidden] { display:none; }
.selected-template h3 { margin:0 0 8px; font-size:14px; }
.selected-template p { margin:5px 0; color:var(--muted); font-size:11px; line-height:1.55; }
.selected-template p b { color:var(--ink); }
.selected-template .upload-box { background:var(--surface); }

/* Refinement pass: quieter chrome, translucent surfaces, and more intentional hierarchy. */
.topbar { background:color-mix(in srgb,var(--bg),transparent 43%); border-color:color-mix(in srgb,var(--line),transparent 58%); box-shadow:0 8px 28px rgba(23,34,51,.045); backdrop-filter:blur(22px) saturate(155%); }
.hero-shade { background:linear-gradient(90deg,rgba(9,14,21,.82) 0%,rgba(9,14,21,.61) 39%,rgba(9,14,21,.16) 78%),linear-gradient(0deg,rgba(9,14,21,.42),transparent 48%); }
.hero h1 { max-width:800px; font-size:clamp(44px,5.8vw,72px); }
.hero h1 em { color:#d3d7e0; }
.button-primary { border-color:rgba(255,255,255,.78); background:rgba(255,255,255,.92); color:#202124; box-shadow:0 3px 14px rgba(0,0,0,.12); }
.button-primary:hover,.nav-cta:hover,.plan-button:hover { transform:translateY(-1px); box-shadow:0 7px 18px rgba(32,33,36,.12); }
.button,.nav-cta,.plan-button { transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.format-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; border:0; }
.format-card { min-height:255px; padding:20px; border:1px solid rgba(255,255,255,.78); border-radius:20px; background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,255,255,.35)); box-shadow:0 12px 32px rgba(52,66,91,.08),inset 0 1px rgba(255,255,255,.9); backdrop-filter:blur(18px) saturate(140%); transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease; }
.format-card:first-child { border-left:1px solid rgba(255,255,255,.78); }
.format-card:hover { transform:translateY(-7px); border-color:rgba(255,255,255,.96); box-shadow:0 22px 40px rgba(52,66,91,.16),inset 0 1px rgba(255,255,255,.96); }
.format-chat { background:linear-gradient(145deg,rgba(220,232,255,.86),rgba(240,246,255,.48)); }
.format-image { background:linear-gradient(145deg,rgba(231,222,255,.8),rgba(248,244,255,.46)); }
.format-video { background:linear-gradient(145deg,rgba(215,239,243,.82),rgba(240,250,251,.48)); }
.format-audio { background:linear-gradient(145deg,rgba(245,226,237,.82),rgba(255,247,251,.5)); }
.format-symbol { border-color:rgba(255,255,255,.9); border-radius:13px; background:rgba(255,255,255,.64); box-shadow:0 5px 14px rgba(53,61,91,.09); }
html[data-theme="dark"] .format-card { border-color:rgba(255,255,255,.13); box-shadow:0 12px 32px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.1); }
html[data-theme="dark"] .format-chat { background:linear-gradient(145deg,rgba(80,109,161,.3),rgba(43,56,79,.42)); }
html[data-theme="dark"] .format-image { background:linear-gradient(145deg,rgba(119,91,170,.28),rgba(57,47,77,.4)); }
html[data-theme="dark"] .format-video { background:linear-gradient(145deg,rgba(63,130,143,.3),rgba(38,62,69,.42)); }
html[data-theme="dark"] .format-audio { background:linear-gradient(145deg,rgba(145,79,119,.27),rgba(68,43,62,.4)); }
.trends-section { position:relative; overflow:hidden; background:linear-gradient(145deg,#edf0f5,#e4e9f0 65%,#eef1f6); }
.trend-grid { grid-template-columns:repeat(12,minmax(0,1fr)); grid-auto-rows:76px; gap:14px; align-items:stretch; }
.trend-card { display:flex; flex-direction:column; border-color:rgba(255,255,255,.85); border-radius:16px; background:rgba(255,255,255,.66); box-shadow:0 10px 26px rgba(43,55,76,.1); backdrop-filter:blur(12px); }
.trend-one { grid-column:1 / span 3; grid-row:1 / span 4; }
.trend-two { grid-column:4 / span 4; grid-row:1 / span 3; }
.trend-three { grid-column:4 / span 4; grid-row:4 / span 3; }
.trend-four { grid-column:8 / span 5; grid-row:1 / span 6; }
.trend-card:hover { transform:translateY(-4px) rotate(-.15deg); border-color:rgba(255,255,255,.96); box-shadow:0 18px 36px rgba(43,55,76,.17); }
.trend-poster { flex:1; min-height:0; aspect-ratio:auto; background-position:center; }
.trend-info { min-height:62px; }
.pricing-section { position:relative; }
.plans-grid { gap:16px; align-items:stretch; }
.plan-card { position:relative; min-height:315px; padding:24px; overflow:hidden; border:1px solid color-mix(in srgb,var(--line),transparent 15%); border-radius:19px; background:linear-gradient(145deg,color-mix(in srgb,var(--surface),transparent 12%),color-mix(in srgb,var(--surface-2),transparent 20%)); box-shadow:0 12px 28px rgba(40,52,73,.07),inset 0 1px rgba(255,255,255,.7); backdrop-filter:blur(18px); transition:transform .22s,box-shadow .22s,border-color .22s; }
.plan-card:hover { transform:translateY(-5px); box-shadow:0 20px 34px rgba(40,52,73,.13),inset 0 1px rgba(255,255,255,.8); }
.plan-featured { border-color:color-mix(in srgb,var(--accent),transparent 35%); background:linear-gradient(145deg,rgba(231,228,255,.9),rgba(248,247,255,.62)); box-shadow:0 16px 36px rgba(94,84,185,.14),inset 0 1px rgba(255,255,255,.96); }
.plan-featured::before { position:absolute; top:0; right:0; left:0; height:3px; background:linear-gradient(90deg,#a6a0ff,#766be8,#b6a4ee); content:""; }
.plan-label { position:absolute; top:17px; right:17px; margin:0; padding:6px 9px; border:1px solid rgba(117,104,224,.23); border-radius:999px; background:rgba(255,255,255,.65); color:#6258d9; font-size:9px; letter-spacing:.06em; }
.plan-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 9px; margin-top:22px; }
.plan-price .price-value { font-size:clamp(31px,3.3vw,40px); font-weight:680; letter-spacing:-.05em; line-height:1.05; }
.plan-price .price-value { color:var(--ink); }
.plan-price small { color:var(--muted); font-size:11px; }
.plan-tokens { margin:11px 0 0; color:var(--ink); font-size:19px; font-weight:620; letter-spacing:-.02em; }
.plan-rate { margin:2px 0 0; color:var(--muted); font-size:11px; }
.plan-access { margin:18px 0 15px; padding-top:13px; }
.plan-button { min-height:42px; border-color:color-mix(in srgb,var(--accent),transparent 35%); border-radius:11px; background:rgba(255,255,255,.35); }
.plan-featured .plan-button { border-color:transparent; background:linear-gradient(115deg,#7169e6,#8c76ec); color:white; }
html[data-theme="dark"] .trends-section { background:linear-gradient(145deg,#1b2430,#202c3a 65%,#1a2430); }
html[data-theme="dark"] .plan-featured { background:linear-gradient(145deg,rgba(78,72,132,.42),rgba(39,43,63,.72)); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .trends-section { background:linear-gradient(145deg,#1b2430,#202c3a 65%,#1a2430); }
  html[data-theme="system"] .plan-featured { background:linear-gradient(145deg,rgba(78,72,132,.42),rgba(39,43,63,.72)); }
}
.auth-dialog { width:min(840px,calc(100% - 30px)); max-height:min(560px,calc(100% - 30px)); border-radius:22px; }
.auth-copy { display:flex; flex-direction:column; justify-content:center; padding:31px clamp(24px,4vw,44px); }
.auth-copy > p:not(.section-kicker) { margin-bottom:5px; }
.auth-options { gap:8px; margin:15px 0 12px; }
.auth-options button { min-height:42px; border-radius:11px; background:color-mix(in srgb,var(--surface),transparent 12%); }
.auth-art { min-height:0; margin:12px; border-radius:17px; }
.studio-dialog { width:min(560px,calc(100% - 30px)); border-radius:20px; background:color-mix(in srgb,var(--dialog),transparent 5%); backdrop-filter:blur(24px) saturate(145%); }
.studio-options { gap:10px; margin-top:20px; }
.studio-options button { display:flex; align-items:center; gap:11px; min-height:82px; padding:11px; border:1px solid rgba(255,255,255,.78); border-radius:15px; background:linear-gradient(145deg,rgba(222,233,255,.8),rgba(255,255,255,.48)); box-shadow:0 6px 17px rgba(43,55,76,.07); transition:transform .2s,box-shadow .2s,border-color .2s; }
.studio-options button:nth-child(2) { background:linear-gradient(145deg,rgba(231,222,255,.78),rgba(255,255,255,.46)); }
.studio-options button:nth-child(3) { background:linear-gradient(145deg,rgba(215,239,243,.8),rgba(255,255,255,.46)); }
.studio-options button:nth-child(4) { background:linear-gradient(145deg,rgba(245,226,237,.8),rgba(255,255,255,.48)); }
.studio-options button:hover,.studio-options button.is-selected { transform:translateY(-3px); border-color:rgba(255,255,255,.96); box-shadow:0 14px 26px rgba(43,55,76,.14); }
.studio-symbol { display:grid; flex:0 0 36px; place-items:center; width:36px; height:36px; border:1px solid rgba(255,255,255,.9); border-radius:11px; background:rgba(255,255,255,.72); color:var(--accent); font-weight:700; }
.studio-option-copy { display:flex; flex:1; flex-direction:column; align-items:flex-start; gap:2px; }
.studio-option-copy b { font-size:12px; }.studio-option-copy small { color:var(--muted); font-size:10px; }
.studio-create { padding:5px 8px; border:1px solid rgba(98,88,217,.16); border-radius:999px; color:var(--accent); font-size:10px; font-weight:620; }
.studio-options button.is-selected .studio-create { background:var(--accent); color:white; }
html[data-theme="dark"] .studio-options button { border-color:rgba(255,255,255,.12); background:linear-gradient(145deg,rgba(75,94,129,.38),rgba(42,52,69,.52)); }
html[data-theme="dark"] .studio-options button:nth-child(2) { background:linear-gradient(145deg,rgba(103,80,145,.38),rgba(48,43,65,.54)); }
html[data-theme="dark"] .studio-options button:nth-child(3) { background:linear-gradient(145deg,rgba(50,108,116,.38),rgba(38,58,64,.54)); }
html[data-theme="dark"] .studio-options button:nth-child(4) { background:linear-gradient(145deg,rgba(126,72,103,.35),rgba(60,43,57,.52)); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .format-card { border-color:rgba(255,255,255,.13); box-shadow:0 12px 32px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.1); }
  html[data-theme="system"] .format-chat { background:linear-gradient(145deg,rgba(80,109,161,.3),rgba(43,56,79,.42)); }
  html[data-theme="system"] .format-image { background:linear-gradient(145deg,rgba(119,91,170,.28),rgba(57,47,77,.4)); }
  html[data-theme="system"] .format-video { background:linear-gradient(145deg,rgba(63,130,143,.3),rgba(38,62,69,.42)); }
  html[data-theme="system"] .format-audio { background:linear-gradient(145deg,rgba(145,79,119,.27),rgba(68,43,62,.4)); }
  html[data-theme="system"] .studio-options button { border-color:rgba(255,255,255,.12); background:linear-gradient(145deg,rgba(75,94,129,.38),rgba(42,52,69,.52)); }
  html[data-theme="system"] .studio-options button:nth-child(2) { background:linear-gradient(145deg,rgba(103,80,145,.38),rgba(48,43,65,.54)); }
  html[data-theme="system"] .studio-options button:nth-child(3) { background:linear-gradient(145deg,rgba(50,108,116,.38),rgba(38,58,64,.54)); }
  html[data-theme="system"] .studio-options button:nth-child(4) { background:linear-gradient(145deg,rgba(126,72,103,.35),rgba(60,43,57,.52)); }
}
@media(max-width:980px) {
  .trend-grid { grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-rows:72px; }
  .trend-one { grid-column:1 / span 2; grid-row:1 / span 4; }
  .trend-two { grid-column:3 / span 4; grid-row:1 / span 3; }
  .trend-three { grid-column:3 / span 4; grid-row:4 / span 3; }
  .trend-four { grid-column:1 / span 6; grid-row:7 / span 3; }
}
@media(max-width:700px) {
  .format-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .format-card,.format-card:first-child,.format-card:nth-child(odd),.format-card:nth-child(even) { min-height:205px; padding:14px; border:1px solid rgba(255,255,255,.78); border-radius:16px; }
  .trend-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:110px; gap:9px; }
  .trend-one { grid-column:1; grid-row:1 / span 3; }
  .trend-two { grid-column:2; grid-row:1 / span 2; }
  .trend-three { grid-column:2; grid-row:3 / span 2; }
  .trend-four { grid-column:1; grid-row:4 / span 3; }
  .trend-poster { aspect-ratio:auto; }
  .trend-info { min-height:55px; }
  .plan-featured { order:-1; }
  .plan-label { top:12px; right:12px; }
  .auth-dialog { max-height:calc(100% - 24px); }
  .auth-copy { padding:34px 21px 23px; }
  .auth-options { gap:7px; margin:12px 0 9px; }
  .studio-options { grid-template-columns:1fr; }
}

@media(max-width:980px) {
  .topbar { gap:15px; }.nav-links { gap:14px; }.nav-links a { font-size:11px; }
  .trend-grid { grid-template-columns:repeat(2,1fr); }.trend-poster { aspect-ratio:1.05; }
  .format-card { padding-inline:14px; }
}
@media(max-width:700px) {
  .section-wrap { width:calc(100% - 34px); }
  .topbar { top:6px; width:calc(100% - 14px); min-height:48px; margin-top:6px; margin-bottom:-54px; padding:5px 6px 5px 11px; gap:8px; border-radius:11px; }
  .brand { font-size:12px; }.menu-toggle { display:grid; gap:4px; margin-left:auto; padding:8px; border:1px solid var(--line); border-radius:7px; background:transparent; }.menu-toggle span { width:14px; height:1px; background:var(--ink); }
  .nav-links { position:absolute; top:calc(100% + 6px); right:0; left:0; display:none; align-items:stretch; flex-direction:column; gap:0; padding:7px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:0 12px 30px rgba(0,0,0,.12); }.nav-links.is-open { display:flex; }.nav-links a,.nav-links button { padding:9px 10px; border-radius:6px; font-size:13px; text-align:left; }.nav-links a:hover,.nav-links button:hover { background:var(--surface-2); }
  .header-actions { gap:6px; }.theme-picker { width:32px; min-width:32px; height:32px; padding:0; }.theme-glyph { font-size:16px; }.nav-cta { min-height:32px; padding-inline:11px; font-size:11px; }
  .hero { min-height:650px; align-items:flex-start; }.hero-shade { background:linear-gradient(90deg,rgba(10,12,11,.82),rgba(10,12,11,.44)),linear-gradient(0deg,rgba(10,12,11,.45),transparent 55%); }
  .hero-content { padding-top:145px; }.hero h1 { font-size:clamp(39px,11vw,59px); }.hero-copy { max-width:410px; font-size:14px; }.hero-actions { align-items:flex-start; flex-direction:column; gap:13px; }.hero-caption { right:17px; left:17px; font-size:7px; }
  .formats,.pricing-section { padding-top:67px; padding-bottom:70px; }.section-heading { align-items:flex-start; flex-direction:column; gap:13px; margin-bottom:22px; }.section-heading h2,.faq-intro h2 { font-size:34px; }.section-heading > p { font-size:12px; }
  .format-grid { grid-template-columns:1fr 1fr; }.format-card { min-height:205px; padding:14px; border-bottom:1px solid var(--line); }.format-card:nth-child(odd) { border-left:1px solid var(--line); }.format-card:nth-child(even) { border-right:1px solid var(--line); }.format-symbol { width:35px; height:35px; margin-top:15px; font-size:16px; }.format-title { margin-top:9px; font-size:17px; }.format-description { font-size:11px; }.format-link { padding-top:10px; font-size:10px; }
  .trends-section { padding:59px 0; }.trends-heading { align-items:flex-start; }.trends-heading .text-link { font-size:11px; }.trend-grid { gap:8px; }.trend-poster { aspect-ratio:.77; }.trend-info { align-items:flex-start; padding:10px 8px; }.trend-info b { font-size:11px; }.trend-info small { font-size:9px; }.trend-info time { font-size:9px; }.trend-disclaimer,.pricing-note { font-size:10px; }
  .plans-grid { grid-template-columns:1fr; gap:9px; }.plan-card { min-height:220px; padding:18px; }.plan-tokens { margin-top:12px; font-size:27px; }.plan-access { margin-top:13px; }.pricing-heading { align-items:flex-start; }
  .faq-section { padding:66px 0; }.faq-layout { grid-template-columns:1fr; gap:30px; }.faq-list summary { padding-block:16px; font-size:13px; }
  .footer-main { flex-direction:column; gap:28px; }.footer-columns { grid-template-columns:1fr 1fr; gap:23px 15px; }.footer-bottom { flex-direction:column; font-size:9px; }
  .auth-dialog,.auth-dialog[open] { grid-template-columns:1fr; }.auth-art { display:none; }.auth-copy { padding:39px 21px 25px; }.auth-copy h2 { padding-right:20px; font-size:22px; }
  .trend-dialog,.trend-dialog[open] { grid-template-columns:1fr; grid-template-rows: minmax(210px,34vh) auto; height:min(780px,calc(100% - 18px)); width:calc(100% - 18px); overflow:auto; }.related-trends { display:none; }.trend-player { min-height:220px; margin:0; }.trend-details { padding:20px 16px 16px; border-left:0; }.trend-details h2 { font-size:22px; }.trend-prompt { max-height:76px; }
  .studio-dialog { padding:28px 20px 20px; }.studio-dialog h2 { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* Minimal glass direction: quiet surfaces, restrained color, direct hover states. */
.topbar { background:color-mix(in srgb,var(--bg),transparent 44%); border-color:color-mix(in srgb,var(--line),transparent 45%); box-shadow:0 4px 18px rgba(32,33,36,.045); backdrop-filter:blur(22px) saturate(150%); }
.nav-links a,.nav-links button { display:inline-flex; align-items:center; min-height:34px; padding:0 10px; border-radius:8px; transition:background-color .16s ease,color .16s ease; }
.nav-links a:hover,.nav-links button:hover,.text-link:hover { background:rgba(60,64,67,.075); color:var(--ink); }
.hero-shade { background:linear-gradient(90deg,rgba(11,17,26,.83),rgba(11,17,26,.62) 42%,rgba(11,17,26,.22) 82%),linear-gradient(0deg,rgba(11,17,26,.36),transparent 48%); }
.auth-art-image { filter:grayscale(.25) saturate(.5); }
.formats { padding-top:82px; padding-bottom:86px; }
.format-grid { gap:12px; }
.format-card,.format-card:first-child,.format-card:nth-child(odd),.format-card:nth-child(even) { min-height:230px; padding:20px; border:1px solid color-mix(in srgb,var(--line),transparent 10%); border-radius:15px; background:color-mix(in srgb,var(--surface),transparent 22%); box-shadow:0 3px 12px rgba(40,48,61,.035),inset 0 1px rgba(255,255,255,.7); backdrop-filter:blur(18px) saturate(125%); transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.format-chat,.format-image,.format-video,.format-audio { background:color-mix(in srgb,var(--surface),transparent 22%); }
.format-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--line),var(--ink) 12%); background:color-mix(in srgb,var(--surface),transparent 8%); box-shadow:0 9px 20px rgba(40,48,61,.08),inset 0 1px rgba(255,255,255,.85); }
.format-symbol { width:34px; height:34px; margin-top:22px; border:0; border-radius:8px; background:transparent; box-shadow:none; color:var(--muted); font-size:17px; }
.format-title { margin-top:13px; font-size:19px; }
.format-description { max-width:250px; color:var(--muted); font-size:12px; }
.format-link { display:none; }
.trends-section { background:var(--surface-2); }
.trend-card { border-color:var(--line); border-radius:13px; background:color-mix(in srgb,var(--surface),transparent 8%); box-shadow:0 4px 14px rgba(32,36,44,.06); }
.trend-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--line),var(--ink) 12%); box-shadow:0 10px 24px rgba(32,36,44,.1); }
.trend-poster { filter:grayscale(.22) saturate(.55) contrast(.96); }
.poster-one { background-position:22% center; }
.poster-two { background-position:47% center; }
.poster-three { background-position:67% center; }
.poster-four { background-position:86% center; }
.pricing-section { padding-top:82px; padding-bottom:86px; }
.plans-grid { gap:14px; }
.plan-card { min-height:292px; padding:22px; border-color:var(--line); border-radius:15px; background:color-mix(in srgb,var(--surface),transparent 15%); box-shadow:0 4px 16px rgba(32,36,44,.045),inset 0 1px rgba(255,255,255,.76); }
.plan-card:hover { transform:translateY(-2px); box-shadow:0 9px 22px rgba(32,36,44,.09),inset 0 1px rgba(255,255,255,.9); }
.plan-featured { border-color:color-mix(in srgb,var(--accent),transparent 48%); background:color-mix(in srgb,var(--surface),transparent 6%); box-shadow:0 8px 22px rgba(65,72,120,.08),inset 0 1px rgba(255,255,255,.88); }
.plan-featured::before { height:2px; background:var(--accent); }
.plan-label { padding:5px 8px; border-color:var(--line); background:var(--surface-2); color:var(--muted); font-weight:600; }
.plan-price { margin-top:20px; }
.plan-price .price-value { font-size:36px; font-weight:620; }
.plan-tokens { margin-top:9px; font-size:18px; }
.plan-estimates { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.plan-estimates span { padding:5px 8px; border:1px solid var(--line); border-radius:7px; background:color-mix(in srgb,var(--surface-2),transparent 35%); color:var(--muted); font-size:11px; }
.plan-rate { margin-top:7px; }
.plan-button { border-color:var(--line); border-radius:9px; background:transparent; }
.plan-button:hover { background:var(--surface-2); box-shadow:none; }
.plan-featured .plan-button { border-color:transparent; background:var(--ink); color:var(--bg); }
.plan-featured .plan-button:hover { background:#3a414d; color:white; }
.studio-options button { border-color:var(--line); border-radius:12px; background:color-mix(in srgb,var(--surface),transparent 10%); box-shadow:0 3px 10px rgba(32,36,44,.035); }
.studio-options button:nth-child(2),.studio-options button:nth-child(3),.studio-options button:nth-child(4) { background:color-mix(in srgb,var(--surface),transparent 10%); }
.studio-options button:hover,.studio-options button.is-selected { transform:none; border-color:color-mix(in srgb,var(--line),var(--ink) 15%); background:var(--surface-2); box-shadow:0 5px 14px rgba(32,36,44,.075); }
.studio-symbol { border-color:var(--line); border-radius:9px; background:var(--surface-2); color:var(--muted); }
.studio-create { display:none; }
.studio-options button.is-selected .studio-create { display:none; }
html[data-theme="dark"] .format-card { background:color-mix(in srgb,var(--surface),transparent 10%); }
html[data-theme="dark"] .format-chat,html[data-theme="dark"] .format-image,html[data-theme="dark"] .format-video,html[data-theme="dark"] .format-audio { background:color-mix(in srgb,var(--surface),transparent 10%); }
@media(max-width:700px) {
  .format-card,.format-card:first-child,.format-card:nth-child(odd),.format-card:nth-child(even) { min-height:200px; padding:14px; }
  .format-symbol { margin-top:14px; }
  .plans-grid { gap:11px; }
}

/* Glass surfaces with a soft ambient hover glow. */
.hero { background:radial-gradient(ellipse at 78% 42%,rgba(104,123,151,.2),transparent 38%),linear-gradient(125deg,#151922,#202735 56%,#171c25); }
.hero-visual-placeholder { position:absolute; top:20%; right:8%; display:flex; width:min(34vw,430px); aspect-ratio:1.25; align-items:center; justify-content:center; flex-direction:column; gap:12px; border-radius:28px; background:linear-gradient(145deg,rgba(210,220,235,.12),rgba(181,198,222,.035)); box-shadow:inset 0 1px rgba(255,255,255,.16),0 24px 70px rgba(7,12,21,.16); backdrop-filter:blur(22px) saturate(120%); color:rgba(234,240,248,.5); font-size:10px; letter-spacing:.14em; }
.hero-placeholder-icon { color:rgba(234,240,248,.56); font-size:31px; font-weight:300; }
.hero-shade { background:linear-gradient(90deg,rgba(11,17,26,.86),rgba(11,17,26,.68) 42%,rgba(11,17,26,.08) 82%),linear-gradient(0deg,rgba(11,17,26,.25),transparent 48%); }
.formats,.pricing-section { position:relative; isolation:isolate; }
.formats::before,.pricing-section::before { position:absolute; z-index:-1; inset:-25px -32px; background:radial-gradient(ellipse at 18% 30%,rgba(158,185,221,.13),transparent 42%),radial-gradient(ellipse at 82% 72%,rgba(184,175,224,.10),transparent 42%); content:""; filter:blur(22px); pointer-events:none; }
.format-card,.format-card:first-child,.format-card:nth-child(odd),.format-card:nth-child(even) { border:0; background:rgba(255,255,255,.36); box-shadow:inset 0 1px rgba(255,255,255,.68),0 6px 20px rgba(31,43,61,.045); backdrop-filter:blur(20px) saturate(135%); }
.format-chat,.format-image,.format-video,.format-audio { background:rgba(255,255,255,.36); }
.format-card:hover,.format-card:focus-visible { transform:translateY(-2px); border:0; background:rgba(255,255,255,.36); box-shadow:inset 0 1px rgba(255,255,255,.72),0 0 28px rgba(132,163,208,.2),0 12px 26px rgba(31,43,61,.07); }
.trends-section { background:linear-gradient(135deg,#eef1f5,#e9edf3); }
.trend-card { border:0; background:rgba(255,255,255,.55); box-shadow:0 5px 18px rgba(31,43,61,.045); }
.trend-card:hover,.trend-card:focus-visible { transform:translateY(-2px); border:0; background:rgba(255,255,255,.55); box-shadow:0 0 24px rgba(132,163,208,.18),0 10px 24px rgba(31,43,61,.07); }
.trend-poster { filter:none; background-image:linear-gradient(145deg,rgba(255,255,255,.24),rgba(177,195,220,.13)); background-color:#dfe5ed; }
.poster-one { background-image:linear-gradient(145deg,rgba(189,207,227,.34),rgba(236,240,247,.16)); }
.poster-two { background-image:linear-gradient(145deg,rgba(207,198,226,.33),rgba(239,238,247,.16)); }
.poster-three { background-image:linear-gradient(145deg,rgba(190,218,222,.34),rgba(236,243,245,.16)); }
.poster-four { background-image:linear-gradient(145deg,rgba(211,205,226,.3),rgba(241,240,247,.15)); }
.poster-play { border:0; background:rgba(255,255,255,.38); color:rgba(39,48,63,.72); box-shadow:0 4px 16px rgba(31,43,61,.08); }
.poster-label { color:rgba(55,65,82,.65); }
.formats { background:radial-gradient(ellipse at 20% 52%,rgba(177,204,236,.16),transparent 56%),radial-gradient(ellipse at 84% 38%,rgba(200,192,232,.12),transparent 50%); }
.pricing-section { background:radial-gradient(ellipse at 22% 42%,rgba(177,204,236,.14),transparent 56%),radial-gradient(ellipse at 82% 70%,rgba(200,192,232,.1),transparent 50%); }
.plan-card { border:0; background:rgba(255,255,255,.4); box-shadow:inset 0 1px rgba(255,255,255,.72),0 6px 20px rgba(31,43,61,.045); backdrop-filter:blur(20px) saturate(135%); }
.plan-card:hover,.plan-card:focus-within { transform:translateY(-2px); border:0; background:rgba(255,255,255,.4); box-shadow:inset 0 1px rgba(255,255,255,.76),0 0 28px rgba(132,163,208,.18),0 12px 26px rgba(31,43,61,.065); }
.plan-featured { border:0; background:rgba(255,255,255,.48); box-shadow:inset 0 1px rgba(255,255,255,.8),0 8px 24px rgba(45,57,79,.06); }
.plan-featured::before { display:none; }
.plan-label { border:0; background:rgba(210,218,231,.4); color:var(--muted); }
.plan-estimates span { padding:0; border:0; border-radius:0; background:transparent; color:var(--muted); }
.plan-estimates span + span::before { content:"· "; color:var(--muted); }
.plan-button,.plan-featured .plan-button { border:0; background:rgba(221,227,236,.45); color:var(--ink); box-shadow:none; }
.plan-button:hover,.plan-featured .plan-button:hover { transform:none; border:0; background:rgba(221,227,236,.45); color:var(--ink); box-shadow:0 0 20px rgba(132,163,208,.16); }
.studio-options button,.studio-options button:nth-child(2),.studio-options button:nth-child(3),.studio-options button:nth-child(4) { border:0; background:rgba(255,255,255,.46); box-shadow:inset 0 1px rgba(255,255,255,.76),0 4px 16px rgba(31,43,61,.045); backdrop-filter:blur(18px); }
.studio-options button:hover,.studio-options button.is-selected { transform:translateY(-1px); border:0; background:rgba(255,255,255,.46); box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 24px rgba(132,163,208,.18),0 8px 20px rgba(31,43,61,.06); }
.studio-symbol { border:0; background:rgba(222,229,238,.55); }
.format-card:focus-visible,.trend-card:focus-visible,.plan-button:focus-visible { outline:0; box-shadow:inset 0 1px rgba(255,255,255,.72),0 0 28px rgba(132,163,208,.2),0 12px 26px rgba(31,43,61,.07); }
html[data-theme="dark"] .format-card,html[data-theme="dark"] .format-chat,html[data-theme="dark"] .format-image,html[data-theme="dark"] .format-video,html[data-theme="dark"] .format-audio,html[data-theme="dark"] .plan-card,html[data-theme="dark"] .plan-featured,html[data-theme="dark"] .studio-options button,html[data-theme="dark"] .studio-options button:nth-child(2),html[data-theme="dark"] .studio-options button:nth-child(3),html[data-theme="dark"] .studio-options button:nth-child(4) { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 6px 20px rgba(0,0,0,.14); }
html[data-theme="dark"] .format-card:hover,html[data-theme="dark"] .plan-card:hover,html[data-theme="dark"] .plan-card:focus-within,html[data-theme="dark"] .studio-options button:hover,html[data-theme="dark"] .studio-options button.is-selected { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.1),0 0 22px rgba(155,139,215,.19),0 0 38px rgba(219,151,183,.12),0 12px 26px rgba(0,0,0,.18); }
html[data-theme="dark"] .trends-section { background:linear-gradient(135deg,#1b222c,#202936); }
html[data-theme="dark"] .trend-card { background:rgba(255,255,255,.04); }
html[data-theme="dark"] .trend-card:hover { background:rgba(255,255,255,.04); }
html[data-theme="dark"] .trend-card:hover { box-shadow:0 0 20px rgba(155,139,215,.18),0 0 34px rgba(219,151,183,.12),0 10px 24px rgba(0,0,0,.18); }
html[data-theme="dark"] .trend-poster { background-color:#252e3a; }
html[data-theme="dark"] .poster-label { color:rgba(238,242,248,.62); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .format-card,html[data-theme="system"] .format-chat,html[data-theme="system"] .format-image,html[data-theme="system"] .format-video,html[data-theme="system"] .format-audio,html[data-theme="system"] .plan-card,html[data-theme="system"] .plan-featured,html[data-theme="system"] .studio-options button,html[data-theme="system"] .studio-options button:nth-child(2),html[data-theme="system"] .studio-options button:nth-child(3),html[data-theme="system"] .studio-options button:nth-child(4) { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 6px 20px rgba(0,0,0,.14); }
  html[data-theme="system"] .trends-section { background:linear-gradient(135deg,#1b222c,#202936); }
  html[data-theme="system"] .trend-card { background:rgba(255,255,255,.04); }
  html[data-theme="system"] .format-card:hover,html[data-theme="system"] .plan-card:hover,html[data-theme="system"] .plan-card:focus-within,html[data-theme="system"] .studio-options button:hover,html[data-theme="system"] .studio-options button.is-selected { box-shadow:inset 0 1px rgba(255,255,255,.1),0 0 22px rgba(155,139,215,.19),0 0 38px rgba(219,151,183,.12),0 12px 26px rgba(0,0,0,.18); }
  html[data-theme="system"] .trend-card:hover { box-shadow:0 0 20px rgba(155,139,215,.18),0 0 34px rgba(219,151,183,.12),0 10px 24px rgba(0,0,0,.18); }
}
@media(max-width:700px) {
  .hero-visual-placeholder { top:35%; right:-9%; width:65vw; aspect-ratio:1.1; opacity:.72; }
  .hero-placeholder-icon { font-size:24px; }
}

/* Shared iris and rose glow for glass surfaces. */
:root { --ambient-glow:rgba(155,139,215,.21); --ambient-glow-soft:rgba(219,151,183,.15); }
.format-card,.format-card:first-child,.format-card:nth-child(odd),.format-card:nth-child(even),.plan-card {
  background:rgba(255,255,255,.42);
  box-shadow:inset 0 1px rgba(255,255,255,.74),0 6px 20px rgba(31,43,61,.045);
}
.format-chat,.format-image,.format-video,.format-audio { background:rgba(255,255,255,.42); }
.format-card:hover,.format-card:focus-visible,.plan-card:hover,.plan-card:focus-within {
  background:rgba(255,255,255,.42);
  box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 24px var(--ambient-glow),0 0 42px var(--ambient-glow-soft),0 12px 26px rgba(31,43,61,.065);
}
.studio-options button,.studio-options button:nth-child(2),.studio-options button:nth-child(3),.studio-options button:nth-child(4) {
  min-height:68px;
  background:rgba(255,255,255,.42);
  box-shadow:inset 0 1px rgba(255,255,255,.74),0 5px 18px rgba(31,43,61,.04);
}
.studio-options button:hover,.studio-options button:focus-visible,.studio-options button.is-selected {
  transform:translateY(-1px);
  background:rgba(255,255,255,.42);
  box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 22px var(--ambient-glow),0 0 38px var(--ambient-glow-soft),0 10px 22px rgba(31,43,61,.055);
  outline:0;
}
.studio-symbol { background:rgba(255,255,255,.45); color:var(--muted); }
.studio-option-copy { flex-direction:row; align-items:center; }
.studio-option-copy b { font-size:13px; font-weight:560; }
.auth-dialog,.studio-dialog {
  border:0;
  background:rgba(248,250,252,.84);
  box-shadow:0 26px 90px rgba(22,34,49,.2),inset 0 1px rgba(255,255,255,.88);
  backdrop-filter:blur(28px) saturate(140%);
}
.auth-dialog { width:min(860px,calc(100% - 30px)); max-height:min(570px,calc(100% - 30px)); border-radius:24px; }
.auth-dialog::backdrop,.studio-dialog::backdrop { background:rgba(19,26,34,.43); backdrop-filter:blur(12px); }
.dialog-close { border:0; background:rgba(255,255,255,.48); box-shadow:inset 0 1px rgba(255,255,255,.7); color:var(--muted); }
.dialog-close:hover { background:rgba(255,255,255,.48); box-shadow:0 0 18px var(--ambient-glow),0 0 30px var(--ambient-glow-soft); }
.auth-copy { padding:40px clamp(28px,4.5vw,52px); }
.auth-copy h2 { margin-bottom:8px; font-size:28px; font-weight:580; }
.auth-copy > p:not(.section-kicker) { color:var(--muted); font-size:13px; line-height:1.5; }
.auth-options { gap:9px; margin:18px 0 16px; }
.auth-options button {
  min-height:46px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.5);
  box-shadow:inset 0 1px rgba(255,255,255,.76),0 4px 13px rgba(31,43,61,.035);
  transition:box-shadow .18s ease,transform .18s ease,background-color .18s ease;
}
.auth-options button:hover,.auth-options button:focus-visible {
  transform:translateY(-1px);
  border:0;
  background:rgba(255,255,255,.5);
  box-shadow:inset 0 1px rgba(255,255,255,.82),0 0 20px var(--ambient-glow),0 0 34px var(--ambient-glow-soft),0 8px 17px rgba(31,43,61,.055);
  outline:0;
}
.auth-art { min-height:0; margin:13px; padding:24px; border-radius:19px; background:linear-gradient(145deg,#e5ebf0,#e7efec); color:#222b31; }
.auth-art-image {
  background:linear-gradient(145deg,rgba(151,180,194,.12),rgba(20,33,44,.5)),url("assets/hero-studio.png") center/cover;
  filter:grayscale(.72) saturate(.34) brightness(1.04);
}
.auth-art-image::before { display:none; }
.auth-art > span,.auth-art > p { z-index:1; }
.auth-art > span { color:rgba(255,255,255,.78); }
.auth-art > p { color:#fff; font-size:25px; font-weight:540; text-shadow:0 2px 18px rgba(10,20,29,.32); }
.studio-dialog { width:min(520px,calc(100% - 30px)); padding:31px; border-radius:22px; }
.studio-dialog h2 { margin:0 0 8px; font-size:25px; font-weight:580; }
.studio-note { margin-bottom:0; color:var(--muted); font-size:13px; }
.studio-options { gap:10px; margin-top:21px; }
.studio-status:empty { display:none; }
html[data-theme="dark"] .auth-dialog,html[data-theme="dark"] .studio-dialog { background:rgba(28,36,46,.88); }
html[data-theme="dark"] .auth-options button,html[data-theme="dark"] .studio-options button,html[data-theme="dark"] .studio-options button:nth-child(2),html[data-theme="dark"] .studio-options button:nth-child(3),html[data-theme="dark"] .studio-options button:nth-child(4),html[data-theme="dark"] .dialog-close { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 5px 18px rgba(0,0,0,.15); }
html[data-theme="dark"] .auth-options button:hover,html[data-theme="dark"] .studio-options button:hover,html[data-theme="dark"] .studio-options button.is-selected { background:rgba(255,255,255,.055); box-shadow:0 0 20px rgba(155,139,215,.2),0 0 34px rgba(219,151,183,.14),0 9px 20px rgba(0,0,0,.18); }
html[data-theme="dark"] .auth-art { background:linear-gradient(145deg,#293540,#293a39); color:var(--ink); }
html[data-theme="dark"] .auth-art-image { background:linear-gradient(145deg,rgba(31,43,55,.3),rgba(19,27,34,.55)),url("assets/hero-studio.png") center/cover; }
html[data-theme="dark"] .auth-art-image::before { display:none; }
html[data-theme="dark"] .auth-art > span,html[data-theme="dark"] .auth-art > p { color:var(--ink); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .auth-dialog,html[data-theme="system"] .studio-dialog { background:rgba(28,36,46,.88); }
  html[data-theme="system"] .auth-options button,html[data-theme="system"] .studio-options button { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 5px 18px rgba(0,0,0,.15); }
  html[data-theme="system"] .auth-art { background:linear-gradient(145deg,#293540,#293a39); color:var(--ink); }
  html[data-theme="system"] .auth-art-image { background:linear-gradient(145deg,rgba(31,43,55,.3),rgba(19,27,34,.55)),url("assets/hero-studio.png") center/cover; }
  html[data-theme="system"] .auth-art-image::before { display:none; }
  html[data-theme="system"] .auth-art > span,html[data-theme="system"] .auth-art > p { color:var(--ink); }
}

/* Consistent close controls, glass trend dialog, FAQ, and footer. */
.dialog-close {
  top:14px; right:14px; width:36px; height:36px; padding:0; border:0; border-radius:50%;
  background:rgba(255,255,255,.58); box-shadow:inset 0 1px rgba(255,255,255,.82),0 3px 10px rgba(31,43,61,.055);
  color:rgba(45,56,68,.76); font-size:0; line-height:0; appearance:none;
}
.dialog-close span { position:relative; display:block; width:14px; height:14px; }
.dialog-close span::before,.dialog-close span::after {
  position:absolute; top:6px; left:0; width:14px; height:1.6px; border-radius:2px;
  background:currentColor; content:"";
}
.dialog-close span::before { transform:rotate(45deg); }
.dialog-close span::after { transform:rotate(-45deg); }
.dialog-close:hover,.dialog-close:focus-visible { background:rgba(255,255,255,.58); box-shadow:0 0 17px var(--ambient-glow),0 0 28px var(--ambient-glow-soft),0 4px 12px rgba(31,43,61,.07); outline:0; }
.auth-dialog::backdrop,.trend-dialog::backdrop,.studio-dialog::backdrop { background:rgba(19,26,34,.43); backdrop-filter:blur(12px); }
.trend-dialog {
  border:0; border-radius:22px; background:rgba(248,250,252,.84);
  box-shadow:0 26px 90px rgba(22,34,49,.2),inset 0 1px rgba(255,255,255,.88);
  backdrop-filter:blur(28px) saturate(140%);
}
.related-trends { border:0; background:rgba(232,238,244,.22); }
.related-trends h3 { color:var(--muted); }
.related-thumb,.related-thumb.thumb-a,.related-thumb.thumb-b,.related-thumb.thumb-c {
  min-height:75px; border:0; border-radius:12px; background:rgba(255,255,255,.4);
  box-shadow:inset 0 1px rgba(255,255,255,.66),0 4px 14px rgba(31,43,61,.035);
  transition:box-shadow .18s ease,background-color .18s ease;
}
.related-thumb:hover { background:rgba(255,255,255,.4); box-shadow:0 0 18px var(--ambient-glow),0 0 30px var(--ambient-glow-soft),0 6px 16px rgba(31,43,61,.05); }
.trend-player,.trend-player.poster-one,.trend-player.poster-two,.trend-player.poster-three,.trend-player.poster-four {
  margin:12px; border-radius:16px; background:linear-gradient(145deg,#36404b,#222b34);
  box-shadow:inset 0 1px rgba(255,255,255,.14),0 8px 24px rgba(20,30,40,.1);
}
.trend-player > span { color:rgba(238,243,248,.65); }
.play-button { width:52px; height:52px; border:0; background:rgba(255,255,255,.2); box-shadow:inset 0 1px rgba(255,255,255,.5),0 6px 18px rgba(0,0,0,.15); backdrop-filter:blur(14px); }
.trend-details { border:0; background:rgba(255,255,255,.36); }
.trend-details .section-kicker { color:var(--muted); }
.trend-prompt { border:0; border-radius:12px; background:rgba(255,255,255,.45); box-shadow:inset 0 1px rgba(255,255,255,.7); }
.upload-box { border:0; border-radius:12px; background:rgba(255,255,255,.42); box-shadow:inset 0 1px rgba(255,255,255,.66); }
.trend-details dl { padding:12px; border-radius:12px; background:rgba(255,255,255,.32); }
.use-template { min-height:48px; border:0; border-radius:12px; background:rgba(222,231,238,.62); color:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.7); }
.use-template:hover,.use-template:focus-visible { border:0; background:rgba(222,231,238,.62); color:var(--ink); box-shadow:0 0 20px var(--ambient-glow),0 0 34px var(--ambient-glow-soft),0 7px 17px rgba(31,43,61,.055); outline:0; }
.template-status:empty { display:none; }
.faq-section { background:linear-gradient(180deg,rgba(244,247,250,.42),rgba(238,243,247,.64)); }
.faq-list { display:grid; gap:9px; border:0; }
.faq-list details { border:0; border-radius:14px; background:rgba(255,255,255,.42); box-shadow:inset 0 1px rgba(255,255,255,.7),0 4px 15px rgba(31,43,61,.035); backdrop-filter:blur(16px); transition:box-shadow .18s ease,background-color .18s ease; }
.faq-list details:hover,.faq-list details[open] { background:rgba(255,255,255,.42); box-shadow:inset 0 1px rgba(255,255,255,.78),0 0 20px var(--ambient-glow),0 0 36px var(--ambient-glow-soft),0 6px 18px rgba(31,43,61,.045); }
.faq-list summary { padding:17px 56px 17px 20px; font-size:13px; font-weight:550; }
.faq-list summary::after { top:50%; right:16px; display:grid; width:28px; height:28px; place-items:center; transform:translateY(-50%); border-radius:50%; background:rgba(255,255,255,.46); color:var(--muted); font-size:17px; }
.faq-list details[open] summary::after { content:"−"; }
.faq-list details p { max-width:none; margin:0 20px 18px; color:var(--muted); font-size:12px; line-height:1.65; }
.site-footer { padding-top:44px; background:linear-gradient(180deg,#eef2f5,#e9eef3); }
.footer-main { padding-bottom:35px; }
.footer-brand { align-self:flex-start; color:var(--ink); }
.footer-columns { gap:clamp(22px,4vw,52px); }
.footer-columns b { color:var(--muted); font-size:9px; font-weight:650; letter-spacing:.1em; }
.footer-columns a,.footer-columns span { color:color-mix(in srgb,var(--ink),transparent 32%); font-size:11px; transition:color .16s ease; }
.footer-columns a:hover { color:#428b76; }
.footer-bottom { border-top:1px solid rgba(48,62,76,.1); }
html[data-theme="dark"] .trend-dialog { background:rgba(28,36,46,.9); }
html[data-theme="dark"] .related-trends,html[data-theme="dark"] .trend-details { background:rgba(255,255,255,.025); }
html[data-theme="dark"] .related-thumb,html[data-theme="dark"] .trend-prompt,html[data-theme="dark"] .upload-box,html[data-theme="dark"] .trend-details dl { background:rgba(255,255,255,.055); }
html[data-theme="dark"] .use-template { background:rgba(255,255,255,.09); color:var(--ink); }
html[data-theme="dark"] .faq-section { background:linear-gradient(180deg,#1a222c,#1d2732); }
html[data-theme="dark"] .faq-list details { background:rgba(255,255,255,.045); box-shadow:inset 0 1px rgba(255,255,255,.06),0 4px 15px rgba(0,0,0,.1); }
html[data-theme="dark"] .faq-list details:hover,html[data-theme="dark"] .faq-list details[open] { background:rgba(255,255,255,.045); box-shadow:0 0 18px rgba(155,139,215,.16),0 0 30px rgba(219,151,183,.12),0 6px 18px rgba(0,0,0,.13); }
html[data-theme="dark"] .faq-list summary::after { background:rgba(255,255,255,.07); }
html[data-theme="dark"] .site-footer { background:linear-gradient(180deg,#202a35,#1a222c); }
html[data-theme="dark"] .footer-bottom { border-color:rgba(255,255,255,.1); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .trend-dialog { background:rgba(28,36,46,.9); }
  html[data-theme="system"] .related-trends,html[data-theme="system"] .trend-details { background:rgba(255,255,255,.025); }
  html[data-theme="system"] .related-thumb,html[data-theme="system"] .trend-prompt,html[data-theme="system"] .upload-box,html[data-theme="system"] .trend-details dl { background:rgba(255,255,255,.055); }
  html[data-theme="system"] .faq-section { background:linear-gradient(180deg,#1a222c,#1d2732); }
  html[data-theme="system"] .faq-list details { background:rgba(255,255,255,.045); box-shadow:inset 0 1px rgba(255,255,255,.06),0 4px 15px rgba(0,0,0,.1); }
  html[data-theme="system"] .site-footer { background:linear-gradient(180deg,#202a35,#1a222c); }
}
.trend-card:hover,.trend-card:focus-visible { background:rgba(255,255,255,.55); box-shadow:0 0 20px var(--ambient-glow),0 0 36px var(--ambient-glow-soft),0 10px 24px rgba(31,43,61,.07); }
.plan-button:hover,.plan-featured .plan-button:hover,.plan-button:focus-visible { background:rgba(221,227,236,.45); box-shadow:0 0 18px var(--ambient-glow),0 0 30px var(--ambient-glow-soft); }
html[data-theme="dark"] .trend-card:hover,html[data-theme="dark"] .plan-button:hover,html[data-theme="dark"] .plan-featured .plan-button:hover { background:rgba(255,255,255,.055); box-shadow:0 0 20px rgba(155,139,215,.18),0 0 34px rgba(219,151,183,.12),0 9px 20px rgba(0,0,0,.18); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .trend-card:hover,html[data-theme="system"] .plan-button:hover,html[data-theme="system"] .plan-featured .plan-button:hover { background:rgba(255,255,255,.055); box-shadow:0 0 20px rgba(155,139,215,.18),0 0 34px rgba(219,151,183,.12),0 9px 20px rgba(0,0,0,.18); }
}

/* FORMA Soft Prism: clear workspace, translucent controls, and a restrained custom glow. */
:root { --prism-violet:rgba(157,139,232,.22); --prism-coral:rgba(241,153,167,.18); --prism-cyan:rgba(111,195,204,.14); }
body.chat-studio-open { overflow:hidden; }
.chat-studio[hidden] { display:none; }
.chat-studio { position:fixed; z-index:40; inset:0; display:flex; overflow:hidden; background:var(--bg); color:var(--ink); }
.chat-sidebar { position:relative; z-index:3; display:flex; flex:0 0 272px; flex-direction:column; min-width:0; padding:19px 14px 14px; border-right:1px solid color-mix(in srgb,var(--line),transparent 40%); background:color-mix(in srgb,var(--surface),transparent 17%); backdrop-filter:blur(24px) saturate(135%); transition:flex-basis .22s ease,padding .22s ease,opacity .18s ease; }
.chat-sidebar-tools { display:flex; align-items:center; gap:5px; margin:10px 0 17px; }
.studio-icon-button { display:grid; width:36px; height:36px; flex:0 0 auto; place-items:center; border:0; border-radius:11px; background:transparent; color:var(--muted); font-size:21px; line-height:1; cursor:pointer; transition:background .18s ease,color .18s ease,box-shadow .18s ease; }
.studio-icon-button:hover,.studio-icon-button:focus-visible { background:color-mix(in srgb,var(--surface-2),transparent 30%); color:var(--ink); box-shadow:0 0 20px var(--prism-violet),0 0 30px var(--prism-cyan); outline:0; }
.new-chat-button { display:flex; min-width:0; min-height:43px; flex:1; align-items:center; gap:10px; margin:0; padding:0 14px; border:0; border-radius:13px; background:rgba(255,255,255,.47); box-shadow:inset 0 1px rgba(255,255,255,.76),0 5px 17px rgba(33,45,64,.045); color:var(--ink); text-align:left; font-size:13px; font-weight:570; cursor:pointer; backdrop-filter:blur(18px); transition:box-shadow .2s ease,transform .2s ease; }
.new-chat-button > span { color:var(--accent); font-size:21px; font-weight:350; }
.new-chat-button:hover { transform:translateY(-1px); box-shadow:inset 0 1px rgba(255,255,255,.82),0 0 20px var(--prism-violet),0 0 34px var(--prism-coral),0 8px 18px rgba(33,45,64,.05); }
.chat-history-heading { display:flex; align-items:center; justify-content:space-between; padding:0 6px 8px 10px; color:var(--muted); font-size:11px; font-weight:580; }
.chat-history-heading .studio-icon-button { width:29px; height:29px; font-size:19px; }
.chat-search { width:100%; height:37px; margin:0 0 8px; padding:0 11px; border:0; border-radius:10px; background:color-mix(in srgb,var(--surface-2),transparent 32%); color:var(--ink); font-size:12px; outline:0; }
.chat-search:focus { box-shadow:0 0 0 1px color-mix(in srgb,var(--accent),transparent 65%),0 0 18px var(--prism-violet); }
.chat-list { display:flex; flex:1; flex-direction:column; gap:3px; overflow:auto; }
.chat-list-empty { padding:12px 10px; color:var(--muted); font-size:11px; line-height:1.55; }
.chat-history-row { display:flex; min-width:0; align-items:center; gap:3px; border-radius:11px; }
.chat-history-item { width:100%; overflow:hidden; padding:10px 11px; border:0; border-radius:10px; background:transparent; color:var(--muted); text-align:left; text-overflow:ellipsis; white-space:nowrap; font-size:12px; cursor:pointer; transition:background .16s ease,color .16s ease; }
.chat-history-item:hover,.chat-history-item.is-active { background:color-mix(in srgb,var(--surface-2),transparent 34%); color:var(--ink); }
.chat-delete-button { display:grid; width:30px; height:30px; flex:0 0 auto; place-items:center; border:0; border-radius:9px; background:transparent; color:var(--muted); opacity:0; cursor:pointer; transition:opacity .16s ease,background .16s ease,color .16s ease; }
.chat-history-row:hover .chat-delete-button,.chat-history-row:focus-within .chat-delete-button { opacity:1; }
.chat-delete-button:hover { background:rgba(210,93,104,.1); color:#b94f5b; }
.chat-delete-button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.chat-sidebar-bottom { display:flex; align-items:center; gap:8px; padding:13px 9px 1px; color:var(--muted); font-size:10px; }
.studio-status-dot { width:6px; height:6px; border-radius:50%; background:#8c9db6; box-shadow:0 0 10px rgba(140,157,182,.35); }
.chat-main { position:relative; display:flex; flex:1; min-width:0; flex-direction:column; }
.sidebar-show { display:none; }
.conversation-scroll { position:relative; display:flex; flex:1; flex-direction:column; min-height:0; overflow:auto; }
.conversation-scroll::before { position:absolute; inset:0; background:radial-gradient(ellipse at 49% 43%,rgba(157,139,232,.095),transparent 33%),radial-gradient(ellipse at 60% 51%,rgba(241,153,167,.085),transparent 35%),radial-gradient(ellipse at 39% 53%,rgba(111,195,204,.07),transparent 36%); content:""; pointer-events:none; animation:prism-drift 13s ease-in-out infinite alternate; }
@keyframes prism-drift { from { transform:scale(.96) translate3d(-1%,1%,0); opacity:.72; } to { transform:scale(1.07) translate3d(1%,-1%,0); opacity:1; } }
.chat-empty-state { position:relative; display:flex; min-height:100%; align-items:center; justify-content:center; flex-direction:column; padding:30px 20px 175px; text-align:center; }
.chat-empty-state[hidden] { display:none; }
.chat-orbit { position:relative; width:92px; height:92px; margin-bottom:24px; border:1px solid color-mix(in srgb,var(--line),transparent 40%); border-radius:30px; background:linear-gradient(145deg,rgba(255,255,255,.53),rgba(255,255,255,.15)); box-shadow:inset 0 1px rgba(255,255,255,.82),0 14px 40px rgba(48,60,82,.06),0 0 36px rgba(157,139,232,.1); backdrop-filter:blur(18px); transform:rotate(-7deg); }
.chat-orbit::before,.chat-orbit::after,.chat-orbit span,.chat-orbit i,.chat-orbit b { position:absolute; display:block; border-radius:50%; content:""; }
.chat-orbit::before { width:34px; height:34px; top:16px; left:19px; background:rgba(157,139,232,.33); filter:blur(8px); }
.chat-orbit::after { width:27px; height:27px; right:15px; bottom:17px; background:rgba(241,153,167,.36); filter:blur(8px); }
.chat-orbit span { width:22px; height:22px; top:22px; right:18px; background:rgba(111,195,204,.46); filter:blur(3px); }
.chat-orbit i { width:18px; height:18px; bottom:18px; left:19px; background:rgba(244,190,135,.42); filter:blur(3px); }
.chat-orbit b { inset:31px; border:1px solid rgba(255,255,255,.72); background:rgba(255,255,255,.35); box-shadow:0 2px 9px rgba(60,65,91,.07); backdrop-filter:blur(8px); }
.chat-empty-state .section-kicker { margin-bottom:9px; color:var(--muted); font-size:9px; letter-spacing:.16em; }
.chat-empty-state h1 { margin:0; font-size:clamp(27px,3vw,37px); font-weight:570; letter-spacing:-.045em; line-height:1.15; }
.chat-empty-state > p:not(.section-kicker) { margin:11px 0 0; color:var(--muted); font-size:13px; }
.chat-suggestions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:25px; }
.chat-suggestions button { display:flex; align-items:center; gap:12px; min-height:37px; padding:0 12px; border:0; border-radius:12px; background:rgba(255,255,255,.37); box-shadow:inset 0 1px rgba(255,255,255,.7); color:var(--muted); font-size:11px; cursor:pointer; backdrop-filter:blur(15px); transition:color .18s ease,box-shadow .18s ease,transform .18s ease; }
.chat-suggestions button span { color:var(--muted); }
.chat-suggestions button:hover { transform:translateY(-1px); color:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.78),0 0 20px var(--prism-violet),0 0 30px var(--prism-cyan); }
.message-list { position:relative; display:flex; width:min(800px,calc(100% - 48px)); flex-direction:column; gap:19px; margin:0 auto; padding:36px 0 220px; }
.message-row { max-width:86%; padding:13px 16px; border-radius:17px; background:rgba(255,255,255,.52); box-shadow:inset 0 1px rgba(255,255,255,.75),0 5px 20px rgba(32,44,62,.035); backdrop-filter:blur(16px); }
.message-user { align-self:flex-end; background:rgba(255,255,255,.7); }
.message-author { display:block; margin-bottom:5px; color:var(--muted); font-size:10px; font-weight:600; }
.message-row p { margin:0; font-size:13px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-attachments { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.message-attachments span { padding:5px 8px; border-radius:8px; background:rgba(255,255,255,.52); color:var(--muted); font-size:10px; }
.connection-note { margin:0; color:var(--muted); text-align:center; font-size:10px; }
.composer-dock { position:absolute; z-index:2; right:0; bottom:0; left:0; display:flex; align-items:center; flex-direction:column; padding:38px 22px 18px; background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--bg),transparent 13%) 27%); }
.composer-shell { width:min(850px,100%); padding:15px 16px 11px; border:1px solid color-mix(in srgb,var(--line),transparent 46%); border-radius:21px; background:rgba(255,255,255,.57); box-shadow:inset 0 1px rgba(255,255,255,.87),0 11px 36px rgba(34,44,61,.07); backdrop-filter:blur(26px) saturate(130%); transition:box-shadow .2s ease; }
.composer-shell:focus-within { box-shadow:inset 0 1px rgba(255,255,255,.9),0 0 24px rgba(157,139,232,.11),0 0 34px rgba(111,195,204,.09),0 12px 38px rgba(34,44,61,.08); }
.chat-input { display:block; width:100%; min-height:42px; max-height:180px; resize:none; padding:2px 3px 10px; border:0; background:transparent; color:var(--ink); font:inherit; font-size:14px; line-height:1.55; outline:0; }
.chat-input::placeholder { color:color-mix(in srgb,var(--muted),transparent 30%); }
.composer-toolbar,.composer-left-tools,.composer-right-tools { display:flex; align-items:center; }
.composer-toolbar { justify-content:space-between; gap:10px; }
.composer-left-tools,.composer-right-tools { gap:7px; }
.composer-popover-wrap { position:relative; }
.model-trigger { display:flex; height:37px; align-items:center; gap:8px; padding:0 10px 0 6px; border:0; border-radius:11px; background:rgba(255,255,255,.48); box-shadow:inset 0 1px rgba(255,255,255,.74); color:var(--ink); font-size:11px; font-weight:550; cursor:pointer; transition:box-shadow .18s ease,background .18s ease; }
.model-trigger:hover,.model-trigger[aria-expanded="true"] { background:rgba(255,255,255,.57); box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 20px var(--prism-violet),0 0 28px var(--prism-cyan); }
.model-initial,.model-option-mark { display:grid; width:24px; height:24px; flex:0 0 auto; place-items:center; border-radius:8px; background:linear-gradient(145deg,rgba(157,139,232,.3),rgba(111,195,204,.2)); color:var(--ink); font-size:11px; font-weight:650; }
.chevron { position:relative; top:-1px; width:8px; height:8px; flex:0 0 auto; margin-left:3px; transform:rotate(45deg); border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); }
.composer-tool,.send-button { display:grid; width:37px; height:37px; flex:0 0 auto; place-items:center; border:0; border-radius:12px; background:rgba(255,255,255,.45); box-shadow:inset 0 1px rgba(255,255,255,.7); color:var(--muted); font-size:19px; line-height:1; cursor:pointer; transition:background .18s ease,box-shadow .18s ease,color .18s ease,transform .18s ease; }
.composer-tool:hover,.composer-tool[aria-expanded="true"] { background:rgba(255,255,255,.58); color:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 18px var(--prism-violet),0 0 27px var(--prism-coral); }
.voice-trigger { font-size:16px; }
.voice-trigger svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.send-button { width:37px; height:37px; border-radius:50%; background:var(--ink); color:var(--bg); font-size:22px; }
.send-button:disabled { background:color-mix(in srgb,var(--surface-2),transparent 13%); box-shadow:inset 0 1px rgba(255,255,255,.5); color:color-mix(in srgb,var(--muted),transparent 35%); cursor:default; }
.send-button:not(:disabled):hover { transform:translateY(-1px); box-shadow:0 0 18px var(--prism-violet),0 0 28px var(--prism-cyan); }
.model-menu,.attachment-menu { position:absolute; z-index:5; bottom:calc(100% + 11px); left:0; min-width:225px; overflow:hidden; padding:7px; border:1px solid color-mix(in srgb,var(--line),transparent 48%); border-radius:16px; background:color-mix(in srgb,var(--surface),transparent 8%); box-shadow:0 14px 42px rgba(26,36,52,.14),inset 0 1px rgba(255,255,255,.73); backdrop-filter:blur(28px) saturate(135%); }
.model-menu[hidden],.attachment-menu[hidden] { display:none; }
.model-option,.attachment-menu button { display:flex; width:100%; min-height:39px; align-items:center; gap:10px; padding:0 9px; border:0; border-radius:10px; background:transparent; color:var(--ink); text-align:left; font-size:11px; cursor:pointer; transition:background .16s ease; }
.model-option:hover,.model-option.is-current,.attachment-menu button:hover { background:color-mix(in srgb,var(--surface-2),transparent 28%); }
.model-option-mark { width:25px; height:25px; font-size:10px; }
.model-check { margin-left:auto; color:var(--accent); opacity:0; }
.model-option.is-current .model-check { opacity:1; }
.attachment-menu { min-width:164px; }
.attachment-menu button { min-height:36px; }
.attachment-chips { display:flex; flex-wrap:wrap; gap:6px; }
.attachment-chips:empty { display:none; }
.attachment-chip { display:flex; max-width:100%; align-items:center; gap:6px; margin-top:9px; padding:5px 7px 5px 9px; overflow:hidden; border-radius:9px; background:rgba(255,255,255,.52); color:var(--muted); text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.attachment-chip button { width:19px; height:19px; border:0; border-radius:50%; background:transparent; color:var(--muted); font-size:14px; cursor:pointer; }
.composer-footnote { display:flex; width:min(850px,100%); justify-content:center; gap:8px; margin:9px 0 0; color:var(--muted); font-size:9px; }
.composer-status:not(:empty)::after { content:" ·"; }
.sidebar-collapsed .chat-sidebar { flex-basis:0; padding-right:0; padding-left:0; overflow:hidden; opacity:0; border:0; }
.sidebar-collapsed .sidebar-show { display:grid; position:absolute; top:12px; left:17px; }
html[data-theme="dark"] .chat-sidebar { background:color-mix(in srgb,var(--surface),transparent 12%); }
html[data-theme="dark"] .new-chat-button,html[data-theme="dark"] .chat-suggestions button,html[data-theme="dark"] .message-row,html[data-theme="dark"] .composer-shell,html[data-theme="dark"] .model-trigger,html[data-theme="dark"] .composer-tool,html[data-theme="dark"] .model-menu,html[data-theme="dark"] .attachment-menu { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.13); }
html[data-theme="dark"] .message-user { background:rgba(255,255,255,.085); }
html[data-theme="dark"] .model-option:hover,html[data-theme="dark"] .model-option.is-current,html[data-theme="dark"] .attachment-menu button:hover,html[data-theme="dark"] .chat-history-item:hover,html[data-theme="dark"] .chat-history-item.is-active { background:rgba(255,255,255,.09); }
html[data-theme="dark"] .send-button:not(:disabled) { background:#edf1f7; color:#171c25; }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .chat-sidebar { background:color-mix(in srgb,var(--surface),transparent 12%); }
  html[data-theme="system"] .new-chat-button,html[data-theme="system"] .chat-suggestions button,html[data-theme="system"] .message-row,html[data-theme="system"] .composer-shell,html[data-theme="system"] .model-trigger,html[data-theme="system"] .composer-tool,html[data-theme="system"] .model-menu,html[data-theme="system"] .attachment-menu { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.13); }
  html[data-theme="system"] .message-user { background:rgba(255,255,255,.085); }
  html[data-theme="system"] .model-option:hover,html[data-theme="system"] .model-option.is-current,html[data-theme="system"] .attachment-menu button:hover,html[data-theme="system"] .chat-history-item:hover,html[data-theme="system"] .chat-history-item.is-active { background:rgba(255,255,255,.09); }
  html[data-theme="system"] .send-button:not(:disabled) { background:#edf1f7; color:#171c25; }
}
@media(max-width:760px) {
  .chat-sidebar { flex-basis:245px; }
  .composer-dock { padding:28px 13px 13px; }
  .chat-empty-state { padding-bottom:150px; }
  .chat-suggestions { max-width:440px; }
}
@media(max-width:560px) {
  .chat-sidebar { position:absolute; inset:0 auto 0 0; width:min(82vw,290px); transform:translateX(0); box-shadow:16px 0 40px rgba(20,30,42,.1); }
  .sidebar-collapsed .chat-sidebar { width:min(82vw,290px); transform:translateX(-105%); }
  .sidebar-collapsed .sidebar-show { left:13px; }
  .chat-empty-state { padding:20px 18px 155px; }
  .chat-empty-state h1 { font-size:29px; }
  .chat-empty-state > p:not(.section-kicker) { max-width:300px; font-size:12px; }
  .chat-suggestions { gap:6px; margin-top:19px; }
  .chat-suggestions button { min-height:34px; padding-inline:10px; font-size:10px; }
  .composer-shell { padding:12px 11px 9px; border-radius:17px; }
  .chat-input { min-height:38px; font-size:13px; }
  .model-trigger { max-width:150px; gap:6px; }
  .selected-model { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .composer-tool,.send-button { width:34px; height:34px; }
  .composer-footnote { flex-wrap:wrap; gap:4px; font-size:8px; }
  .message-list { width:calc(100% - 28px); padding-top:24px; }
  .message-row { max-width:94%; }
}
@media(prefers-reduced-motion:reduce) {
  .conversation-scroll::before { animation:none; }
  .chat-sidebar,.studio-icon-button,.new-chat-button,.chat-suggestions button { transition:none; }
}

/* Keep the site navigation present above the workspace. */
.topbar { z-index:20; }
.chat-studio { inset:72px 0 0; z-index:19; }
.chat-history-row:hover .chat-history-item,.chat-history-row:focus-within .chat-history-item { background:color-mix(in srgb,var(--surface-2),transparent 34%); color:var(--ink); }
.chat-history-row:hover .chat-delete-button,.chat-history-row:focus-within .chat-delete-button { opacity:1; }
.model-trigger { min-width:150px; border:1px solid color-mix(in srgb,var(--muted),transparent 72%); background:rgba(255,255,255,.59); font-size:12px; font-weight:600; }
.composer-tool { border:1px solid color-mix(in srgb,var(--muted),transparent 76%); }
.composer-shell { position:relative; isolation:isolate; }
.composer-shell { background:rgba(255,255,255,.96); }
.composer-shell:focus-within { background:rgba(255,255,255,.96); box-shadow:inset 0 1px rgba(255,255,255,.9),0 12px 38px rgba(34,44,61,.08); }
body.chat-studio-open::before { position:fixed; z-index:18; inset:0; background:var(--bg); content:""; pointer-events:none; }
body.chat-studio-open .topbar { position:fixed; top:8px; left:16px; width:calc(100% - 32px); margin:0; background:color-mix(in srgb,var(--bg),transparent 48%); border-color:color-mix(in srgb,var(--line),transparent 38%); box-shadow:0 8px 28px rgba(23,34,51,.045); backdrop-filter:blur(22px) saturate(150%); }
.nav-links { position:relative; isolation:isolate; gap:3px; }
.nav-links > a,.nav-links > button { position:relative; z-index:1; padding-inline:11px; }
.nav-indicator { position:absolute; z-index:0; top:50%; left:0; height:34px; transform:translateY(-50%); border-radius:10px; background:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.14),0 3px 11px rgba(20,27,38,.16); opacity:0; pointer-events:none; transition:width .24s cubic-bezier(.2,.75,.25,1),transform .24s cubic-bezier(.2,.75,.25,1),opacity .15s ease; }
.nav-indicator.is-visible { opacity:1; }
.nav-links [data-nav][aria-current="page"] { color:var(--bg); font-weight:620; }
.nav-links [data-nav][aria-current="page"]:hover { background:transparent; color:var(--bg); }
.nav-links > a[data-nav="home"] { white-space:nowrap; }
/* Keep the composer face opaque; animate the colored halo outside its rounded edge. */
.composer-shell { position:relative; background:#fff; backdrop-filter:none; --composer-inset:rgba(255,255,255,.88); }
.composer-shell:focus-within { background:#fff; box-shadow:inset 0 1px var(--composer-inset),0 10px 36px rgba(34,44,61,.075); animation:forma-focus-prism 8s ease-in-out infinite; }
@keyframes forma-focus-prism {
  0%,100% { box-shadow:inset 0 1px var(--composer-inset),0 0 13px 1px rgba(151,127,231,.24),0 0 27px 5px rgba(231,138,167,.16),0 10px 36px rgba(34,44,61,.075); }
  34% { box-shadow:inset 0 1px var(--composer-inset),0 0 13px 1px rgba(102,192,198,.24),0 0 29px 5px rgba(225,174,119,.17),0 10px 36px rgba(34,44,61,.075); }
  68% { box-shadow:inset 0 1px var(--composer-inset),0 0 13px 1px rgba(231,138,167,.25),0 0 29px 5px rgba(157,139,232,.18),0 10px 36px rgba(34,44,61,.075); }
}
html[data-theme="dark"] .composer-shell,html[data-theme="dark"] .composer-shell:focus-within { background:rgba(29,37,48,.97); }
html[data-theme="dark"] .composer-shell { --composer-inset:rgba(255,255,255,.09); }
html[data-theme="dark"] .model-trigger { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.085); }
html[data-theme="dark"] .composer-tool { border-color:rgba(255,255,255,.17); }

/* Image studio controls share the same quiet glass treatment as the chat composer. */
.sidebar-show { z-index:6; }
.sidebar-views { display:flex; gap:4px; margin:12px 0 17px; padding:4px; border-radius:12px; background:color-mix(in srgb,var(--surface-2),transparent 38%); }
.sidebar-views[hidden] { display:none; }
.sidebar-view { min-width:0; flex:1; padding:8px 7px; border:0; border-radius:9px; background:transparent; color:var(--muted); font:inherit; font-size:11px; cursor:pointer; transition:background .18s ease,color .18s ease,box-shadow .18s ease; }
.sidebar-view:hover { color:var(--ink); }
.sidebar-view.is-current { background:rgba(255,255,255,.66); color:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.8),0 2px 9px rgba(33,45,64,.055); }
.image-suggestions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:25px; }
.image-suggestions[hidden] { display:none; }
.image-suggestions button { min-height:37px; padding:0 13px; border:0; border-radius:12px; background:rgba(255,255,255,.42); box-shadow:inset 0 1px rgba(255,255,255,.75); color:var(--muted); font:inherit; font-size:11px; cursor:pointer; backdrop-filter:blur(15px); transition:color .18s ease,box-shadow .18s ease,transform .18s ease; }
.image-suggestions button:hover { transform:translateY(-1px); color:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.82),0 0 18px var(--prism-violet),0 0 25px var(--prism-cyan); }
.chat-studio[data-mode="image"] .attach-trigger { display:none; }
.chat-studio[data-mode="image"] .image-upload-trigger { display:grid; }
.image-upload-trigger svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.image-settings { display:flex; align-items:center; gap:6px; }
.image-settings[hidden] { display:none; }
.setting-trigger,.image-count-control { display:flex; height:37px; align-items:center; justify-content:center; gap:8px; padding:0 11px; border:1px solid color-mix(in srgb,var(--muted),transparent 78%); border-radius:11px; background:rgba(255,255,255,.58); box-shadow:inset 0 1px rgba(255,255,255,.78); color:var(--ink); font:inherit; font-size:11px; font-weight:560; white-space:nowrap; cursor:pointer; transition:background .18s ease,box-shadow .18s ease,color .18s ease; }
.setting-trigger:hover,.setting-trigger[aria-expanded="true"],.image-count-control:hover { background:rgba(255,255,255,.73); box-shadow:inset 0 1px rgba(255,255,255,.88),0 0 16px var(--prism-violet),0 0 22px var(--prism-cyan); }
.setting-trigger .chevron { width:7px; height:7px; margin:0 1px 3px 2px; }
.image-count-control { gap:7px; padding:0 6px; cursor:default; }
.image-count-control button { display:grid; width:27px; height:27px; place-items:center; border:0; border-radius:8px; background:transparent; color:var(--ink); font:inherit; font-size:16px; cursor:pointer; }
.image-count-control button:hover:not(:disabled) { background:color-mix(in srgb,var(--surface-2),transparent 20%); }
.image-count-control button:disabled { color:var(--muted); opacity:.42; cursor:default; }
.image-count-value { min-width:10px; text-align:center; }
.image-count-limit { color:var(--muted); }
.setting-menu { position:absolute; z-index:7; bottom:calc(100% + 10px); left:0; min-width:120px; max-height:min(300px,55vh); overflow:auto; padding:6px; border:1px solid color-mix(in srgb,var(--line),transparent 38%); border-radius:14px; background:color-mix(in srgb,var(--surface),transparent 7%); box-shadow:0 14px 38px rgba(26,36,52,.13),inset 0 1px rgba(255,255,255,.78); backdrop-filter:blur(26px) saturate(135%); }
.setting-menu[hidden] { display:none; }
.setting-option { display:flex; width:100%; min-height:35px; align-items:center; padding:0 10px; border:0; border-radius:9px; background:transparent; color:var(--ink); text-align:left; font:inherit; font-size:11px; cursor:pointer; }
.setting-option:hover,.setting-option[aria-selected="true"] { background:color-mix(in srgb,var(--surface-2),transparent 24%); }
.chat-studio[data-mode="image"] .model-picker-wrap { position:relative; }
.chat-studio[data-mode="image"] .model-menu { right:0; left:auto; }
.image-result-block { width:100%; }
.image-result-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr)); gap:11px; }
.image-result-grid.count-1 { grid-template-columns:minmax(180px, min(390px,100%)); }
.image-result-placeholder { display:flex; min-height:170px; align-items:center; justify-content:center; flex-direction:column; gap:10px; overflow:hidden; border:1px solid color-mix(in srgb,var(--line),transparent 42%); border-radius:17px; background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(244,247,251,.68)); box-shadow:inset 0 1px rgba(255,255,255,.86),0 8px 24px rgba(35,46,63,.045); color:var(--muted); text-align:center; }
.image-result-placeholder[data-ratio="3-4"],.image-result-placeholder[data-ratio="2-3"],.image-result-placeholder[data-ratio="9-16"] { aspect-ratio:3/4; }
.image-result-placeholder[data-ratio="4-3"],.image-result-placeholder[data-ratio="16-9"],.image-result-placeholder[data-ratio="3-2"],.image-result-placeholder[data-ratio="21-9"] { aspect-ratio:4/3; }
.image-result-placeholder > span { color:color-mix(in srgb,var(--accent),var(--prism-violet) 55%); font-size:24px; }
.image-result-placeholder small { font-size:11px; }
.image-result-meta { margin:8px 2px 0; color:var(--muted); font-size:10px; }
html[data-theme="dark"] .sidebar-views { background:rgba(255,255,255,.06); }
html[data-theme="dark"] .sidebar-view.is-current,html[data-theme="dark"] .image-suggestions button,html[data-theme="dark"] .setting-trigger,html[data-theme="dark"] .image-count-control,html[data-theme="dark"] .setting-menu,html[data-theme="dark"] .image-result-placeholder { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.13); }
html[data-theme="dark"] .setting-option:hover,html[data-theme="dark"] .setting-option[aria-selected="true"],html[data-theme="dark"] .image-count-control button:hover:not(:disabled) { background:rgba(255,255,255,.09); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .sidebar-views { background:rgba(255,255,255,.06); }
  html[data-theme="system"] .sidebar-view.is-current,html[data-theme="system"] .image-suggestions button,html[data-theme="system"] .setting-trigger,html[data-theme="system"] .image-count-control,html[data-theme="system"] .setting-menu,html[data-theme="system"] .image-result-placeholder { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.13); }
  html[data-theme="system"] .setting-option:hover,html[data-theme="system"] .setting-option[aria-selected="true"],html[data-theme="system"] .image-count-control button:hover:not(:disabled) { background:rgba(255,255,255,.09); }
}
@media(max-width:560px) {
  .image-suggestions { gap:6px; margin-top:18px; }
  .image-suggestions button { min-height:34px; padding-inline:10px; font-size:10px; }
  .composer-toolbar { flex-wrap:wrap; row-gap:9px; }
  .composer-left-tools { flex:1 1 100%; flex-wrap:wrap; }
  .chat-studio[data-mode="image"] .composer-right-tools { width:100%; justify-content:flex-end; }
  .chat-studio[data-mode="image"] .model-picker-wrap { margin-right:auto; }
  .image-settings { gap:5px; }
  .setting-trigger,.image-count-control { height:34px; padding-inline:8px; font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .sidebar-view,.image-suggestions button,.setting-trigger,.image-result-placeholder { transition:none; }
}

/* Studio mode settings: a concise summary that expands into contextual controls. */
.new-chat-button > span:first-child { flex:0 0 auto; color:var(--accent); font-size:20px; }
.new-chat-button .new-chat-label { color:var(--ink); font-size:12px; line-height:1.25; }
.chat-suggestions[hidden],.image-suggestions[hidden],.video-suggestions[hidden],.audio-suggestions[hidden],.image-upload-trigger[hidden],.attach-trigger[hidden],.voice-trigger[hidden],.mode-settings-wrap[hidden],.model-picker-wrap[hidden] { display:none !important; }
.video-suggestions,.audio-suggestions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:25px; }
.video-suggestions[hidden],.audio-suggestions[hidden] { display:none; }
.video-suggestions button,.audio-suggestions button { min-height:37px; padding:0 13px; border:0; border-radius:12px; background:rgba(255,255,255,.42); box-shadow:inset 0 1px rgba(255,255,255,.75); color:var(--muted); font:inherit; font-size:11px; cursor:pointer; backdrop-filter:blur(15px); transition:color .18s ease,box-shadow .18s ease,transform .18s ease; }
.video-suggestions button:hover,.audio-suggestions button:hover { transform:translateY(-1px); color:var(--ink); box-shadow:inset 0 1px rgba(255,255,255,.82),0 0 18px var(--prism-violet),0 0 25px var(--prism-cyan); }
.mode-settings-wrap { position:relative; }
.mode-settings-trigger { display:flex; min-height:37px; align-items:center; gap:10px; max-width:min(430px,48vw); padding:0 12px; border:1px solid color-mix(in srgb,var(--muted),transparent 77%); border-radius:12px; background:rgba(255,255,255,.58); box-shadow:inset 0 1px rgba(255,255,255,.78); color:var(--ink); font:inherit; font-size:11px; font-weight:570; cursor:pointer; transition:background .18s ease,box-shadow .18s ease; }
.mode-settings-trigger:hover,.mode-settings-trigger[aria-expanded="true"] { background:rgba(255,255,255,.73); box-shadow:inset 0 1px rgba(255,255,255,.88),0 0 17px var(--prism-violet),0 0 24px var(--prism-cyan); }
.setting-summary { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.setting-summary i { padding:0 3px; color:var(--muted); font-style:normal; }
.mode-settings-panel { position:absolute; z-index:9; bottom:calc(100% + 11px); left:0; width:min(410px,calc(100vw - 34px)); max-height:min(66vh,530px); overflow:auto; padding:17px; border:1px solid color-mix(in srgb,var(--line),transparent 35%); border-radius:19px; background:rgba(255,255,255,.68); box-shadow:0 18px 48px rgba(24,34,48,.16),inset 0 1px rgba(255,255,255,.82); backdrop-filter:blur(28px) saturate(145%); -webkit-backdrop-filter:blur(28px) saturate(145%); }
.mode-settings-panel[hidden] { display:none; }
.settings-group + .settings-group { margin-top:17px; }
.settings-label { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; color:var(--muted); font-size:11px; font-weight:570; }
.settings-label b { color:var(--ink); font-size:11px; font-weight:600; }
.visual-choice-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
.chat-studio[data-mode="video"] .visual-choice-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
.visual-choice { display:flex; min-width:0; min-height:65px; align-items:center; justify-content:center; flex-direction:column; gap:7px; padding:8px 5px; border:1px solid color-mix(in srgb,var(--line),transparent 26%); border-radius:12px; background:rgba(255,255,255,.26); color:var(--ink); font:inherit; font-size:10px; cursor:pointer; transition:background .16s ease,border-color .16s ease,box-shadow .16s ease; }
.visual-choice:hover { background:rgba(255,255,255,.58); }
.visual-choice.is-selected { background:color-mix(in srgb,var(--surface-2),transparent 12%); border-color:color-mix(in srgb,var(--accent),transparent 58%); box-shadow:0 0 14px var(--prism-violet); }
.ratio-mark { display:block; width:24px; height:18px; border:1.5px solid currentColor; border-radius:3px; }
.ratio-mark.square { width:18px; height:18px; }
.ratio-mark.portrait { width:13px; height:19px; }
.segment-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:4px; border-radius:12px; background:color-mix(in srgb,var(--surface-2),transparent 30%); }
.segment-row.quality-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
.segment-choice { min-height:34px; padding:0 7px; border:0; border-radius:9px; background:transparent; color:var(--muted); font:inherit; font-size:10px; cursor:pointer; transition:background .16s ease,color .16s ease,box-shadow .16s ease; }
.segment-choice:hover { color:var(--ink); }
.segment-choice.is-selected { background:rgba(255,255,255,.76); color:var(--ink); box-shadow:0 2px 8px rgba(34,44,61,.07); }
.settings-range { width:100%; accent-color:#8b80d7; cursor:pointer; }
.range-ticks { display:flex; justify-content:space-between; margin-top:2px; color:var(--muted); font-size:9px; }
.voice-choice-list { display:grid; gap:5px; }
.voice-choice { display:flex; align-items:center; gap:5px; }
.voice-select { flex:1; min-height:36px; padding:0 10px; border:0; border-radius:10px; background:transparent; color:var(--ink); text-align:left; font:inherit; font-size:11px; cursor:pointer; }
.voice-select:hover,.voice-choice.is-selected .voice-select { background:color-mix(in srgb,var(--surface-2),transparent 24%); }
.voice-preview { display:grid; width:32px; height:32px; place-items:center; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; }
.voice-preview:hover { background:color-mix(in srgb,var(--surface-2),transparent 20%); color:var(--ink); }
.audio-settings-tools { display:flex; align-items:center; gap:7px; }
.audio-settings-tools[hidden] { display:none !important; }
.audio-setting-wrap { position:relative; }
.audio-setting-trigger { display:flex; min-height:37px; align-items:center; gap:9px; padding:0 11px; border:1px solid color-mix(in srgb,var(--muted),transparent 77%); border-radius:11px; background:rgba(255,255,255,.58); color:var(--ink); font:inherit; font-size:10px; font-weight:570; white-space:nowrap; cursor:pointer; }
.audio-setting-trigger:hover,.audio-setting-trigger[aria-expanded="true"] { background:rgba(255,255,255,.75); box-shadow:0 0 15px var(--prism-violet),0 0 21px var(--prism-cyan); }
.audio-setting-panel { position:absolute; z-index:10; bottom:calc(100% + 10px); left:0; display:grid; min-width:180px; gap:4px; padding:8px; border:1px solid color-mix(in srgb,var(--line),transparent 35%); border-radius:15px; background:rgba(255,255,255,.68); box-shadow:0 16px 40px rgba(24,34,48,.16),inset 0 1px rgba(255,255,255,.82); backdrop-filter:blur(26px) saturate(145%); -webkit-backdrop-filter:blur(26px) saturate(145%); }
.audio-setting-panel[hidden] { display:none; }
.audio-choice-row { display:flex; align-items:center; gap:4px; }
.audio-choice { flex:1; min-height:36px; padding:0 10px; border:0; border-radius:9px; background:transparent; color:var(--muted); font:inherit; font-size:11px; text-align:left; cursor:pointer; }
.audio-choice:hover,.audio-choice.is-selected { background:color-mix(in srgb,var(--surface-2),transparent 20%); color:var(--ink); }
.audio-speed-panel { min-width:250px; }
.audio-speed-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
.audio-speed-choices .segment-choice { padding-inline:3px; }
.media-result-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:11px; width:100%; }
.media-result-grid.count-1 { grid-template-columns:minmax(180px,min(430px,100%)); }
.media-result-placeholder { display:flex; min-height:190px; align-items:center; justify-content:center; flex-direction:column; gap:10px; border:1px solid color-mix(in srgb,var(--line),transparent 42%); border-radius:17px; background:linear-gradient(145deg,rgba(255,255,255,.7),rgba(239,242,248,.64)); box-shadow:inset 0 1px rgba(255,255,255,.85),0 8px 24px rgba(35,46,63,.045); color:var(--muted); }
.media-result-placeholder.is-video { aspect-ratio:16/9; }
.media-result-placeholder.is-audio { min-height:92px; align-items:flex-start; flex-direction:row; justify-content:flex-start; padding:18px; }
.media-result-placeholder > span { color:color-mix(in srgb,var(--accent),var(--prism-violet) 55%); font-size:24px; }
.media-result-placeholder small { font-size:11px; }
html[data-theme="dark"] .mode-settings-trigger,html[data-theme="dark"] .mode-settings-panel,html[data-theme="dark"] .visual-choice,html[data-theme="dark"] .segment-choice.is-selected,html[data-theme="dark"] .video-suggestions button,html[data-theme="dark"] .audio-suggestions button,html[data-theme="dark"] .media-result-placeholder,html[data-theme="dark"] .audio-setting-trigger,html[data-theme="dark"] .audio-setting-panel { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.13); }
html[data-theme="dark"] .visual-choice.is-selected { background:rgba(255,255,255,.1); }
html[data-theme="dark"] .voice-select:hover,html[data-theme="dark"] .voice-choice.is-selected .voice-select,html[data-theme="dark"] .voice-preview:hover,html[data-theme="dark"] .audio-choice:hover,html[data-theme="dark"] .audio-choice.is-selected { background:rgba(255,255,255,.09); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .mode-settings-trigger,html[data-theme="system"] .mode-settings-panel,html[data-theme="system"] .visual-choice,html[data-theme="system"] .segment-choice.is-selected,html[data-theme="system"] .video-suggestions button,html[data-theme="system"] .audio-suggestions button,html[data-theme="system"] .media-result-placeholder,html[data-theme="system"] .audio-setting-trigger,html[data-theme="system"] .audio-setting-panel { background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.13); }
  html[data-theme="system"] .visual-choice.is-selected,html[data-theme="system"] .voice-select:hover,html[data-theme="system"] .voice-choice.is-selected .voice-select,html[data-theme="system"] .voice-preview:hover,html[data-theme="system"] .audio-choice:hover,html[data-theme="system"] .audio-choice.is-selected { background:rgba(255,255,255,.09); }
}

/* Keep the format cards uniformly dark; the light glass layer above must not show through as columns. */
html[data-theme="dark"] .format-card,html[data-theme="dark"] .format-card:first-child,html[data-theme="dark"] .format-card:nth-child(odd),html[data-theme="dark"] .format-card:nth-child(even),html[data-theme="dark"] .format-chat,html[data-theme="dark"] .format-image,html[data-theme="dark"] .format-video,html[data-theme="dark"] .format-audio {
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.045);
  box-shadow:inset 0 1px rgba(255,255,255,.065),0 6px 20px rgba(0,0,0,.12);
}
html[data-theme="dark"] .format-card:hover,html[data-theme="dark"] .format-card:focus-visible {
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 22px var(--ambient-glow),0 0 36px var(--ambient-glow-soft),0 10px 24px rgba(0,0,0,.16);
}
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .format-card,html[data-theme="system"] .format-card:first-child,html[data-theme="system"] .format-card:nth-child(odd),html[data-theme="system"] .format-card:nth-child(even),html[data-theme="system"] .format-chat,html[data-theme="system"] .format-image,html[data-theme="system"] .format-video,html[data-theme="system"] .format-audio {
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.045);
    box-shadow:inset 0 1px rgba(255,255,255,.065),0 6px 20px rgba(0,0,0,.12);
  }
  html[data-theme="system"] .format-card:hover,html[data-theme="system"] .format-card:focus-visible {
    border-color:rgba(255,255,255,.14);
    background:rgba(255,255,255,.06);
    box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 22px var(--ambient-glow),0 0 36px var(--ambient-glow-soft),0 10px 24px rgba(0,0,0,.16);
  }
}

/* Let the ambient light span the viewport so the constrained section edges never show as vertical seams. */
.formats,.pricing-section { background:transparent; }
.formats::before,.pricing-section::before {
  display:block;
  top:-70px;
  right:auto;
  bottom:-70px;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:radial-gradient(ellipse at 24% 38%,rgba(158,185,221,.12),transparent 50%),radial-gradient(ellipse at 76% 65%,rgba(184,175,224,.09),transparent 52%);
  filter:blur(44px);
}

.plan-tokens { display:flex; align-items:center; gap:8px; }
.plan-tokens .token-bolt { width:22px; height:22px; flex:0 0 auto; color:var(--ink); fill:currentColor; }
.plan-tokens .token-amount { color:var(--ink); font-size:inherit; font-weight:inherit; letter-spacing:inherit; }
.plan-tokens .token-unit { color:var(--muted); font-size:12px; font-weight:500; letter-spacing:0; }
html[data-theme="dark"] .plan-tokens .token-bolt { color:var(--ink); }
.composer-footnote { align-items:center; justify-content:space-between; }
.composer-note { flex:1; text-align:center; }
.token-estimate { display:inline-flex; height:34px; flex:0 0 auto; align-items:center; gap:5px; padding:0 9px; border:1px solid color-mix(in srgb,var(--muted),transparent 76%); border-radius:10px; background:color-mix(in srgb,var(--surface),transparent 18%); color:var(--ink); font-size:11px; font-weight:620; white-space:nowrap; }
.token-estimate svg { width:13px; height:15px; fill:currentColor; }
@media(max-width:560px) { .composer-note { order:3; flex:1 1 100%; } .composer-status:empty { display:none; } }
@media(max-width:560px) {
  .new-chat-button .new-chat-label { font-size:12px; }
  .mode-settings-trigger { max-width:calc(100vw - 110px); min-height:34px; padding-inline:9px; font-size:10px; }
  .mode-settings-panel { padding:13px; }
  .audio-settings-tools { gap:4px; }
  .audio-setting-trigger { gap:5px; min-height:34px; padding-inline:8px; font-size:9px; }
  .audio-setting-panel { min-width:160px; }
  .visual-choice-row { gap:4px; }
  .visual-choice { min-height:59px; font-size:9px; }
  .video-suggestions,.audio-suggestions { gap:6px; margin-top:18px; }
  .video-suggestions button,.audio-suggestions button { min-height:34px; padding-inline:10px; font-size:10px; }
}
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .composer-shell,html[data-theme="system"] .composer-shell:focus-within { background:rgba(29,37,48,.97); }
  html[data-theme="system"] .composer-shell { --composer-inset:rgba(255,255,255,.09); }
  html[data-theme="system"] .model-trigger { border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.085); }
  html[data-theme="system"] .composer-tool { border-color:rgba(255,255,255,.17); }
}
@media(max-width:560px) {
  .chat-studio { inset:72px 0 0; }
}
@media(max-width:700px) {
  .nav-links { position:absolute; gap:0; }
  .nav-indicator { display:none; }
  .nav-links [data-nav][aria-current="page"],.nav-links [data-nav][aria-current="page"]:hover { border-radius:9px; background:var(--ink); color:var(--bg); }
}
@media(prefers-reduced-motion:reduce) {
  .composer-shell:focus-within { animation:none; box-shadow:inset 0 1px var(--composer-inset),0 0 14px rgba(157,139,232,.2),0 0 27px rgba(102,192,198,.14),0 10px 36px rgba(34,44,61,.075); }
}

/* Glass call-to-action buttons on the home and FAQ sections. */
.hero .button-primary {
  border:1px solid rgba(255,255,255,.48);
  background:rgba(255,255,255,.17);
  color:#fff;
  box-shadow:inset 0 1px rgba(255,255,255,.3),0 6px 20px rgba(0,0,0,.12);
  backdrop-filter:blur(16px) saturate(145%);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.hero .button-primary:hover,.hero .button-primary:focus-visible {
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.7);
  background:rgba(255,255,255,.23);
  box-shadow:inset 0 1px rgba(255,255,255,.4),0 0 22px var(--ambient-glow),0 0 38px var(--ambient-glow-soft),0 9px 22px rgba(0,0,0,.16);
}
.faq-intro .button-secondary {
  border:0;
  background:rgba(255,255,255,.42);
  color:var(--ink);
  box-shadow:inset 0 1px rgba(255,255,255,.74),0 5px 18px rgba(31,43,61,.04);
  backdrop-filter:blur(18px) saturate(135%);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.faq-intro .button-secondary:hover,.faq-intro .button-secondary:focus-visible {
  transform:translateY(-1px);
  background:rgba(255,255,255,.48);
  box-shadow:inset 0 1px rgba(255,255,255,.8),0 0 20px var(--ambient-glow),0 0 34px var(--ambient-glow-soft),0 8px 18px rgba(31,43,61,.055);
}
html[data-theme="dark"] .faq-intro .button-secondary { background:rgba(255,255,255,.055); color:var(--ink); }
html[data-theme="dark"] .faq-intro .button-secondary:hover,html[data-theme="dark"] .faq-intro .button-secondary:focus-visible { background:rgba(255,255,255,.075); }
@media(prefers-color-scheme:dark) {
  html[data-theme="system"] .faq-intro .button-secondary { background:rgba(255,255,255,.055); color:var(--ink); }
  html[data-theme="system"] .faq-intro .button-secondary:hover,html[data-theme="system"] .faq-intro .button-secondary:focus-visible { background:rgba(255,255,255,.075); }
}

/* Illustrated format icons in the original glass cards and format dialog. */
.format-icon { display:block; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
