:root {
  --bg: #0b0e13;
  --sidebar: #0d1016;
  --surface: #12161e;
  --surface-2: #181d27;
  --surface-3: #202632;
  --line: #292f3a;
  --line-soft: #20252e;
  --text: #f5f7f2;
  --muted: #939baa;
  --muted-2: #6f7785;
  --accent: #d9ff57;
  --accent-ink: #101408;
  --violet: #806dff;
  --coral: #ff7665;
  --cyan: #66e4ea;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", var(--font-body);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
.svg-sprite { position: fixed; width: 0; height: 0; pointer-events: none; }
.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon use[href="#i-home"], .icon use[href="#i-play"], .icon use[href="#i-spark"] { fill: currentColor; stroke: currentColor; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 236px; display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto; background: var(--sidebar); border-right: 1px solid var(--line-soft); }
.brand-lockup { display: flex; align-items: center; gap: 9px; padding: 0 9px 22px; font: 800 17px/1 var(--font-display); letter-spacing: -.5px; }
.brand-lockup > span:last-child { white-space: nowrap; }
.brand-mark { position: relative; width: 29px; height: 29px; display: inline-block; transform: rotate(-4deg); }
.brand-mark span:first-child { position: absolute; inset: 1px 8px 1px 0; border-radius: 7px 3px 3px 7px; background: var(--accent); clip-path: polygon(0 0, 100% 16%, 100% 84%, 0 100%); }
.brand-mark span:last-child { position: absolute; right: 0; top: 7px; width: 10px; height: 15px; border-radius: 2px 6px 6px 2px; background: var(--coral); }
.workspace-switcher { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px; margin-bottom: 14px; background: #151921; border: 1px solid var(--line-soft); border-radius: 12px; text-align: left; }
.workspace-switcher:hover { border-color: #353d49; background: #181d26; }
.workspace-card { cursor: default; }
.workspace-card:hover { border-color: var(--line-soft); background: #151921; }
.workspace-switcher > span:nth-child(2), .profile-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.workspace-switcher strong, .profile-row strong { font-size: 13px; font-weight: 600; }
.workspace-switcher small, .profile-row small { color: var(--muted); font-size: 11px; }
.workspace-switcher > .icon { width: 15px; color: var(--muted); }
.workspace-avatar, .profile-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; color: #221b45; background: #b7aaff; font-size: 11px; font-weight: 800; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { margin: 14px 10px 6px; color: #5f6877; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-item { position: relative; width: 100%; height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 10px; color: #8992a0; background: transparent; text-align: left; font-weight: 500; }
.nav-item .icon { width: 17px; }
.nav-item span:nth-child(2) { flex: 1; }
.nav-item:hover { color: #d9dee5; background: #141820; }
.nav-item.active { color: var(--text); background: #1b202a; box-shadow: inset 0 0 0 1px #242a35; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item.active .icon { color: var(--accent); }
.nav-count { min-width: 20px; padding: 1px 6px; border-radius: 6px; background: #252b35; color: #8992a0; font-size: 10px; text-align: center; }
.pro-mini { flex: 0 0 auto !important; padding: 2px 5px; border-radius: 4px; color: var(--accent-ink); background: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.sidebar-bottom { margin-top: auto; }
.usage-card { padding: 13px; border: 1px solid #303642; border-radius: 14px; background: linear-gradient(145deg, #181d26, #13171e); }
.usage-icon { width: 29px; height: 29px; display: grid; place-items: center; float: left; margin-right: 9px; border-radius: 8px; color: var(--accent-ink); background: var(--accent); }
.usage-icon .icon { width: 14px; }
.usage-heading { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1px; }
.usage-heading strong { font-size: 12px; }
.usage-heading span { color: var(--muted); font-size: 10px; }
.meter { height: 4px; overflow: hidden; clear: both; margin: 12px 0 9px; border-radius: 99px; background: #2b3039; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter .usage-level { width: 66%; }
.usage-card p { margin: 0 0 8px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.text-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--accent); background: transparent; font-size: 12px; font-weight: 700; }
.text-button .icon { width: 13px; height: 13px; }
.profile-row { width: 100%; display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px; border: 0; border-radius: 11px; background: transparent; text-align: left; }
.profile-row:hover { background: #151921; }
.profile-row > .icon { width: 15px; color: var(--muted); }
.profile-avatar { border-radius: 50%; background: #dca8ff; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; padding: 2px 8px 0; }
.legal-links a { color: #68717f; font-size: 8px; text-decoration: none; }
.legal-links a:hover { color: var(--accent); }

.main-area { min-height: 100vh; margin-left: 236px; background: radial-gradient(circle at 86% -10%, rgba(128,109,255,.08), transparent 28%), var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid rgba(41,47,58,.8); background: rgba(11,14,19,.88); backdrop-filter: blur(16px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left h1 { margin: 0; font: 700 17px/1.15 var(--font-display); }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar-auth-actions { display: flex; align-items: center; gap: 7px; }
.topbar-auth-actions .button { white-space: nowrap; }
.topbar-account { padding: 3px 12px 3px 5px; }
.topbar-account .profile-avatar { width: 30px; height: 30px; }
.search-box { width: 222px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #10141a; color: var(--muted); }
.search-box .icon { width: 15px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-box input::placeholder { color: #68717e; }
.search-box kbd { padding: 2px 5px; border: 1px solid #303641; border-radius: 5px; color: #6d7582; background: #181c24; font: 9px var(--font-body); }
.icon-button { position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #10141a; color: #b7bdc7; }
.icon-button:hover { border-color: #414957; color: white; background: #181d25; }
.icon-button.ghost { border-color: transparent; background: transparent; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 1px solid var(--bg); border-radius: 50%; background: var(--coral); }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: transform .16s ease, background .16s ease, border .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button-small { min-height: 38px; font-size: 12px; }
.button-large { min-height: 48px; font-size: 14px; }
.button-primary { color: var(--accent-ink); background: var(--accent); box-shadow: 0 7px 24px rgba(217,255,87,.08); }
.button-primary:hover { background: #e4ff83; }
.button-secondary { color: #dfe3e8; background: #1d222c; border-color: #303744; }
.button-secondary:hover { background: #252b36; }
.button-light { min-height: 37px; color: #10140b; background: #f0f3ea; }
.button-ghost-light { min-height: 38px; border-color: rgba(255,255,255,.24); color: white; background: rgba(255,255,255,.06); }
.button-quiet { color: #adb4be; background: transparent; border-color: var(--line); }
.full-width { width: 100%; }
.mobile-menu { display: none; }

.page { max-width: 1480px; margin: 0 auto; padding: 30px clamp(22px, 3vw, 44px) 55px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.welcome-row h2 { margin: 0 0 6px; font: 700 clamp(25px,2.3vw,35px)/1.14 var(--font-display); letter-spacing: -1.2px; }
.welcome-row h2 span { color: var(--accent); }
.welcome-row p { margin: 0; color: var(--muted); font-size: 14px; }
.week-chip { display: flex; align-items: center; gap: 10px; min-width: 145px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 11px; background: #11151c; }
.week-chip > span:last-child { display: flex; flex-direction: column; }
.week-chip small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.week-chip strong { font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(217,255,87,.08); }

.import-card { position: relative; min-height: 318px; display: grid; grid-template-columns: minmax(0,1.13fr) minmax(340px,.87fr); overflow: hidden; border: 1px solid #33394a; border-radius: 24px; background: radial-gradient(circle at 87% 12%, rgba(217,255,87,.18), transparent 24%), radial-gradient(circle at 65% 90%, rgba(128,109,255,.22), transparent 33%), linear-gradient(120deg, #181d29 0%, #1b2030 55%, #171c27 100%); box-shadow: 0 28px 80px rgba(0,0,0,.22); }
.import-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, black, transparent 80%); }
.import-content { position: relative; z-index: 2; align-self: center; padding: 42px clamp(32px,4vw,58px); }
.pill { width: max-content; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(217,255,87,.26); border-radius: 99px; color: var(--accent); background: rgba(217,255,87,.07); font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.pill .icon { width: 11px; height: 11px; }
.import-content h3 { max-width: 590px; margin: 15px 0 8px; font: 700 clamp(27px,3vw,41px)/1.05 var(--font-display); letter-spacing: -1.7px; }
.import-content > p { max-width: 600px; margin: 0 0 21px; color: #aeb6c2; font-size: 13px; }
.url-import { max-width: 630px; height: 50px; display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 15px; border: 1px solid #4a5261; border-radius: 13px; background: rgba(8,10,15,.62); box-shadow: 0 14px 30px rgba(0,0,0,.17); }
.url-import:focus-within { border-color: rgba(217,255,87,.7); box-shadow: 0 0 0 3px rgba(217,255,87,.08); }
.url-import > .icon { width: 17px; color: var(--muted); }
.url-import input { min-width: 0; flex: 1; border: 0; outline: none; color: white; background: transparent; font-size: 12px; }
.url-import input::placeholder { color: #727b89; }
.url-import-help { display: block; max-width: 630px; margin: 7px 2px 0; color: #858e9b; font-size: 9.5px; line-height: 1.4; }
.import-actions { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.import-actions .button { min-height: 37px; font-size: 11px; }
.import-actions > span { margin-left: 3px; color: #737c89; font-size: 9.5px; }
.import-visual { position: relative; min-height: 318px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 180px; height: 180px; right: 20px; top: 18px; background: rgba(217,255,87,.16); }
.orb-two { width: 150px; height: 150px; left: 5%; bottom: -45px; background: rgba(128,109,255,.25); }
.video-stack { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 15px; box-shadow: 0 26px 45px rgba(0,0,0,.35); }
.stack-back { width: 144px; height: 220px; right: 8%; top: 22px; transform: rotate(8deg); background: linear-gradient(160deg, #c9ff5b 0 48%, #161a22 48%); }
.stack-front { width: 170px; height: 252px; left: 8%; top: 36px; transform: rotate(-4deg); background: linear-gradient(#5c4ed1, #292351); }
.mini-caption { position: absolute; top: 20px; left: 13px; color: #121709; font: 800 16px/1.02 var(--font-display); letter-spacing: -.7px; }
.mini-caption em { color: #394017; font-style: normal; font-size: 10px; }
.demo-scene { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 52% 20%, #9d8cff, transparent 25%), linear-gradient(#332978, #17172a); }
.person { position: absolute; bottom: -10px; width: 82px; height: 154px; border-radius: 45px 45px 10px 10px; background: #181522; }
.person::before { content: ""; position: absolute; top: -18px; left: 19px; width: 46px; height: 53px; border-radius: 45% 45% 40% 42%; background: #bd7955; box-shadow: inset 0 13px #271c27; }
.person-left { left: -17px; transform: rotate(5deg); }
.person-right { right: -20px; transform: rotate(-4deg) scale(.95); }
.person-right::before { background: #764c34; box-shadow: inset 0 12px #0f0d13; }
.mic { position: absolute; z-index: 2; left: 77px; bottom: 60px; width: 14px; height: 44px; border-radius: 10px; background: #0d0d10; box-shadow: 0 34px 0 -5px #0d0d10; transform: rotate(-8deg); }
.mic::after { content: ""; position: absolute; width: 38px; height: 2px; top: 35px; left: -8px; transform: rotate(68deg); background: #111; }
.caption-chip { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 22px; padding: 7px 6px; color: white; font: 800 12px/1.1 var(--font-display); text-align: center; text-shadow: 0 1px 3px #000; }
.caption-chip span { color: var(--accent); }
.play-badge, .hover-play { position: absolute; z-index: 5; display: grid; place-items: center; border-radius: 50%; color: #111; background: white; }
.play-badge { top: 82px; left: 67px; width: 37px; height: 37px; box-shadow: 0 10px 24px rgba(0,0,0,.27); }
.play-badge .icon { width: 14px; margin-left: 2px; }
.spark-badge { position: absolute; z-index: 6; right: 22%; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: rgba(18,22,30,.9); box-shadow: 0 15px 30px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.spark-badge > .icon { width: 19px; color: var(--accent); }
.spark-badge span { display: flex; flex-direction: column; }
.spark-badge small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }
.spark-badge strong { font-size: 11px; }

.section-bar { display: flex; align-items: flex-end; justify-content: space-between; margin: 33px 0 15px; }
.section-bar h3 { margin: 0 0 2px; font: 700 17px var(--font-display); }
.section-bar p { margin: 0; color: var(--muted); font-size: 11px; }
.subtle-link { display: flex; align-items: center; gap: 3px; padding: 5px 0; border: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 600; }
.subtle-link:hover { color: var(--accent); }
.subtle-link .icon { width: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 268px; gap: 20px; align-items: stretch; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px; background: #11151b; transition: transform .18s ease, border .18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: #39414e; }
.project-thumb { position: relative; width: 100%; height: 160px; display: block; overflow: hidden; padding: 0; border: 0; text-align: left; }
.thumb-purple { background: radial-gradient(circle at 60% 20%, #8d7bf5, transparent 33%), linear-gradient(140deg, #413498, #171524); }
.thumb-orange { background: linear-gradient(145deg, #ff8c62, #ffc551); }
.platform-badge, .duration-badge { position: absolute; z-index: 4; top: 10px; padding: 3px 6px; border-radius: 5px; color: white; background: rgba(9,10,14,.62); backdrop-filter: blur(8px); font-size: 8px; font-weight: 700; }
.platform-badge { left: 10px; }
.duration-badge { right: 10px; }
.podcast-art { position: absolute; inset: 0; }
.head { position: absolute; bottom: -17px; width: 92px; height: 127px; border-radius: 43px 43px 5px 5px; background: #17131d; }
.head::before { content: ""; position: absolute; top: -26px; left: 19px; width: 55px; height: 66px; border-radius: 46% 46% 43% 43%; background: #a8694c; box-shadow: inset 0 16px #17131d; }
.head-one { left: 2%; transform: rotate(4deg); }
.head-two { right: 1%; transform: scale(.9) rotate(-4deg); }
.head-two::before { background: #704831; box-shadow: inset 0 16px #0c0d0f; }
.podcast-mic { position: absolute; left: 50%; bottom: 45px; width: 12px; height: 52px; border-radius: 8px; background: #08090b; transform: translateX(-50%); }
.podcast-mic::after { content: ""; position: absolute; width: 50px; height: 2px; background: #08090b; top: 39px; left: -20px; transform: rotate(90deg); }
.poster-caption { position: absolute; z-index: 3; left: 12px; bottom: 9px; color: white; font: 800 12px/1.05 var(--font-display); letter-spacing: -.2px; text-shadow: 0 2px 6px #09080b; }
.poster-caption strong { color: var(--accent); }
.dark-caption { color: #1d140b; text-shadow: none; }
.dark-caption strong { color: white; }
.launch-shape span { position: absolute; display: block; border: 2px solid rgba(30,20,10,.78); border-radius: 999px; }
.launch-shape span:nth-child(1) { width: 168px; height: 168px; right: -15px; top: -45px; }
.launch-shape span:nth-child(2) { width: 112px; height: 112px; right: 13px; top: -17px; background: rgba(255,255,255,.16); }
.launch-shape span:nth-child(3) { width: 54px; height: 54px; right: 42px; top: 12px; background: #262019; }
.hover-play { width: 38px; height: 38px; left: calc(50% - 19px); top: calc(50% - 19px); opacity: 0; transform: scale(.85); transition: .2s ease; }
.project-thumb:hover .hover-play { opacity: 1; transform: scale(1); }
.hover-play .icon { width: 14px; margin-left: 2px; }
.project-info { min-height: 69px; display: flex; align-items: center; gap: 8px; padding: 11px 9px 11px 13px; }
.project-info > div:first-child { min-width: 0; flex: 1; }
.project-info h4 { overflow: hidden; margin: 0 0 4px; font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.project-info p { margin: 0; color: var(--muted); font-size: 9.5px; }
.status-dot { width: 5px; height: 5px; display: inline-block; margin-right: 2px; border-radius: 50%; }
.status-dot.ready { background: var(--accent); }
.status-dot.draft { background: var(--coral); }
.project-info .icon-button { width: 30px; height: 30px; }
.new-project-card { min-height: 231px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px dashed #343b47; border-radius: 16px; color: var(--muted); background: rgba(17,21,27,.45); }
.new-project-card:hover { border-color: var(--accent); color: white; background: rgba(217,255,87,.025); }
.new-project-card > span { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid #373f4a; border-radius: 10px; color: var(--accent); background: #181d25; }
.new-project-card strong { font-size: 11.5px; }
.new-project-card small { color: #69717e; font-size: 9.5px; }
.insights-card { padding: 18px; border: 1px solid var(--line-soft); border-radius: 16px; background: #11151b; }
.insights-head { display: flex; align-items: center; justify-content: space-between; }
.insights-head h3 { margin: 0; font: 700 14px var(--font-display); }
.trend { padding: 3px 6px; border-radius: 5px; color: var(--accent); background: rgba(217,255,87,.08); font-size: 9px; font-weight: 700; }
.metric-main { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.metric-main strong { font: 700 27px var(--font-display); letter-spacing: -1px; }
.metric-main span { color: var(--muted); font-size: 9.5px; }
.privacy-flow { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin: 16px 0 2px; padding: 10px 8px; border: 1px solid #2b3240; border-radius: 10px; background: #0f1319; }
.privacy-flow > span { min-width: 0; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 6.8px; line-height: 1.25; }
.privacy-flow b { width: 15px; height: 15px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 5px; color: var(--accent-ink); background: var(--accent); font-size: 6.5px; }
.privacy-flow i { color: #555e6b; font-style: normal; font-size: 8px; }
.mini-chart { height: 62px; display: flex; align-items: end; gap: 7px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.mini-chart span { flex: 1; max-width: 18px; border-radius: 3px 3px 0 0; background: #303744; }
.mini-chart span.active { background: var(--accent); box-shadow: 0 0 18px rgba(217,255,87,.18); }
.mini-chart .bar-1 { height: 28%; }.mini-chart .bar-2 { height: 42%; }.mini-chart .bar-3 { height: 35%; }.mini-chart .bar-4 { height: 59%; }.mini-chart .bar-5 { height: 50%; }.mini-chart .bar-6 { height: 78%; }.mini-chart .bar-7 { height: 92%; }
.chart-labels { display: flex; gap: 7px; margin-top: 5px; }
.chart-labels span { flex: 1; max-width: 18px; color: #5f6875; font-size: 7px; text-align: center; }
.insight-tip { display: flex; gap: 9px; margin: 18px 0; padding: 11px; border: 1px solid #2b3240; border-radius: 11px; background: #181d26; }
.tip-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--accent-ink); background: var(--accent); }
.tip-icon .icon { width: 12px; }
.insight-tip strong { display: block; margin-bottom: 3px; font-size: 9.5px; }
.insight-tip p { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.insights-card .button { min-height: 34px; font-size: 10px; }

/* Generic sections */
.generic-hero { min-height: 190px; display: flex; align-items: flex-end; justify-content: space-between; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 84% 30%, rgba(217,255,87,.14), transparent 24%), linear-gradient(125deg,#171c25,#11151b); }
.generic-hero h2 { max-width: 580px; margin: 0 0 8px; font: 700 32px/1.1 var(--font-display); letter-spacing: -1.1px; }
.generic-hero p { max-width: 580px; margin: 0; color: var(--muted); }
.generic-hero-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: 24px; }
.generic-hero-actions .button { white-space: nowrap; }
.generic-content { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.feature-tile { min-height: 180px; padding: 20px; border: 1px solid var(--line-soft); border-radius: 15px; background: #11151b; }
.feature-tile > .icon { width: 22px; height: 22px; margin-bottom: 26px; color: var(--accent); }
.feature-tile h3 { margin: 0 0 6px; font: 700 15px var(--font-display); }
.feature-tile p { margin: 0; color: var(--muted); font-size: 11px; }
.feature-tile .button { margin-top: 16px; min-height: 34px; font-size: 10px; }

/* Functional workspace pages */
.workspace-content { grid-template-columns: repeat(12,minmax(0,1fr)); align-items: start; }
.workspace-full { grid-column: 1 / -1; }
.workspace-panel { padding: 20px; border: 1px solid var(--line-soft); border-radius: 16px; background: #11151b; }
.workspace-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workspace-panel-head h3 { margin: 0; font: 700 16px var(--font-display); }
.local-badge { padding: 3px 7px; border: 1px solid rgba(102,228,234,.2); border-radius: 6px; color: var(--cyan); background: rgba(102,228,234,.06); font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.workspace-stat-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.workspace-stat-grid article { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 17px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(145deg,#151a22,#11151b); }
.workspace-stat-grid span { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.workspace-stat-grid strong { overflow: hidden; margin: 5px 0 1px; font: 750 22px/1.15 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.workspace-stat-grid small { color: var(--muted-2); font-size: 8px; }
.workspace-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; border: 1px dashed #343b47; border-radius: 14px; color: var(--muted); text-align: center; }
.workspace-empty.compact { min-height: 160px; }
.workspace-empty > .icon { width: 25px; height: 25px; margin-bottom: 12px; color: var(--accent); }
.workspace-empty strong { color: var(--text); font-size: 12px; }
.workspace-empty p { max-width: 360px; margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.workspace-status { padding: 3px 6px; border-radius: 5px; color: #b6bdc7; background: #252b35; font-size: 7px; font-weight: 800; white-space: nowrap; }
.workspace-status.status-ready { color: var(--accent-ink); background: var(--accent); }
.workspace-status.status-posted { color: #081617; background: var(--cyan); }
.workspace-status.status-planned { color: #d7d0ff; background: rgba(128,109,255,.2); }
.workspace-form { display: flex; flex-direction: column; gap: 13px; }
.workspace-form > label, .workspace-form-grid > label, .metric-input-grid > label, .brand-color-grid > label { display: flex; flex-direction: column; gap: 6px; color: #c9ced6; font-size: 9px; font-weight: 700; }
.workspace-form input:not([type="checkbox"]):not([type="color"]), .workspace-form textarea, .workspace-form select, .workspace-filters select, .workspace-panel-head > select { width: 100%; min-height: 41px; padding: 9px 10px; border: 1px solid #303743; border-radius: 9px; outline: 0; color: var(--text); background: #0c0f14; font-size: 10px; }
.workspace-form textarea { resize: vertical; line-height: 1.5; }
.workspace-form input:focus, .workspace-form textarea:focus, .workspace-form select:focus, .workspace-filters select:focus, .workspace-panel-head > select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,255,87,.07); }
.workspace-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.workspace-form-actions { display: flex; align-items: center; gap: 9px; margin-top: 3px; }
.workspace-form-actions .button { min-height: 39px; font-size: 10px; }
.workspace-checkbox { flex-direction: row !important; align-items: flex-start; padding: 11px; border: 1px solid #2d3440; border-radius: 10px; background: #151a22; }
.workspace-checkbox input { margin: 2px 0 0; accent-color: var(--accent); }
.workspace-checkbox span { display: flex; flex-direction: column; }
.workspace-checkbox strong { font-size: 9px; }
.workspace-checkbox small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 400; }
.workspace-filters { display: flex; align-items: center; gap: 7px; }
.workspace-filters select, .workspace-panel-head > select { min-height: 34px; padding: 6px 8px; font-size: 8.5px; }

.project-library { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.project-library > .workspace-empty { grid-column: 1 / -1; }
.workspace-project-card { min-width: 0; display: grid; grid-template-columns: 118px minmax(0,1fr); overflow: hidden; border: 1px solid #2b323d; border-radius: 13px; background: #151a22; }
.workspace-project-card.cloud-project { border-color: rgba(217,255,87,.24); box-shadow: inset 0 0 0 1px rgba(217,255,87,.025); }
.workspace-project-visual { --project-accent: var(--accent); position: relative; min-height: 145px; display: grid; place-items: center; overflow: hidden; color: white; background: radial-gradient(circle at 70% 20%,var(--project-accent),transparent 29%),linear-gradient(145deg,#322b6d,#11151d); }
.workspace-project-visual::after { content: ""; position: absolute; inset: auto -25px -55px auto; width: 120px; height: 120px; border: 16px solid rgba(255,255,255,.08); border-radius: 50%; }
.workspace-project-visual > span { position: absolute; left: 8px; top: 8px; padding: 3px 5px; border-radius: 4px; background: rgba(5,7,10,.58); font-size: 7px; font-weight: 800; }
.workspace-project-visual > .icon { position: relative; z-index: 2; width: 24px; height: 24px; padding: 5px; border-radius: 50%; color: #101408; background: white; }
.workspace-project-visual > b { position: absolute; left: 8px; bottom: 8px; color: rgba(255,255,255,.76); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.workspace-project-body { min-width: 0; display: flex; flex-direction: column; padding: 14px; }
.workspace-project-body h3 { overflow: hidden; margin: 0 0 4px; font: 700 12px var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.workspace-project-body > p { overflow: hidden; margin: 0; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-project-meta { margin: 9px 0 12px; color: var(--muted-2); font-size: 7.5px; }
.workspace-project-actions { display: flex; align-items: center; gap: 9px; margin-top: auto; }
.workspace-project-actions .button { min-height: 33px; padding: 0 9px; font-size: 8px; }
.workspace-project-actions .text-button { font-size: 8px; }
.project-storage-panel { border-color: rgba(102,228,234,.18); background: linear-gradient(135deg,rgba(102,228,234,.045),#11151b 58%); }
.project-storage-panel .workspace-panel-head { margin-bottom: 10px; }
.project-storage-panel > p { margin: 9px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.5; }
.project-storage-meter { height: 8px; overflow: hidden; border: 1px solid #303844; border-radius: 999px; background: #090c10; }
.project-storage-meter > span { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan),var(--accent)); transition: width .25s ease; }

.planner-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.planner-compose { grid-column: span 5; }
.planner-list-panel { grid-column: span 7; }
.planner-list { display: flex; flex-direction: column; gap: 8px; }
.planner-item { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 11px; border: 1px solid #2a313c; border-radius: 11px; background: #151a22; }
.planner-item.overdue { border-color: rgba(255,118,101,.32); }
.planner-item-body { min-width: 0; }
.planner-item-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.planner-item-topline > strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.planner-item-body > small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 7.5px; }
.planner-item-body > p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.planner-item-actions { min-width: 88px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.planner-item-actions .button { min-height: 31px; padding: 0 8px; font-size: 7.5px; }
.planner-item-actions .text-button { font-size: 7.5px; }

.performance-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.performance-compose { grid-column: span 5; }
.performance-breakdown-panel { grid-column: span 7; }
.metric-input-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.performance-breakdown { display: flex; flex-direction: column; gap: 8px; }
.performance-breakdown-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid #2b323d; border-radius: 10px; background: #151a22; }
.performance-breakdown-row > div { display: flex; flex-direction: column; }
.performance-breakdown-row strong { font-size: 9px; }
.performance-breakdown-row small { color: var(--muted); font-size: 7.5px; }
.performance-breakdown-row > b { color: var(--accent); font: 700 13px var(--font-display); }
.performance-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.performance-list > .workspace-empty { grid-column: 1 / -1; }
.performance-item { min-width: 0; padding: 13px; border: 1px solid #2b323d; border-radius: 12px; background: #151a22; }
.performance-item-heading { display: flex; align-items: center; gap: 9px; }
.performance-item-heading > div { min-width: 0; display: flex; flex-direction: column; }
.performance-item-heading strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.performance-item-heading small { color: var(--muted); font-size: 7.5px; }
.performance-item-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.performance-item-metrics > span { display: flex; flex-direction: column; padding: 8px; border-radius: 8px; background: #0f1319; }
.performance-item-metrics strong { font-size: 10px; }
.performance-item-metrics small { color: var(--muted-2); font-size: 6.5px; }
.performance-item-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.performance-item-actions .text-button { font-size: 8px; }

.brand-settings { grid-column: span 6; }
.brand-preview-panel { grid-column: span 6; }
.brand-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-input-wrap { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 5px 9px 5px 5px; border: 1px solid #303743; border-radius: 9px; background: #0c0f14; }
.color-input-wrap input { width: 34px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.color-input-wrap b { color: var(--muted); font-size: 9px; }
.brand-preview { --brand-primary: var(--accent); --brand-secondary: var(--violet); overflow: hidden; max-width: 360px; margin: 0 auto; border: 1px solid #343c48; border-radius: 16px; background: #0b0e13; box-shadow: 0 22px 60px rgba(0,0,0,.28); }
.brand-preview-video { position: relative; min-height: 310px; display: grid; place-items: end center; overflow: hidden; padding: 28px 25px; background: radial-gradient(circle at 68% 20%,var(--brand-primary),transparent 24%),radial-gradient(circle at 22% 80%,var(--brand-secondary),transparent 34%),linear-gradient(150deg,#29245f,#151822); }
.brand-preview-video::before, .brand-preview-orb { content: ""; position: absolute; border-radius: 50%; background: rgba(7,8,12,.78); }
.brand-preview-video::before { width: 150px; height: 210px; left: calc(50% - 75px); bottom: -55px; border-radius: 70px 70px 20px 20px; }
.brand-preview-orb { width: 72px; height: 78px; left: calc(50% - 36px); bottom: 112px; }
.brand-preview-ratio { position: absolute; top: 11px; right: 11px; padding: 3px 6px; border-radius: 5px; background: rgba(7,9,13,.62); font-size: 7px; font-weight: 800; }
.brand-preview-video > strong { position: relative; z-index: 2; max-width: 280px; color: white; font: 850 23px/.98 var(--font-display); text-align: center; text-shadow: 0 2px 6px #000; }
.brand-preview.caption-pop .brand-preview-video > strong { color: var(--brand-primary); }
.brand-preview.caption-clean .brand-preview-video > strong { padding: 8px 12px; border-radius: 7px; color: #111; background: white; text-shadow: none; }
.brand-preview.caption-boxed .brand-preview-video > strong { padding: 8px 12px; border-radius: 5px; color: #111; background: var(--brand-primary); box-shadow: 5px 5px #111; text-shadow: none; }
.brand-preview-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px; }
.brand-preview-footer > span:first-child { display: flex; flex-direction: column; }
.brand-preview-footer small { color: var(--muted); font-size: 7px; }
.brand-preview-footer b { font-size: 10px; }
.brand-preview-swatches { display: flex; gap: 5px; }
.brand-preview-swatches i { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-primary); }
.brand-preview-swatches i:last-child { background: var(--brand-secondary); }
.brand-capability-list { max-width: 420px; margin: 18px auto 0; }
.brand-capability-list p { display: flex; align-items: center; gap: 7px; margin: 7px 0; color: var(--muted); font-size: 8px; }
.brand-capability-list .icon { width: 12px; color: var(--accent); }

.ai-access-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 13px; align-items: center; border-color: rgba(217,255,87,.22); background: linear-gradient(135deg,rgba(217,255,87,.06),rgba(128,109,255,.04)); }
.ai-access-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--accent-ink); background: var(--accent); }
.ai-access-panel h3 { margin: 0; font: 700 17px var(--font-display); }
.ai-access-panel p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.ai-access-panel > span { padding: 4px 8px; border-radius: 6px; color: var(--accent-ink); background: var(--accent); font-size: 7px; font-weight: 900; letter-spacing: .7px; }
.ai-feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.ai-feature-grid article { position: relative; min-height: 190px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: #11151b; }
.ai-feature-grid article > .icon { width: 22px; height: 22px; margin-bottom: 26px; color: var(--accent); }
.ai-feature-grid article > span { position: absolute; right: 12px; top: 12px; padding: 3px 6px; border-radius: 5px; color: var(--muted); background: #252b35; font-size: 7px; font-weight: 800; }
.ai-feature-grid article > span.ready { color: var(--accent-ink); background: var(--accent); }
.ai-feature-grid h3 { margin: 0 0 6px; font: 700 13px var(--font-display); }
.ai-feature-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.ai-workflow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ai-workflow li { display: flex; gap: 9px; padding: 12px; border: 1px solid #2b323d; border-radius: 11px; background: #151a22; }
.ai-workflow li > b { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--accent-ink); background: var(--accent); font-size: 9px; }
.ai-workflow li > span { display: flex; flex-direction: column; }
.ai-workflow strong { font-size: 9px; }
.ai-workflow small { margin-top: 3px; color: var(--muted); font-size: 7.5px; line-height: 1.45; }

/* Editor */
.editor-page { min-height: calc(100vh - 76px); }
.editor-page + * { display: none; }
.editor-toolbar { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; border-bottom: 1px solid var(--line-soft); background: #0f1218; }
.editor-toolbar .button { min-height: 35px; font-size: 11px; }
.project-title-wrap { display: flex; flex-direction: column; align-items: center; }
.project-title-wrap input { width: min(300px,40vw); padding: 2px 7px; border: 1px solid transparent; border-radius: 6px; outline: 0; color: var(--text); background: transparent; font-weight: 600; text-align: center; }
.project-title-wrap input:focus { border-color: var(--line); background: #181d25; }
.project-title-wrap span { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 8px; }
.project-title-wrap span .icon { width: 9px; height: 9px; color: var(--accent); }
.editor-toolbar-actions { display: flex; align-items: center; gap: 7px; }
#saveProject[aria-busy="true"] { opacity: .72; }
.editor-workspace { display: grid; grid-template-columns: 244px minmax(410px,1fr) 270px; grid-template-rows: minmax(480px, calc(100vh - 350px)) 220px; gap: 1px; background: var(--line-soft); }
.panel, .preview-column { background: #10141a; }
.moments-panel { grid-column: 1; grid-row: 1 / 3; padding: 18px 14px; overflow-y: auto; }
.style-panel { grid-column: 3; grid-row: 1 / 3; overflow-y: auto; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; margin: 0 2px 14px; }
.panel-head h3 { margin: 0; font: 700 15px var(--font-display); }
.ai-credit { padding: 3px 6px; border: 1px solid #333a46; border-radius: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }
.ai-action { min-height: 39px; font-size: 11.5px; color: var(--accent-ink); background: linear-gradient(90deg,var(--accent),#baff89); }
.ai-action:disabled { color: #737d69; background: #252b2b; cursor: not-allowed; }
.manual-moments { display: block; margin: 8px auto 0; color: var(--muted); font-size: 8.5px; }
.panel-helper { margin: 9px 3px 15px; color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.ai-analysis-progress { margin: 0 0 14px; padding: 10px; border: 1px solid #303743; border-radius: 9px; background: #151a21; }
.ai-analysis-progress > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 8.5px; }
.ai-analysis-progress b { color: var(--accent); font-variant-numeric: tabular-nums; }
.ai-analysis-progress .text-button { display: block; margin: 8px auto 0; color: #ffab9f; font-size: 8px; }
.ai-review-warning { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 12px; padding: 8px; border: 1px solid rgba(255,190,87,.25); border-radius: 8px; color: #c9b98f; background: rgba(255,190,87,.05); font-size: 8px; line-height: 1.4; }
.ai-review-warning .icon { width: 12px; height: 12px; flex: 0 0 auto; }
.moment-list { display: flex; flex-direction: column; gap: 7px; }
.moment-card { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) 20px; align-items: center; gap: 8px; padding: 10px 8px; border: 1px solid #282e37; border-radius: 10px; color: var(--muted); background: #161a22; text-align: left; }
.moment-card:hover { border-color: #3b4451; color: var(--text); }
.moment-card.active { border-color: rgba(217,255,87,.58); color: var(--text); background: rgba(217,255,87,.05); }
.moment-number { align-self: start; padding-top: 1px; color: #656e7b; font: 700 10px var(--font-display); }
.moment-card span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.moment-card strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.moment-card small { color: var(--muted-2); font-size: 9px; }
.moment-card small b { color: var(--accent); }
.moment-card > .icon { width: 14px; height: 14px; }
.upgrade-nudge { display: flex; gap: 9px; margin-top: 20px; padding: 12px; border: 1px solid #303643; border-radius: 11px; background: linear-gradient(145deg,#1a1f29,#151920); }
.nudge-icon { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--accent-ink); background: var(--accent); }
.nudge-icon .icon { width: 12px; }
.upgrade-nudge strong { display: block; margin-bottom: 3px; font-size: 9.5px; }
.upgrade-nudge p { margin: 0 0 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.upgrade-nudge .text-button { font-size: 8.5px; }
.preview-column { min-width: 0; display: flex; flex-direction: column; grid-column: 2; grid-row: 1; }
.preview-topline { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.ratio-tabs { display: flex; padding: 3px; border-radius: 8px; background: #090c10; }
.ratio-button { height: 28px; padding: 0 9px; border: 0; border-radius: 6px; color: #747d89; background: transparent; font-size: 10px; font-weight: 700; }
.ratio-button small { margin-left: 2px; color: #59616c; font-size: 8px; font-weight: 500; }
.ratio-button.active { color: var(--text); background: #242a34; }
.ratio-button.active small { color: #9da5b0; }
.preview-topline .button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.video-stage { min-height: 320px; flex: 1; display: grid; place-items: center; overflow: hidden; padding: 18px; background: radial-gradient(circle at center, #202633 0, #0b0e13 62%); }
.video-frame { position: relative; height: 100%; max-height: 470px; max-width: 100%; overflow: hidden; border: 1px solid #343b47; border-radius: 9px; background: #08090c; box-shadow: 0 22px 55px rgba(0,0,0,.45); }
.ratio-9-16 { aspect-ratio: 9/16; }
.ratio-1-1 { aspect-ratio: 1/1; }
.ratio-16-9 { width: min(100%,760px); height: auto; aspect-ratio: 16/9; }
.video-frame video, .video-frame canvas { width: 100%; height: 100%; display: block; object-fit: cover; background: black; }
.empty-video { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; color: var(--muted); background: linear-gradient(160deg,#151a22,#090b0f); text-align: center; }
.empty-video-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 3px; border: 1px solid #363e49; border-radius: 11px; color: var(--accent); background: #1a2029; }
.empty-video strong { color: var(--text); font-size: 10px; }
.empty-video .text-button { font-size: 9px; }
.safe-zone { position: absolute; z-index: 4; inset: 8%; border: 1px dashed rgba(255,255,255,.5); border-radius: 5px; pointer-events: none; }
.caption-overlay { position: absolute; z-index: 5; left: 9%; right: 9%; bottom: 12%; pointer-events: none; color: white; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.8); word-break: break-word; }
.caption-overlay.style-pop { font: 800 clamp(12px,2vw,23px)/1.05 var(--font-display); text-transform: uppercase; }
.caption-overlay.style-pop::first-line { color: var(--caption-accent,var(--accent)); }
.caption-overlay.style-clean { padding: 5px 8px; border-radius: 4px; color: #161616; background: rgba(255,255,255,.92); font: 700 clamp(10px,1.7vw,18px)/1.2 var(--font-display); text-shadow: none; }
.caption-overlay.style-boxed { padding: 7px 10px; border: 2px solid #111; color: #111; background: var(--caption-accent,var(--accent)); font: 800 clamp(11px,1.8vw,20px)/1.05 var(--font-display); text-transform: uppercase; text-shadow: none; box-shadow: 4px 4px 0 #111; }
.center-play { position: absolute; z-index: 7; width: 48px; height: 48px; left: 50%; top: 50%; display: grid; place-items: center; transform: translate(-50%,-50%); border: 0; border-radius: 50%; color: #111; background: rgba(255,255,255,.9); box-shadow: 0 8px 25px rgba(0,0,0,.3); }
.center-play .icon { width: 18px; margin-left: 2px; }
.watermark { position: absolute; z-index: 5; right: 7px; top: 7px; padding: 2px 5px; border-radius: 3px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.45); font: 700 6px var(--font-display); letter-spacing: -.2px; }
.player-controls { height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border-top: 1px solid var(--line-soft); }
.round-control { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; color: #111; background: var(--text); }
.round-control .icon { width: 11px; margin-left: 1px; }
.time-readout { min-width: 100px; color: #69727f; font-variant-numeric: tabular-nums; font-size: 10px; }
.time-readout b { color: var(--text); font-weight: 600; }
.scrubber { min-width: 0; flex: 1; height: 3px; accent-color: var(--accent); }
.player-controls .icon-button { width: 28px; height: 28px; }

.inspector-tabs { height: 48px; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line-soft); }
.inspector-tabs button { position: relative; border: 0; color: #77808e; background: transparent; font-size: 10.5px; font-weight: 600; }
.inspector-tabs button.active { color: var(--text); }
.inspector-tabs button.active::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.inspector-pane { padding: 16px; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.form-row label, .field-label { display: block; color: #b9c0ca; font-size: 10.5px; font-weight: 600; }
.form-row span { color: #606976; font-size: 9px; }
.inspector-pane textarea { width: 100%; resize: vertical; padding: 9px; border: 1px solid #303743; border-radius: 8px; outline: 0; color: var(--text); background: #0c0f14; font-size: 10.5px; line-height: 1.45; }
.inspector-pane textarea:focus { border-color: var(--accent); }
.field-label { margin: 16px 0 7px; }
.caption-styles { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.caption-style { padding: 5px; border: 1px solid #2c333e; border-radius: 8px; color: var(--muted); background: #151920; }
.caption-style.active { border-color: var(--accent); color: white; box-shadow: 0 0 0 2px rgba(217,255,87,.06); }
.style-preview { height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: #262c36; font-size: 7px; line-height: 1.1; text-align: center; }
.style-preview.pop { color: white; font-weight: 800; }
.style-preview.pop b { color: var(--accent); }
.style-preview.clean { color: #111; background: white; font-weight: 600; }
.style-preview.boxed { color: #111; background: var(--accent); font-weight: 800; box-shadow: inset 0 0 0 2px #111; }
.caption-style small { display: block; margin-top: 4px; font-size: 8.5px; }
.color-row { display: flex; align-items: center; gap: 7px; }
.swatch { width: 23px; height: 23px; padding: 0; border: 2px solid #161a21; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #343b46; }
.swatch-lime { --swatch: #d9ff57; }.swatch-coral { --swatch: #ff7665; }.swatch-purple { --swatch: #7c6cff; }.swatch-white { --swatch: #ffffff; }
.swatch.active { box-shadow: 0 0 0 2px var(--text); }
#accentColor { width: 25px; height: 25px; overflow: hidden; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; margin: 17px 0; }
.toggle-row > span { display: flex; flex-direction: column; }
.toggle-row strong { color: #c1c7cf; font-size: 10.5px; }
.toggle-row small { color: var(--muted-2); font-size: 8.5px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row i { position: relative; width: 29px; height: 17px; flex: 0 0 auto; border-radius: 99px; background: #323944; transition: .2s; }
.toggle-row i::after { content: ""; position: absolute; width: 11px; height: 11px; top: 3px; left: 3px; border-radius: 50%; background: #8b939e; transition: .2s; }
.toggle-row input:checked + i { background: var(--accent); }
.toggle-row input:checked + i::after { left: 15px; background: #12160a; }
.toggle-row.disabled-control { opacity: .56; cursor: not-allowed; }
.ai-caption-toggle { padding-top: 13px; border-top: 1px solid var(--line-soft); }
.ai-caption-toggle:has(input:disabled) { opacity: .62; }
.caption-cue-list { max-height: 230px; overflow-y: auto; padding-right: 3px; }
.caption-cue { margin-bottom: 7px; padding: 8px; border: 1px solid #2b323d; border-radius: 8px; background: #12171e; }
.caption-cue.active { border-color: rgba(217,255,87,.5); }
.caption-cue-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.caption-cue-head button { padding: 0; border: 0; color: #ff9a8d; background: transparent; font-size: 8px; }
.caption-cue textarea { min-height: 48px; resize: vertical; }
.caption-cue-empty { margin: 0; color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.inspector-pane .button { min-height: 36px; padding: 0 8px; font-size: 9.5px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 8px; background: #090c10; }
.segmented button { min-height: 29px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 8px; }
.segmented button.active { color: white; background: #252b35; }
.tool-callout { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: start; margin-top: 20px; padding: 10px; border: 1px solid #303743; border-radius: 10px; background: linear-gradient(145deg,#1a1f29,#14181f); }
.tool-callout > .icon { width: 17px; color: var(--accent); }
.tool-callout strong { display: block; margin-bottom: 2px; font-size: 9px; }
.tool-callout p { margin: 0; color: var(--muted); font-size: 7.5px; }
.tool-callout button { padding: 0; border: 0; color: var(--accent); background: transparent; font-size: 7.5px; font-weight: 700; }
.tool-callout button:disabled { color: var(--muted); cursor: not-allowed; }
#volumeControl { width: 100%; accent-color: var(--accent); }

.timeline { min-width: 0; grid-column: 2; grid-row: 2; padding: 12px 15px; }
.timeline-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.timeline-head > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.timeline-head strong { font-size: 11px; }
.timeline-head > div:first-child span { color: var(--muted); font-size: 8.5px; }
.trim-inputs { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.trim-inputs label { display: flex; align-items: center; gap: 4px; font-size: 8px; }
.trim-inputs input { width: 64px; padding: 4px 5px; border: 1px solid #303743; border-radius: 5px; outline: 0; color: var(--text); background: #0b0e12; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.trim-inputs .icon-button { width: 24px; height: 24px; }
.trim-inputs .icon { width: 12px; }
.timeline-ruler { display: flex; justify-content: space-between; padding: 9px 0 4px; color: #555e6b; font-size: 7.5px; }
.timeline-track { position: relative; height: 71px; overflow: hidden; border-radius: 5px; background: #292f39; touch-action: none; }
.timeline-frames { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10,1fr); gap: 1px; }
.timeline-frames span { background: linear-gradient(155deg,rgba(131,111,255,.6),rgba(28,24,59,.9)); }
.timeline-frames span:nth-child(3n+2) { background: linear-gradient(155deg,rgba(217,255,87,.42),rgba(31,39,21,.85)); }
.timeline-frames span:nth-child(4n) { background: linear-gradient(155deg,rgba(255,118,101,.45),rgba(58,26,28,.9)); }
.timeline-frames span::after { content: ""; display: block; width: 38%; height: 65%; margin: 16% auto 0; border-radius: 50% 50% 12% 12%; background: rgba(5,6,8,.65); }
.selection-shade { position: absolute; z-index: 2; top: 0; bottom: 0; background: rgba(6,8,11,.66); pointer-events: none; }
.selection-shade.before { left: 0; width: 0; }
.selection-shade.after { right: 0; width: 50%; }
.clip-selection { position: absolute; z-index: 3; left: 0; width: 50%; top: 0; bottom: 0; border: 2px solid var(--accent); pointer-events: none; }
.handle { position: absolute; top: -1px; bottom: -1px; width: 7px; background: var(--accent); }
.handle::after { content: ""; position: absolute; top: 29px; width: 3px; height: 11px; border-left: 1px solid #303713; border-right: 1px solid #303713; }
.handle-start { left: -2px; border-radius: 3px 0 0 3px; }
.handle-start::after { left: 2px; }
.handle-end { right: -2px; border-radius: 0 3px 3px 0; }
.handle-end::after { right: 2px; }
.playhead { position: absolute; z-index: 5; left: 0; top: -3px; bottom: -3px; width: 1px; background: white; pointer-events: none; }
.playhead i { position: absolute; top: -2px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: white; }
.range-overlay { position: absolute; z-index: 6; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.range-start { top: 0; }
.range-end { bottom: 0; }
.range-overlay::-webkit-slider-thumb { width: 18px; height: 71px; pointer-events: auto; }
.range-overlay::-moz-range-thumb { width: 18px; height: 71px; pointer-events: auto; }
.audio-track { height: 33px; display: flex; align-items: center; overflow: hidden; margin-top: 6px; border-radius: 4px; background: #171d23; }
.audio-label { width: 61px; display: flex; align-items: center; gap: 4px; padding-left: 7px; color: #717a87; font-size: 7px; }
.audio-label .icon { width: 10px; }
.waveform { height: 20px; flex: 1; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.waveform i { width: 2px; flex: 0 0 2px; border-radius: 2px; background: rgba(102,228,234,.55); }
.ai-timeline-track { height: 25px; display: flex; align-items: center; overflow: hidden; margin-top: 4px; border-radius: 4px; background: #171d23; }
.ai-timeline-markers { position: relative; height: 100%; flex: 1; overflow: hidden; }
.ai-cue-marker { position: absolute; top: 8px; height: 8px; min-width: 2px; border: 0; border-radius: 2px; background: rgba(102,228,234,.55); }
.ai-cue-marker.active { background: var(--accent); }
.ai-highlight-marker { position: absolute; top: 2px; height: 4px; min-width: 3px; padding: 0; border: 0; border-radius: 3px; background: var(--coral); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.ai-cue-marker:focus-visible, .ai-highlight-marker:focus-visible { outline: 2px solid white; outline-offset: 1px; }

/* Modals */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; overflow-y: auto; background: rgba(4,6,9,.79); backdrop-filter: blur(12px); animation: fadeIn .18s ease; }
.modal { position: relative; width: min(980px,100%); max-height: calc(100vh - 44px); overflow-y: auto; border: 1px solid #39414d; border-radius: 21px; background: #11151b; box-shadow: var(--shadow); animation: rise .22s ease; }
.modal-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.modal-head h2 { margin: 0; font: 700 20px var(--font-display); letter-spacing: -.5px; }
.export-layout { display: grid; grid-template-columns: minmax(0,1fr) 335px; }
.export-settings { padding: 22px; }
.share-destinations { padding: 20px; border-left: 1px solid var(--line-soft); background: #0d1116; }
.setting-block { margin-bottom: 20px; }
.setting-block > label { display: block; margin-bottom: 8px; color: #bfc5ce; font-size: 10px; font-weight: 600; }
.setting-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.setting-label-row label { color: #bfc5ce; font-size: 10px; font-weight: 600; }
.quality-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quality-card { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid #303743; border-radius: 10px; background: #171b23; text-align: left; }
.quality-card:hover { border-color: #46505e; }
.quality-card.active { border-color: var(--accent); background: rgba(217,255,87,.04); }
.quality-card > span { display: flex; flex-direction: column; }
.quality-card strong { font-size: 11px; }
.quality-card strong b { padding: 2px 4px; border-radius: 3px; color: var(--accent-ink); background: var(--accent); font-size: 6px; }
.quality-card small { color: var(--muted); font-size: 8px; }
.quality-card .icon { width: 15px; color: var(--accent); }
.setting-block textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid #303743; border-radius: 9px; outline: 0; color: var(--text); background: #0c0f14; font-size: 10px; line-height: 1.5; }
.setting-block .text-button { margin-top: 7px; font-size: 9px; }
.setting-block .ai-privacy { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.export-summary { display: flex; justify-content: center; gap: 22px; margin: 8px 0 13px; color: var(--muted); }
.export-summary span { display: flex; align-items: center; gap: 5px; font-size: 8px; }
.export-summary .icon { width: 12px; }
.export-summary b { color: #c5cbd3; }
.render-progress { margin-top: 12px; }
.render-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.render-progress > div:first-child b { color: var(--accent); }
.progress-track { height: 5px; overflow: hidden; border-radius: 10px; background: #2c323d; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .15s linear; }
.render-progress small { color: #626b77; font-size: 7.5px; }
.share-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 13px; border: 1px solid #2d3440; border-radius: 12px; background: #161b23; }
.preview-phone { width: 49px; height: 82px; flex: 0 0 auto; padding: 3px; border: 1px solid #414956; border-radius: 8px; background: #080a0d; }
.preview-phone-art { height: 100%; display: grid; place-items: end center; padding: 5px 2px; border-radius: 5px; background: radial-gradient(circle at 55% 25%,#8f7cff,transparent 35%),linear-gradient(#332c70,#171626); }
.preview-phone-art span { color: white; font: 800 5px/1.1 var(--font-display); text-align: center; }
.preview-phone-art b { color: var(--accent); }
.share-preview > div:last-child { position: relative; }
.share-preview strong { display: block; margin-bottom: 2px; font-size: 10px; }
.share-preview p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.ready-check { position: absolute; right: -1px; top: -2px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); }
.ready-check .icon { width: 9px; }
.share-destinations h3 { margin: 0 0 8px; color: #bfc5cc; font-size: 9px; }
.destination { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; }
.destination:hover { border-radius: 8px; background: #171c23; }
.destination > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.destination strong { font-size: 9.5px; }
.destination small { color: var(--muted); font-size: 7.5px; }
.destination > .icon { width: 13px; color: var(--muted); }
.social-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: white; background: #222832; font-size: 12px; font-weight: 800; }
.social-icon.instagram { background: linear-gradient(145deg,#8d3dce,#f04469,#ffb443); }
.social-icon.youtube { color: white; background: #ec2432; font-size: 9px; }
.share-destinations > .button { margin-top: 13px; min-height: 39px; font-size: 10px; }
.share-note { display: flex; gap: 5px; margin: 10px 2px 0; color: #656e7b; font-size: 7.5px; line-height: 1.35; }
.share-note .icon { width: 11px; height: 11px; }

.tiktok-modal { width: min(1000px,100%); }
.tiktok-review-banner { display: flex; align-items: center; gap: 11px; margin: 18px 20px 0; padding: 12px 14px; border: 1px solid rgba(102,228,234,.25); border-radius: 12px; background: rgba(102,228,234,.06); }
.tiktok-review-banner .social-icon { width: 34px; height: 34px; }
.tiktok-review-banner strong { display: block; margin-bottom: 2px; font-size: 11px; }
.tiktok-review-banner p { margin: 0; color: #98a5b4; font-size: 9px; line-height: 1.45; }
.tiktok-review-banner b { color: #d7e1eb; }
.tiktok-loading { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.tiktok-loading p { margin: 0; font-size: 10px; }
.spinner { width: 19px; height: 19px; display: inline-block; flex: 0 0 auto; border: 2px solid #424b58; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.tiktok-connect-panel { max-width: 540px; margin: 0 auto; padding: 55px 28px 65px; text-align: center; }
.tiktok-connect-panel h3 { margin: 0 0 10px; font: 700 18px var(--font-display); }
.tiktok-connect-panel > p { margin: 0 0 20px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.tiktok-fine-print { margin: 10px 0 0 !important; color: var(--muted-2) !important; font-size: 8px !important; line-height: 1.45 !important; text-align: center; }
.tiktok-composer { padding: 18px 20px 22px; }
.tiktok-account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #171c23; }
.tiktok-account-row > div { display: flex; align-items: center; gap: 9px; }
.tiktok-account-row > div:first-child > span:last-child { display: flex; flex-direction: column; }
.tiktok-account-row small { color: var(--muted); font-size: 7px; }
.tiktok-account-row strong { font-size: 10px; }
.tiktok-account-row b { color: var(--muted); font-size: 8px; font-weight: 500; }
.tiktok-account-row .text-button { margin-left: 8px; font-size: 9px; }
.text-button.danger { color: #ff9285; }
.tiktok-account-choice { display: flex; align-items: center; gap: 9px; margin: -5px 0 15px; color: var(--muted); font-size: 9px; }
.tiktok-account-choice select { min-width: 210px; }
.tiktok-composer-grid { display: grid; grid-template-columns: minmax(220px,300px) minmax(0,1fr); gap: 20px; align-items: start; }
.tiktok-video-column { position: sticky; top: 0; }
.tiktok-video-column video { width: 100%; max-height: 530px; display: block; border: 1px solid #303844; border-radius: 14px; background: #07090c; aspect-ratio: 9/16; object-fit: contain; }
.tiktok-video-column p { margin: 9px 2px 0; color: var(--muted); font-size: 8px; line-height: 1.4; text-align: center; }
.tiktok-video-column b { color: #cdd4dd; }
.tiktok-post-form { display: flex; flex-direction: column; gap: 13px; }
.tiktok-post-form > label:not(.tiktok-checkbox-detail), .tiktok-post-form fieldset { display: flex; flex-direction: column; gap: 6px; color: #c7ced7; font-size: 9px; font-weight: 700; }
.tiktok-post-form > label > span:first-child { float: right; color: var(--muted); font-weight: 500; }
.tiktok-post-form textarea, .tiktok-post-form select, .tiktok-account-choice select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid #303743; border-radius: 8px; outline: 0; color: var(--text); background: #0b0e13; font: 400 10px/1.5 var(--font-body); }
.tiktok-post-form textarea { min-height: 96px; resize: vertical; }
.tiktok-post-form textarea:focus, .tiktok-post-form select:focus, .tiktok-account-choice select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,255,87,.07); }
.tiktok-post-form > label > small, .tiktok-post-form fieldset > small { color: var(--muted-2); font-size: 7.5px; font-weight: 400; line-height: 1.4; }
.tiktok-post-form fieldset { margin: 0; padding: 11px; border: 1px solid #2b323d; border-radius: 10px; background: #131820; }
.tiktok-post-form legend { padding: 0 5px; color: #c7ced7; font-size: 9px; font-weight: 700; }
.tiktok-check-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.tiktok-check-grid label, .tiktok-switch { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid #303743; border-radius: 8px; color: #c6cdd6; background: #0d1116; font-size: 8.5px; font-weight: 600; }
.tiktok-check-grid label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.tiktok-post-form input[type="checkbox"] { width: 14px; height: 14px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.tiktok-disclosure-options { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.tiktok-disclosure-options > label, .tiktok-checkbox-detail { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid #303743; border-radius: 8px; color: #c6cdd6; background: #0d1116; font-size: 8.5px; line-height: 1.45; }
.tiktok-disclosure-options > label:has(input:disabled) { opacity: .48; cursor: not-allowed; }
.tiktok-disclosure-options span, .tiktok-checkbox-detail > span { display: flex; flex-direction: column; gap: 2px; }
.tiktok-disclosure-options small, .tiktok-checkbox-detail small { color: var(--muted); font-size: 7.5px; font-weight: 400; }
.tiktok-inline-warning { margin: 0; padding: 7px 8px; border-radius: 7px; color: #ffc1b8; background: rgba(255,118,101,.08); font-size: 8px; line-height: 1.4; }
.tiktok-consent { border-color: rgba(217,255,87,.25); background: rgba(217,255,87,.04); }
.tiktok-consent a { color: var(--accent); }
.tiktok-status { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(102,228,234,.28); border-radius: 9px; background: rgba(102,228,234,.06); }
.tiktok-status.complete { border-color: rgba(217,255,87,.34); background: rgba(217,255,87,.06); }
.tiktok-status.failed { border-color: rgba(255,118,101,.36); background: rgba(255,118,101,.07); }
.tiktok-status.complete .spinner, .tiktok-status.failed .spinner { display: none; }
.tiktok-status strong { display: block; margin-bottom: 2px; font-size: 9px; }
.tiktok-status p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.tiktok-post-form > .button { min-height: 43px; }

.pricing-modal { width: min(780px,100%); padding: 30px; overflow: visible; background: radial-gradient(circle at 50% 0,rgba(217,255,87,.1),transparent 28%),#11151b; }
.floating-close { position: absolute; right: 15px; top: 15px; }
.pricing-intro { text-align: center; }
.dark-pill { margin: 0 auto 12px; }
.pricing-intro h2 { margin: 0 0 7px; font: 800 31px/1.1 var(--font-display); letter-spacing: -1.2px; }
.pricing-intro > p { max-width: 510px; margin: 0 auto; color: var(--muted); font-size: 11px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 20px; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 342px; padding: 20px; border: 1px solid #313844; border-radius: 14px; background: #151920; }
.price-card.featured { border-color: rgba(217,255,87,.65); box-shadow: 0 14px 45px rgba(217,255,87,.05); }
.most-popular { position: absolute; right: 15px; top: 15px; padding: 3px 6px; border-radius: 4px; color: var(--accent-ink); background: var(--accent); font-size: 6px; font-weight: 800; letter-spacing: .5px; }
.price-card h3 { margin: 0; font: 700 15px var(--font-display); }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 12px; }
.price strong { font: 700 28px var(--font-display); letter-spacing: -1px; }
.price span { color: var(--muted); font-size: 9px; }
.price-card ul { flex: 1; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.price-card li { display: flex; align-items: center; gap: 7px; color: #c3c8d0; font-size: 9px; }
.price-card li .icon { width: 13px; color: var(--accent); }
.price-card li.muted { color: var(--muted-2); }
.price-card li.muted .icon { color: var(--muted-2); }
.price-card .button { min-height: 40px; font-size: 10px; }
.price-card > small { display: block; margin-top: 7px; color: var(--muted-2); font-size: 7px; text-align: center; }
.checkout-note { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 15px 0 0; color: #656e7b; font-size: 7.5px; }
.checkout-note .icon { width: 11px; }
.checkout-note code { color: #969fac; }

.auth-modal, .account-modal { width: min(430px,100%); padding: 30px; }
.auth-heading { text-align: center; }
.auth-heading .brand-mark { margin-bottom: 10px; }
.auth-heading h2, .account-modal h2 { margin: 0; font: 800 25px/1.15 var(--font-display); letter-spacing: -.8px; }
.auth-heading > p:last-child { margin: 7px auto 20px; max-width: 320px; color: var(--muted); font-size: 11px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 18px; padding: 3px; border-radius: 10px; background: #0b0e13; }
.auth-tabs button { min-height: 34px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.auth-tabs button.active { color: var(--text); background: #252b35; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-form > p { margin: 0 0 2px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-form > label:not(.auth-consent) { display: flex; flex-direction: column; gap: 6px; color: #c8cdd5; font-size: 10px; font-weight: 700; }
.auth-form label small { color: var(--muted-2); font-size: 8px; font-weight: 400; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #303743; border-radius: 9px; outline: 0; color: var(--text); background: #0c0f14; font-size: 12px; }
.auth-form input:not([type="checkbox"]):focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,255,87,.08); }
.auth-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.auth-consent input { margin: 2px 0 0; accent-color: var(--accent); }
.auth-consent a { color: var(--accent); }
.auth-link { align-self: center; margin-top: 1px; font-size: 10px; }
.auth-message { margin-top: 14px; padding: 10px 11px; border: 1px solid rgba(217,255,87,.25); border-radius: 9px; color: #dce4c4; background: rgba(217,255,87,.06); font-size: 10px; line-height: 1.5; }
.auth-message.error { border-color: rgba(255,118,101,.35); color: #ffc1b8; background: rgba(255,118,101,.07); }
.account-summary { display: flex; align-items: center; gap: 11px; margin: 20px 0 14px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #151920; }
.account-summary > div { min-width: 0; display: flex; flex-direction: column; }
.account-summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-summary small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.account-plan-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; border: 1px solid rgba(217,255,87,.25); border-radius: 12px; background: linear-gradient(135deg,rgba(217,255,87,.07),rgba(128,109,255,.04)); }
.account-plan-card > div { display: flex; flex-direction: column; }
.account-plan-card strong { font: 700 17px var(--font-display); }
.account-plan-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.account-plan-card > span { padding: 3px 7px; border-radius: 5px; color: var(--accent-ink); background: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: .6px; }
.account-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 14px; }
.account-logout { margin-top: 4px; color: #ff9b8e; }
.account-note { margin: 17px 0 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; text-align: center; }
.social-accounts-modal { width: min(620px,100%); padding: 30px; }
.social-accounts-modal h2 { margin: 0; font: 800 25px/1.15 var(--font-display); letter-spacing: -.8px; }
.social-accounts-intro { max-width: 520px; margin: 8px 0 21px; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.social-account-list { display: flex; flex-direction: column; gap: 10px; }
.social-accounts-loading { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); font-size: 10px; }
.social-platform-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #151920; }
.social-platform-card.unavailable { opacity: .68; }
.social-platform-head { display: flex; align-items: center; gap: 11px; }
.social-platform-copy { min-width: 0; flex: 1; }
.social-platform-copy strong { display: block; font-size: 11px; }
.social-platform-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; line-height: 1.4; }
.social-platform-head > .button { min-width: 104px; min-height: 36px; padding: 0 11px; font-size: 9px; white-space: nowrap; }
.social-connection-list { display: flex; flex-direction: column; gap: 6px; margin: 11px 0 0 39px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.social-connection-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.social-connection-identity { min-width: 0; display: flex; flex-direction: column; }
.social-connection-identity strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.social-connection-identity small { color: var(--muted-2); font-size: 7.5px; }
.social-connection-item .text-button { flex: 0 0 auto; color: #ff9b8e; font-size: 8.5px; }
.social-accounts-note { margin: 16px 2px 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; }

.processing-card { width: min(400px,100%); padding: 34px; border: 1px solid #39414d; border-radius: 20px; background: #12161d; box-shadow: var(--shadow); text-align: center; }
.processing-logo { position: relative; width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 16px; background: #1b2029; }
.processing-logo .brand-mark { transform: scale(1.1); }
.processing-logo > i { position: absolute; inset: -6px; border: 2px solid transparent; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
.processing-card h2 { margin: 7px 0 5px; font: 700 21px var(--font-display); }
.processing-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.processing-steps { display: flex; justify-content: space-between; gap: 10px; margin-top: 27px; }
.processing-steps span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #59616d; font-size: 7.5px; }
.processing-steps span > i { position: relative; z-index: 2; width: 17px; height: 17px; display: grid; place-items: center; border: 2px solid #333a45; border-radius: 50%; background: #12161d; }
.processing-steps span:not(:last-child) > i::after { content: ""; position: absolute; left: 15px; width: 100px; height: 1px; background: #303641; }
.processing-steps span.done { color: #aeb5bf; }
.processing-steps span.done > i { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.processing-steps span.done > i .icon { width: 9px; }
.processing-steps span.active { color: var(--text); }
.processing-steps span.active > i { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(217,255,87,.08); }

.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; min-width: 280px; max-width: min(390px,calc(100vw - 30px)); display: flex; align-items: center; gap: 10px; padding: 11px 11px; border: 1px solid #3a424e; border-radius: 11px; background: #191e26; box-shadow: 0 18px 45px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transform: translateY(14px); transition: .2s ease; }
.toast.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; color: var(--accent-ink); background: var(--accent); }
.toast-icon .icon { width: 12px; }
.toast > span:nth-child(2) { flex: 1; font-size: 10px; }
.toast button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; color: var(--muted); background: transparent; }
.toast button .icon { width: 12px; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .search-box { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .insights-card { display: none; }
  .project-grid { grid-template-columns: repeat(3,1fr); }
  .import-card { grid-template-columns: 1fr 330px; }
  .editor-workspace { grid-template-columns: 210px minmax(370px,1fr) 240px; }
  .moments-panel, .inspector-pane { padding-left: 11px; padding-right: 11px; }
}

@media (max-width: 980px) {
  .sidebar { width: 210px; }
  .main-area { margin-left: 210px; }
  .import-card { grid-template-columns: 1fr; }
  .import-content { padding-right: 280px; }
  .import-visual { position: absolute; right: 0; width: 280px; height: 100%; opacity: .72; }
  .stack-back { display: none; }
  .stack-front { left: 25%; }
  .spark-badge { right: 8px; }
  .editor-workspace { grid-template-columns: minmax(0,1fr) 250px; grid-template-rows: auto 220px auto; }
  .preview-column { grid-column: 1; grid-row: 1; }
  .moments-panel { grid-row: 3; grid-column: 1 / 3; display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
  .moments-panel .panel-head, .moments-panel .ai-action, .moments-panel .manual-moments, .moments-panel .panel-helper, .moments-panel .ai-analysis-progress, .moments-panel .ai-review-warning, .moments-panel .upgrade-nudge { grid-column: 1; }
  .moment-list { grid-column: 2; grid-row: 1 / 8; }
  .style-panel { grid-column: 2; grid-row: 1 / 3; }
  .timeline { grid-column: 1; grid-row: 2; }
  .export-layout { grid-template-columns: 1fr 300px; }
  .planner-compose, .planner-list-panel, .performance-compose, .performance-breakdown-panel, .brand-settings, .brand-preview-panel { grid-column: 1 / -1; }
  .ai-feature-grid, .ai-workflow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .performance-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .sidebar { width: 236px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0,0,0,.45); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { position: fixed; z-index: 29; inset: 0; display: none; background: rgba(0,0,0,.55); }
  .mobile-scrim.show { display: block; }
  .main-area { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { height: 68px; padding: 0 16px; }
  .search-box { display: none; }
  .page { padding: 23px 16px 40px; }
  .generic-hero { min-height: 0; align-items: flex-start; flex-direction: column; gap: 24px; padding: 25px 22px; }
  .generic-hero h2 { font-size: 27px; }
  .generic-hero-actions { justify-content: flex-start; margin-left: 0; }
  .welcome-row { align-items: flex-start; }
  .week-chip { display: none; }
  .import-card { min-height: 390px; }
  .import-content { padding: 28px 24px 200px; }
  .import-visual { top: auto; bottom: -50px; right: calc(50% - 140px); height: 220px; }
  .stack-front { width: 120px; height: 180px; left: 30%; top: 14px; }
  .play-badge { top: 58px; left: 44px; }
  .caption-chip { font-size: 8px; }
  .person { transform: scale(.75); transform-origin: bottom; }
  .person-left { left: -25px; }.person-right { right: -25px; }
  .spark-badge { right: 13px; bottom: 40px; }
  .import-actions > span { display: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .new-project-card { grid-column: 1 / 3; min-height: 130px; }
  .generic-content { grid-template-columns: 1fr; }
  .workspace-content { grid-template-columns: 1fr; }
  .workspace-content > *, .workspace-full, .workspace-stat-grid, .ai-access-panel, .ai-feature-grid { grid-column: 1 !important; }
  .workspace-stat-grid, .performance-stats, .ai-feature-grid, .ai-workflow { grid-template-columns: 1fr; }
  .project-library, .performance-list { grid-template-columns: 1fr; }
  .planner-list-head { align-items: flex-start; flex-direction: column; }
  .editor-toolbar { padding: 0 10px; }
  .project-title-wrap { display: none; }
  .editor-toolbar-actions .icon-button { display: none; }
  .editor-toolbar-actions .button { padding: 0 10px; font-size: 9px; }
  .editor-workspace { display: flex; flex-direction: column; }
  .preview-column { min-height: 560px; order: 1; }
  .timeline { min-height: 210px; order: 2; }
  .moments-panel { min-height: 350px; order: 3; display: block; }
  .style-panel { min-height: 430px; order: 4; }
  .video-stage { min-height: 420px; }
  .moment-list { margin-top: 12px; }
  .export-layout { grid-template-columns: 1fr; }
  .share-destinations { border-top: 1px solid var(--line-soft); border-left: 0; }
  .tiktok-composer-grid { grid-template-columns: 1fr; }
  .tiktok-video-column { position: static; }
  .tiktok-video-column video { width: min(280px,100%); max-height: 500px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-modal { padding: 25px 17px; overflow-y: auto; }
  .price-card { min-height: 0; }
  .toast { top: 76px; right: 12px; bottom: auto; }
}

@media (max-width: 480px) {
  .topbar-notifications { display: none; }
  .topbar-auth-actions { gap: 5px; }
  .topbar-auth-actions .button { width: auto; padding: 0 9px; font-size: 11px; }
  .topbar-account { width: auto; padding: 3px 9px 3px 4px; font-size: 11px; }
  #newClipButton { width: 38px; padding: 0; font-size: 0; }
  .topbar-left > div { display: none; }
  .welcome-row h2 { font-size: 27px; }
  .url-import .button { padding: 0 10px; }
  .import-actions { flex-wrap: wrap; }
  .project-grid { grid-template-columns: 1fr; }
  .new-project-card { grid-column: auto; }
  .project-thumb { height: 190px; }
  .quality-options { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); border-radius: 16px; }
  .timeline-head { align-items: flex-start; }
  .timeline-head > div:first-child span { display: none; }
  .trim-inputs > span, .trim-inputs label { font-size: 0; }
  .trim-inputs input { width: 51px; }
  .tiktok-account-row { align-items: flex-start; }
  .tiktok-account-row > div:last-child { flex-direction: column; align-items: flex-end; }
  .tiktok-check-grid { grid-template-columns: 1fr; }
  .social-accounts-modal { padding: 24px 18px; }
  .social-platform-head { align-items: flex-start; }
  .social-platform-head > .button { min-width: 86px; padding: 0 8px; }
  .social-connection-list { margin-left: 0; }
  .generic-hero-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .generic-hero-actions .button { width: 100%; }
  .workspace-panel { padding: 16px; }
  .workspace-form-grid, .metric-input-grid, .brand-color-grid { grid-template-columns: 1fr; }
  .workspace-project-card { grid-template-columns: 86px minmax(0,1fr); }
  .workspace-project-visual { min-height: 170px; }
  .workspace-project-actions { align-items: flex-start; flex-direction: column; }
  .planner-item { grid-template-columns: 30px minmax(0,1fr); }
  .planner-item-actions { grid-column: 2; min-width: 0; align-items: center; flex-direction: row; flex-wrap: wrap; }
  .workspace-filters { width: 100%; }
  .workspace-filters select { flex: 1; min-width: 0; }
  .performance-item-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ai-access-panel { grid-template-columns: 38px minmax(0,1fr); }
  .ai-access-panel > span { grid-column: 2; width: max-content; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
