:root {
  --bg: #090909;
  --panel: #151515;
  --ink: #fff8d6;
  --muted: #aaa58f;
  --lime: #ffd51f;
  --lime-dark: #e8b900;
  --line: #303027;
  --dark: #050505;
  --radius: 22px;
}

/* Generation quality guard */
.generation-safety { margin: 22px 0 5px; padding: 18px; border: 1px solid #4a421b; border-radius: 17px; background: linear-gradient(145deg,#1c1909,#10100d 62%); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.generation-safety-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.generation-safety-head span { display: block; margin-bottom: 5px; color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.generation-safety-head h3 { margin: 0; color: var(--ink); font-size: 15px; }
.quality-status { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #5f5422; border-radius: 999px; color: #d8c978; background: #201d0d; font-size: 8px; }
.quality-status.ready { border-color: #47743e; color: #aee99f; background: #12210f; }
.quality-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.quality-checks > div { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid #293424; border-radius: 10px; background: rgba(17,25,15,.68); }
.quality-checks i { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #10200d; background: #9ddd86; font-size: 10px; font-style: normal; font-weight: 900; }
.quality-checks span,.quality-checks strong,.quality-checks small { display: block; min-width: 0; }
.quality-checks strong { color: #f1efd8; font-size: 9px; }
.quality-checks small { margin-top: 2px; color: #8f927f; font-size: 7px; }
.quality-checks > div.warning { border-color: #5c4920; background: rgba(39,29,8,.72); }
.quality-checks > div.warning i { color: #211900; background: #e5b949; }
.safe-scene-plan { display: grid; gap: 7px; margin-top: 12px; }
.safe-scene-plan article { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #28271e; border-radius: 10px; background: #0c0c0b; }
.safe-scene-plan article > b { color: var(--lime); font-size: 9px; }
.safe-scene-plan article span,.safe-scene-plan article strong,.safe-scene-plan article small { display: block; min-width: 0; }
.safe-scene-plan article strong { color: #e9e7d5; font-size: 8px; }
.safe-scene-plan article small { margin-top: 2px; overflow: hidden; color: #8e8d80; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.safe-scene-plan article em { color: #c9bd71; font-size: 8px; font-style: normal; font-weight: 800; }
.prepare-scenes { width: 100%; margin-top: 12px; padding: 10px 13px; border: 1px solid #6d5e20; border-radius: 10px; color: #161400; background: var(--lime); font-size: 9px; font-weight: 900; }
.generation-safety > p { margin: 8px 0 0; color: #77786c; text-align: center; font-size: 7px; }
.credit-protection { display: grid; gap: 3px; margin-top: 10px; padding: 10px 12px; border: 1px solid #34311e; border-radius: 11px; background: #11110d; }
.credit-protection b { color: #e8df9d; font-size: 8px; }
.credit-protection span { color: #888879; font-size: 7px; line-height: 1.45; }

@media (max-width: 620px) {
  .generation-safety { padding: 14px; }
  .generation-safety-head { flex-direction: column; }
  .quality-checks { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; min-height: 100vh; }
button, textarea { font: inherit; }
button { cursor: pointer; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; padding: 24px 20px 18px; background: var(--dark); color: white; display: flex; flex-direction: column; z-index: 10; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #443d1b transparent; }
.brand { color: white; text-decoration: none; font: 700 21px "Space Grotesk", "DM Sans", sans-serif; display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; background: var(--lime); color: var(--dark); display: grid; place-items: center; transform: rotate(-5deg); box-shadow: 0 6px 18px rgba(255, 213, 31, .22); }
.brand-mark svg { width: 28px; height: 28px; fill: none; stroke: #080808; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.brand > span:last-child { line-height: .9; }
.brand small { display: block; margin-top: 7px; color: #aaa58f; font: 600 9px "DM Sans", sans-serif; letter-spacing: 3px; text-transform: uppercase; }
.accent { color: var(--lime); }
.studio-navigation { display: grid; gap: 13px; }
.nav-group { display: grid; gap: 3px; }
.nav-group-label { padding: 0 11px 3px; color: #57544a; font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.nav-item { min-height: 37px; border: 0; color: #aaa58f; background: transparent; padding: 8px 10px; text-align: left; border-radius: 10px; font-size: 11px; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.sidebar nav a.nav-item { text-decoration: none; }
.nav-item span { width: 20px; text-align: center; font-size: 15px; }
.nav-item:hover, .nav-item.active { color: white; background: #26230f; }
.nav-item.active span { color: var(--lime); }
.rewards-nav { position: relative; }
.rewards-nav span { color: var(--lime); }
.rewards-nav:hover, .rewards-nav.active { background: #292408; }
.nav-faq { margin-top: 8px; border: 1px solid var(--lime-dark); color: var(--lime); background: #201d08; }
.nav-faq:hover { color: #111; background: var(--lime); }
.nav-faq:hover span { color: #111; }
.nav-contact { border: 1px solid var(--lime-dark)!important; color: #111!important; background: var(--lime)!important; font-weight: 800; }
.nav-contact span { color: #111!important; }
.nav-contact:hover { filter: brightness(1.08); }
.credits-card { margin-top: 14px; border: 1px solid #3a3520; background: linear-gradient(145deg,#1b1809,#111); padding: 11px; border-radius: 13px; box-shadow:0 14px 35px rgba(0,0,0,.22); }
.credit-top { display: flex; justify-content: space-between; font-size: 9px; color: #c8cbbf; }
.credit-top strong { color: var(--lime); font-size: 15px; }
.progress { height: 5px; background: #45402b; border-radius: 99px; margin: 8px 0 6px; overflow: hidden; }
.progress span { display: block; width: 64%; height: 100%; background: var(--lime); }
.credits-card small { color: #888c80; font-size: 8px; }
.credits-card button { width: 100%; background: transparent; color: white; border: 1px solid #4d5144; border-radius: 8px; padding: 7px; margin-top: 8px; font-size: 9px; font-weight: 700; }
.sidebar-upgrade-card { margin-top: 10px; padding: 13px; border: 1px solid #51471d; border-radius: 14px; background: radial-gradient(circle at 85% 0,rgba(255,213,31,.18),transparent 42%),linear-gradient(145deg,#211d08,#10100e); box-shadow:0 16px 40px rgba(0,0,0,.26); }
.sidebar-upgrade-card span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.sidebar-upgrade-card strong { display:block; margin-top: 7px; color: var(--ink); font-size: 11px; line-height: 1.25; }
.sidebar-upgrade-card small { display:block; margin-top: 7px; color: #9f9880; font-size: 8px; line-height: 1.45; }
.sidebar-upgrade-card button { width: 100%; margin-top: 10px; padding: 9px; border: 0; border-radius: 9px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.support-contact { flex: 0 0 auto; margin-top: 9px; padding: 9px; display: grid; grid-template-columns: 29px minmax(0,1fr) auto; gap: 8px; align-items: center; border: 1px solid #3c392b; border-radius: 11px; color: var(--ink); background: #111; text-decoration: none; }
.support-contact > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #111; background: var(--lime); font-size: 11px; font-weight: 900; }
.support-contact strong,.support-contact small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-contact strong { font-size: 8px; }
.support-contact small { margin-top: 2px; color: #6e6a5f; font-size: 5px; }
.support-contact > b { color: var(--lime); font-size: 10px; }
.support-contact:hover { border-color: var(--lime-dark); background: #1b190b; }
.sidebar-faq { flex: 0 0 auto; margin-top: 10px; padding: 11px; display: grid; grid-template-columns: 31px 1fr auto; gap: 9px; align-items: center; border: 1px solid var(--lime-dark); border-radius: 12px; color: white; background: #201d08; text-decoration: none; box-shadow: 0 6px 18px rgba(255,213,31,.08); }
.sidebar-faq > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #111; background: var(--lime); font-weight: 900; }
.sidebar-faq strong, .sidebar-faq small { display: block; }
.sidebar-faq strong { font-size: 10px; }
.sidebar-faq small { margin-top: 2px; color: #878273; font-size: 8px; }
.sidebar-faq > b { color: var(--lime); font-size: 13px; }
.sidebar-faq:hover { border-color: var(--lime-dark); background: #1b190b; }
.profile { display: grid; grid-template-columns: 37px 1fr auto; gap: 10px; align-items: center; padding: 13px 6px 0; }
.avatar { width: 37px; height: 37px; background: #2c2815; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--lime); }
.profile strong, .profile small { display: block; font-size: 12px; }
.profile small { color: #8e9187; margin-top: 2px; }
.profile > span { color: #777b70; }
.logout-button { width: 31px; height: 31px; border: 1px solid #39372d; border-radius: 9px; color: #8f8b7d; background: #111; font-size: 14px; }
.logout-button:hover { border-color: var(--lime-dark); color: var(--lime); }
.profile-logout-only { display: block; padding: 10px 0 0; }
.profile-logout-only .logout-button { width: 100%; height: auto; padding: 9px 10px; color: #8f8b7d; font-size: 9px; font-weight: 800; text-align: center; }
.floating-support { position: fixed; right: 22px; bottom: 22px; z-index: 60; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 10px; border: 2px solid #111; border-radius: 14px; color: #111; background: var(--lime); text-decoration: none; box-shadow: 0 15px 45px rgba(0,0,0,.45),0 0 0 1px var(--lime-dark); transition: transform .2s; }
.floating-support:hover { transform: translateY(-4px); }
.floating-support > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--lime); background: #111; font-weight: 900; }
.floating-support strong,.floating-support small { display: block; }
.floating-support strong { font-size: 10px; }
.floating-support small { margin-top: 2px; font-size: 7px; }

main { margin-left: 260px; min-height: 100vh; }
header { height: 116px; padding: 28px 42px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #0d0d0d; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #92958a; }
h1 { font: 700 28px "Space Grotesk", "DM Sans", sans-serif; margin: 4px 0 0; }
.help { border: 1px solid var(--line); background: #171717; border-radius: 11px; padding: 9px 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-menu { display: none; color: var(--lime); }
.page { display: none; padding: 34px 42px 60px; }
.page.active { display: block; }
.dashboard-hero { max-width: 1140px; margin: 0 auto 22px; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; overflow: hidden; position: relative; border: 1px solid #51491f; border-radius: 22px; background: radial-gradient(circle at 85% 10%,rgba(255,213,31,.2),transparent 30%),linear-gradient(120deg,#211d08,#111 62%); }
.dashboard-hero::after { content: ""; position: absolute; right: -50px; bottom: -100px; width: 250px; height: 250px; border: 1px solid rgba(255,213,31,.16); border-radius: 50%; }
.dashboard-hero h2 { margin: 6px 0; font: 700 29px "Space Grotesk",sans-serif; }
.dashboard-hero h2 strong { color: var(--lime); }
.dashboard-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.dashboard-create { z-index: 1; min-width: 170px; padding: 14px 18px; border: 0; border-radius: 12px; color: #111; background: var(--lime); font-weight: 900; }
.dashboard-stats { max-width: 1140px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.dashboard-stats article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#171717,#101010); box-shadow:0 18px 42px rgba(0,0,0,.18); transition:transform .2s,border-color .2s; }
.dashboard-stats article:hover { transform:translateY(-3px); border-color:#51491f; }
.dashboard-stats article > span,.dashboard-section-head span,.dashboard-quick > span,.dashboard-plan-card > span { color: #777266; font-size: 7px; font-weight: 900; letter-spacing: 1.2px; }
.dashboard-stats strong { display: block; margin: 8px 0 2px; color: var(--ink); font: 700 25px "Space Grotesk",sans-serif; }
.dashboard-stats small { display: block; min-height: 24px; color: var(--muted); font-size: 8px; }
.dashboard-stats button { margin-top: 12px; padding: 0; border: 0; color: var(--lime); background: transparent; font-size: 8px; font-weight: 800; }
.dashboard-grid { max-width: 1140px; margin: 0 auto 22px; display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.7fr); gap: 16px; align-items: start; }
.dashboard-growth { max-width:1140px; margin:0 auto 22px; padding:22px; display:grid; grid-template-columns:1.1fr 1fr auto; gap:16px; align-items:center; border:1px solid #4c431b; border-radius:20px; background:radial-gradient(circle at 8% 0,rgba(255,213,31,.15),transparent 36%),linear-gradient(120deg,#17150c,#0d0d0d); box-shadow:0 22px 70px rgba(0,0,0,.25); }
.dashboard-growth span { color:var(--lime); font-size:8px; font-weight:900; letter-spacing:1.4px; }
.dashboard-growth h3 { margin:7px 0; font-size:18px; line-height:1.18; }
.dashboard-growth p { margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.dashboard-growth ul { list-style:none; margin:0; padding:0; display:grid; gap:7px; }
.dashboard-growth li { display:flex; gap:8px; align-items:center; color:#d6cfb1; font-size:9px; }
.dashboard-growth li b { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; color:#111; background:var(--lime); font-size:8px; }
.dashboard-growth button { padding:13px 16px; border:0; border-radius:11px; color:#111; background:var(--lime); font-size:9px; font-weight:900; white-space:nowrap; }
.dashboard-queue { padding: 22px; min-height: 360px; }
.dashboard-section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dashboard-section-head h3 { margin: 5px 0 0; font-size: 17px; }
.dashboard-section-head button { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #171717; font-size: 8px; }
.queue-list { display: grid; gap: 9px; margin-top: 18px; }
.queue-empty { min-height: 240px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.queue-empty b { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; color: #111; background: var(--lime); }
.queue-empty strong { color: var(--ink); font-size: 11px; }
.queue-empty span { margin-top: 5px; font-size: 8px; }
.queue-item { padding: 13px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #101010; }
.queue-thumb { width: 48px; height: 62px; overflow: hidden; border-radius: 8px; background: #222; }
.queue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.queue-thumb .studio-empty-visual { font-size: 15px; }
.queue-copy strong,.queue-copy span { display: block; }
.queue-copy strong { font-size: 10px; }
.queue-copy span { margin-top: 3px; color: var(--muted); font-size: 7px; }
.queue-copy small { display: block; margin-top: 3px; color: #77745f; font-size: 7px; }
.queue-progress { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #333126; }
.queue-progress span { height: 100%; border-radius: inherit; background: var(--lime); }
.queue-status { min-width: 78px; text-align: right; }
.queue-status b,.queue-status small { display: block; }
.queue-status b { color: var(--lime); font-size: 9px; }
.queue-status small { margin-top: 4px; color: var(--muted); font-size: 6px; }
.dashboard-side { display: grid; gap: 14px; }
.dashboard-plan-card { padding: 22px; border: 1px solid #51491f; border-radius: 18px; background: linear-gradient(145deg,#252006,#121212); }
.dashboard-plan-card h3 { margin: 8px 0 4px; font-size: 18px; }
.dashboard-plan-card p { color: var(--muted); font-size: 9px; line-height: 1.5; }
.dashboard-credit-bar { height: 6px; margin: 17px 0; overflow: hidden; border-radius: 99px; background: #4a4327; }
.dashboard-credit-bar span { display: block; width: 10%; height: 100%; background: var(--lime); }
.dashboard-plan-card button { width: 100%; padding: 11px; border: 0; border-radius: 9px; color: #111; background: var(--lime); font-size: 9px; font-weight: 900; }
.dashboard-quick { padding: 18px; }
.dashboard-quick > button { width: 100%; padding: 11px 0; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; }
.dashboard-quick > button:last-child { border-bottom: 0; }
.dashboard-quick button > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #111; background: var(--lime); }
.dashboard-quick strong,.dashboard-quick small { display: block; }
.dashboard-quick strong { font-size: 9px; }
.dashboard-quick small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.dashboard-recent { max-width: 1140px; margin: auto; }
.dashboard-recent-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 14px; }
.dashboard-recent-grid article,.dashboard-new-project { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.dashboard-recent-grid article > div { height: 180px; position: relative; }
.dashboard-recent-grid img { width: 100%; height: 100%; object-fit: cover; }
.dashboard-recent-grid article > div button { position: absolute; inset: 0; width: 42px; height: 42px; margin: auto; border: 0; border-radius: 50%; }
.dashboard-recent-grid article > div span { position: absolute; right: 9px; bottom: 9px; padding: 4px 6px; border-radius: 6px; color: white; background: rgba(0,0,0,.65); font-size: 7px; }
.dashboard-recent-grid article h3,.dashboard-recent-grid article p { margin-left: 13px; margin-right: 13px; }
.dashboard-recent-grid article h3 { margin-bottom: 3px; font-size: 11px; }
.dashboard-recent-grid article p { margin-top: 0; color: var(--muted); font-size: 8px; }
.studio-empty-visual { width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; color: var(--lime); background: radial-gradient(circle at center, rgba(255,213,31,.18), rgba(255,213,31,.04) 45%, #10100e 80%); font-weight: 900; letter-spacing: 1px; }
.dashboard-empty-card .studio-empty-visual { font-size: 34px; }
.dashboard-new-project { min-height: 235px; display: grid; place-content: center; justify-items: center; border-style: dashed; color: var(--muted); }
.dashboard-new-project b { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 50%; color: #111; background: var(--lime); font-size: 21px; }
.dashboard-new-project strong { color: var(--ink); }
.dashboard-new-project span { margin-top: 4px; font-size: 8px; }
.create-shortcuts { max-width: 1140px; margin: 0 auto 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.create-shortcuts button { min-width: 0; padding: 13px 15px; display: grid; grid-template-columns: 37px 1fr auto; gap: 10px; align-items: center; border: 1px solid #4e461f; border-radius: 13px; color: var(--ink); background: linear-gradient(110deg,#211e08,#111); text-align: left; transition: transform .2s,border-color .2s; }
.create-shortcuts button > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #111; background: var(--lime); font-size: 16px; }
.create-shortcuts b,.create-shortcuts small { display: block; }
.create-shortcuts b { font-size: 10px; }
.create-shortcuts small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.create-shortcuts i { padding: 4px 6px; border-radius: 99px; color: #111; background: var(--lime); font-size: 5px; font-style: normal; font-weight: 900; }
.create-shortcuts button:hover { border-color: var(--lime); transform: translateY(-2px); }
.create-value-banner { max-width:1140px; margin:0 auto 18px; padding:22px; display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center; border:1px solid #51491f; border-radius:19px; background:radial-gradient(circle at 80% 0,rgba(255,213,31,.14),transparent 36%),linear-gradient(120deg,#19160a,#0f0f0f); }
.create-value-banner span { color:var(--lime); font-size:8px; font-weight:900; letter-spacing:1.4px; }
.create-value-banner h2 { margin:7px 0 5px; font-size:23px; }
.create-value-banner p { margin:0; max-width:680px; color:var(--muted); font-size:10px; line-height:1.55; }
.create-value-pills { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; max-width:360px; }
.create-value-pills b { padding:8px 10px; border:1px solid #51491f; border-radius:999px; color:#e8d982; background:rgba(255,213,31,.08); font-size:8px; white-space:nowrap; }
.creator-grid { max-width: 1140px; margin: auto; display: grid; grid-template-columns: minmax(520px, 1.25fr) minmax(320px, .75fr); gap: 28px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 45px rgba(0, 0, 0, .35); }
.form-panel { padding: 28px; }
.image-creator-layout { max-width: 1140px; margin: auto; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(340px, .7fr); gap: 22px; align-items: start; }
.image-creator-form { padding: 28px; }
.image-creator-form label { display: block; margin: 0 0 8px; color: #d7d0b6; font-size: 10px; font-weight: 900; }
.image-creator-form textarea { width: 100%; min-height: 160px; resize: vertical; border: 1px solid #3b382d; border-radius: 14px; outline: 0; background: #090909; color: var(--ink); padding: 16px; font-size: 12px; line-height: 1.6; }
.image-creator-form textarea:focus, .image-creator-form select:focus { border-color: var(--lime); }
.image-creator-grid { margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.image-creator-form select { width: 100%; min-height: 43px; border: 1px solid #3b382d; border-radius: 11px; background: #090909; color: var(--ink); padding: 0 12px; font-size: 10px; }
.image-helper-box { margin: 0 0 18px; padding: 14px; border: 1px solid #51491f; border-radius: 13px; background: #1c1908; }
.image-helper-box b, .image-helper-box span { display: block; }
.image-helper-box b { color: var(--lime); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.image-helper-box span { margin-top: 5px; color: #c9c1a7; font-size: 9px; line-height: 1.45; }
.image-preview-panel { padding: 18px; position: sticky; top: 24px; }
.image-preview-frame { min-height: 560px; display: grid; place-items: center; overflow: hidden; border: 1px solid #3d3828; border-radius: 19px; background: radial-gradient(circle at 50% 24%, rgba(255,213,31,.18), transparent 34%), #090909; }
.image-preview-frame[data-ratio="1:1"] { min-height: 420px; aspect-ratio: 1 / 1; }
.image-preview-frame[data-ratio="16:9"] { min-height: 320px; aspect-ratio: 16 / 9; }
.image-preview-frame[data-ratio="4:5"] { min-height: 500px; aspect-ratio: 4 / 5; }
.generated-image-preview { width: 82%; height: 82%; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px solid rgba(255,213,31,.22); border-radius: 22px; background: linear-gradient(145deg, rgba(255,213,31,.18), rgba(255,255,255,.02)); text-align: center; box-shadow: inset 0 0 70px rgba(255,213,31,.06); }
.generated-image-preview span { padding: 7px 10px; border-radius: 999px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.generated-image-preview b { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 35px; color: var(--lime); background: rgba(0,0,0,.4); font-size: 44px; }
.generated-image-preview strong { color: var(--ink); font: 700 20px "Space Grotesk"; }
.generated-image-preview small { color: #aaa38e; font-size: 9px; }
.image-preview-copy { padding: 16px 4px 2px; }
.image-preview-copy h3 { margin: 0 0 6px; font-size: 16px; }
.image-preview-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.saved-images-panel { max-width: 1140px; margin: 22px auto 0; padding: 22px; }
.section-mini-head { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.section-mini-head span { display: block; color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.section-mini-head h3 { margin: 4px 0 0; font-size: 17px; }
.section-mini-head small { color: var(--muted); font-size: 9px; }
.saved-images-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.saved-image-card { overflow: hidden; border: 1px solid #312e25; border-radius: 15px; background: #101010; }
.saved-image-thumb { height: 220px; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 20%, rgba(255,213,31,.14), transparent 38%), #080808; }
.saved-image-thumb[data-ratio="1:1"] { height: 180px; }
.saved-image-thumb[data-ratio="16:9"] { height: 150px; }
.saved-image-thumb[data-ratio="4:5"] { height: 230px; }
.generated-image-preview.compact { width: 78%; height: 78%; gap: 6px; border-radius: 16px; }
.generated-image-preview.compact span { padding: 5px 8px; font-size: 6px; }
.generated-image-preview.compact b { width: 62px; height: 62px; border-radius: 18px; font-size: 24px; }
.generated-image-preview.compact strong { font-size: 12px; }
.generated-image-preview.compact small { font-size: 7px; }
.saved-image-card > div:last-child { padding: 13px; }
.saved-image-card strong, .saved-image-card small { display: block; }
.saved-image-card strong { font-size: 11px; }
.saved-image-card small { margin-top: 4px; color: var(--lime); font-size: 7px; font-weight: 800; }
.saved-image-card p { margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.image-actions { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 20px); }
.image-actions button { border: 1px solid rgba(255,213,31,.55); border-radius: 999px; background: rgba(8,8,8,.82); color: var(--ink); padding: 7px 9px; font-size: 7px; font-weight: 900; cursor: pointer; backdrop-filter: blur(10px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.image-actions button:hover { color: #111; background: var(--lime); }
.image-actions .danger { border-color: rgba(255,77,77,.6); color: #ffb3b3; }
.image-actions .danger:hover { color: white; background: #d83232; }
.character-card-actions { left: 10px; right: 10px; justify-content: flex-end; }
.step-title { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.step-title > span { width: 31px; height: 31px; background: var(--lime); border-radius: 10px; display: grid; place-items: center; font-weight: 700; }
.step-title h2 { font: 700 17px "Space Grotesk", "DM Sans", sans-serif; margin: 0; }
.step-title p { color: var(--muted); margin: 3px 0 0; font-size: 12px; }
label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 9px; }
.textarea-wrap { position: relative; }
textarea { width: 100%; min-height: 112px; padding: 15px 16px 27px; resize: vertical; border: 1px solid var(--line); border-radius: 13px; outline: none; line-height: 1.55; color: var(--ink); background: #0c0c0c; }
textarea:focus { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(255, 213, 31, .13); }
.textarea-wrap > span { position: absolute; right: 12px; bottom: 9px; color: #a4a69e; font-size: 10px; }
.inspiration { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.inspiration > span { color: #8b8e83; font-size: 10px; }
.idea-chip, .idea-refresh { border: 1px solid var(--line); background: #1b1b18; border-radius: 99px; padding: 6px 9px; font-size: 10px; color: #d1ccb7; }
.idea-refresh { border-color: rgba(255,213,31,.45); color: var(--lime); font-weight: 800; }
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.cast-list { display: grid; gap: 8px; }
.cast-character { border: 1px solid var(--line); background: #101010; border-radius: 14px; padding: 9px; display: grid; grid-template-columns: 52px 1fr auto auto; gap: 11px; align-items: center; }
.cast-character.primary { border-color: var(--lime-dark); background: #211d08; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.cast-character img, .cast-character .library-fruit-placeholder { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; margin: 0; font-size: 18px; }
.cast-character .generated-fruit { width: 52px; height: 52px; min-height: 52px; margin: 0; border-radius: 10px; }
.cast-character .generated-fruit::before { width: 24px; height: 32px; }
.cast-character .generated-fruit::after { width: 19px; height: 10px; top: 8px; }
.cast-character .generated-fruit b { font-size: 10px; }
.cast-character strong, .cast-character small { display: block; }
.cast-character strong { font-size: 12px; }
.cast-character small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.cast-badge { padding: 5px 7px; border-radius: 99px; background: var(--lime); color: #111; font-size: 8px; font-weight: 800; }
.make-primary, .remove-cast { border: 1px solid var(--line); background: #0c0c0c; color: #aaa58f; border-radius: 8px; padding: 6px 8px; font-size: 8px; font-weight: 700; }
.remove-cast { padding: 6px 9px; color: #d98b8b; }
.character-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.character-select img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; object-position: center 20%; }
.character-select .generated-fruit { width: 52px; height: 52px; min-height: 52px; margin: 0; border-radius: 10px; }
.character-select .generated-fruit::before { width: 24px; height: 32px; }
.character-select .generated-fruit::after { width: 19px; height: 10px; top: 8px; }
.character-select .generated-fruit b { font-size: 10px; }
.character-select strong, .character-select small { display: block; }
.character-select strong { font-size: 13px; }
.character-select small { color: #7c806f; font-size: 10px; margin-top: 4px; }
.lock { width: 24px; height: 24px; background: var(--lime); border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.secondary-btn { border: 0; background: transparent; color: #d2ccb1; font-size: 11px; font-weight: 700; margin-top: 10px; }
.format-label { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 10px; }
.format-label label { margin: 0; }
.format-label small { color: var(--muted); font-size: 9px; }
.option-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 21px; }
.option { min-height: 101px; padding: 12px 7px 10px; border: 1px solid var(--line); background: #101010; color: var(--ink); border-radius: 12px; display: grid; align-content: end; justify-items: center; gap: 4px; position: relative; }
.option .ratio { display: block; border: 1.5px solid #8f8b78; border-radius: 2px; margin-bottom: 3px; }
.ratio-9-16 { width: 14px; height: 25px; }
.ratio-2-3 { width: 18px; height: 27px; }
.ratio-3-4 { width: 21px; height: 28px; }
.ratio-4-5 { width: 24px; height: 30px; }
.ratio-1-1 { width: 27px; height: 27px; }
.ratio-4-3 { width: 32px; height: 24px; }
.ratio-3-2 { width: 33px; height: 22px; }
.ratio-16-9 { width: 36px; height: 20px; }
.recommended { position: absolute; top: 7px; right: 7px; padding: 3px 5px; border-radius: 99px; background: #29240b; color: var(--lime); font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.option strong { font-size: 11px; }
.option small { color: #969990; font-size: 9px; }
.option.active { border-color: var(--lime-dark); background: #231e05; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.option.active .ratio { border-color: var(--lime-dark); background: var(--lime); box-shadow: 0 0 12px rgba(255, 213, 31, .18); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 21px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: #0b0b0b; border: 1px solid #24241f; }
.segmented button { border: 0; background: transparent; padding: 9px 4px; font-size: 10px; border-radius: 8px; color: #797c72; }
.segmented button.active { background: var(--lime); color: #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); font-weight: 700; }
.art-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 11px; }
.art-heading label { margin: 0; }
.art-heading small { color: var(--muted); font-size: 8px; }
.art-step-label { display: flex; align-items: center; gap: 8px; margin: 13px 0 8px; }
.art-step-label > span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #302a0b; color: var(--lime); font-size: 8px; font-weight: 800; flex: 0 0 auto; }
.art-step-label strong, .art-step-label small { display: block; }
.art-step-label strong { font-size: 10px; }
.art-step-label small { color: var(--muted); font-size: 8px; margin-top: 1px; }
.art-step-label.compact { margin-top: 15px; }
.style-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 7px; }
.style { padding: 5px; background: #101010; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.style img, .style-art { width: 100%; height: 96px; border-radius: 8px; object-fit: cover; object-position: center 12%; }
.style img { filter: saturate(1.06) contrast(1.04); }
.style::after { content: ""; position: absolute; left: 5px; right: 5px; top: 5px; height: 96px; border-radius: 8px; background: linear-gradient(transparent 58%, rgba(0,0,0,.46)); pointer-events: none; }
.style-art { display: grid; place-items: center; font: 700 22px "Space Grotesk", "DM Sans", sans-serif; color: white; }
.style-ai { height: 96px; display: grid; place-items: center; border-radius: 8px; background: radial-gradient(circle at 25% 20%, #fff5a8, var(--lime) 34%, #5c4700 100%); color: #111; font: 900 25px "Space Grotesk", sans-serif; letter-spacing: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cartoon-3d { background: radial-gradient(circle at 35% 30%, #fff092, #f3b900 55%, #6b4700); color: #111; text-shadow: 0 1px white; }
.realistic-3d { background: linear-gradient(145deg, #8a7045, #2d2a23 55%, #090909); color: #f7db82; }
.animation { background: repeating-linear-gradient(135deg, #ffde32 0 12px, #101010 12px 24px); color: white; text-shadow: 2px 2px #111; }
.style span { display: block; font-size: 10px; font-weight: 700; padding: 7px 2px 4px; }
.style.active { border-color: var(--lime-dark); box-shadow: inset 0 0 0 1px var(--lime-dark); }
.smart-choice { border-color: #5d5120; background: linear-gradient(135deg,#211d08,#0c0c0c); }
.smart-choice strong,.smart-choice span:last-child { color: var(--lime); }
.atmosphere-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.atmosphere { min-width: 0; border: 1px solid var(--line); background: #101010; color: var(--ink); border-radius: 10px; padding: 9px 4px; display: grid; justify-items: center; gap: 5px; }
.atmosphere strong { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.atmosphere.active { border-color: var(--lime-dark); background: #231e05; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.weather-icon { width: 28px; height: 22px; display: block; border-radius: 8px; position: relative; background: #292820; }
.sun { border-radius: 50%; width: 20px; height: 20px; background: var(--lime); box-shadow: 0 0 10px rgba(255, 213, 31, .4); }
.rain { background: linear-gradient(#55637b 55%, transparent 55%), repeating-linear-gradient(105deg, transparent 0 5px, #5ab6ff 5px 7px, transparent 7px 11px); }
.cloud { background: #858585; border-radius: 12px 12px 7px 7px; }
.storm { background: linear-gradient(135deg, #4e4d5c 50%, #ffd51f 51% 62%, #292832 63%); }
.snow { background: radial-gradient(circle, white 0 2px, transparent 3px) 0 0/9px 9px, #34465a; }
.fog { background: repeating-linear-gradient(#777 0 2px, transparent 2px 6px); }
.ai-spark { background: radial-gradient(circle, var(--lime) 0 5px, transparent 6px), conic-gradient(from 45deg, transparent, #fff4a8, transparent, var(--lime), transparent); }
.art-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-options { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-option { border: 1px solid var(--line); background: #101010; color: #bbb6a2; border-radius: 9px; padding: 7px 9px; display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 700; }
.mini-option.active { border-color: var(--lime-dark); background: #231e05; color: var(--lime); }
.light-icon, .time-icon { width: 13px; height: 13px; display: block; border-radius: 50%; background: #777; }
.bright { background: #fff8b0; box-shadow: 0 0 7px #ffe85f; }
.soft { background: #e3bf91; }
.dark { background: #24243d; box-shadow: inset 4px 0 #080811; }
.neon { background: #00eaff; box-shadow: 0 0 7px #00eaff; }
.morning { background: linear-gradient(#80baff 50%, #ffd15c 50%); }
.noon { background: #ffd51f; box-shadow: 0 0 6px #ffd51f; }
.afternoon { background: linear-gradient(135deg, #ffcb42, #ff6c2f); }
.evening { background: linear-gradient(135deg, #fc713e, #6e3f82); }
.night { background: #252650; box-shadow: inset -4px 0 #f6eebd; }
.ai-dot { background: radial-gradient(circle at 35% 30%, #fff8b0, var(--lime) 45%, #6b5300); box-shadow: 0 0 8px rgba(255,213,31,.35); }
.art-result { margin-top: 12px; padding: 8px 10px; border-radius: 8px; background: #0d0d0d; color: var(--muted); font-size: 8px; }
.art-result strong { color: var(--lime); }
.audio-settings { margin-top: 22px; padding-top: 21px; border-top: 1px solid var(--line); }
.audio-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.audio-heading label { margin: 0; }
.audio-heading small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.voice-off { border: 1px solid var(--line); background: #0d0d0d; color: #c3beaa; border-radius: 9px; padding: 7px 10px; font-size: 9px; font-weight: 700; }
.voice-off.active { border-color: var(--lime-dark); color: var(--lime); background: #241f06; }
.voice-character-label { color: var(--muted); font-size: 8px; margin-bottom: 7px; }
.voice-characters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 13px; }
.voice-character { min-width: 0; border: 1px solid var(--line); background: #0e0e0e; color: var(--ink); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: 37px 1fr 18px; gap: 8px; align-items: center; text-align: left; }
.voice-character img, .fruit-avatar { width: 37px; height: 37px; border-radius: 9px; object-fit: cover; }
.voice-character .generated-fruit { width: 37px; height: 37px; min-height: 37px; margin: 0; border-radius: 9px; }
.voice-character .generated-fruit::before { width: 18px; height: 23px; }
.voice-character .generated-fruit::after { width: 14px; height: 8px; top: 5px; }
.voice-character .generated-fruit b { font-size: 8px; }
.voice-character .library-fruit-placeholder { width: 37px; height: 37px; min-height: 37px; margin: 0; border-radius: 9px; font-size: 14px; }
.fruit-avatar { display: grid; place-items: center; background: linear-gradient(145deg, #ff3d54, #9d001d); color: white; font-weight: 900; }
.voice-character strong, .voice-character small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-character strong { font-size: 9px; }
.voice-character small { color: var(--muted); font-size: 7px; margin-top: 3px; }
.voice-character i { display: none; width: 18px; height: 18px; border-radius: 50%; place-items: center; background: var(--lime); color: #111; font-style: normal; font-size: 8px; }
.voice-character.active { border-color: var(--lime-dark); background: #231e05; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.voice-character.active i { display: grid; }
.add-voice-character { grid-column: 1 / -1; border: 1px dashed #3c3a2f; background: transparent; color: #a9a48e; border-radius: 10px; padding: 8px; display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 8px; font-weight: 700; }
.add-voice-character b { color: var(--lime); font-size: 13px; }
.editing-voice { padding: 8px 10px; margin-bottom: 11px; border-radius: 8px; background: #27230d; color: #c8c2aa; font-size: 8px; }
.editing-voice strong { color: var(--lime); }
.voice-step { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.voice-step.second { margin-top: 15px; }
.voice-step-number { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #302a0b; color: var(--lime); font-size: 8px; font-weight: 800; }
.voice-step strong, .voice-step small { display: block; }
.voice-step strong { font-size: 10px; }
.voice-step small { color: var(--muted); font-size: 8px; margin-top: 1px; }
.gender-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender { border: 1px solid var(--line); background: #101010; color: var(--ink); border-radius: 11px; padding: 10px; display: grid; grid-template-columns: 31px 1fr 20px; gap: 9px; align-items: center; text-align: left; }
.gender > span { width: 31px; height: 31px; border-radius: 50%; background: #292820; display: grid; place-items: center; color: #c9c4af; font-size: 11px; font-weight: 800; }
.gender strong, .gender small { display: block; }
.gender strong { font-size: 10px; }
.gender small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.gender i { display: none; width: 19px; height: 19px; border-radius: 50%; place-items: center; background: var(--lime); color: #111; font-style: normal; font-size: 9px; }
.gender.active { border-color: var(--lime-dark); background: #231e05; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.gender.active > span { background: var(--lime); color: #111; }
.gender.active i { display: grid; }
.voice-age-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.voice-age { border: 1px solid var(--line); background: #101010; color: var(--ink); border-radius: 11px; padding: 9px 5px; display: grid; justify-items: center; gap: 3px; }
.voice-icon { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #282820; color: #c9c4af; font-size: 10px; font-weight: 800; margin-bottom: 3px; }
.voice-age strong { font-size: 9px; }
.voice-age small { font-size: 7px; color: var(--muted); }
.voice-age.active { border-color: var(--lime-dark); background: #231e05; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.voice-age.active .voice-icon { background: var(--lime); color: #111; box-shadow: 0 0 13px rgba(255, 213, 31, .15); }
.tone-options { display: flex; flex-wrap: wrap; gap: 6px; }
.tone { border: 1px solid var(--line); background: #101010; color: #bbb6a2; border-radius: 99px; padding: 7px 10px; font-size: 8px; font-weight: 700; }
.tone.active { border-color: var(--lime-dark); background: var(--lime); color: #111; }
.audio-settings.voice-disabled .gender-options,
.audio-settings.voice-disabled .voice-age-options,
.audio-settings.voice-disabled .tone-options,
.audio-settings.voice-disabled .voice-step { opacity: .3; filter: grayscale(1); pointer-events: none; }
.voice-result { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: #0d0d0d; color: var(--muted); font-size: 8px; }
.voice-result strong { color: var(--lime); }
.subtitle-toggle,.english-dubbing-toggle,.lip-sync-toggle { border: 1px solid var(--line); background: #101010; border-radius: 11px; margin: 10px 0 0; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; }
.subtitle-toggle > span,.english-dubbing-toggle > span,.lip-sync-toggle > span { display: flex; align-items: center; gap: 10px; }
.subtitle-toggle b,.english-dubbing-toggle b,.lip-sync-toggle b { width: 31px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #292820; color: var(--lime); font-size: 8px; }
.subtitle-toggle strong,.subtitle-toggle small,.english-dubbing-toggle strong,.english-dubbing-toggle small,.lip-sync-toggle strong,.lip-sync-toggle small { display: block; }
.subtitle-toggle strong,.english-dubbing-toggle strong,.lip-sync-toggle strong { font-size: 10px; }
.subtitle-toggle small,.english-dubbing-toggle small,.lip-sync-toggle small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.subtitle-toggle input,.english-dubbing-toggle input,.lip-sync-toggle input { display: none; }
.subtitle-toggle i,.english-dubbing-toggle i,.lip-sync-toggle i { width: 32px; height: 18px; background: #4a4a43; border-radius: 99px; position: relative; flex: 0 0 auto; }
.subtitle-toggle i::after,.english-dubbing-toggle i::after,.lip-sync-toggle i::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: white; position: absolute; top: 2px; left: 2px; transition: .2s; }
.subtitle-toggle input:checked + i,.english-dubbing-toggle input:checked + i,.lip-sync-toggle input:checked + i { background: var(--lime); }
.subtitle-toggle input:checked + i::after,.english-dubbing-toggle input:checked + i::after,.lip-sync-toggle input:checked + i::after { transform: translateX(14px); }
.english-dubbing-toggle { border-color: #353e52; background: linear-gradient(90deg,#11151d,#101010); }
.lip-sync-toggle { border-color: #4a3d52; background: linear-gradient(90deg,#19111d,#101010); }
.english-dubbing-toggle:has(input:disabled),.lip-sync-toggle:has(input:disabled) { cursor: not-allowed; opacity: .42; }
.generation-mode-setting { margin: 15px 0 24px; padding: 14px; border: 1px solid #363323; border-radius: 13px; background: #10100d; }
.generation-mode-setting > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.generation-mode-setting label { margin: 0; }
.generation-mode-setting > div > small { color: var(--muted); font-size: 8px; }
.generation-mode-options button { display: grid; gap: 2px; }
.generation-mode-options button strong { font-size: 9px; }
.generation-mode-options button small { color: inherit; font-size: 7px; opacity: .75; }
.production-limits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.production-limits span { padding: 5px 7px; border: 1px solid #383421; border-radius: 99px; color: #98927a; background: #11100c; font-size: 7px; }

.preview-column { position: sticky; top: 20px; }
.preview-panel { padding: 18px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 13px; font-size: 11px; font-weight: 700; }
.preview-head small { color: #92958b; font-weight: 500; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 0 4px rgba(255, 213, 31, .15); }
.video-preview { height: 490px; border-radius: 16px; overflow: hidden; position: relative; background: #151713; }
.video-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.video-preview > .generated-fruit, .video-preview > .library-fruit-placeholder, .video-preview > .studio-empty-visual { width: 100%; height: 100%; margin: 0; border-radius: 0; }
.video-preview > .generated-fruit::before { width: 145px; height: 190px; }
.video-preview > .generated-fruit::after { width: 95px; height: 48px; top: 105px; }
.video-preview > .generated-fruit b { font-size: 42px; }
.cinema-shade { position: absolute; inset: 0; background: linear-gradient(transparent 52%, rgba(0,0,0,.72)); }
.caption { position: absolute; bottom: 35px; color: white; text-align: center; width: 100%; padding: 0 20px; font-weight: 800; font-size: 15px; text-shadow: 0 2px 5px #000; }
.play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.5); background: rgba(18, 20, 16, .55); backdrop-filter: blur(8px); color: white; border-radius: 50%; padding-left: 5px; }
.storyboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding-top: 11px; }
.storyboard span { height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.storyboard span.active { border: 2px solid var(--lime-dark); }
.storyboard img { width: 100%; height: 100%; object-fit: cover; }
.storyboard span:nth-child(2) img { filter: saturate(.7) brightness(.85); object-position: 40% 20%; }
.storyboard span:nth-child(3) img { filter: contrast(1.15) hue-rotate(8deg); object-position: 60% 30%; }
.storyboard .more { display: grid; place-items: center; background: #eff0e9; font-size: 11px; font-weight: 700; color: #6e7168; }
.generate { width: 100%; border: 0; background: var(--lime); border-radius: 15px; margin-top: 14px; padding: 14px 16px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; text-align: left; color: #111; box-shadow: 0 8px 24px rgba(255, 213, 31, .22); }
.generate > span { font-size: 22px; }
.generate strong, .generate small { display: block; }
.generate strong { font-size: 13px; }
.generate small { font-size: 9px; color: #61500a; margin-top: 3px; }
.generate > b { background: rgba(255,255,255,.55); border-radius: 8px; padding: 7px 9px; font-size: 10px; }
.secure { text-align: center; color: #85897d; font-size: 10px; }
.trial-limit-note { margin: 12px 0 2px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #51491e; border-radius: 10px; background: #211d08; }
.trial-limit-note b { flex: 0 0 auto; padding: 4px 7px; border-radius: 99px; color: #111; background: var(--lime); font-size: 7px; }
.trial-limit-note span { color: #d5cfad; font-size: 9px; line-height: 1.4; }
.trial-limit-note.hidden { display: none; }
.segmented button:disabled { cursor: not-allowed; opacity: .3; filter: grayscale(1); }
.trial-mode .duration-options button:not([data-value="10"]),
.trial-mode .quality-options button:not([data-value="720p"]) { display: none; }
.trial-mode .duration-options,.trial-mode .quality-options { grid-template-columns: 1fr; }
.video-download.locked { cursor: not-allowed; color: #777368; background: #161616; }

.section-heading { max-width: 1100px; margin: 0 auto 26px; display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { font: 700 25px "Space Grotesk", "DM Sans", sans-serif; margin: 0; }
.section-heading p { color: var(--muted); margin: 6px 0 0; font-size: 13px; }
.billing-switch { display: flex; padding: 3px; border: 1px solid var(--line); background: #0d0d0d; border-radius: 10px; }
.billing-switch button { border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 8px 12px; font-size: 9px; font-weight: 700; }
.billing-switch button.active { background: var(--lime); color: #111; }
.billing-switch span { color: #756000; font-size: 7px; }
.primary-btn { border: 0; background: var(--lime); border-radius: 11px; padding: 12px 17px; font-size: 12px; font-weight: 700; }
.cards-grid, .project-grid { max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-grid { max-width: 1240px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.character-card, .project-card, .pricing-grid article, .add-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card-image { height: 360px; position: relative; background: radial-gradient(circle at center 35%, #26210d, #070707 72%); display: grid; place-items: center; }
.character-card .card-image img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; padding: 12px; }
.project-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .generated-fruit { width: 100%; height: 100%; margin: 0; border-radius: 0; }
.card-image span { position: absolute; left: 13px; bottom: 13px; background: var(--lime); padding: 6px 9px; border-radius: 99px; font-size: 9px; font-weight: 700; }
.character-card > div:last-child { padding: 17px; }
.character-card h3, .project-card h3 { margin: 0; font-size: 15px; }
.character-card p, .project-card p { color: var(--muted); font-size: 11px; }
.character-card button { width: 100%; border: 0; background: #24271f; color: white; border-radius: 9px; padding: 10px; font-size: 11px; font-weight: 700; }
.add-card { min-height: 420px; display: grid; place-content: center; justify-items: center; border-style: dashed; background: transparent; color: #74786c; }
.add-card span { width: 46px; height: 46px; border-radius: 50%; background: #25210d; color: var(--lime); display: grid; place-items: center; font-size: 25px; margin-bottom: 13px; }
.add-card small { margin-top: 6px; }
.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { padding-bottom: 13px; }
.project-thumb { height: 330px; position: relative; background: #262920; display: grid; place-items: center; color: white; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb > span:not(.loader) { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); padding: 4px 7px; border-radius: 6px; font-size: 9px; }
.project-thumb button { position: absolute; width: 45px; height: 45px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); }
.project-card h3, .project-card p { margin-left: 14px; margin-right: 14px; }
.placeholder .project-thumb { background: linear-gradient(135deg, #25291f, #4e5d28); display: flex; flex-direction: column; gap: 12px; }
.loader { font-size: 38px; color: var(--lime); animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pricing-grid article { padding: 28px; position: relative; }
.trial-onboarding { max-width: 1100px; margin: 0 auto 28px; padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border: 1px solid #50481e; border-radius: 16px; background: linear-gradient(110deg, #242006, #111 70%); }
.trial-onboarding-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #111; background: var(--lime); font-size: 18px; }
.trial-onboarding span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.trial-onboarding h3 { margin: 4px 0 2px; font-size: 14px; }
.trial-onboarding p { margin: 0; color: var(--muted); font-size: 8px; }
.trial-onboarding button { border: 0; border-radius: 9px; padding: 10px 13px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.pricing-grid article > span { font-weight: 700; }
.pricing-grid h3 { font: 700 35px "Space Grotesk", "DM Sans", sans-serif; margin: 16px 0 8px; }
.pricing-grid h3 small { font: 500 12px "DM Sans"; color: var(--muted); }
.pricing-grid p { min-height: 38px; color: var(--muted); font-size: 12px; }
.pricing-grid strong { display: block; margin: 22px 0; }
.pricing-grid ul { margin: 0 0 22px; padding: 0; list-style: none; min-height: 105px; }
.pricing-grid li { color: #aaa58f; font-size: 10px; padding: 6px 0 6px 18px; position: relative; border-bottom: 1px solid #282820; }
.pricing-grid li::before { content: "✓"; color: var(--lime); position: absolute; left: 0; font-weight: 800; }
.pricing-grid button { width: 100%; border: 1px solid var(--line); background: #0c0c0c; color: var(--ink); padding: 12px; border-radius: 10px; font-weight: 700; }
.pricing-grid .popular { border: 2px solid var(--lime-dark); transform: translateY(-8px); }
.pricing-usage-note { max-width: 900px; margin: 20px auto 0; color: #858174; font-size: 9px; line-height: 1.55; text-align: center; }
.popular i { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--lime); border-radius: 99px; padding: 5px 11px; font-style: normal; font-size: 8px; font-weight: 800; white-space: nowrap; }
.popular button { background: var(--lime); border-color: var(--lime); }
.recharge-section { max-width: 1100px; margin: 60px auto 0; }
.recharge-heading { text-align: center; margin-bottom: 25px; }
.recharge-heading > span, .custom-recharge-info > span { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.recharge-heading h2 { margin: 6px 0; font-size: 24px; }
.recharge-heading p, .custom-recharge-info p { color: var(--muted); font-size: 11px; margin: 0; }
.recharge-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.recharge-pack { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 16px; padding: 22px; display: grid; text-align: left; position: relative; }
.recharge-pack > span { color: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.recharge-pack > strong { font-size: 18px; margin: 11px 0 5px; }
.recharge-pack > b { font: 700 30px "Space Grotesk", sans-serif; }
.recharge-pack > small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.recharge-pack.featured { border: 2px solid var(--lime-dark); background: #211d08; }
.recharge-pack i { position: absolute; top: -10px; right: 14px; background: var(--lime); color: #111; padding: 4px 8px; border-radius: 99px; font-size: 7px; font-style: normal; font-weight: 900; }
.recharge-pack.selected { box-shadow: 0 0 0 3px rgba(255,213,31,.15); }
.custom-recharge { margin-top: 22px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #171717, #0d0d0d); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.custom-recharge-info h3 { font-size: 20px; margin: 7px 0; }
.credit-calculator { border: 1px solid #353328; background: #111; border-radius: 14px; padding: 18px; }
.credit-input-wrap { display: grid; grid-template-columns: 40px 1fr 40px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.credit-input-wrap button { border: 0; background: #242319; color: var(--lime); font-size: 19px; }
.credit-input-wrap input { min-width: 0; border: 0; outline: 0; background: #0b0b0b; color: var(--ink); text-align: center; padding: 11px; font-weight: 800; -moz-appearance: textfield; }
.credit-input-wrap input::-webkit-inner-spin-button { appearance: none; }
.credit-range { width: 100%; margin: 17px 0; accent-color: var(--lime); }
.calculator-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.calculator-summary > div { padding: 10px; border-radius: 9px; background: #090909; }
.calculator-summary span, .calculator-summary strong { display: block; }
.calculator-summary span { color: var(--muted); font-size: 8px; }
.calculator-summary strong { font-size: 15px; margin-top: 4px; }
.calculator-summary > div:last-child strong { color: var(--lime); }
.discount-notice { color: #aaa172; font-size: 8px; margin: 12px 0; }
.buy-custom-credits { width: 100%; border: 0; background: var(--lime); color: #111; border-radius: 10px; padding: 12px; font-size: 10px; font-weight: 800; }

.rewards-level { padding: 7px 11px; border: 1px solid #514921; border-radius: 99px; color: var(--lime); background: #201d08; font-size: 8px; font-weight: 900; }
.rewards-overview { max-width: 1100px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.rewards-overview article { padding: 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: #121212; }
.reward-stat-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 12px; color: #111; background: var(--lime); font-size: 18px; font-weight: 900; }
.rewards-overview span,.rewards-overview strong,.rewards-overview small { display: block; }
.rewards-overview span { color: var(--muted); font-size: 8px; }
.rewards-overview strong { margin: 3px 0; font: 700 23px "Space Grotesk"; }
.rewards-overview small { color: #6f6b5e; font-size: 7px; }
.rewards-grid { max-width: 1100px; margin: auto; display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.referral-card,.referral-progress-card,.loyalty-section { border: 1px solid var(--line); border-radius: 19px; background: #121212; }
.referral-card { padding: 27px; background: radial-gradient(circle at 90% 5%,rgba(255,213,31,.11),transparent 25%),linear-gradient(145deg,#171609,#101010 65%); }
.referral-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.referral-head > div:first-child > span,.referral-progress-card > span,.loyalty-heading > div > span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.6px; }
.referral-head h3 { margin: 6px 0; font-size: 20px; }
.referral-head p,.referral-progress-card > p,.loyalty-heading p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.referral-head p strong,.referral-progress-card > p strong { color: var(--ink); }
.gift-orbit { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid #5a5123; border-radius: 50%; color: var(--lime); background: #201d08; font: 700 24px/1 "Space Grotesk"; text-align: center; box-shadow: 0 0 0 8px rgba(255,213,31,.035); }
.gift-orbit span { display: block; font: 700 7px "DM Sans"; }
.referral-card > label { margin-top: 24px; font-size: 9px; }
.referral-link-wrap { display: grid; grid-template-columns: 1fr auto; border: 1px solid #454020; border-radius: 11px; overflow: hidden; background: #090909; }
.referral-link-wrap input { min-width: 0; padding: 12px; border: 0; outline: 0; color: #c8c2ad; background: transparent; font-size: 9px; }
.referral-link-wrap button { border: 0; padding: 0 14px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.referral-share { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 12px 0 24px; }
.referral-share button { padding: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; color: #a9a492; background: #0c0c0c; font-size: 7px; }
.referral-share button i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: #111; background: var(--lime); font-style: normal; font-weight: 900; }
.referral-share button.shared { border-color: var(--lime-dark); color: var(--lime); }
.referral-steps { display: grid; grid-template-columns: 1fr 25px 1fr 25px 1fr; align-items: center; }
.referral-steps > div { display: flex; align-items: center; gap: 8px; }
.referral-steps > div > b { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; color: #111; background: var(--lime); font-size: 9px; }
.referral-steps strong,.referral-steps small { display: block; }
.referral-steps strong { font-size: 8px; }
.referral-steps small { margin-top: 2px; color: var(--muted); font-size: 6px; }
.referral-steps > i { height: 1px; background: #474124; }
.referral-progress-card { padding: 24px; }
.referral-progress-card h3 { margin: 7px 0; font-size: 17px; }
.friends-progress { height: 7px; margin: 22px 0 13px; overflow: hidden; border-radius: 99px; background: #343127; }
.friends-progress span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.friends-avatars { display: flex; align-items: center; margin-bottom: 24px; }
.friends-avatars b,.friends-avatars i { width: 31px; height: 31px; margin-right: -5px; display: grid; place-items: center; border: 3px solid #121212; border-radius: 50%; font-size: 8px; font-style: normal; }
.friends-avatars b { color: #111; background: var(--lime); }
.friends-avatars i { color: #706b5d; background: #292820; }
.friends-avatars span { margin-left: auto; color: var(--lime); font-size: 8px; font-weight: 800; }
.referral-history { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.referral-history > div,.referral-history > div > span { display: flex; align-items: center; }
.referral-history > div { justify-content: space-between; gap: 10px; }
.referral-history > div > span { gap: 8px; }
.referral-history span > b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--lime); background: #2a2610; font-size: 8px; }
.referral-history strong,.referral-history small { display: block; }
.referral-history strong { font-size: 8px; }
.referral-history small { margin-top: 2px; color: var(--muted); font-size: 6px; }
.referral-history em { color: var(--lime); font-size: 7px; font-style: normal; font-weight: 800; }
.loyalty-section { max-width: 1100px; margin: 16px auto 0; padding: 28px; }
.loyalty-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.loyalty-heading h2 { margin: 5px 0; font-size: 22px; }
.current-streak { padding: 11px 15px; display: flex; align-items: center; gap: 8px; border: 1px solid #4c451e; border-radius: 12px; background: #201d08; }
.current-streak b { color: var(--lime); font: 700 25px "Space Grotesk"; }
.current-streak span { color: #a8a182; font-size: 7px; }
.loyalty-track { margin-top: 33px; display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; position: relative; }
.loyalty-line { position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 4px; border-radius: 99px; background: #343229; }
.loyalty-line span { display: block; height: 100%; background: var(--lime); }
.loyalty-milestone { position: relative; z-index: 1; text-align: center; }
.milestone-dot { width: 38px; height: 38px; margin: 0 auto 12px; display: grid; place-items: center; border: 4px solid #121212; border-radius: 50%; color: #777265; background: #302f27; font-size: 9px; font-weight: 900; }
.loyalty-milestone.complete .milestone-dot,.loyalty-milestone.next .milestone-dot { color: #111; background: var(--lime); }
.loyalty-milestone.next .milestone-dot { box-shadow: 0 0 0 5px rgba(255,213,31,.12); }
.loyalty-milestone > span { color: var(--muted); font-size: 7px; }
.loyalty-milestone h3 { margin: 5px 0 3px; font-size: 11px; }
.loyalty-milestone p { margin: 0; color: #777366; font-size: 7px; }
.loyalty-milestone > b { display: inline-block; margin-top: 8px; padding: 4px 7px; border-radius: 99px; color: #6d695e; background: #24231e; font-size: 6px; }
.loyalty-milestone.complete > b,.loyalty-milestone.next > b { color: var(--lime); background: #252109; }
.loyalty-note { margin-top: 25px; padding: 11px; border-radius: 9px; color: #8f8973; background: #0b0b0b; text-align: center; font-size: 7px; }

.page-kicker { display: block; margin-bottom: 6px; color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.7px; }
.assistant-badge { padding: 7px 10px; border: 1px solid #48401c; border-radius: 99px; color: #c8be7a; background: #1b1808; font-size: 8px; font-weight: 800; }
.smart-brief { max-width:1100px; margin:0 auto 20px; padding:22px; display:grid; grid-template-columns:.8fr 1.4fr .9fr; gap:20px; align-items:start; border-color:#4c441d; background:linear-gradient(135deg,#1d1a08,#111 52%); }
.smart-brief-intro > span,.smart-brief-result > span { color:var(--lime); font-size:7px; font-weight:900; letter-spacing:1.4px; }
.smart-brief-intro h3 { margin:7px 0; font-size:19px; }
.smart-brief-intro p { margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.brief-progress { display:flex; gap:5px; margin-top:18px; }
.brief-progress i { width:24px; height:4px; border-radius:99px; background:#3b392f; }
.brief-progress i.active { background:var(--lime); }
.smart-brief-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.brief-field:first-child { grid-column:1 / -1; }
.brief-field label { display:flex; align-items:center; gap:7px; margin-bottom:6px; color:#d5cfba; font-size:8px; font-weight:800; }
.brief-field label b { width:19px; height:19px; display:grid; place-items:center; border-radius:6px; color:#111; background:var(--lime); font-size:7px; }
.brief-field input,.brief-field select { width:100%; min-width:0; padding:10px; border:1px solid var(--line); border-radius:9px; outline:0; color:var(--ink); background:#090909; font-size:9px; }
.brief-field input:focus,.brief-field select:focus { border-color:var(--lime-dark); }
.build-smart-brief { grid-column:1 / -1; min-height:41px; border:0; border-radius:10px; color:#111; background:var(--lime); font-size:9px; font-weight:900; }
.smart-brief-result { min-height:100%; padding:16px; border:1px solid #3a3621; border-radius:13px; background:#0c0c0b; }
.brief-result-placeholder { min-height:185px; display:grid; place-items:center; align-content:center; gap:10px; text-align:center; }
.brief-result-placeholder > b { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; color:#111; background:var(--lime); font-size:18px; }
.brief-result-placeholder p { margin:0; color:var(--muted); font-size:8px; line-height:1.5; }
.brief-result-ready { display:grid; gap:8px; margin-top:13px; }
.brief-result-ready div { display:flex; justify-content:space-between; gap:10px; padding:8px 9px; border-radius:8px; background:#151515; font-size:8px; }
.brief-result-ready span { color:var(--muted); }
.brief-result-ready b { color:var(--lime); text-align:right; }
.brief-result-ready button { margin-top:4px; padding:10px; border:1px solid var(--lime); border-radius:8px; color:#111; background:var(--lime); font-size:8px; font-weight:900; }
.assistant-layout { max-width: 1100px; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: start; }
.assistant-form { padding: 25px; position: sticky; top: 25px; }
.assistant-form label, .publication-modal-card label { display: block; margin: 0 0 7px; color: #cec8b5; font-size: 9px; font-weight: 800; }
.assistant-form input, .assistant-form select, .publication-modal-card input, .publication-modal-card select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #090909; color: var(--ink); padding: 12px; font-size: 10px; }
.assistant-form input:focus, .assistant-form select:focus { border-color: var(--lime-dark); }
.assistant-goals { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.assistant-goals button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: #0b0b0b; color: #aaa593; font-size: 8px; }
.assistant-goals button.active { border-color: var(--lime); background: var(--lime); color: #111; font-weight: 800; }
.assistant-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.generate-ideas { width: 100%; border: 0; border-radius: 11px; padding: 13px; background: var(--lime); color: #111; font-size: 10px; font-weight: 900; }
.assistant-form > small { display: block; margin-top: 9px; text-align: center; color: var(--muted); font-size: 7px; }
.idea-results { display: grid; gap: 10px; }
.idea-results-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 3px; }
.idea-results-head span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.idea-results-head h3 { margin: 4px 0 0; font-size: 18px; }
.refresh-ideas { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #111; color: #a9a492; font-size: 8px; }
.idea-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #121212; transition: border-color .2s, transform .2s; }
.idea-card:hover, .idea-card.selected { border-color: #554c20; transform: translateY(-2px); }
.idea-card > div:first-child { display: flex; justify-content: space-between; }
.idea-number { color: #575347; font: 700 20px "Space Grotesk"; }
.idea-potential { padding: 5px 8px; border-radius: 99px; background: #242006; color: var(--lime); font-size: 7px; font-weight: 800; }
.idea-card h3 { margin: 12px 0 6px; font-size: 15px; }
.idea-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.idea-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.idea-meta span { padding: 5px 7px; border-radius: 99px; border: 1px solid #353329; color: #918d7e; font-size: 7px; }
.use-idea { border: 0; background: transparent; color: var(--lime); font-size: 9px; font-weight: 800; padding: 0; }

.series-nav,.templates-nav { position: relative; border: 1px solid #51491f; background: #1d1a09; color: #eee6ba; }
.series-nav > span,.templates-nav > span { color: var(--lime); }
.series-nav > b,.templates-nav > b { margin-left: auto; padding: 3px 5px; border-radius: 99px; color: #111; background: var(--lime); font-size: 5px; }
.series-nav:hover,.templates-nav:hover,.series-nav.active,.templates-nav.active { border-color: var(--lime); background: #292408; }
.templates-count { padding: 7px 10px; border: 1px solid #48401c; border-radius: 99px; color: var(--lime); background: #1b1808; font-size: 8px; font-weight: 900; }
.template-filters { max-width: 1100px; margin: 0 auto 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.template-filters button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #101010; font-size: 8px; font-weight: 800; }
.template-filters button.active { border-color: var(--lime); color: #111; background: var(--lime); }
.template-pro-tools { max-width: 1100px; margin: 0 auto 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.template-detail-panel,.publish-pack-panel { padding: 20px; border-color: #3d3518; background: radial-gradient(circle at top right, rgba(255,213,31,.08), transparent 35%), #101010; }
.template-tool-head span { display: block; color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.template-tool-head strong { display: block; margin-top: 5px; font-size: 17px; }
.template-tool-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.template-detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.template-detail-metrics article,.publish-pack-items article { padding: 11px; border: 1px solid #2f2d24; border-radius: 12px; background: #0a0a0a; }
.template-detail-metrics span,.publish-pack-items span,.template-structure > span { display: block; margin-bottom: 5px; color: var(--lime); font-size: 6px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.template-detail-metrics strong { display: block; color: #eee8cf; font-size: 9px; line-height: 1.35; }
.template-structure { padding-top: 4px; }
.template-structure ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.template-structure li { display: grid; grid-template-columns: 46px 1fr; gap: 9px; align-items: start; }
.template-structure b { padding: 5px 7px; border-radius: 99px; color: #111; background: var(--lime); font-size: 7px; text-align: center; }
.template-structure p { margin: 0; color: #c9c2ac; font-size: 9px; line-height: 1.45; }
.publish-pack-preview { margin: 15px 0 12px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; }
.publish-pack-preview img { width: 96px; height: 124px; border-radius: 13px; object-fit: cover; object-position: center; background: #080808; }
.publish-pack-preview small { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.publish-pack-preview h3 { margin: 6px 0; font-size: 18px; }
.publish-pack-preview p { margin: 0; color: #eee8cf; font-size: 10px; line-height: 1.45; }
.publish-pack-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.publish-pack-items article:first-child { grid-column: 1 / -1; }
.publish-pack-items p { margin: 0; color: #bfb8a4; font-size: 8px; line-height: 1.45; }
.send-pack-to-viral { width: 100%; margin-top: 12px; padding: 12px; border: 0; border-radius: 11px; color: #111; background: var(--lime); font-size: 9px; font-weight: 900; }
.template-grid { max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.template-card { min-height: 245px; display: grid; grid-template-columns: 190px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #111; }
.template-card.hidden { display: none; }
.template-card.featured { border-color: #5c5120; box-shadow: 0 0 0 1px rgba(255,213,31,.08); }
.template-card.selected-template { border-color: var(--lime); box-shadow: 0 0 0 1px rgba(255,213,31,.22), 0 18px 45px rgba(0,0,0,.25); }
.template-visual { position: relative; min-height: 245px; overflow: hidden; background: #202020; }
.template-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(0,0,0,.9)); }
.template-visual img { width: 100%; height: 100%; object-fit: cover; }
.template-visual img[src*="templates-clean/"] { object-fit: contain; object-position: center bottom; padding: 13px; box-sizing: border-box; }
.template-card.fullbody-template .template-visual img { object-fit: cover; object-position: center center; background: #080808; }
.template-card.fullbody-template .template-visual img[src*="templates-clean/"] { object-fit: contain; object-position: center bottom; }
.template-visual span { position: absolute; z-index: 2; top: 12px; left: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.template-visual b { position: absolute; z-index: 2; left: 13px; bottom: 13px; color: var(--lime); font-size: 7px; letter-spacing: 1.1px; }
.template-card > div:last-child { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.template-card h3 { margin: 0 0 8px; font-size: 17px; }
.template-card p { margin: 0; color: #c0baa6; font-size: 10px; line-height: 1.5; }
.template-card small { margin-top: 9px; color: var(--muted); font-size: 7px; }
.use-template { margin-top: auto; padding: 9px 11px; border: 1px solid #4b4420; border-radius: 8px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.series-plan-badge,.viral-badge { padding: 7px 10px; border: 1px solid #4e461f; border-radius: 99px; color: var(--lime); background: #201d08; font-size: 8px; font-weight: 800; }
.series-layout { max-width: 1160px; margin: auto; display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 17px; align-items: start; }
.series-builder { padding: 24px; position: sticky; top: 20px; }
.series-builder-head { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.series-builder-head > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #111; background: var(--lime); font-weight: 900; }
.series-builder-head h3 { margin: 0; font-size: 16px; }
.series-builder-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.series-builder > input,.series-builder > textarea,.series-builder select,.viral-settings textarea,.viral-settings select { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: #090909; font-size: 9px; }
.series-builder > textarea,.viral-settings textarea { min-height: 100px; resize: vertical; }
.series-builder input:focus,.series-builder textarea:focus,.series-builder select:focus,.viral-settings textarea:focus,.viral-settings select:focus { border-color: var(--lime-dark); }
.series-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.series-character-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.series-character-options button { min-width: 0; padding: 7px; display: grid; grid-template-columns: 39px 1fr auto; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #0c0c0c; text-align: left; }
.series-character-options button.active { border-color: var(--lime); background: #211d08; }
.series-character-options img { width: 39px; height: 39px; border-radius: 8px; object-fit: cover; }
.series-character-options strong,.series-character-options small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.series-character-options strong { font-size: 8px; }
.series-character-options small { margin-top: 2px; color: var(--muted); font-size: 6px; }
.series-character-options i { display: none; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #111; background: var(--lime); font-size: 7px; font-style: normal; }
.series-character-options button.active i { display: grid; }
.continuity-options { display: flex; flex-wrap: wrap; gap: 6px; }
.continuity-options label { margin: 0; }
.continuity-options input { display: none; }
.continuity-options span { display: block; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; color: #8f8a79; background: #0c0c0c; font-size: 7px; }
.continuity-options input:checked + span { border-color: #4c441d; color: var(--lime); background: #211d08; }
.generate-series,.generate-viral-kit { width: 100%; margin-top: 21px; padding: 13px; border: 0; border-radius: 11px; color: #111; background: var(--lime); font-size: 9px; font-weight: 900; }
.series-builder > small,.viral-settings > small { display: block; margin-top: 8px; color: var(--muted); text-align: center; font-size: 7px; }
.season-preview { min-width: 0; }
.season-header { min-height: 105px; padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 1px solid #48411e; border-radius: 17px; background: linear-gradient(120deg,#211e08,#111); }
.season-header > div:first-child > span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.5px; }
.season-header h3 { margin: 5px 0 3px; font-size: 20px; }
.season-header p { margin: 0; color: var(--muted); font-size: 8px; }
.season-lock { padding: 8px 10px; border-radius: 99px; color: var(--lime); background: #0d0d0d; font-size: 7px; font-weight: 800; white-space: nowrap; }
.episode-list { display: grid; gap: 8px; margin-top: 10px; }
.episode-card { min-width: 0; padding: 10px; display: grid; grid-template-columns: 34px 92px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: #111; transition: border-color .2s,transform .2s; }
.episode-card:hover,.episode-card.active { border-color: #51491f; transform: translateX(3px); }
.episode-number { color: #4d493d; font: 700 20px "Space Grotesk"; }
.episode-thumb { height: 72px; overflow: hidden; position: relative; border-radius: 9px; }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.episode-thumb .studio-empty-visual { min-height: 72px; font-size: 14px; }
.episode-thumb i { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; border-radius: 99px; color: #111; background: var(--lime); font-size: 5px; font-style: normal; font-weight: 900; }
.episode-copy { min-width: 0; }
.episode-copy > small { color: var(--lime); font-size: 6px; font-weight: 900; letter-spacing: 1px; }
.episode-copy h3 { margin: 4px 0 3px; font-size: 11px; }
.episode-copy p { margin: 0; color: var(--muted); font-size: 7px; line-height: 1.5; }
.episode-copy > div { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.episode-copy > div span { padding: 3px 5px; border: 1px solid #333127; border-radius: 99px; color: #777266; font-size: 5px; }
.episode-use { border: 0; color: var(--lime); background: transparent; font-size: 8px; font-weight: 800; }
.season-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.season-actions button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; color: #aaa493; background: #111; font-size: 8px; font-weight: 800; }
.season-actions .save-season { border-color: var(--lime); color: #111; background: var(--lime); }
.episode-card.hidden-episode { display: none; }

.viral-layout { max-width: 1160px; margin: auto; display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 17px; align-items: start; }
.viral-settings { padding: 23px; position: sticky; top: 20px; }
.viral-video-source { padding: 8px; display: grid; grid-template-columns: 54px 1fr auto; gap: 9px; align-items: center; border: 1px solid #49421e; border-radius: 12px; background: #201d08; }
.viral-video-source img,.viral-video-source .studio-empty-visual { width: 54px; height: 54px; min-height: 54px; border-radius: 9px; object-fit: cover; }
.viral-video-source span,.viral-video-source strong,.viral-video-source small { display: block; }
.viral-video-source span { color: var(--lime); font-size: 5px; font-weight: 900; letter-spacing: 1px; }
.viral-video-source strong { margin: 3px 0; font-size: 8px; }
.viral-video-source small { color: var(--muted); font-size: 6px; }
.viral-video-source button { border: 0; color: var(--lime); background: transparent; font-size: 7px; }
.viral-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.viral-platforms button,.viral-goals button { border: 1px solid var(--line); border-radius: 9px; color: #999486; background: #0b0b0b; font-size: 7px; }
.viral-platforms button { padding: 8px; display: flex; align-items: center; gap: 7px; }
.viral-platforms i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #111; background: var(--lime); font-style: normal; font-weight: 900; }
.viral-platforms button.active,.viral-goals button.active { border-color: var(--lime); color: var(--ink); background: #211d08; }
.viral-goals { display: flex; flex-wrap: wrap; gap: 6px; }
.viral-goals button { padding: 7px 9px; }
.viral-results { min-width: 0; display: grid; gap: 9px; }
.viral-score { min-height: 105px; padding: 19px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; border: 1px solid #4a431e; border-radius: 16px; background: linear-gradient(110deg,#211e08,#111); }
.viral-score > div:first-child span,.viral-score > div:first-child strong { display: block; }
.viral-score > div:first-child span { color: var(--lime); font-size: 6px; font-weight: 900; letter-spacing: 1.2px; }
.viral-score > div:first-child strong { font: 700 35px "Space Grotesk"; }
.viral-score > div:first-child small { color: var(--muted); font-size: 10px; }
.score-bars { display: grid; gap: 5px; }
.score-bars span { height: 14px; position: relative; overflow: hidden; border-radius: 99px; background: #29271f; }
.score-bars i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b69000,var(--lime)); }
.score-bars b { position: absolute; left: 7px; top: 2px; color: #111; font-size: 6px; }
.viral-score em { padding: 6px 8px; border-radius: 99px; color: #111; background: var(--lime); font-size: 7px; font-style: normal; font-weight: 900; }
.viral-output { padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: #121212; }
.featured-output { border-color: #51491f; background: #1d1a09; }
.viral-output-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viral-output-head span { color: var(--lime); font-size: 6px; font-weight: 900; letter-spacing: 1.2px; }
.viral-output-head button { border: 1px solid #37342a; border-radius: 7px; padding: 5px 7px; color: #999485; background: #0b0b0b; font-size: 6px; }
.viral-output p { margin: 11px 0 0; color: #d8d1b9; font-size: 11px; line-height: 1.55; }
.viral-hashtags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.viral-hashtags button { padding: 6px 8px; border: 1px solid #393527; border-radius: 99px; color: #bbb48f; background: #191707; font-size: 7px; }
.viral-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.thumbnail-output > div:last-child { height: 95px; margin-top: 9px; overflow: hidden; position: relative; border-radius: 9px; }
.thumbnail-output img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; filter: brightness(.6); }
.thumbnail-output .studio-empty-visual { min-height: 95px; filter: brightness(.75); }
.thumbnail-output strong { position: absolute; inset: 0; display: grid; place-items: center; color: white; font: 700 18px "Space Grotesk"; text-shadow: 0 3px 8px black; }
.viral-actions { display: flex; justify-content: flex-end; gap: 8px; }
.viral-actions button { padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; color: #aaa493; background: #111; font-size: 8px; font-weight: 800; }
.viral-actions .copy-full-kit { border-color: var(--lime); color: #111; background: var(--lime); }
.copy-output.copied,.copy-full-kit.copied { color: #111; background: var(--lime); }

.notification-status { padding: 7px 10px; border: 1px solid #4d461f; border-radius: 99px; color: var(--lime); background: #201d08; font-size: 8px; font-weight: 800; }
.notification-layout { max-width: 1100px; margin: auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 17px; align-items: start; }
.notification-settings { display: grid; gap: 12px; }
.notification-email-card { padding: 18px; display: grid; grid-template-columns: 43px 1fr auto; gap: 12px; align-items: center; border: 1px solid #49421e; border-radius: 15px; background: linear-gradient(110deg,#211e08,#111); }
.notification-email-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #111; background: var(--lime); font-size: 17px; font-weight: 900; }
.notification-email-card span,.notification-email-card strong,.notification-email-card small { display: block; }
.notification-email-card span { color: var(--lime); font-size: 6px; font-weight: 900; letter-spacing: 1.2px; }
.notification-email-card strong { margin: 4px 0 2px; font-size: 10px; }
.notification-email-card small { color: var(--muted); font-size: 7px; }
.test-notification { border: 1px solid #4b4528; border-radius: 9px; padding: 8px 10px; color: var(--lime); background: #0c0c0c; font-size: 7px; font-weight: 800; }
.test-notification.sent { color: #111; background: var(--lime); }
.notification-group { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #121212; }
.notification-group-head { padding: 17px 19px; border-bottom: 1px solid var(--line); }
.notification-group-head span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.notification-group-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.notification-row { margin: 0; padding: 15px 18px; display: grid; grid-template-columns: 37px minmax(0,1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid #292820; cursor: pointer; }
.notification-row:last-child { border-bottom: 0; }
.notification-row-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--lime); background: #29250d; font-size: 13px; font-weight: 900; }
.notification-row strong,.notification-row small { display: block; }
.notification-row strong { font-size: 9px; }
.notification-row small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.notification-row input { display: none; }
.notification-row > i { width: 38px; height: 21px; padding: 3px; border-radius: 99px; background: #3a3830; transition: background .2s; }
.notification-row > i::before { content:""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #8b877c; transition: transform .2s,background .2s; }
.notification-row input:checked + i { background: var(--lime); }
.notification-row input:checked + i::before { transform: translateX(17px); background: #111; }
.save-notifications { padding: 12px; border: 0; border-radius: 10px; color: #111; background: var(--lime); font-size: 9px; font-weight: 900; }
.notification-preview { position: sticky; top: 20px; }
.notification-preview > span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.4px; }
.email-preview-card { margin-top: 9px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: #f4f1e8; color: #191919; box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.email-preview-brand { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #d8d3c5; font: 700 13px "Space Grotesk"; }
.email-preview-brand > b { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #111; background: var(--lime); }
.email-preview-brand span span { color: #c8a100; }
.email-preview-brand small { display: block; margin-top: 3px; color: #8b877d; font: 700 5px "DM Sans"; letter-spacing: 2px; }
.email-preview-content { padding: 24px 0 14px; text-align: center; }
.email-preview-content > span { color: #b49000; font-size: 6px; font-weight: 900; letter-spacing: 1.3px; }
.email-preview-content h3 { margin: 7px 0; font-size: 17px; }
.email-preview-content p { color: #777269; font-size: 8px; line-height: 1.5; }
.email-preview-content > div { height: 180px; margin: 16px 0; overflow: hidden; position: relative; border-radius: 12px; background: #111; }
.email-preview-content img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.email-preview-content .studio-empty-visual { min-height: 180px; color: #b49000; }
.email-preview-content > div > b { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(0,0,0,.65); }
.email-preview-content button { border: 0; border-radius: 8px; padding: 10px 15px; color: #111; background: var(--lime); font-size: 8px; font-weight: 900; }
.email-preview-card > small { display: block; padding-top: 12px; border-top: 1px solid #d8d3c5; color: #918c82; text-align: center; font-size: 6px; }
.notification-promise { margin-top: 10px; padding: 11px; display: flex; gap: 9px; align-items: center; border: 1px solid #3c392b; border-radius: 11px; background: #111; }
.notification-promise > b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #111; background: var(--lime); }
.notification-promise p { margin: 0; }
.notification-promise strong,.notification-promise span { display: block; }
.notification-promise strong { font-size: 8px; }
.notification-promise span { margin-top: 2px; color: var(--muted); font-size: 6px; }

.calendar-summary { max-width: 1100px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calendar-summary article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #121212; }
.calendar-summary span, .calendar-summary strong, .calendar-summary small { display: block; }
.calendar-summary span { color: var(--muted); font-size: 8px; }
.calendar-summary strong { margin: 7px 0 3px; color: var(--lime); font: 700 24px "Space Grotesk"; }
.calendar-summary small { color: #716e62; font-size: 7px; }
.calendar-summary .streak { background: #211d08; border-color: #4b431e; }
.platform-filter { max-width: 1100px; margin: 0 auto 13px; display: flex; gap: 7px; flex-wrap: wrap; }
.platform-filter button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; color: #aaa595; background: #111; font-size: 8px; }
.platform-filter button.active { border-color: var(--lime); color: #111; background: var(--lime); font-weight: 800; }
.platform-dot { width: 7px; height: 7px; border-radius: 50%; background: #777; }
.platform-dot.tiktok, .publication.tiktok i { background: #45f3e7; }
.platform-dot.instagram, .publication.instagram i { background: #ed4a9b; }
.platform-dot.youtube, .publication.youtube i { background: #f04444; }
.platform-dot.facebook, .publication.facebook i { background: #2f7df6; }
.platform-dot.snapchat, .publication.snapchat i { background: #ffef38; }
.platform-dot.pinterest, .publication.pinterest i { background: #e60023; }
.platform-dot.linkedin, .publication.linkedin i { background: #0a66c2; }
.platform-dot.x, .publication.x i { background: #f5f5f5; }
.platform-dot.twitch, .publication.twitch i { background: #9146ff; }
.platform-dot.discord, .publication.discord i { background: #5865f2; }
.platform-dot.threads, .publication.threads i { background: #d9d9d9; }
.platform-dot.shop, .publication.shop i { background: #54d17a; }
.platform-dot.other, .publication.other i { background: #8b79ff; }
.content-calendar { max-width: 1100px; margin: auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0e0e0e; }
.calendar-head { min-height: 74px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); text-align: center; }
.calendar-head button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #171717; }
.calendar-head span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.2px; }
.calendar-head h3 { margin: 4px 0 0; font-size: 16px; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-days > article { min-height: 230px; border-right: 1px solid var(--line); padding: 9px; }
.calendar-days > article:last-child { border-right: 0; }
.calendar-days article > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-days header span { color: #777368; font-size: 7px; font-weight: 800; }
.calendar-days header strong { width: 25px; height: 25px; display: grid; place-items: center; font-size: 10px; }
.calendar-days article.today header strong { border-radius: 50%; color: #111; background: var(--lime); }
.publication { padding: 10px; border: 1px solid #343229; border-radius: 10px; background: #181818; position: relative; }
.publication i { display: block; width: 17px; height: 3px; margin-bottom: 8px; border-radius: 99px; }
.publication small, .publication b, .publication span { display: block; }
.publication small { color: #7e796b; font-size: 6px; }
.publication b { margin: 6px 0 12px; font-size: 8px; line-height: 1.35; }
.publication span { color: var(--lime); font-size: 6px; font-weight: 800; }
.publication em { display: block; margin-top: 6px; color: #8f8a78; font-size: 6px; font-style: normal; line-height: 1.35; }
.publication.hidden { display: none; }
.empty-day { padding-top: 35px; color: #4f4c43; text-align: center; font-size: 7px; }
.day-add { width: 100%; border: 1px dashed #3c392d; border-radius: 10px; padding: 12px 5px; background: transparent; color: #777264; font-size: 7px; }
.day-add.compact { margin-top: 8px; padding: 8px 5px; }
.tracking-panel { max-width: 1100px; margin: 15px auto 0; padding: 19px; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 25px; border: 1px solid #45401e; border-radius: 15px; background: #1b190b; }
.tracking-panel > div:first-child > span { color: var(--lime); font-size: 7px; font-weight: 900; letter-spacing: 1.2px; }
.tracking-panel h3 { margin: 5px 0 2px; font-size: 13px; }
.tracking-panel p { margin: 0; color: var(--muted); font-size: 8px; }
.tracking-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tracking-steps span { padding-top: 9px; border-top: 3px solid #3c392d; color: #6f6b5e; font-size: 7px; }
.tracking-steps span.done { border-color: var(--lime); color: #aaa47f; }
.tracking-steps span.current { border-color: var(--lime); color: var(--lime); font-weight: 800; }
.tracking-panel > button { border: 0; background: transparent; color: var(--lime); font-size: 8px; font-weight: 800; }
.publication-modal { position: fixed; inset: 0; z-index: 45; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.publication-modal.show { display: grid; }
.publication-modal-card { width: min(560px, 100%); padding: 28px; border: 1px solid #48411e; border-radius: 20px; background: #131313; position: relative; }
.publication-modal-card > span { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.publication-modal-card h2 { margin: 5px 0; font-size: 22px; }
.publication-modal-card > p { margin: 0 0 20px; color: var(--muted); font-size: 9px; }
.publication-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0 20px; }
.publication-modal-card input[type="date"], .publication-modal-card input[type="time"] { min-height: 44px; font-size: 13px; color-scheme: dark; cursor: text; }
.quick-field-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.quick-field-actions button { border: 1px solid #39351f; border-radius: 999px; background: #0d0d0d; color: #d8d1b8; padding: 7px 9px; font-size: 8px; font-weight: 800; cursor: pointer; }
.quick-field-actions button:hover { border-color: var(--lime); color: #111; background: var(--lime); }
.quick-field-actions [data-best-time] { border-color: #7a6810; color: #111; background: var(--lime); }
.best-time-hint { display: block; margin-top: 7px; color: #777264; font-size: 7px; line-height: 1.35; }
.publication-close { position: absolute; right: 16px; top: 13px; border: 0; color: #aaa; background: transparent; font-size: 23px; }
.save-publication { width: 100%; }

.modal { position: fixed; inset: 0; background: rgba(24, 25, 20, .72); backdrop-filter: blur(6px); z-index: 30; display: none; place-items: center; padding: 20px; }
.modal.show { display: grid; }
.modal-card { background: #151515; border: 1px solid var(--line); border-radius: 22px; padding: 35px; width: min(430px, 100%); text-align: center; position: relative; }
.close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 24px; color: #96998f; }
.magic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--lime); margin: auto; font-size: 28px; }
.modal h2 { font: 700 22px "Space Grotesk", "DM Sans", sans-serif; margin-bottom: 7px; }
.modal p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.generation-progress { height: 8px; background: #eceee6; border-radius: 99px; overflow: hidden; margin: 24px 0 10px; }
.generation-progress span { display: block; height: 100%; width: 10%; background: var(--lime-dark); transition: width 1s; }
.modal small { color: #777a70; }

.character-builder { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); display: none; place-items: center; padding: 20px; overflow-y: auto; }
.character-builder.show { display: grid; }
.builder-card { width: min(850px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; position: relative; border: 1px solid #3a3520; border-radius: 24px; background: #121212; box-shadow: 0 25px 90px rgba(0,0,0,.65); padding: 30px; }
.builder-close { position: absolute; top: 16px; right: 18px; border: 0; background: transparent; color: #9d9989; font-size: 25px; z-index: 2; }
.builder-head { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.builder-logo { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); color: #111; display: grid; place-items: center; font-size: 22px; font-weight: 900; transform: rotate(-4deg); }
.builder-head span { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: 1.8px; }
.builder-head h2 { margin: 3px 0; font: 700 23px "Space Grotesk", sans-serif; }
.builder-head p { margin: 0; color: var(--muted); font-size: 10px; }
.builder-steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin: 27px 0; }
.builder-steps span { color: #6f6c60; font-size: 9px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.builder-steps span b { width: 23px; height: 23px; border-radius: 50%; background: #282820; display: grid; place-items: center; }
.builder-steps span.active { color: var(--ink); }
.builder-steps span.active b { color: #111; background: var(--lime); }
.builder-steps i { display: block; height: 1px; background: #333229; }
.builder-page { display: none; }
.builder-page.active { display: block; }
.builder-page > label, .save-character-form label { font-size: 11px; }
.builder-textarea { position: relative; }
.builder-textarea textarea { min-height: 145px; font-size: 13px; }
.builder-textarea > span { position: absolute; right: 12px; bottom: 10px; color: #777369; font-size: 9px; }
.description-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.description-help strong { font-size: 9px; color: #bdb8a4; }
.description-help span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: #918d7e; font-size: 8px; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.quick-prompts button { border: 1px solid #403b22; background: #1d1a0a; color: #d0c99f; border-radius: 8px; padding: 7px 9px; font-size: 8px; }
.builder-error { display: none; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #713b3b; background: #2a1010; color: #ffb3b3; border-radius: 9px; font-size: 9px; line-height: 1.45; }
.builder-error.show { display: block; }
.builder-primary { border: 0; background: var(--lime); color: #111; border-radius: 11px; padding: 12px 16px; font-size: 10px; font-weight: 800; }
.builder-primary small { margin-left: 10px; color: #63540e; }
.generate-character { width: 100%; }
.builder-page-title { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 15px; }
.builder-page-title h3 { margin: 0; font-size: 16px; }
.builder-page-title p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.regenerate-character { border: 1px solid var(--line); background: #0e0e0e; color: #bbb6a2; border-radius: 9px; padding: 8px 10px; font-size: 9px; }
.character-proposals { display: grid; grid-template-columns: minmax(0, 430px); gap: 12px; }
.proposal { border: 1px solid var(--line); background: #0d0d0d; color: var(--ink); border-radius: 15px; padding: 8px; text-align: left; position: relative; }
.proposal-check { display: none; position: absolute; top: 14px; right: 14px; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); color: #111; place-items: center; font-size: 10px; z-index: 2; }
.proposal.active { border-color: var(--lime-dark); box-shadow: inset 0 0 0 1px var(--lime-dark); }
.proposal.active .proposal-check { display: grid; }
.generated-fruit { height: 245px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; position: relative; margin-bottom: 10px; }
.generated-fruit::before { content: ""; width: 105px; height: 135px; border-radius: 48% 48% 42% 42%; background: #ec234b; position: absolute; box-shadow: inset -16px -12px 25px rgba(90,0,22,.35), 0 18px 35px rgba(0,0,0,.35); }
.generated-fruit::after { content: ""; width: 70px; height: 36px; background: #4f9e39; clip-path: polygon(50% 0,63% 38%,100% 20%,76% 58%,95% 86%,57% 71%,50% 100%,42% 70%,5% 88%,23% 56%,0 20%,38% 37%); position: absolute; top: 40px; }
.generated-fruit b { z-index: 1; color: white; font-size: 34px; text-shadow: 0 3px 10px #62001c; }
.variant-one { background: radial-gradient(circle at 50% 35%, #ffdf72, #3d2105 70%); }
.variant-two { background: radial-gradient(circle at 50% 30%, #ffb7ce, #402036 70%); }
.variant-two::before { width: 120px; height: 120px; border-radius: 50%; background: #ff315d; }
.variant-three { background: radial-gradient(circle at 50% 30%, #bababa, #181818 72%); }
.variant-three::before { height: 150px; width: 95px; background: #b51035; }
.proposal strong, .proposal small { display: block; margin: 0 5px; }
.proposal .generated-image { width: 100%; height: 245px; border-radius: 11px; object-fit: cover; margin-bottom: 10px; background: #090909; }
.proposal strong { font-size: 10px; }
.proposal small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.builder-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 18px; }
.builder-back, .builder-secondary { border: 1px solid var(--line); background: #0d0d0d; color: #bdb8a5; border-radius: 10px; padding: 11px 14px; font-size: 9px; font-weight: 700; }
.save-character-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px; }
.selected-character-preview { background: #0b0b0b; border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.selected-character-preview .generated-fruit { height: 340px; }
.selected-character-preview .generated-image { width: 100%; height: 340px; border-radius: 11px; object-fit: cover; margin-bottom: 10px; }
.selected-character-preview > span { color: var(--lime); font-size: 8px; font-weight: 700; }
.save-character-form { padding: 15px 0; }
.success-label { display: inline-block; padding: 6px 8px; border-radius: 99px; background: #222909; color: var(--lime); font-size: 8px; font-weight: 700; }
.save-character-form h3 { font-size: 20px; margin: 16px 0; }
.save-character-form input { width: 100%; border: 1px solid var(--line); background: #090909; color: var(--ink); border-radius: 10px; padding: 12px; outline: none; }
.save-character-form input:focus { border-color: var(--lime-dark); }
.identity-note { margin: 14px 0; padding: 12px; border: 1px solid #39351d; background: #1d1a09; border-radius: 10px; }
.identity-note b { color: var(--lime); font-size: 9px; }
.identity-note p { color: #aaa58f; font-size: 8px; line-height: 1.5; margin: 5px 0 0; }
.save-character { width: 100%; }
.builder-success { text-align: center; padding: 35px 10px 10px; }
.success-icon { width: 62px; height: 62px; margin: auto; border-radius: 50%; background: var(--lime); color: #111; display: grid; place-items: center; font-size: 28px; font-weight: 900; }
.builder-success h2 { margin-bottom: 8px; }
.builder-success p { color: var(--muted); font-size: 11px; }
.builder-success p strong { color: var(--ink); }
.success-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.library-picker { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); display: none; place-items: center; padding: 20px; }
.library-picker.show { display: grid; }
.library-picker-card { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; position: relative; border: 1px solid #3a3520; border-radius: 22px; background: #121212; padding: 28px; }
.library-picker-close { position: absolute; top: 14px; right: 17px; border: 0; background: transparent; color: #a8a391; font-size: 25px; }
.library-picker-head span { color: var(--lime); font-size: 8px; font-weight: 800; letter-spacing: 1.7px; }
.library-picker-head h2 { margin: 5px 0; font-size: 23px; }
.library-picker-head p { margin: 0; color: var(--muted); font-size: 10px; }
.library-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.library-choice { border: 1px solid var(--line); background: #0d0d0d; color: var(--ink); border-radius: 14px; padding: 8px; position: relative; text-align: left; }
.library-choice.selected { border-color: var(--lime-dark); background: #211d08; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.library-choice .choice-check { display: none; position: absolute; top: 13px; right: 13px; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); color: #111; place-items: center; font-size: 10px; z-index: 2; }
.library-choice.selected .choice-check { display: grid; }
.library-choice > img, .library-choice > .generated-fruit, .library-fruit-placeholder { width: 100%; height: 190px; border-radius: 10px; object-fit: cover; margin: 0 0 9px; }
.library-fruit-placeholder { display: grid; place-items: center; background: radial-gradient(circle, #ff516d, #740019); color: white; font-size: 42px; font-weight: 900; }
.library-choice strong, .library-choice small { display: block; margin: 0 4px; }
.library-choice strong { font-size: 11px; }
.library-choice small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.library-picker-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.library-picker-footer > span { color: var(--muted); font-size: 9px; }
.library-picker-footer > span strong { color: var(--lime); }

.action-modal,.video-modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.84); backdrop-filter: blur(9px); }
.action-modal.show,.video-modal.show { display: grid; }
.action-modal-card,.video-modal-card { width: min(470px,100%); position: relative; padding: 30px; border: 1px solid #3c3823; border-radius: 22px; background: #121212; box-shadow: 0 25px 90px rgba(0,0,0,.65); }
.action-modal-close,.video-modal-close { position: absolute; top: 13px; right: 16px; border: 0; color: #aaa58f; background: transparent; font-size: 25px; }
.action-modal-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #111; background: var(--lime); font: 900 24px "Space Grotesk",sans-serif; }
.action-modal-label { display: block; margin-top: 20px; color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.4px; }
.action-modal-title { margin: 7px 0; font-size: 23px; }
.action-modal-description,.action-modal-note { color: var(--muted); font-size: 10px; line-height: 1.55; }
.action-modal-summary { margin: 20px 0 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 12px; background: #0b0b0b; }
.action-modal-summary span { font-weight: 800; }
.action-modal-summary strong { color: var(--lime); font-size: 18px; }
.action-modal-actions,.video-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.action-modal-actions button,.video-modal-actions button { min-height: 43px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #1d1d1d; font-weight: 800; }
.action-modal-actions .action-modal-confirm,.video-modal-actions .video-publish { border-color: var(--lime); color: #111; background: var(--lime); }
.video-modal-card { width: min(520px,100%); }
.video-modal-preview { height: 430px; position: relative; overflow: hidden; border-radius: 15px; background: #222; }
.video-modal-preview img, .video-modal-preview > .library-fruit-placeholder, .video-modal-preview > .generated-fruit, .video-modal-preview > .studio-empty-visual { width: 100%; height: 100%; object-fit: cover; transition: transform 5s linear,filter .3s; margin: 0; border-radius: 0; }
.video-modal.playing .video-modal-preview img { transform: scale(1.08); filter: brightness(.85); }
.video-modal-preview > button { position: absolute; inset: 0; width: 58px; height: 58px; margin: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.video-modal-preview p { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; padding: 0 22px; color: white; text-align: center; font-weight: 900; text-shadow: 0 2px 7px #000; }
.video-modal-card h2 { margin: 18px 0 4px; }
.video-modal-card > span { color: var(--muted); font-size: 10px; }
.studio-toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; max-width: calc(100vw - 30px); padding: 12px 18px; border: 1px solid #4b4521; border-radius: 99px; color: #111; background: var(--lime); box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 10px; font-weight: 900; opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: .25s; }
.studio-toast.show { opacity: 1; transform: translate(-50%,0); }
.viral-hashtags button.selected { color: #111; background: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.notification-bell { width: 39px; height: 39px; position: relative; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #151515; font-size: 17px; }
.notification-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #111; border-radius: 99px; color: #111; background: var(--lime); font-size: 8px; }
.notification-inbox,.billing-account { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #111; }
.notification-inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 17px; }
.notification-inbox-head span,.billing-account > div > span { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1.3px; }
.notification-inbox-head h3,.billing-account h3 { margin: 5px 0 0; }
.notification-inbox-head button,.billing-account-actions button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #1a1a1a; font-weight: 800; }
.notification-inbox-list { display: grid; gap: 9px; }
.inbox-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #0b0b0b; }
.inbox-item.unread { border-color: #4b4521; background: #171508; }
.inbox-item > b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #111; background: var(--lime); }
.inbox-item strong,.inbox-item small { display: block; }
.inbox-item small,.inbox-item time,.empty-state { color: var(--muted); font-size: 9px; }
.billing-account { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; margin-bottom: 24px; }
.billing-account p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.billing-account-actions { display: flex; gap: 8px; }
.billing-account-actions .export-invoices { border-color: var(--lime-dark); color: #111; background: var(--lime); }
.invoice-list { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 17px; border-top: 1px solid var(--line); }
.invoice-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 11px 13px; border-radius: 10px; background: #0b0b0b; }
.invoice-row strong,.invoice-row small { display: block; }
.invoice-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.invoice-row > b { color: var(--lime); }
.invoice-row > span { color: #8edc80; font-size: 8px; font-weight: 900; text-transform: uppercase; }
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: translateX(0); }
  main { margin-left: 0; }
  .mobile-menu { display: block; border: 0; background: transparent; font-size: 22px; }
  .creator-grid { grid-template-columns: 1fr; }
  .preview-column { position: static; max-width: 420px; width: 100%; margin: auto; }
  .cards-grid, .project-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .assistant-layout { grid-template-columns: 1fr; }
  .smart-brief { grid-template-columns:1fr; }
  .assistant-form { position: static; }
  .series-layout,.viral-layout { grid-template-columns: 1fr; }
  .notification-layout { grid-template-columns: 1fr; }
  .notification-preview { position: static; }
  .series-builder,.viral-settings { position: static; }
  .calendar-days { grid-template-columns: repeat(2, 1fr); }
  .calendar-days > article { border-bottom: 1px solid var(--line); }
  .tracking-panel { grid-template-columns: 1fr; }
  .rewards-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-growth { grid-template-columns:1fr; align-items:stretch; }
  .dashboard-growth button { width:100%; }
  .create-value-banner { grid-template-columns:1fr; }
  .create-value-pills { justify-content:flex-start; max-width:none; }
  .template-pro-tools,.template-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  html, body, main { max-width: 100%; overflow-x: hidden; }
  header { height: 94px; padding: 20px; }
  h1 { font-size: 21px; }
  .help span { display: none; }
  .floating-support { right: 13px; bottom: 13px; padding: 8px; }
  .floating-support > div { display: none; }
  .page { padding: 22px 15px 45px; }
  .dashboard-hero { padding: 22px 18px; align-items: stretch; flex-direction: column; }
  .dashboard-hero h2 { font-size: 23px; }
  .dashboard-create { width: 100%; }
  .dashboard-stats,.dashboard-recent-grid { grid-template-columns: 1fr; }
  .dashboard-growth { padding:18px; }
  .image-creator-layout { grid-template-columns: 1fr; }
  .image-preview-panel { position: static; }
  .image-preview-frame { min-height: 420px; }
  .saved-images-grid { grid-template-columns: 1fr; }
  .section-mini-head { align-items: flex-start; flex-direction: column; }
  .create-shortcuts { grid-template-columns: 1fr; }
  .create-value-banner { padding:18px; }
  .create-value-banner h2 { font-size:21px; }
  .create-value-pills b { white-space:normal; }
  .form-panel { padding: 20px 16px; max-width: 100%; overflow: hidden; }
  .creator-grid, .creator-grid > *, .option-row, .style-row { min-width: 0; max-width: 100%; }
  .format-label { align-items: start; flex-direction: column; gap: 3px; }
  .option-row { grid-template-columns: repeat(2, 1fr); }
  .option, .style { min-width: 0; }
  .option strong, .option small, .style span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .two-cols { grid-template-columns: 1fr; }
  .art-heading { align-items: start; flex-direction: column; gap: 3px; }
  .style-row { grid-template-columns: repeat(2, 1fr); }
  .atmosphere-options { grid-template-columns: repeat(3, 1fr); }
  .art-settings-grid { grid-template-columns: 1fr; gap: 0; }
  .audio-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .voice-off { align-self: start; }
  .gender-options { grid-template-columns: 1fr 1fr; }
  .voice-characters { grid-template-columns: 1fr; }
  .voice-age-options { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .project-grid, .pricing-grid { grid-template-columns: 1fr; }
  .assistant-fields, .publication-form-grid { grid-template-columns: 1fr; }
  .smart-brief-form { grid-template-columns:1fr; }
  .brief-field:first-child,.build-smart-brief { grid-column:1; }
  .series-field-grid,.series-character-options,.viral-mini-grid { grid-template-columns: 1fr; }
  .notification-email-card { grid-template-columns: 43px 1fr; }
  .test-notification { grid-column: 1 / -1; width: 100%; }
  .episode-card { grid-template-columns: 28px 72px minmax(0,1fr); }
  .episode-use { grid-column: 2 / -1; justify-self: end; }
  .season-header,.viral-score { align-items: flex-start; grid-template-columns: 1fr; }
  .season-header { flex-direction: column; }
  .season-actions,.viral-actions { align-items: stretch; flex-direction: column; }
  .season-actions button,.viral-actions button { width: 100%; }
  .trial-onboarding { grid-template-columns: auto 1fr; }
  .trial-onboarding button { grid-column: 1 / -1; width: 100%; }
  .assistant-layout, .calendar-summary, .content-calendar, .tracking-panel { min-width: 0; max-width: 100%; }
  .calendar-summary { grid-template-columns: 1fr 1fr; }
  .rewards-overview { grid-template-columns: 1fr; }
  .referral-head { grid-template-columns: 1fr; }
  .gift-orbit { width: 68px; height: 68px; }
  .referral-share { grid-template-columns: 1fr 1fr; }
  .referral-steps { grid-template-columns: 1fr; gap: 10px; }
  .referral-steps > i { display: none; }
  .loyalty-heading { align-items: flex-start; flex-direction: column; }
  .loyalty-track { grid-template-columns: 1fr 1fr; row-gap: 25px; }
  .loyalty-line { display: none; }
  .calendar-days { grid-template-columns: 1fr; }
  .calendar-days > article { min-height: 155px; border-right: 0; }
  .idea-results-head { align-items: flex-start; flex-direction: column; }
  .assistant-badge { align-self: flex-start; }
  .billing-switch { align-self: start; }
  .pricing-grid .popular { transform: none; }
  .recharge-packs { grid-template-columns: 1fr; }
  .custom-recharge { grid-template-columns: 1fr; gap: 20px; padding: 20px 15px; }
  .recharge-heading h2 { font-size: 21px; padding: 0 12px; }
  .section-heading { align-items: start; gap: 15px; flex-direction: column; }
  .video-preview { height: 520px; }
  .character-builder { padding: 10px; overflow-x: hidden; }
  .builder-card { width: calc(100vw - 20px); max-width: calc(100vw - 20px); min-width: 0; padding: 22px 16px; max-height: calc(100vh - 20px); overflow-x: hidden; }
  .builder-page, .save-character-layout, .save-character-form, .selected-character-preview { min-width: 0; max-width: 100%; }
  .builder-head { grid-template-columns: 42px 1fr; }
  .builder-logo { width: 42px; height: 42px; }
  .builder-head h2 { font-size: 19px; padding-right: 25px; }
  .builder-steps span { font-size: 0; }
  .builder-steps span b { font-size: 9px; }
  .character-proposals { grid-template-columns: 1fr; }
  .generated-fruit { height: 220px; }
  .proposal .generated-image { height: 260px; }
  .save-character-layout { grid-template-columns: 1fr; }
  .selected-character-preview .generated-fruit { height: 260px; }
  .selected-character-preview .generated-image { height: 260px; }
  .success-actions, .builder-actions { align-items: stretch; flex-direction: column; }
  .cast-character { grid-template-columns: 46px 1fr auto; }
  .cast-character img, .cast-character .generated-fruit { width: 46px; height: 46px; min-height: 46px; }
  .cast-character .make-primary { grid-column: 2; justify-self: start; }
  .cast-character .remove-cast { grid-column: 3; grid-row: 2; }
  .library-picker { padding: 10px; }
  .library-picker-card { width: calc(100vw - 20px); max-width: calc(100vw - 20px); padding: 23px 16px; overflow-x: hidden; }
  .library-picker-grid { grid-template-columns: 1fr; }
  .library-choice { min-width: 0; }
  .library-choice > img, .library-choice > .generated-fruit, .library-fruit-placeholder { height: 220px; }
  .library-picker-footer { align-items: stretch; flex-direction: column; }
  .video-modal-preview { height: 54vh; min-height: 330px; }
  .action-modal-actions,.video-modal-actions { grid-template-columns: 1fr; }
  .billing-account { grid-template-columns: 1fr; }
  .billing-account-actions { flex-direction: column; }
  .invoice-list { grid-column: 1; }
  .notification-inbox-head { align-items: flex-start; flex-direction: column; }
  .inbox-item { grid-template-columns: 38px 1fr; }
  .inbox-item time { grid-column: 2; }
  .template-detail-metrics,.publish-pack-items { grid-template-columns: 1fr; }
  .publish-pack-preview { grid-template-columns: 76px 1fr; }
  .publish-pack-preview img { width: 76px; height: 102px; }
  .template-card { grid-template-columns: 125px 1fr; }
  .template-visual { min-height: 230px; }
}
