/* ============ AutoVideo 品牌覆盖层 ============
 * 只做“外观层”覆盖：不改动 23MB 的编译产物，方便随时回滚。
 * - 顶栏 logo 换成 AutoVideo（原站是 .logoImage 的 background-image）
 * - 统一 favicon / 选中色
 */

/* 顶栏 logo：原图 90×21，这里按新标比例放大到 104×24 */
[class*="logoImage"] {
  background-image: url("/assets/brand/logo.svg") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  width: 104px !important;
  height: 24px !important;
}
/* 浅色主题下用深色字标的版本，避免白字 logo 落在浅色页头上看不见 */
[data-prefers-color="light"] [class*="logoImage"],
[theme-mode="light"] [class*="logoImage"] {
  background-image: url("/assets/brand/logo-dark.svg") !important;
}

/* 登录弹窗 / 旧版登录页里的品牌字样 */
[class*="logoText"], [class*="brandText"] { letter-spacing: 0.2px; }

/* 右上角设置入口（由 brand.js 注入） */
.av-settings-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4; cursor: pointer; margin-right: 4px;
  transition: background .16s ease, transform .16s ease;
}
.av-settings-btn:hover { background: rgba(94, 234, 212, 0.18); transform: translateY(-1px); }
.av-settings-btn svg { display: block; }

/* ============ 统一顶栏导航（首页 / 剧集流水线 / 无限画布 / 更多） ============ */
.av-nav{display:flex;align-items:center;gap:2px;margin:0 0 0 8px;padding:0;list-style:none;height:100%}
.av-nav-item{position:relative;display:flex;align-items:center;height:100%}
.av-nav-link{display:flex;align-items:center;gap:4px;height:34px;padding:0 12px;border-radius:8px;
  font-size:14px;line-height:1;color:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;opacity:.85}
.av-nav-link:hover{opacity:1;background:rgba(127,127,127,.12)}
.av-nav-link.is-active{opacity:1;font-weight:600}
.av-nav-caret{font-size:10px;opacity:.55;display:inline-block;transition:transform .18s ease}
.av-nav-item.open .av-nav-caret{transform:rotate(180deg)}

/* 下拉面板挂到 body 上（避免顶栏 overflow/滚动容器把菜单裁掉或把顶栏滚飞） */
.av-nav-popup{position:fixed;z-index:2147482000;display:none;min-width:248px;padding:6px;
  border-radius:12px;background:#fff;border:1px solid rgba(16,24,40,.10);
  box-shadow:0 18px 42px rgba(16,24,40,.16)}
.av-nav-popup.is-open{display:block}
html[theme-mode="dark"] .av-nav-popup{background:#171b22;border-color:rgba(255,255,255,.12);
  box-shadow:0 18px 42px rgba(0,0,0,.55);color:#e8ecf3}
.av-nav-row{display:flex;flex-direction:column;gap:1px;padding:8px 10px;border-radius:8px;
  color:inherit;text-decoration:none;font-size:13px;line-height:1.4}
.av-nav-row:hover{background:rgba(127,127,127,.14)}
.av-nav-row b{font-weight:600}
.av-nav-row small{font-size:11.5px;opacity:.6;font-weight:400}
.av-nav-link:focus-visible{outline:2px solid rgba(94,234,212,.9);outline-offset:2px}
.av-nav-row:focus-visible{outline:2px solid rgba(94,234,212,.9);outline-offset:-2px}

/* ============ 动画版首页问候语里的旧品牌字标 ============ */
/* 原站用 --welcome-logo-url 指向 WorkRally 字标，这里换成 AutoVideo 字标（深浅各一份） */
html[theme-mode="dark"] [class*="welcome___"] { --welcome-logo-url: url("/assets/brand/logo.svg") !important; }
html[theme-mode="light"] [class*="welcome___"] { --welcome-logo-url: url("/assets/brand/logo-dark.svg") !important; }
[class*="welcome__logo___"] { width: 150px !important; background-position: left center !important; }
/* ============ 画布左侧工具栏：隐藏顶部的 Beta 组（广告助手 / 功能橱窗） ============ */
[class*="toolbarWithBadge"] { display: none !important; }