:root {
  color-scheme: dark;
  --ink: #f7f6fb;
  --muted: #999eae;
  --muted-2: #686d7c;
  --bg: #080a10;
  --panel: #0f121a;
  --panel-2: #151923;
  --panel-3: #1c202c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --violet: #7b61ff;
  --violet-2: #9b8aff;
  --coral: #ff765f;
  --mint: #51e6ae;
  --yellow: #f7c75c;
  --blue: #55a7ff;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 980px; min-height: 100vh; background: var(--bg); color: var(--ink); overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }

.button { border: 0; border-radius: 10px; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button-primary { background: var(--violet); color: white; box-shadow: 0 10px 28px rgba(123, 97, 255, .25); }
.button-primary:hover { background: #8a72ff; }
.button-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.button-secondary:hover, .button-ghost:hover { background: rgba(255,255,255,.06); }
.button-ghost { background: transparent; color: #c5c8d2; border: 1px solid var(--line); }
.button-light { background: #f4f1ff; color: #191522; }
.button-large { min-height: 56px; padding-inline: 24px; border-radius: 12px; }
.button-icon { font-size: 20px; font-weight: 400; }

.home-view { background: radial-gradient(circle at 71% 16%, rgba(123,97,255,.13), transparent 27%), var(--bg); min-height: 100vh; }
.home-header { height: 88px; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid rgba(255,255,255,.05); }
.brand { border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 9px; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand small { margin-left: -4px; margin-top: 3px; font-size: 8px; letter-spacing: 1.7px; color: #7d8291; }
.brand-mark { width: 27px; height: 27px; display: inline-block; border-radius: 8px; position: relative; overflow: hidden; background: linear-gradient(145deg, #a796ff, #6a4cff); box-shadow: 0 5px 16px rgba(123,97,255,.32); }
.brand-mark i { position: absolute; width: 8px; height: 17px; top: 5px; background: white; border-radius: 2px 8px 8px 2px; transform: skew(-10deg); }
.brand-mark i:first-child { left: 6px; opacity: .98; }
.brand-mark i:last-child { left: 14px; opacity: .58; }
.home-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-link { border: 0; background: none; padding: 8px 0; color: #aeb2bf; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.nav-link:hover { color: white; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; color: #8e93a1; font-size: 12px; }
.privacy-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px rgba(81,230,174,.65); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.hero { min-height: 630px; display: grid; grid-template-columns: .88fr 1.3fr; gap: 38px; align-items: center; padding-top: 44px; padding-bottom: 54px; }
.eyebrow { color: #9ea3b1; font-size: 11px; letter-spacing: 2.4px; font-weight: 700; margin-bottom: 22px; }
.eyebrow span { color: var(--violet-2); margin-right: 7px; }
.hero h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(52px, 5.4vw, 78px); line-height: .99; letter-spacing: -4px; font-weight: 700; }
.hero h1 em { color: var(--violet-2); font-style: normal; }
.hero-copy > p { max-width: 470px; margin: 26px 0 29px; color: #a5a9b7; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-size: 11px; color: #727887; }
.hero-proof span::first-letter { color: var(--mint); }

.hero-visual { position: relative; min-width: 0; perspective: 1100px; }
.mock-glow { position: absolute; width: 70%; height: 76%; left: 17%; top: 12%; background: rgba(123,97,255,.25); filter: blur(90px); border-radius: 50%; }
.mock-window { position: relative; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; overflow: hidden; box-shadow: 0 38px 90px rgba(0,0,0,.5); background: #11141c; transform: rotateY(-3deg) rotateX(1deg); }
.mock-topbar { height: 42px; display: flex; align-items: center; padding: 0 13px; border-bottom: 1px solid #282c37; font-size: 8px; color: #818696; }
.mock-logo { color: white; font-weight: 700; width: 28%; }
.mock-logo b { width: 12px; height: 12px; margin-right: 4px; background: var(--violet); display: inline-block; border-radius: 3px; vertical-align: -3px; }
.mock-project { flex: 1; text-align: center; }
.mock-export { color: white; padding: 6px 11px; border-radius: 5px; background: var(--violet); }
.mock-workspace { display: grid; grid-template-columns: 40px 120px 1fr; height: 300px; }
.mock-sidebar { background: #0b0d13; border-right: 1px solid #222631; display: flex; align-items: center; flex-direction: column; gap: 15px; padding-top: 18px; }
.mock-sidebar i { width: 13px; height: 13px; border: 1px solid #555b69; border-radius: 3px; }
.mock-sidebar i.active { background: var(--violet); border-color: var(--violet); }
.mock-media { padding: 17px 11px; border-right: 1px solid #222631; }
.mock-media small { color: #7b8190; font-size: 6px; letter-spacing: 1px; }
.mock-upload { margin: 12px 0; padding: 9px 4px; text-align: center; border: 1px dashed #404653; color: #aab0be; font-size: 7px; border-radius: 5px; }
.mock-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mock-media-grid i { height: 45px; border-radius: 4px; background: linear-gradient(145deg,#f09d70,#6c405c 65%,#24223b); }
.mock-media-grid i:nth-child(2) { background: linear-gradient(145deg,#6d9c9a,#193049 70%); }
.mock-media-grid i:nth-child(3) { background: linear-gradient(145deg,#c39e73,#614659 70%); }
.mock-media-grid i:nth-child(4) { background: linear-gradient(145deg,#9c7dce,#333b61 70%); }
.mock-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #171a23; }
.mock-video { width: 81%; aspect-ratio: 16/9; position: relative; overflow: hidden; background: linear-gradient(#7073ad 0 42%, #e29f6a 76%, #422b57); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.mock-sun { position: absolute; width: 25px; height: 25px; right: 20%; top: 20%; border-radius: 50%; background: #ffdf96; box-shadow: 0 0 30px #ffbd7a; }
.mock-hill { position: absolute; left: -15%; bottom: -48%; width: 80%; height: 85%; background: #26253f; border-radius: 50%; transform: rotate(10deg); }
.mock-hill.two { left: 43%; bottom: -58%; width: 85%; background: #1b213b; transform: rotate(-11deg); }
.mock-caption { position: absolute; left: 8%; bottom: 13%; font-family: Manrope,sans-serif; font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,.8); }
.mock-caption strong { font-size: 17px; color: white; }
.mock-controls { margin-top: 17px; color: #787e8d; font-size: 7px; }
.mock-timeline { height: 120px; position: relative; border-top: 1px solid #272b35; background: #0e1118; padding: 18px 18px 10px 45px; }
.mock-ruler { height: 11px; border-bottom: 1px solid #313641; background: repeating-linear-gradient(90deg,transparent 0 29px,#363a47 30px 31px); }
.mock-track { height: 41px; display: flex; gap: 3px; margin-top: 8px; }
.mock-track i { width: 31%; border-radius: 3px; background: linear-gradient(145deg,#796979,#48324f); border: 1px solid #9a75b2; }
.mock-track i:nth-child(2) { background: linear-gradient(145deg,#596c85,#28354b); }
.mock-track i:nth-child(3) { background: linear-gradient(145deg,#976f64,#543641); }
.mock-audio { height: 14px; width: 77%; margin-top: 4px; border-radius: 3px; background: repeating-linear-gradient(90deg,#5045a4 0 2px,#6958d2 2px 3px,#3b3477 3px 5px); opacity: .7; }
.mock-playhead { position: absolute; left: 42%; top: 13px; width: 1px; height: 95px; background: var(--coral); box-shadow: 0 0 8px rgba(255,118,95,.5); }
.mock-playhead::before { content:""; position:absolute; top:-1px; left:-4px; border: 4px solid transparent; border-top-color:var(--coral); }
.floating-badge { position: absolute; display: flex; align-items: center; gap: 8px; background: rgba(20,23,33,.92); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); border-radius: 9px; padding: 9px 12px; color: #c7cad4; font-size: 10px; backdrop-filter: blur(12px); }
.floating-badge span { color: var(--violet-2); font-size: 15px; }
.badge-one { left: -20px; bottom: 92px; }
.badge-two { right: -15px; top: 78px; }
.badge-two span { color: var(--mint); }

.tools-section { padding: 86px 0 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-kicker { color: var(--violet-2); font-size: 10px; letter-spacing: 2px; font-weight: 800; }
.section-heading h2 { font-family: Manrope,sans-serif; margin: 8px 0 0; font-size: 35px; letter-spacing: -1.6px; }
.section-heading p { color: #777d8d; max-width: 390px; font-size: 13px; line-height: 1.6; margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-card { min-height: 112px; border: 1px solid var(--line); background: #10131b; border-radius: 14px; padding: 18px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; cursor: pointer; text-align: left; transition: border .2s, transform .2s, background .2s; }
.tool-card:hover { border-color: rgba(155,138,255,.48); transform: translateY(-3px); background: #151824; }
.tool-card.card-featured { background: linear-gradient(130deg,rgba(123,97,255,.19),rgba(123,97,255,.04)); border-color: rgba(123,97,255,.3); }
.tool-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 5px; }
.tool-card strong { font-family: Manrope,sans-serif; font-size: 15px; }
.tool-card small { color: #747a8a; font-size: 11px; }
.tool-card > b { color: #606675; font-weight: 400; transition: transform .2s; }
.tool-card:hover > b { color: white; transform: translateX(3px); }
.tool-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(123,97,255,.12); color: var(--violet-2); font-size: 22px; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.icon-compress { color: var(--mint); background: rgba(81,230,174,.1); }
.icon-edit { color: var(--violet); background: rgba(123,97,255,.1); }
.icon-trim { color: var(--coral); background: rgba(255,118,95,.1); }
.icon-merge { color: var(--blue); background: rgba(85,167,255,.1); }
.icon-crop { color: var(--yellow); background: rgba(247,199,92,.1); }
.icon-watermark { color: #d688f4; background: rgba(214,136,244,.1); }

.features-section { padding: 40px 0 80px; }
.feature-callout { border: 1px solid var(--line); background: linear-gradient(100deg,#11151d,#0c0f16); border-radius: 18px; padding: 30px 34px; display: grid; grid-template-columns: 60px 1.3fr 1fr; align-items: center; gap: 18px; }
.lock-orbit { width: 52px; height: 52px; border: 1px solid rgba(81,230,174,.3); color: var(--mint); display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 20px rgba(81,230,174,.1); }
.feature-callout small { color: var(--mint); font-size: 9px; letter-spacing: 1.8px; }
.feature-callout h3 { font-family: Manrope,sans-serif; margin: 6px 0 0; font-size: 21px; }
.feature-callout p { margin: 0; color: #7f8594; font-size: 13px; line-height: 1.6; }
.feature-strip { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); padding: 34px 10px; color: #9297a6; font-size: 12px; }
.feature-strip span { display: flex; gap: 14px; justify-content: center; }
.feature-strip b { color: #4e5362; font-weight: 500; }

/* Creator Section */
.creator-section { padding: 40px 0 80px; }
.creator-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.creator-card { background: #11141d; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.creator-card:hover { border-color: rgba(123,97,255,.4); transform: translateY(-2px); }
.creator-card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(123,97,255,.12); color: var(--violet-2); }
.creator-card h3 { font-family: Manrope,sans-serif; margin: 0; font-size: 20px; letter-spacing: -.5px; }
.creator-card p { margin: 0; color: #888e9f; font-size: 13px; line-height: 1.65; flex: 1; }
.creator-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.creator-tags span { background: #181d2a; border: 1px solid rgba(255,255,255,.06); color: #a5abbb; font-size: 11px; padding: 4px 10px; border-radius: 6px; }

/* How-To Section */
.howto-section { padding: 40px 0 80px; }
.howto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.howto-step { background: #10131c; border: 1px solid var(--line); border-radius: 16px; padding: 28px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: Manrope,sans-serif; font-size: 32px; font-weight: 800; color: rgba(123,97,255,.3); }
.howto-step h3 { margin: 0; font-family: Manrope,sans-serif; font-size: 18px; }
.howto-step p { margin: 0; color: #858b9c; font-size: 13px; line-height: 1.6; }

/* Comparison Section */
.comparison-section { padding: 40px 0 80px; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #0f121a; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.comparison-table th, .comparison-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.comparison-table th { background: #141822; font-family: Manrope,sans-serif; font-size: 14px; color: #9ea4b4; font-weight: 700; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .highlight-col { background: rgba(123,97,255,.07); border-inline: 1px solid rgba(123,97,255,.2); }
.badge-good { color: var(--mint); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.badge-good::before { content: "✓"; font-size: 14px; }

/* FAQ Section */
.faq-section { padding: 40px 0 100px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); background: #11141d; border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: rgba(123,97,255,.35); background: #131722; }
.faq-item summary { list-style: none; padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-family: Manrope,sans-serif; font-size: 16px; font-weight: 700; color: #e1e3ea; }
.faq-arrow { color: #767c8d; font-size: 11px; transition: transform .25s ease; }
.faq-item[open] .faq-arrow { transform: rotate(180deg); color: var(--violet-2); }
.faq-answer { padding: 0 24px 22px; color: #9298a8; font-size: 14px; line-height: 1.7; }
.faq-answer p { margin: 0; }

/* Footer */
.home-footer { border-top: 1px solid var(--line); padding: 60px 0 40px; display: flex; flex-direction: column; gap: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { color: #848a9b; font-size: 13px; line-height: 1.6; margin: 14px 0 16px; max-width: 320px; }
.footer-privacy-note { color: var(--mint); font-size: 12px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: white; font-size: 13px; margin-bottom: 4px; font-family: Manrope,sans-serif; }
.footer-link { background: none; border: 0; padding: 0; text-align: left; color: #848a9b; font-size: 13px; cursor: pointer; text-decoration: none; display: block; }
.footer-link:hover { color: white; }
.footer-tag { color: #737989; font-size: 12px; text-decoration: none; display: block; cursor: pointer; transition: color .15s; }
.footer-tag:hover { color: var(--violet-2); }
.creator-btn { margin-top: auto; justify-content: center; min-height: 42px; font-size: 12px; }
.howto-action-btn { margin-top: auto; justify-content: center; min-height: 38px; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; color: #5d6374; font-size: 11px; }
.footer-seo-keywords small { color: #4e5362; font-size: 10px; }

/* Compressor Modal Styles */
.compress-shell { width: 580px; }
.compress-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.compress-details { display: flex; flex-direction: column; gap: 16px; }
.compress-file-card { display: flex; justify-content: space-between; align-items: center; background: #161a24; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.compress-file-card strong { font-size: 13px; display: block; }
.compress-file-card small { color: #767c8d; font-size: 11px; margin-top: 3px; display: block; }
.compress-options-block { display: flex; flex-direction: column; gap: 10px; }
.compress-preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.compress-preset-card input { position: absolute; opacity: 0; }
.compress-preset-card span { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #161a24; transition: border-color .15s, background .15s; }
.compress-preset-card b { font-size: 13px; }
.compress-preset-card small { color: #737989; font-size: 11px; }
.compress-preset-card input:checked + span { border-color: var(--violet); background: rgba(123,97,255,.12); box-shadow: inset 0 0 0 1px rgba(123,97,255,.3); }
.compress-estimate-box { display: flex; align-items: center; gap: 10px; background: rgba(81,230,174,.07); border: 1px solid rgba(81,230,174,.2); padding: 12px 16px; border-radius: 9px; font-size: 12px; color: #a4abbb; }
.compress-estimate-box strong { color: white; font-size: 14px; }
.compress-savings-pill { margin-left: auto; background: var(--mint); color: #080a10; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 5px; }

/* Editor */
.editor-view { height: 100vh; min-height: 760px; display: grid; grid-template-rows: 62px minmax(350px,1fr) 306px; overflow: hidden; background: #090b11; }
.editor-header { height: 58px; display: flex; align-items: center; padding: 0 14px; background: #0c0f15; border-bottom: 1px solid var(--line); z-index: 10; }
.brand-compact { width: 125px; font-size: 16px; }
.brand-compact .brand-mark { width: 23px; height: 23px; border-radius: 6px; }
.brand-compact .brand-mark i { height: 13px; top: 5px; width: 6px; }
.brand-compact .brand-mark i:first-child { left: 5px; }.brand-compact .brand-mark i:last-child { left: 12px; }
.header-divider { width: 1px; height: 24px; background: var(--line); margin-right: 14px; }
.project-title-wrap { display: flex; flex-direction: column; width: 210px; }
.project-title-wrap input { border: 0; padding: 1px 3px; background: transparent; color: #dedfe5; font-size: 12px; font-weight: 600; }
.project-title-wrap span { color: #606676; font-size: 8px; padding-left: 3px; }
.editor-header-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.icon-button { width: 31px; height: 31px; border: 0; border-radius: 7px; display: grid; place-items: center; color: #8b91a0; background: transparent; cursor: pointer; font-size: 17px; }
.icon-button:hover { background: rgba(255,255,255,.06); color: white; }
.editor-header-actions { margin-left: auto; display: flex; gap: 8px; }
.editor-header .button { min-height: 34px; font-size: 11px; border-radius: 7px; padding-inline: 13px; }

.editor-main { min-height: 0; display: grid; grid-template-columns: 70px 250px minmax(420px,1fr) 270px; }
.tool-rail { background: #0b0e14; border-right: 1px solid var(--line); padding: 10px 7px; display: flex; flex-direction: column; gap: 3px; overflow-y:auto; scrollbar-width:none; }
.rail-tool { height: 55px; border: 0; border-radius: 8px; background: transparent; color: #666c7a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.rail-tool span { font-size: 17px; line-height: 1; }
.rail-tool small { font-size: 9px; }
.rail-tool:hover { color: #bfc3ce; background: rgba(255,255,255,.035); }
.rail-tool.active { color: #b5a9ff; background: rgba(123,97,255,.12); }
.asset-panel, .inspector-panel { background: #10131b; overflow: auto; scrollbar-width: thin; scrollbar-color: #343946 transparent; }
.asset-panel { border-right: 1px solid var(--line); }
.inspector-panel { border-left: 1px solid var(--line); }
.panel-inner { padding: 17px 15px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.panel-heading h3, .inspector-heading h3 { margin: 3px 0 0; font-family: Manrope,sans-serif; font-size: 14px; }
.panel-heading small, .inspector-heading small { color: #606675; font-size: 8px; letter-spacing: 1.4px; }
.panel-description { color: #8a90a0; font-size: 11px; line-height: 1.55; margin: -6px 0 14px; }
.panel-upload { display: block; width: 100%; border: 1px dashed #3a3f4d; color: #b9bdc8; background: #151923; border-radius: 9px; padding: 11px; cursor: pointer; font-size: 10px; text-align: center; }
.panel-upload:hover { border-color: var(--violet); background: rgba(123,97,255,.07); }
.sticker-toolbar { display:grid; grid-template-columns:1fr; gap:10px; margin-bottom:12px; }
.sticker-toolbar .field-label { margin:0; }
.sticker-toolbar .field-input { width:100%; }
.sticker-text { font-size:12px !important; font-family:Manrope,sans-serif; font-weight:800; }
.highlight-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.social-profile-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.theme-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.theme-card { border:1px solid var(--line); border-radius:9px; background:#171b25; color:#c8cad4; padding:7px 5px; cursor:pointer; text-align:center; display:grid; gap:5px; }
.theme-card i { display:block; height:30px; border-radius:6px; background:linear-gradient(135deg,var(--theme-color),#090b10 75%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.theme-card span { font-size:8px; }
.theme-card:hover,.theme-card.active { border-color:var(--violet); color:#fff; background:rgba(123,97,255,.11); }
.counter-grid { display:grid; gap:7px; margin-top:10px; }
.counter-card { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:9px; background:#171b25; color:#c8cad4; padding:10px; text-align:left; cursor:pointer; }
.counter-card>b { width:31px; height:31px; display:grid; place-items:center; border-radius:8px; color:#ffd84d; background:rgba(255,216,77,.12); font-size:15px; }
.counter-card span { display:grid; gap:3px; }.counter-card strong { color:#fff; font-size:10px; }.counter-card small { color:#777d8c; font-size:8px; }.counter-card:hover { border-color:var(--violet); background:rgba(123,97,255,.1); }
.social-profile-card { min-height:78px; border:1px solid var(--line); border-radius:9px; background:#171b25; color:#c8cad4; cursor:pointer; padding:9px; text-align:left; display:grid; gap:3px; }
.social-profile-card b { color:#fff; font-size:10px; }.social-profile-card span { color:var(--violet-2); font-size:11px; font-weight:700; }.social-profile-card small { color:#777d8c; font-size:8px; }.social-profile-card:hover,.social-profile-card.active { border-color:var(--violet); background:rgba(123,97,255,.12); }
.highlight-card { min-height:76px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:1px solid var(--line); border-radius:10px; background:#151923; color:#c8cad4; cursor:pointer; }
.highlight-card:hover { border-color:var(--violet); background:rgba(123,97,255,.12); color:#fff; }
.highlight-card b { font-size:23px; color:#ffd84d; }
.highlight-card span { font-size:10px; }
.template-grid { display:grid; gap:8px; }
.template-card { width:100%; display:flex; align-items:center; gap:12px; text-align:left; border:1px solid var(--line); border-radius:11px; padding:12px; background:#151923; color:#fff; cursor:pointer; }
.template-card:hover { border-color:var(--violet); transform:translateY(-1px); }
.template-card>b { width:35px; height:35px; display:grid; place-items:center; border-radius:9px; background:linear-gradient(145deg,#9b8aff,#6a4cff); font-size:18px; }
.template-card span { display:grid; gap:3px; }
.template-card small { color:var(--muted); font-size:10px; }
.audio-quick-actions { display:flex; gap:7px; margin:11px 0 4px; }
.audio-quick-actions .small-action { flex:1; }
.keyframe-box { display:grid; gap:10px; padding:11px; margin:12px 0; border:1px solid rgba(123,97,255,.35); border-radius:11px; background:rgba(123,97,255,.08); }
.keyframe-box>div:first-child { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.keyframe-box small { color:#b7b2d9; font-size:10px; }
.sticker-inspector-preview { min-height:72px; display:grid; place-items:center; margin-bottom:10px; font-size:52px; border-radius:10px; background:radial-gradient(circle,#272238,#151923); }
.counter-preview-value { margin:8px 0 11px; padding:10px; border-radius:8px; text-align:center; color:#ffd84d; background:linear-gradient(135deg,rgba(255,216,77,.12),rgba(99,245,178,.08)); font:800 19px Manrope,sans-serif; }
.counter-input-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.media-tile { border: 1px solid var(--line); background: #171b25; padding: 0; border-radius: 7px; overflow: hidden; cursor: pointer; text-align: left; position: relative; }
.media-tile:hover { border-color: var(--violet); }
.media-thumb { height: 62px; background: #232834 center/cover no-repeat; display: grid; place-items: center; color: #7d8495; font-size: 20px; }
.media-tile span { display: block; padding: 6px 7px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8px; }
.media-tile small { display: block; padding: 0 7px 6px; font-size: 7px; color: #636978; }
.media-add { position: absolute; right: 5px; top: 5px; border: 0; background: rgba(12,14,20,.88); width: 23px; height: 23px; border-radius: 6px; color: white; cursor: pointer; }
.media-actions { position:absolute; left:5px; right:33px; top:5px; display:flex; gap:4px; opacity:0; transition:opacity .16s; }
.media-tile:hover .media-actions { opacity:1; }
.media-action { border:0; height:23px; padding:0 6px; border-radius:5px; background:rgba(12,14,20,.9); color:#d7dae3; font-size:8px; cursor:pointer; }
.media-action:hover { background:var(--violet); color:white; }.media-action.danger:hover { background:#a94444; }
.empty-panel { margin-top: 18px; padding: 20px 10px; text-align: center; color: #5e6473; font-size: 9px; border: 1px solid var(--line); border-radius: 9px; }
.empty-panel b { display: block; color: #9ca1ae; font-size: 22px; margin-bottom: 8px; }

.preview-column { min-width: 0; min-height: 0; background: #171a22; display: grid; grid-template-rows: 34px minmax(0,1fr) 42px 42px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.045); color: #717786; font-size: 8px; }
.mini-button { border: 0; padding: 5px 8px; background: transparent; color: #686e7d; border-radius: 5px; cursor: pointer; font-size: 8px; }
.mini-button.active, .mini-button:hover { background: #262a35; color: #d1d4dc; }
.stage-wrap { min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 15px 20px; overflow: hidden; }
.canvas-frame { max-width: 100%; max-height: 100%; width: min(80%, 760px); aspect-ratio: 16/9; box-shadow: 0 12px 45px rgba(0,0,0,.42); background: #090b10; position: relative; overflow: hidden; }
#previewCanvas { width: 100%; height: 100%; display: block; background: #090b10; touch-action:none; cursor:crosshair; }
.canvas-frame.layer-selected { outline:1px solid rgba(155,138,255,.55); outline-offset:4px; }
.canvas-frame.layer-selected #previewCanvas { cursor:move; }
.direct-selection { position:absolute; z-index:4; border:1px solid rgba(155,138,255,.95); box-shadow:0 0 0 1px rgba(10,11,17,.65),0 0 20px rgba(123,97,255,.22); pointer-events:none; cursor:move; }
.direct-selection.video { border-style:dashed; border-color:rgba(81,230,174,.62); box-shadow:none; }
.direct-selection i { position:absolute; width:8px; height:8px; border:2px solid #fff; background:var(--violet); border-radius:2px; }
.direct-selection i:nth-child(1) { left:-5px; top:-5px; }.direct-selection i:nth-child(2) { right:-5px; top:-5px; }.direct-selection i:nth-child(3) { left:-5px; bottom:-5px; }.direct-selection i:nth-child(4) { right:-5px; bottom:-5px; }
.direct-selection b { position:absolute; left:5px; top:calc(100% + 7px); white-space:nowrap; border-radius:5px; padding:4px 6px; background:rgba(8,10,16,.86); color:#dad6ff; font-size:8px; font-weight:500; pointer-events:none; }
.empty-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: #6f7584; pointer-events: none; }
.empty-stage-icon { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed #4c5261; margin-bottom: 3px; font-size: 20px; }
.empty-stage strong { color: #9da2af; font-size: 11px; }.empty-stage small { font-size: 8px; }
.safe-grid { position: absolute; inset: 10%; pointer-events: none; border: 1px dashed rgba(255,255,255,.3); }
.safe-grid i { position: absolute; background: rgba(255,255,255,.18); }
.safe-grid i:nth-child(1),.safe-grid i:nth-child(2) { width: 1px; height: 100%; top: 0; left: 33.33%; }
.safe-grid i:nth-child(2) { left: 66.66%; }.safe-grid i:nth-child(3),.safe-grid i:nth-child(4) { height: 1px; width: 100%; left: 0; top: 33.33%; }.safe-grid i:nth-child(4) { top: 66.66%; }
.player-bar { border-top: 1px solid rgba(255,255,255,.045); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 10px; }
.player-left, .player-right { display: flex; align-items: center; gap: 3px; }.player-right { justify-content: flex-end; }
.player-button { border: 0; min-width: 28px; height: 27px; background: transparent; color: #747a89; border-radius: 6px; cursor: pointer; font-size: 9px; }
.player-button:hover { background: rgba(255,255,255,.06); color: white; }
.play-button { width: 28px; height: 28px; border-radius: 50%; background: #eeeafc; color: #15121d; border: 0; cursor: pointer; font-size: 10px; padding-left: 3px; }
.time-display { font-variant-numeric: tabular-nums; color: #c0c3cc; font-size: 9px; }.time-display i { color: #565c6a; font-style: normal; margin: 0 4px; }
.mini-select { border: 0; background: #20242e; color: #9297a5; border-radius: 5px; height: 25px; padding: 0 6px; font-size: 8px; }
.quick-actions { display:flex; align-items:center; gap:5px; padding:0 10px; border-top:1px solid rgba(255,255,255,.045); overflow-x:auto; scrollbar-width:none; }
.quick-actions::-webkit-scrollbar { display:none; }
.quick-action { flex:0 0 auto; min-width:56px; height:30px; padding:0 7px; border:1px solid rgba(255,255,255,.06); border-radius:7px; background:#1b1f2a; color:#969baa; display:flex; align-items:center; justify-content:center; gap:4px; cursor:pointer; font-size:8px; }
.quick-action b { color:#c2b9ff; font-size:12px; line-height:1; }.quick-action:hover { border-color:var(--violet); color:#fff; background:rgba(123,97,255,.13); }.quick-action.danger b,.quick-action.danger:hover { color:#ff9b8e; }

.inspector-heading { position: sticky; top: 0; z-index: 2; background: #10131b; border-bottom: 1px solid var(--line); padding: 14px 14px 10px; display: flex; justify-content: space-between; align-items: center; }
.inspector-content-inner { padding: 13px 14px 30px; }
.property-section { border-bottom: 1px solid var(--line); padding: 2px 0 14px; margin-bottom: 13px; }
.property-section:last-child { border-bottom: 0; }
.property-section h4 { margin: 0 0 11px; color: #b8bbc5; font-size: 9px; letter-spacing: .7px; }
.property-row { display: grid; grid-template-columns: 58px 1fr 37px; align-items: center; gap: 7px; margin: 8px 0; color: #797f8e; font-size: 8px; }
.property-row output { text-align: right; color: #aeb2bd; font-variant-numeric: tabular-nums; }
.property-row input[type="range"] { width: 100%; height: 3px; accent-color: var(--violet); }
.field-input, .field-select, .field-textarea { width: 100%; border: 1px solid var(--line); background: #191d27; color: #d3d5dc; border-radius: 7px; min-height: 32px; padding: 7px 9px; font-size: 9px; }
.field-textarea { min-height: 66px; resize: vertical; }
.field-label { display: block; margin: 12px 0 6px; color: #8b909e; font-size: 9px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin: 9px 0; color: #8d92a0; font-size: 9px; }
.switch { width: 31px; height: 18px; border-radius: 12px; background: #303542; position: relative; cursor: pointer; }
.switch input { opacity: 0; position: absolute; }.switch i { position:absolute; width: 12px; height: 12px; border-radius: 50%; left:3px; top:3px; background:#8b909e; transition:.2s; }.switch:has(input:checked) { background:var(--violet); }.switch input:checked+i { left:16px; background:white; }
.button-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-top: 8px; }
.small-action { border: 1px solid var(--line); background: #191d27; color: #9ca1ae; border-radius: 7px; min-height: 31px; cursor: pointer; font-size: 8px; }
.small-action:hover,.small-action.active { border-color: var(--violet); color: white; background: rgba(123,97,255,.1); }
.small-action.danger { color: #ee8c82; }

.timeline-section { border-top: 1px solid var(--line); background: #0c0f15; min-height: 0; }
.timeline-toolbar { height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
.timeline-actions,.timeline-zoom { display: flex; align-items: center; gap: 4px; }
.timeline-button { border: 1px solid transparent; height: 30px; border-radius: 7px; background: transparent; color: #969baa; cursor: pointer; padding: 0 9px; font-size: 10px; }
.timeline-button:hover { color: white; background: rgba(255,255,255,.055); }.timeline-button.danger:hover { color: #ff8e7d; }
.timeline-button.danger:not(:disabled) { color:#ff988a; background:rgba(255,118,95,.08); border-color:rgba(255,118,95,.14); }
.timeline-button:disabled { opacity:.28; cursor:not-allowed; }
.toolbar-divider { width:1px; height:16px; background:var(--line); margin:0 5px; }
.timeline-zoom span { color:#505665; font-size:10px; }.timeline-zoom input { width:90px; height:3px; accent-color:var(--violet); }
.timeline-body { height: calc(100% - 42px); min-height: 0; display: grid; grid-template-columns: 66px 1fr; }
.track-labels { border-right: 1px solid var(--line); display: grid; grid-template-rows: 25px 64px 46px 46px 46px 46px 18px; background:#0b0e14; }
.track-labels > div:not(.ruler-label) { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; border-bottom:1px solid rgba(255,255,255,.035); color:#555b69; }
.track-labels span { font-size:11px; }.track-labels small { font-size:6px; letter-spacing:.8px; }
.timeline-scroller { overflow: auto; scrollbar-width: thin; scrollbar-color:#333845 transparent; }
.timeline-content { position: relative; min-width: 100%; width: 100%; height: 291px; }
.timeline-ruler { height:25px; position:relative; border-bottom:1px solid rgba(255,255,255,.05); background:repeating-linear-gradient(90deg,transparent 0 74px,#3a3f4d 75px 76px); }
.ruler-mark { position:absolute; top:5px; color:#575d6c; font-size:7px; transform:translateX(3px); }
.timeline-track { position:relative; border-bottom:1px solid rgba(255,255,255,.035); }
.video-track { height:64px; }.overlay-track,.highlight-track,.text-track,.audio-track { height:46px; }
.timeline-clip { position:absolute; top:7px; height:50px; border-radius:6px; overflow:hidden; border:1px solid #5e547b; background:#292439; cursor:pointer; min-width:24px; user-select:none; }
.timeline-clip:hover,.timeline-clip.selected { border-color:#a896ff; box-shadow:0 0 0 1px rgba(168,150,255,.35); }
.timeline-clip.selected::after { content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,.22); pointer-events:none; }
.clip-visual { position:absolute; inset:0; background-size:auto 100%; background-position:center; opacity:.54; }
.clip-label { position:absolute; left:10px; top:7px; right:10px; color:white; font-size:8px; text-shadow:0 1px 2px #000; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.clip-time { position:absolute; left:10px; bottom:6px; font-size:7px; color:rgba(255,255,255,.65); }
.trim-handle { position:absolute; z-index:2; top:0; bottom:0; width:7px; background:rgba(155,138,255,.75); opacity:0; cursor:ew-resize; }.timeline-clip:hover .trim-handle,.timeline-clip.selected .trim-handle { opacity:1; }.trim-handle.left { left:0; }.trim-handle.right { right:0; }
.text-timeline-item,.audio-timeline-item,.overlay-timeline-item { position:absolute; top:6px; height:34px; border-radius:5px; border:1px solid rgba(85,167,255,.45); background:rgba(85,167,255,.14); color:#a8d0ff; font-size:8px; padding:9px 9px; overflow:hidden; white-space:nowrap; cursor:pointer; }
.audio-timeline-item { border-color:rgba(81,230,174,.4); color:#8decc9; background:repeating-linear-gradient(90deg,rgba(81,230,174,.10) 0 3px,rgba(81,230,174,.22) 3px 4px,rgba(81,230,174,.08) 4px 7px); }
.overlay-timeline-item { border-color:rgba(214,136,244,.45); color:#e3a6f7; background:rgba(214,136,244,.13); }
.counter-timeline-item { border-color:rgba(255,216,77,.5); color:#ffe48a; background:rgba(255,216,77,.12); }
.text-timeline-item.selected,.audio-timeline-item.selected,.overlay-timeline-item.selected { border-color:white; }
.highlight-timeline-item { position:absolute; top:7px; height:34px; border-radius:7px; padding:10px 10px; font-size:10px; color:#221b00; background:linear-gradient(90deg,#ffd84d,#ff9e48); border:1px solid rgba(255,216,77,.65); overflow:hidden; white-space:nowrap; cursor:pointer; }
.highlight-timeline-item.selected { box-shadow:0 0 0 2px #fff,0 0 0 4px var(--violet); }
.marker-track { height:18px; position:relative; background:rgba(255,216,77,.03); }
.marker-timeline-item { position:absolute; top:0; transform:translateX(-50%); border:0; background:transparent; color:#ffd84d; font-size:15px; cursor:pointer; padding:0 3px; }
.timeline-playhead { position:absolute; z-index:10; left:0; top:19px; width:1px; height:208px; background:var(--coral); pointer-events:none; }
.timeline-playhead i { position:absolute; left:-5px; top:-2px; width:11px; height:8px; background:var(--coral); clip-path:polygon(0 0,100% 0,75% 100%,25% 100%); }

.preset-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.preset-card { min-height:65px; border:1px solid var(--line); background:#171b25; color:white; border-radius:8px; cursor:pointer; display:grid; place-items:center; padding:8px; text-align:center; font-family:Manrope,sans-serif; }
.preset-card:hover { border-color:var(--violet); }.preset-card small { display:block; color:#6e7483; font-family:"DM Sans"; margin-top:3px; font-size:7px; }
.ratio-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }
.ratio-card { border:1px solid var(--line); background:#171b25; min-height:54px; border-radius:8px; color:#8e94a3; cursor:pointer; font-size:9px; }
.ratio-card i { display:block; margin:0 auto 5px; width:21px; height:13px; border:1px solid currentColor; }.ratio-card[data-ratio="9:16"] i { width:10px; height:18px; }.ratio-card[data-ratio="1:1"] i { width:15px; height:15px; }.ratio-card[data-ratio="4:5"] i { width:13px; height:17px; }
.ratio-card.active,.ratio-card:hover { border-color:var(--violet); color:white; background:rgba(123,97,255,.09); }
.transition-card { border:1px solid var(--line); background:#171b25; border-radius:8px; padding:10px; margin-bottom:7px; cursor:pointer; display:flex; align-items:center; gap:10px; color:#a5a9b5; font-size:9px; }
.transition-card:hover,.transition-card.active { border-color:var(--violet); color:white; }.transition-preview { width:44px; height:25px; border-radius:4px; background:linear-gradient(90deg,#554d80 0 48%,#b16868 52%); position:relative; }
.transition-pack-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.transition-pack-grid .transition-card { margin:0; min-height:52px; padding:7px; font-size:8px; }
.transition-pack-grid .transition-preview { flex:0 0 38px; width:38px; height:23px; }
.transition-preview.glitch::after,.transition-preview.rgb-split::after,.transition-preview.flash::after { content:"✦"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; }
.transition-preview.iris::after,.transition-preview.radial::after { content:"◉"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; }
.transition-preview.fade::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,#0d1017,transparent); }.transition-preview.slide::after { content:"→"; position:absolute; inset:0; display:grid; place-items:center; color:white; }.transition-preview.zoom::after { content:"＋"; position:absolute; inset:0; display:grid; place-items:center; color:white; }
.notice-box { padding:10px; border:1px solid rgba(247,199,92,.18); background:rgba(247,199,92,.06); color:#aaa28d; border-radius:8px; font-size:8px; line-height:1.5; margin-top:12px; }
.sticker-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }
.sticker-button { aspect-ratio:1; border:1px solid var(--line); background:#171b25; border-radius:9px; font-size:24px; cursor:pointer; }
.sticker-button:hover { border-color:var(--violet); transform:translateY(-2px); }
.effect-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.effect-card { border:1px solid var(--line); background:#171b25; border-radius:9px; min-height:62px; padding:9px; cursor:pointer; text-align:left; font-size:9px; position:relative; overflow:hidden; }
.effect-card::before { content:""; display:block; height:27px; margin:-9px -9px 7px; background:linear-gradient(120deg,#2d3154,#8c5666); }
.effect-card[data-effect="noir"]::before { filter:grayscale(1); }.effect-card[data-effect="dream"]::before { background:linear-gradient(120deg,#c594cf,#6aa5bd); }.effect-card[data-effect="retro"]::before { background:linear-gradient(120deg,#d39a63,#6d453f); }.effect-card[data-effect="cool"]::before { background:linear-gradient(120deg,#2e5e91,#4db2a3); }
.effect-card:hover,.effect-card.active { border-color:var(--violet); }

/* Modals and feedback */
.modal { border:0; padding:0; background:transparent; color:var(--ink); overflow:visible; }
.modal::backdrop { background:rgba(3,4,8,.78); backdrop-filter:blur(8px); }
.modal-shell { width:520px; max-height:90vh; overflow:auto; padding:0; border:1px solid var(--line-strong); border-radius:16px; background:#11141c; box-shadow:var(--shadow); }
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; padding:22px 24px 16px; border-bottom:1px solid var(--line); }
.modal-kicker { color:var(--violet-2); font-size:8px; letter-spacing:1.7px; font-weight:800; }.modal-header h2 { font-family:Manrope,sans-serif; margin:5px 0 0; font-size:22px; letter-spacing:-.7px; }
.modal-close { border:0; background:transparent; color:#787e8d; font-size:22px; cursor:pointer; }
.export-preview-row { display:flex; gap:13px; align-items:center; padding:17px 24px; border-bottom:1px solid var(--line); }.export-thumb { width:112px; aspect-ratio:16/9; position:relative; overflow:hidden; border-radius:7px; background:#090b10; }.export-thumb canvas { width:100%; height:100%; object-fit:cover; }.export-thumb span { position:absolute; right:4px; bottom:4px; font-size:7px; background:rgba(0,0,0,.68); padding:2px 4px; border-radius:3px; }.export-preview-row > div:last-child { display:flex; flex-direction:column; gap:5px; }.export-preview-row strong { font-size:11px; }.export-preview-row small { color:#6f7584; font-size:8px; }
.export-options { padding:4px 24px 17px; }.resolution-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }.resolution-grid label input { position:absolute; opacity:0; }.resolution-grid span { display:flex; flex-direction:column; align-items:center; padding:11px; border:1px solid var(--line); border-radius:8px; cursor:pointer; background:#171b24; }.resolution-grid b { font-size:11px; }.resolution-grid small { color:#686e7d; font-size:7px; margin-top:3px; }.resolution-grid input:checked+span { border-color:var(--violet); background:rgba(123,97,255,.1); box-shadow:inset 0 0 0 1px rgba(123,97,255,.2); }
.export-info { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.045); color:#727786; font-size:8px; }.export-info strong { color:#b7bbc6; font-weight:500; }
.modal-footer { display:flex; justify-content:flex-end; gap:8px; padding:14px 24px; border-top:1px solid var(--line); }.button-export { min-width:145px; }
.export-progress-wrap { padding:16px 24px; border-top:1px solid var(--line); }.export-progress-wrap > div { display:flex; justify-content:space-between; color:#a5a9b5; font-size:9px; }.export-progress-wrap progress { width:100%; height:6px; border:0; margin:10px 0 4px; accent-color:var(--violet); }.export-progress-wrap small { color:#656b79; font-size:7px; }
.compact-modal { width:420px; padding-bottom:10px; }.menu-row { width:calc(100% - 32px); margin:10px 16px 0; border:1px solid var(--line); background:#171b24; color:white; border-radius:9px; padding:12px; display:flex; align-items:center; gap:12px; text-align:left; cursor:pointer; }.menu-row:hover { border-color:var(--violet); }.menu-row>span { width:32px; height:32px; display:grid; place-items:center; background:#222632; border-radius:7px; }.menu-row div { display:flex; flex-direction:column; gap:3px; }.menu-row strong { font-size:10px; }.menu-row small { color:#6c7281; font-size:8px; }.menu-danger strong,.menu-danger>span { color:#ff8f80; }
.merge-shell { width:680px; }.merge-shell .modal-header p { margin:6px 0 0; color:#737989; font-size:10px; }.merge-body { padding:18px 22px; }.merge-dropzone { width:100%; border:1px dashed #464c5c; border-radius:12px; min-height:92px; background:#151923; color:white; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px; cursor:pointer; }.merge-dropzone:hover { border-color:var(--violet); background:rgba(123,97,255,.08); }.merge-dropzone>span { color:var(--violet-2); font-size:24px; }.merge-dropzone strong { font-size:11px; }.merge-dropzone small { color:#6f7584; font-size:8px; }.merge-toolbar { display:flex; justify-content:space-between; align-items:center; padding:16px 2px 9px; color:#9297a5; font-size:9px; }.merge-toolbar button { border:0; background:transparent; color:#ff8f80; cursor:pointer; font-size:9px; }.merge-queue { max-height:340px; overflow:auto; display:flex; flex-direction:column; gap:8px; }.merge-empty { border:1px solid var(--line); border-radius:9px; padding:28px; text-align:center; color:#646a79; font-size:9px; }.merge-item { display:grid; grid-template-columns:24px 82px 1fr auto; gap:11px; align-items:center; min-height:66px; border:1px solid var(--line); background:#171b24; border-radius:10px; padding:8px 10px; }.merge-item.dragging { opacity:.45; }.merge-grip { color:#626877; cursor:grab; font-size:14px; }.merge-thumb { width:82px; height:48px; object-fit:cover; border-radius:6px; background:#272c38; }.merge-info { display:flex; flex-direction:column; gap:4px; min-width:0; }.merge-info strong { font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.merge-info small { color:#676d7c; font-size:8px; }.merge-actions { display:flex; gap:5px; }.merge-actions button { border:1px solid var(--line); background:#222631; color:#aeb2bd; border-radius:6px; height:28px; padding:0 8px; font-size:8px; cursor:pointer; }.merge-actions button:hover { border-color:var(--violet); color:white; }.merge-actions button.danger:hover { border-color:var(--coral); color:var(--coral); }
.context-menu { position:fixed; z-index:2000; width:185px; border:1px solid var(--line-strong); background:#161a23; box-shadow:0 18px 48px rgba(0,0,0,.45); border-radius:10px; padding:6px; }.context-menu button { width:100%; border:0; background:transparent; color:#bbc0cc; text-align:left; padding:8px 9px; border-radius:6px; font-size:9px; cursor:pointer; }.context-menu button:hover { background:rgba(123,97,255,.12); color:white; }.context-menu button.danger { color:#ff9284; }.context-menu>span { display:block; height:1px; background:var(--line); margin:4px; }
.toast-region { position:fixed; right:18px; bottom:18px; z-index:1000; display:flex; flex-direction:column; gap:8px; pointer-events:none; }.toast { min-width:240px; max-width:350px; background:#191d27; border:1px solid var(--line-strong); box-shadow:0 15px 40px rgba(0,0,0,.35); padding:11px 13px; border-radius:9px; display:flex; gap:9px; align-items:flex-start; animation:toastIn .25s ease; font-size:9px; color:#c9ccd4; }.toast b { color:var(--mint); }.toast.error b { color:var(--coral); }.toast span { line-height:1.5; }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } }
.busy-overlay { position:fixed; z-index:1100; inset:0; background:rgba(5,6,10,.78); backdrop-filter:blur(8px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; }.busy-overlay strong { font-family:Manrope,sans-serif; font-size:15px; }.busy-overlay small { color:#777d8c; font-size:9px; }.busy-spinner { width:32px; height:32px; border:3px solid rgba(255,255,255,.1); border-top-color:var(--violet); border-radius:50%; animation:spin .8s linear infinite; margin-bottom:4px; } @keyframes spin { to{transform:rotate(360deg)} }

@media (max-width:1120px) {
  .editor-main { grid-template-columns:60px 215px minmax(340px,1fr) 230px; }
  .hero { grid-template-columns:.85fr 1.15fr; }.hero h1{font-size:55px}.mock-workspace{height:265px}.mock-timeline{height:105px}.tool-grid{grid-template-columns:repeat(2,1fr)}
}

/* Mobile-first editor: keep the preview and cursor/touch actions front and center. */
@media (max-width:980px) {
  body { min-width:0; }
  .home-header { height:auto; padding:14px 0; flex-wrap:wrap; gap:16px; }
  .home-nav { width:100%; overflow-x:auto; padding-bottom:6px; white-space:nowrap; }
  .hero { grid-template-columns:1fr; gap:28px; padding-top:20px; }
  .section-heading { flex-direction:column; align-items:flex-start; gap:10px; }
  .creator-cards-grid { grid-template-columns:1fr; }
  .howto-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .feature-callout { grid-template-columns:1fr; text-align:center; }
  .lock-orbit { margin-inline:auto; }
  .feature-strip { grid-template-columns:repeat(2,1fr); gap:16px; }
  .editor-view { height:auto; min-height:100vh; overflow:visible; grid-template-rows:60px auto auto; }
  .editor-header { height:60px; padding:0 9px; }
  .brand-compact { width:105px; font-size:14px; }.header-divider { margin-right:8px; }.project-title-wrap { width:145px; }
  .project-title-wrap input { font-size:11px; }.editor-header-center { position:static; transform:none; margin-left:auto; }.editor-header-center .icon-button { width:28px; }
  .editor-header-actions .button-ghost { display:none; }.editor-header .button { padding-inline:10px; }
  .editor-main { grid-template-columns:54px minmax(0,1fr); grid-template-rows:minmax(390px,52vh) auto auto; min-height:0; }
  .tool-rail { grid-column:1; grid-row:1 / span 3; height:auto; min-height:100%; padding:6px 4px; gap:2px; position:sticky; top:0; align-self:start; }
  .rail-tool { height:52px; }.rail-tool span { font-size:15px; }.rail-tool small { font-size:8px; }
  .asset-panel { grid-column:2; grid-row:2; max-height:260px; border-right:0; border-top:1px solid var(--line); overflow:auto; }
  .preview-column { grid-column:2; grid-row:1; min-height:390px; height:52vh; grid-template-rows:34px minmax(0,1fr) 42px 42px; }
  .inspector-panel { grid-column:2; grid-row:3; min-height:0; max-height:330px; border-left:0; border-top:1px solid var(--line); overflow:auto; }
  .stage-wrap { padding:10px; }.canvas-frame { width:min(96%,760px); }.player-bar { padding:0 7px; }.quick-actions { padding:0 7px; }
  .timeline-section { min-height:255px; }.timeline-toolbar { height:auto; min-height:46px; padding:4px 7px; gap:8px; overflow-x:auto; white-space:nowrap; }.timeline-actions { flex-wrap:nowrap; }.timeline-button { padding:0 7px; font-size:9px; }.timeline-button span { display:none; }.timeline-zoom { display:none; }
  .timeline-body { height:255px; }.timeline-scroller { overflow-x:auto; }.timeline-content { min-width:560px; }
  .toast { min-width:0; max-width:calc(100vw - 24px); right:12px; bottom:12px; }
  .modal-shell,.merge-shell,.compress-shell { width:min(94vw,680px); }.direct-selection b { font-size:7px; }
}

@media (max-width:600px) {
  .hero h1 { font-size:36px; letter-spacing:-2px; }
  .tool-grid { grid-template-columns:1fr; }
  .compress-preset-grid { grid-template-columns:1fr; }
  .comparison-table th, .comparison-table td { padding:10px 12px; font-size:11px; }
  .feature-strip { grid-template-columns:1fr; }
  .brand-compact { width:91px; }.brand-compact .brand-word { display:none; }.project-title-wrap { width:105px; }.project-title-wrap span { font-size:7px; }
  .editor-header-center { gap:0; }.editor-header-center .icon-button { width:25px; font-size:14px; }.editor-header-actions { gap:4px; }.editor-header .button-primary { font-size:10px; padding-inline:9px; }
  .editor-main { grid-template-rows:390px auto auto; }.preview-column { height:390px; min-height:390px; }.asset-panel { max-height:230px; }.inspector-panel { max-height:300px; }
  .panel-inner { padding:13px 11px; }.sticker-grid { grid-template-columns:repeat(5,1fr); }.highlight-grid { grid-template-columns:repeat(4,1fr); }.highlight-card { min-height:60px; }.highlight-card b { font-size:18px; }
  .time-display { font-size:8px; }.mini-select { max-width:86px; }.quick-action { min-width:50px; padding-inline:5px; }.quick-action span { font-size:7px; }
}

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