:root {   font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;   color: #e5e7eb;   background: #0f172a;   font-synthesis: none;   text-rendering: optimizeLegibility;   --bg: #0f172a;   --bg-soft: #111c31;   --panel: rgba(30, 41, 59, .72);   --panel-solid: #172238;   --border: rgba(255, 255, 255, .1);   --muted: #94a3b8;   --blue: #3b82f6;   --violet: #8b5cf6;   --green: #10b981;   --orange: #f97316; }  .workspace-context-option { margin:0 0 12px; padding:10px 11px; display:flex; align-items:flex-start; gap:9px; border:1px solid rgba(96,165,250,.16); border-radius:10px; color:#cbd5e1; background:rgba(30,64,175,.07); cursor:pointer; } .workspace-context-option input { margin-top:3px; accent-color:#60a5fa; } .workspace-context-option span,.workspace-context-option strong,.workspace-context-option small { display:block; } .workspace-context-option strong { font-size:10px; } .workspace-context-option small { margin-top:3px; color:#71819a; font-size:8px; line-height:1.55; } .analytics-ai-panel > .analytics-context-option { margin:12px 0 0; color:#d8d2ef; } .analytics-context-summary { margin:0 18px 14px; padding:9px 11px; border:1px solid rgba(96,165,250,.15); border-radius:8px; color:#8fa8ca; background:rgba(37,99,235,.06); font-size:8px; } .workspace-quick-select { margin:12px 0 16px; padding:12px; border:1px solid rgba(148,163,184,.16); border-radius:12px; background:rgba(15,23,42,.42); } .workspace-quick-select-heading { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; color:#dbeafe; font-size:11px; } .workspace-quick-select-heading small { display:block; margin-top:4px; color:#71819a; font-size:9px; line-height:1.5; } .workspace-quick-select-heading > span { flex:none; color:#93c5fd; font-size:10px; } .workspace-quick-select-search { display:flex; align-items:center; gap:7px; margin-top:10px; padding:7px 9px; border:1px solid rgba(148,163,184,.16); border-radius:8px; color:#64748b; } .workspace-quick-select-search input { flex:1; min-width:0; border:0; outline:0; color:#e5e7eb; background:transparent; font-size:10px; } .workspace-quick-select-search button { display:grid; place-items:center; padding:2px; border:0; background:transparent; color:#94a3b8; cursor:pointer; } .workspace-quick-select-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:6px; margin-top:10px; max-height:170px; overflow:auto; } .workspace-quick-select-list > button { display:flex; align-items:center; gap:7px; min-width:0; padding:8px; border:1px solid rgba(148,163,184,.12); border-radius:8px; color:#cbd5e1; background:rgba(30,41,59,.48); text-align:left; cursor:pointer; } .workspace-quick-select-list > button.selected { border-color:rgba(96,165,250,.75); background:rgba(37,99,235,.16); } .workspace-quick-select-icon { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:6px; color:#93c5fd; background:rgba(59,130,246,.14); } .workspace-quick-select-file { min-width:0; flex:1; } .workspace-quick-select-file strong,.workspace-quick-select-file small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .workspace-quick-select-file strong { font-size:10px; } .workspace-quick-select-file small,.workspace-quick-select-empty { margin-top:3px; color:#71819a; font-size:8px; }  * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); } button, input, textarea, select { font: inherit; } button, a { -webkit-tap-highlight-color: transparent; } a { color: inherit; text-decoration: none; } button { color: inherit; } img { max-width: 100%; display: block; }  .app-shell { min-height: 100vh; display: flex; flex-direction: column; } .app-shell > main { flex: 1; } .tool-main { background: #0b1220; }  .site-header { position: sticky; top: 0; z-index: 50; height: 72px; border-bottom: 1px solid var(--border); background: rgba(15, 23, 42, .86); backdrop-filter: blur(18px); } .header-inner { width: min(1320px, calc(100% - 32px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; } .brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; } .brand-mark { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #3b82f6, #8b5cf6); box-shadow: 0 10px 25px rgba(59,130,246,.22); } .brand-name { color: white; font-weight: 750; font-size: 24px; letter-spacing: -.5px; } .main-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; } .main-nav > a { padding: 10px 12px; color: #cbd5e1; border-radius: 9px; font-size: 14px; transition: .2s; } .main-nav > a:hover { color: white; background: rgba(255,255,255,.06); } .main-nav > a.active { color: #60a5fa; background: rgba(59,130,246,.14); } .session-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(96,165,250,.28); background: rgba(59,130,246,.13); color: #93c5fd; padding: 9px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; } .desktop-session { display: flex; } .mobile-session, .menu-button { display: none; }  .site-footer { border-top: 1px solid var(--border); background: #0f172a; } .footer-grid { width: min(1200px, calc(100% - 32px)); margin: auto; padding: 64px 0 44px; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 44px; } .footer-grid h3 { color: white; font-size: 15px; margin: 4px 0 20px; } .footer-grid p, .footer-grid li, .footer-grid a { color: #94a3b8; font-size: 14px; line-height: 1.8; } .footer-grid a:hover { color: #60a5fa; } .footer-grid ul { list-style: none; padding: 0; margin: 0; } .footer-brand p { max-width: 360px; margin: 20px 0 0; } .footer-mail { display: flex; align-items: center; gap: 8px; } .socials { display: flex; gap: 10px; margin-top: 18px; } .socials a { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 8px; } .footer-bottom { padding: 22px 16px; border-top: 1px solid var(--border); text-align: center; color: #64748b; font-size: 13px; }  .home-page { background: #0f172a; overflow: hidden; } .hero { min-height: 680px; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg,#0f172a,#1e293b 50%,#0f172a); } .hero::after { content: ''; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent); } .hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; animation: float 8s ease-in-out infinite; } .orb-one { width: 360px; height: 360px; background: #3b82f6; left: 8%; top: 10%; } .orb-two { width: 430px; height: 430px; background: #8b5cf6; right: 7%; bottom: 5%; animation-delay: -3s; } @keyframes float { 50% { transform: translateY(24px) scale(1.08); } } .hero-content { position: relative; z-index: 2; text-align: center; width: min(1000px, calc(100% - 32px)); } .hero h1 { margin: 0 0 24px; color: white; font-size: clamp(42px, 6vw, 76px); line-height: 1.12; letter-spacing: -2px; } .hero h1 span { background: linear-gradient(90deg,#3b82f6,#8b5cf6); -webkit-background-clip: text; color: transparent; } .hero p { margin: 0 auto 42px; color: #cbd5e1; font-size: clamp(19px, 2.3vw, 28px); } .primary-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 12px; background: #3b82f6; color: white; font-weight: 700; box-shadow: 0 18px 40px rgba(59,130,246,.28); transition: .2s; } .primary-cta:hover { transform: translateY(-2px); background: #2563eb; } .content-section { width: min(1200px, calc(100% - 32px)); margin: auto; padding: 88px 0; } .section-title { margin-bottom: 44px; } .section-badge, .eyebrow { display: inline-flex; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 16px; } .section-badge.violet { color: #c4b5fd; background: rgba(139,92,246,.17); border: 1px solid rgba(139,92,246,.28); } .section-badge.blue, .eyebrow { color: #93c5fd; background: rgba(59,130,246,.16); border: 1px solid rgba(59,130,246,.28); } .section-badge.green { color: #6ee7b7; background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.27); } .section-badge.orange { color: #fdba74; background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.27); } .section-title h2, .center-title h2 { color: white; font-size: clamp(32px, 4vw, 42px); margin: 0 0 12px; letter-spacing: -.7px; } .section-title p, .center-title p { color: #94a3b8; font-size: 18px; margin: 0; } .feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; } .feature-card { min-height: 290px; padding: 34px; border-radius: 22px; border: 1px solid var(--border); background: rgba(255,255,255,.055); display: flex; flex-direction: column; transition: .25s; } .feature-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.38); background: rgba(255,255,255,.08); box-shadow: 0 24px 60px rgba(0,0,0,.18); } .feature-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 17px; font-size: 28px; color: white; margin-bottom: 28px; } .feature-icon.green { background: linear-gradient(135deg,#10b981,#22c55e); }.feature-icon.violet { background: linear-gradient(135deg,#6366f1,#a855f7); }.feature-icon.orange { background: linear-gradient(135deg,#f97316,#ef4444); }.feature-icon.blue { background: linear-gradient(135deg,#3b82f6,#06b6d4); }.feature-icon.cyan { background: linear-gradient(135deg,#06b6d4,#14b8a6); }.feature-icon.pink { background: linear-gradient(135deg,#ec4899,#8b5cf6); } .feature-card h3 { color: white; margin: 0 0 12px; font-size: 23px; } .feature-card p { color: #94a3b8; line-height: 1.7; margin: 0; } .feature-link { display: inline-flex; align-items: center; gap: 9px; color: #a78bfa; margin-top: auto; padding-top: 28px; } .case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; } .case-card { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.05); } .case-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; } .case-card > div { padding: 24px; } .case-card h3 { color: white; margin: 0 0 13px; font-size: 20px; } .case-card p { color: #94a3b8; margin: 8px 0; line-height: 1.6; font-size: 14px; } .case-card strong { color: #cbd5e1; } .section-action { text-align: center; margin-top: 32px; } .ghost-button, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.06); color: white; cursor: pointer; } .ghost-button:hover, .secondary-action:hover { background: rgba(255,255,255,.1); } .center-title { text-align: center; margin-bottom: 52px; } .reason-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; } .reason-card { text-align: center; padding: 34px 28px; border: 1px solid var(--border); background: rgba(255,255,255,.04); border-radius: 20px; } .reason-card > span { font-size: 42px; }.reason-card h3 { color: white; margin: 18px 0 10px; }.reason-card p { color: #94a3b8; line-height: 1.7; margin: 0; } .final-cta { padding: 68px 24px; text-align: center; border-radius: 30px; background: linear-gradient(110deg,#2563eb,#7c3aed); box-shadow: 0 30px 80px rgba(59,130,246,.17); } .final-cta h2 { font-size: clamp(32px,4vw,46px); margin: 0 0 12px; color: white; }.final-cta p { margin: 0 0 30px; color: #dbeafe; font-size: 18px; }.final-cta a { display: inline-flex; align-items: center; gap: 9px; background: white; color: #1d4ed8; font-weight: 700; padding: 13px 22px; border-radius: 10px; }  .auth-main { display:flex; flex:1; } .auth-main > .login-page { flex:1; } .login-page { isolation:isolate; min-height:100vh; display:grid; align-items:center; padding:clamp(20px,2.5vh,34px) clamp(24px,4vw,64px); position:relative; overflow:hidden; background:radial-gradient(circle at 12% 5%,#172a51 0,rgba(23,42,81,0) 31%),radial-gradient(circle at 91% 94%,#291951 0,rgba(41,25,81,0) 34%),#091120; } .login-page::before { content:''; position:absolute; inset:0; z-index:-1; opacity:.35; background-image:linear-gradient(rgba(148,163,184,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.08) 1px,transparent 1px); background-size:48px 48px; mask-image:linear-gradient(to bottom,black,transparent 82%); } .login-glow { position:absolute; z-index:-1; width:440px; height:440px; filter:blur(110px); opacity:.2; border-radius:50%; }.glow-a { background:#2563eb; left:-8%; top:6%; }.glow-b { background:#7c3aed; right:-10%; bottom:-8%; } .login-shell { width:min(1080px,100%); min-height:min(640px,calc(100vh - 48px)); margin:auto; display:grid; grid-template-columns:minmax(0,.92fr) minmax(390px,.78fr); overflow:hidden; position:relative; border:1px solid rgba(148,163,184,.18); border-radius:28px; background:rgba(12,20,38,.72); box-shadow:0 35px 100px rgba(0,0,0,.38); backdrop-filter:blur(22px); } .login-showcase { position:relative; display:flex; flex-direction:column; padding:clamp(38px,5vw,68px); overflow:hidden; background:linear-gradient(145deg,rgba(27,65,128,.67),rgba(20,25,67,.62) 55%,rgba(38,24,83,.7)); } .login-showcase::after { content:''; position:absolute; width:300px; height:300px; right:-116px; bottom:-116px; border-radius:50%; border:1px solid rgba(167,139,250,.28); box-shadow:0 0 0 42px rgba(167,139,250,.06),0 0 0 84px rgba(96,165,250,.04); } .login-showcase .brand { position:relative; z-index:1; width:max-content; }.login-showcase .brand-mark { width:46px; height:46px; border-radius:14px; }.login-showcase .brand-name { font-size:27px; } .login-showcase-copy { position:relative; z-index:1; margin-top:auto; }.login-kicker,.login-eyebrow { display:inline-flex; width:max-content; border:1px solid rgba(147,197,253,.22); border-radius:999px; color:#bfdbfe; background:rgba(30,64,175,.18); font-size:11px; font-weight:750; letter-spacing:.1em; line-height:1; padding:8px 10px; } .login-showcase h1 { margin:18px 0 16px; color:#fff; font-size:clamp(32px,3.4vw,48px); line-height:1.18; letter-spacing:-.055em; }.login-showcase-copy > p { max-width:390px; margin:0; color:#cbd5e1; font-size:16px; line-height:1.75; } .login-benefits { position:relative; z-index:1; display:grid; gap:13px; padding:0; margin:38px 0 0; list-style:none; }.login-benefits li { display:flex; align-items:center; gap:12px; }.login-benefits li > svg { flex:0 0 34px; width:34px; height:34px; padding:8px; border-radius:10px; color:#dbeafe; background:rgba(255,255,255,.12); }.login-benefits span { display:grid; gap:3px; }.login-benefits strong { color:#f8fafc; font-size:14px; }.login-benefits small { color:#b3c2dc; font-size:12px; }.login-showcase-foot { position:relative; z-index:1; margin:38px 0 0; color:#a5b4cb; font-size:12px; } .login-card { position:relative; display:flex; flex-direction:column; justify-content:center; padding:clamp(32px,4vw,56px); background:linear-gradient(145deg,rgba(15,23,42,.82),rgba(12,19,35,.96)); } .login-card-header h2 { margin:14px 0 8px; color:#fff; font-size:34px; letter-spacing:-.04em; }.login-card-header > p { margin:0; color:#94a3b8; font-size:14px; line-height:1.65; } .login-form { margin-top:30px; }.login-field + .login-field { margin-top:19px; }.login-card label,.generator-form > label { display:flex; align-items:center; justify-content:space-between; color:#dbe5f3; font-size:13px; font-weight:650; margin:0 0 8px; }.login-card label span { color:#71819a; font-size:11px; font-weight:500; } .input-with-icon { position:relative; }.input-with-icon svg { position:absolute; left:15px; top:50%; transform:translateY(-50%); color:#71819a; }.input-with-icon input { padding-left:45px !important; } .login-card input,.code-input,.generator-form textarea,.writing-form textarea,.writing-result textarea,.form-grid select,.video-topbar input { width:100%; min-height:52px; border:1px solid rgba(148,163,184,.2); border-radius:12px; background:rgba(148,163,184,.07); color:#f8fafc; outline:none; padding:13px 14px; transition:border-color .2s,box-shadow .2s,background .2s; }.login-card input::placeholder { color:#667892; }.login-card input:focus,textarea:focus,select:focus { border-color:#60a5fa; background:rgba(59,130,246,.08); box-shadow:0 0 0 4px rgba(59,130,246,.13); } .login-invite-help,.login-code-help { display:block; margin-top:8px; color:#8ea7c8; font-size:12px; line-height:1.5; }.login-invite-help { padding-left:1px; }.login-card .code-input { letter-spacing:.22em; font-variant-numeric:tabular-nums; } .login-submit,.wide-primary,.primary-action { width:100%; min-height:52px; margin-top:26px; border:0; border-radius:12px; background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; padding:13px 18px; display:inline-flex; align-items:center; justify-content:center; gap:9px; font-weight:750; cursor:pointer; box-shadow:0 14px 28px rgba(37,99,235,.22); transition:transform .2s,box-shadow .2s,background .2s; }.login-submit:hover,.wide-primary:hover,.primary-action:hover { background:linear-gradient(135deg,#60a5fa,#2563eb); transform:translateY(-1px); box-shadow:0 18px 32px rgba(37,99,235,.3); }.login-submit:disabled,.wide-primary:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; } .login-error { margin:16px 0 -8px !important; padding:10px 12px; border-radius:10px; background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.24); color:#fca5a5 !important; font-size:13px; line-height:1.5; }.auth-loading { min-height:55vh; display:grid; place-items:center; color:#94a3b8; font-weight:600; } .text-button { align-self:center; border:0; background:transparent; color:#93c5fd; margin-top:18px; padding:4px 8px; cursor:pointer; font-size:13px; }.text-button:hover { color:#dbeafe; text-decoration:underline; }.login-context { display:flex; gap:8px; align-items:flex-start; margin-top:28px; padding-top:18px; border-top:1px solid rgba(148,163,184,.14); color:#71819a; font-size:12px; line-height:1.6; }.login-context svg { flex:0 0 16px; margin-top:2px; color:#8fb9ff; }.legal { font-size:11px; text-align:center; line-height:1.6; color:#56657b !important; margin:20px 0 0 !important; }  @media (max-width: 820px) { .login-page { min-height:100%; padding:20px; }.login-shell { grid-template-columns:1fr; min-height:0; max-width:560px; }.login-showcase { min-height:230px; padding:30px; }.login-showcase-copy { margin-top:34px; }.login-showcase h1 { font-size:31px; }.login-showcase-copy > p,.login-benefits,.login-showcase-foot { display:none; }.login-card { padding:36px 30px; } }  .help-page { background:#f8fafc; color:#0f172a; min-height:900px; }.help-hero { padding:78px 16px 58px; text-align:center; color:white; background:linear-gradient(135deg,#111c31,#1e293b); }.help-hero h1 { margin:0 0 12px; font-size:44px; }.help-hero p { color:#cbd5e1; font-size:18px; margin:0 0 30px; }.help-search { width:min(620px,100%); margin:auto; position:relative; }.help-search svg { position:absolute; left:18px; top:50%; transform:translateY(-50%); color:#64748b; }.help-search input { width:100%; border:0; border-radius:13px; padding:16px 20px 16px 48px; outline:none; box-shadow:0 12px 35px rgba(0,0,0,.18); } .help-content { width:min(1100px,calc(100% - 32px)); margin:auto; padding:42px 0 90px; }.category-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:48px; }.category-row button,.style-pills button { border:1px solid #dbe3ef; background:white; color:#475569; border-radius:999px; padding:10px 17px; cursor:pointer; }.category-row button.active,.style-pills button.active { background:#2563eb; color:white; border-color:#2563eb; }.help-content h2 { margin:48px 0 22px; font-size:28px; }.guide-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }.guide-card { border:1px solid #e2e8f0; border-radius:15px; background:white; color:#0f172a; padding:22px; display:flex; gap:16px; text-align:left; cursor:pointer; transition:.2s; }.guide-card:hover { transform:translateY(-2px); box-shadow:0 14px 35px rgba(15,23,42,.08); border-color:#bfdbfe; }.guide-card > span { flex:0 0 46px; height:46px; display:grid; place-items:center; color:#2563eb; background:#eff6ff; border-radius:12px; font-size:22px; }.guide-card h3 { margin:2px 0 7px; display:flex; align-items:center; gap:9px; flex-wrap:wrap; }.guide-card h3 b { padding:3px 7px; border-radius:999px; font-size:10px; font-weight:700; }.guide-card h3 b.ready { color:#047857; background:#d1fae5; }.guide-card h3 b.pending { color:#b45309; background:#fef3c7; }.guide-card p { margin:0; color:#64748b; line-height:1.6; }.faq-list { border-top:1px solid #e2e8f0; }.faq-item { display:block; width:100%; border:0; border-bottom:1px solid #e2e8f0; background:transparent; color:#0f172a; text-align:left; padding:20px 4px; cursor:pointer; }.faq-item > span { display:flex; justify-content:space-between; font-weight:650; font-size:17px; }.faq-item b { color:#2563eb; font-size:22px; }.faq-item p { color:#64748b; line-height:1.7; margin:14px 50px 0 0; }.support-card { margin-top:54px; padding:38px; border-radius:20px; text-align:center; background:#eaf2ff; border:1px solid #dbeafe; }.support-card h3 { font-size:24px; margin:0 0 8px; }.support-card p { color:#64748b; }.support-card > div { display:flex; justify-content:center; gap:12px; margin-top:24px; }.support-card a,.support-card button { padding:11px 18px; background:white; color:#2563eb; border:1px solid #bfdbfe; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; gap:8px; }.support-card button:disabled { color:#94a3b8; border-color:#dbe3ef; cursor:not-allowed; }  .workspace-shell { min-height:calc(100vh - 72px); display:grid; grid-template-columns:230px 1fr; background:#0b1220; }.tool-sidebar { position:sticky; top:72px; height:calc(100vh - 72px); padding:26px 16px 18px; border-right:1px solid var(--border); background:#0f172a; display:flex; flex-direction:column; }.sidebar-title { display:flex; align-items:center; gap:10px; color:white; font-weight:700; padding:8px 12px 20px; }.tool-sidebar nav { display:flex; flex-direction:column; gap:5px; }.tool-sidebar a { display:flex; align-items:center; gap:9px; padding:11px 13px; color:#94a3b8; border-radius:9px; font-size:14px; }.tool-sidebar a:hover,.tool-sidebar a.active { color:#dbeafe; background:rgba(59,130,246,.13); }.sidebar-bottom { margin-top:auto; border-top:1px solid var(--border); padding-top:12px; }.tool-content { min-width:0; width:min(1380px,100%); padding:34px 38px 64px; }.page-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:30px; }.page-hero h1 { color:white; font-size:34px; margin:0 0 8px; }.page-hero p { color:#94a3b8; margin:0; }.page-hero .eyebrow { margin-bottom:10px; padding:6px 12px; }.page-hero .primary-action { width:auto; margin:0; } .panel { border:1px solid var(--border); background:var(--panel); border-radius:16px; box-shadow:0 14px 40px rgba(0,0,0,.08); }.panel-heading { min-height:58px; padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:16px; color:white; }.panel-heading > div { display:flex; flex-direction:column; gap:4px; }.muted { color:#64748b; font-size:13px; font-weight:400; }.primary-action { width:auto; margin:0; white-space:nowrap; }.secondary-action { margin-left:9px; } .editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:20px; }.canvas-panel { min-height:620px; overflow:hidden; }.image-canvas { min-height:560px; display:grid; place-items:center; padding:26px; background-color:#0c1424; background-image:linear-gradient(45deg,rgba(255,255,255,.025) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.025) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.025) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.025) 75%); background-size:28px 28px; background-position:0 0,0 14px,14px -14px,-14px 0; }.image-canvas img { max-height:500px; object-fit:contain; box-shadow:0 20px 50px rgba(0,0,0,.35); }.drop-zone { width:min(540px,90%); min-height:300px; border:1px dashed rgba(96,165,250,.45); border-radius:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#64748b; cursor:pointer; background:rgba(59,130,246,.035); }.drop-zone svg { font-size:54px; color:#3b82f6; margin-bottom:18px; }.drop-zone strong { color:#cbd5e1; margin-bottom:8px; }.drop-zone span { font-size:13px; }.inspector-panel { padding-bottom:20px; }.tool-button-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:18px; }.tool-button-grid button { height:80px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.04); color:#cbd5e1; display:flex; flex-direction:column; gap:8px; align-items:center; justify-content:center; cursor:pointer; }.tool-button-grid button:hover { border-color:#3b82f6; color:white; }.field-label { margin:18px 18px 8px; display:flex; justify-content:space-between; color:#cbd5e1; font-size:14px; }.inspector-panel input[type=range] { width:calc(100% - 36px); margin:0 18px; accent-color:#3b82f6; }.inspector-panel .segmented { margin:0 18px; }.inspector-panel .wide-primary { width:calc(100% - 36px); margin:24px 18px 0; } .segmented { display:inline-flex; padding:4px; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid var(--border); }.segmented button { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:0; background:transparent; color:#94a3b8; padding:8px 13px; border-radius:7px; cursor:pointer; }.segmented button.active { background:#2563eb; color:white; box-shadow:0 5px 16px rgba(37,99,235,.23); } .toolbar-row,.workspace-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }.notice { padding:12px 16px; border-radius:10px; margin-bottom:16px; }.notice.success { background:rgba(16,185,129,.1); color:#6ee7b7; border:1px solid rgba(16,185,129,.2); }.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }.kpi-card { padding:20px; border:1px solid var(--border); border-radius:14px; background:var(--panel); display:flex; gap:15px; }.kpi-card > span { width:44px; height:44px; display:grid; place-items:center; border-radius:11px; background:rgba(59,130,246,.13); color:#60a5fa; font-size:20px; }.kpi-card p { margin:0 0 4px; color:#94a3b8; font-size:13px; }.kpi-card strong { display:block; font-size:25px; color:white; }.kpi-card small { color:#34d399; font-size:11px; }.analytics-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,.8fr); gap:20px; }.chart-card { min-height:390px; }.chart-legend { color:#94a3b8; font-size:12px; }.chart-legend i { display:inline-block; width:8px; height:8px; background:#3b82f6; border-radius:2px; margin-right:6px; }.bar-chart { height:305px; padding:32px 24px 20px; display:flex; align-items:flex-end; justify-content:space-between; gap:10px; background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size:100% 25%; }.bar-chart > div { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:10px; }.bar-chart span { width:min(28px,70%); display:block; border-radius:5px 5px 2px 2px; background:linear-gradient(#60a5fa,#2563eb); }.bar-chart small { color:#64748b; font-size:10px; }.donut-card { padding-bottom:18px; }.donut { width:170px; height:170px; margin:22px auto; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#3b82f6 0 36%,#8b5cf6 36% 64%,#10b981 64% 85%,#f97316 85%); position:relative; }.donut::after { content:''; position:absolute; inset:25px; background:#172238; border-radius:50%; }.donut > div { position:relative; z-index:1; text-align:center; }.donut strong { color:white; display:block; font-size:24px; }.donut span { color:#64748b; font-size:12px; }.donut-card ul { list-style:none; margin:0; padding:0 22px; }.donut-card li { display:flex; align-items:center; color:#94a3b8; margin:11px 0; font-size:13px; }.donut-card li b { margin-left:auto; color:#cbd5e1; }.donut-card li i { width:8px; height:8px; border-radius:50%; margin-right:8px; }.blue{background:#3b82f6}.violet{background:#8b5cf6}.green{background:#10b981}.orange{background:#f97316} .video-editor { overflow:hidden; }.video-topbar { min-height:60px; padding:11px 16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }.video-topbar input { max-width:260px; border-color:transparent; background:transparent; font-weight:650; }.video-topbar button { border:0; background:transparent; color:#94a3b8; padding:8px 10px; display:inline-flex; gap:7px; align-items:center; cursor:pointer; }.video-topbar button:hover { color:white; }.video-stage { min-height:430px; padding:28px; background:#050a12; display:grid; place-items:center; }.video-placeholder { width:min(720px,100%); aspect-ratio:16/9; display:flex; flex-direction:column; justify-content:center; align-items:center; background:linear-gradient(145deg,#111827,#172238); border:1px solid var(--border); color:#64748b; }.video-placeholder > svg { font-size:55px; }.video-placeholder strong { color:#cbd5e1; margin:14px 0 5px; }.video-placeholder button { width:50px; height:50px; border-radius:50%; border:0; background:#3b82f6; color:white; display:grid; place-items:center; font-size:20px; margin-top:22px; cursor:pointer; }.timeline { position:relative; padding:14px 20px 25px; background:#111827; border-top:1px solid var(--border); }.time-ruler { margin-left:72px; display:flex; justify-content:space-between; color:#475569; font-size:10px; border-bottom:1px solid var(--border); padding-bottom:8px; }.track { min-height:48px; display:flex; align-items:center; gap:5px; border-bottom:1px solid rgba(255,255,255,.04); }.track > b { width:68px; color:#64748b; font-size:11px; }.clip { height:30px; display:flex; align-items:center; padding:0 12px; border-radius:5px; font-size:11px; color:white; }.clip.primary { width:38%; background:#2563eb; }.clip.secondary { width:27%; background:#7c3aed; }.clip.caption { width:52%; margin-left:12%; background:#334155; }.playhead { position:absolute; left:35%; top:14px; bottom:12px; width:2px; background:#ef4444; box-shadow:0 0 8px #ef4444; } .generator-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.9fr); gap:20px; }.generator-form { padding:22px; position:relative; }.generator-form .segmented { margin-bottom:14px; }.generator-form textarea { min-height:170px; resize:vertical; line-height:1.6; }.char-count { text-align:right; color:#64748b; font-size:11px; margin-top:5px; }.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; }.form-grid label { color:#94a3b8; font-size:13px; }.form-grid select { margin-top:8px; appearance:none; }.generator-preview { padding:22px; }.preview-window { min-height:360px; border-radius:13px; background:radial-gradient(circle at center,#1e2f4c,#0b1220); border:1px solid var(--border); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#64748b; }.preview-window > svg { width:58px; height:58px; padding:18px; border-radius:50%; color:white; background:rgba(59,130,246,.8); }.preview-window strong { color:#cbd5e1; margin:20px 0 6px; }.generation-tip { display:flex; gap:13px; padding:15px; border-radius:10px; background:rgba(59,130,246,.07); margin-top:16px; }.generation-tip > svg { color:#60a5fa; font-size:20px; flex:none; }.generation-tip strong { color:#bfdbfe; }.generation-tip p { color:#64748b; margin:5px 0 0; font-size:12px; line-height:1.5; }.image-generator { grid-template-columns:380px 1fr; }.style-pills { display:flex; flex-wrap:wrap; gap:8px; }.style-pills button { background:rgba(255,255,255,.04); border-color:var(--border); color:#94a3b8; border-radius:8px; padding:8px 11px; }.result-panel { overflow:hidden; }.image-results,.loading-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; }.image-results article { position:relative; overflow:hidden; border-radius:10px; background:#0f172a; }.image-results img { width:100%; aspect-ratio:1; object-fit:cover; }.image-results button { position:absolute; right:9px; bottom:9px; width:34px; height:34px; border:0; border-radius:8px; background:rgba(15,23,42,.8); color:white; display:grid; place-items:center; cursor:pointer; }.loading-grid div { aspect-ratio:1; border-radius:10px; display:grid; place-items:center; color:#334155; font-size:34px; background:linear-gradient(90deg,#111827,#1e293b,#111827); background-size:200% 100%; animation:shimmer 1.2s infinite; }@keyframes shimmer{to{background-position:-200% 0}} .writing-layout { display:grid; grid-template-columns:210px minmax(300px,.9fr) minmax(340px,1.1fr); gap:18px; }.template-list { padding-bottom:14px; overflow:hidden; }.template-list button { width:calc(100% - 16px); margin:4px 8px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:#94a3b8; display:flex; gap:8px; align-items:center; cursor:pointer; }.template-list button.active { color:white; background:rgba(59,130,246,.16); }.writing-form { padding:0 20px 20px; }.writing-form .panel-heading { margin:0 -20px 18px; }.writing-form textarea { min-height:260px; resize:none; line-height:1.65; }.writing-result { overflow:hidden; }.writing-result .panel-heading button { width:32px; height:32px; border:1px solid var(--border); background:rgba(255,255,255,.04); color:#94a3b8; border-radius:7px; margin-left:6px; cursor:pointer; }.writing-result textarea { width:calc(100% - 32px); min-height:410px; margin:16px; resize:none; line-height:1.9; }.empty-result { min-height:410px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#64748b; }.empty-result svg { font-size:44px; }.empty-result strong { color:#cbd5e1; margin:14px 0 5px; } .workspace-toolbar .small-search { margin-left:auto; }.small-search { width:260px; position:relative; }.small-search svg { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#64748b; }.small-search input { width:100%; border:1px solid var(--border); background:rgba(255,255,255,.04); border-radius:9px; color:white; padding:10px 12px 10px 36px; outline:none; }.view-buttons button { width:37px; height:37px; border:1px solid var(--border); background:transparent; color:#64748b; cursor:pointer; }.view-buttons button:first-child { border-radius:8px 0 0 8px; }.view-buttons button:last-child { border-radius:0 8px 8px 0; }.view-buttons button.active { color:#60a5fa; background:rgba(59,130,246,.12); }.file-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }.file-card { position:relative; padding:22px; border:1px solid var(--border); border-radius:14px; background:var(--panel); }.file-card > button { position:absolute; right:13px; top:13px; border:0; background:transparent; color:#64748b; cursor:pointer; }.folder-icon { width:50px; height:50px; border-radius:12px; display:grid; place-items:center; font-size:25px; margin-bottom:20px; background:rgba(59,130,246,.13); color:#60a5fa; }.tone-1{background:rgba(139,92,246,.14);color:#a78bfa}.tone-2{background:rgba(16,185,129,.13);color:#34d399}.tone-3{background:rgba(249,115,22,.13);color:#fb923c}.file-card h3 { color:white; margin:0 0 6px; font-size:16px; }.file-card p { color:#64748b; margin:0 0 24px; font-size:12px; }.file-card > div { display:flex; justify-content:space-between; color:#64748b; font-size:11px; }.file-card > div span { display:flex; gap:5px; align-items:center; }.project-board { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:start; }.project-column { min-height:430px; padding:13px; border-radius:14px; background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.05); }.column-heading { display:flex; justify-content:space-between; color:#cbd5e1; padding:4px 5px 14px; }.column-heading b { min-width:23px; height:23px; padding:0 6px; display:grid; place-items:center; border-radius:20px; background:rgba(255,255,255,.07); color:#64748b; font-size:11px; }.project-card { background:var(--panel-solid); border:1px solid var(--border); border-radius:11px; padding:16px; margin-bottom:10px; }.project-card > span { color:#60a5fa; font-size:11px; }.project-card h3 { color:white; font-size:15px; margin:10px 0 18px; }.progress { height:6px; border-radius:10px; background:rgba(255,255,255,.07); overflow:hidden; }.progress i { display:block; height:100%; background:linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius:10px; }.project-card footer { display:flex; justify-content:space-between; margin-top:12px; color:#64748b; }.project-card small { display:flex; gap:5px; align-items:center; } .account-grid { display:grid; grid-template-columns:280px minmax(320px,.8fr) minmax(360px,1.2fr); gap:18px; }.profile-panel { padding:28px; text-align:center; }.avatar { width:76px; height:76px; margin:0 auto 16px; border-radius:50%; display:grid; place-items:center; color:white; font-size:29px; font-weight:750; background:linear-gradient(135deg,#3b82f6,#8b5cf6); }.profile-panel h2 { color:white; margin:0 0 6px; }.profile-panel p { color:#64748b; margin:0 0 15px; font-size:13px; }.plan-badge { display:inline-block; padding:6px 12px; border-radius:999px; color:#a7f3d0; background:rgba(16,185,129,.12); font-size:12px; }.profile-panel .secondary-action { margin:26px 0 0; }.usage-panel { padding-bottom:18px; }.usage-row { padding:18px 20px 4px; }.usage-row > div:first-child { display:flex; justify-content:space-between; color:#cbd5e1; font-size:13px; margin-bottom:9px; }.usage-row small { color:#64748b; }.settings-panel { overflow:hidden; }.setting-row { min-height:77px; padding:14px 20px; border-bottom:1px solid var(--border); display:grid; grid-template-columns:40px 1fr auto; align-items:center; gap:12px; }.setting-row > span { width:38px; height:38px; border-radius:9px; display:grid; place-items:center; color:#60a5fa; background:rgba(59,130,246,.12); }.setting-row strong { color:#e2e8f0; display:block; font-size:13px; }.setting-row small { color:#64748b; display:block; margin-top:4px; }.setting-row > b { color:#94a3b8; font-size:12px; }.switch { width:42px; height:23px; padding:2px; border:0; border-radius:20px; background:#334155; cursor:pointer; }.switch i { display:block; width:19px; height:19px; border-radius:50%; background:white; transition:.2s; }.switch.on { background:#2563eb; }.switch.on i { transform:translateX(19px); }  @media (max-width: 1180px) {   .desktop-session { display:none; }.main-nav > a { padding:9px 8px; font-size:13px; }   .footer-grid { grid-template-columns:2fr repeat(2,1fr); }.footer-grid > div:nth-last-child(-n+2) { margin-top:12px; }   .workspace-shell { grid-template-columns:190px 1fr; }.tool-content { padding:28px 24px 50px; }   .file-grid { grid-template-columns:repeat(3,1fr); }.account-grid { grid-template-columns:250px 1fr; }.settings-panel { grid-column:1/-1; }   .writing-layout { grid-template-columns:190px 1fr; }.writing-result { grid-column:1/-1; } }  @media (max-width: 900px) {   .menu-button { margin-left:auto; display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.04); color:white; font-size:20px; }   .main-nav { position:absolute; left:16px; right:16px; top:64px; padding:14px; border:1px solid var(--border); border-radius:14px; background:#111c31; box-shadow:0 24px 60px rgba(0,0,0,.35); display:none; align-items:stretch; flex-direction:column; }.main-nav.is-open { display:flex; }.main-nav > a { padding:11px 12px; }.mobile-session { display:block; padding-top:8px; border-top:1px solid var(--border); }.mobile-session .session-button { width:100%; }   .feature-grid,.case-grid,.reason-grid { grid-template-columns:1fr 1fr; }.feature-card { min-height:260px; }   .footer-grid { grid-template-columns:1fr 1fr; }.footer-brand { grid-column:1/-1; }   .workspace-shell { display:block; }.tool-sidebar { display:none; }.tool-content { padding:26px 18px 50px; }   .editor-layout,.analytics-grid,.generator-layout,.image-generator { grid-template-columns:1fr; }.inspector-panel { order:-1; }.kpi-grid { grid-template-columns:1fr 1fr; }   .writing-layout { grid-template-columns:1fr; }.writing-result { grid-column:auto; }.template-list { display:grid; grid-template-columns:1fr 1fr; }.template-list .panel-heading { grid-column:1/-1; }   .file-grid { grid-template-columns:1fr 1fr; }.project-board { grid-template-columns:1fr; }.account-grid { grid-template-columns:1fr 1fr; }.settings-panel { grid-column:1/-1; } }  @media (max-width: 620px) {   .site-header { height:64px; }.brand-mark { width:38px; height:38px; }.brand-name { font-size:21px; }.main-nav { top:58px; }   .hero { min-height:600px; }.hero h1 { letter-spacing:-1px; }.hero h1 span { display:block; margin-top:8px; }.content-section { padding:64px 0; }   .feature-grid,.case-grid,.reason-grid,.guide-grid { grid-template-columns:1fr; }.feature-card { min-height:250px; padding:28px; }.section-title { margin-bottom:30px; }   .footer-grid { grid-template-columns:1fr 1fr; gap:28px; padding-top:48px; }.footer-brand { grid-column:1/-1; }   .help-hero { padding-top:60px; }.help-hero h1 { font-size:36px; }.support-card { padding:28px 18px; }.support-card > div { flex-direction:column; }   .page-hero { align-items:flex-start; flex-direction:column; gap:18px; }.page-hero h1 { font-size:29px; }.page-hero .primary-action,.page-hero .secondary-action { width:100%; margin:0; }.tool-content { padding:24px 12px 45px; }   .toolbar-row,.workspace-toolbar { align-items:stretch; flex-direction:column; }.toolbar-row > div,.workspace-toolbar > div { width:100%; }.toolbar-row .segmented,.workspace-toolbar .segmented { display:flex; }.toolbar-row .segmented button,.workspace-toolbar .segmented button { flex:1; }.secondary-action { margin:5px 5px 0 0; }.small-search { width:100%; }   .kpi-grid,.file-grid,.account-grid { grid-template-columns:1fr; }.form-grid,.image-results,.loading-grid { grid-template-columns:1fr 1fr; }.project-board { grid-template-columns:1fr; }   .video-topbar { align-items:flex-start; flex-direction:column; }.video-stage { min-height:300px; padding:12px; }.time-ruler { margin-left:52px; }.track > b { width:48px; }   .template-list { grid-template-columns:1fr; }.template-list .panel-heading { grid-column:auto; } }  /* Logged-in modules: calibrated against the authenticated product */ .protected-page { min-height: calc(100vh - 72px); background: #0f172a; } .protected-page .tool-content { width: min(1250px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; } .module-heading { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; } .module-heading > div:first-child { min-width:0; max-width:820px; } .module-heading > button,.module-heading > .workspace-heading-actions { flex:none; } .module-heading h1 { margin: 0 0 8px; color: white; font-size: 32px; line-height: 1.2; } .module-heading p { margin: 0; color: #94a3b8; font-size: 15px; } .danger-action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border: 1px solid rgba(244,63,94,.22); border-radius: 9px; background: rgba(136,19,55,.25); color: #fb7185; cursor: pointer; } .danger-action:hover { background: rgba(136,19,55,.4); } .real-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-bottom: 30px; } .real-feature-grid article { min-height: 152px; padding: 24px; border: 1px solid var(--border); border-radius: 11px; background: rgba(30,41,59,.82); } .real-feature-grid svg { color: #3b82f6; font-size: 30px; margin-bottom: 18px; } .real-feature-grid h3 { color: white; margin: 0 0 8px; font-size: 18px; } .real-feature-grid p { color: #94a3b8; margin: 0; line-height: 1.55; font-size: 13px; } .real-upload-zone { min-height: 310px; padding: 36px; border: 1px dashed rgba(148,163,184,.42); border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(15,23,42,.32); } .real-upload-zone > svg { color: #94a3b8; font-size: 58px; margin-bottom: 16px; } .real-upload-zone h3 { color: white; margin: 0 0 8px; font-size: 19px; } .real-upload-zone p { color: #94a3b8; margin: 0 0 24px; } .real-upload-zone > div { display: flex; align-items: center; justify-content: center; gap: 10px; } .real-upload-zone .primary-action { margin: 0; padding: 12px 22px; } .real-upload-zone .secondary-action { margin: 0; padding: 12px 22px; } .uploaded-section,.real-section { margin-top: 32px; } .real-section > h2,.uploaded-section h2 { margin: 0 0 18px; color: white; font-size: 19px; } .section-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; } .section-row h2 { color: white; margin: 0; font-size: 18px; } .section-row > span { color: #94a3b8; font-size: 12px; } .uploaded-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-top: 16px; } .uploaded-grid article { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: rgba(30,41,59,.75); } .uploaded-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; } .uploaded-grid article > div:last-child { padding: 12px; display: flex; flex-direction: column; gap: 7px; } .uploaded-grid strong { color: white; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .uploaded-grid button { border: 0; background: transparent; color: #60a5fa; padding: 0; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }  .analytics-import-card,.analytics-result-card,.generation-card { border: 1px solid var(--border); border-radius: 14px; background: rgba(30,41,59,.82); } .analytics-import-card { min-height: 185px; padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; } .analytics-import-card h2 { margin: 0 0 8px; color: white; font-size: 21px; }.analytics-import-card p { margin: 0 0 22px; color: #94a3b8; }.analytics-import-card .primary-action { margin: 0; }.analytics-import-card .secondary-action { padding: 12px 20px; } .chart-type-buttons { display: flex; gap: 10px; }.chart-type-buttons button { width: 50px; height: 50px; border: 0; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #94a3b8; font-size: 22px; cursor: pointer; }.chart-type-buttons button.active { background: #3b82f6; color: white; } .analytics-result-card { min-height: 235px; margin-top: 30px; padding: 24px 30px; } .real-empty { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #64748b; }.real-empty > svg { font-size: 48px; margin-bottom: 12px; }.real-empty h3 { color: white; margin: 0 0 8px; }.real-empty p { margin: 0; color: #94a3b8; } .simple-chart { min-height: 180px; padding: 30px 30px 0; display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size: 100% 25%; }.simple-chart i { width: 8%; max-width: 45px; display: block; background: linear-gradient(#60a5fa,#2563eb); border-radius: 5px 5px 0 0; }.simple-chart.line i { width: 7px; border-radius: 10px; }.simple-donut { width: 160px; height: 160px; border-radius: 50%; margin: 24px auto 0; background: conic-gradient(#3b82f6 0 45%,#8b5cf6 45% 72%,#10b981 72%); position: relative; }.simple-donut::after { content:''; position:absolute; inset:34px; border-radius:50%; background:#1e293b; }  .compact-feature-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 15px; } .compact-feature-grid article { min-height: 116px; padding: 17px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(30,41,59,.82); } .compact-feature-grid svg { color: #3b82f6; font-size: 27px; }.compact-feature-grid h4 { margin: 13px 0 5px; color: white; font-size: 13px; }.compact-feature-grid p { margin: 0; color: #64748b; font-size: 11px; }  .real-section { margin-bottom: 24px; }.inspiration-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }.inspiration-grid button { min-height:90px; padding:16px; display:flex; align-items:center; gap:13px; text-align:left; border:1px solid var(--border); border-radius:10px; background:rgba(30,41,59,.78); color:inherit; cursor:pointer; }.inspiration-grid button:hover { border-color:#3b82f6; }.inspiration-grid button > span { font-size:28px; }.inspiration-grid h4 { color:white; margin:0 0 5px; }.inspiration-grid p { color:#64748b; margin:0; font-size:12px; } .generation-card { padding: 26px 28px; }.mode-tabs,.large-mode-tabs,.writing-mode-tabs { display:flex; align-items:stretch; gap:10px; }.mode-tabs { margin-bottom:22px; flex-wrap:wrap; }.mode-tabs button,.large-mode-tabs button,.writing-mode-tabs button { min-height:42px; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.045); color:#94a3b8; padding:10px 18px; display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; cursor:pointer; }.mode-tabs button.active,.large-mode-tabs button.active,.writing-mode-tabs button.active { background:#3b82f6; color:white; border-color:#3b82f6; } .real-label { display:block; color:white; font-weight:650; margin:20px 0 10px; }.real-textarea { width:100%; min-height:145px; resize:vertical; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.68); color:white; padding:15px; line-height:1.65; outline:none; }.real-textarea:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }.real-textarea.small { min-height:90px; } .mini-upload { min-height:90px; margin-bottom:18px; border:1px dashed rgba(148,163,184,.36); border-radius:10px; display:flex; align-items:center; justify-content:center; gap:12px; color:#94a3b8; }.mini-upload button { border:0; background:rgba(255,255,255,.07); color:#cbd5e1; padding:8px 12px; border-radius:7px; } .option-group { margin-top:20px; }.option-group h3 { margin:0 0 10px; color:white; font-size:14px; }.option-group > div { display:flex; flex-wrap:wrap; gap:8px; }.option-group button { min-width:78px; padding:8px 13px; border:1px solid var(--border); border-radius:7px; background:rgba(255,255,255,.035); color:#94a3b8; cursor:pointer; }.option-group button.active { border-color:#3b82f6; color:white; background:rgba(59,130,246,.18); } .generation-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.generation-options .option-group { min-width:0; padding:14px; border:1px solid rgba(148,163,184,.13); border-radius:10px; background:rgba(15,23,42,.3); }.generation-status { min-height:52px; margin-top:22px; padding:12px 16px; border-radius:9px; display:flex; align-items:center; justify-content:flex-start; color:#94a3b8; background:rgba(15,23,42,.65); border:1px solid rgba(255,255,255,.06); font-size:13px; line-height:1.5; }.generation-card .wide-primary { width:min(100%,480px); max-width:none; margin:18px auto 0; }.generation-footnote { max-width:680px; text-align:center; color:#94a3b8; font-size:12px; line-height:1.65; margin:14px auto 0; } .feature-status-notice { min-height:76px; margin:-4px 0 22px; padding:15px 17px; display:grid; grid-template-columns:38px 1fr; gap:12px; align-items:start; border:1px solid rgba(245,158,11,.28); border-radius:12px; background:rgba(120,53,15,.13); }.feature-status-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:9px; color:#fbbf24; background:rgba(245,158,11,.14); }.feature-status-heading { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }.feature-status-heading strong { color:#f8fafc; font-size:13px; }.feature-status-heading b { padding:3px 7px; border-radius:999px; color:#fbbf24; background:rgba(245,158,11,.12); font-size:9px; }.feature-status-notice p { margin:6px 0 0; color:#94a3b8; font-size:11px; line-height:1.65; }.feature-status-notice.ready { border-color:rgba(52,211,153,.25); background:rgba(6,78,59,.13); }.feature-status-notice.ready .feature-status-icon,.feature-status-notice.ready .feature-status-heading b { color:#34d399; background:rgba(16,185,129,.13); }.feature-status-notice.unavailable { border-color:rgba(251,113,133,.25); background:rgba(127,29,29,.12); }.feature-status-notice.unavailable .feature-status-icon,.feature-status-notice.unavailable .feature-status-heading b { color:#fb7185; background:rgba(244,63,94,.12); } .large-mode-tabs { margin-bottom:20px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }.large-mode-tabs button { min-width:0; justify-content:center; padding:12px 20px; }.image-setting-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:14px; align-items:stretch; }.image-setting-grid > label,.image-setting-grid > .option-group { min-width:0; margin-top:0; padding:14px; border:1px solid rgba(148,163,184,.13); border-radius:10px; background:rgba(15,23,42,.3); }.image-setting-grid > label { display:flex; flex-direction:column; justify-content:space-between; color:white; font-size:14px; }.image-setting-grid select { width:100%; min-height:38px; margin-top:10px; padding:9px 12px; color:white; border:1px solid var(--border); border-radius:7px; background:#172238; } .submodule-header { padding:18px 0 24px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; gap:20px; }.submodule-header h3 { color:white; margin:0 0 6px; }.submodule-header p { color:#94a3b8; margin:0; }.submodule-header > div:last-child { display:grid; grid-template-columns:1fr 1fr; gap:7px; }.submodule-header span { padding:7px 10px; border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.04); font-size:11px; } .upload-block { min-height:75px; margin-top:14px; padding:14px 17px; border:1px dashed rgba(148,163,184,.32); border-radius:9px; display:flex; align-items:center; justify-content:space-between; }.upload-block > div { display:flex; align-items:center; gap:11px; color:#60a5fa; }.upload-block span { display:flex; flex-direction:column; gap:3px; }.upload-block strong { color:#e2e8f0; }.upload-block small { color:#64748b; }.upload-block button,.product-image-grid button { border:1px solid var(--border); background:rgba(255,255,255,.045); color:#94a3b8; padding:8px 12px; border-radius:7px; display:inline-flex; gap:6px; align-items:center; } .product-image-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }.product-image-grid article { padding:17px; border:1px solid var(--border); border-radius:9px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:9px; background:rgba(15,23,42,.35); }.product-image-grid article > span { font-size:23px; }.product-image-grid strong { color:white; }.product-image-grid small { color:#64748b; }.product-image-grid button { grid-column:1/-1; justify-content:center; } .submodule-intro { display:flex; align-items:center; gap:15px; margin-bottom:20px; }.submodule-intro > svg { width:50px; height:50px; padding:12px; border-radius:11px; color:#60a5fa; background:rgba(59,130,246,.15); }.submodule-intro h3 { color:white; margin:0 0 6px; }.submodule-intro p { color:#94a3b8; margin:0; }.cutout-upload { min-height:260px; }  .writing-mode-tabs { margin-bottom:22px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }.writing-mode-tabs button { min-width:0; justify-content:center; font-size:14px; }.real-writing-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,.95fr); align-items:start; gap:22px; }.real-writing-layout > section { min-width:0; padding:24px; border:1px solid var(--border); border-radius:13px; background:rgba(30,41,59,.66); }.writing-input { min-height:255px; }.writing-tips { margin-top:22px; padding:17px 20px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.34); }.writing-tips h4 { margin:0 0 10px; color:white; }.writing-tips ul { margin:0; padding-left:20px; color:#94a3b8; font-size:13px; line-height:1.8; }.result-text { margin-top:18px; min-height:210px; }.practice-panel { padding:22px; border:1px solid rgba(59,130,246,.14); border-radius:13px; background:linear-gradient(150deg,rgba(30,58,138,.18),rgba(30,41,59,.78)); }.practice-panel > div:first-child { display:grid; grid-template-columns:42px 1fr; }.practice-panel > div:first-child > span { grid-row:1/3; font-size:25px; }.practice-panel h3 { color:white; margin:0; }.practice-panel > div:first-child p { color:#94a3b8; margin:5px 0 18px; font-size:12px; }.practice-panel article { display:flex; gap:11px; padding:14px; border-radius:9px; background:rgba(255,255,255,.045); margin-top:10px; }.practice-panel article b { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; color:#bfdbfe; background:rgba(59,130,246,.2); font-size:11px; flex:none; }.practice-panel h4 { color:white; margin:0 0 5px; font-size:13px; }.practice-panel article p { color:#94a3b8; margin:0; font-size:11px; line-height:1.45; }  .workspace-controls { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }.category-buttons { display:flex; gap:7px; flex-wrap:wrap; }.category-buttons button { padding:9px 14px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.035); color:#94a3b8; display:inline-flex; align-items:center; gap:7px; cursor:pointer; }.category-buttons button.active { color:white; background:#3b82f6; border-color:#3b82f6; }.workspace-meta { display:flex; gap:24px; padding:11px 14px; border-radius:8px; color:#64748b; background:rgba(255,255,255,.025); font-size:12px; }.workspace-real-layout { display:grid; grid-template-columns:1fr 260px; gap:20px; margin-top:16px; }.workspace-file-panel { min-height:330px; border:1px solid var(--border); border-radius:12px; background:rgba(30,41,59,.65); padding:18px; }.file-preview { min-height:110px; display:grid; place-items:center; color:#60a5fa; font-size:42px; background:rgba(15,23,42,.5); }.uploaded-grid article > div:last-child span { color:#64748b; font-size:11px; }.storage-card { padding:22px; border:1px solid var(--border); border-radius:12px; background:rgba(30,41,59,.75); }.storage-card h3 { color:white; margin:0 0 22px; }.storage-ring { width:130px; height:130px; margin:auto; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#3b82f6 0 2%,rgba(255,255,255,.07) 2%); position:relative; }.storage-ring::after { content:''; position:absolute; inset:18px; border-radius:50%; background:#1b263b; }.storage-ring > div { z-index:1; text-align:center; }.storage-ring strong { color:white; display:block; font-size:22px; }.storage-ring span { color:#64748b; font-size:10px; }.storage-card > p { color:#94a3b8; text-align:center; }.storage-card > small { color:#64748b; display:block; margin-top:13px; }  .real-account-layout { display:grid; grid-template-columns:270px 1fr; gap:24px; }.account-sidebar,.account-content-panel { border:1px solid var(--border); border-radius:13px; background:rgba(30,41,59,.75); }.account-profile { padding:28px 20px 22px; text-align:center; border-bottom:1px solid var(--border); }.account-profile > div { width:66px; height:66px; margin:0 auto 14px; border-radius:50%; display:grid; place-items:center; color:white; font-size:25px; font-weight:700; background:linear-gradient(135deg,#3b82f6,#8b5cf6); }.account-profile h3 { color:white; margin:0 0 5px; }.account-profile p { color:#94a3b8; font-size:12px; margin:0 0 11px; word-break:break-all; }.account-profile span { display:inline-block; padding:5px 10px; border-radius:999px; color:#93c5fd; background:rgba(59,130,246,.14); font-size:11px; }.account-sidebar nav { padding:12px; }.account-sidebar nav button { width:100%; padding:11px 12px; border:0; border-radius:8px; background:transparent; color:#94a3b8; display:flex; align-items:center; gap:9px; cursor:pointer; }.account-sidebar nav button.active { color:white; background:rgba(59,130,246,.16); }.account-sidebar nav .logout-row { margin-top:12px; border-top:1px solid var(--border); border-radius:0; padding-top:18px; color:#fb7185; }.account-content-panel { min-height:440px; padding:28px 32px; }.account-content-panel > h2 { color:white; margin:0 0 25px; }.account-field { display:block; color:#cbd5e1; margin-bottom:20px; }.account-field input { width:100%; margin-top:8px; padding:12px 13px; color:white; border:1px solid var(--border); border-radius:8px; background:rgba(15,23,42,.6); }.account-field input:disabled { color:#64748b; }.account-field small { display:block; color:#64748b; margin-top:6px; }.account-content-panel > .wide-primary { max-width:240px; margin:10px 0 0; } .device-list article { min-height:76px; padding:13px 15px; display:grid; grid-template-columns:42px 1fr auto; gap:12px; align-items:center; border:1px solid var(--border); border-radius:9px; margin-bottom:10px; }.device-list article > span { width:40px; height:40px; border-radius:9px; display:grid; place-items:center; color:#60a5fa; background:rgba(59,130,246,.12); }.device-list h4 { color:white; margin:0 0 5px; }.device-list p,.device-list small { color:#64748b; margin:0; font-size:11px; }.device-list article > div:last-child { text-align:right; }.device-list b { display:block; color:#34d399; font-size:11px; margin-bottom:5px; } .session-revoke { margin:0 0 6px auto; padding:5px 8px; display:block; border:1px solid rgba(251,113,133,.28); border-radius:6px; color:#fda4af; background:rgba(127,29,29,.12); cursor:pointer; font-size:10px; }.session-revoke:disabled { opacity:.55; cursor:wait; } .account-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }.account-kpis article { padding:20px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.35); }.account-kpis span { color:#94a3b8; font-size:12px; }.account-kpis strong { display:block; margin-top:8px; color:white; font-size:27px; }.account-kpis .healthy { color:#34d399; font-size:20px; }.usage-trend,.module-usage { margin-top:24px; padding:20px; border:1px solid var(--border); border-radius:10px; }.usage-trend h3,.module-usage h3 { color:white; margin:0 0 20px; }.usage-trend > div { height:150px; display:flex; align-items:flex-end; justify-content:space-around; gap:12px; }.usage-trend i { width:8%; display:block; background:linear-gradient(#60a5fa,#2563eb); border-radius:4px 4px 0 0; position:relative; }.usage-trend i span { position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%); color:#64748b; font-size:10px; font-style:normal; }.module-usage .real-empty { min-height:110px; }.security-card { padding:20px; display:grid; grid-template-columns:48px 1fr auto; gap:14px; align-items:center; border:1px solid var(--border); border-radius:10px; }.security-card > svg { width:46px; height:46px; padding:11px; border-radius:10px; color:#60a5fa; background:rgba(59,130,246,.12); }.security-card h3 { color:white; margin:0 0 5px; }.security-card p { color:#94a3b8; margin:0 0 8px; }.security-card span { color:#cbd5e1; font-size:12px; }.security-card b { color:#34d399; display:flex; align-items:center; gap:5px; font-size:12px; }  @media (max-width: 980px) {   .real-feature-grid { grid-template-columns:1fr 1fr; }.compact-feature-grid { grid-template-columns:repeat(4,1fr); }.generation-options,.image-setting-grid { grid-template-columns:1fr; }.inspiration-grid { grid-template-columns:1fr 1fr; }.writing-mode-tabs { flex-wrap:wrap; }.real-writing-layout { grid-template-columns:1fr; }.workspace-real-layout { grid-template-columns:1fr; }.storage-card { display:grid; grid-template-columns:1fr 150px; align-items:center; }.real-account-layout { grid-template-columns:220px 1fr; }.product-image-grid { grid-template-columns:1fr 1fr; } } @media (max-width: 680px) {   .protected-page .tool-content { width:min(100% - 24px,1250px); padding-top:26px; }.module-heading { min-height:auto; flex-direction:column; margin-bottom:25px; }.module-heading h1 { font-size:28px; }.danger-action,.module-heading .primary-action { width:100%; justify-content:center; }.real-feature-grid,.inspiration-grid,.compact-feature-grid { grid-template-columns:1fr 1fr; }.analytics-import-card { align-items:flex-start; flex-direction:column; }.real-upload-zone { padding:28px 16px; }.real-upload-zone > div { flex-direction:column; width:100%; }.real-upload-zone .primary-action,.real-upload-zone .secondary-action { width:100%; }.large-mode-tabs,.writing-mode-tabs { align-items:stretch; flex-direction:column; }.large-mode-tabs button,.writing-mode-tabs button { width:100%; }.submodule-header { flex-direction:column; }.product-image-grid,.account-kpis { grid-template-columns:1fr; }.workspace-controls { align-items:stretch; flex-direction:column; }.workspace-meta { flex-direction:column; gap:6px; }.storage-card { display:block; }.real-account-layout { grid-template-columns:1fr; }.account-sidebar nav { display:grid; grid-template-columns:1fr 1fr; }.account-sidebar nav .logout-row { border-top:0; margin-top:0; padding-top:11px; }.account-content-panel { padding:22px 17px; }.device-list article { grid-template-columns:38px 1fr; }.device-list article > div:last-child { grid-column:2; text-align:left; }.uploaded-grid { grid-template-columns:1fr 1fr; } }  /* Unified file library and refined module layout */ .module-kicker { display:block; margin-bottom:7px; color:#60a5fa; font-size:11px; font-weight:750; letter-spacing:.14em; text-transform:uppercase; } .refined-heading { padding-bottom:22px; border-bottom:1px solid rgba(255,255,255,.07); } .refined-heading h1 { letter-spacing:-.035em; } .refined-upload-zone { border-radius:16px; background:linear-gradient(145deg,rgba(30,41,59,.74),rgba(15,23,42,.62)); box-shadow:inset 0 1px rgba(255,255,255,.03); } .refined-generation-card { border-radius:17px; box-shadow:0 18px 55px rgba(2,6,23,.18); } .primary-action,.secondary-action,.danger-action { min-height:40px; align-items:center; justify-content:center; cursor:pointer; } .primary-action:disabled,.wide-primary:disabled { opacity:.45; cursor:not-allowed; }  .modal-backdrop { position:fixed; inset:0; z-index:120; display:grid; place-items:center; padding:24px; background:rgba(2,6,23,.76); backdrop-filter:blur(10px); animation:modal-in .18s ease-out; } @keyframes modal-in { from { opacity:0; } to { opacity:1; } } .file-preview-modal,.file-import-dialog,.compact-modal { width:min(920px,100%); max-height:min(820px,calc(100vh - 48px)); overflow:hidden; display:flex; flex-direction:column; border:1px solid rgba(148,163,184,.2); border-radius:18px; background:#151f33; box-shadow:0 28px 90px rgba(0,0,0,.48); } .file-preview-modal > header,.file-import-dialog > header,.compact-modal > header { min-height:72px; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); } .file-preview-modal > header > div,.file-import-dialog > header > div { display:flex; align-items:center; gap:12px; min-width:0; } .file-preview-modal header svg,.file-import-dialog header > div > svg { color:#60a5fa; font-size:23px; flex:none; } .file-preview-modal header h2,.file-import-dialog header h2,.compact-modal header h2 { margin:0; color:#fff; font-size:18px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .file-preview-modal header p,.file-import-dialog header p,.compact-modal header p { margin:4px 0 0; color:#64748b; font-size:12px; } .file-preview-modal header button,.file-import-dialog header > button,.compact-modal header > button { width:36px; height:36px; display:grid; place-items:center; flex:none; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.04); color:#94a3b8; cursor:pointer; } .file-preview-modal > footer,.file-import-dialog > footer,.compact-modal > footer { min-height:72px; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid var(--border); } .file-preview-modal footer > div,.file-import-dialog footer > div { display:flex; gap:10px; } .file-import-dialog footer > span { color:#64748b; font-size:12px; } .preview-stage { min-height:420px; flex:1; padding:24px; overflow:auto; display:grid; place-items:center; background:radial-gradient(circle at 50% 35%,rgba(59,130,246,.08),transparent 52%),#0b1220; } .preview-stage > img,.preview-stage > video { max-width:100%; max-height:60vh; border-radius:10px; box-shadow:0 15px 45px rgba(0,0,0,.35); } .preview-stage iframe { width:100%; height:60vh; border:0; border-radius:9px; background:#fff; } .preview-stage pre { width:100%; min-height:360px; margin:0; padding:20px; overflow:auto; color:#cbd5e1; line-height:1.65; white-space:pre-wrap; word-break:break-word; border:1px solid var(--border); border-radius:10px; background:#0f172a; } .audio-preview,.generic-preview { width:min(560px,100%); padding:40px; text-align:center; border:1px solid var(--border); border-radius:14px; background:rgba(30,41,59,.72); } .audio-preview audio { width:100%; } .generic-preview > svg { font-size:54px; color:#60a5fa; }.generic-preview h3 { margin:15px 0 7px; color:#fff; }.generic-preview p { margin:0; color:#94a3b8; }  .dialog-search { margin:18px 20px 0; min-height:44px; padding:0 13px; display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.64); } .dialog-search svg { color:#64748b; }.dialog-search input { width:100%; border:0; outline:0; background:transparent; color:#fff; } .dialog-file-grid { min-height:330px; padding:18px 20px 22px; overflow:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:12px; } .dialog-file-grid > article { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:rgba(15,23,42,.5); transition:.18s; } .dialog-file-grid > article:hover { transform:translateY(-2px); border-color:rgba(96,165,250,.46); } .dialog-file-grid > article.selected { border-color:#3b82f6; box-shadow:0 0 0 2px rgba(59,130,246,.15); } .dialog-file-select { position:relative; width:100%; padding:0; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; } .dialog-file-select .library-thumbnail { width:100%; aspect-ratio:16/10; border-radius:0; } .dialog-file-select > span { padding:11px 12px 9px; display:block; min-width:0; }.dialog-file-select strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e2e8f0; font-size:13px; }.dialog-file-select small { display:block; margin-top:5px; color:#64748b; font-size:10px; } .dialog-file-select > b { position:absolute; top:9px; right:9px; width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:#3b82f6; color:#fff; box-shadow:0 4px 12px rgba(37,99,235,.35); } .dialog-preview-button { width:100%; padding:8px; border:0; border-top:1px solid var(--border); background:rgba(255,255,255,.025); color:#60a5fa; font-size:11px; cursor:pointer; } .dialog-empty { grid-column:1/-1; min-height:280px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#64748b; text-align:center; }.dialog-empty > svg { font-size:44px; }.dialog-empty h3 { margin:13px 0 7px; color:#e2e8f0; }.dialog-empty p { margin:0; color:#64748b; }  .library-thumbnail { width:100%; height:100%; object-fit:cover; } .library-file-icon { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; color:#60a5fa; background:linear-gradient(145deg,rgba(30,41,59,.9),rgba(15,23,42,.88)); } .library-file-icon svg { font-size:35px; }.library-file-icon span { max-width:90%; overflow:hidden; color:#64748b; font-size:10px; font-weight:700; letter-spacing:.08em; } .workspace-command-bar { padding:14px; display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--border); border-radius:13px; background:rgba(30,41,59,.58); } .workspace-search-area { min-width:420px; display:flex; align-items:center; justify-content:flex-end; gap:9px; } .search-mode-switch { padding:3px; display:flex; align-items:center; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.68); } .search-mode-switch button { min-height:32px; padding:0 10px; display:inline-flex; align-items:center; gap:5px; border:0; border-radius:6px; color:#64748b; background:transparent; cursor:pointer; white-space:nowrap; } .search-mode-switch button.active { color:#dbeafe; background:rgba(59,130,246,.2); } .workspace-smart-guide { margin:10px 0; padding:11px 14px; display:flex; align-items:flex-start; gap:10px; border:1px solid rgba(96,165,250,.18); border-radius:10px; color:#94a3b8; background:rgba(30,64,175,.055); font-size:12px; line-height:1.65; } .workspace-smart-guide > svg { flex:0 0 auto; margin-top:3px; color:#60a5fa; }.workspace-smart-guide strong { color:#dbeafe; } .workspace-heading-actions { display:flex; align-items:center; gap:9px; }.workspace-heading-actions .primary-action,.workspace-heading-actions .secondary-action { margin:0; }.workspace-heading-actions button:disabled { opacity:.5; cursor:not-allowed; } .file-migration-status { margin:-10px 0 16px; padding:13px 16px; border:1px solid rgba(59,130,246,.25); border-radius:11px; background:rgba(59,130,246,.08); }.file-migration-status > div:first-child { display:flex; align-items:center; gap:10px; color:#93c5fd; }.file-migration-status span { display:flex; flex-direction:column; gap:3px; }.file-migration-status strong { color:#dbeafe; font-size:12px; }.file-migration-status small { color:#64748b; font-size:10px; }.file-migration-status .progress { margin-top:10px; } .workspace-notice { margin:-7px 0 14px; padding:10px 13px; border:1px solid rgba(96,165,250,.2); border-radius:9px; color:#bfdbfe; background:rgba(30,64,175,.09); font-size:11px; } .workspace-batch-bar { min-height:52px; margin-top:12px; padding:8px 10px; display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.45); }.workspace-batch-bar .secondary-action,.workspace-batch-bar .danger-action { min-height:34px; margin:0; padding:7px 10px; font-size:10px; }.workspace-batch-bar > span { margin-right:auto; color:#94a3b8; font-size:11px; } .category-buttons button small { min-width:20px; padding:2px 6px; border-radius:999px; background:rgba(255,255,255,.08); color:inherit; font-size:9px; text-align:center; } .small-search { min-width:245px; min-height:40px; padding:0 6px 0 12px; display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.58); } .small-search svg { color:#64748b; }.small-search input { width:100%; border:0; outline:0; color:#fff; background:transparent; } .smart-search-submit { min-width:54px; height:30px; display:grid; place-items:center; border:0; border-radius:7px; color:#fff; background:#2563eb; cursor:pointer; }.smart-search-submit:disabled { cursor:wait; opacity:.65; } .refined-workspace-layout { grid-template-columns:minmax(0,1fr) 275px; align-items:start; } .refined-file-panel { min-height:520px; padding:16px; } .library-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; } .library-card { position:relative; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:13px; background:rgba(15,23,42,.48); transition:.18s; } .library-card:hover { transform:translateY(-2px); border-color:rgba(96,165,250,.36); box-shadow:0 12px 30px rgba(2,6,23,.2); } .library-card.selected { border-color:#60a5fa; box-shadow:0 0 0 1px rgba(96,165,250,.25); }.library-select-toggle { position:absolute; z-index:3; top:8px; right:8px; width:30px; height:30px; display:grid; place-items:center; border:1px solid rgba(148,163,184,.28); border-radius:8px; color:#94a3b8; background:rgba(15,23,42,.86); cursor:pointer; }.library-select-toggle.selected { color:#fff; border-color:#3b82f6; background:#2563eb; } .library-preview-area { position:relative; width:100%; aspect-ratio:16/10; padding:0; overflow:hidden; border:0; background:#0f172a; cursor:pointer; } .library-preview-area:disabled { cursor:not-allowed; opacity:.72; } .preview-hint { position:absolute; inset:auto 10px 10px; padding:6px 9px; display:flex; justify-content:center; align-items:center; gap:5px; border-radius:7px; background:rgba(2,6,23,.76); color:#e2e8f0; font-size:10px; opacity:0; transform:translateY(4px); transition:.18s; backdrop-filter:blur(5px); } .library-preview-area:hover .preview-hint { opacity:1; transform:none; } .library-card-info { padding:12px 13px 10px; min-width:0; }.library-card-info strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e2e8f0; font-size:13px; }.library-card-info span,.library-card-info small { display:block; margin-top:5px; color:#64748b; font-size:10px; } .library-card-info .smart-fragment { margin-top:8px; padding:7px 8px; display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; border:1px solid rgba(96,165,250,.16); border-radius:7px; color:#93c5fd; background:rgba(30,64,175,.08); font-size:9px; font-style:normal; line-height:1.55; }.library-card-info .smart-fragment svg { margin-right:5px; vertical-align:-2px; } .library-card-actions { padding:8px 10px; display:grid; grid-template-columns:repeat(5,1fr); gap:6px; border-top:1px solid var(--border); } .library-card-actions button { height:31px; display:grid; place-items:center; border:0; border-radius:7px; background:rgba(255,255,255,.035); color:#94a3b8; cursor:pointer; }.library-card-actions button:hover { color:#fff; background:rgba(59,130,246,.2); }.library-card-actions button.delete:hover { color:#fda4af; background:rgba(244,63,94,.13); } .library-card-actions button:disabled { cursor:not-allowed; opacity:.38; background:rgba(255,255,255,.02); } .spinning { animation:xaryin-spin .9s linear infinite; } @keyframes xaryin-spin { to { transform:rotate(360deg); } } .refined-storage-card { position:sticky; top:92px; }.refined-storage-card .progress { height:5px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.07); }.refined-storage-card .progress i { display:block; height:100%; min-width:0; border-radius:inherit; background:linear-gradient(90deg,#3b82f6,#8b5cf6); } .storage-stat-list { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }.storage-stat-list span { padding:10px; border-radius:8px; color:#64748b; background:rgba(255,255,255,.035); font-size:10px; }.storage-stat-list b { display:block; margin-bottom:3px; color:#e2e8f0; font-size:16px; } .compact-modal { width:min(480px,100%); }.compact-modal > label { margin:22px 20px; color:#cbd5e1; font-size:13px; }.compact-modal > label input { width:100%; margin-top:8px; padding:12px; border:1px solid var(--border); border-radius:9px; outline:0; background:#0f172a; color:#fff; }.compact-modal > label input:focus { border-color:#3b82f6; } .danger-modal { border-color:rgba(244,63,94,.3); }.delete-file-summary { margin:22px 20px; padding:12px; display:flex; align-items:center; gap:13px; border:1px solid rgba(244,63,94,.17); border-radius:10px; background:rgba(244,63,94,.06); }.delete-file-summary .library-thumbnail { width:54px; height:54px; flex:none; border-radius:8px; }.delete-file-summary strong { display:block; color:#fff; word-break:break-all; }.delete-file-summary span { display:block; margin-top:5px; color:#94a3b8; font-size:11px; }  .processing-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }.processing-grid article { overflow:hidden; border:1px solid var(--border); border-radius:12px; background:rgba(30,41,59,.7); }.processing-preview { position:relative; width:100%; aspect-ratio:4/3; padding:0; border:0; overflow:hidden; background:#0f172a; cursor:pointer; }.processing-preview span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:6px; background:rgba(2,6,23,.62); opacity:0; transition:.18s; }.processing-preview:hover span { opacity:1; }.processing-grid article > div { padding:12px; }.processing-grid article strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff; }.processing-grid article > div > div { margin-top:10px; display:flex; gap:8px; }.processing-grid article > div button { flex:1; padding:7px; border:1px solid var(--border); border-radius:7px; background:rgba(255,255,255,.04); color:#94a3b8; cursor:pointer; }.processing-grid article > div button.remove { color:#fda4af; } .refined-import-card > div:first-child > div { display:flex; flex-wrap:wrap; gap:10px; }.selected-file-strip { width:100%; margin-top:13px; padding:10px; display:flex; flex-wrap:wrap; gap:9px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.45); }.analytics-import-card + .selected-file-strip { align-items:center; margin:14px 0; }.analytics-import-card + .selected-file-strip > svg { color:#60a5fa; }.analytics-import-card + .selected-file-strip > div { flex:1; }.analytics-import-card + .selected-file-strip strong,.analytics-import-card + .selected-file-strip span { display:block; }.analytics-import-card + .selected-file-strip span { margin-top:3px; color:#64748b; font-size:11px; } .selected-file-strip > article { width:112px; min-width:0; position:relative; overflow:hidden; border:1px solid var(--border); border-radius:8px; background:rgba(30,41,59,.8); }.selected-file-strip > article .library-thumbnail { width:100%; height:72px; }.selected-file-strip > article > span { display:block; padding:7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#cbd5e1; font-size:10px; }.selected-file-strip > article > button { position:absolute; top:5px; right:5px; width:23px; height:23px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; color:#fff; background:rgba(2,6,23,.78); cursor:pointer; }.selected-file-strip.compact > article { width:72px; }.selected-file-strip.compact > article .library-thumbnail { height:52px; } .video-source-card { overflow:hidden; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); border:1px solid var(--border); border-radius:16px; background:rgba(30,41,59,.75); }.video-source-preview { min-height:360px; display:grid; place-items:center; background:#050912; }.video-source-preview video { width:100%; max-height:520px; }.video-source-info { padding:34px; display:flex; flex-direction:column; justify-content:center; }.video-source-info > span { color:#60a5fa; font-size:11px; font-weight:700; letter-spacing:.1em; }.video-source-info h2 { margin:9px 0; color:#fff; word-break:break-word; }.video-source-info p { margin:0 0 24px; color:#94a3b8; line-height:1.7; }.video-source-info > div { display:flex; flex-wrap:wrap; gap:10px; }  .refined-mini-upload { padding:16px 18px; justify-content:space-between; }.refined-mini-upload > span { display:flex; flex:1; flex-direction:column; gap:4px; }.refined-mini-upload strong { color:#e2e8f0; }.refined-mini-upload small { color:#64748b; }.refined-mini-upload > div { display:flex; gap:9px; } .selected-reference-card { margin-bottom:18px; padding:12px; display:grid; grid-template-columns:86px 1fr 36px; align-items:center; gap:14px; border:1px solid rgba(59,130,246,.28); border-radius:12px; background:rgba(59,130,246,.08); }.selected-reference-card .library-thumbnail { width:86px; height:66px; border-radius:8px; }.selected-reference-card span,.selected-reference-card strong,.selected-reference-card small { display:block; }.selected-reference-card span { color:#60a5fa; font-size:10px; }.selected-reference-card strong { margin:5px 0; color:#fff; }.selected-reference-card small { color:#64748b; }.selected-reference-card > button { width:34px; height:34px; display:grid; place-items:center; border:0; border-radius:8px; background:rgba(255,255,255,.05); color:#94a3b8; cursor:pointer; } .refined-import-block { min-height:88px; flex-wrap:wrap; gap:12px; }.refined-import-block > .upload-block-heading { flex:1; }.upload-block-actions { display:flex; gap:8px; }.upload-block-actions .secondary-action { padding:8px 11px; } .refined-product-grid article { align-content:start; }.refined-product-grid article > div:not(.selected-file-strip) { grid-column:1/-1; display:flex; gap:6px; }.refined-product-grid article > div > label,.refined-product-grid article > div > button { flex:1; padding:8px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); border-radius:7px; background:rgba(255,255,255,.045); color:#94a3b8; font-size:11px; cursor:pointer; }.refined-product-grid .selected-file-strip { grid-column:1/-1; } .writing-import-bar { margin-bottom:12px; padding:10px 11px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid var(--border); border-radius:10px; background:rgba(30,41,59,.55); }.writing-import-bar > div { display:flex; align-items:center; gap:9px; min-width:0; }.writing-import-bar > div:first-child > svg { color:#60a5fa; font-size:22px; }.writing-import-bar strong,.writing-import-bar small { display:block; max-width:250px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.writing-import-bar strong { color:#e2e8f0; font-size:12px; }.writing-import-bar small,.writing-import-hint { color:#64748b; font-size:10px; }.writing-import-bar > div:first-child > button { border:0; background:transparent; color:#64748b; cursor:pointer; }.writing-import-bar > div:last-child { flex:none; }.result-heading { margin-top:24px; } .ai-capability-tabs { margin-bottom:22px; padding:6px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; border:1px solid var(--border); border-radius:15px; background:rgba(15,23,42,.58); }.ai-capability-tabs > button { min-height:76px; padding:13px 16px; display:flex; align-items:center; gap:12px; border:1px solid transparent; border-radius:11px; color:#64748b; background:transparent; text-align:left; cursor:pointer; }.ai-capability-tabs > button > svg { flex:none; font-size:23px; }.ai-capability-tabs strong,.ai-capability-tabs small { display:block; }.ai-capability-tabs strong { color:#e2e8f0; font-size:13px; }.ai-capability-tabs small { margin-top:5px; color:#64748b; font-size:10px; line-height:1.45; }.ai-capability-tabs > button.active { color:#60a5fa; border-color:rgba(96,165,250,.4); background:rgba(59,130,246,.13); }.writing-capability-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); } .storyboard-workbench { display:grid; gap:20px; max-width:1180px; margin:0 auto; } .storyboard-brief-card,.storyboard-result-card { overflow:hidden; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,rgba(30,41,59,.82),rgba(15,23,42,.78)); box-shadow:0 18px 55px rgba(2,6,23,.16); } .storyboard-card-heading { min-height:92px; padding:20px 23px; display:flex; align-items:center; gap:13px; border-bottom:1px solid var(--border); }.storyboard-card-heading>span,.storyboard-result-card>header>div:first-child>span { width:44px; height:44px; display:grid; place-items:center; flex:none; border-radius:12px; color:#bfdbfe; background:rgba(59,130,246,.16); font-size:22px; }.storyboard-card-heading h2,.storyboard-result-card h2 { margin:0; color:#fff; font-size:18px; }.storyboard-card-heading p,.storyboard-result-card header p { margin:5px 0 0; color:#94a3b8; font-size:11px; line-height:1.55; } .storyboard-contract-note { margin:18px 23px 0; padding:11px 12px; display:flex; align-items:flex-start; gap:9px; border:1px solid rgba(96,165,250,.18); border-radius:10px; color:#8fa8ca; background:rgba(30,64,175,.09); font-size:10px; line-height:1.65; }.storyboard-contract-note>svg { margin-top:2px; flex:none; color:#60a5fa; }.storyboard-contract-note strong { color:#bfdbfe; } .storyboard-brief-grid { padding:18px 23px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.storyboard-field { min-width:0; margin:0; padding:12px; border:1px solid rgba(148,163,184,.15); border-radius:10px; background:rgba(15,23,42,.36); }.storyboard-field>span,.storyboard-field legend { display:block; margin:0 0 8px; padding:0; color:#cbd5e1; font-size:11px; font-weight:650; }.storyboard-field>span b { margin-left:5px; color:#fda4af; font-size:9px; }.storyboard-field input,.storyboard-field select,.storyboard-field textarea { box-sizing:border-box; width:100%; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#111c31; font:inherit; font-size:11px; }.storyboard-field input,.storyboard-field select { min-height:39px; padding:9px 10px; }.storyboard-field textarea { min-height:84px; padding:10px; resize:vertical; line-height:1.6; }.storyboard-field input:focus,.storyboard-field select:focus,.storyboard-field textarea:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }.storyboard-theme-field { grid-column:span 2; }.storyboard-field-wide { grid-column:span 3; } .storyboard-choice-field { min-inline-size:0; }.storyboard-choice-field>div { display:flex; gap:6px; }.storyboard-choice-field button { min-height:39px; flex:1; padding:7px 8px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.035); font-size:10px; cursor:pointer; }.storyboard-choice-field button.active { border-color:#3b82f6; color:#fff; background:rgba(37,99,235,.35); }.storyboard-choice-field small { display:block; margin-top:7px; color:#64748b; font-size:9px; line-height:1.4; } .storyboard-context-option { margin:14px 23px 0; }.storyboard-brief-card>.generation-status { margin:18px 23px 0; }.storyboard-brief-card>.wide-primary { width:calc(100% - 46px); margin:14px 23px 23px; } .storyboard-result-card>header { min-height:86px; padding:17px 23px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--border); }.storyboard-result-card>header>div:first-child { min-width:0; display:flex; align-items:center; gap:11px; }.storyboard-result-actions { display:flex; flex:none; gap:8px; }.storyboard-result-actions button { min-height:37px; padding:8px 11px; display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--border); border-radius:8px; color:#bfdbfe; background:rgba(59,130,246,.09); font-size:10px; cursor:pointer; }.storyboard-result-actions button:hover { border-color:rgba(96,165,250,.55); color:#fff; }.storyboard-result-text { min-height:420px; margin:19px 23px 0; width:calc(100% - 46px); font-family:ui-monospace,SFMono-Regular,Consolas,"Microsoft YaHei",sans-serif; font-size:12px; line-height:1.75; }.storyboard-result-card>.ai-result-feedback { margin:10px 23px 0; } .storyboard-video-handoff { margin:17px 23px 23px; padding:16px; border:1px solid rgba(52,211,153,.18); border-radius:12px; background:rgba(6,78,59,.09); }.storyboard-video-handoff>div:first-child { display:flex; align-items:center; gap:10px; }.storyboard-video-handoff>div:first-child>span { width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:9px; color:#a7f3d0; background:rgba(16,185,129,.13); }.storyboard-video-handoff h3 { margin:0; color:#d1fae5; font-size:14px; }.storyboard-video-handoff p { margin:4px 0 0; color:#8291a8; font-size:10px; }.storyboard-prompt-text { min-height:130px; margin-top:13px; }.storyboard-handoff-actions { margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:13px; }.storyboard-handoff-actions small { max-width:560px; color:#8291a8; font-size:10px; line-height:1.55; }.storyboard-handoff-actions .primary-action { width:auto; min-height:39px; margin:0; padding:9px 13px; background:#059669; }.storyboard-handoff-actions .primary-action:hover { background:#047857; }.storyboard-handoff-actions .primary-action:disabled { opacity:.45; cursor:not-allowed; } @media (max-width:960px) { .storyboard-brief-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.storyboard-field-wide { grid-column:span 2; }.storyboard-theme-field { grid-column:span 2; } } @media (max-width:620px) { .storyboard-card-heading,.storyboard-result-card>header { align-items:flex-start; flex-direction:column; }.storyboard-brief-card>.wide-primary { width:calc(100% - 28px); margin-left:14px; margin-right:14px; }.storyboard-contract-note,.storyboard-context-option,.storyboard-brief-card>.generation-status { margin-left:14px; margin-right:14px; }.storyboard-brief-grid { padding-left:14px; padding-right:14px; grid-template-columns:1fr; }.storyboard-theme-field,.storyboard-field-wide { grid-column:auto; }.storyboard-result-card>header { padding-left:14px; padding-right:14px; }.storyboard-result-actions { width:100%; }.storyboard-result-actions button { flex:1; }.storyboard-result-text { width:calc(100% - 28px); margin-left:14px; margin-right:14px; }.storyboard-result-card>.ai-result-feedback { margin-left:14px; margin-right:14px; }.storyboard-video-handoff { margin-left:14px; margin-right:14px; }.storyboard-handoff-actions { align-items:stretch; flex-direction:column; }.storyboard-handoff-actions .primary-action { width:100%; } } .audio-ai-card { padding:0; overflow:hidden; }.audio-ai-card > header { min-height:82px; padding:17px 21px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border); }.audio-ai-card > header > span { width:44px; height:44px; display:grid; place-items:center; flex:none; border-radius:11px; color:#bfdbfe; background:rgba(59,130,246,.14); font-size:21px; }.audio-ai-card > header h2 { margin:0; color:#fff; font-size:17px; }.audio-ai-card > header p { margin:5px 0 0; color:#64748b; font-size:11px; line-height:1.5; }.audio-ai-card > .mini-upload,.audio-ai-card > .selected-reference-card,.audio-ai-card > .real-label,.audio-ai-card > .real-textarea,.audio-ai-card > .section-row,.audio-ai-card > .speech-options,.audio-ai-card > .generation-status,.audio-ai-card > .wide-primary,.audio-ai-card > .audio-answer,.audio-ai-card > .generated-audio-card,.audio-ai-card > .transcription-result { margin-left:21px; margin-right:21px; }.audio-ai-card > .mini-upload,.audio-ai-card > .selected-reference-card { margin-top:20px; }.audio-reference .library-thumbnail { display:grid; place-items:center; background:rgba(59,130,246,.08); }.audio-question-input { min-height:120px; }.speech-input { min-height:210px; }.speech-instructions,.transcription-prompt { min-height:86px; }.speech-options { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.speech-options label { padding:13px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.4); }.speech-options span { display:block; margin-bottom:8px; color:#94a3b8; font-size:11px; }.speech-options select { width:100%; min-height:38px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; color:#e2e8f0; background:#0f172a; }.speech-options input[type=range] { width:100%; accent-color:#3b82f6; } .audio-answer,.generated-audio-card,.transcription-result { margin-top:20px; margin-bottom:21px; padding:17px; border:1px solid rgba(96,165,250,.2); border-radius:12px; background:rgba(15,23,42,.48); }.audio-answer > div,.generated-audio-card > div:first-child { display:flex; align-items:center; gap:9px; }.audio-answer h3 { margin:0; color:#fff; font-size:14px; }.audio-answer > div > svg,.generated-audio-card > div:first-child > span { color:#60a5fa; }.audio-answer textarea { width:100%; min-height:170px; margin-top:12px; padding:12px; resize:vertical; border:1px solid var(--border); border-radius:9px; color:#e2e8f0; background:#0f172a; line-height:1.7; }.generated-audio-card > div:first-child > span { width:38px; height:38px; display:grid; place-items:center; border-radius:9px; background:rgba(59,130,246,.12); }.generated-audio-card strong,.generated-audio-card small { display:block; }.generated-audio-card strong { color:#fff; }.generated-audio-card small { margin-top:4px; color:#64748b; font-size:10px; }.generated-audio-card audio { width:100%; margin-top:14px; }.generated-audio-actions { margin-top:12px; display:flex; gap:8px; }.generated-audio-actions button,.transcription-result-actions .secondary-action { min-height:36px; padding:8px 12px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--border); border-radius:8px; color:#bfdbfe; background:rgba(59,130,246,.09); cursor:pointer; }.generated-audio-actions button:disabled { opacity:.45; cursor:not-allowed; } .transcription-result .result-text { min-height:300px; }.transcription-result-actions { margin-top:13px; display:grid; grid-template-columns:auto auto minmax(220px,1fr); gap:9px; }.transcription-result-actions .wide-primary { width:100%; margin:0; }.transcription-card { max-width:960px; margin-left:auto; margin-right:auto; }  @media (max-width:1100px) {   .library-grid,.processing-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }   .workspace-command-bar { align-items:stretch; flex-direction:column; }.workspace-search-area { min-width:0; align-items:stretch; flex-direction:column; }.search-mode-switch button { flex:1; justify-content:center; }.small-search { min-width:0; }   .workspace-heading-actions,.workspace-batch-bar { width:100%; align-items:stretch; flex-direction:column; }.workspace-heading-actions .primary-action,.workspace-heading-actions .secondary-action,.workspace-batch-bar .secondary-action,.workspace-batch-bar .danger-action { width:100%; }.workspace-batch-bar > span { margin:0; text-align:center; }   .video-source-card { grid-template-columns:1fr; }.video-source-info { padding:24px; } } @media (max-width:760px) {   .modal-backdrop { padding:10px; }.file-preview-modal,.file-import-dialog,.compact-modal { max-height:calc(100vh - 20px); border-radius:13px; }   .dialog-file-grid { grid-template-columns:1fr 1fr; padding:14px; }.dialog-search { margin:14px 14px 0; }   .file-import-dialog > footer { align-items:stretch; flex-direction:column; }.file-import-dialog footer > div { display:grid; grid-template-columns:1fr 1fr; }   .library-grid,.processing-grid { grid-template-columns:1fr 1fr; }.refined-workspace-layout { grid-template-columns:1fr; }.refined-storage-card { position:static; }   .refined-mini-upload,.writing-import-bar { align-items:stretch; flex-direction:column; }.refined-mini-upload > div,.writing-import-bar > div:last-child { display:grid; grid-template-columns:1fr 1fr; }   .ai-capability-tabs,.writing-capability-tabs { grid-template-columns:1fr; }.audio-ai-card > .mini-upload,.audio-ai-card > .selected-reference-card,.audio-ai-card > .real-label,.audio-ai-card > .real-textarea,.audio-ai-card > .section-row,.audio-ai-card > .speech-options,.audio-ai-card > .generation-status,.audio-ai-card > .wide-primary,.audio-ai-card > .audio-answer,.audio-ai-card > .generated-audio-card,.audio-ai-card > .transcription-result { margin-left:14px; margin-right:14px; }.speech-options { grid-template-columns:1fr; }.generated-audio-actions,.transcription-result-actions { grid-template-columns:1fr; display:grid; }.generated-audio-actions button { width:100%; }   .upload-block-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }.upload-block-actions .secondary-action { width:100%; } } @media (max-width:440px) {   .dialog-file-grid,.library-grid,.processing-grid { grid-template-columns:1fr; }.category-buttons button { flex:1; justify-content:center; }   .refined-mini-upload > div,.writing-import-bar > div:last-child,.upload-block-actions { grid-template-columns:1fr; }   .selected-reference-card { grid-template-columns:64px 1fr 32px; }.selected-reference-card .library-thumbnail { width:64px; height:54px; } }  /* User-facing module alignment */ .inspiration-grid button { min-height:102px; } .inspiration-grid button > span { width:38px; flex:none; text-align:center; } .inspiration-grid button > div { min-width:0; } .inspiration-grid p { line-height:1.45; } .submodule-header { align-items:flex-start; } .submodule-header > div:first-child { min-width:0; } .submodule-header > div:last-child { min-width:310px; } .submodule-header span { min-height:32px; display:flex; align-items:center; } .product-image-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .product-image-grid article { min-height:132px; grid-template-columns:auto minmax(0,1fr) auto; } .product-image-grid strong { min-width:0; } .ai-task-center h2 { font-size:17px; } .ai-task-center header p { color:#94a3b8; font-size:12px; line-height:1.5; } .ai-task-list > article { min-height:80px; padding:13px 14px; gap:12px; } .ai-task-list strong { font-size:13px; } .ai-task-list small,.ai-task-list em { font-size:11px; line-height:1.55; } .ai-task-list i { height:5px; margin-top:9px; }  @media (max-width:900px) {   .writing-mode-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }   .submodule-header > div:last-child { min-width:0; width:100%; } } @media (max-width:760px) {   .large-mode-tabs { grid-template-columns:1fr; }   .writing-mode-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }   .real-writing-layout > section { padding:19px; }   .generation-card { padding:22px 18px; } } @media (max-width:440px) {   .writing-mode-tabs { grid-template-columns:1fr; }   .generation-options .option-group,.image-setting-grid > label,.image-setting-grid > .option-group { padding:12px; } }  .module-access-denied { width:min(650px,100%); min-height:510px; margin:20px auto 60px; padding:55px 48px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px solid var(--border); border-radius:18px; background:radial-gradient(circle at 50% 15%,rgba(59,130,246,.12),transparent 35%),rgba(30,41,59,.72); box-shadow:0 24px 70px rgba(2,6,23,.22); }.module-access-denied > span { width:68px; height:68px; display:grid; place-items:center; border-radius:18px; color:#7eb0ff; font-size:29px; background:rgba(59,130,246,.13); }.module-access-denied > small { margin-top:20px; color:#60a5fa; font-weight:750; letter-spacing:.12em; }.module-access-denied h1 { margin:10px 0 12px; color:#fff; font-size:30px; letter-spacing:-.035em; }.module-access-denied > p { max-width:520px; margin:0; color:#94a3b8; line-height:1.8; }.access-module-info { width:100%; margin:24px 0; padding:14px 17px; display:flex; align-items:center; justify-content:space-between; gap:14px; text-align:left; border:1px solid rgba(96,165,250,.16); border-radius:10px; background:rgba(59,130,246,.06); }.access-module-info strong { color:#dbeafe; }.access-module-info span { color:#64748b; font-size:11px; }.access-pending { width:100%; margin:0 0 18px; padding:15px 17px; display:flex; align-items:center; gap:12px; text-align:left; border:1px solid rgba(245,158,11,.18); border-radius:10px; color:#fbbf6b; background:rgba(245,158,11,.07); }.access-pending > svg { font-size:22px; flex:none; }.access-pending strong,.access-pending span { display:block; }.access-pending strong { color:#f8d28c; }.access-pending span { margin-top:4px; color:#8e7c65; font-size:10px; }.module-access-denied > a { margin-top:17px; color:#64748b; font-size:11px; }.module-access-denied > a:hover { color:#93c5fd; } @media (max-width:600px) { .module-access-denied { min-height:460px; padding:40px 20px; }.module-access-denied h1 { font-size:25px; }.access-module-info { align-items:flex-start; flex-direction:column; } } .visual-drop-zone { transition:border-color .2s,background .2s,transform .2s; } .visual-drop-zone.dragging { transform:translateY(-2px); border-color:#60a5fa; background:rgba(59,130,246,.09); box-shadow:0 0 0 4px rgba(59,130,246,.08); } .visual-drop-zone.dragging > svg { color:#60a5fa; } .visual-message { margin-top:18px; padding:13px 16px; display:flex; align-items:center; gap:10px; border:1px solid; border-radius:10px; font-size:13px; } .visual-message.success { color:#a7f3d0; border-color:rgba(16,185,129,.24); background:rgba(16,185,129,.08); } .visual-message.error { color:#fecdd3; border-color:rgba(244,63,94,.26); background:rgba(244,63,94,.08); } /* Visual compact upload bar */ .visual-compact-upload { background: rgba(15,23,42,.32); border: 1px dashed rgba(148,163,184,.42); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; transition: all .2s ease; } .visual-compact-upload.dragging { border-color: #60a5fa; background: rgba(96,165,250,.08); } .visual-compact-upload > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .visual-compact-upload > div > svg { color: #94a3b8; font-size: 22px; flex-shrink: 0; } .visual-compact-upload > div > span { color: #cbd5e1; font-size: 13px; flex-shrink: 0; } .visual-compact-upload .primary-action, .visual-compact-upload .secondary-action { margin: 0; padding: 8px 14px; font-size: 13px; } .curve-editor-container { position: relative; margin: 12px 0; } .curve-editor { width: 100%; max-width: 256px; height: 256px; border: 1px solid rgba(148,163,184,.42); border-radius: 8px; background: #0f172a; cursor: crosshair; display: block; } .curve-editor:hover { border-color: #60a5fa; } .visual-editor-section { margin-top:34px; } .visual-section-heading { margin-bottom:16px; } .visual-section-heading h2 { margin-bottom:6px; } .visual-section-heading p { margin:0; color:#64748b; font-size:12px; } .visual-section-heading > span { padding:6px 10px; border:1px solid rgba(96,165,250,.18); border-radius:99px; color:#93c5fd; background:rgba(59,130,246,.08); font-size:11px; } .visual-editor-layout { min-height:650px; display:grid; grid-template-columns:210px minmax(360px,1fr) 330px; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:rgba(15,23,42,.42); box-shadow:0 20px 55px rgba(2,6,23,.2); } .visual-queue-panel,.visual-control-panel { min-width:0; background:rgba(15,23,42,.74); } .visual-queue-panel { border-right:1px solid var(--border); } .visual-queue-panel > header { height:64px; padding:14px; display:flex; flex-direction:column; justify-content:center; border-bottom:1px solid var(--border); } .visual-queue-panel > header b { color:#e2e8f0; font-size:13px; } .visual-queue-panel > header small { margin-top:4px; color:#64748b; font-size:9px; } .visual-queue-list { max-height:720px; padding:10px; overflow:auto; } .visual-queue-list article { position:relative; margin-bottom:8px; overflow:hidden; border:1px solid transparent; border-radius:10px; background:rgba(255,255,255,.025); transition:.18s; } .visual-queue-list article:hover { border-color:rgba(148,163,184,.22); } .visual-queue-list article.active { border-color:rgba(96,165,250,.48); background:rgba(59,130,246,.1); box-shadow:0 0 0 2px rgba(59,130,246,.07); } .visual-queue-select { width:100%; min-width:0; padding:8px 29px 8px 8px; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; gap:9px; border:0; background:transparent; text-align:left; cursor:pointer; } .visual-queue-select .library-thumbnail { width:48px; height:42px; border-radius:7px; } .visual-queue-select span { min-width:0; } .visual-queue-select strong,.visual-queue-select small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .visual-queue-select strong { color:#e2e8f0; font-size:10px; } .visual-queue-select small { margin-top:5px; color:#64748b; font-size:8px; } .visual-queue-remove { position:absolute; top:50%; right:6px; width:24px; height:24px; padding:0; display:grid; place-items:center; transform:translateY(-50%); border:0; border-radius:6px; background:transparent; color:#64748b; cursor:pointer; } .visual-queue-remove:hover { color:#fda4af; background:rgba(244,63,94,.1); } .visual-preview-panel { min-width:0; display:flex; flex-direction:column; background:radial-gradient(circle at 50% 35%,rgba(59,130,246,.08),transparent 42%),#080e19; } .visual-preview-panel > header { min-height:64px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid var(--border); background:rgba(15,23,42,.48); } .visual-preview-panel > header span { min-width:0; } .visual-preview-panel > header b,.visual-preview-panel > header small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .visual-preview-panel > header b { max-width:300px; color:#e2e8f0; font-size:12px; } .visual-preview-panel > header small { margin-top:4px; color:#64748b; font-size:9px; } .visual-preview-panel > header button { padding:7px 10px; flex:none; border:1px solid var(--border); border-radius:7px; background:rgba(255,255,255,.04); color:#94a3b8; font-size:9px; cursor:pointer; } .visual-preview-panel > header button.active { color:#fff; border-color:#3b82f6; background:#2563eb; } .visual-preview-stage { position:relative; min-height:520px; flex:1; padding:30px; display:grid; place-items:center; overflow:hidden; background-image:linear-gradient(45deg,rgba(255,255,255,.018) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.018) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.018) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.018) 75%); background-position:0 0,0 8px,8px -8px,-8px 0; background-size:16px 16px; } .visual-preview-stage img { max-width:86%; max-height:570px; object-fit:contain; transition:filter .15s,transform .2s; box-shadow:0 18px 55px rgba(0,0,0,.38); } .preview-processing-note { position:absolute; left:50%; bottom:18px; padding:7px 10px; display:flex; align-items:center; gap:6px; transform:translateX(-50%); border:1px solid rgba(96,165,250,.17); border-radius:99px; color:#93c5fd; background:rgba(2,6,23,.78); font-size:9px; white-space:nowrap; backdrop-filter:blur(8px); } .visual-preview-panel > footer { min-height:44px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; color:#64748b; border-top:1px solid var(--border); background:rgba(15,23,42,.48); font-size:9px; } .visual-control-panel { max-height:780px; overflow:auto; border-left:1px solid var(--border); } .visual-control-panel > section { padding:17px 18px 19px; border-bottom:1px solid var(--border); } .visual-control-panel > section > header { min-height:24px; margin-bottom:15px; display:flex; align-items:center; justify-content:space-between; gap:10px; } .visual-control-panel > section > header span { display:flex; align-items:center; gap:8px; color:#e2e8f0; font-size:12px; font-weight:700; } .visual-control-panel > section > header span svg { color:#60a5fa; } .visual-control-panel > section > header button { padding:4px 7px; border:0; border-radius:6px; color:#64748b; background:rgba(255,255,255,.04); font-size:9px; cursor:pointer; } .visual-control-panel > section > header button:hover { color:#cbd5e1; } .visual-slider { display:block; margin-top:13px; } .visual-slider > span { margin-bottom:7px; display:flex; align-items:center; justify-content:space-between; gap:10px; } .visual-slider b { color:#94a3b8; font-size:10px; font-weight:500; } .visual-slider output { min-width:45px; color:#cbd5e1; font-size:9px; text-align:right; } .visual-slider input[type=range] { width:100%; height:4px; accent-color:#3b82f6; cursor:pointer; } .visual-choice-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; } .visual-choice-grid button,.visual-transform-grid button { min-height:34px; padding:7px 5px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:9px; cursor:pointer; } .visual-choice-grid button:hover,.visual-transform-grid button:hover { color:#e2e8f0; border-color:rgba(96,165,250,.3); } .visual-choice-grid button.active,.visual-transform-grid button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.15); } .control-help { margin:10px 0 0; color:#64748b; font-size:9px; line-height:1.55; } .custom-size-row { margin-top:12px; display:grid; grid-template-columns:1fr 12px 1fr; align-items:end; gap:6px; } .custom-size-row label,.visual-field { color:#94a3b8; font-size:9px; } .custom-size-row label input,.visual-field input,.visual-field select { width:100%; margin-top:6px; padding:8px 9px; border:1px solid var(--border); border-radius:7px; outline:0; color:#e2e8f0; background:#0f172a; font-size:10px; } .custom-size-row label input:focus,.visual-field input:focus,.visual-field select:focus { border-color:#3b82f6; } .custom-size-row i { padding-bottom:9px; color:#64748b; font-style:normal; text-align:center; } .visual-check { margin-top:10px; display:flex; align-items:center; gap:7px; color:#94a3b8; font-size:9px; cursor:pointer; } .visual-check input { accent-color:#3b82f6; } .visual-transform-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; } .visual-transform-grid button { display:flex; align-items:center; justify-content:center; gap:6px; } .visual-field { margin-top:12px; display:block; } .visual-field > span { display:block; } .visual-export-bar { position:relative; margin-top:15px; padding:15px 17px; display:flex; align-items:center; justify-content:space-between; gap:18px; overflow:hidden; border:1px solid var(--border); border-radius:13px; background:rgba(30,41,59,.66); } .visual-export-bar > div:first-child { display:flex; align-items:center; gap:11px; } .visual-export-bar > div:first-child > svg { color:#60a5fa; font-size:24px; } .visual-export-bar strong,.visual-export-bar small { display:block; } .visual-export-bar strong { color:#e2e8f0; font-size:12px; } .visual-export-bar small { margin-top:4px; color:#64748b; font-size:9px; } .visual-export-bar > div:nth-child(2) { display:flex; align-items:center; gap:8px; } .visual-export-bar .secondary-action,.visual-export-bar .primary-action { margin:0; } .visual-progress { position:absolute; inset:auto 0 0; height:3px; background:rgba(255,255,255,.04); } .visual-progress i { height:100%; display:block; background:linear-gradient(90deg,#3b82f6,#8b5cf6); transition:width .2s; } .visual-progress span { position:absolute; right:8px; bottom:6px; color:#94a3b8; font-size:8px; } .visual-save-dialog { width:min(780px,100%); max-height:calc(100vh - 40px); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:#111c31; box-shadow:0 25px 85px rgba(0,0,0,.54); } .visual-save-dialog > header { min-height:72px; padding:15px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); } .visual-save-dialog > header > div { display:flex; align-items:center; gap:12px; } .visual-save-dialog > header > div > svg { color:#34d399; font-size:25px; } .visual-save-dialog h2 { margin:0; color:#fff; font-size:18px; } .visual-save-dialog header p { margin:4px 0 0; color:#64748b; font-size:10px; } .visual-save-dialog > header > button { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.04); color:#94a3b8; cursor:pointer; } .visual-output-summary { padding:16px 20px; display:grid; grid-template-columns:repeat(4,1fr); gap:9px; border-bottom:1px solid var(--border); } .visual-output-summary > div { padding:12px; border-radius:9px; background:rgba(255,255,255,.035); } .visual-output-summary b,.visual-output-summary span { display:block; } .visual-output-summary b { color:#e2e8f0; font-size:15px; } .visual-output-summary span { margin-top:5px; color:#64748b; font-size:9px; } .visual-output-summary .saved b { color:#6ee7b7; } .visual-output-summary .larger b { color:#fbbf24; } .visual-output-list { min-height:130px; max-height:300px; padding:10px 20px; overflow:auto; } .visual-output-list article { min-height:58px; margin:7px 0; padding:7px; display:grid; grid-template-columns:52px minmax(0,1fr) 34px; align-items:center; gap:11px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.52); } .visual-output-list img { width:52px; height:44px; object-fit:cover; border-radius:6px; } .visual-output-list strong,.visual-output-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .visual-output-list strong { color:#e2e8f0; font-size:11px; } .visual-output-list small { margin-top:5px; color:#64748b; font-size:9px; } .visual-output-list button { width:32px; height:32px; display:grid; place-items:center; border:0; border-radius:7px; background:rgba(59,130,246,.11); color:#93c5fd; cursor:pointer; } .visual-save-dialog > footer { min-height:74px; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--border); } .visual-save-dialog > footer > div { display:flex; gap:8px; } .visual-save-dialog .secondary-action,.visual-save-dialog .primary-action { margin:0; }  @media (max-width:1180px) {   .visual-editor-layout { grid-template-columns:180px minmax(330px,1fr) 300px; } } @media (max-width:980px) {   .visual-editor-layout { grid-template-columns:170px minmax(0,1fr); }   .visual-control-panel { grid-column:1/-1; max-height:none; display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--border); border-left:0; }   .visual-control-panel > section { border-right:1px solid var(--border); } } @media (max-width:720px) {   .visual-editor-layout { display:block; }   .visual-queue-panel { border-right:0; border-bottom:1px solid var(--border); }   .visual-queue-list { display:flex; max-height:none; overflow:auto; }   .visual-queue-list article { width:160px; flex:none; }   .visual-preview-stage { min-height:390px; }   .visual-control-panel { display:block; }   .visual-control-panel > section { border-right:0; }   .visual-export-bar,.visual-export-bar > div:nth-child(2) { align-items:stretch; flex-direction:column; }   .visual-export-bar .secondary-action,.visual-export-bar .primary-action { width:100%; }   .visual-output-summary { grid-template-columns:1fr 1fr; }   .visual-save-dialog > footer { align-items:stretch; flex-direction:column; }   .visual-save-dialog > footer > div { display:grid; grid-template-columns:1fr 1fr; } } @media (max-width:440px) {   .visual-preview-panel > header { align-items:flex-start; flex-direction:column; }   .visual-preview-stage { min-height:310px; padding:18px; }   .visual-choice-grid { grid-template-columns:1fr 1fr; }   .visual-save-dialog > footer > div { grid-template-columns:1fr; } }  /* AI data analysis workbench */ .analytics-heading { align-items:center; } .analytics-message { margin-bottom:15px; padding:12px 14px; display:flex; align-items:center; gap:9px; border:1px solid; border-radius:10px; font-size:12px; }.analytics-message button { margin-left:auto; border:0; background:transparent; color:inherit; cursor:pointer; }.analytics-message.success { color:#a7f3d0; border-color:rgba(16,185,129,.24); background:rgba(16,185,129,.08); }.analytics-message.error { color:#fecdd3; border-color:rgba(244,63,94,.25); background:rgba(244,63,94,.08); } .analytics-job-progress { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,320px) auto; align-items:center; gap:16px; margin-bottom:18px; padding:14px 18px; border:1px solid rgba(99,102,241,.32); border-radius:14px; background:rgba(79,70,229,.1); color:#e0e7ff; } .analytics-job-progress>div { display:flex; align-items:center; gap:11px; }.analytics-job-progress>div>svg { font-size:20px; }.analytics-job-progress span { display:flex; flex-direction:column; gap:2px; }.analytics-job-progress small { color:#a5b4fc; } .analytics-job-progress>i { height:8px; overflow:hidden; border-radius:999px; background:rgba(99,102,241,.2); }.analytics-job-progress>i>b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#818cf8,#38bdf8); transition:width .3s ease; } .analytics-job-progress>button { padding:8px 12px; border:1px solid rgba(165,180,252,.5); border-radius:9px; background:rgba(255,255,255,.08); color:#e0e7ff; cursor:pointer; } @media (max-width:760px) { .analytics-job-progress { grid-template-columns:1fr; }.analytics-job-progress>button { justify-self:start; } } .analytics-source-section { overflow:hidden; border:1px solid var(--border); border-radius:15px; background:rgba(30,41,59,.68); } .analytics-source-intro { min-height:116px; padding:22px 24px; display:grid; grid-template-columns:48px minmax(220px,1fr) auto; align-items:center; gap:15px; }.analytics-source-intro > span { width:46px; height:46px; display:grid; place-items:center; border-radius:12px; color:#93c5fd; background:rgba(59,130,246,.13); font-size:22px; }.analytics-source-intro h2 { margin:0 0 6px; color:#fff; font-size:18px; }.analytics-source-intro p { margin:0; color:#64748b; font-size:11px; }.analytics-import-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }.analytics-import-actions .primary-action,.analytics-import-actions .secondary-action { min-height:38px; margin:0; padding:9px 12px; font-size:10px; } .analytics-source-toolbar { min-height:52px; padding:9px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:rgba(15,23,42,.42); }.analytics-source-toolbar > span { color:#64748b; font-size:10px; }.analytics-mode-tabs { padding:3px; display:flex; gap:3px; border-radius:8px; background:rgba(2,6,23,.38); }.analytics-mode-tabs button { padding:7px 10px; display:flex; align-items:center; gap:6px; border:0; border-radius:6px; color:#64748b; background:transparent; font-size:9px; cursor:pointer; }.analytics-mode-tabs button.active { color:#dbeafe; background:rgba(59,130,246,.18); }.analytics-mode-tabs button:disabled { opacity:.35; cursor:not-allowed; } .analytics-source-list { padding:12px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }.analytics-source-list article { position:relative; min-width:0; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.5); }.analytics-source-list article.active { border-color:rgba(96,165,250,.56); box-shadow:0 0 0 2px rgba(59,130,246,.08); }.analytics-source-select { width:100%; min-width:0; padding:11px 32px 11px 10px; display:flex; align-items:center; gap:9px; border:0; color:inherit; background:transparent; text-align:left; cursor:pointer; }.analytics-source-select > span { width:32px; height:32px; display:grid; place-items:center; flex:none; border-radius:8px; color:#60a5fa; background:rgba(59,130,246,.1); }.analytics-source-select > div { min-width:0; }.analytics-source-select strong,.analytics-source-select small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.analytics-source-select strong { color:#e2e8f0; font-size:10px; }.analytics-source-select small { margin-top:5px; color:#64748b; font-size:8px; }.analytics-source-remove { position:absolute; top:8px; right:7px; width:25px; height:25px; display:grid; place-items:center; border:0; border-radius:6px; color:#64748b; background:transparent; cursor:pointer; }.analytics-source-remove:hover { color:#fda4af; background:rgba(244,63,94,.1); } .analysis-kpi-grid { margin:16px 0; display:grid; grid-template-columns:repeat(4,1fr); gap:11px; }.analysis-kpi-grid article { min-width:0; padding:17px; border:1px solid var(--border); border-radius:12px; background:rgba(30,41,59,.62); }.analysis-kpi-grid small,.analysis-kpi-grid strong,.analysis-kpi-grid span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.analysis-kpi-grid small { color:#64748b; font-size:9px; }.analysis-kpi-grid strong { margin:8px 0 6px; color:#f8fafc; font-size:20px; }.analysis-kpi-grid article:first-child strong { font-size:13px; }.analysis-kpi-grid span { color:#60a5fa; font-size:9px; } .analytics-workbench { display:grid; grid-template-columns:270px minmax(0,1fr); overflow:hidden; border:1px solid var(--border); border-radius:15px; background:rgba(30,41,59,.62); }.analytics-config-panel { padding:19px; border-right:1px solid var(--border); background:rgba(15,23,42,.48); }.analytics-config-panel > header { margin-bottom:15px; display:flex; align-items:center; gap:10px; }.analytics-config-panel > header > svg { color:#60a5fa; font-size:22px; }.analytics-config-panel h2,.analytics-chart-panel h2,.analytics-table-panel h2,.analytics-ai-panel h2,.analytics-ai-result h2 { margin:0; color:#f8fafc; font-size:15px; }.analytics-config-panel header p,.analytics-chart-panel header p,.analytics-table-panel header p,.analytics-ai-panel header p,.analytics-ai-result header p { margin:4px 0 0; color:#64748b; font-size:9px; } .analysis-field { margin-top:12px; display:block; color:#94a3b8; font-size:9px; }.analysis-field > span { display:block; margin-bottom:6px; }.analysis-field input,.analysis-field select { width:100%; min-height:36px; padding:8px 9px; border:1px solid var(--border); border-radius:7px; outline:0; color:#e2e8f0; background:#0f172a; font-size:10px; }.analysis-field input:focus,.analysis-field select:focus { border-color:#3b82f6; } .analysis-chart-type-grid { margin-top:16px; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }.analysis-chart-type-grid button { min-height:54px; padding:7px 3px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border:1px solid var(--border); border-radius:8px; color:#64748b; background:rgba(255,255,255,.025); font-size:8px; cursor:pointer; }.analysis-chart-type-grid button svg { font-size:17px; }.analysis-chart-type-grid button.active { color:#dbeafe; border-color:rgba(96,165,250,.52); background:rgba(59,130,246,.14); } .analysis-export-buttons { margin-top:16px; display:grid; gap:7px; }.analysis-export-buttons button { min-height:36px; padding:8px; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--border); border-radius:8px; color:#cbd5e1; background:rgba(255,255,255,.04); font-size:9px; cursor:pointer; }.analysis-export-buttons button:first-child { color:#dbeafe; border-color:rgba(59,130,246,.26); background:rgba(59,130,246,.12); }.analysis-export-buttons button:disabled { opacity:.35; cursor:not-allowed; } .analytics-chart-panel { min-width:0; }.analytics-chart-panel > header { min-height:62px; padding:13px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid var(--border); }.analytics-chart-panel > header > span { padding:5px 9px; border-radius:99px; color:#93c5fd; background:rgba(59,130,246,.11); font-size:9px; }.analytics-chart-stage { min-height:470px; padding:20px; display:grid; place-items:center; overflow:auto; background:radial-gradient(circle at 50% 30%,rgba(59,130,246,.07),transparent 44%),#0b1220; }.analysis-chart-svg { width:100%; min-width:600px; max-width:930px; height:auto; filter:drop-shadow(0 16px 35px rgba(0,0,0,.18)); }.analytics-chart-empty { text-align:center; color:#64748b; }.analytics-chart-empty svg { font-size:44px; }.analytics-chart-empty h3 { margin:12px 0 6px; color:#cbd5e1; }.analytics-chart-empty p { margin:0; font-size:11px; } .analytics-detail-grid { margin-top:16px; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr); gap:14px; }.analytics-table-panel,.analytics-ai-panel,.analytics-ai-result { overflow:hidden; border:1px solid var(--border); border-radius:14px; background:rgba(30,41,59,.62); }.analytics-table-panel > header { min-height:62px; padding:13px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }.analytics-table-panel > header > span { color:#64748b; font-size:9px; }.analytics-table-wrap { max-height:330px; overflow:auto; }.analytics-table-wrap table { width:100%; border-collapse:collapse; white-space:nowrap; }.analytics-table-wrap th,.analytics-table-wrap td { max-width:180px; padding:10px 12px; overflow:hidden; text-overflow:ellipsis; border-bottom:1px solid rgba(255,255,255,.05); text-align:left; font-size:9px; }.analytics-table-wrap th { position:sticky; top:0; color:#94a3b8; background:#172238; }.analytics-table-wrap td { color:#cbd5e1; } .analytics-ai-panel { padding:19px; background:linear-gradient(145deg,rgba(52,35,91,.72),rgba(30,41,59,.68)); }.analytics-ai-panel > header { display:flex; gap:10px; }.analytics-ai-panel > header > span { width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:10px; color:#ddd6fe; background:rgba(139,92,246,.18); }.analytics-ai-panel > label { margin-top:17px; display:block; color:#c4b5fd; font-size:9px; }.analytics-ai-panel textarea { width:100%; min-height:86px; margin-top:7px; padding:10px; resize:vertical; border:1px solid rgba(196,181,253,.18); border-radius:8px; outline:0; color:#e2e8f0; background:rgba(15,23,42,.54); font-size:10px; line-height:1.55; }.analytics-ai-panel textarea:focus { border-color:#8b5cf6; }.analytics-ai-button { width:100%; min-height:40px; margin-top:12px; display:flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:9px; color:#fff; background:linear-gradient(135deg,#7c3aed,#4f46e5); font-size:10px; font-weight:700; cursor:pointer; }.analytics-ai-button:disabled { opacity:.55; cursor:not-allowed; }.analytics-ai-security { margin-top:13px; padding:10px; display:flex; align-items:flex-start; gap:8px; border:1px solid rgba(196,181,253,.12); border-radius:8px; color:#8d82a3; background:rgba(15,23,42,.28); font-size:8px; line-height:1.55; }.analytics-ai-security svg { flex:none; margin-top:2px; } .analytics-ai-result { margin-top:16px; }.analytics-ai-result > header { min-height:70px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:15px; border-bottom:1px solid var(--border); }.analytics-ai-result > header > div { display:flex; align-items:center; gap:10px; }.analytics-ai-result > header > div > span { width:39px; height:39px; display:grid; place-items:center; border-radius:10px; color:#ddd6fe; background:rgba(139,92,246,.15); }.analytics-ai-result > header > small { color:#64748b; font-size:8px; }.analytics-ai-summary { margin:18px; padding:14px 16px; color:#cbd5e1; border-left:3px solid #8b5cf6; border-radius:0 8px 8px 0; background:rgba(139,92,246,.07); font-size:11px; line-height:1.75; }.analytics-ai-columns { padding:0 18px 18px; display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.analytics-ai-columns article { padding:14px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.42); }.analytics-ai-columns h3 { margin:0 0 10px; color:#e2e8f0; font-size:11px; }.analytics-ai-columns ul { margin:0; padding-left:16px; color:#94a3b8; font-size:9px; line-height:1.7; }.analytics-ai-columns li + li { margin-top:7px; } .analytics-empty-state { min-height:330px; margin-top:16px; padding:40px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px dashed rgba(148,163,184,.3); border-radius:14px; background:rgba(15,23,42,.3); }.analytics-empty-state > span { width:65px; height:65px; display:grid; place-items:center; border-radius:17px; color:#60a5fa; background:rgba(59,130,246,.11); font-size:29px; }.analytics-empty-state h2 { margin:18px 0 8px; color:#fff; }.analytics-empty-state p { max-width:570px; margin:0 0 20px; color:#64748b; font-size:12px; line-height:1.7; }.analytics-empty-state .primary-action { margin:0; } .analytics-paste-dialog { width:min(680px,100%); max-height:calc(100vh - 40px); overflow:auto; border:1px solid var(--border); border-radius:15px; background:#111c31; box-shadow:0 25px 80px rgba(0,0,0,.5); }.analytics-paste-dialog > header { min-height:70px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }.analytics-paste-dialog > header > div { display:flex; align-items:center; gap:10px; }.analytics-paste-dialog > header > div > svg { color:#60a5fa; font-size:23px; }.analytics-paste-dialog h2 { margin:0; color:#fff; font-size:17px; }.analytics-paste-dialog header p { margin:4px 0 0; color:#64748b; font-size:9px; }.analytics-paste-dialog header button { width:35px; height:35px; display:grid; place-items:center; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.04); cursor:pointer; }.analytics-paste-dialog > label { margin:16px 18px 0; display:block; color:#94a3b8; font-size:10px; }.analytics-paste-dialog input,.analytics-paste-dialog textarea { width:100%; margin-top:7px; padding:10px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0f172a; }.analytics-paste-dialog textarea { min-height:230px; resize:vertical; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:10px; line-height:1.6; }.analytics-paste-dialog input:focus,.analytics-paste-dialog textarea:focus { border-color:#3b82f6; }.analytics-paste-dialog > footer { min-height:70px; margin-top:18px; padding:13px 18px; display:flex; justify-content:flex-end; gap:8px; border-top:1px solid var(--border); }.analytics-paste-dialog .primary-action,.analytics-paste-dialog .secondary-action { margin:0; } .analytics-workflow-tabs { margin-bottom:16px; padding:5px; display:grid; grid-template-columns:1fr 1fr; gap:6px; border:1px solid var(--border); border-radius:14px; background:rgba(15,23,42,.55); }.analytics-workflow-tabs > button { min-height:72px; padding:12px 16px; display:flex; align-items:center; gap:12px; border:1px solid transparent; border-radius:10px; color:#94a3b8; background:transparent; text-align:left; cursor:pointer; }.analytics-workflow-tabs > button > svg { flex:none; font-size:23px; }.analytics-workflow-tabs span,.analytics-workflow-tabs strong,.analytics-workflow-tabs small { display:block; }.analytics-workflow-tabs strong { color:#e2e8f0; font-size:13px; }.analytics-workflow-tabs small { margin-top:5px; color:#64748b; font-size:10px; }.analytics-workflow-tabs > button.active { border-color:rgba(96,165,250,.38); color:#60a5fa; background:rgba(59,130,246,.12); } .ecommerce-upload-section { overflow:hidden; border:1px solid var(--border); border-radius:15px; background:rgba(30,41,59,.68); }.ecommerce-upload-section > header { min-height:82px; padding:17px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); }.ecommerce-upload-section > header > div { display:flex; align-items:center; gap:12px; }.ecommerce-upload-section > header > div > span { width:44px; height:44px; display:grid; place-items:center; flex:none; border-radius:11px; color:#bfdbfe; background:rgba(59,130,246,.14); font-size:22px; }.ecommerce-upload-section h2 { margin:0; color:#fff; font-size:17px; }.ecommerce-upload-section header p { margin:5px 0 0; color:#64748b; font-size:10px; }.ecommerce-upload-section > header > strong { flex:none; padding:7px 10px; border-radius:99px; color:#93c5fd; background:rgba(59,130,246,.1); font-size:10px; } .ecommerce-data-rules { margin:16px 18px 0; padding:13px 15px; display:flex; align-items:flex-start; gap:11px; border:1px solid rgba(245,158,11,.22); border-radius:10px; color:#fcd34d; background:rgba(120,53,15,.12); }.ecommerce-data-rules > svg { flex:none; margin-top:2px; }.ecommerce-data-rules strong { display:block; font-size:11px; }.ecommerce-data-rules p { margin:5px 0 0; color:#c9a86c; font-size:10px; line-height:1.7; } .ecommerce-scope-grid { padding:16px 18px; display:grid; grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr); gap:14px; }.ecommerce-scope-grid > label,.ecommerce-shop-manager { padding:13px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.42); }.ecommerce-scope-grid > label > span,.ecommerce-shop-manager > span { display:block; margin-bottom:8px; color:#94a3b8; font-size:10px; }.ecommerce-scope-grid input { width:100%; min-height:38px; padding:9px 11px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0f172a; }.ecommerce-scope-grid input:focus { border-color:#3b82f6; } .ecommerce-format-warnings { margin:0 18px 16px; padding:12px 14px; display:flex; align-items:flex-start; gap:10px; border:1px solid rgba(251,146,60,.22); border-radius:10px; color:#fdba74; background:rgba(124,45,18,.12); }.ecommerce-format-warnings > svg { flex:none; margin-top:2px; }.ecommerce-format-warnings strong { display:block; font-size:10px; }.ecommerce-format-warnings p { margin:5px 0 0; color:#c99773; font-size:9px; line-height:1.6; } .ecommerce-shop-tabs { display:flex; flex-wrap:wrap; gap:6px; }.ecommerce-shop-tabs > button { min-height:33px; padding:6px 8px 6px 10px; display:flex; align-items:center; gap:6px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.025); cursor:pointer; }.ecommerce-shop-tabs > button.active { color:#dbeafe; border-color:rgba(96,165,250,.46); background:rgba(59,130,246,.13); }.ecommerce-shop-tabs i { width:18px; height:18px; display:grid; place-items:center; border-radius:5px; color:#64748b; }.ecommerce-shop-tabs i:hover { color:#fda4af; background:rgba(244,63,94,.1); }.ecommerce-add-shop { margin-top:9px; display:grid; grid-template-columns:1fr auto; gap:7px; }.ecommerce-add-shop button { padding:8px 11px; display:flex; align-items:center; gap:6px; border:1px solid rgba(59,130,246,.28); border-radius:8px; color:#bfdbfe; background:rgba(59,130,246,.12); cursor:pointer; } .ecommerce-category-grid { padding:0 18px 18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }.ecommerce-category-grid > article { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:11px; background:rgba(15,23,42,.48); }.ecommerce-category-grid > article > header { min-height:65px; padding:12px 13px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid rgba(255,255,255,.05); }.ecommerce-category-grid header strong,.ecommerce-category-grid header small { display:block; }.ecommerce-category-grid header strong { color:#e2e8f0; font-size:12px; }.ecommerce-category-grid header small { margin-top:4px; color:#64748b; font-size:9px; }.ecommerce-category-grid header b { width:27px; height:27px; display:grid; place-items:center; flex:none; border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.11); font-size:10px; }.ecommerce-file-list { min-height:58px; max-height:126px; overflow:auto; padding:8px 11px; }.ecommerce-file-list > p { margin:10px 0; color:#475569; font-size:9px; }.ecommerce-file-list > div { padding:6px 0; display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:1px solid rgba(255,255,255,.04); }.ecommerce-file-list span { min-width:0; }.ecommerce-file-list strong,.ecommerce-file-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.ecommerce-file-list strong { color:#cbd5e1; font-size:9px; }.ecommerce-file-list small { margin-top:3px; color:#64748b; font-size:8px; }.ecommerce-file-list button { flex:none; border:0; color:#64748b; background:transparent; cursor:pointer; }.ecommerce-category-grid footer { padding:9px 11px; display:grid; grid-template-columns:1fr 1fr; gap:6px; border-top:1px solid rgba(255,255,255,.05); }.ecommerce-category-grid footer label,.ecommerce-category-grid footer button { min-height:34px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.025); font-size:9px; cursor:pointer; }.ecommerce-category-grid footer label { color:#bfdbfe; border-color:rgba(59,130,246,.23); background:rgba(59,130,246,.09); } .ecommerce-report-start { margin:0 18px 18px; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid rgba(96,165,250,.24); border-radius:11px; background:linear-gradient(135deg,rgba(37,99,235,.13),rgba(124,58,237,.1)); }.ecommerce-report-start > div { min-width:0; display:flex; align-items:center; gap:11px; }.ecommerce-report-start > div > span { width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:10px; color:#dbeafe; background:rgba(59,130,246,.17); }.ecommerce-report-start strong,.ecommerce-report-start small { display:block; }.ecommerce-report-start strong { color:#f8fafc; font-size:12px; }.ecommerce-report-start small { margin-top:4px; color:#94a3b8; font-size:9px; line-height:1.5; }.ecommerce-report-start .analytics-ai-button { width:auto; min-width:148px; margin-top:0; padding:0 17px; flex:none; } .ecommerce-analysis-panel { background:linear-gradient(145deg,rgba(37,50,94,.82),rgba(30,41,59,.7)); }.dimension-mode-tabs { margin-top:16px; padding:3px; display:grid; grid-template-columns:1fr 1fr; gap:3px; border-radius:8px; background:rgba(2,6,23,.38); }.dimension-mode-tabs button { min-height:31px; border:0; border-radius:6px; color:#64748b; background:transparent; font-size:9px; cursor:pointer; }.dimension-mode-tabs button.active { color:#dbeafe; background:rgba(59,130,246,.18); }.dimension-assist-button { width:100%; min-height:37px; margin-top:10px; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid rgba(167,139,250,.28); border-radius:8px; color:#ddd6fe; background:rgba(124,58,237,.13); font-size:9px; cursor:pointer; }.dimension-assist-button:disabled { opacity:.5; cursor:wait; }.dimension-chip-grid { margin-top:9px; display:flex; flex-wrap:wrap; gap:5px; }.dimension-chip-grid button { padding:6px 8px; display:flex; align-items:center; gap:5px; border:1px solid var(--border); border-radius:7px; color:#64748b; background:rgba(15,23,42,.4); font-size:8px; text-align:left; cursor:pointer; }.dimension-chip-grid button.selected { color:#dbeafe; border-color:rgba(96,165,250,.42); background:rgba(59,130,246,.13); } .analytics-report-actions { display:flex !important; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px !important; }.analytics-report-actions button { min-height:31px; padding:6px 9px; display:flex; align-items:center; gap:6px; border:1px solid var(--border); border-radius:7px; color:#bfdbfe; background:rgba(59,130,246,.09); font-size:9px; cursor:pointer; }.analytics-report-actions small { width:100%; color:#64748b; font-size:8px; text-align:right; }.analytics-report-dimensions,.analytics-data-quality { margin:0 18px 16px; padding:14px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.38); }.analytics-report-dimensions h3,.analytics-data-quality h3 { margin:0 0 10px; color:#e2e8f0; font-size:12px; }.analytics-report-dimensions > div { display:flex; flex-wrap:wrap; gap:6px; }.analytics-report-dimensions span { padding:6px 8px; border-radius:7px; color:#bfdbfe; background:rgba(59,130,246,.1); font-size:9px; }.analytics-data-quality ul { margin:0; padding-left:18px; color:#94a3b8; font-size:9px; line-height:1.7; }.analytics-report-sections { padding:0 18px 18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.analytics-report-sections article { padding:15px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.42); }.analytics-report-sections h3 { margin:0 0 8px; color:#e2e8f0; font-size:12px; }.analytics-report-sections h4 { margin:12px 0 6px; color:#93c5fd; font-size:9px; }.analytics-report-sections p,.analytics-report-sections ul { margin:0; color:#94a3b8; font-size:9px; line-height:1.7; }.analytics-report-sections ul { padding-left:17px; }  @media (max-width:1100px) {   .analytics-source-intro { grid-template-columns:48px 1fr; }.analytics-import-actions { grid-column:1/-1; justify-content:flex-start; }   .analytics-source-list { grid-template-columns:1fr 1fr; }.analytics-detail-grid { grid-template-columns:1fr; }   .ecommerce-category-grid { grid-template-columns:1fr; } } @media (max-width:820px) {   .analytics-heading { align-items:stretch; }   .analysis-kpi-grid { grid-template-columns:1fr 1fr; }.analytics-workbench { grid-template-columns:1fr; }.analytics-config-panel { border-right:0; border-bottom:1px solid var(--border); }.analysis-chart-type-grid { grid-template-columns:repeat(5,1fr); }.analysis-export-buttons { grid-template-columns:1fr 1fr; }   .analytics-ai-columns { grid-template-columns:1fr; }   .ecommerce-scope-grid,.analytics-report-sections { grid-template-columns:1fr; } } @media (max-width:560px) {   .analytics-source-intro { grid-template-columns:1fr; }.analytics-source-intro > span { display:none; }.analytics-import-actions { display:grid; grid-template-columns:1fr 1fr; }.analytics-import-actions .primary-action,.analytics-import-actions .secondary-action { width:100%; }   .analytics-source-toolbar { align-items:stretch; flex-direction:column; }.analytics-mode-tabs button { flex:1; justify-content:center; }.analytics-source-list,.analysis-kpi-grid { grid-template-columns:1fr; }   .analysis-chart-type-grid { grid-template-columns:repeat(3,1fr); }.analysis-export-buttons { grid-template-columns:1fr; }.analytics-chart-stage { padding:10px; }.analysis-chart-svg { min-width:570px; }   .analytics-ai-result > header { align-items:flex-start; flex-direction:column; }.analytics-paste-dialog > footer { display:grid; grid-template-columns:1fr 1fr; }   .analytics-workflow-tabs { grid-template-columns:1fr; }.ecommerce-upload-section > header { align-items:flex-start; flex-direction:column; }.ecommerce-scope-grid,.ecommerce-category-grid { padding-left:12px; padding-right:12px; }.ecommerce-category-grid footer,.ecommerce-add-shop { grid-template-columns:1fr; }.ecommerce-report-start { margin-left:12px; margin-right:12px; align-items:stretch; flex-direction:column; }.ecommerce-report-start .analytics-ai-button { width:100%; }.analytics-report-actions { justify-content:flex-start; }.analytics-report-actions small { text-align:left; } }  /* Real user account data */ .account-data-notice { width:min(1250px,calc(100% - 32px)); min-height:44px; margin:-12px auto 18px; padding:10px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid rgba(251,113,133,.28); border-radius:9px; color:#fda4af; background:rgba(127,29,29,.13); font-size:12px; } .account-data-notice button { border:0; background:transparent; color:#93c5fd; cursor:pointer; } .account-inline-notice { margin:12px 0 0; color:#93c5fd; font-size:12px; } .module-usage-list { display:grid; gap:8px; } .module-usage-list article { min-height:58px; padding:10px 13px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--border); border-radius:8px; background:rgba(15,23,42,.35); } .module-usage-list span,.module-usage-list strong,.module-usage-list small { display:block; } .module-usage-list strong { color:#e2e8f0; font-size:12px; } .module-usage-list small { margin-top:5px; color:#64748b; font-size:9px; } .module-usage-list b { color:#60a5fa; font-size:20px; }  /* Unified AI task center */ .ai-task-center { margin-top:22px; overflow:hidden; border:1px solid var(--border); border-radius:14px; background:rgba(30,41,59,.66); } .ai-task-center > header { min-height:70px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--border); } .ai-task-center h2 { margin:0; color:#f8fafc; font-size:16px; }.ai-task-center header p { margin:5px 0 0; color:#64748b; font-size:10px; } .ai-task-center header button { min-height:35px; padding:7px 11px; display:flex; align-items:center; gap:7px; border:1px solid var(--border); border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.08); cursor:pointer; } .ai-task-list { padding:12px; display:grid; gap:9px; }.ai-task-list > article { min-height:72px; padding:12px; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:11px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.42); } .ai-task-state { width:36px; height:36px; display:grid; place-items:center; border-radius:9px; color:#fbbf24; background:rgba(245,158,11,.12); }.ai-task-state.succeeded { color:#34d399; background:rgba(16,185,129,.12); }.ai-task-state.failed,.ai-task-state.cancelled { color:#fb7185; background:rgba(244,63,94,.12); } .ai-task-list strong,.ai-task-list small,.ai-task-list em { display:block; }.ai-task-list strong { color:#e2e8f0; font-size:12px; }.ai-task-list small { margin-top:5px; color:#64748b; font-size:9px; }.ai-task-list em { margin-top:6px; color:#94a3b8; font-size:9px; font-style:normal; line-height:1.5; }.ai-task-list i { height:4px; margin-top:8px; display:block; overflow:hidden; border-radius:9px; background:rgba(255,255,255,.06); }.ai-task-list i b { height:100%; display:block; border-radius:9px; background:#3b82f6; } .ai-task-cancel { padding:6px 9px; border:1px solid rgba(251,113,133,.22); border-radius:7px; color:#fda4af; background:rgba(244,63,94,.08); cursor:pointer; }.ai-task-error { margin:12px; padding:10px; color:#fda4af; border-radius:8px; background:rgba(244,63,94,.08); font-size:10px; } @media (max-width:560px) { .ai-task-center > header { align-items:flex-start; flex-direction:column; }.ai-task-center header button { width:100%; justify-content:center; }.ai-task-list > article { grid-template-columns:34px 1fr; }.ai-task-cancel { grid-column:2; justify-self:start; } } /* AI result feedback is intentionally user-facing and does not expose provider or cost internals. */ .ai-result-feedback { margin-top:10px; padding:10px 12px; display:flex; align-items:center; flex-wrap:wrap; gap:7px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.42); } .ai-result-feedback>span { margin-right:3px; color:#94a3b8; font-size:10px; } .ai-result-feedback button { min-height:29px; padding:5px 9px; display:flex; align-items:center; gap:5px; border:1px solid var(--border); border-radius:7px; color:#bfdbfe; background:rgba(59,130,246,.07); cursor:pointer; font-size:9px; } .ai-result-feedback button.selected { color:#fff; border-color:rgba(96,165,250,.55); background:rgba(37,99,235,.38); } .ai-result-feedback button:disabled { opacity:.6; cursor:wait; } .ai-result-feedback small { width:100%; color:#64748b; font-size:8px; } .analytics-ai-result>.ai-result-feedback { margin:0 18px 16px; }  /* AI conversation */ .chat-heading { align-items:flex-end; } .ai-chat-layout { min-height:690px; display:grid; grid-template-columns:280px minmax(0,1fr); overflow:hidden; border:1px solid var(--border); border-radius:16px; background:rgba(15,23,42,.48); box-shadow:0 22px 60px rgba(2,6,23,.22); } .ai-chat-sidebar { padding:16px; display:flex; flex-direction:column; gap:14px; border-right:1px solid var(--border); background:linear-gradient(180deg,rgba(30,41,59,.82),rgba(15,23,42,.72)); } .ai-chat-new { min-height:42px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(96,165,250,.35); border-radius:10px; color:#eff6ff; background:linear-gradient(135deg,rgba(37,99,235,.72),rgba(124,58,237,.58)); cursor:pointer; } .ai-chat-guide { padding:16px; border:1px solid var(--border); border-radius:12px; background:rgba(15,23,42,.48); } .ai-chat-guide>span { width:39px; height:39px; display:grid; place-items:center; border-radius:10px; color:#bfdbfe; background:rgba(59,130,246,.14); font-size:19px; } .ai-chat-guide h2 { margin:13px 0 7px; color:#f8fafc; font-size:14px; }.ai-chat-guide p { margin:0; color:#94a3b8; font-size:10px; line-height:1.7; } .ai-chat-suggestions h3 { margin:3px 0 9px; color:#cbd5e1; font-size:11px; } .ai-chat-suggestions { display:grid; gap:7px; }.ai-chat-suggestions button { padding:10px 11px; border:1px solid var(--border); border-radius:9px; color:#94a3b8; background:rgba(255,255,255,.025); font-size:9px; line-height:1.5; text-align:left; cursor:pointer; }.ai-chat-suggestions button:hover { color:#dbeafe; border-color:rgba(96,165,250,.35); background:rgba(59,130,246,.09); }.ai-chat-suggestions button:disabled { opacity:.5; cursor:wait; } .ai-chat-privacy { margin-top:auto; padding:11px; display:flex; align-items:flex-start; gap:9px; border:1px solid rgba(16,185,129,.2); border-radius:10px; color:#6ee7b7; background:rgba(6,78,59,.12); }.ai-chat-privacy>svg { flex:none; margin-top:2px; }.ai-chat-privacy strong,.ai-chat-privacy small { display:block; }.ai-chat-privacy strong { font-size:10px; }.ai-chat-privacy small { margin-top:4px; color:#94a3b8; font-size:8px; line-height:1.55; } .ai-chat-knowledge { padding:11px; display:grid; grid-template-columns:auto auto minmax(0,1fr); align-items:flex-start; gap:9px; border:1px solid rgba(96,165,250,.18); border-radius:10px; color:#93c5fd; background:rgba(30,64,175,.08); cursor:pointer; }.ai-chat-knowledge.active { border-color:rgba(96,165,250,.42); background:rgba(37,99,235,.16); }.ai-chat-knowledge input { margin:2px 0 0; accent-color:#3b82f6; }.ai-chat-knowledge>svg { margin-top:1px; }.ai-chat-knowledge strong,.ai-chat-knowledge small { display:block; }.ai-chat-knowledge strong { color:#dbeafe; font-size:10px; }.ai-chat-knowledge small { margin-top:4px; color:#94a3b8; font-size:8px; line-height:1.55; } .ai-chat-panel { min-width:0; display:grid; grid-template-rows:minmax(0,1fr) auto; background:radial-gradient(circle at 50% 0,rgba(59,130,246,.08),transparent 36%),#0b1220; } .ai-chat-messages { max-height:620px; min-height:540px; padding:26px clamp(18px,5vw,70px); overflow:auto; scroll-behavior:smooth; } .ai-chat-message { max-width:850px; margin:0 auto 22px; display:grid; grid-template-columns:36px minmax(0,1fr); align-items:flex-start; gap:12px; }.ai-chat-message.user { direction:rtl; }.ai-chat-message.user>div { direction:ltr; } .ai-chat-avatar { width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(96,165,250,.24); border-radius:10px; color:#bfdbfe; background:rgba(59,130,246,.12); }.ai-chat-message.user .ai-chat-avatar { color:#ddd6fe; border-color:rgba(167,139,250,.25); background:rgba(124,58,237,.13); } .ai-chat-message>div { min-width:0; }.ai-chat-message b { display:block; margin:0 0 7px; color:#cbd5e1; font-size:10px; }.ai-chat-message.user b { text-align:right; } .ai-chat-message p { margin:0; padding:13px 15px; border:1px solid var(--border); border-radius:4px 13px 13px 13px; color:#dbe4f0; background:rgba(30,41,59,.72); font-size:12px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }.ai-chat-message.user p { border-color:rgba(96,165,250,.28); border-radius:13px 4px 13px 13px; background:rgba(37,99,235,.18); } .ai-chat-sources { margin-top:8px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }.ai-chat-sources>span { color:#94a3b8; font-size:9px; }.ai-chat-sources small { padding:5px 8px; display:inline-flex; align-items:center; gap:5px; border:1px solid rgba(96,165,250,.2); border-radius:999px; color:#bfdbfe; background:rgba(30,64,175,.12); font-size:8px; }.ai-chat-sources svg { flex:none; } .ai-chat-message .ai-result-feedback { max-width:640px; }.ai-chat-message.user .ai-result-feedback { display:none; } .ai-chat-message.pending p { width:76px; display:flex; align-items:center; justify-content:center; gap:5px; }.ai-chat-message.pending p i { width:6px; height:6px; border-radius:50%; background:#60a5fa; animation:chatTyping 1s infinite ease-in-out; }.ai-chat-message.pending p i:nth-child(2) { animation-delay:.15s; }.ai-chat-message.pending p i:nth-child(3) { animation-delay:.3s; } @keyframes chatTyping { 0%,80%,100% { opacity:.35; transform:translateY(0); } 40% { opacity:1; transform:translateY(-4px); } } .ai-chat-composer { margin:0 clamp(18px,5vw,70px) 24px; padding:10px 12px 8px; border:1px solid rgba(96,165,250,.25); border-radius:14px; background:rgba(15,23,42,.9); box-shadow:0 14px 35px rgba(2,6,23,.3); } .ai-chat-composer textarea { width:100%; min-height:84px; max-height:190px; resize:vertical; border:0; outline:0; color:#e2e8f0; background:transparent; font:inherit; font-size:12px; line-height:1.65; }.ai-chat-composer textarea::placeholder { color:#64748b; }.ai-chat-composer textarea:disabled { opacity:.65; } .ai-chat-composer>div { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid rgba(255,255,255,.05); }.ai-chat-composer span { color:#64748b; font-size:8px; }.ai-chat-composer button { width:32px; height:32px; display:grid; place-items:center; border:0; border-radius:9px; color:#fff; background:#2563eb; cursor:pointer; }.ai-chat-composer button:disabled { color:#64748b; background:rgba(255,255,255,.06); cursor:not-allowed; } @media (max-width:900px) { .ai-chat-layout { grid-template-columns:1fr; }.ai-chat-sidebar { border-right:0; border-bottom:1px solid var(--border); }.ai-chat-guide,.ai-chat-privacy { display:none; }.ai-chat-suggestions { grid-template-columns:1fr 1fr; }.ai-chat-suggestions h3 { grid-column:1/-1; }.ai-chat-messages { min-height:480px; } } @media (max-width:560px) { .ai-chat-suggestions { grid-template-columns:1fr; }.ai-chat-suggestions h3 { grid-column:auto; }.ai-chat-messages { min-height:430px; padding:18px 12px; }.ai-chat-message { grid-template-columns:30px minmax(0,1fr); gap:8px; }.ai-chat-avatar { width:29px; height:29px; }.ai-chat-message p { padding:11px 12px; font-size:11px; }.ai-chat-composer { margin:0 10px 12px; }.ai-chat-composer span { max-width:220px; } }  /* AI video multi-file analysis */ .video-analysis-card { padding:0; overflow:hidden; } .video-analysis-intro { min-height:94px; padding:20px 22px; display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:13px; border-bottom:1px solid var(--border); background:linear-gradient(118deg,rgba(30,64,175,.17),rgba(30,41,59,.28)); } .video-analysis-intro>span { width:46px; height:46px; display:grid; place-items:center; border-radius:12px; color:#bfdbfe; background:rgba(59,130,246,.17); font-size:22px; }.video-analysis-intro h2 { margin:0; color:#f8fafc; font-size:18px; }.video-analysis-intro p { margin:5px 0 0; color:#94a3b8; font-size:11px; line-height:1.55; } .video-analysis-clear { min-height:34px; padding:7px 10px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid rgba(251,113,133,.2); border-radius:8px; color:#fda4af; background:rgba(244,63,94,.06); font-size:10px; cursor:pointer; }.video-analysis-clear:disabled { opacity:.5; cursor:not-allowed; } .video-analysis-source-section { margin:19px 22px 0; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:rgba(15,23,42,.34); }.video-analysis-source-section>header { min-height:60px; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); }.video-analysis-source-section h3 { margin:0; color:#e2e8f0; font-size:13px; }.video-analysis-source-section header p { margin:5px 0 0; color:#64748b; font-size:9px; }.video-analysis-source-section>header>span { min-width:42px; padding:6px 8px; border-radius:999px; color:#bfdbfe; background:rgba(59,130,246,.12); font-size:9px; text-align:center; } .video-analysis-empty { min-height:130px; padding:21px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#64748b; }.video-analysis-empty>svg { color:#475569; font-size:31px; }.video-analysis-empty strong { margin-top:9px; color:#94a3b8; font-size:11px; }.video-analysis-empty p { max-width:350px; margin:6px 0 0; font-size:9px; line-height:1.55; } .video-analysis-source-list { padding:11px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }.video-analysis-source-list article { min-width:0; padding:8px; display:grid; grid-template-columns:48px minmax(0,1fr) 28px; align-items:center; gap:9px; border:1px solid rgba(96,165,250,.16); border-radius:9px; background:rgba(30,64,175,.06); }.video-analysis-source-list .library-thumbnail { width:48px; height:40px; border-radius:6px; }.video-analysis-source-list strong,.video-analysis-source-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.video-analysis-source-list strong { color:#e2e8f0; font-size:10px; }.video-analysis-source-list small { margin-top:5px; color:#64748b; font-size:8px; }.video-analysis-source-list button { width:28px; height:28px; display:grid; place-items:center; border:0; border-radius:7px; color:#94a3b8; background:transparent; cursor:pointer; }.video-analysis-source-list button:hover { color:#fda4af; background:rgba(244,63,94,.1); } .video-analysis-source-actions { min-height:57px; padding:10px 12px; display:flex; align-items:center; flex-wrap:wrap; gap:8px; border-top:1px solid var(--border); }.video-analysis-source-actions .secondary-action { min-height:34px; margin:0; padding:7px 10px; display:inline-flex; align-items:center; justify-content:center; gap:6px; font-size:9px; }.video-analysis-source-actions .secondary-action:disabled { opacity:.5; cursor:not-allowed; }.video-analysis-source-actions small { margin-left:auto; display:flex; align-items:flex-start; gap:6px; color:#64748b; font-size:8px; line-height:1.45; }.video-analysis-source-actions small svg { margin-top:1px; flex:none; color:#34d399; } .video-analysis-form { margin:18px 22px 0; display:grid; grid-template-columns:1fr 1fr; gap:12px; }.video-analysis-form label { display:block; color:#94a3b8; font-size:10px; }.video-analysis-form label>span { display:block; margin-bottom:7px; }.video-analysis-form input,.video-analysis-form textarea { width:100%; min-height:39px; box-sizing:border-box; padding:9px 10px; resize:vertical; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0f172a; font:inherit; font-size:10px; }.video-analysis-form input:focus,.video-analysis-form textarea:focus { border-color:#3b82f6; }.video-analysis-form textarea { min-height:82px; line-height:1.55; }.video-analysis-goal { grid-column:1/-1; } .video-analysis-submit { margin:18px 22px 22px; padding:13px 14px; display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid rgba(52,211,153,.18); border-radius:11px; background:rgba(6,78,59,.09); }.video-analysis-submit>div { min-width:0; display:flex; align-items:flex-start; gap:9px; }.video-analysis-submit>div>svg { margin-top:2px; flex:none; color:#34d399; font-size:17px; }.video-analysis-submit strong,.video-analysis-submit small { display:block; }.video-analysis-submit strong { color:#a7f3d0; font-size:10px; }.video-analysis-submit small { margin-top:4px; color:#94a3b8; font-size:8px; line-height:1.5; }.video-analysis-submit .wide-primary { width:auto; min-width:175px; margin:0; padding:10px 14px; flex:none; font-size:10px; }.video-analysis-submit .wide-primary:disabled { opacity:.55; cursor:not-allowed; } .video-analysis-job { margin:0 22px 22px; padding:14px; border:1px solid rgba(96,165,250,.24); border-radius:11px; background:rgba(30,64,175,.08); }.video-analysis-job>div { display:flex; align-items:center; gap:10px; }.video-analysis-job>div>span { width:34px; height:34px; display:grid; place-items:center; flex:none; border-radius:9px; color:#bfdbfe; background:rgba(59,130,246,.13); }.video-analysis-job strong,.video-analysis-job small { display:block; }.video-analysis-job strong { color:#dbeafe; font-size:11px; }.video-analysis-job small { margin-top:4px; color:#94a3b8; font-size:8px; }.video-analysis-job>i { height:6px; margin-top:11px; display:block; overflow:hidden; border-radius:999px; background:rgba(59,130,246,.12); }.video-analysis-job>i>b { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#60a5fa,#818cf8); transition:width .25s ease; }.video-analysis-job>button { min-height:30px; margin-top:11px; padding:6px 9px; display:flex; align-items:center; gap:6px; border:1px solid rgba(96,165,250,.25); border-radius:7px; color:#bfdbfe; background:rgba(59,130,246,.08); font-size:8px; cursor:pointer; }.video-analysis-job>button:disabled { opacity:.55; cursor:wait; }.video-analysis-job>p { margin:10px 0 0; color:#fda4af; font-size:9px; line-height:1.55; }.video-analysis-job.succeeded { border-color:rgba(52,211,153,.24); background:rgba(6,78,59,.08); }.video-analysis-job.succeeded>div>span { color:#6ee7b7; background:rgba(16,185,129,.12); }.video-analysis-job.succeeded strong { color:#a7f3d0; } .video-analysis-report { margin:0 22px 22px; overflow:hidden; border:1px solid rgba(139,92,246,.27); border-radius:13px; background:rgba(30,41,59,.62); }.video-analysis-report>header { min-height:74px; padding:14px 17px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); background:linear-gradient(110deg,rgba(91,33,182,.14),transparent); }.video-analysis-report>header>div { display:flex; align-items:center; gap:10px; }.video-analysis-report>header>div>span { width:39px; height:39px; display:grid; place-items:center; flex:none; border-radius:10px; color:#ddd6fe; background:rgba(139,92,246,.17); }.video-analysis-report h2 { margin:0; color:#f8fafc; font-size:15px; }.video-analysis-report header p { margin:4px 0 0; color:#94a3b8; font-size:9px; }.video-analysis-report>header>small { padding:5px 7px; border-radius:6px; color:#c4b5fd; background:rgba(139,92,246,.1); font-size:8px; white-space:nowrap; } .video-analysis-overview { margin:17px; padding:15px; border-left:3px solid #8b5cf6; border-radius:0 9px 9px 0; background:rgba(139,92,246,.07); }.video-analysis-overview h3 { margin:0 0 8px; color:#ddd6fe; font-size:12px; }.video-analysis-overview>p { margin:0; color:#cbd5e1; font-size:10px; line-height:1.7; white-space:pre-wrap; }.video-analysis-overview>div { margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }.video-analysis-overview>div>span { min-width:0; padding:9px; display:block; border:1px solid rgba(196,181,253,.16); border-radius:7px; color:#cbd5e1; background:rgba(15,23,42,.24); font-size:9px; line-height:1.5; }.video-analysis-overview b { display:block; margin-bottom:4px; color:#a78bfa; font-size:8px; } .video-analysis-theme-assessment { margin-top:11px!important; color:#c4b5fd!important; }.video-analysis-observations { margin:0 17px 17px; padding:13px; border:1px solid rgba(99,102,241,.2); border-radius:10px; background:rgba(30,41,59,.3); }.video-analysis-observations>header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }.video-analysis-observations h3 { margin:0; color:#e0e7ff; font-size:11px; }.video-analysis-observations header small { color:#94a3b8; font-size:8px; }.video-analysis-observations>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:10px; }.video-analysis-observations article { min-width:0; padding:10px; border:1px solid rgba(148,163,184,.13); border-radius:8px; background:rgba(2,6,23,.24); }.video-analysis-observations article>strong { color:#c7d2fe; font-size:9px; }.video-analysis-observations article>p { margin:7px 0; color:#cbd5e1; font-size:8px; line-height:1.6; }.video-analysis-observations article section { margin-top:7px; }.video-analysis-observations article b { color:#a5b4fc; font-size:8px; }.video-analysis-observations article ul { margin:4px 0 0; padding-left:14px; color:#94a3b8; font-size:8px; line-height:1.5; } .video-analysis-suggestions { padding:0 17px 17px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.video-analysis-suggestion-column { min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.36); }.video-analysis-suggestion-column>header { min-height:56px; padding:11px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--border); }.video-analysis-suggestion-column>header>span { width:29px; height:29px; display:grid; place-items:center; flex:none; border-radius:8px; }.video-analysis-suggestion-column.delete>header>span { color:#fda4af; background:rgba(244,63,94,.11); }.video-analysis-suggestion-column.add>header>span { color:#fcd34d; background:rgba(245,158,11,.11); }.video-analysis-suggestion-column.improve>header>span { color:#bfdbfe; background:rgba(59,130,246,.12); }.video-analysis-suggestion-column h3 { margin:0; color:#e2e8f0; font-size:11px; }.video-analysis-suggestion-column header small { display:block; margin-top:3px; color:#64748b; font-size:8px; }.video-analysis-no-suggestion { min-height:76px; margin:0; padding:15px 12px; color:#64748b; font-size:9px; line-height:1.55; }.video-analysis-suggestion-list { padding:9px; display:grid; gap:8px; }.video-analysis-suggestion-list>section { padding:10px; border:1px solid rgba(148,163,184,.13); border-radius:8px; background:rgba(2,6,23,.24); }.video-analysis-suggestion-heading { display:flex; align-items:flex-start; gap:7px; }.video-analysis-suggestion-heading>span { padding:3px 5px; flex:none; border-radius:5px; color:#dbeafe; background:rgba(59,130,246,.13); font-size:7px; white-space:nowrap; }.video-analysis-suggestion-heading strong { color:#e2e8f0; font-size:9px; line-height:1.45; }.video-analysis-suggestion-list p { margin:8px 0 0; color:#94a3b8; font-size:8px; line-height:1.6; }.video-analysis-targets { margin-top:7px; display:block; color:#60a5fa; font-size:8px; line-height:1.45; }.video-analysis-suggestion-list ul { margin:8px 0 0; padding-left:14px; color:#94a3b8; font-size:8px; line-height:1.55; }.video-analysis-suggestion-list li+li { margin-top:4px; }.video-analysis-action { margin-top:9px; padding-top:8px; border-top:1px solid rgba(148,163,184,.12); color:#cbd5e1; font-size:8px; line-height:1.55; }.video-analysis-action b { display:block; margin-bottom:3px; color:#a5b4fc; font-size:8px; } .video-analysis-caveats { margin:0 17px 17px; padding:11px; display:flex; align-items:flex-start; gap:8px; border:1px solid rgba(245,158,11,.17); border-radius:9px; color:#d6cda9; background:rgba(120,53,15,.09); }.video-analysis-caveats>svg { margin-top:2px; flex:none; color:#fbbf24; }.video-analysis-caveats strong { display:block; color:#fde68a; font-size:9px; }.video-analysis-caveats ul { margin:6px 0 0; padding-left:15px; color:#c4b98a; font-size:8px; line-height:1.55; }.video-analysis-caveats li+li { margin-top:4px; } @media (max-width:900px) { .video-analysis-suggestions { grid-template-columns:1fr; }.video-analysis-source-list,.video-analysis-observations>div { grid-template-columns:1fr; } } @media (max-width:620px) { .video-analysis-intro { grid-template-columns:42px minmax(0,1fr); padding:16px 14px; }.video-analysis-intro>span { width:42px; height:42px; }.video-analysis-clear { grid-column:1/-1; width:100%; }.video-analysis-source-section,.video-analysis-form,.video-analysis-submit,.video-analysis-job,.video-analysis-report { margin-left:14px; margin-right:14px; }.video-analysis-form { grid-template-columns:1fr; }.video-analysis-goal { grid-column:auto; }.video-analysis-submit { align-items:stretch; flex-direction:column; }.video-analysis-submit .wide-primary { width:100%; }.video-analysis-source-actions { align-items:stretch; flex-direction:column; }.video-analysis-source-actions .secondary-action { width:100%; }.video-analysis-source-actions small { margin-left:0; }.video-analysis-overview>div { grid-template-columns:1fr; }.video-analysis-report>header { align-items:flex-start; flex-direction:column; }.video-analysis-report>header>small { margin-left:49px; }.video-analysis-suggestions { padding-left:12px; padding-right:12px; }.video-analysis-overview,.video-analysis-caveats { margin-left:12px; margin-right:12px; } }
/* AI video/voice responsive repairs: four capability tabs and voice-clone form layout. */
.ai-capability-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
.voice-clone-card > .voice-clone-safety,
.voice-clone-card > .voice-clone-name,
.voice-clone-card > .voice-clone-consent,
.voice-clone-card > .voice-clone-profiles { margin-left:21px; margin-right:21px; }
.voice-clone-safety { margin-top:18px; padding:13px 14px; display:flex; align-items:flex-start; gap:10px; border:1px solid rgba(251,191,36,.2); border-radius:10px; color:#d6d3a7; background:rgba(120,53,15,.1); }
.voice-clone-safety > svg { margin-top:2px; flex:none; color:#fbbf24; font-size:18px; }
.voice-clone-safety strong,.voice-clone-safety small { display:block; }
.voice-clone-safety strong { color:#fde68a; font-size:11px; line-height:1.4; }
.voice-clone-safety small { margin-top:5px; color:#c4b98a; font-size:9px; line-height:1.6; }
.voice-clone-card > .voice-clone-name { width:calc(100% - 42px); box-sizing:border-box; min-height:40px; padding:9px 10px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0f172a; font:inherit; font-size:11px; }
.voice-clone-card > .voice-clone-name:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.voice-clone-consent { margin-top:13px; display:flex; align-items:flex-start; gap:8px; color:#94a3b8; font-size:9px; line-height:1.6; }
.voice-clone-consent input { width:16px; height:16px; margin:2px 0 0; flex:none; accent-color:#3b82f6; }
.voice-clone-consent span { min-width:0; }
.voice-clone-card > .wide-primary { margin-top:18px; }
.voice-clone-profiles { margin-top:22px; padding-top:17px; border-top:1px solid var(--border); }
.voice-clone-profiles .section-row { align-items:center; }
.voice-clone-profiles h3 { margin:0; color:#f8fafc; font-size:14px; }
.voice-clone-profiles > .section-row .secondary-action { width:auto; min-height:34px; margin:0; padding:7px 11px; }
.voice-clone-profiles article { margin-top:10px; padding:12px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border:1px solid rgba(96,165,250,.16); border-radius:9px; background:rgba(15,23,42,.34); }
.voice-clone-profiles article > div { min-width:0; }
.voice-clone-profiles article strong,.voice-clone-profiles article small,.voice-clone-profiles article p { display:block; }
.voice-clone-profiles article strong { color:#e2e8f0; font-size:11px; }
.voice-clone-profiles article small { margin-top:4px; color:#64748b; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.voice-clone-profiles article p { margin:7px 0 0; color:#94a3b8; font-size:9px; line-height:1.5; }
.voice-clone-profiles article > .secondary-action { width:auto; min-width:54px; margin:0; flex:none; }
.voice-clone-empty { margin:11px 0 0; color:#94a3b8; font-size:10px; line-height:1.6; }
@media (max-width:980px) { .ai-capability-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) {
  .ai-capability-tabs { grid-template-columns:1fr; }
  .voice-clone-card > .voice-clone-safety,
  .voice-clone-card > .voice-clone-name,
  .voice-clone-card > .voice-clone-consent,
  .voice-clone-card > .voice-clone-profiles { margin-left:14px; margin-right:14px; }
  .voice-clone-safety { padding:12px; }
  .voice-clone-card > .voice-clone-name { width:calc(100% - 28px); }
  .voice-clone-profiles article { align-items:stretch; flex-direction:column; }
  .voice-clone-profiles article > .secondary-action { width:100%; }
}
.account-field input,.account-field select,.account-field textarea { width:100%; box-sizing:border-box; margin-top:8px; padding:12px 13px; border:1px solid rgba(148,163,184,.2); border-radius:10px; outline:0; color:#e2e8f0; background:rgba(15,23,42,.78); font:inherit; line-height:1.5; transition:border-color .2s,box-shadow .2s,background .2s; }
.account-field select { min-height:44px; appearance:auto; color-scheme:dark; cursor:pointer; }
.account-field textarea { min-height:132px; resize:vertical; }
.account-field input::placeholder,.account-field textarea::placeholder { color:#71819a; opacity:1; }
.account-field input:focus,.account-field select:focus,.account-field textarea:focus { border-color:#60a5fa; background:rgba(30,64,175,.16); box-shadow:0 0 0 3px rgba(59,130,246,.14); }
.account-field option { color:#e2e8f0; background:#111c31; }
.account-field .field-counter { width:100%; margin-top:5px; text-align:right; }
@media (max-width:640px) { .account-field input,.account-field select,.account-field textarea { font-size:14px; } }

.visual-mosaic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
}
.visual-mosaic-regions-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 11;
}
.visual-mosaic-region {
  position: absolute;
  border: 2px solid rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.15);
  pointer-events: auto;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.visual-mosaic-region.rect {
  border-radius: 0;
}
.visual-mosaic-region.circle {
  border-radius: 50%;
}
.visual-mosaic-region.selected {
  border-color: rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.2);
}
.visual-region-list {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.visual-region-list span {
  color: #94a3b8;
  font-size: 11px;
}

/* Visual 对比模式 / 直方图（2026-08-28 补录） */
.compare-mode-buttons { display: flex; gap: 4px; margin-left: 8px; }
.compare-mode-buttons button { padding: 4px 10px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 6px; background: rgba(15, 23, 42, 0.6); color: #94a3b8; font-size: 11px; cursor: pointer; transition: all 0.2s; }
.compare-mode-buttons button:hover { background: rgba(30, 41, 59, 0.8); color: #cbd5e1; border-color: rgba(96, 165, 250, 0.3); }
.compare-mode-buttons button.active { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); }
/* 滑动对比容器 */ .compare-slider-container { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: ew-resize; user-select: none; }
.compare-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.compare-layer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.compare-original { z-index: 1; }
.compare-processed { z-index: 2; }
.compare-slider-handle { position: absolute; top: 0; bottom: 0; width: 4px; background: rgba(255, 255, 255, 0.8); z-index: 3; transform: translateX(-50%); cursor: ew-resize; }
.compare-slider-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255, 255, 255, 0.9); transform: translateX(-50%); box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
.compare-slider-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #1e293b; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); cursor: ew-resize; }
.compare-labels { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; z-index: 4; pointer-events: none; }
.compare-label-left, .compare-label-right { padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(4px); }
/* 左右分屏容器 */ .compare-split-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; background: rgba(148, 163, 184, 0.1); }
.compare-split-half { position: relative; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.4); overflow: hidden; }
.compare-split-half img { max-width: 100%; max-height: 100%; object-fit: contain; }
.compare-split-label { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 500; z-index: 2; backdrop-filter: blur(4px); }
/* 直方图样式 */ .histogram-panel { margin-top: 12px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 8px; background: rgba(15, 23, 42, 0.6); }
.histogram-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.histogram-header span { color: #cbd5e1; font-size: 12px; font-weight: 500; }
.histogram-channels { display: flex; gap: 8px; }
.histogram-channel { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.histogram-r { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.histogram-g { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.histogram-b { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.histogram-lum { background: rgba(255, 255, 255, 0.2); color: #fff; }
.histogram-charts { display: flex; justify-content: center; }
.histogram-canvas { border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 4px; max-width: 100%; }
.visual-queue-actions { position:absolute; top:50%; right:6px; transform:translateY(-50%); display:flex; gap:2px; align-items:center; } .visual-queue-actions .visual-queue-remove { position:static; transform:none; } .visual-queue-select { padding-right:56px; } .visual-queue-tune { width:24px; height:24px; padding:0; display:grid; place-items:center; border:0; border-radius:6px; background:transparent; color:#64748b; cursor:pointer; } .visual-queue-tune:hover { color:#93c5fd; background:rgba(59,130,246,.12); } .visual-queue-tune.active { color:#60a5fa; background:rgba(59,130,246,.18); } .visual-queue-list article.overridden { border-color:rgba(250,204,21,.4); } .visual-queue-list article.overridden .visual-queue-select strong::after { content:' · 已微调'; color:#facc15; } .visual-preset-panel { margin:0 0 14px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:rgba(15,23,42,.6); } .visual-preset-panel > header { display:flex; align-items:center; justify-content:space-between; } .visual-preset-panel > header span { display:flex; align-items:center; gap:6px; color:#e2e8f0; font-size:12px; } .visual-preset-panel > header button { border:0; background:transparent; color:#60a5fa; font-size:10px; cursor:pointer; } .visual-preset-row { margin-top:10px; display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .visual-preset-row input { flex:1; min-width:140px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0f172a; font-size:11px; } .visual-preset-row input:focus { border-color:#3b82f6; } .visual-preset-row label.secondary-action { display:inline-flex; align-items:center; gap:6px; cursor:pointer; } .visual-preset-list { margin-top:10px; display:grid; gap:6px; max-height:180px; overflow:auto; } .visual-preset-list article { display:flex; align-items:center; gap:6px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.03); } .visual-preset-list article .visual-queue-remove { position:static; transform:none; } .visual-preset-apply { flex:1; min-width:0; padding:8px 10px; display:flex; flex-direction:column; gap:3px; border:0; background:transparent; text-align:left; cursor:pointer; } .visual-preset-apply strong { color:#e2e8f0; font-size:11px; } .visual-preset-apply small { color:#64748b; font-size:9px; } .visual-spec-list { margin-top:10px; display:grid; gap:10px; max-height:320px; overflow:auto; } .visual-spec-list article { padding:10px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.03); } .visual-spec-head { display:flex; align-items:center; gap:6px; } .visual-spec-head input { flex:1; min-width:0; padding:7px 9px; border:1px solid var(--border); border-radius:7px; outline:0; color:#e2e8f0; background:#0f172a; font-size:11px; } .visual-spec-head .visual-queue-remove { position:static; transform:none; } .visual-spec-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }

/* ===== visual filter groups & search (2026-08-30) ===== */
.visual-filter-search { display:flex; align-items:center; gap:8px; margin:10px 12px 6px; padding:7px 10px; border:1px solid rgba(148,163,184,.18); border-radius:9px; color:#64748b; background:rgba(15,23,42,.5); }
.visual-filter-search > svg { flex:none; color:#60a5fa; }
.visual-filter-search input { flex:1; min-width:0; border:0; outline:0; color:#e5e7eb; background:transparent; font-size:11px; }
.visual-filter-search input::placeholder { color:#475569; }
.visual-filter-search button { display:grid; place-items:center; padding:2px; border:0; background:transparent; color:#94a3b8; cursor:pointer; }
.visual-filter-search button:hover { color:#e2e8f0; }
.visual-preview-notice { margin:4px 12px 10px; padding:8px 10px; display:flex; align-items:flex-start; gap:7px; border:1px solid rgba(96,165,250,.18); border-radius:9px; color:#93c5fd; background:rgba(59,130,246,.08); font-size:9px; line-height:1.55; }
.visual-preview-notice > svg { margin-top:1px; flex:none; }
.filter-group { border-bottom:1px solid var(--border); background:rgba(15,23,42,.25); }
.filter-group-header { width:100%; padding:11px 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:0; border-left:2px solid transparent; color:#e2e8f0; background:rgba(30,41,59,.35); cursor:pointer; text-align:left; }
.filter-group-header:hover { background:rgba(30,41,59,.62); }
.filter-group.expanded > .filter-group-header { border-left-color:#60a5fa; background:rgba(30,41,59,.5); }
.filter-group-title { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:700; }
.filter-group-title svg { color:#60a5fa; }
.filter-group-meta { color:#64748b; font-size:9px; white-space:nowrap; }
.filter-group-content { background:rgba(15,23,42,.18); }
.filter-group-content > section { padding:15px 18px 17px; border-bottom:1px solid rgba(255,255,255,.05); }
.filter-group-content > section:last-child { border-bottom:0; }
.filter-group-content > section > header { min-height:24px; margin-bottom:15px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.filter-group-content > section > header span { display:flex; align-items:center; gap:8px; color:#e2e8f0; font-size:12px; font-weight:700; }
.filter-group-content > section > header span svg { color:#60a5fa; }
.filter-group-content > section > header button { padding:4px 7px; border:0; border-radius:6px; color:#64748b; background:rgba(255,255,255,.04); font-size:9px; cursor:pointer; }
.filter-group-content > section > header button:hover { color:#cbd5e1; }
.visual-vignette-preview { position:absolute; inset:0; pointer-events:none; }
.visual-tint-preview { position:absolute; inset:0; pointer-events:none; border-radius:inherit; }
.visual-preview-figure { position:relative; display:inline-block; max-width:86%; max-height:570px; }
.visual-preview-figure img { max-width:100%; max-height:570px; object-fit:contain; }
.visual-preview-stage .visual-preview-figure > img { margin:0; }
@media (max-width:720px) { .filter-group-content > section { border-right:0; } }

/* 马赛克区域深化（2026-09-02） */
.visual-mosaic-region { cursor: move; touch-action: none; }
.visual-region-list .visual-region-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.visual-region-list .visual-region-row > button:first-child { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border, rgba(148,163,184,.15)); border-radius: 7px; background: rgba(255,255,255,.03); color: #94a3b8; font-size: 10px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visual-region-list .visual-region-row > button:first-child:hover { border-color: rgba(96,165,250,.45); color: #cbd5e1; }
.visual-region-list .visual-region-row > button:first-child.active { border-color: rgba(239,68,68,.55); color: #fecaca; background: rgba(239,68,68,.08); }

/* 视觉模块深化（2026-09-02 批次） */
.visual-region-edit { margin-top: 8px; padding: 10px; border: 1px solid rgba(96,165,250,.3); border-radius: 8px; background: rgba(59,130,246,.05); }
.visual-region-edit-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.visual-region-edit-actions .danger-action { min-height: 26px; padding: 4px 10px; font-size: 10px; }
.visual-queue-list article[draggable="true"] { cursor: grab; }
.visual-queue-list article[draggable="true"]:active { cursor: grabbing; }
.visual-queue-list article[draggable="true"] { transition: opacity .15s; }

/* 马赛克区域缩放手柄（2026-09-03） */
.visual-mosaic-resize-handle { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #3b82f6; border: 2px solid #ffffff; cursor: nwse-resize; z-index: 12; touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.visual-mosaic-resize-handle:hover { background: #2563eb; transform: scale(1.15); }

/* 统一 AI 任务中心（P2） */
.ai-task-center.global { margin-top:0; background:rgba(15,23,42,.34); }
.ai-task-filters { padding:12px 18px; display:flex; flex-wrap:wrap; gap:12px; border-bottom:1px solid var(--border); background:rgba(2,6,23,.2); }
.ai-task-filters label { display:flex; align-items:center; gap:8px; color:#94a3b8; font-size:10px; }
.ai-task-filters select { min-width:130px; padding:7px 9px; border:1px solid var(--border); border-radius:8px; color:#e2e8f0; background:#0f172a; outline:0; }
.ai-task-result-link { width:max-content; margin-top:8px; display:inline-flex; align-items:center; gap:5px; color:#93c5fd; font-size:9px; }
.ai-task-result-link:hover { color:#dbeafe; }
.ai-task-more { width:calc(100% - 24px); min-height:36px; margin:0 12px 12px; border:1px solid rgba(96,165,250,.22); border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.08); cursor:pointer; }
.ai-task-more:disabled,.ai-task-cancel:disabled { opacity:.55; cursor:wait; }
@media (max-width:560px) { .ai-task-filters { align-items:stretch; flex-direction:column; }.ai-task-filters label { justify-content:space-between; }.ai-task-filters select { flex:1; } }
.visual-adjustment-empty { width:100%; margin-top:10px; padding:9px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px dashed rgba(96,165,250,.35); border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.06); font-size:10px; cursor:pointer; }
.visual-adjustment-empty:hover { border-color:rgba(96,165,250,.65); background:rgba(59,130,246,.12); }
.visual-adjustment-layers { margin-top:10px; display:grid; gap:7px; }
.visual-adjustment-layers > article { border:1px solid rgba(148,163,184,.16); border-radius:9px; background:rgba(15,23,42,.46); overflow:hidden; }
.visual-adjustment-layers > article.selected { border-color:rgba(96,165,250,.56); box-shadow:0 0 0 1px rgba(59,130,246,.12); }
.visual-adjustment-layers > article.disabled { opacity:.58; }
.visual-adjustment-layer-head { min-height:42px; padding:6px 7px; display:flex; align-items:center; gap:7px; cursor:pointer; }
.visual-adjustment-layer-head > button,.visual-adjustment-layer-head > div button { width:26px; height:26px; padding:0; display:grid; place-items:center; border:1px solid rgba(148,163,184,.16); border-radius:6px; color:#94a3b8; background:rgba(255,255,255,.03); cursor:pointer; }
.visual-adjustment-layer-head > button:hover,.visual-adjustment-layer-head > div button:hover:not(:disabled) { color:#dbeafe; border-color:rgba(96,165,250,.4); }
.visual-adjustment-layer-head > div button:disabled { opacity:.28; cursor:default; }
.visual-adjustment-layer-head > span { min-width:0; flex:1; }
.visual-adjustment-layer-head strong,.visual-adjustment-layer-head small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.visual-adjustment-layer-head strong { color:#e2e8f0; font-size:10px; }
.visual-adjustment-layer-head small { margin-top:3px; color:#64748b; font-size:8px; }
.visual-adjustment-layer-head > div { display:flex; gap:3px; }
.visual-adjustment-layer-edit { padding:8px 10px 12px; border-top:1px solid rgba(148,163,184,.12); background:rgba(30,41,59,.28); }
.visual-layer-mask-editor { margin-top:10px; padding-top:10px; border-top:1px dashed rgba(148,163,184,.25); }
.visual-smart-object-source { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin:10px 0; }
.visual-smart-object-source select { min-width:0; border:1px solid rgba(148,163,184,.24); border-radius:8px; background:#101827; color:#e2e8f0; padding:8px; }
.visual-smart-object-source button { border:1px solid rgba(56,189,248,.3); border-radius:8px; background:rgba(14,116,144,.16); color:#bae6fd; padding:8px 10px; cursor:pointer; }
.visual-smart-object-layers article.missing { border-color:rgba(248,113,113,.48); }
.visual-smart-object-layers article.missing small { color:#fca5a5; }
.video-generation-modes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.video-extension-source { margin:14px 0; padding:14px; border:1px solid rgba(96,165,250,.2); border-radius:12px; background:rgba(30,64,175,.07); }
.video-extension-source select { width:100%; min-height:42px; padding:9px 11px; border:1px solid rgba(148,163,184,.22); border-radius:9px; outline:none; color:#e2e8f0; background:#0f172a; }
.video-extension-source > small { display:block; margin-top:9px; color:#8fa8ca; font-size:9px; line-height:1.55; }
.video-extension-source .real-empty { min-height:90px; border:1px dashed rgba(148,163,184,.2); border-radius:9px; }
.locked-video-options > div { min-height:62px; padding:11px; display:flex; flex-direction:column; justify-content:center; gap:5px; border:1px solid rgba(148,163,184,.16); border-radius:10px; background:rgba(15,23,42,.42); }
.locked-video-options strong { color:#94a3b8; font-size:9px; }
.locked-video-options span { color:#dbeafe; font-size:12px; font-weight:700; }
@media (max-width:720px) { .video-generation-modes { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.audio-job-status { margin-top:12px; padding:11px 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid rgba(96,165,250,.22); border-radius:10px; background:rgba(30,64,175,.08); }
.audio-job-status>span { min-width:0; display:grid; grid-template-columns:22px minmax(0,1fr); column-gap:8px; align-items:center; }
.audio-job-status>span>svg { grid-row:1/3; color:#93c5fd; }
.audio-job-status strong,.audio-job-status small { display:block; }
.audio-job-status strong { color:#dbeafe; font-size:10px; }
.audio-job-status small { margin-top:3px; color:#94a3b8; font-size:8px; line-height:1.5; }
.audio-job-status .secondary-action { flex:none; min-height:32px; margin:0; padding:7px 10px; font-size:9px; }
@media (max-width:620px) { .audio-job-status { align-items:stretch; flex-direction:column; }.audio-job-status .secondary-action { width:100%; } }

.speech-stream-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:stretch; }
.speech-stream-actions .wide-primary { margin:0; }
.speech-stop-action { min-width:118px; border-color:rgba(251,113,133,.25); color:#fecdd3; background:rgba(159,18,57,.12); }
.speech-stream-preview { margin-top:11px; padding:12px; display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,320px); gap:14px; align-items:center; border:1px solid rgba(96,165,250,.22); border-radius:11px; background:linear-gradient(110deg,rgba(30,64,175,.11),rgba(15,23,42,.44)); }
.speech-stream-preview strong,.speech-stream-preview small { display:block; }
.speech-stream-preview strong { color:#dbeafe; font-size:10px; }
.speech-stream-preview small { margin-top:5px; color:#94a3b8; font-size:8px; line-height:1.55; }
.speech-stream-preview>audio { width:100%; height:34px; }
.speech-stream-preview>span { color:#71819a; font-size:8px; line-height:1.5; text-align:right; }
@media (max-width:620px) { .speech-stream-actions,.speech-stream-preview { grid-template-columns:1fr; }.speech-stop-action { width:100%; }.speech-stream-preview>span { text-align:left; } }

/* Account session security */
.account-security-summary{width:min(1180px,calc(100% - 32px));margin:0 auto 16px;padding:13px 15px;display:flex;align-items:center;gap:11px;border:1px solid rgba(251,191,36,.28);border-radius:12px;color:#fde68a;background:rgba(120,53,15,.14);text-align:left;cursor:pointer}.account-security-summary>svg{flex:none;font-size:20px}.account-security-summary>span{min-width:0;flex:1}.account-security-summary strong,.account-security-summary small{display:block}.account-security-summary strong{font-size:12px}.account-security-summary small{margin-top:4px;color:#c6b98a;font-size:9px}.account-security-summary>b{font-size:10px;white-space:nowrap}.account-security-count{min-width:18px;height:18px;margin-left:auto;display:grid;place-items:center;border-radius:999px;color:#fff;background:#d97706;font-size:8px;font-style:normal}.account-security-explainer{margin:0 0 14px;padding:10px 12px;border:1px solid rgba(96,165,250,.18);border-radius:9px;color:#94a3b8;background:rgba(30,64,175,.07);font-size:9px;line-height:1.6}.account-security-events{display:grid;gap:9px;margin-bottom:15px}.account-security-events>article{padding:12px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:flex-start;gap:10px;border:1px solid rgba(251,191,36,.22);border-radius:10px;background:rgba(120,53,15,.1)}.account-security-events>article.elevated{border-color:rgba(251,113,133,.28);background:rgba(127,29,29,.11)}.account-security-events>article.acknowledged{opacity:.68}.account-security-events>article>svg{margin-top:2px;color:#fbbf24;font-size:18px}.account-security-events>article.elevated>svg{color:#fb7185}.account-security-events h4{margin:0;color:#f8fafc;font-size:11px}.account-security-events p{margin:5px 0;color:#cbd5e1;font-size:9px;line-height:1.55}.account-security-events ul{margin:6px 0;padding-left:16px;color:#b9a878;font-size:8px;line-height:1.5}.account-security-events small{color:#71819a;font-size:8px}.account-security-events button{padding:6px 8px;border:1px solid rgba(251,191,36,.25);border-radius:7px;color:#fde68a;background:rgba(120,53,15,.12);font-size:8px;cursor:pointer}.session-risk{margin-left:7px;padding:3px 6px;border-radius:999px;color:#fcd34d;background:rgba(245,158,11,.12);font-size:7px;font-style:normal}.session-risk.elevated{color:#fda4af;background:rgba(244,63,94,.12)}.device-list article>div:nth-child(2)>small{display:block;margin-top:5px;color:#8a7b5b;font-size:8px;line-height:1.45}@media(max-width:620px){.account-security-events>article{grid-template-columns:26px minmax(0,1fr)}.account-security-events button{grid-column:2;width:max-content}.account-security-summary>b{display:none}}

/* Permission decision notifications */
.permission-notification{position:fixed;z-index:120;right:20px;top:88px;width:min(420px,calc(100vw - 32px));padding:13px 14px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid rgba(52,211,153,.28);border-radius:12px;color:#d1fae5;background:rgba(6,78,59,.94);box-shadow:0 18px 48px rgba(2,6,23,.42);backdrop-filter:blur(16px)}.permission-notification.request_rejected{border-color:rgba(251,113,133,.3);color:#ffe4e6;background:rgba(127,29,29,.95)}.permission-notification>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.1);font-size:17px}.permission-notification strong,.permission-notification small{display:block}.permission-notification strong{font-size:11px}.permission-notification small{margin-top:4px;color:rgba(236,253,245,.74);font-size:9px;line-height:1.5}.permission-notification button{padding:7px 9px;display:flex;align-items:center;gap:5px;border:1px solid rgba(255,255,255,.18);border-radius:8px;color:inherit;background:rgba(255,255,255,.08);font-size:9px;cursor:pointer}@media(max-width:620px){.permission-notification{top:76px;right:16px;grid-template-columns:30px minmax(0,1fr)}.permission-notification>span{width:30px;height:30px}.permission-notification button{grid-column:2;width:max-content}}

/* Optional user password and recovery flows */
.login-method-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 22px;padding:4px;border:1px solid rgba(148,163,184,.14);border-radius:12px;background:rgba(2,6,23,.26)}.login-method-tabs button{min-height:40px;border:0;border-radius:9px;color:#8090a7;background:transparent;font-size:12px;font-weight:700;cursor:pointer}.login-method-tabs button.active{color:#eff6ff;background:linear-gradient(135deg,rgba(59,130,246,.36),rgba(99,102,241,.26));box-shadow:0 8px 20px rgba(15,23,42,.28)}.login-forgot-password{display:block;width:max-content;margin:9px 0 0 auto;color:#93c5fd;font-size:12px}.login-forgot-password:hover{text-decoration:underline}.password-flow-notice{margin:15px 0 -6px;padding:10px 12px;border:1px solid rgba(52,211,153,.2);border-radius:10px;color:#a7f3d0;background:rgba(6,78,59,.13);font-size:12px;line-height:1.55}.password-reset-success{margin-top:28px;padding:22px;border:1px solid rgba(52,211,153,.2);border-radius:14px;text-align:center;background:rgba(6,78,59,.1)}.password-reset-success>svg{font-size:34px;color:#34d399}.password-reset-success p{margin:12px 0 0;color:#cbd5e1;font-size:13px;line-height:1.65}.password-reset-success .login-submit{margin-top:20px}.account-password-card{margin-top:18px;padding:20px;border:1px solid rgba(148,163,184,.16);border-radius:14px;background:rgba(15,23,42,.34)}.account-password-card>header{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center}.account-password-card>header>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:#bfdbfe;background:rgba(59,130,246,.15);font-size:19px}.account-password-card h3{margin:0;color:#f8fafc;font-size:14px}.account-password-card header p{margin:4px 0 0;color:#94a3b8;font-size:10px;line-height:1.5}.account-password-card header>b{color:#93c5fd;font-size:9px;font-weight:650}.account-password-card>.wide-primary{width:auto;min-height:42px;margin-top:17px}.account-password-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(148,163,184,.13)}.account-password-form>.account-field:first-child{grid-column:1/-1}.account-password-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}.account-password-actions .secondary-action,.account-password-actions .wide-primary{width:auto;min-height:42px;margin:0}.account-password-security{margin:17px 0 0;padding-top:14px;display:flex;align-items:flex-start;gap:7px;border-top:1px solid rgba(148,163,184,.12);color:#8292a9;font-size:9px;line-height:1.55}.account-password-security svg{flex:none;margin-top:1px;color:#60a5fa}.account-inline-notice.error{border-color:rgba(248,113,113,.18);color:#fca5a5;background:rgba(127,29,29,.1)}@media(max-width:620px){.account-password-card>header{grid-template-columns:38px minmax(0,1fr)}.account-password-card>header>span{width:38px;height:38px}.account-password-card header>b{grid-column:2}.account-password-form{grid-template-columns:1fr}.account-password-form>.account-field:first-child,.account-password-actions{grid-column:auto}.account-password-actions{align-items:stretch;flex-direction:column-reverse}.account-password-actions .secondary-action,.account-password-actions .wide-primary{width:100%}}

/* AI image capability navigation */
.ai-image-capability-tabs{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}


.global-file-upload-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 240;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.global-file-upload-card {
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .3);
  border-radius: 14px;
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(15, 23, 42, .97), rgba(17, 28, 49, .97));
  box-shadow: 0 18px 52px rgba(2, 6, 23, .52);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.global-file-upload-card.success {
  border-color: rgba(52, 211, 153, .32);
}

.global-file-upload-card.error {
  border-color: rgba(251, 113, 133, .36);
}

.global-file-upload-card.cancelled {
  border-color: rgba(148, 163, 184, .26);
}

.global-file-upload-card > header {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.global-file-upload-state {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid rgba(147, 197, 253, .36);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: global-file-upload-spin .8s linear infinite;
}

.global-file-upload-card.success .global-file-upload-state,
.global-file-upload-card.error .global-file-upload-state,
.global-file-upload-card.cancelled .global-file-upload-state {
  border: 0;
  animation: none;
}

.global-file-upload-card.success .global-file-upload-state {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .12);
}

.global-file-upload-card.error .global-file-upload-state {
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, .12);
}

.global-file-upload-card.cancelled .global-file-upload-state {
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .1);
}

.global-file-upload-card header strong,
.global-file-upload-card header small {
  display: block;
}

.global-file-upload-card header strong {
  color: #eff6ff;
  font-size: 13px;
  line-height: 1.4;
}

.global-file-upload-card header small {
  margin-top: 4px;
  overflow: hidden;
  color: #8fa4c1;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-file-upload-card header button {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 7px;
  color: #94a3b8;
  background: rgba(148, 163, 184, .06);
  font-size: 10px;
  cursor: pointer;
}

.global-file-upload-card header button:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, .12);
}

.global-file-upload-track {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(59, 130, 246, .12);
}

.global-file-upload-track > i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #818cf8);
  transition: width .2s ease;
}

.global-file-upload-card.scanning .global-file-upload-track > i {
  background: linear-gradient(90deg, #2563eb, #60a5fa, #34d399, #2563eb);
  background-size: 220% 100%;
  animation: global-file-upload-scan 1.7s linear infinite;
}

.global-file-upload-card.success .global-file-upload-track > i {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.global-file-upload-card.error .global-file-upload-track > i {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.global-file-upload-card > footer {
  margin-top: 9px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #8396b1;
  font-size: 10px;
  line-height: 1.55;
}

.global-file-upload-card > footer span {
  overflow-wrap: anywhere;
}

.global-file-upload-card > footer b {
  flex: none;
  color: #bfdbfe;
  font-size: 10px;
}

@keyframes global-file-upload-spin {
  to { transform: rotate(360deg); }
}

@keyframes global-file-upload-scan {
  to { background-position: -220% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .global-file-upload-state,
  .global-file-upload-card.scanning .global-file-upload-track > i {
    animation: none;
  }
}

@media (max-width: 640px) {
  .global-file-upload-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .global-file-upload-card {
    padding: 12px;
  }
}


.video-feature-grid { margin-bottom:28px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.video-feature-grid button { min-height:112px; padding:17px; display:flex; align-items:flex-start; gap:13px; text-align:left; border:1px solid var(--border); border-radius:13px; color:inherit; background:rgba(30,41,59,.72); cursor:pointer; transition:.18s; }
.video-feature-grid button:not(:disabled):hover,.video-feature-grid button.active { transform:translateY(-2px); border-color:rgba(59,130,246,.48); background:rgba(37,99,235,.12); box-shadow:0 12px 28px rgba(2,6,23,.2); }
.video-feature-grid button:disabled { opacity:.68; cursor:default; }
.video-feature-grid svg { flex:none; color:#3b82f6; font-size:28px; }
.video-feature-grid span,.video-feature-grid strong,.video-feature-grid small { display:block; }
.video-feature-grid strong { color:#f8fafc; font-size:13px; }
.video-feature-grid small { margin-top:8px; color:#64748b; font-size:10px; line-height:1.45; }
.video-message { margin:18px 0; padding:13px 16px; display:flex; align-items:center; gap:10px; border:1px solid; border-radius:10px; font-size:12px; }
.video-message.success { color:#a7f3d0; border-color:rgba(16,185,129,.24); background:rgba(16,185,129,.08); }
.video-message.error { color:#fecdd3; border-color:rgba(244,63,94,.26); background:rgba(244,63,94,.08); }
.video-editor-workbench { scroll-margin-top:90px; }
.video-editor-heading { margin:0 0 14px; display:flex; align-items:end; justify-content:space-between; gap:18px; }
.video-editor-heading h2 { margin:0 0 6px; color:#fff; font-size:20px; }
.video-editor-heading p { margin:0; color:#64748b; font-size:11px; }
.video-editor-heading .secondary-action { margin:0; }
.video-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:rgba(15,23,42,.58); box-shadow:0 22px 62px rgba(2,6,23,.25); }
.video-preview-column { min-width:0; background:#070c15; }
.video-preview-stage { width:100%; min-height:420px; position:relative; display:grid; place-items:center; overflow:hidden; background:#02050a; }
.video-main-layer { position:absolute; inset:0; display:grid; place-items:center; transform-origin:center; transition:transform .08s linear,opacity .08s linear; }
.video-main-layer video { width:100%; height:100%; display:block; object-fit:cover; }
.video-pip-layer { position:absolute; z-index:3; aspect-ratio:16/9; object-fit:cover; border:3px solid rgba(255,255,255,.82); border-radius:8px; background:#000; box-shadow:0 10px 28px rgba(0,0,0,.45); }
.video-pip-layer.top-left { top:4%; left:4%; }.video-pip-layer.top-right { top:4%; right:4%; }.video-pip-layer.bottom-left { bottom:4%; left:4%; }.video-pip-layer.bottom-right { right:4%; bottom:4%; }
.video-subtitle-preview { position:absolute; z-index:4; left:9%; right:9%; bottom:7%; padding:4px 9px; text-align:center; font-weight:700; line-height:1.35; white-space:pre-line; text-shadow:0 2px 8px rgba(0,0,0,.9); }
.video-subtitle-preview.with-background { width:max-content; max-width:82%; left:50%; right:auto; transform:translateX(-50%); border-radius:5px; background:rgba(0,0,0,.62); }
.video-center-play { position:absolute; z-index:5; width:62px; height:62px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.18); border-radius:50%; color:#fff; background:rgba(37,99,235,.86); font-size:22px; cursor:pointer; box-shadow:0 12px 30px rgba(0,0,0,.35); backdrop-filter:blur(8px); }
.video-transport { min-height:58px; padding:9px 14px; display:grid; grid-template-columns:repeat(5,38px) auto minmax(120px,1fr) auto 38px; align-items:center; gap:8px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:#0d1524; }
.video-transport button { width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:8px; color:white; background:#2563eb; cursor:pointer; }
.video-transport span,.video-transport b { color:#94a3b8; font-size:9px; white-space:nowrap; }.video-transport b { text-align:right; color:#60a5fa; }
.video-transport input { width:100%; accent-color:#3b82f6; }
.video-timeline { padding:14px; background:#0b1220; }
.multi-track-toolbar { margin-bottom:12px; padding-bottom:12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid rgba(148,163,184,.1); }
.multi-track-toolbar > span,.multi-track-toolbar strong,.multi-track-toolbar small { display:block; min-width:0; }.multi-track-toolbar strong { color:#dbeafe; font-size:10px; }.multi-track-toolbar small { margin-top:4px; color:#526078; font-size:8px; }
.multi-track-toolbar > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }.multi-track-toolbar button,.multi-track-toolbar label { min-height:29px; padding:6px 8px; display:flex; align-items:center; gap:5px; border:1px solid rgba(96,165,250,.18); border-radius:7px; color:#93c5fd; background:rgba(59,130,246,.07); font-size:8px; cursor:pointer; }
.video-timeline-ruler { margin-bottom:8px; display:flex; justify-content:space-between; color:#526078; font-size:8px; }
.video-timeline-track { height:8px; position:relative; overflow:hidden; border-radius:99px; background:#1e293b; }
.video-timeline-track.scrubbable { height:14px; cursor:pointer; touch-action:none; }
.video-timeline-track.scrubbable:hover b { box-shadow:0 0 12px #f43f5e; }
.video-timeline-track i { position:absolute; inset:0; border-radius:inherit; background:linear-gradient(90deg,#2563eb,#7c3aed); }
.video-timeline-track b { position:absolute; top:-3px; bottom:-3px; width:2px; transform:translateX(-1px); background:#f43f5e; box-shadow:0 0 7px #f43f5e; }
.video-track-list { min-height:36px; margin-top:6px; display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:7px; }
.video-track-list > span { color:#64748b; font-size:8px; }
.video-track-list > div { height:29px; position:relative; overflow:hidden; border-radius:5px; background:rgba(255,255,255,.025); }
.video-track-list em { height:100%; position:absolute; inset:0; padding:0 8px; display:flex; align-items:center; overflow:hidden; border-radius:5px; color:#dbeafe; background:#2563eb; font-size:8px; font-style:normal; white-space:nowrap; text-overflow:ellipsis; }
.multi-video-track > div { overflow:visible; }.multi-video-track > div > button { height:100%; position:absolute; top:0; padding:0 8px; display:flex; align-items:center; overflow:hidden; border:1px solid transparent; border-radius:5px; color:#dbeafe; background:linear-gradient(135deg,#1d4ed8,#4f46e5); font-size:8px; cursor:pointer; }.multi-video-track > div > button.selected { z-index:2; border-color:#93c5fd; box-shadow:0 0 0 2px rgba(59,130,246,.18); }.multi-video-track > div > button > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.multi-video-track > div > button > i { width:7px; height:7px; position:absolute; bottom:2px; transform:translateX(-50%) rotate(45deg); border:1px solid #fff; border-radius:1px; background:#f59e0b; box-shadow:0 0 6px rgba(245,158,11,.7); }
.video-track-list.pip-track em { background:#7c3aed; }.video-track-list.video-overlay-track em { background:#b45309; cursor:grab; touch-action:none; user-select:none; }.video-track-list.video-overlay-track em:active { cursor:grabbing; }.video-track-list.audio-track em { background:#0f766e; cursor:grab; touch-action:none; user-select:none; }
.video-track-list.audio-track em:active { cursor:grabbing; }.video-track-list.subtitle-track em { min-width:3px; color:#e2e8f0; background:#475569; border-right:1px solid #64748b; }
.video-track-list > .track-control-header { display:flex; align-items:center; justify-content:space-between; gap:2px; }
.track-control-header b { color:#64748b; font-size:8px; font-weight:600; white-space:nowrap; }
.track-control-header i { display:flex; gap:2px; font-style:normal; }
.track-control-header button { width:18px; height:18px; padding:0; display:grid; place-items:center; border:1px solid rgba(148,163,184,.13); border-radius:4px; color:#64748b; background:rgba(255,255,255,.025); cursor:pointer; }
.track-control-header button:hover { color:#dbeafe; border-color:rgba(96,165,250,.38); }
.video-track-list.track-locked em { cursor:not-allowed; filter:saturate(.58); }
.video-track-list.track-hidden em { opacity:.46; background:#475569; text-decoration:line-through; }
.timeline-selection-bar { margin-top:10px; padding:9px 10px; display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid rgba(96,165,250,.13); border-radius:8px; background:rgba(59,130,246,.045); }.timeline-selection-bar > span { min-width:0; overflow:hidden; color:#64748b; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.timeline-selection-bar strong { color:#93c5fd; }.timeline-selection-bar > div { display:flex; flex:none; gap:5px; }.timeline-selection-bar button { padding:5px 7px; display:flex; align-items:center; gap:4px; border:1px solid var(--border); border-radius:6px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:8px; cursor:pointer; }.timeline-selection-bar button:disabled { opacity:.35; cursor:default; }.timeline-selection-bar button.danger { color:#fda4af; border-color:rgba(244,63,94,.18); }
.video-control-panel { min-width:0; max-height:810px; overflow:auto; border-left:1px solid var(--border); background:#111b2d; }
.video-control-panel > header { min-height:65px; padding:13px 17px; display:flex; flex-direction:column; justify-content:center; border-bottom:1px solid var(--border); background:rgba(15,23,42,.72); }
.video-control-panel > header span { color:#f8fafc; font-size:14px; font-weight:750; }.video-control-panel > header small { margin-top:5px; color:#64748b; font-size:8px; }
.video-control-panel > section { padding:18px; }
.video-control-panel h3 { margin:0 0 18px; display:flex; align-items:center; gap:8px; color:#e2e8f0; font-size:13px; }.video-control-panel h3 svg { color:#60a5fa; }
.video-control-panel h4 { margin:20px 0 10px; color:#94a3b8; font-size:10px; }
.video-number-field,.video-select-field { margin-top:12px; display:block; color:#94a3b8; font-size:9px; }
.video-number-field span,.video-select-field span { display:block; margin-bottom:6px; }
.video-number-field input,.video-select-field select,.subtitle-style-row input,.video-subtitle-list input,.video-subtitle-list textarea { width:100%; padding:9px 10px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0b1322; font-size:10px; }
.video-number-field input:focus,.video-select-field select:focus,.video-subtitle-list textarea:focus { border-color:#3b82f6; }
.ffmpeg-engine-card { margin-top:12px; padding:11px; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; border:1px solid rgba(96,165,250,.18); border-radius:9px; background:rgba(59,130,246,.065); }
.ffmpeg-engine-card > svg { color:#60a5fa; font-size:22px; }.ffmpeg-engine-card span,.ffmpeg-engine-card strong,.ffmpeg-engine-card small { display:block; min-width:0; }.ffmpeg-engine-card strong { color:#dbeafe; font-size:10px; }.ffmpeg-engine-card small { margin-top:4px; color:#64748b; font-size:8px; line-height:1.45; }.ffmpeg-engine-card > button { min-width:56px; padding:7px 8px; border:1px solid rgba(96,165,250,.25); border-radius:7px; color:#93c5fd; background:rgba(59,130,246,.1); font-size:8px; cursor:pointer; }.ffmpeg-engine-card > button:disabled { opacity:.7; cursor:default; }
.ffmpeg-engine-card.ready { border-color:rgba(16,185,129,.24); background:rgba(16,185,129,.065); }.ffmpeg-engine-card.ready > svg,.ffmpeg-engine-card.ready strong { color:#6ee7b7; }.ffmpeg-engine-card.error { border-color:rgba(244,63,94,.24); background:rgba(244,63,94,.06); }.ffmpeg-engine-card.error > svg,.ffmpeg-engine-card.error strong { color:#fda4af; }
.server-render-card { margin:12px 0; padding:12px; border:1px solid rgba(129,140,248,.2); border-radius:10px; background:linear-gradient(145deg,rgba(99,102,241,.08),rgba(15,23,42,.35)); }.server-render-card.succeeded { border-color:rgba(16,185,129,.25); }.server-render-card.failed { border-color:rgba(244,63,94,.25); }.server-render-heading { display:flex; align-items:flex-start; gap:9px; }.server-render-heading > svg { flex:none; margin-top:1px; color:#a5b4fc; font-size:20px; }.server-render-heading span,.server-render-heading strong,.server-render-heading small { display:block; min-width:0; }.server-render-heading strong { color:#e0e7ff; font-size:10px; }.server-render-heading small { margin-top:4px; color:#94a3b8; font-size:8px; line-height:1.55; }.server-render-issues { margin-top:10px; padding:9px 10px; border-radius:8px; color:#fbbf24; background:rgba(245,158,11,.075); font-size:8px; }.server-render-issues b { display:block; margin-bottom:4px; }.server-render-issues ul { margin:0; padding-left:16px; line-height:1.55; }.server-render-issues small { color:#94a3b8; }.server-render-status { margin-top:10px; display:flex; justify-content:space-between; color:#c7d2fe; font-size:9px; }.server-render-actions { display:flex; align-items:center; gap:8px; margin-top:10px; }.server-render-actions .wide-primary { flex:1; min-height:34px; margin:0; }.server-render-actions .secondary-action { min-height:34px; margin:0; padding:0 11px; }.server-render-card .workflow-progress { margin-top:7px; }.server-render-card .video-message { margin:9px 0 0; font-size:8px; }.server-render-card .video-control-note { margin-bottom:0; }
.video-setting-slider { margin-top:15px; display:block; }
.video-setting-slider > span { margin-bottom:7px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.video-setting-slider b { color:#94a3b8; font-size:9px; font-weight:500; }.video-setting-slider output { color:#cbd5e1; font-size:9px; }.video-setting-slider input { width:100%; accent-color:#3b82f6; }
.video-control-actions { margin-top:13px; display:grid; grid-template-columns:1fr 1fr; gap:7px; }.video-control-actions.three { grid-template-columns:repeat(3,1fr); }
.video-control-actions button,.video-control-actions label,.video-reset-button { min-height:36px; padding:8px; display:flex; align-items:center; justify-content:center; gap:5px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.035); font-size:9px; cursor:pointer; text-align:center; }
.video-control-actions button:hover,.video-control-actions label:hover,.video-reset-button:hover { color:#dbeafe; border-color:rgba(96,165,250,.4); background:rgba(59,130,246,.1); }
.video-control-note { margin:13px 0 0; padding:10px; border-radius:8px; color:#64748b; background:rgba(255,255,255,.025); font-size:9px; line-height:1.6; }
.video-asset-control { padding:11px; border:1px solid var(--border); border-radius:10px; background:rgba(15,23,42,.55); }
.video-asset-control > p { margin:0 0 10px; color:#64748b; font-size:9px; }.video-asset-control > div:last-child { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.video-asset-control > div:last-child label,.video-asset-control > div:last-child button { padding:8px; display:flex; align-items:center; justify-content:center; gap:5px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.035); font-size:9px; cursor:pointer; }
.video-asset-selected { margin-bottom:9px; display:flex; align-items:center; justify-content:space-between; gap:8px; }.video-asset-selected span { min-width:0; }.video-asset-selected strong,.video-asset-selected small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.video-asset-selected strong { color:#e2e8f0; font-size:10px; }.video-asset-selected small { margin-top:4px; color:#64748b; font-size:8px; }.video-asset-selected > button { width:28px; height:28px; display:grid; place-items:center; flex:none; border:0; border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.04); cursor:pointer; }
.video-choice-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }.video-choice-grid button { min-height:35px; padding:7px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:9px; cursor:pointer; }.video-choice-grid button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.15); }
.keyframe-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.keyframe-columns > div { padding:10px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.4); }.keyframe-columns h4 { margin:0 0 10px; color:#93c5fd; }
.keyframe-list { max-height:190px; margin-top:12px; display:grid; gap:6px; overflow:auto; }.keyframe-list > p { margin:0; padding:12px; color:#64748b; border:1px dashed var(--border); border-radius:8px; font-size:9px; line-height:1.5; }.keyframe-list > button { min-height:42px; padding:7px 9px; display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.025); text-align:left; cursor:pointer; }.keyframe-list > button.active { color:#dbeafe; border-color:rgba(245,158,11,.4); background:rgba(245,158,11,.08); }.keyframe-list > button > i { width:10px; height:10px; flex:none; transform:rotate(45deg); border:1px solid #fcd34d; border-radius:2px; background:#d97706; }.keyframe-list span,.keyframe-list strong,.keyframe-list small { display:block; }.keyframe-list strong { font-size:9px; }.keyframe-list small { margin-top:3px; color:#64748b; font-size:8px; }
.keyframe-editor { margin-top:12px; padding:11px; border:1px solid rgba(245,158,11,.18); border-radius:10px; background:rgba(15,23,42,.42); }.keyframe-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }.keyframe-editor-heading span,.keyframe-editor-heading strong,.keyframe-editor-heading small { display:block; }.keyframe-editor-heading strong { color:#fde68a; font-size:10px; }.keyframe-editor-heading small { margin-top:3px; color:#64748b; font-size:8px; }.keyframe-editor-heading button { width:29px; height:29px; display:grid; place-items:center; border:0; border-radius:7px; color:#fda4af; background:rgba(244,63,94,.08); cursor:pointer; }
.multi-audio-editor { margin-top:10px; display:grid; gap:8px; }.multi-audio-editor article { padding:10px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.45); }.multi-audio-editor article > header { display:flex; align-items:center; justify-content:space-between; gap:8px; }.multi-audio-editor header span,.multi-audio-editor header strong,.multi-audio-editor header small { display:block; min-width:0; }.multi-audio-editor header strong { color:#99f6e4; font-size:9px; }.multi-audio-editor header small { max-width:230px; margin-top:3px; overflow:hidden; color:#64748b; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.multi-audio-editor header button { width:28px; height:28px; display:grid; place-items:center; border:0; border-radius:7px; color:#fda4af; background:rgba(244,63,94,.08); cursor:pointer; }.audio-trim-fields { margin-top:9px; display:grid; grid-template-columns:1fr 1fr; gap:7px; }.audio-trim-fields label { color:#64748b; font-size:8px; }.audio-trim-fields input { width:100%; margin-top:4px; padding:8px; border:1px solid var(--border); border-radius:7px; color:#e2e8f0; background:#0b1322; font-size:9px; }.multi-audio-editor .video-checkbox { margin-top:9px; color:#94a3b8; font-size:8px; }
.video-reset-button { width:100%; margin-top:12px; }
.subtitle-style-row { display:grid; grid-template-columns:1fr 72px 70px; align-items:end; gap:7px; margin-top:14px; }.subtitle-style-row label { color:#94a3b8; font-size:8px; }.subtitle-style-row input { margin-top:5px; height:34px; }.subtitle-style-row input[type=color] { padding:3px; }.video-checkbox { height:34px; padding:0 8px; display:flex; align-items:center; gap:5px; border:1px solid var(--border); border-radius:8px; background:#0b1322; }.video-checkbox input { width:auto; height:auto; margin:0; accent-color:#3b82f6; }
.subtitle-assistant { margin-top:14px; padding:12px; border:1px solid rgba(96,165,250,.18); border-radius:11px; background:rgba(15,23,42,.54); }.subtitle-assistant h4 { margin:0 0 10px; color:#bfdbfe; }.subtitle-draft-input { width:100%; min-height:112px; padding:10px; resize:vertical; border:1px solid var(--border); border-radius:9px; outline:0; color:#e2e8f0; background:#0b1322; font-size:10px; line-height:1.7; }.subtitle-draft-input:focus { border-color:#3b82f6; }.subtitle-draft-mode { margin-top:9px; display:grid; grid-template-columns:1fr 1fr 86px; gap:7px; }.subtitle-draft-mode button { min-height:33px; padding:7px; display:flex; align-items:center; justify-content:center; gap:5px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:8px; cursor:pointer; }.subtitle-draft-mode button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.15); }.subtitle-draft-mode button:disabled { opacity:.4; cursor:not-allowed; }.subtitle-draft-actions { margin-top:9px; display:grid; grid-template-columns:1fr 92px; gap:7px; }.subtitle-draft-actions .primary-action,.subtitle-draft-actions .secondary-action { width:100%; min-height:36px; margin:0; padding:8px; font-size:9px; }
.video-transcription-card { margin-top:12px; padding:11px; border:1px solid rgba(16,185,129,.16); border-radius:10px; background:rgba(16,185,129,.045); }.video-transcription-card strong,.video-transcription-card small { display:block; }.video-transcription-card strong { color:#a7f3d0; font-size:10px; }.video-transcription-card small { margin-top:4px; color:#64748b; font-size:8px; line-height:1.45; }.video-transcription-prompt { margin-top:10px; display:block; color:#94a3b8; font-size:8px; }.video-transcription-prompt span { display:block; margin-bottom:5px; }.video-transcription-prompt input { width:100%; min-height:34px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0b1322; font-size:9px; }.video-transcription-prompt input:focus { border-color:#3b82f6; }.video-transcription-card .wide-primary { width:100%; min-height:36px; margin:9px 0 0; padding:8px; font-size:9px; }.video-transcription-card .wide-primary:disabled { opacity:.55; cursor:not-allowed; }
.subtitle-cut-list { margin-top:10px; display:grid; gap:7px; }.subtitle-cut-list > p { margin:0; padding:10px; border:1px dashed rgba(148,163,184,.16); border-radius:8px; color:#64748b; font-size:9px; line-height:1.6; }.subtitle-cut-list article { padding:10px; border:1px solid rgba(148,163,184,.12); border-radius:9px; background:rgba(2,6,23,.24); }.subtitle-cut-list article > div { display:flex; align-items:start; justify-content:space-between; gap:8px; }.subtitle-cut-list strong,.subtitle-cut-list small { display:block; }.subtitle-cut-list strong { max-width:170px; overflow:hidden; color:#e2e8f0; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.subtitle-cut-list small { margin-top:4px; color:#64748b; font-size:8px; white-space:nowrap; }.subtitle-cut-list p { margin:8px 0 0; color:#64748b; font-size:8px; line-height:1.5; }.subtitle-cut-list button { width:100%; min-height:31px; margin-top:9px; border:1px solid rgba(96,165,250,.25); border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.08); font-size:8px; cursor:pointer; }
.video-subtitle-list { max-height:390px; margin-top:13px; overflow:auto; }.video-subtitle-list > p { color:#64748b; font-size:9px; }.video-subtitle-list article { margin-bottom:9px; padding:9px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.5); }.video-subtitle-list textarea { min-height:58px; resize:vertical; }.video-subtitle-list article > div { margin-top:7px; display:grid; grid-template-columns:1fr 1fr 30px; align-items:end; gap:6px; }.video-subtitle-list label { color:#64748b; font-size:8px; }.video-subtitle-list label input { margin-top:4px; }.video-subtitle-list article button { width:30px; height:31px; display:grid; place-items:center; border:0; border-radius:7px; color:#fda4af; background:rgba(244,63,94,.08); cursor:pointer; }
.video-export-bar { position:relative; margin-top:14px; padding:15px 17px; display:flex; align-items:center; justify-content:space-between; gap:16px; overflow:hidden; border:1px solid var(--border); border-radius:13px; background:rgba(30,41,59,.68); }.video-export-bar > div { display:flex; align-items:center; gap:11px; }.video-export-bar > div > svg { color:#60a5fa; font-size:24px; }.video-export-bar strong,.video-export-bar small { display:block; }.video-export-bar strong { color:#e2e8f0; font-size:12px; }.video-export-bar small { margin-top:4px; color:#64748b; font-size:9px; }.video-export-bar .primary-action { margin:0; flex:none; }.video-export-bar > i { position:absolute; inset:auto 0 0; height:3px; background:linear-gradient(90deg,#3b82f6,#8b5cf6); transition:width .18s; }
.video-capability-note { margin-top:10px; padding:12px 14px; display:flex; align-items:flex-start; gap:9px; border:1px solid rgba(16,185,129,.16); border-radius:10px; color:#8291a8; background:rgba(16,185,129,.045); font-size:9px; line-height:1.65; }.video-capability-note svg { margin-top:2px; flex:none; color:#34d399; }.video-capability-note strong { color:#a7f3d0; }
.video-save-dialog { width:min(760px,100%); max-height:calc(100vh - 40px); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border); border-radius:16px; background:#111c31; box-shadow:0 25px 85px rgba(0,0,0,.54); }.video-save-dialog > header { min-height:72px; padding:15px 20px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--border); }.video-save-dialog > header > div { display:flex; align-items:center; gap:12px; }.video-save-dialog > header svg { color:#34d399; font-size:25px; }.video-save-dialog h2 { margin:0; color:#fff; font-size:18px; }.video-save-dialog header p { margin:4px 0 0; color:#64748b; font-size:10px; }.video-save-dialog > header > button { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--border); border-radius:9px; background:rgba(255,255,255,.04); color:#94a3b8; cursor:pointer; }.video-save-dialog > video { width:100%; max-height:430px; background:#02050a; }.video-result-summary { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--border); }.video-result-summary span,.video-result-summary b,.video-result-summary small { display:block; min-width:0; }.video-result-summary b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e2e8f0; font-size:11px; }.video-result-summary small { margin-top:5px; color:#64748b; font-size:9px; }.video-result-summary em { padding:5px 8px; border-radius:6px; color:#93c5fd; background:rgba(59,130,246,.12); font-size:9px; font-style:normal; }.video-save-dialog > footer { min-height:72px; padding:13px 18px; display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--border); }.video-save-dialog > footer > div { display:flex; gap:8px; }.video-save-dialog .primary-action,.video-save-dialog .secondary-action { margin:0; }

@media (max-width:1100px) { .video-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.video-editor-layout { grid-template-columns:minmax(0,1fr) 320px; } }
@media (max-width:880px) { .video-editor-layout { display:block; }.video-control-panel { max-height:none; border-top:1px solid var(--border); border-left:0; }.video-preview-stage { min-height:360px; } }
@media (max-width:620px) {
  .video-feature-grid { grid-template-columns:1fr 1fr; gap:8px; }.video-feature-grid button { min-height:98px; padding:13px; }.video-feature-grid svg { font-size:23px; }
  .video-editor-heading,.video-export-bar,.video-save-dialog > footer { align-items:stretch; flex-direction:column; }.video-editor-heading .secondary-action,.video-export-bar .primary-action { width:100%; }
  .video-preview-stage { min-height:260px; }.video-transport { grid-template-columns:36px 1fr 36px; }.video-transport span { display:none; }
  .multi-track-toolbar,.timeline-selection-bar { align-items:stretch; flex-direction:column; }.multi-track-toolbar > div,.timeline-selection-bar > div { justify-content:flex-start; }.video-track-list { grid-template-columns:48px minmax(0,1fr); }.keyframe-columns { grid-template-columns:1fr; }.video-control-actions.three { grid-template-columns:1fr; }
  .video-save-dialog > footer > div { display:grid; grid-template-columns:1fr 1fr; }.video-save-dialog > video { max-height:300px; }
}
@media (max-width:420px) { .video-feature-grid { grid-template-columns:1fr; }.video-feature-grid button { min-height:82px; }.video-choice-grid,.video-control-actions,.video-save-dialog > footer > div,.subtitle-draft-mode,.subtitle-draft-actions { grid-template-columns:1fr; }.subtitle-style-row { grid-template-columns:1fr 1fr; }.video-checkbox { grid-column:1/-1; } }
.writing-template-picker { margin:12px 0 16px; padding:12px; display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,1.2fr) auto auto; align-items:center; gap:10px; border:1px solid rgba(96,165,250,.18); border-radius:10px; background:rgba(30,64,175,.08); }
.writing-template-picker strong,.writing-template-picker small { display:block; }
.writing-template-picker strong { color:#dbeafe; font-size:11px; }
.writing-template-picker small { margin-top:4px; color:#71819a; font-size:9px; line-height:1.45; }
.writing-template-picker select { min-width:0; min-height:36px; padding:8px 10px; border:1px solid rgba(148,163,184,.2); border-radius:8px; color:#e2e8f0; background:#0f172a; font-size:10px; }
.writing-template-picker .secondary-action { min-height:36px; margin:0; padding:8px 11px; font-size:10px; white-space:nowrap; }
@media (max-width:760px) { .writing-template-picker { grid-template-columns:1fr; } .writing-template-picker .secondary-action { width:100%; } }

/* AI writing layout refinements: keep headings, controls and long notices aligned at every width. */
.protected-page .writing-capability-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; }
.protected-page .writing-capability-tabs > button { min-width:0; text-align:left; }
.protected-page .writing-capability-tabs > button > span { min-width:0; }
.protected-page .writing-capability-tabs strong,.protected-page .writing-capability-tabs small { overflow-wrap:anywhere; }
.protected-page .writing-capability-tabs > button.unavailable { border-color:rgba(245,158,11,.25); background:linear-gradient(145deg,rgba(120,53,15,.15),rgba(30,41,59,.75)); }
.protected-page .writing-capability-tabs > button.unavailable:hover { border-color:rgba(245,158,11,.48); transform:translateY(-1px); }
.ai-capability-availability { display:block; margin-top:7px; color:#fbbf24; font-size:9px; font-style:normal; font-weight:800; letter-spacing:.02em; }
.protected-page .writing-mode-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.protected-page .writing-mode-tabs button { min-width:0; padding:10px 12px; }
.protected-page .real-writing-layout { grid-template-columns:minmax(0,1fr) minmax(270px,.34fr); gap:18px; }
.protected-page .real-writing-layout > section { padding:26px; border-color:rgba(148,163,184,.16); background:linear-gradient(145deg,rgba(30,41,59,.78),rgba(15,23,42,.7)); box-shadow:0 18px 42px rgba(2,6,23,.16); }
.protected-page .section-row { min-width:0; }
.protected-page .section-row h2 { line-height:1.3; }
.protected-page .section-row > span { flex:none; white-space:nowrap; }
.protected-page .writing-template-picker { grid-template-columns:minmax(170px,.8fr) minmax(220px,1fr) auto auto; align-items:center; padding:13px; background:linear-gradient(110deg,rgba(37,99,235,.14),rgba(30,41,59,.52)); }
.protected-page .writing-template-picker > div { min-width:0; }
.protected-page .writing-template-picker strong,.protected-page .writing-template-picker small { display:block; overflow-wrap:anywhere; }
.protected-page .writing-template-picker strong { color:#e0ecff; font-size:12px; line-height:1.35; }
.protected-page .writing-template-picker small { margin-top:5px; color:#8ca0bc; font-size:10px; line-height:1.45; }
.protected-page .writing-template-picker select { min-width:0; width:100%; min-height:40px; font-size:11px; }
.protected-page .writing-template-picker .secondary-action { min-height:40px; padding:9px 13px; font-size:11px; }
.protected-page .writing-import-bar { min-width:0; }
.protected-page .writing-import-bar > div:first-child { min-width:0; }
.protected-page .writing-import-bar > div:first-child > span { min-width:0; }
.protected-page .writing-import-bar strong,.protected-page .writing-import-bar small { overflow-wrap:anywhere; }
.protected-page .writing-input { min-height:290px; resize:vertical; line-height:1.75; }
.protected-page .writing-tips { border-color:rgba(96,165,250,.16); background:rgba(15,23,42,.5); }
.protected-page .practice-panel { position:sticky; top:92px; }
.writing-batch-card { overflow:hidden; padding:0; border-color:rgba(96,165,250,.2); background:linear-gradient(145deg,rgba(30,41,59,.92),rgba(8,15,29,.96)); }
.writing-batch-card .writing-batch-head { margin:0; padding:22px 24px; border-bottom:1px solid rgba(148,163,184,.13); background:linear-gradient(115deg,rgba(37,99,235,.16),rgba(15,23,42,.25)); }
.writing-batch-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:18px; padding:22px 24px; }
.writing-batch-compose { display:grid; gap:14px; min-width:0; }
.writing-batch-field { display:block; min-width:0; }
.writing-batch-field > span { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:8px; }
.writing-batch-field strong,.writing-batch-field small { display:block; }
.writing-batch-field strong { color:#e2e8f0; font-size:12px; }
.writing-batch-field small { color:#71819a; font-size:9px; }
.writing-batch-field input,.writing-batch-field textarea { box-sizing:border-box; width:100%; padding:12px 13px; border:1px solid rgba(148,163,184,.22); border-radius:10px; outline:0; color:#e2e8f0; background:#0a1425; box-shadow:inset 0 1px 0 rgba(255,255,255,.025); transition:border-color .18s,box-shadow .18s; }
.writing-batch-field input { min-height:44px; }
.writing-batch-field textarea { min-height:220px; resize:vertical; line-height:1.7; }
.writing-batch-field input::placeholder,.writing-batch-field textarea::placeholder { color:#53637b; }
.writing-batch-field input:focus,.writing-batch-field textarea:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.writing-batch-submit { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px; border:1px solid rgba(59,130,246,.17); border-radius:11px; background:rgba(30,64,175,.09); }
.writing-batch-submit > div { min-width:0; }
.writing-batch-submit strong,.writing-batch-submit small { display:block; }
.writing-batch-submit strong { color:#bfdbfe; font-size:12px; }
.writing-batch-submit small { margin-top:5px; color:#8292aa; font-size:9px; line-height:1.55; }
.writing-batch-submit .wide-primary { width:auto; min-width:168px; margin:0; flex:none; }
.writing-batch-guide { align-self:start; padding:17px; border:1px solid rgba(52,211,153,.16); border-radius:12px; background:linear-gradient(145deg,rgba(6,78,59,.13),rgba(15,23,42,.62)); }
.writing-batch-guide > strong { color:#a7f3d0; font-size:12px; }
.writing-batch-guide ol { display:grid; gap:13px; margin:15px 0 0; padding:0; list-style:none; }
.writing-batch-guide li { display:flex; align-items:flex-start; gap:10px; color:#94a3b8; font-size:10px; line-height:1.6; }
.writing-batch-guide li b { width:22px; height:22px; display:grid; place-items:center; flex:none; border-radius:7px; color:#6ee7b7; background:rgba(16,185,129,.12); font-size:9px; }
.writing-batch-history { padding:20px 24px 24px; border-top:1px solid rgba(148,163,184,.13); background:rgba(2,6,23,.2); }
.writing-batch-history .result-heading { margin:0 0 14px; }
.writing-batch-history .result-heading > div h2 { margin:0; }
.writing-batch-history .result-heading > div small { display:block; margin-top:5px; color:#71819a; font-size:9px; }
.writing-batch-empty { min-height:150px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px dashed rgba(148,163,184,.18); border-radius:11px; color:#64748b; background:rgba(15,23,42,.32); text-align:center; }
.writing-batch-empty svg { margin-bottom:10px; color:#60a5fa; font-size:25px; }
.writing-batch-empty strong { color:#cbd5e1; font-size:12px; }
.writing-batch-empty small { margin-top:6px; font-size:9px; }

@media (max-width:1080px) {
  .protected-page .writing-capability-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .protected-page .writing-mode-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .protected-page .real-writing-layout { grid-template-columns:1fr; }
  .protected-page .practice-panel { position:static; }
  .writing-batch-layout { grid-template-columns:1fr; }
}
@media (max-width:760px) {
  .protected-page .writing-capability-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .protected-page .writing-mode-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .protected-page .writing-template-picker { grid-template-columns:1fr; align-items:stretch; }
  .protected-page .writing-template-picker .secondary-action { width:100%; }
  .protected-page .real-writing-layout > section { padding:20px; }
  .writing-batch-submit { align-items:stretch; flex-direction:column; }
  .writing-batch-submit .wide-primary { width:100%; }
}
@media (max-width:460px) {
  .protected-page .writing-capability-tabs,.protected-page .writing-mode-tabs { grid-template-columns:1fr; }
  .protected-page .writing-input { min-height:230px; }
  .writing-batch-card .writing-batch-head,.writing-batch-layout,.writing-batch-history { padding-left:16px; padding-right:16px; }
}

.realtime-voice-workbench { overflow:hidden; border:1px solid rgba(96,165,250,.2); border-radius:16px; background:linear-gradient(145deg,rgba(20,31,51,.96),rgba(7,13,25,.98)); box-shadow:0 22px 64px rgba(2,6,23,.25); }
.realtime-voice-heading { min-height:86px; padding:20px 24px; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:14px; border-bottom:1px solid rgba(148,163,184,.13); background:linear-gradient(110deg,rgba(37,99,235,.17),rgba(15,23,42,.18)); }
.realtime-voice-heading > span { width:44px; height:44px; display:grid; place-items:center; border:1px solid rgba(96,165,250,.25); border-radius:13px; color:#93c5fd; background:rgba(59,130,246,.12); font-size:22px; }
.realtime-voice-heading h2,.realtime-voice-heading p { margin:0; }
.realtime-voice-heading h2 { color:#f8fafc; font-size:17px; }
.realtime-voice-heading p { margin-top:5px; color:#8393aa; font-size:10px; line-height:1.55; }
.realtime-state { padding:7px 10px; border:1px solid rgba(148,163,184,.2); border-radius:999px; color:#94a3b8; background:rgba(15,23,42,.62); font-size:9px; font-style:normal; font-weight:800; white-space:nowrap; }
.realtime-state.connected { color:#6ee7b7; border-color:rgba(52,211,153,.28); background:rgba(16,185,129,.1); }
.realtime-state.requesting-mic,.realtime-state.negotiating,.realtime-state.recovering { color:#fde68a; border-color:rgba(245,158,11,.25); background:rgba(245,158,11,.08); }
.realtime-state.error { color:#fda4af; border-color:rgba(244,63,94,.25); background:rgba(244,63,94,.08); }
.realtime-voice-grid { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr); }
.realtime-session-panel { min-height:340px; padding:30px 24px 24px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-right:1px solid rgba(148,163,184,.13); text-align:center; }
.realtime-session-panel > strong { margin-top:17px; color:#e2e8f0; font-size:15px; }
.realtime-session-panel > small { margin-top:7px; color:#71819a; font-size:10px; line-height:1.55; }
.realtime-session-panel audio { display:none; }
.realtime-orb { width:112px; height:112px; position:relative; display:grid; place-items:center; border:1px solid rgba(96,165,250,.24); border-radius:50%; color:#bfdbfe; background:radial-gradient(circle at 35% 30%,rgba(96,165,250,.3),rgba(37,99,235,.09) 48%,rgba(15,23,42,.3) 72%); box-shadow:0 0 0 12px rgba(37,99,235,.035),0 18px 52px rgba(37,99,235,.18); }
.realtime-orb svg { position:relative; z-index:2; font-size:36px; }
.realtime-orb i { position:absolute; inset:10px; border:1px solid rgba(147,197,253,.18); border-radius:50%; }
.realtime-orb i.active { animation:realtime-pulse 1.8s ease-out infinite; }
@keyframes realtime-pulse { 0% { transform:scale(.86);opacity:.9; } 75%,100% { transform:scale(1.28);opacity:0; } }
.realtime-session-metrics { width:100%; margin-top:19px; display:flex; flex-wrap:wrap; justify-content:center; gap:7px; }
.realtime-session-metrics span { min-height:29px; padding:6px 9px; display:flex; align-items:center; gap:5px; border:1px solid rgba(148,163,184,.13); border-radius:8px; color:#8292aa; background:rgba(15,23,42,.52); font-size:9px; }
.realtime-session-metrics svg { color:#60a5fa; }
.realtime-call-actions { width:100%; margin-top:18px; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.realtime-call-actions .primary-action,.realtime-call-actions .secondary-action,.realtime-call-actions .danger-action { min-height:38px; margin:0; padding:9px 13px; }
.realtime-call-actions button:disabled { opacity:.45; cursor:not-allowed; }
.realtime-call-actions .realtime-interrupt { color:#fde68a; border-color:rgba(245,158,11,.24); }
.realtime-error { width:100%; margin-top:14px; padding:10px 12px; display:flex; align-items:flex-start; gap:8px; border:1px solid rgba(244,63,94,.2); border-radius:9px; color:#fecdd3; background:rgba(244,63,94,.07); font-size:9px; line-height:1.55; text-align:left; }
.realtime-error svg { margin-top:2px; flex:none; }
.realtime-config-panel { padding:24px; background:rgba(8,15,29,.4); }
.realtime-config-panel > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.realtime-config-panel > header > div { display:flex; align-items:center; gap:9px; }
.realtime-config-panel > header svg { color:#60a5fa; font-size:19px; }
.realtime-config-panel strong,.realtime-config-panel small { display:block; }
.realtime-config-panel strong { color:#dbeafe; font-size:12px; }
.realtime-config-panel small { margin-top:3px; color:#64748b; font-size:9px; }
.realtime-config-panel .secondary-action { min-height:34px; margin:0; padding:7px 10px; font-size:9px; }
.realtime-config-panel > textarea { box-sizing:border-box; width:100%; min-height:192px; margin-top:15px; padding:13px; resize:vertical; border:1px solid rgba(148,163,184,.2); border-radius:10px; outline:0; color:#e2e8f0; background:#081222; font:inherit; font-size:10px; line-height:1.7; }
.realtime-config-panel > textarea:focus { border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.1); }
.realtime-config-panel > textarea:disabled { opacity:.65; cursor:not-allowed; }
.realtime-template-actions { margin-top:9px; display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.realtime-template-actions button { min-height:34px; padding:7px 9px; display:flex; align-items:center; justify-content:center; gap:5px; border:1px solid rgba(96,165,250,.18); border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.07); font-size:9px; cursor:pointer; }
.realtime-template-actions button:disabled { opacity:.45; cursor:not-allowed; }
.realtime-config-panel > p { margin:14px 0 0; padding:11px; border-radius:9px; color:#71819a; background:rgba(255,255,255,.025); font-size:9px; line-height:1.65; }
.realtime-transcript-panel { border-top:1px solid rgba(148,163,184,.13); background:rgba(2,6,23,.2); }
.realtime-transcript-panel > header { min-height:63px; padding:14px 24px; display:flex; align-items:center; justify-content:space-between; gap:14px; border-bottom:1px solid rgba(148,163,184,.1); }
.realtime-transcript-panel > header strong,.realtime-transcript-panel > header small { display:block; }
.realtime-transcript-panel > header strong { color:#e2e8f0; font-size:12px; }
.realtime-transcript-panel > header small { margin-top:4px; color:#64748b; font-size:9px; }
.realtime-transcript-panel > header button { padding:7px 9px; display:flex; align-items:center; gap:5px; border:1px solid rgba(148,163,184,.15); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:9px; cursor:pointer; }
.realtime-transcript-list { max-height:390px; min-height:180px; padding:19px 24px; display:flex; flex-direction:column; gap:10px; overflow:auto; }
.realtime-transcript-list article { max-width:82%; padding:10px 12px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:8px; border:1px solid rgba(148,163,184,.14); border-radius:11px; color:#cbd5e1; background:rgba(15,23,42,.58); }
.realtime-transcript-list article.user { align-self:flex-end; border-color:rgba(96,165,250,.2); background:rgba(37,99,235,.1); }
.realtime-transcript-list article.assistant { align-self:flex-start; border-color:rgba(52,211,153,.16); background:rgba(6,78,59,.1); }
.realtime-transcript-list article > span { width:24px; height:24px; display:grid; place-items:center; border-radius:7px; color:#bfdbfe; background:rgba(59,130,246,.14); font-size:8px; font-weight:800; }
.realtime-transcript-list article.assistant > span { color:#a7f3d0; background:rgba(16,185,129,.13); }
.realtime-transcript-list p { margin:2px 0 0; font-size:10px; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.realtime-transcript-list time,.realtime-transcript-list article > em { margin-top:4px; color:#5f7089; font-size:8px; font-style:normal; white-space:nowrap; }
.realtime-transcript-empty { min-height:140px; display:flex; align-items:center; justify-content:center; gap:8px; color:#5f7089; font-size:10px; }
.realtime-transcript-empty svg { color:#60a5fa; font-size:18px; }
.realtime-text-send { padding:13px 24px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; border-top:1px solid rgba(148,163,184,.1); }
.realtime-text-send input { min-width:0; min-height:40px; padding:9px 12px; border:1px solid rgba(148,163,184,.2); border-radius:9px; outline:0; color:#e2e8f0; background:#081222; font-size:10px; }
.realtime-text-send input:focus { border-color:#3b82f6; }
.realtime-text-send button { min-width:92px; padding:8px 12px; display:flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:9px; color:white; background:#2563eb; font-size:10px; cursor:pointer; }
.realtime-text-send button:disabled,.realtime-text-send input:disabled { opacity:.48; cursor:not-allowed; }
.realtime-transcript-panel > footer { min-height:42px; padding:9px 24px; display:flex; flex-wrap:wrap; align-items:center; gap:7px; border-top:1px solid rgba(148,163,184,.08); }
.realtime-transcript-panel > footer span { padding:4px 7px; border-radius:6px; color:#71819a; background:rgba(255,255,255,.025); font-size:8px; }
@media (max-width:900px) { .realtime-voice-grid { grid-template-columns:1fr; }.realtime-session-panel { border-right:0; border-bottom:1px solid rgba(148,163,184,.13); } }
@media (max-width:600px) { .realtime-voice-heading { grid-template-columns:40px minmax(0,1fr); padding:17px; }.realtime-voice-heading > span { width:40px;height:40px; }.realtime-state { grid-column:1/-1; justify-self:start; }.realtime-session-panel,.realtime-config-panel { padding:20px 16px; }.realtime-session-metrics { align-items:stretch; flex-direction:column; }.realtime-session-metrics span { justify-content:center; }.realtime-call-actions { display:grid; grid-template-columns:1fr; }.realtime-call-actions button { width:100%; }.realtime-transcript-panel > header,.realtime-transcript-list,.realtime-text-send,.realtime-transcript-panel > footer { padding-left:16px;padding-right:16px; }.realtime-transcript-panel > header { align-items:flex-start; flex-direction:column; }.realtime-transcript-list article { max-width:96%; }.realtime-text-send { grid-template-columns:1fr; }.realtime-text-send button { width:100%; } }

/* 滤镜预设网格样式 */
.filter-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.filter-preset-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-preset-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(30, 41, 59, 0.8);
  transform: translateY(-2px);
}

.filter-preset-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.filter-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.filter-preview-inner {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(251, 191, 36, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
}

.filter-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-info strong {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.filter-info small {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .filter-preset-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  
  .filter-info strong {
    font-size: 12px;
  }
  
  .filter-info small {
    font-size: 10px;
  }
}

/* ===== 阶段2：动态标题、贴纸、音频增强 ===== */
.title-preset-grid { margin-top:10px; display:grid; grid-template-columns:repeat(2,1fr); gap:7px; }
.title-preset-card { padding:9px 8px; display:flex; flex-direction:column; align-items:center; gap:3px; border:1px solid var(--border); border-radius:9px; color:#94a3b8; background:rgba(15,23,42,.5); cursor:pointer; text-align:center; transition:border-color .15s ease, background .15s ease; }
.title-preset-card:hover { border-color:rgba(96,165,250,.5); background:rgba(30,41,59,.6); color:#dbeafe; }
.title-preset-demo { min-height:26px; display:grid; place-items:center; font-size:14px; font-weight:800; letter-spacing:1px; text-shadow:0 2px 6px rgba(0,0,0,.6); }
.title-preset-card strong { color:#e2e8f0; font-size:9px; }
.title-preset-card small { color:#64748b; font-size:8px; line-height:1.4; }
.title-overlay-list { max-height:170px; margin-top:12px; display:grid; gap:6px; overflow:auto; }
.title-overlay-list > p { margin:0; padding:12px; color:#64748b; border:1px dashed var(--border); border-radius:8px; font-size:9px; line-height:1.5; }
.title-overlay-list > button { min-height:40px; padding:7px 9px; display:flex; align-items:center; gap:9px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.025); text-align:left; cursor:pointer; }
.title-overlay-list > button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.1); }
.title-overlay-list > button > i { width:10px; height:10px; flex:none; border:1px solid #93c5fd; border-radius:3px; background:rgba(59,130,246,.55); }
.title-overlay-list span,.title-overlay-list strong,.title-overlay-list small { display:block; min-width:0; }
.title-overlay-list strong { font-size:9px; }
.title-overlay-list small { margin-top:3px; overflow:hidden; color:#64748b; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.title-overlay-editor { margin-top:12px; padding:10px; border:1px solid rgba(96,165,250,.28); border-radius:9px; background:rgba(15,23,42,.55); display:grid; gap:9px; }
.video-enhance-row { margin-top:8px; display:grid; gap:7px; }
.video-enhance-row .video-checkbox { height:auto; min-height:34px; padding:7px 8px; line-height:1.5; font-size:8px; }
.sticker-pick-grid { margin-top:8px; display:grid; grid-template-columns:repeat(6,1fr); gap:6px; }
.sticker-pick-grid button { min-height:38px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.03); cursor:pointer; transition:border-color .15s ease; }
.sticker-pick-grid button:hover { border-color:rgba(250,204,21,.5); background:rgba(250,204,21,.08); }
.sticker-pick-grid span { font-size:17px; line-height:1; }
.sticker-pick-grid.shapes { grid-template-columns:repeat(4,1fr); }
.sticker-pick-grid.shapes button { min-height:48px; }
.sticker-pick-grid.shapes small { color:#94a3b8; font-size:8px; }
.sticker-shape-swatch { width:18px; height:18px; display:inline-block; }
.sticker-shape-circle { border-radius:50%; }
.sticker-shape-square { border-radius:3px; }
.sticker-shape-triangle { clip-path:polygon(50% 4%,98% 94%,2% 94%); }
.sticker-shape-star { clip-path:polygon(50% 0%,61% 38%,100% 38%,69% 61%,81% 100%,50% 75%,19% 100%,31% 61%,0% 38%,39% 38%); }
.sticker-shape-heart { clip-path:path('M9 16 C3 11 1 8 1 5.5 C1 3 3 1.5 5 1.5 C6.8 1.5 8.2 2.6 9 4.2 C9.8 2.6 11.2 1.5 13 1.5 C15 1.5 17 3 17 5.5 C17 8 15 11 9 16 Z'); }
.sticker-shape-arrow { clip-path:polygon(0% 38%,58% 38%,58% 16%,100% 50%,58% 84%,58% 62%,0% 62%); }
.sticker-shape-badge { clip-path:polygon(50% 0%,61% 19%,84% 14%,79% 38%,100% 50%,79% 62%,84% 86%,61% 81%,50% 100%,39% 81%,16% 86%,21% 62%,0% 50%,21% 38%,16% 14%,39% 19%); }
.video-title-preview { position:absolute; z-index:5; left:7%; right:7%; padding:4px 10px; text-align:center; font-weight:700; line-height:1.3; white-space:pre-line; text-shadow:0 2px 8px rgba(0,0,0,.85); pointer-events:none; }
.video-title-preview.top { top:7%; }
.video-title-preview.center { top:50%; transform:translateY(-50%); }
.video-title-preview.bottom { bottom:16%; }
.video-title-preview.with-background { width:max-content; max-width:86%; left:50%; right:auto; transform:translateX(-50%); border-radius:6px; background:rgba(0,0,0,.6); }
.video-title-preview.center.with-background { transform:translate(-50%,-50%); }
.title-glow-editor { margin-top:12px; padding:10px 12px; border:1px solid var(--video-border, rgba(148,163,184,.25)); border-radius:8px; display:flex; flex-direction:column; gap:8px; }
.title-glow-editor h4 { margin:0; font-size:13px; }
.title-glow-fields { display:flex; flex-direction:column; gap:8px; }
.curve-preset-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.curve-preset-grid button { display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:8px 10px; border:1px solid var(--video-border, rgba(148,163,184,.25)); border-radius:8px; background:transparent; cursor:pointer; text-align:left; }
.curve-preset-grid button:hover { border-color:rgba(148,163,184,.55); }
.curve-preset-grid button strong { font-size:12px; }
.curve-preset-grid button small { font-size:11px; opacity:.7; }
.video-title-preview.glow-on { text-shadow:0 0 12px var(--glow-color, #22d3ee), 0 0 24px var(--glow-color, #22d3ee), 0 2px 8px rgba(0,0,0,.85); }
.video-sticker-preview { position:absolute; z-index:5; pointer-events:none; aspect-ratio:1/1; container-type:inline-size; }
.video-sticker-preview .video-sticker-emoji { width:100%; height:100%; display:grid; place-items:center; font-size:72cqw; line-height:1; text-shadow:0 2px 6px rgba(0,0,0,.4); }
.video-sticker-preview .sticker-shape-swatch { width:100%; height:100%; }
@media (max-width:420px) { .title-preset-grid { grid-template-columns:1fr 1fr; }.sticker-pick-grid { grid-template-columns:repeat(4,1fr); }.sticker-pick-grid.shapes { grid-template-columns:repeat(3,1fr); } }
/* AI 剪辑建议（可选增强功能） */
.video-heading-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.video-history-actions { display:inline-flex; align-items:center; gap:8px; }
.video-history-actions .secondary-action { margin:0; padding:7px 14px; font-size:12px; min-height:32px; }
.video-history-actions .secondary-action:disabled { opacity:.5; cursor:not-allowed; }
.ai-suggest-toggle { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid rgba(99,102,241,.35); border-radius:10px; background:rgba(99,102,241,.08); color:var(--text-strong,#1f2430); font-size:.85rem; cursor:pointer; }
.ai-suggest-toggle input { accent-color:#6366f1; width:15px; height:15px; }
.ai-suggest-report { margin-top:14px; padding:14px; border:1px solid rgba(99,102,241,.25); border-radius:12px; background:rgba(99,102,241,.05); display:grid; gap:10px; font-size:.88rem; }
.ai-suggest-report-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.ai-suggest-report-head strong { font-size:.95rem; }
.ai-suggest-report-head small, .ai-suggest-block small { color:var(--text-muted,#6b7280); }
.ai-suggest-report > p { margin:0; line-height:1.6; }
.ai-suggest-trim-card { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:10px; background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.3); }
.ai-suggest-trim-card small { display:block; margin-top:2px; color:var(--text-muted,#6b7280); }
.ai-suggest-trim-card button { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:8px; border:1px solid rgba(16,185,129,.5); background:rgba(16,185,129,.15); color:inherit; cursor:pointer; font-size:.85rem; }
.ai-suggest-trim-card button:hover { background:rgba(16,185,129,.25); }
.ai-suggest-block { border-top:1px dashed rgba(99,102,241,.25); padding-top:10px; }
.ai-suggest-block h4 { margin:0 0 6px; font-size:.9rem; }
.ai-suggest-block p { margin:0; line-height:1.6; }
.ai-suggest-block ul { margin:0; padding-left:18px; display:grid; gap:4px; line-height:1.55; }
.ai-suggest-chips { display:flex; flex-wrap:wrap; gap:6px; }
.ai-suggest-chips span,.ai-suggest-chips button { padding:3px 10px; border-radius:999px; border:1px solid rgba(99,102,241,.35); background:rgba(99,102,241,.1); color:inherit; font-size:.8rem; }
.ai-suggest-chips button { cursor:pointer; }
.ai-suggest-chips button:hover { border-color:rgba(99,102,241,.7); background:rgba(99,102,241,.2); }
.ai-suggest-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ai-suggest-actions button { min-height:36px; display:flex; align-items:center; justify-content:center; gap:6px; border:1px solid rgba(99,102,241,.35); border-radius:8px; color:#c7d2fe; background:rgba(99,102,241,.1); cursor:pointer; }
.ai-suggest-actions button:hover:not(:disabled) { background:rgba(99,102,241,.2); }
.ai-suggest-actions button:disabled { opacity:.42; cursor:not-allowed; }
.ai-suggest-caveats { margin:0; padding:10px 0 0 18px; border-top:1px dashed rgba(148,163,184,.4); display:grid; gap:4px; color:var(--text-muted,#6b7280); font-size:.8rem; line-height:1.5; }

/* AI-051 beat detection panel */
.beat-report { margin-top:14px; padding:14px; border:1px solid rgba(16,185,129,.28); border-radius:12px; background:rgba(16,185,129,.05); display:grid; gap:10px; font-size:.88rem; }
.beat-report-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.beat-report-head strong { font-size:1rem; color:var(--text-strong,#1f2430); }
.beat-report-head small { color:var(--text-muted,#6b7280); }
.beat-report > p { margin:0; line-height:1.6; }
.beat-timeline { position:relative; height:44px; border-radius:10px; border:1px solid rgba(16,185,129,.3); background:linear-gradient(180deg,rgba(16,185,129,.08),rgba(16,185,129,.02)); overflow:hidden; }
.beat-timeline-playhead { position:absolute; top:0; bottom:0; width:2px; background:rgba(239,68,68,.85); pointer-events:none; z-index:2; }
.beat-marker { position:absolute; top:6px; bottom:6px; width:3px; min-width:2px; border:none; padding:0; border-radius:2px; background:#10b981; cursor:pointer; transform:translateX(-1px); }
.beat-marker:hover { background:#34d399; box-shadow:0 0 0 2px rgba(52,211,153,.35); }
.beat-segments { border-top:1px dashed rgba(16,185,129,.3); padding-top:10px; display:grid; gap:8px; }
.beat-segments h4 { margin:0; font-size:.9rem; }
.beat-segments ul { margin:0; padding:0; list-style:none; display:grid; gap:6px; }
.beat-segments li { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border-radius:8px; border:1px solid rgba(16,185,129,.22); background:rgba(16,185,129,.05); font-size:.83rem; flex-wrap:wrap; }
.beat-segments li button { display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:7px; border:1px solid rgba(16,185,129,.5); background:rgba(16,185,129,.14); color:inherit; cursor:pointer; font-size:.8rem; }
.beat-segments li button:hover { background:rgba(16,185,129,.24); }
.beat-segments .secondary-action { justify-self:start; display:inline-flex; align-items:center; gap:6px; }
.video-chroma-canvas { width:100%; height:100%; display:block; object-fit:cover; }
.chroma-background-row { margin-top:12px; display:flex; align-items:center; gap:10px; color:#94a3b8; font-size:9px; }
.chroma-background-row input[type="color"] { width:44px; height:30px; padding:2px; border:1px solid var(--border); border-radius:8px; background:#0b1322; cursor:pointer; }
.chroma-background-row button { padding:6px 10px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:9px; cursor:pointer; }
.chroma-background-row button:hover { color:#dbeafe; border-color:rgba(96,165,250,.55); }.video-cine-canvas { width:100%; height:100%; display:block; object-fit:cover; }
.video-mosaic-canvas { width:100%; height:100%; display:block; object-fit:cover; cursor:crosshair; }
/* 统一特效预览画布：承载高级特效的实时预览，马赛克工具激活时可绘制区域 */
.video-effects-canvas { width:100%; height:100%; display:block; object-fit:cover; pointer-events:none; }
.video-effects-canvas.mosaic-drawing { cursor:crosshair; pointer-events:auto; }

/* 视频编辑右侧工具选择区（参考视觉内容处理的分组布局） */
.video-tool-search { display:flex; align-items:center; gap:8px; margin:10px 12px 8px; padding:7px 10px; border:1px solid var(--border); border-radius:8px; background:rgba(15,23,42,.5); }
.video-tool-search > svg { flex:none; color:#60a5fa; }
.video-tool-search input { flex:1; min-width:0; border:0; outline:0; color:#e5e7eb; background:transparent; font-size:12px; }
.video-tool-search input::placeholder { color:#475569; }
.video-tool-search button { display:grid; place-items:center; padding:2px; border:0; background:transparent; color:#94a3b8; cursor:pointer; }
.video-tool-search button:hover { color:#e2e8f0; }
.video-tool-groups { border-bottom:1px solid var(--border); }
.video-tool-group .filter-group-content { display:flex; flex-direction:column; padding:3px 4px 5px; gap:2px; }
.video-tool-item { display:flex; align-items:flex-start; gap:9px; padding:8px 10px; border:1px solid transparent; border-radius:8px; text-align:left; color:inherit; background:transparent; cursor:pointer; transition:background .15s,border-color .15s; }
.video-tool-item svg { flex:none; margin-top:1px; color:#60a5fa; font-size:15px; }
.video-tool-item span { display:block; min-width:0; }
.video-tool-item strong { display:block; color:#e2e8f0; font-size:11px; line-height:1.35; }
.video-tool-item small { display:block; margin-top:2px; color:#64748b; font-size:9px; line-height:1.4; }
.video-tool-item:hover { background:rgba(30,41,59,.62); }
.video-tool-item.active { border-color:rgba(96,165,250,.48); background:rgba(59,130,246,.14); }
.video-tool-item.active strong { color:#f8fafc; }
.video-tool-groups-empty { padding:22px 16px; text-align:center; color:#64748b; font-size:11px; }
.video-tool-groups-empty p { margin:0; }
/* 工具详情面板：直接渲染在选中工具所在分组的紧下方，无需滚动即可调整参数 */
.video-tool-detail-panel { background:#111b2d; border-top:1px solid rgba(96,165,250,.4); border-bottom:1px solid var(--border); box-shadow:0 8px 22px rgba(2,6,23,.4); scroll-margin-top:8px; }
.video-tool-detail-panel > header { min-height:50px; padding:10px 17px; display:flex; flex-direction:column; justify-content:center; border-bottom:1px solid var(--border); background:rgba(30,58,138,.3); }
.video-tool-detail-panel > header span { color:#f8fafc; font-size:13px; font-weight:700; }
.video-tool-detail-panel > header small { margin-top:3px; color:#93c5fd; font-size:8px; }
.video-tool-detail-panel > section { padding:16px 17px; }


/* AI Toggle Improved */
.video-ai-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(99, 102, 241, 0.35); border-radius: 10px; background: rgba(99, 102, 241, 0.08); color: #e2e8f0; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.video-ai-toggle:hover { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.5); }
.video-ai-toggle input { accent-color: #6366f1; width: 16px; height: 16px; }
.video-ai-toggle svg { color: #818cf8; font-size: 18px; }

/* 旧顶部工具区媒体查询已随重构删除，工具选择已并入右侧控制面板 */

/* ===== UI 主题一致性修复（白框/滑块/区域卡片） ===== */
/* 形状选择器（高级晕影） */
.video-shape-selector { margin-top:12px; display:flex; align-items:center; gap:8px; }
.video-shape-selector > span { color:#94a3b8; font-size:9px; flex:none; }
.video-shape-selector button { min-height:34px; padding:7px 14px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.035); font-size:9px; cursor:pointer; transition:color .15s,border-color .15s,background .15s; }
.video-shape-selector button:hover { color:#dbeafe; border-color:rgba(96,165,250,.4); background:rgba(59,130,246,.1); }
.video-shape-selector button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.15); }

/* 马赛克区域卡片 */
.video-mosaic-region { margin-top:8px; padding:9px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.03); }
.video-mosaic-region.selected { border-color:rgba(59,130,246,.65); box-shadow:0 0 0 2px rgba(59,130,246,.15); }
.video-mosaic-region-head { margin-bottom:7px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.video-mosaic-region-head span { color:#cbd5e1; font-size:9px; }
.video-mosaic-region-head button { min-height:28px; padding:4px 10px; border:1px solid rgba(244,63,94,.25); border-radius:6px; color:#fda4af; background:rgba(244,63,94,.08); font-size:8px; cursor:pointer; }
.video-mosaic-region-head button:hover { background:rgba(244,63,94,.16); }
.video-choice-grid.mosaic-grid { margin-top:7px; }

/* 下拉选择框深色主题（控制面板兜底） */
.video-control-panel select { width:100%; padding:9px 10px; border:1px solid var(--border); border-radius:8px; outline:0; color:#e2e8f0; background:#0b1322; font-size:10px; }
.video-control-panel select:focus { border-color:#3b82f6; }
.video-control-panel select option { color:#e2e8f0; background:#0b1322; }

/* 滑块深色主题 */
.video-setting-slider input[type="range"], .video-transport input[type="range"] { -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px; background:rgba(148,163,184,.25); outline:none; cursor:pointer; }
.video-setting-slider input[type="range"]::-webkit-slider-thumb, .video-transport input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:16px; height:16px; border:2px solid #0b1322; border-radius:50%; background:#3b82f6; box-shadow:0 0 0 1px rgba(59,130,246,.4); cursor:pointer; }
.video-setting-slider input[type="range"]::-moz-range-thumb, .video-transport input[type="range"]::-moz-range-thumb { width:14px; height:14px; border:2px solid #0b1322; border-radius:50%; background:#3b82f6; cursor:pointer; }
.video-setting-slider input[type="range"]::-moz-range-track, .video-transport input[type="range"]::-moz-range-track { height:6px; border-radius:999px; background:rgba(148,163,184,.25); }

/* 紧凑上传区域 */
.compact-upload-zone { min-height: 180px; padding: 20px; margin-bottom: 16px; }
.compact-upload-zone > svg { font-size: 32px; margin-bottom: 8px; }
.compact-upload-zone h3 { font-size: 15px; margin-bottom: 4px; }
.compact-upload-zone p { font-size: 12px; margin-bottom: 12px; }
.compact-upload-zone > div { gap: 8px; }
.compact-upload-zone .primary-action,
.compact-upload-zone .secondary-action { padding: 8px 16px; font-size: 13px; min-height: 32px; }

.timeline-hotkeys { color:#3d4c63 !important; font-size:7px !important; }

.video-timeline-viewport { overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; }
.video-timeline-canvas { min-width:100%; }
.timeline-zoom-controls { display:inline-flex; align-items:center; gap:4px; margin-left:6px; }
.timeline-zoom-controls button { min-height:24px; width:24px; display:grid; place-items:center; }
.timeline-zoom-controls b { color:#93c5fd; font-size:8px; min-width:34px; text-align:center; }
.multi-video-track > div > button { cursor:grab; touch-action:none; }
.multi-video-track > div > button:active { cursor:grabbing; }

.video-timeline-track .clip-boundary { position:absolute; top:0; bottom:0; width:2px; transform:translateX(-1px); background:rgba(248,250,252,.35); }
.video-timeline-track .clip-boundary:hover { background:rgba(248,250,252,.7); }

.video-track-list.audio-track em { padding:0 6px; }
.video-track-list.audio-track .audio-waveform { position:absolute; inset:0; width:100%; height:100%; opacity:.55; pointer-events:none; }
.video-track-list.audio-track .audio-waveform polygon { fill:rgba(94,234,212,.55); }
.video-track-list.audio-track .audio-track-label { position:relative; z-index:1; color:#ecfeff; text-shadow:0 1px 2px rgba(2,6,23,.6); }

.timeline-selection-bar .crossfade-inline { display:inline-flex; align-items:center; gap:6px; margin-left:8px; color:#93c5fd; font-size:8px; }
.timeline-selection-bar .crossfade-inline input { width:110px; accent-color:#3b82f6; }

.timeline-zoom-controls button.active { border-color:rgba(96,165,250,.55); color:#dbeafe; background:rgba(59,130,246,.18); }
.subtitle-template-row { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; margin-bottom:9px; }
.subtitle-template-row button { min-height:30px; padding:6px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:8px; cursor:pointer; }
.subtitle-template-row button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.15); }

.multi-video-track > div > button.multi-selected { border-color:rgba(248,250,252,.7); box-shadow:0 0 0 2px rgba(248,250,252,.25); }

.video-track-list.audio-track .audio-waveform .audio-fade-indicator { fill:rgba(253,224,71,.32); }
.video-track-list.audio-track .audio-waveform.waveform-muted { opacity:.25; }

.video-timeline-track .timeline-hover-time { position:absolute; top:-22px; transform:translateX(-50%); padding:2px 6px; border-radius:5px; color:#e2e8f0; background:rgba(2,6,23,.9); border:1px solid rgba(96,165,250,.35); font-size:8px; white-space:nowrap; pointer-events:none; z-index:5; }

.video-timeline-ruler { position:relative; }
.video-timeline-ruler .ruler-ticks { position:absolute; left:0; right:0; top:100%; height:14px; margin-top:2px; pointer-events:none; }
.video-timeline-ruler .ruler-ticks i { position:absolute; top:0; bottom:0; border-left:1px solid rgba(96,165,250,.25); }
.video-timeline-ruler .ruler-ticks b { position:absolute; left:2px; top:0; color:#526078; font-size:7px; font-weight:400; white-space:nowrap; }
.video-timeline-ruler { padding-bottom:16px; }
.subtitle-batch-row { margin-bottom:9px; padding:8px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; border:1px solid var(--border); border-radius:8px; background:rgba(15,23,42,.45); }
.subtitle-batch-row > span { color:#94a3b8; font-size:8px; }
.subtitle-batch-row button { min-height:24px; padding:4px 8px; border:1px solid rgba(96,165,250,.25); border-radius:6px; color:#93c5fd; background:rgba(59,130,246,.08); font-size:8px; cursor:pointer; }
.subtitle-batch-row small { color:#526078; font-size:7px; }

.video-timeline-track .timeline-marker { position:absolute; top:-4px; bottom:-4px; width:10px; transform:translateX(-50%); border:0; cursor:pointer; background:transparent; z-index:4; padding:0; }
.video-timeline-track .timeline-marker::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; transform:translateX(-1px); background:#fbbf24; box-shadow:0 0 6px rgba(251,191,36,.8); }
.video-timeline-track .timeline-marker:hover::before { width:4px; }

.dialog-search { flex-wrap:wrap; }
.dialog-category-chips { display:flex; flex-wrap:wrap; gap:5px; margin-left:auto; }
.dialog-category-chips button { min-height:24px; padding:3px 9px; border:1px solid rgba(96,165,250,.22); border-radius:99px; color:#94a3b8; background:rgba(59,130,246,.06); font-size:8px; cursor:pointer; }
.dialog-category-chips button.active { color:#dbeafe; border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.18); }

.shortcuts-help-dialog { width:min(560px,92vw); max-height:80vh; overflow:auto; padding:0; border:1px solid rgba(96,165,250,.25); border-radius:14px; background:#0d1524; box-shadow:0 24px 60px rgba(2,6,23,.6); }
.shortcuts-help-dialog header { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); }
.shortcuts-help-dialog header > div { display:flex; align-items:center; gap:10px; }
.shortcuts-help-dialog header svg { color:#60a5fa; font-size:20px; }
.shortcuts-help-dialog header h2 { margin:0; color:#f8fafc; font-size:14px; }
.shortcuts-help-dialog header p { margin:2px 0 0; color:#64748b; font-size:9px; }
.shortcuts-help-dialog header button { width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.05); cursor:pointer; }
.shortcuts-help-grid { padding:16px 20px; display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.shortcuts-help-grid div { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border:1px solid rgba(148,163,184,.12); border-radius:8px; background:rgba(15,23,42,.45); }
.shortcuts-help-grid b { color:#93c5fd; font-size:9px; white-space:nowrap; }
.shortcuts-help-grid span { color:#94a3b8; font-size:9px; text-align:right; }

.multi-video-track > div > button .clip-label-dot { position:absolute; top:3px; right:3px; width:7px; height:7px; border-radius:50%; border:1px solid rgba(2,6,23,.6); z-index:3; }
.multi-video-track > div > button { position:relative; }

/* 右键上下文菜单（2026-09-02） */
.context-menu-backdrop { position:fixed; inset:0; z-index:96; }
.context-menu { position:fixed; z-index:97; min-width:212px; max-width:250px; max-height:72vh; overflow:auto; padding:5px; border:1px solid rgba(96,165,250,.3); border-radius:11px; background:rgba(10,16,30,.97); box-shadow:0 18px 44px rgba(2,6,23,.65); backdrop-filter:blur(6px); }
.context-menu-group { padding:3px 0; border-bottom:1px solid rgba(148,163,184,.12); }
.context-menu-group:last-child { border-bottom:0; }
.context-menu-title { display:block; padding:5px 10px 3px; max-width:230px; overflow:hidden; color:#526078; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.context-menu button { width:100%; min-height:28px; padding:5px 10px; display:flex; align-items:center; gap:8px; border:0; border-radius:7px; color:#cbd5e1; background:transparent; font-size:10px; text-align:left; cursor:pointer; }
.context-menu button svg { flex:none; color:#60a5fa; font-size:13px; }
.context-menu button span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.context-menu button:hover { background:rgba(59,130,246,.16); color:#f1f5f9; }
.context-menu button.danger { color:#fda4af; }
.context-menu button.danger svg { color:#f87171; }
.context-menu button.danger:hover { background:rgba(244,63,94,.14); }
.context-menu button.checked { color:#93c5fd; }
.context-menu button.checked svg:last-child { color:#34d399; font-size:11px; }

.video-timeline-track .timeline-loop-range { position:absolute; top:0; bottom:0; background:rgba(52,211,153,.22); border-left:2px solid #34d399; border-right:2px solid #34d399; pointer-events:none; z-index:2; }

/* 水印预览（2026-09-02） */
.video-watermark-preview { position:absolute; z-index:6; font-size:clamp(10px,2.2%,14px); font-weight:600; text-shadow:0 1px 3px rgba(0,0,0,.55); pointer-events:none; }
.video-watermark-preview.top-left { top:3%; left:3%; }
.video-watermark-preview.top-right { top:3%; right:3%; }
.video-watermark-preview.bottom-left { bottom:3%; left:3%; }
.video-watermark-preview.bottom-right { bottom:3%; right:3%; }

/* 参数预设（2026-09-02） */
.preset-row { display:flex; gap:7px; margin-bottom:8px; }
.preset-row input { flex:1; min-width:0; padding:8px; border:1px solid var(--border); border-radius:7px; color:#e2e8f0; background:#0b1322; font-size:9px; }
.preset-row button { flex:none; min-height:30px; padding:6px 10px; display:flex; align-items:center; gap:5px; border:1px solid rgba(96,165,250,.25); border-radius:7px; color:#93c5fd; background:rgba(59,130,246,.08); font-size:8px; cursor:pointer; }
.preset-list { display:grid; gap:6px; }
.preset-item { display:flex; align-items:center; gap:6px; }
.preset-item button { flex:1; min-width:0; min-height:34px; padding:6px 10px; display:flex; flex-direction:column; align-items:flex-start; gap:2px; border:1px solid var(--border); border-radius:7px; color:#cbd5e1; background:rgba(15,23,42,.45); font-size:9px; text-align:left; cursor:pointer; }
.preset-item button small { color:#64748b; font-size:7px; }
.preset-item button:hover { border-color:rgba(96,165,250,.45); background:rgba(59,130,246,.1); }
.preset-item > span { flex:none; width:26px; height:26px; display:grid; place-items:center; border-radius:6px; color:#94a3b8; cursor:pointer; }
.preset-item > span:hover { color:#fda4af; background:rgba(244,63,94,.1); }

/* 片段缩略图胶片条（2026-09-02） */
.multi-video-track > div > button .clip-thumb-strip { position:absolute; inset:2px; display:flex; gap:1px; overflow:hidden; border-radius:4px; opacity:.4; pointer-events:none; z-index:1; }
.multi-video-track > div > button .clip-thumb-strip img { flex:1; min-width:0; height:100%; object-fit:cover; }
.multi-video-track > div > button > span { position:relative; z-index:2; }

/* 自动草稿恢复横幅（2026-09-02） */
.draft-restore-banner { margin:14px 0; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; border:1px solid rgba(251,191,36,.35); border-radius:12px; background:rgba(251,191,36,.08); }
.draft-restore-banner strong { display:block; color:#fde68a; font-size:12px; }
.draft-restore-banner small { display:block; margin-top:3px; color:#a16207; font-size:9px; }
.draft-restore-banner > div { display:flex; gap:8px; }

/* 剪辑历史面板（2026-09-02） */
.history-panel-dialog { width:min(480px,92vw); max-height:76vh; display:flex; flex-direction:column; border:1px solid rgba(96,165,250,.28); border-radius:14px; background:#0d1524; box-shadow:0 24px 60px rgba(2,6,23,.6); }
.history-panel-dialog header { padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); }
.history-panel-dialog header > div { display:flex; align-items:center; gap:10px; }
.history-panel-dialog header svg { color:#60a5fa; font-size:20px; }
.history-panel-dialog header h2 { margin:0; color:#f8fafc; font-size:14px; }
.history-panel-dialog header p { margin:2px 0 0; color:#64748b; font-size:9px; }
.history-panel-dialog header button { width:30px; height:30px; display:grid; place-items:center; border:0; border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.05); cursor:pointer; }
.history-step-list { padding:12px; display:grid; gap:6px; overflow:auto; }
.history-step-list button { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:9px; background:rgba(15,23,42,.45); color:#cbd5e1; text-align:left; cursor:pointer; }
.history-step-list button i { flex:none; width:26px; height:26px; display:grid; place-items:center; border-radius:7px; background:rgba(59,130,246,.12); color:#93c5fd; font-size:9px; font-style:normal; }
.history-step-list button span { min-width:0; }
.history-step-list button b { display:block; color:#e2e8f0; font-size:10px; }
.history-step-list button small { display:block; margin-top:2px; color:#64748b; font-size:8px; }
.history-step-list button:hover { border-color:rgba(96,165,250,.45); background:rgba(59,130,246,.1); }
.history-step-list button.current { border-color:rgba(52,211,153,.6); background:rgba(52,211,153,.09); }
.history-step-list button.current i { background:rgba(52,211,153,.18); color:#6ee7b7; }
.history-step-list button.future { opacity:.55; }

/* 导入对话框增强（2026-09-02） */
.dialog-sort-select { flex:none; padding:7px 8px; border:1px solid var(--border); border-radius:7px; color:#cbd5e1; background:#0b1322; font-size:9px; cursor:pointer; }
.dialog-result-count { margin:0 0 8px; padding:0 2px; color:#64748b; font-size:8px; }

/* 片段时长标签与缩放视野指示（2026-09-02） */
.multi-video-track > div > button .clip-duration-tag { display:inline-block; margin-left:5px; padding:1px 4px; border-radius:4px; color:#93c5fd; background:rgba(59,130,246,.18); font-size:7px; }
.video-timeline-track .timeline-zoom-window { position:absolute; top:-5px; height:4px; border-radius:99px; background:rgba(148,163,184,.5); pointer-events:none; z-index:3; }

/* 高危操作确认对话框（2026-09-02） */
.confirm-dialog { width:min(420px,92vw); border:1px solid rgba(244,63,94,.4); border-radius:14px; background:#0d1524; box-shadow:0 24px 60px rgba(2,6,23,.6); }
.confirm-dialog header { padding:16px 20px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--border); }
.confirm-dialog header svg { flex:none; color:#f87171; font-size:22px; }
.confirm-dialog header h2 { margin:0; color:#fecaca; font-size:13px; }
.confirm-dialog header p { margin:4px 0 0; color:#94a3b8; font-size:9px; line-height:1.5; }
.confirm-dialog footer { padding:14px 20px; display:flex; justify-content:flex-end; gap:8px; }

/* 工作台状态栏与导出历史（2026-09-02） */
.video-status-bar { margin-top:10px; padding:8px 12px; display:flex; flex-wrap:wrap; align-items:center; gap:14px; border:1px solid rgba(96,165,250,.15); border-radius:10px; background:rgba(15,23,42,.5); }
.video-status-bar span { display:inline-flex; align-items:center; gap:5px; color:#94a3b8; font-size:9px; white-space:nowrap; }
.video-status-bar span svg { color:#60a5fa; font-size:11px; }
.video-status-bar .status-draft { margin-left:auto; color:#6ee7b7; }
.video-status-bar .status-draft svg { color:#34d399; }
.export-history-list { display:grid; gap:5px; margin-bottom:10px; }
.export-history-item { padding:7px 9px; border:1px solid var(--border); border-radius:8px; background:rgba(15,23,42,.45); }
.export-history-item b { display:block; color:#e2e8f0; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.export-history-item small { display:block; margin-top:2px; color:#64748b; font-size:8px; }

/* 键盘自定义映射编辑器（2026-09-02） */
.key-binding-editor { padding:12px 20px 4px; display:grid; grid-template-columns:repeat(2,1fr); gap:6px 12px; border-bottom:1px solid var(--border); }
.key-binding-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.key-binding-row span { color:#94a3b8; font-size:9px; }
.key-binding-key { min-width:64px; padding:4px 8px; border:1px solid rgba(96,165,250,.3); border-radius:6px; color:#93c5fd; background:rgba(59,130,246,.08); font-size:9px; cursor:pointer; }
.key-binding-key:hover { border-color:rgba(96,165,250,.6); }
.key-binding-key.capturing { border-color:#fbbf24; color:#fde68a; background:rgba(251,191,36,.12); }
.key-binding-reset { grid-column:1/-1; min-height:28px; margin-top:4px; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:9px; cursor:pointer; }
.key-binding-reset:hover:not(:disabled) { color:#fda4af; border-color:rgba(244,63,94,.4); }
.key-binding-reset:disabled { opacity:.4; cursor:default; }

/* 画幅模板与快捷键提示（2026-09-02） */
.project-template-row { margin-top:14px; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; }
.project-template-row > span { color:#64748b; font-size:9px; }
.project-template-row button { min-height:30px; padding:6px 11px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:9px; cursor:pointer; }
.project-template-row button:hover { border-color:rgba(96,165,250,.45); color:#cbd5e1; }
.project-template-row button.active { border-color:rgba(96,165,250,.6); color:#dbeafe; background:rgba(59,130,246,.14); }

.key-hint-toast { position:fixed; left:50%; bottom:84px; transform:translateX(-50%); z-index:200; padding:9px 20px; border-radius:99px; color:#f1f5f9; background:rgba(2,6,23,.88); border:1px solid rgba(96,165,250,.4); font-size:12px; font-weight:600; box-shadow:0 12px 30px rgba(2,6,23,.5); pointer-events:none; animation:hintIn .15s ease-out; }
@keyframes hintIn { from { opacity:0; transform:translateX(-50%) translateY(8px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* 命令面板与字幕拖拽（2026-09-02） */
.command-palette-dialog { width:min(480px,92vw); border:1px solid rgba(96,165,250,.3); border-radius:14px; background:#0d1524; box-shadow:0 24px 60px rgba(2,6,23,.6); overflow:hidden; }
.command-palette-dialog input { width:100%; padding:14px 18px; border:0; border-bottom:1px solid var(--border); background:transparent; color:#e2e8f0; font-size:12px; outline:none; }
.command-palette-list { max-height:340px; overflow:auto; padding:8px; display:grid; gap:3px; }
.command-palette-list button { padding:9px 12px; border:0; border-radius:8px; color:#cbd5e1; background:transparent; font-size:10px; text-align:left; cursor:pointer; }
.command-palette-list button:hover { background:rgba(59,130,246,.14); color:#f1f5f9; }
.command-palette-list p { margin:0; padding:14px; color:#64748b; font-size:10px; text-align:center; }
.draggable-cue { cursor:grab; touch-action:none; }
.draggable-cue:active { cursor:grabbing; }

/* 片段边缘拖拽修剪与淡化/转场指示器（2026-09-04） */
.multi-video-track > div > button .clip-edge { position:absolute; top:0; bottom:0; width:8px; cursor:ew-resize; z-index:3; background:linear-gradient(to right, rgba(148,163,184,.0), rgba(148,163,184,.35)); border-radius:4px 0 0 4px; }
.multi-video-track > div > button .clip-edge-right { left:auto; right:0; background:linear-gradient(to left, rgba(148,163,184,.0), rgba(148,163,184,.35)); border-radius:0 4px 4px 0; }
.multi-video-track > div > button .clip-edge:hover, .multi-video-track > div > button .clip-edge:active { background:rgba(96,165,250,.55); }
.multi-video-track > div > button .clip-fade-indicator { position:absolute; top:0; bottom:0; pointer-events:none; z-index:2; background:linear-gradient(to right, rgba(253,224,71,.4), rgba(253,224,71,0)); }
.multi-video-track > div > button .clip-fade-indicator.clip-fade-in { left:0; }
.multi-video-track > div > button .clip-fade-indicator.clip-fade-out { right:0; background:linear-gradient(to left, rgba(253,224,71,.4), rgba(253,224,71,0)); }
.multi-video-track > div > button .clip-xfade-indicator { position:absolute; top:0; bottom:0; right:0; pointer-events:none; z-index:2; background:repeating-linear-gradient(45deg, rgba(52,211,153,.45) 0 3px, rgba(52,211,153,.12) 3px 6px); }

/* 响度表与归一化目标（2026-09-04） */
.video-control-actions .loudness-meter { padding:4px 7px; border:1px solid rgba(16,185,129,.25); border-radius:6px; color:#6ee7b7; background:rgba(6,78,59,.18); font-size:8px; font-variant-numeric:tabular-nums; }
.loudness-target-row { margin-top:8px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; color:#64748b; font-size:8px; }
.loudness-target-row > div { display:flex; gap:4px; }
.loudness-target-row button { padding:4px 8px; border:1px solid var(--border); border-radius:6px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:8px; cursor:pointer; }
.loudness-target-row button.active { border-color:#34d399; color:#6ee7b7; background:rgba(16,185,129,.12); }
.loudness-target-row em { color:#94a3b8; font-size:8px; font-style:normal; font-variant-numeric:tabular-nums; }

/* 主轨片段音频波形条（2026-09-04） */
.multi-video-track > div > button .clip-wave-strip { position:absolute; left:2px; right:2px; bottom:2px; height:10px; opacity:.5; pointer-events:none; z-index:1; }
.multi-video-track > div > button .clip-wave-strip svg { width:100%; height:100%; }
.multi-video-track > div > button .clip-wave-strip polygon { fill:rgba(147,197,253,.55); }

/* 专业代理、嵌套序列与多机位工作流（2026-09-05） */
.professional-workflow-card { margin-top:10px; padding:11px; border:1px solid rgba(96,165,250,.17); border-radius:10px; background:rgba(15,23,42,.48); }
.professional-workflow-card h4 { margin:0 0 8px; color:#bfdbfe; font-size:10px; }
.professional-workflow-card .wide-primary { width:100%; min-height:34px; margin:9px 0 0; font-size:9px; }
.proxy-media-status,.nested-sequence-list article { margin-top:8px; padding:8px; display:flex; align-items:center; justify-content:space-between; gap:8px; border:1px solid rgba(148,163,184,.14); border-radius:8px; background:rgba(2,6,23,.28); }
.proxy-media-status span,.proxy-media-status strong,.proxy-media-status small,.nested-sequence-list span,.nested-sequence-list strong,.nested-sequence-list small { display:block; min-width:0; }
.proxy-media-status strong,.nested-sequence-list strong { max-width:170px; overflow:hidden; color:#e2e8f0; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.proxy-media-status small,.nested-sequence-list small { margin-top:3px; color:#64748b; font-size:8px; }
.proxy-media-status > div,.nested-sequence-list article > div { display:flex; flex:none; gap:5px; }
.proxy-media-status button,.nested-sequence-list button { min-height:28px; padding:5px 7px; border:1px solid var(--border); border-radius:6px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:8px; cursor:pointer; }
.workflow-empty { margin:8px 0 0; padding:9px; border:1px dashed rgba(148,163,184,.16); border-radius:8px; color:#64748b; font-size:8px; line-height:1.5; }
.nested-sequence-list,.multicam-cut-list { margin-top:8px; display:grid; gap:6px; }
.multicam-angle-grid { margin-top:9px; display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.multicam-angle-grid button { min-height:31px; padding:6px 8px; overflow:hidden; border:1px solid var(--border); border-radius:7px; color:#94a3b8; background:rgba(255,255,255,.03); font-size:8px; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.multicam-angle-grid button.active { color:#dbeafe; border-color:#60a5fa; background:rgba(59,130,246,.16); }
.multicam-angle-grid button:disabled { opacity:.38; cursor:not-allowed; }
.multicam-cut-list { max-height:160px; overflow:auto; }
.multicam-cut-list article { display:grid; grid-template-columns:minmax(0,1fr) 28px; gap:5px; }
.multicam-cut-list article > button { min-height:29px; padding:5px 8px; display:flex; align-items:center; justify-content:space-between; gap:8px; border:1px solid rgba(148,163,184,.14); border-radius:7px; color:#94a3b8; background:rgba(2,6,23,.28); font-size:8px; cursor:pointer; }
.multicam-cut-list article > button:last-child { padding:0; justify-content:center; color:#fda4af; }
.multicam-cut-list strong,.multicam-cut-list small { color:inherit; font-size:8px; }
.video-pip-layer.multicam-full-frame { z-index:2; object-fit:contain; }

/* 基于转写文本剪辑与 AI 自动重构画幅（2026-09-05） */
.transcript-edit-card { margin-top:10px; padding:10px; border:1px solid rgba(168,85,247,.2); border-radius:9px; background:rgba(88,28,135,.08); }
.transcript-edit-card strong,.transcript-edit-card small { display:block; }
.transcript-edit-card strong { color:#ddd6fe; font-size:10px; }
.transcript-edit-card small { margin-top:4px; color:#7f8da5; font-size:8px; line-height:1.5; }
.transcript-edit-card .video-control-actions { margin-top:9px; }
.transcript-edit-card .danger { color:#fecaca; border-color:rgba(244,63,94,.28); background:rgba(244,63,94,.08); }
.video-subtitle-list article.transcript-selected { border-color:rgba(168,85,247,.52); background:rgba(88,28,135,.12); }
.video-subtitle-list .transcript-cue-select { margin-bottom:7px; padding:5px 7px; display:grid; grid-template-columns:14px minmax(0,1fr) 36px; align-items:center; gap:6px; border-radius:6px; color:#c4b5fd; background:rgba(139,92,246,.08); cursor:pointer; }
.video-subtitle-list .transcript-cue-select input { width:13px; height:13px; margin:0; accent-color:#8b5cf6; }
.video-subtitle-list .transcript-cue-select button { width:36px; height:24px; padding:0; color:#93c5fd; background:rgba(59,130,246,.08); font-size:8px; }
.workflow-progress { height:5px; margin-top:9px; overflow:hidden; border-radius:99px; background:rgba(148,163,184,.15); }
.workflow-progress i { height:100%; display:block; border-radius:inherit; background:linear-gradient(90deg,#3b82f6,#8b5cf6,#22d3ee); transition:width .18s ease; }

/* 实时亮度波形、RGB Parade 与矢量示波器（2026-09-05） */
.video-color-scopes { margin-top:10px; display:grid; gap:8px; }
.video-color-scopes article { padding:8px; overflow:hidden; border:1px solid rgba(96,165,250,.16); border-radius:9px; background:#050912; }
.video-color-scopes header { margin-bottom:6px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.video-color-scopes strong { color:#cbd5e1; font-size:9px; }
.video-color-scopes small { color:#64748b; font-size:8px; }
.video-color-scopes canvas { width:100%; height:auto; display:block; border:1px solid rgba(148,163,184,.1); border-radius:5px; background:#02050a; image-rendering:auto; }
.video-color-scopes > p { margin:0; padding:8px; border-radius:7px; color:#fbbf24; background:rgba(245,158,11,.08); font-size:8px; line-height:1.5; }

@media (max-width:420px) {
  .multicam-angle-grid { grid-template-columns:1fr; }
  .proxy-media-status,.nested-sequence-list article { align-items:stretch; flex-direction:column; }
}


.legal-page { min-height: 100%; padding: 56px 16px 80px; background: #0b1220; } /* ui-fix */
.legal-shell { width: min(860px, 100%); margin: 0 auto; }
.legal-back { display:inline-flex; align-items:center; gap:7px; color:#93c5fd; font-size:13px; margin-bottom:28px; }
.legal-hero { padding:34px 36px; border:1px solid rgba(148,163,184,.18); border-radius:20px; background:linear-gradient(135deg,rgba(30,41,59,.92),rgba(15,23,42,.88)); }
.legal-eyebrow { color:#60a5fa; font-size:12px; letter-spacing:.08em; }
.legal-hero h1 { margin:12px 0 10px; color:#f8fafc; font-size:clamp(28px,5vw,44px); }
.legal-hero p { margin:0; color:#b6c3d5; line-height:1.8; }
.legal-notice,.legal-warning { display:flex; gap:10px; align-items:flex-start; margin-top:16px; padding:14px 16px; border-radius:12px; color:#cbd5e1; background:rgba(37,99,235,.12); border:1px solid rgba(96,165,250,.22); line-height:1.7; font-size:13px; }
.legal-notice svg,.legal-warning svg { flex:none; margin-top:3px; color:#60a5fa; }
.legal-warning { color:#fed7aa; background:rgba(124,45,18,.18); border-color:rgba(251,146,60,.28); }
.legal-warning svg { color:#fb923c; }
.legal-sections { margin-top:20px; padding:8px 36px 28px; border:1px solid rgba(148,163,184,.14); border-radius:20px; background:rgba(15,23,42,.72); }
.legal-sections section { padding:24px 0; border-bottom:1px solid rgba(148,163,184,.13); }
.legal-sections section:last-child { border-bottom:0; }
.legal-sections h2 { margin:0 0 12px; color:#f8fafc; font-size:19px; }
.legal-sections p { margin:8px 0 0; color:#b7c3d4; line-height:1.9; font-size:14px; }
.legal-contact { display:inline-flex; align-items:center; gap:8px; margin-top:20px; padding:11px 16px; border-radius:10px; color:#fff; background:#2563eb; }
.legal-related { display:flex; flex-wrap:wrap; gap:12px 20px; margin-top:28px; color:#8fb7ec; font-size:13px; }
.ai-generated-notice { width:100%; min-width:0; display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:9px; margin:12px 0 16px; padding:11px 13px; color:#b9c8dc; background:linear-gradient(110deg,rgba(37,99,235,.12),rgba(30,41,59,.38)); border:1px solid rgba(96,165,250,.22); border-radius:11px; font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.ai-generated-notice > span { min-width:0; display:block; }
.ai-generated-notice svg { width:17px; height:17px; flex:none; margin-top:2px; color:#60a5fa; }
.protected-page .feature-status-notice { width:100%; min-width:0; }
.protected-page .feature-status-notice > div { min-width:0; }
.protected-page .feature-status-notice p { overflow-wrap:anywhere; }
.ai-generated-result-label,.ai-generated-file-label { color:#7dd3fc !important; }
.login-age-check { display:flex; gap:10px; align-items:flex-start; margin:10px 0 4px; color:#aebdd0; font-size:12px; line-height:1.6; }
.login-age-check input[type="checkbox"] { flex:0 0 16px; width:16px !important; height:16px !important; min-width:16px !important; min-height:16px !important; margin:2px 0 0; accent-color:#60a5fa; cursor:pointer; }
.login-age-check span { flex:1; min-width:0; }
.login-age-check a { color:#93c5fd; text-decoration:none; }
.login-age-check a:hover { text-decoration:underline; }

.login-register-link { text-align:center; margin-top:24px; color:#94a3b8; font-size:13px; }
.login-register-link a { color:#93c5fd; text-decoration:none; font-weight:600; }
.login-register-link a:hover { text-decoration:underline; }
.data-rights-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.account-data-intro { margin:-4px 0 18px; color:#94a3b8; font-size:13px; line-height:1.7; }
.data-rights-count { flex:none; padding:7px 10px; border:1px solid rgba(96,165,250,.2); border-radius:999px; color:#93c5fd; background:rgba(37,99,235,.09); font-size:12px; }
.data-rights-guide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:4px 0 20px; }
.data-rights-guide article { display:flex; gap:10px; align-items:flex-start; min-width:0; padding:12px; border:1px solid rgba(148,163,184,.14); border-radius:12px; background:rgba(15,23,42,.52); }
.data-rights-guide article > b { width:22px; height:22px; display:grid; place-items:center; flex:none; border-radius:50%; color:#dbeafe; background:rgba(37,99,235,.55); font-size:11px; }
.data-rights-guide strong,.data-rights-guide span { display:block; }
.data-rights-guide strong { color:#e2e8f0; font-size:12px; }
.data-rights-guide span { margin-top:4px; color:#8292a8; font-size:11px; line-height:1.5; }
.data-rights-form { display:grid; gap:12px; max-width:720px; }
.data-rights-form textarea { min-height:110px; resize:vertical; }
.data-rights-hint { display:block; margin-top:6px; color:#8292a8; line-height:1.55; }
.field-counter { display:block; margin-top:5px; text-align:right; color:#64748b; font-size:10px; }
.data-rights-warning { display:flex; gap:8px; align-items:flex-start; margin:0; padding:10px 12px; border:1px solid rgba(251,146,60,.24); border-radius:10px; color:#fed7aa; background:rgba(124,45,18,.12); font-size:12px; line-height:1.6; }
.data-rights-warning svg { flex:none; margin-top:2px; color:#fb923c; }
.data-rights-history { margin-top:28px; }
.data-rights-history-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.data-rights-history h3 { margin:0 0 12px; color:#e2e8f0; }
.data-rights-history-heading > span { color:#64748b; font-size:11px; }
.data-rights-history article { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; padding:15px 0; border-bottom:1px solid rgba(148,163,184,.13); }
.data-rights-history article > div { min-width:0; }
.data-rights-history article strong,.data-rights-history article small { display:block; }
.data-rights-history article strong { color:#dbeafe; font-size:13px; overflow-wrap:anywhere; }
.data-rights-history article small { margin-top:5px; color:#8292a8; line-height:1.6; overflow-wrap:anywhere; }
.data-rights-history article b { flex:none; padding:5px 8px; border-radius:999px; color:#93c5fd; background:rgba(37,99,235,.11); font-size:11px; font-weight:600; }
.data-rights-status.processing { color:#fde68a !important; background:rgba(234,179,8,.12) !important; }
.data-rights-status.completed { color:#86efac !important; background:rgba(34,197,94,.12) !important; }
.data-rights-status.rejected { color:#fda4af !important; background:rgba(244,63,94,.11) !important; }
.data-rights-note { display:flex; gap:6px; align-items:flex-start; margin:8px 0 0; padding:8px 9px; border-radius:8px; color:#bfdbfe; background:rgba(37,99,235,.08); font-size:11px; line-height:1.6; }
.data-rights-note svg { flex:none; margin-top:2px; color:#60a5fa; }
@media (max-width:640px) { .data-rights-heading { display:block; } .data-rights-count { display:inline-flex; margin:-4px 0 12px; } .data-rights-guide { grid-template-columns:1fr; } .data-rights-history-heading { display:block; } .data-rights-history-heading > span { display:block; margin:-6px 0 8px; } .data-rights-history article { gap:8px; } }
@media (max-width:640px) { .legal-page { padding:32px 12px 56px; } .legal-hero,.legal-sections { padding-left:20px; padding-right:20px; } }


/* Register page styles */
.register-page { isolation:isolate; min-height:100vh; display:grid; align-items:center; padding:clamp(20px,2.5vw,48px); background:radial-gradient(circle at 12% 5%,#172a51 0,rgba(23,42,81,0) 31%),radial-gradient(circle at 91% 94%,#291951 0,rgba(41,25,81,0) 34%),#091120; }
.register-shell { width:min(1080px,100%); min-height:min(640px,calc(100vh - 48px)); margin:auto; display:grid; grid-template-columns:1fr 1fr; gap:0; border-radius:24px; overflow:hidden; background:linear-gradient(135deg,#111c31,#1e293b); border:1px solid rgba(148,163,184,.18); box-shadow:0 32px 64px rgba(0,0,0,.3); backdrop-filter:blur(22px); }
.register-showcase { position:relative; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(34px,4.5vw,56px); overflow:hidden; background:linear-gradient(135deg,#1e3a8a,#312e81); }
.register-showcase-copy { position:relative; z-index:1; margin-top:24px; }
.register-kicker { display:inline-block; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.1); color:#dbeafe; font-size:11px; letter-spacing:.1em; font-weight:600; }
.register-showcase h1 { margin:18px 0 16px; color:#fff; font-size:clamp(32px,3.4vw,48px); line-height:1.18; letter-spacing:-.02em; }
.register-showcase-copy > p { color:#cbd5e1; font-size:15px; line-height:1.7; }
.register-benefits { position:relative; z-index:1; display:grid; gap:13px; padding:0; margin:38px 0 0; list-style:none; }
.register-benefits li { display:flex; gap:12px; align-items:flex-start; color:#e2e8f0; font-size:13px; }
.register-benefits li svg { flex:none; margin-top:2px; color:#60a5fa; }
.register-benefits strong { display:block; color:#fff; font-size:14px; margin-bottom:2px; }
.register-benefits small { color:#94a3b8; font-size:11px; line-height:1.5; }
.register-card { position:relative; display:flex; flex-direction:column; justify-content:center; padding:clamp(36px,4vw,56px); background:rgba(15,23,42,.85); }
.register-card-header h2 { margin:0 0 8px; color:#fff; font-size:34px; letter-spacing:-.04em; }
.register-card-header > p { margin:0; color:#94a3b8; font-size:14px; line-height:1.65; }
.register-form { margin-top:30px; }
.register-field { margin-bottom:19px; }
.register-field label { display:block; color:#dbe5f3; font-size:13px; font-weight:650; margin:0 0 8px; }
.register-field label span { color:#71819a; font-size:11px; font-weight:500; }
.register-field input,.register-field select { width:100%; min-height:52px; border:1px solid rgba(148,163,184,.2); border-radius:12px; background:rgba(148,163,184,.07); color:#f8fafc; outline:none; padding:13px 14px; transition:border-color .2s,box-shadow .2s,background .2s; font-size:14px; }
.register-field input::placeholder { color:#667892; }
.register-field input:focus,.register-field select:focus { border-color:#60a5fa; background:rgba(59,130,246,.08); box-shadow:0 0 0 4px rgba(59,130,246,.13); }
.register-field .field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.register-submit { width:100%; min-height:52px; margin-top:26px; border:0; border-radius:12px; background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; padding:13px 18px; display:inline-flex; align-items:center; justify-content:center; gap:9px; font-weight:750; cursor:pointer; box-shadow:0 14px 28px rgba(37,99,235,.22); transition:transform .2s,box-shadow .2s,background .2s; font-size:15px; }
.register-submit:hover { background:linear-gradient(135deg,#60a5fa,#2563eb); transform:translateY(-1px); box-shadow:0 18px 32px rgba(37,99,235,.3); }
.register-submit:disabled { opacity:.45; cursor:not-allowed; transform:none; box-shadow:none; }
.register-error { margin:16px 0 -8px !important; padding:10px 12px; border-radius:10px; background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.24); color:#fca5a5 !important; font-size:13px; line-height:1.5; }
.register-login-link { text-align:center; margin-top:20px; color:#94a3b8; font-size:13px; }
.register-login-link a { color:#93c5fd; text-decoration:none; }
.register-login-link a:hover { text-decoration:underline; }
@media (max-width: 820px) { .register-shell { grid-template-columns:1fr; min-height:0; max-width:560px; } .register-showcase { min-height:230px; padding:30px; } .register-showcase-copy { margin-top:34px; } .register-showcase h1 { font-size:31px; } .register-showcase-copy > p,.register-benefits { display:none; } .register-card { padding:36px 30px; } }

/* === UI 修复：日期选择器深色主题 + 登录页间距 === */

/* 日期选择器深色主题美化 */
.register-field input[type="date"] {
  color-scheme: dark;
  font-family: inherit;
  cursor: text;
}
.register-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(0.3) saturate(2) hue-rotate(180deg);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.register-field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.register-field input[type="date"]::-webkit-datetime-edit { color: #f8fafc; }
.register-field input[type="date"]::-webkit-datetime-edit-fields-wrapper { color: #f8fafc; }
.register-field input[type="date"]::-webkit-datetime-edit-text { color: #667892; padding: 0 2px; }
.register-field input[type="date"]::-webkit-inner-spin-button,
.register-field input[type="date"]::-webkit-clear-button { display: none; }
.register-field input[type="date"]::-webkit-datetime-edit-month-field,
.register-field input[type="date"]::-webkit-datetime-edit-day-field,
.register-field input[type="date"]::-webkit-datetime-edit-year-field { color: #f8fafc; }

/* 登录页：邮箱输入框与第一个勾选框之间增加间距 */
.login-form > .login-field + .login-age-check { margin-top: 28px; }
.login-form > .login-age-check + .login-age-check { margin-top: 12px; }

/* 注册页：表单字段与勾选框之间增加间距 */
.register-form > .register-field:last-of-type + .login-age-check,
.register-form > div:last-child > .register-field:last-of-type ~ .login-age-check { margin-top: 24px; }
.register-form .login-age-check + .login-age-check { margin-top: 12px; }


/* Social Media Collection — 社媒采集样式 (dark theme) */

.social-media-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--muted, #94a3b8);
}

.social-media-loading .spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.social-media-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 14px;
}

.social-media-error-banner .error-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #fca5a5;
  line-height: 1;
}

.social-media-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 500px;
}

/* ── Left Sidebar ── */
.social-media-sidebar {
  padding: 20px 16px 20px 0;
  border-right: 1px solid var(--border, rgba(255,255,255,0.1));
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #e2e8f0;
}

.sidebar-desc {
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
  margin: 0 0 20px;
}

.platform-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.6);
  cursor: pointer;
  transition: all .15s ease;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
  text-align: left;
}

.platform-tab:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #e2e8f0;
}

.platform-tab.active {
  border-color: var(--blue, #3b82f6);
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

.platform-icon {
  font-size: 18px;
}

.platform-label {
  flex: 1;
}

.platform-count {
  font-size: 12px;
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted, #94a3b8);
  border-radius: 10px;
  padding: 2px 8px;
  font-weight: 600;
}

.platform-tab.active .platform-count {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

/* ── Main Content ── */
.social-media-main {
  padding: 0 0 0 24px;
}

.capability-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.capability-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: rgba(30, 41, 59, 0.5);
  color: var(--muted, #94a3b8);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
}

.capability-chip:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.capability-chip.active {
  background: var(--blue, #3b82f6);
  border-color: var(--blue, #3b82f6);
  color: #fff;
}

.chip-credits {
  font-size: 11px;
  opacity: 0.7;
}

.capability-chip.active .chip-credits {
  opacity: 0.9;
}

/* ── Form Section ── */
.form-section {
  background: var(--panel, rgba(30, 41, 59, 0.72));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}




.credits-badge {
  font-size: 12px;
  color: var(--green, #10b981);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.form-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted, #94a3b8);
  font-size: 14px;
  padding: 20px 0;
}

.param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.param-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.param-row label {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
}

.param-description {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 2px;
}

.required-mark {
  color: #f87171;
  margin-left: 2px;
}

.param-row input[type="text"],
.param-row input[type="number"],
.param-row select {
  padding: 8px 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  transition: border-color .15s ease;
}

.param-row input:focus,
.param-row select:focus {
  outline: none;
  border-color: var(--blue, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.param-boolean {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  transition: .3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--blue, #3b82f6);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.collect-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: var(--blue, #3b82f6);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.collect-btn:hover:not(:disabled) {
  background: #2563eb;
}

.collect-btn:disabled {
  background: rgba(59, 130, 246, 0.3);
  cursor: not-allowed;
}

.collect-btn .spin {
  animation: spin 1s linear infinite;
}

/* ── Result Section ── */
.result-section {
  background: var(--panel, rgba(30, 41, 59, 0.72));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  overflow: hidden;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
  background: rgba(16, 185, 129, 0.08);
}

.result-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green, #10b981);
}

.result-success-icon {
  color: var(--green, #10b981);
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;

  overflow: visible;
  position: relative;
}

.request-id {
  color: var(--muted, #94a3b8);
  font-family: monospace;
  font-size: 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  background: rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 13px;
  transition: all .15s ease;
}

.copy-btn:hover {
  background: rgba(51, 65, 85, 0.8);
}

.result-body {
  padding: 16px 20px;
  max-height: 600px;
  overflow-y: auto;
}

.result-json {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: #cbd5e1;
}

/* ── Result Cards ── */
.result-cards-header {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted, #94a3b8);
  margin-bottom: 12px;
}

.result-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.result-card {
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .15s ease;
  background: rgba(15, 23, 42, 0.4);
}

.result-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.5);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #e2e8f0;
}

.card-author {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}

.card-likes {
  font-size: 12px;
  color: #f87171;
}

.card-raw {
  margin-top: 4px;
}

.card-raw summary {
  font-size: 12px;
  color: var(--blue, #3b82f6);
  cursor: pointer;
}

.card-raw pre {
  font-size: 11px;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px;
  border-radius: 6px;
  color: #94a3b8;
}

.pagination-info {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted, #94a3b8);
  margin-top: 12px;
  font-family: monospace;
}

.raw-json {
  margin-top: 12px;
}

.raw-json summary {
  font-size: 13px;
  color: var(--blue, #3b82f6);
  cursor: pointer;
}

.raw-json pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px;
  border-radius: 8px;
  color: #94a3b8;
}

/* ─ Responsive ── */
@media (max-width: 768px) {
  .social-media-layout {
    grid-template-columns: 1fr;
  }

  .social-media-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
    padding: 0 0 16px;
  }

  .platform-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .platform-tab {
    white-space: nowrap;
  }

  .param-grid {
    grid-template-columns: 1fr;
  }

  .social-media-main {
    padding: 16px 0 0;
  }
}
/* ─── Export Dropdown ─── */
.export-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--blue, #3b82f6);
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.export-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}
.export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.export-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 280px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.export-dropdown-group-label {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}
.export-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}
.export-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.export-dropdown-item:hover {
  background: rgba(59, 130, 246, 0.12);
}
.export-dropdown-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.export-fmt-badge {
  display: inline-block;
  min-width: 40px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.fmt-json { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.fmt-csv  { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.fmt-md   { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.export-fmt-desc {
  color: #94a3b8;
  font-size: 12px;
}
.export-status-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
  font-size: 13px;
}
/* ─── Result Preview Section (collapsed by default) ─── */
.result-preview-section {
  margin-top: 12px;
}
.result-preview-details {
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.3);
  overflow: hidden;
}
.result-preview-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted, #94a3b8);
  transition: background 0.15s;
  list-style: none;
}
.result-preview-details > summary::-webkit-details-marker {
  display: none;
}
.result-preview-details > summary:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #cbd5e1;
}
.result-preview-details[open] > summary {
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  color: #93c5fd;
}
.result-preview-content {
  padding: 12px 16px;
  max-height: 500px;
  overflow-y: auto;
}
.preview-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.4);
  overflow: hidden;
}
.preview-card > summary {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
  list-style: none;
  transition: background 0.15s;
}
.preview-card > summary::-webkit-details-marker {
  display: none;
}
.preview-card > summary:hover {
  background: rgba(59, 130, 246, 0.06);
}
.preview-card[open] > summary {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.preview-card-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-card-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-card-author,
.preview-card-likes {
  font-size: 12px;
  color: var(--muted, #94a3b8);
}
.preview-card-json {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #94a3b8;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 8px 10px;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
}
.preview-truncation-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted, #64748b);
  padding: 8px;
}
.preview-raw-json {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #94a3b8;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  padding: 10px 12px;
  max-height: 400px;
  overflow-y: auto;
  margin: 0;
}

/* 数据采集合规声明 */
.compliance-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.compliance-icon {
  color: #856404;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.compliance-content {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.compliance-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #856404;
}

.compliance-content ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #664d03;
}

.compliance-content li {
  margin-bottom: 0.25rem;
}


/* ===== 图文笔记分析面板（NoteAnalysisPanel）暗色主题样式 ===== */
/* 遵循 docs/CSS-ENCRYPTION-BACKUP.md 规则：.css 与 .generated.txt 同步维护 */
.note-analysis-card { display:flex; flex-direction:column; }

/* --- 图片素材导入区 --- */
.note-analysis-card .import-block { margin-top:14px; padding:14px 16px; border:1px dashed rgba(148,163,184,.32); border-radius:11px; background:rgba(15,23,42,.4); display:flex; flex-direction:column; gap:12px; }
.note-analysis-card .import-header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.note-analysis-card .import-header strong { color:#e2e8f0; font-size:13px; }
.note-analysis-card .import-header span { color:#64748b; font-size:11px; }
.note-analysis-card .import-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.note-analysis-card .import-local { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border:1px solid rgba(96,165,250,.28); border-radius:8px; color:#93c5fd; background:rgba(59,130,246,.1); font-size:12px; cursor:pointer; transition:.18s; }
.note-analysis-card .import-local:hover { border-color:rgba(96,165,250,.5); background:rgba(59,130,246,.18); }
.note-analysis-card .import-local svg { font-size:14px; }
.note-analysis-card .import-local input[type="file"] { display:none; }
.note-analysis-card .import-library { display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border:1px solid var(--border); border-radius:8px; color:#94a3b8; background:rgba(255,255,255,.045); font-size:12px; cursor:pointer; transition:.18s; }
.note-analysis-card .import-library:hover { border-color:rgba(96,165,250,.4); color:#93c5fd; }

/* --- 已选文件网格 --- */
.note-analysis-card .selected-files-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:10px; }
.note-analysis-card .selected-file { position:relative; display:flex; align-items:center; gap:10px; padding:9px 30px 9px 10px; border:1px solid var(--border); border-radius:10px; background:rgba(30,41,59,.72); }
.note-analysis-card .selected-file .library-thumbnail { width:44px; height:44px; border-radius:7px; object-fit:cover; flex:none; display:grid; place-items:center; border:1px solid var(--border); background:rgba(15,23,42,.6); }
.note-analysis-card .selected-file-meta { min-width:0; display:flex; flex-direction:column; gap:3px; }
.note-analysis-card .selected-file-meta span { color:#e2e8f0; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-analysis-card .selected-file-meta small { color:#64748b; font-size:10px; }
.note-analysis-card .remove-file { position:absolute; top:7px; right:7px; width:22px; height:22px; display:grid; place-items:center; border:1px solid rgba(244,63,94,.3); border-radius:6px; color:#fda4af; background:rgba(244,63,94,.12); cursor:pointer; font-size:11px; }
.note-analysis-card .remove-file:hover { background:rgba(244,63,94,.24); }
.note-analysis-card .empty-import { padding:10px 12px; border-radius:8px; background:rgba(148,163,184,.07); color:#64748b; font-size:11px; line-height:1.6; }
.note-analysis-card .import-summary { color:#94a3b8; font-size:11px; }

/* --- 表单控件（下拉/输入） --- */
.note-analysis-card .real-select,.note-analysis-card .real-input { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:9px; background:#0b1322; color:#e2e8f0; font-size:12px; outline:none; transition:border-color .18s; }
.note-analysis-card .real-select:focus,.note-analysis-card .real-input:focus { border-color:rgba(59,130,246,.5); }
.note-analysis-card .real-select option { background:#0f172a; color:#e2e8f0; }
.note-analysis-card .real-input::placeholder { color:#526078; }

/* --- 分析报告 --- */
.note-analysis-report { margin-top:18px; padding:16px; border:1px solid var(--border); border-radius:12px; background:rgba(15,23,42,.58); display:flex; flex-direction:column; gap:14px; }
.note-analysis-report h4 { margin:0; color:#f8fafc; font-size:15px; }
.note-analysis-report .report-overview { margin:0; color:#94a3b8; font-size:12px; line-height:1.7; }
.note-analysis-report .report-section { padding:12px 14px; border:1px solid rgba(148,163,184,.14); border-radius:10px; background:rgba(30,41,59,.5); display:flex; flex-direction:column; gap:9px; }
.note-analysis-report .report-section h5 { margin:0; color:#93c5fd; font-size:12px; }
.note-analysis-report .report-section > p { margin:0; color:#cbd5e1; font-size:12px; line-height:1.7; }
.note-analysis-report .report-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.note-analysis-report .report-grid > div { padding:9px 11px; border-radius:8px; background:rgba(15,23,42,.5); color:#cbd5e1; font-size:11px; line-height:1.6; }
.note-analysis-report .report-grid strong { color:#e2e8f0; }
.note-analysis-report ul { margin:0; padding-left:18px; color:#cbd5e1; font-size:12px; line-height:1.8; }

/* --- 优化建议 --- */
.note-analysis-report .suggestions-list { display:flex; flex-direction:column; gap:9px; }
.note-analysis-report .suggestion-item { padding:11px 13px; border-radius:9px; border:1px solid rgba(148,163,184,.14); background:rgba(15,23,42,.5); display:flex; flex-direction:column; gap:7px; }
.note-analysis-report .suggestion-item.priority-high { border-left:3px solid #f43f5e; }
.note-analysis-report .suggestion-item.priority-medium { border-left:3px solid #f59e0b; }
.note-analysis-report .suggestion-item.priority-low { border-left:3px solid #10b981; }
.note-analysis-report .suggestion-header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.note-analysis-report .suggestion-header strong { color:#e2e8f0; font-size:12px; }
.note-analysis-report .suggestion-priority { padding:2px 8px; border-radius:99px; font-size:10px; }
.note-analysis-report .suggestion-item.priority-high .suggestion-priority { color:#fecdd3; background:rgba(244,63,94,.14); }
.note-analysis-report .suggestion-item.priority-medium .suggestion-priority { color:#fde68a; background:rgba(245,158,11,.14); }
.note-analysis-report .suggestion-item.priority-low .suggestion-priority { color:#a7f3d0; background:rgba(16,185,129,.14); }
.note-analysis-report .suggestion-category { padding:2px 8px; border-radius:99px; font-size:10px; color:#bfdbfe; background:rgba(59,130,246,.12); }
.note-analysis-report .suggestion-item p { margin:0; color:#94a3b8; font-size:11px; line-height:1.7; }
.note-analysis-report .suggestion-item .suggestion-action { color:#cbd5e1; }

/* --- 错误提示 --- */
.note-analysis-card .analysis-error { margin-top:14px; padding:11px 14px; border:1px solid rgba(244,63,94,.26); border-radius:10px; background:rgba(244,63,94,.08); color:#fecdd3; font-size:12px; line-height:1.6; }

/* --- 最近任务列表 --- */
.note-analysis-card .recent-jobs { margin-top:16px; padding-top:14px; border-top:1px solid var(--border); display:flex; flex-direction:column; gap:10px; }
.note-analysis-card .recent-jobs h5 { margin:0; color:#94a3b8; font-size:12px; display:flex; align-items:center; gap:7px; }
.note-analysis-card .recent-jobs ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px; }
.note-analysis-card .recent-jobs li { display:flex; align-items:center; gap:8px; }
.note-analysis-card .recent-jobs li.active .job-link { border-color:rgba(59,130,246,.45); background:rgba(37,99,235,.12); }
.note-analysis-card .job-link { flex:1; min-width:0; display:flex; align-items:center; gap:9px; padding:9px 12px; border:1px solid var(--border); border-radius:9px; background:rgba(30,41,59,.6); color:#cbd5e1; font-size:11px; cursor:pointer; transition:.18s; }
.note-analysis-card .job-link:hover { border-color:rgba(96,165,250,.4); }
.note-analysis-card .job-status { display:grid; place-items:center; width:22px; height:22px; border-radius:6px; flex:none; }
.note-analysis-card .job-status.status-succeeded { color:#34d399; background:rgba(16,185,129,.12); }
.note-analysis-card .job-status.status-failed { color:#fb7185; background:rgba(244,63,94,.12); }
.note-analysis-card .job-status.status-running,.note-analysis-card .job-status.status-queued { color:#60a5fa; background:rgba(59,130,246,.12); }
.note-analysis-card .job-time { color:#64748b; font-size:10px; white-space:nowrap; }
.note-analysis-card .job-progress { margin-left:auto; color:#60a5fa; font-size:10px; }
.note-analysis-card .job-dismiss { width:26px; height:26px; display:grid; place-items:center; border:1px solid var(--border); border-radius:7px; color:#64748b; background:transparent; cursor:pointer; flex:none; }
.note-analysis-card .job-dismiss:hover { color:#fda4af; border-color:rgba(244,63,94,.3); }
.note-analysis-card .empty-jobs { margin:0; color:#64748b; font-size:11px; }

/* --- 响应式 --- */
@media (max-width:760px) {
  .note-analysis-report .report-grid { grid-template-columns:1fr; }
  .note-analysis-card .selected-files-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); }
}


.review-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 28px;margin-bottom:18px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(145deg,#1e293b,#0f172a)}
.review-head h1{margin:6px 0 8px;color:#fff;font-size:30px}.review-head p{margin:0;color:#94a3b8;line-height:1.7}.review-kicker{color:#60a5fa;font-size:11px;letter-spacing:.16em;font-weight:800}
.review-panel{padding:22px;border:1px solid var(--border);border-radius:14px;background:rgba(30,41,59,.72)}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.review-panel label{display:block;min-width:0}.review-panel label>span{display:block;margin-bottom:8px;color:#cbd5e1;font-size:12px;font-weight:700}
.review-panel input,.review-panel textarea,.review-panel select{box-sizing:border-box;width:100%;padding:11px;border:1px solid var(--border);border-radius:9px;outline:0;background:#0d1729;color:#e2e8f0}.review-panel input:focus,.review-panel textarea:focus,.review-panel select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.review-panel textarea{min-height:120px;resize:vertical}
.review-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px;flex-wrap:wrap}.review-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 15px;border:1px solid transparent;border-radius:9px;color:#fff;background:#2563eb;cursor:pointer}.review-button.secondary{color:#bfdbfe;border-color:rgba(96,165,250,.18);background:#172d59}.review-button.danger{color:#fee2e2;background:#991b1b;border-color:#dc2626}.review-button:disabled{opacity:.55;cursor:not-allowed}
.review-notice{margin:0 0 16px;padding:12px 14px;border:1px solid rgba(74,222,128,.25);border-radius:9px;color:#bbf7d0;background:rgba(20,83,45,.55)}
.review-example{margin-top:18px;padding:15px;border:1px dashed rgba(96,165,250,.35);border-radius:11px;background:rgba(30,64,175,.12)}.review-example strong{color:#dbeafe}.review-example p,.template-info{margin:7px 0 0;color:#a8b5c8;font-size:12px;line-height:1.7}.memory-file-grid{margin-top:16px}

.template-layout{display:grid;grid-template-columns:290px minmax(0,1fr);height:min(720px,calc(100vh - 245px));min-height:580px;padding:0;overflow:hidden}
.template-list{min-height:0;padding:15px;display:flex;flex-direction:column;border-right:1px solid var(--border);background:rgba(9,16,30,.62)}
.template-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 13px}.template-list-head strong,.template-list-head small{display:block}.template-list-head strong{color:#f8fafc;font-size:14px}.template-list-head small{margin-top:4px;color:#71819a;font-size:10px}.icon-review-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(96,165,250,.25);border-radius:9px;color:#93c5fd;background:rgba(30,64,175,.22);cursor:pointer}
.template-view-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px}.template-view-actions button{min-width:0;padding:9px 7px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #334155;border-radius:8px;color:#a8b5c8;background:#111c31;font-size:10px;cursor:pointer}.template-view-actions button.active{color:#dbeafe;border-color:#3b82f6;background:rgba(37,99,235,.25)}
.template-search{position:relative;margin-bottom:8px}.template-search svg{position:absolute;z-index:1;left:10px;top:50%;transform:translateY(-50%);color:#64748b}.template-search input{height:38px;padding-left:31px;font-size:10px}.template-category-filter{height:38px;margin-bottom:12px;font-size:10px}
.template-groups{min-height:0;overflow:auto;padding-right:4px}.template-groups>section+section{margin-top:15px}.template-groups section>header{display:flex;align-items:center;justify-content:space-between;padding:0 3px 6px}.template-groups section>header strong{color:#8292aa;font-size:10px}.template-groups section>header span{padding:2px 6px;border-radius:9px;color:#64748b;background:rgba(148,163,184,.09);font-size:9px}
.item-button{display:block;width:100%;margin:5px 0;padding:11px;text-align:left;border:1px solid transparent;border-radius:9px;color:#cbd5e1;background:#152138;cursor:pointer}.item-button:hover{border-color:#3d4d65}.item-button.active{border-color:#3b82f6;background:linear-gradient(120deg,rgba(29,78,216,.85),rgba(30,64,175,.65));color:#fff}.item-button strong,.item-button small{display:block}.item-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.item-button small{margin-top:5px;color:#93a4bb;font-size:9px}.item-button.active small{color:#bfdbfe}.template-list-empty{padding:24px 12px;color:#64748b;font-size:10px;line-height:1.7;text-align:center}
.template-editor{min-width:0;overflow:auto;padding:24px}.template-editor-heading,.template-catalog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.template-editor-heading small,.template-catalog-head>div>small{color:#60a5fa;font-size:9px;letter-spacing:.12em;font-weight:800}.template-editor-heading h2,.template-catalog-head h2{margin:5px 0 0;color:#fff;font-size:21px}.template-catalog-head p{max-width:700px;margin:7px 0 0;color:#8292aa;font-size:11px;line-height:1.7}.template-catalog-head>span{flex:none;padding:6px 9px;border-radius:8px;color:#93c5fd;background:rgba(59,130,246,.12);font-size:10px}
.template-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-editor>label>textarea{min-height:290px}.template-editor>label{margin-top:14px}
.template-category-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}.template-category-overview button{min-height:76px;padding:11px;text-align:left;border:1px solid #334155;border-radius:10px;color:#cbd5e1;background:rgba(15,23,42,.66);cursor:pointer}.template-category-overview button:hover,.template-category-overview button.active{border-color:#3b82f6;background:rgba(30,64,175,.22)}.template-category-overview strong,.template-category-overview small{display:block}.template-category-overview strong{font-size:11px}.template-category-overview small{margin-top:5px;color:#71819a;font-size:9px;line-height:1.5}
.template-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-preset-card{min-width:0;padding:16px;display:flex;flex-direction:column;border:1px solid #334155;border-radius:12px;background:linear-gradient(145deg,rgba(21,33,56,.95),rgba(10,20,37,.95))}.template-preset-card.generated{border-color:rgba(52,211,153,.32);background:linear-gradient(145deg,rgba(13,51,49,.55),rgba(10,20,37,.95))}.template-preset-card>div{display:flex;justify-content:space-between;gap:10px}.template-preset-card>div span{color:#93c5fd;font-size:9px;font-weight:800}.template-preset-card>div small{color:#64748b;font-size:9px}.template-preset-card.generated>div small,.template-preset-card.generated footer>small{color:#6ee7b7}.template-preset-card h3{margin:10px 0 6px;color:#f8fafc;font-size:14px}.template-preset-card p{margin:0;color:#8292aa;font-size:10px;line-height:1.6}.template-preset-card pre{min-height:82px;margin:13px 0;padding:10px;overflow:hidden;border:1px solid rgba(148,163,184,.12);border-radius:8px;color:#94a3b8;background:#08111f;font:9px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.template-preset-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}.template-preset-card footer>small{color:#64748b;font-size:9px}.template-preset-card .review-button{padding:8px 10px;font-size:9px}
.template-history{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.template-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.template-history-head h3,.template-history-head h4{margin:0;color:#f8fafc;font-size:15px}.template-history-head p{margin:5px 0 0;color:#94a3b8;font-size:11px;line-height:1.6}.template-history-status{color:#93c5fd;font-size:11px}.template-history-list{display:grid;gap:8px;margin-top:12px}.template-version{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #334155;border-radius:9px;background:#111c31}.template-version.current{border-color:#3b82f6;background:rgba(30,64,175,.2)}.template-version strong,.template-version small{display:block}.template-version strong{color:#e2e8f0;font-size:12px}.template-version small{margin-top:4px;color:#94a3b8;font-size:10px}.template-version-actions{display:flex;gap:7px;flex-wrap:wrap}.template-version-actions .review-button{padding:7px 9px;font-size:11px}.template-history-empty{margin-top:12px;color:#94a3b8;font-size:12px}.template-diff{margin-top:16px;padding:14px;border:1px solid rgba(96,165,250,.25);border-radius:10px;background:rgba(15,23,42,.5)}.template-diff-grid{max-height:360px;overflow:auto;margin-top:12px;border:1px solid #334155;border-radius:8px}.template-diff-row{display:grid;grid-template-columns:42px minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid rgba(51,65,85,.55);font:11px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace}.template-diff-row:last-child{border-bottom:0}.template-diff-row>span{padding:5px 7px;color:#64748b;background:#0f172a}.template-diff-row code{min-width:0;padding:5px 7px;white-space:pre-wrap;overflow-wrap:anywhere;color:#cbd5e1;background:#111c31}.template-diff-row.changed .old{color:#fecaca;background:rgba(127,29,29,.35)}.template-diff-row.changed .new{color:#bbf7d0;background:rgba(20,83,45,.35)}

.compliance-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px}.compliance-input textarea{min-height:330px}.compliance-results{min-width:0;padding:16px;border:1px solid var(--border);border-radius:11px;background:rgba(15,23,42,.48)}.compliance-results h3{margin:0 0 5px;color:#fff}.compliance-results>p{margin:0 0 12px;color:#8291a7;font-size:12px}.finding{padding:12px;margin:9px 0;border-left:3px solid #f59e0b;border-radius:7px;background:rgba(120,53,15,.35);color:#fde68a}.finding.high{border-left-color:#ef4444;background:rgba(127,29,29,.4);color:#fecaca}.finding strong{display:block;font-size:12px}.finding p{margin:5px 0;color:#cbd5e1;font-size:12px;line-height:1.6}.finding a{display:inline-flex;align-items:center;gap:4px;color:#93c5fd;font-size:11px}.review-empty{display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#86efac}.review-empty>svg{font-size:28px}.review-empty p{max-width:320px;color:#94a3b8;font-size:12px;line-height:1.7}
.memory-picker{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(2,6,23,.72)}.memory-picker-card{width:min(560px,100%);max-height:80vh;overflow:auto;padding:22px;border:1px solid #475569;border-radius:14px;background:#17233a}.memory-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.memory-picker-head h3{margin:0;color:#fff}.memory-picker-close{display:inline-flex;padding:8px;border:0;border-radius:8px;color:#cbd5e1;background:transparent;cursor:pointer}.memory-file-option{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:12px;border:1px solid #334155;border-radius:9px;background:#111c31}.memory-file-option span{min-width:0;overflow:hidden;color:#e2e8f0;text-overflow:ellipsis;white-space:nowrap}.platform-rule-note{margin-top:12px;color:#94a3b8;font-size:11px;line-height:1.7}

@media(max-width:1100px){.template-category-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.template-layout{grid-template-columns:250px minmax(0,1fr)}.template-category-overview,.template-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.review-head{align-items:flex-start;flex-direction:column}.review-grid,.template-meta,.template-layout,.compliance-layout{grid-template-columns:1fr}.template-layout{height:auto;min-height:0}.template-list{max-height:480px;border-right:0;border-bottom:1px solid var(--border)}.template-editor{overflow:visible;padding:18px}.template-category-overview,.template-preset-grid{grid-template-columns:1fr}.template-version{align-items:flex-start;flex-direction:column}.template-version-actions{width:100%}.template-version-actions .review-button{flex:1}.template-diff-row{grid-template-columns:30px minmax(0,1fr) minmax(0,1fr)}}


/* Shared AI workbench controls. Keep this file last in the user-facing cascade. */
.ai-interface-page {
  --ai-primary-height: 48px;
  --ai-primary-radius: 11px;
  --ai-control-bg: #0b1424;
  --ai-control-border: rgba(148, 163, 184, .22);
  --ai-control-focus: rgba(59, 130, 246, .18);
  color-scheme: dark;
}

body:has(.ai-interface-page) {
  scrollbar-color: #40516b #0b1220;
}

body:has(.ai-interface-page)::-webkit-scrollbar,
.ai-interface-page *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body:has(.ai-interface-page)::-webkit-scrollbar-track,
.ai-interface-page *::-webkit-scrollbar-track {
  background: #0b1220;
}

body:has(.ai-interface-page)::-webkit-scrollbar-thumb,
.ai-interface-page *::-webkit-scrollbar-thumb {
  border: 2px solid #0b1220;
  border-radius: 999px;
  background: #40516b;
}

.ai-interface-page :where(.wide-primary, .primary-action, .analytics-ai-button),
.note-analysis-card > .wide-primary,
.video-analysis-submit > .wide-primary,
.video-creative-page .video-tool-detail-panel .wide-primary {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--ai-primary-height, 48px);
  margin: 0;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(96, 165, 250, .34);
  border-radius: var(--ai-primary-radius, 11px);
  color: #f8fbff;
  background: linear-gradient(135deg, #3483f5 0%, #2563eb 54%, #3159d5 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .2), inset 0 1px rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ai-interface-page :where(.wide-primary, .primary-action, .analytics-ai-button) > svg,
.note-analysis-card > .wide-primary > svg,
.video-analysis-submit > .wide-primary > svg,
.video-creative-page .video-tool-detail-panel .wide-primary > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.ai-interface-page :where(.wide-primary, .primary-action, .analytics-ai-button):hover:not(:disabled),
.note-analysis-card > .wide-primary:hover:not(:disabled),
.video-analysis-submit > .wide-primary:hover:not(:disabled),
.video-creative-page .video-tool-detail-panel .wide-primary:hover:not(:disabled) {
  border-color: rgba(147, 197, 253, .58);
  background: linear-gradient(135deg, #4b93f7 0%, #2f6ff0 56%, #3b61dc 100%);
  box-shadow: 0 13px 28px rgba(37, 99, 235, .27), inset 0 1px rgba(255, 255, 255, .13);
  transform: translateY(-1px);
}

.ai-interface-page :where(.wide-primary, .primary-action, .analytics-ai-button):focus-visible,
.note-analysis-card > .wide-primary:focus-visible,
.video-analysis-submit > .wide-primary:focus-visible,
.video-creative-page .video-tool-detail-panel .wide-primary:focus-visible {
  outline: 3px solid rgba(96, 165, 250, .28);
  outline-offset: 2px;
}

.ai-interface-page :where(.wide-primary, .primary-action, .analytics-ai-button):disabled,
.note-analysis-card > .wide-primary:disabled,
.video-analysis-submit > .wide-primary:disabled,
.video-creative-page .video-tool-detail-panel .wide-primary:disabled {
  border-color: rgba(148, 163, 184, .13);
  color: #78889f;
  background: rgba(38, 51, 70, .72);
  box-shadow: none;
  opacity: 1;
  transform: none;
  cursor: not-allowed;
}

.ai-interface-page .generation-card > .wide-primary {
  width: 100%;
  margin: 10px 0 0;
}

.video-creative-page .video-tool-detail-panel .wide-primary {
  width: 100%;
  margin: 10px 0 0;
}

.video-creative-page .server-render-actions .wide-primary {
  margin: 0;
}

.ai-interface-page .generation-card > .generation-status + .wide-primary {
  margin-top: 10px;
}

.ai-interface-page .audio-ai-card > .wide-primary {
  width: calc(100% - 42px);
  margin: 10px 21px 0;
}

.ai-interface-page .voice-clone-card > .wide-primary {
  margin-top: 16px;
}

.ai-interface-page .storyboard-brief-card > .wide-primary {
  width: calc(100% - 46px);
  margin: 10px 23px 23px;
}

.ai-interface-page :where(.speech-stream-actions, .transcription-result-actions) {
  align-items: stretch;
  gap: 10px;
}

.ai-interface-page .speech-stream-actions {
  margin: 12px 21px 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ai-interface-page .speech-stream-actions .wide-primary,
.ai-interface-page .transcription-result-actions .wide-primary,
.ai-interface-page .storyboard-handoff-actions .primary-action,
.ai-interface-page .writing-batch-submit .wide-primary,
.ai-interface-page .video-analysis-submit .wide-primary,
.ai-interface-page .ecommerce-report-start .analytics-ai-button,
.ai-interface-page .analytics-ai-panel .analytics-ai-button {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.ai-interface-page :where(.writing-batch-submit, .storyboard-handoff-actions, .ecommerce-report-start),
.ai-interface-page .video-analysis-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  align-items: center;
  gap: 16px;
}

.ai-interface-page .transcription-result-actions {
  grid-template-columns: repeat(2, minmax(0, auto)) minmax(220px, 1fr);
}

.ai-interface-page .analytics-ai-panel .analytics-ai-button {
  margin-top: 12px;
}

.ai-interface-page .generation-status {
  box-sizing: border-box;
  min-height: 48px;
  border-color: rgba(96, 165, 250, .13);
  background: rgba(8, 17, 32, .68);
}

/* Native light form chrome was the source of the remaining white rectangles. */
.ai-interface-page :where(
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']),
  textarea,
  select
) {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--ai-control-border);
  color: #e8eef7;
  background-color: var(--ai-control-bg);
  box-shadow: none;
  color-scheme: dark;
}

.ai-interface-page select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f91aa 50%),
    linear-gradient(135deg, #7f91aa 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ai-interface-page select option {
  color: #e8eef7;
  background: #0b1424;
}

.ai-interface-page :where(
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']),
  textarea,
  select
):focus {
  border-color: rgba(96, 165, 250, .72);
  outline: 0;
  box-shadow: 0 0 0 3px var(--ai-control-focus);
}

.ai-interface-page :where(input, textarea)::placeholder {
  color: #687a93;
  opacity: 1;
}

.ai-interface-page input:-webkit-autofill,
.ai-interface-page input:-webkit-autofill:hover,
.ai-interface-page input:-webkit-autofill:focus,
.ai-interface-page textarea:-webkit-autofill {
  -webkit-text-fill-color: #e8eef7;
  -webkit-box-shadow: 0 0 0 1000px #0b1424 inset;
  caret-color: #e8eef7;
}

.ai-interface-page input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 5px;
  color: #fff;
  background: #0a1424;
  cursor: pointer;
}

.ai-interface-page input[type='checkbox']::after {
  width: 8px;
  height: 4px;
  content: '';
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(.7);
  transition: opacity .15s ease, transform .15s ease;
}

.ai-interface-page input[type='checkbox']:checked {
  border-color: #60a5fa;
  background: #2563eb;
}

.ai-interface-page input[type='checkbox']:checked::after {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.ai-interface-page input[type='checkbox']:focus-visible {
  outline: 3px solid rgba(96, 165, 250, .24);
  outline-offset: 2px;
}

.ai-interface-page input[type='checkbox']:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.video-analysis-upload-progress {
  margin: 0 12px 12px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .72);
}

.video-analysis-upload-progress > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.video-analysis-upload-progress strong,
.video-analysis-upload-progress small {
  display: block;
}

.video-analysis-upload-progress strong {
  color: #dbeafe;
  font-size: 10px;
}

.video-analysis-upload-progress small {
  max-width: min(560px, 70vw);
  margin-top: 4px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-analysis-upload-progress button {
  min-height: 30px;
  padding: 6px 10px;
  flex: none;
  border: 1px solid rgba(251, 113, 133, .25);
  border-radius: 7px;
  color: #fda4af;
  background: rgba(244, 63, 94, .07);
  font-size: 9px;
  cursor: pointer;
}

.video-analysis-upload-progress > i {
  height: 7px;
  margin-top: 10px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(59, 130, 246, .13);
}

.video-analysis-upload-progress > i > b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #818cf8);
  transition: width .2s ease;
}

.video-analysis-upload-progress.scanning > i > b {
  background: linear-gradient(90deg, #2563eb, #60a5fa, #34d399, #2563eb);
  background-size: 220% 100%;
  animation: video-analysis-scan-progress 1.7s linear infinite;
}

.video-analysis-upload-progress > p {
  margin: 8px 0 0;
  color: #7f91aa;
  font-size: 8px;
  line-height: 1.55;
}

@keyframes video-analysis-scan-progress {
  to { background-position: -220% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .video-analysis-upload-progress.scanning > i > b { animation: none; }
}

@media (max-width: 720px) {
  .ai-interface-page {
    --ai-primary-height: 46px;
  }

  .ai-interface-page :where(.writing-batch-submit, .storyboard-handoff-actions, .ecommerce-report-start),
  .ai-interface-page .video-analysis-submit,
  .ai-interface-page .transcription-result-actions,
  .ai-interface-page .speech-stream-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .ai-interface-page .audio-ai-card > .wide-primary {
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .ai-interface-page .speech-stream-actions {
    margin-right: 14px;
    margin-left: 14px;
  }

  .ai-interface-page .storyboard-brief-card > .wide-primary {
    width: calc(100% - 28px);
    margin-right: 14px;
    margin-left: 14px;
  }

  .video-analysis-upload-progress small { max-width: 62vw; }
}


.ai-chat-page {
  --chat-surface: rgba(15, 23, 42, .86);
  --chat-surface-strong: #111c31;
  --chat-border: rgba(148, 163, 184, .16);
}

.multimodal-chat-layout {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
  border-color: var(--chat-border);
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(10, 18, 34, .98));
  box-shadow: 0 26px 70px rgba(2, 6, 23, .32);
}

.multimodal-chat-layout .ai-chat-sidebar {
  gap: 14px;
  max-height: 780px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(30, 41, 59, .66), rgba(15, 23, 42, .74));
}

.ai-chat-memory-card {
  overflow: hidden;
  border: 1px solid var(--chat-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, .72);
}

.ai-chat-memory-card.active {
  border-color: rgba(52, 211, 153, .32);
  background: rgba(6, 78, 59, .1);
}

.ai-chat-memory-heading {
  width: 100%;
  min-height: 58px;
  padding: 11px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  color: #bfdbfe;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ai-chat-memory-heading > svg {
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(59, 130, 246, .12);
}

.ai-chat-memory-heading strong,
.ai-chat-memory-heading small {
  display: block;
}

.ai-chat-memory-heading strong {
  color: #e2e8f0;
  font-size: 10px;
}

.ai-chat-memory-heading small {
  margin-top: 4px;
  color: #8293aa;
  font-size: 8px;
  line-height: 1.45;
}

.ai-chat-memory-heading b {
  padding: 4px 6px;
  border-radius: 999px;
  color: #94a3b8;
  background: rgba(148, 163, 184, .1);
  font-size: 7px;
  letter-spacing: .08em;
}

.ai-chat-memory-card.active .ai-chat-memory-heading b {
  color: #6ee7b7;
  background: rgba(16, 185, 129, .13);
}

.ai-chat-memory-editor {
  padding: 0 11px 11px;
  border-top: 1px solid rgba(148, 163, 184, .1);
}

.ai-chat-memory-editor p {
  margin: 10px 0 8px;
  color: #8391a7;
  font-size: 8px;
  line-height: 1.55;
}

.ai-chat-memory-editor textarea {
  width: 100%;
  min-height: 116px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid var(--chat-border);
  border-radius: 9px;
  outline: 0;
  color: #e2e8f0;
  background: #0c1528;
  font-size: 9px;
  line-height: 1.6;
}

.ai-chat-memory-editor > small {
  display: block;
  margin: 5px 1px 8px;
  color: #64748b;
  font-size: 8px;
  text-align: right;
}

.ai-chat-memory-editor > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ai-chat-memory-editor button,
.ai-chat-document-bar button,
.ai-chat-tool-button,
.ai-chat-output-modes button,
.ai-chat-message-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(96, 165, 250, .2);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, .09);
  font-size: 8px;
  cursor: pointer;
}

.ai-chat-memory-editor button:disabled,
.ai-chat-document-bar button:disabled,
.ai-chat-message-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ai-chat-history > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 5px;
}

.ai-chat-history > div > button:first-child {
  min-width: 0;
}

.ai-chat-history > div > button:first-child span,
.ai-chat-history > div > button:first-child small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-history > div > button:first-child small {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 7px;
}

.ai-chat-history > div > button:first-child.active {
  border-color: rgba(96, 165, 250, .48);
  color: #dbeafe;
  background: rgba(37, 99, 235, .16);
}

.ai-chat-history > div > button:last-child {
  width: 30px;
  padding: 0;
  display: grid;
  place-items: center;
}

.multimodal-chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.ai-chat-document-bar {
  min-height: 64px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--chat-border);
  background: rgba(15, 23, 42, .72);
}

.ai-chat-document-bar strong,
.ai-chat-document-bar small {
  display: block;
}

.ai-chat-document-bar strong {
  color: #e2e8f0;
  font-size: 11px;
}

.ai-chat-document-bar small {
  margin-top: 4px;
  color: #718096;
  font-size: 8px;
}

.ai-chat-document-bar > div:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ai-chat-document-bar select {
  min-height: 30px;
  padding: 5px 26px 5px 8px;
  border: 1px solid var(--chat-border);
  border-radius: 8px;
  outline: 0;
  color: #cbd5e1;
  background: #111c31;
  font-size: 8px;
}

.multimodal-chat-panel .ai-chat-messages {
  min-height: 470px;
  max-height: 650px;
}

.ai-chat-message-attachments {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.ai-chat-message.user .ai-chat-message-attachments {
  justify-content: flex-end;
}

.ai-chat-message-attachments > span {
  max-width: min(100%, 300px);
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, .18);
  border-radius: 8px;
  color: #c7d2fe;
  background: rgba(79, 70, 229, .08);
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ai-chat-message-attachments small {
  flex: none;
  color: #718096;
  font-size: 7px;
}

.ai-chat-sources a {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(96, 165, 250, .2);
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, .12);
  font-size: 8px;
}

.ai-chat-message-actions {
  margin-top: 7px;
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}

.ai-chat-message.user .ai-chat-message-actions {
  justify-content: flex-end;
}

.ai-chat-message-actions button {
  min-height: 25px;
  padding: 4px 7px;
  color: #94a3b8;
  background: rgba(15, 23, 42, .55);
}

.multimodal-chat-composer {
  padding: 0;
  overflow: hidden;
}

.ai-chat-attachment-tray {
  min-height: 0 !important;
  padding: 9px;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--chat-border);
}

.ai-chat-attachment-tray > span {
  min-width: 0;
  padding: 7px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 26px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
  background: rgba(30, 41, 59, .52);
}

.ai-chat-attachment-tray > span.ready {
  border-color: rgba(52, 211, 153, .22);
  background: rgba(6, 78, 59, .08);
}

.ai-chat-attachment-tray > span > i {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #a5b4fc;
  background: rgba(99, 102, 241, .12);
}

.ai-chat-attachment-tray > span > b,
.ai-chat-attachment-tray > span > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chat-attachment-tray > span > b {
  color: #dbe4f0;
  font-size: 9px;
}

.ai-chat-attachment-tray > span > small {
  color: #718096;
  font-size: 7px;
}

.ai-chat-attachment-tray > span > button {
  width: 26px;
  height: 26px;
  grid-column: 3;
  grid-row: 1 / 3;
  color: #94a3b8;
  background: transparent;
}

.ai-chat-composer-tools {
  min-height: 0 !important;
  padding: 9px 10px;
  align-items: flex-start !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.ai-chat-composer-tools > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-chat-composer-tools > div > span {
  margin-left: 2px;
  line-height: 1.45;
}

.ai-chat-tool-button {
  min-height: 28px;
  padding: 5px 8px;
  white-space: nowrap;
}

.ai-chat-output-modes {
  justify-content: flex-end;
}

.ai-chat-output-modes button {
  min-height: 27px;
  width: auto;
  height: auto;
  padding: 4px 7px;
  color: #8a99ad;
  background: rgba(30, 41, 59, .48);
}

.ai-chat-output-modes button.active {
  border-color: rgba(96, 165, 250, .46);
  color: #dbeafe;
  background: rgba(37, 99, 235, .18);
}

.multimodal-chat-composer > textarea {
  min-height: 92px;
  padding: 12px 14px;
}

.multimodal-chat-composer > div:last-child {
  padding: 6px 9px 7px 13px;
}

@media (max-width: 980px) {
  .multimodal-chat-layout {
    grid-template-columns: 1fr;
  }

  .multimodal-chat-layout .ai-chat-sidebar {
    max-height: none;
  }

  .ai-chat-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-chat-history h3,
  .ai-chat-memory-card,
  .ai-chat-knowledge,
  .multimodal-chat-layout .workspace-quick-select {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .ai-chat-document-bar,
  .ai-chat-document-bar > div:last-child,
  .ai-chat-composer-tools {
    align-items: stretch !important;
    flex-direction: column;
  }

  .ai-chat-document-bar > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ai-chat-document-bar select {
    grid-column: 1 / -1;
  }

  .ai-chat-attachment-tray {
    grid-template-columns: 1fr;
  }

  .ai-chat-output-modes {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .ai-chat-history,
  .ai-chat-memory-editor > div,
  .ai-chat-document-bar > div:last-child {
    grid-template-columns: 1fr;
  }

  .ai-chat-document-bar select {
    grid-column: auto;
  }
}
